html,
body {
  max-width: 100%;
  overflow-x: clip;
}
img {
  max-width: 100%;
}
* {
  box-sizing: border-box;
}
:root {
  --top-bar-height: 40px;
  --header-height: 120px;
  --header-shrink-height: 62px;
  --real-top-bar-height: 40px;
  --content-offset: 160px;
}
body {
  margin: 0;
  background: rgb(243, 243, 206);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-v21-latin-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-v21-latin_latin-ext-regular.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-v40-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-v40-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-v40-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-v40-latin-500italic.woff2")
    format("woff2");
  font-style: italic;
  font-weight: 500;
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-v40-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-v40-latin-600italic.woff2")
    format("woff2");
  font-style: italic;
  font-weight: 600;
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-v40-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-v40-latin-700italic.woff2")
    format("woff2");
  font-style: italic;
  font-weight: 700;
}
.mobile-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  color: #1e2f4f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3600;
  opacity: 0;
  transform: rotate(-90deg);
  transition: 0.3s ease;
}
.mobile-close:hover {
  transform: scale(1.1);
}
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-weight: 500;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  min-height: var(--top-bar-height);
  background: #b08a47;
  color: white;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 20px;
  font-size: 16px;
  z-index: 2000;
}
.top-bar > div {
  min-width: 0;
}
.tel-icon,
.tel-icon:visited {
  color: blue;
  transition: 0.2s;
}
.tel-text,
      .tel-text:visited {
  color: white;
  text-decoration: none;
  transition: 0.2s;
}
.tel-text:hover {
  color: blue;
  text-decoration: underline;
}
.mail-icon,
.mail-icon:visited {
  color: blue;
  transition: 0.2s;
}
.mail-text,
      .mail-text:visited {
  color: white;
  text-decoration: none;
  transition: 0.2s;
}
.mail-text:hover {
  color: blue;
  text-decoration: underline;
}
.address-icon,
.address-icon:visited {
  color: blue;
  transition: 0.2s;
}
.address-text,
        .address-text:visited {
  color: white;
  text-decoration: none;
  transition: 0.2s;
}
.address-text:hover {
  color: blue;
  text-decoration: underline;
}
@media screen and (max-width: 950px) {
  .top-bar {
    font-size: 16px;
  }
  .name-1 {
    display: none;
  }
  .tel-icon,
  .mail-icon {
    width: 16px;
    min-width: 16px;
    flex-shrink: 0;
  }
  .tel-text {
    flex: 0 0 calc(100% - 26px);
  }
  .address-icon {
    display: none;
  }
  .address-text {
    display: none;
  }
}
@media screen and (max-width: 950px) and (orientation: landscape) {
  .top-bar {
    font-size: 13px;
  }
  .name-1 {
    display: none;
  }
  .tel-icon {
    width: 16px;
  }
  .tel-text {
    width: auto;
  }
  .mail-icon {
    width: 16px;
  }
  .address-icon {
    width: 15px;
    display: block;
  }
  .address-text {
    display: block;
  }
}
.main-header {
  position: fixed;
  top: var(--real-top-bar-height, var(--top-bar-height));
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 0 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  z-index: 1500;
  transition:
    min-height 0.35s ease,
    padding 0.35s ease,
    background 0.35s ease;
}
.main-header.shrink {
  min-height: var(--header-shrink-height);
  padding: 0 28px 0 16px;
  background: rgba(237, 231, 190, 0.5);
}
.logo {
  width: 170px;
  height: auto;
  display: block;
  transform-origin: center;
  transition:
    width 0.35s ease,
     transform 0.35s ease;
}
.logo:hover {
  transform: scale(1.2);
}
.main-header.shrink .logo {
  width: 90px;
  transform-origin: center;
  transition:
    width 0.35s ease,
     transform 0.35s ease;
}
.main-header.shrink .logo:hover {
  transform: scale(1.15);
}
.desktop-nav {
  display: flex;
}
.mobile-nav,
.menu-overlay {
  display: none;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 4100;
  padding: 0;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 26px;
  height: 2px;
  background: #1e2f4f;
  transition:
    transform 0.3s ease,
    opacity 0.25s ease,
    top 0.3s ease;
}
.menu-toggle span:nth-child(1) {
  top: 14px;
}
.menu-toggle span:nth-child(2) {
  top: 22px;
}
.menu-toggle span:nth-child(3) {
  top: 30px;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 34px;
  font-weight: 500;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  color: #1e2f4f;
  font-size: 16px;
  letter-spacing: 0.5px;
  padding: 6px 0;
  transition:
    color 0.3s ease,
    transform 0.25s ease,
    font-size 0.35s ease;
}
.main-nav a.active {
  color: blue;
  font-weight: bold;
}
.main-nav a.no-underline::after {
  display: none;
}
.main-nav .dropdown a::after {
  display: none;
}
.main-nav a[href="kapcsolat.html"] {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgb(69, 69, 181);
  color: white;
  text-decoration: none;
}
.main-nav a[href="kapcsolat.html"]:hover {
  background: darkgreen;
}
.main-nav a:hover {
  color: #b08a47;
  transform: scale(1.12);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #b08a47;
  transition: width 0.3s ease;
}
.main-nav a:hover::after {
  width: 100%;
}
.desktop-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.desktop-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2000;
  min-width: 240px;
  padding: 10px 0;
  border-radius: 10px;
  background: rgb(224, 224, 173);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  font-weight: 500;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}
.desktop-nav .dropdown a {
  display: block;
  padding: 10px 16px;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav .dropdown a:hover {
  background: beige;
  color: #b08a47;
}
.desktop-nav .dropdown::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0px;
  width: 5px;
  background: blue;
  border-radius: 2px;
}
@media (min-width: 1025px) {
  .desktop-nav .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown-parent {
  border: 0;
  background: transparent;
  cursor: default;
  font: inherit;
  color: #1e2f4f;
  padding: 6px 0;
}
.dropdown-toggle {
  display: none;
  margin-left: 6px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  min-width: 240px;
  padding: 10px 0;
  border-radius: 10px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}
.dropdown a {
  display: block;
  padding: 10px 16px;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown a:hover {
  background: #f2f2f2;
}
.desktop-nav .dropdown::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0px;
  width: 5px;
  background: blue;
  border-radius: 2px;
}
.main-header.shrink .main-nav {
  gap: 22px;
}
.main-header.shrink .main-nav a {
  font-size: 12px;
}
.main-header.shrink .main-nav button {
  font-size: 12px;
}
@media screen and (max-width: 950px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: beige;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
    z-index: 3500;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 90px 22px 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .mobile-nav.open {
    transform: translateX(0);
  }
  .mobile-nav.open .mobile-close {
    opacity: 1;
    transform: rotate(0deg);
  }
  .mobile-nav > a,
  .mobile-nav > .mobile-item {
    width: 100%;
    border-bottom: 1px solid #e8e8e8;
  }
  .mobile-nav > a {
    text-decoration: none;
    color: #1e2f4f;
    font-size: 16px;
    font-family: Georgia, serif;
    padding: 16px 0;
  }
  .mobile-nav > a.active {
    color: red;
    font-weight: bold;
  }
  .menu-toggle {
    display: block;
  }
  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 3000;
  }
  .menu-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  .mobile-submenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
  }
  .mobile-submenu-header a {
    text-decoration: none;
    color: #1e2f4f;
    font-size: 16px;
    font-family: Georgia, serif;
    flex: 1;
  }
  .mobile-submenu-toggle {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.25s ease;
  }
  .has-submenu.open .mobile-submenu-toggle {
    transform: rotate(45deg);
  }
  .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .has-submenu.open .mobile-submenu {
    max-height: 80vh;
    overflow-y: auto;
  }
  .mobile-submenu a {
    display: block;
    text-decoration: none;
    color: #1e2f4f;
    padding: 12px 0 12px 14px;
    font-size: 15px;
    font-family: Georgia, serif;
  }
}
@media screen and (max-width: 950px) and (orientation: landscape) {
  .main-header {
    min-height: 54px !important;
    height: 54px !important;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }
  .logo {
    max-height: 45px;
    width: auto;
    transition:
      max-height 0.35s ease,
      width 0.35s ease,
      transform 0.35s ease;
  }
  .main-header.shrink {
    min-height: 40px !important;
    height: 40px !important;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }
  .main-header.shrink .logo {
    max-height: 36px;
    width: auto;
  }
}
.top-spacer {
  height: 100px;
}
.fees-section {
  position: relative;
  min-height: 100vh;
  padding: 100px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  isolation: isolate;
}
.fees-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hatterkep1.png");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
}
.fees-card {
  max-width: 1180px;
  padding: 70px;
  border-radius: 32px;
  background-color: rgba(247, 247, 189, 0.5);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.55);
}
.eyebrow {
  color: #b08d57;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}
.motto {
  margin: 12px 0 40px 0;
  padding: 0 30px;
}
.motto p {
  font-size: 30px;
  font-weight: 500;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  text-align: center;
  line-height: 1.35;
  color: #1e2f4f;
  border-left: 4px solid #b08d57;
  padding: 10px 20px;
  max-width: 500px;
  margin: 0 auto;
  animation: slideIn 2.2s ease-out;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.lead {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  max-width: 1200px;
  margin-bottom: 50px;
  text-align: justify;
}
.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}
.fee-box {
  padding: 34px;
  border-radius: 24px;
  background: rgba(255, 245, 220, 0.8);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(176, 141, 87, 0.25);
}
.fee-box h3 {
  font-size: 24px;
  color: #111;
  margin-bottom: 14px;
}
.fee-box p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  text-align: justify;
}
.premium-note {
  padding: 40px;
  margin-bottom: 40px;
}
.premium-note h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #b08d57;
}
.premium-note p {
  line-height: 1.8;
  font-size: 20px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}
.button a {
  margin-top: 20px;
  color: white;
  background-color: rgb(69, 69, 181);
  padding: 10px;
  font-size: 18px;
  border-radius: 6px;
  display: inline-block;
  transition:
    color 0.3s ease,
    transform 0.25s ease,
    font-size 0.35s ease;
  text-decoration: none;
}
.button a:hover {
  background: darkgreen;
  color: #b08a47;
  transform: scale(1.12);
}
@media (max-width: 950px) {
  .fees-card {
    padding: 36px 24px;
  }
  .fee-grid {
    grid-template-columns: 1fr;
  }
  .premium-note h2 {
    font-size: 26px;
    margin-bottom: 16px;
    color: #b08d57;
    text-align: center;
  }
  .premium-note p {
    line-height: 1.8;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
  }
}
@media screen and (max-width: 950px) and (orientation: landscape) {
  .top-spacer {
    height: 10px;
  }
}
.parallax2 {
  background-image: url("../images/hatter2.jpg");
  height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax2 .text3 {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}
.parallax2 .text3 h2 {
  color: #b08a47;
  font-size: 45px;
  line-height: 1.4;
  margin: 0 auto;
}
.parallax2 .text3 p {
  color: white;
  font-size: 25px;
  line-height: 1.4;
  margin-top: 30px;
}
footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}
.footer-container {
  max-width: 1500px;
  align-items: flex;
  display: flex;
  flex-wrap: wrap;
}
.footer-section .footer_p1 p {
  margin: 5px 0;
  line-height: 1.3;
}
.footer-section:first-child {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo2 {
  max-width: 220px;
  height: auto;
}
.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}
.footer-section h3 {
  color: #ffffff;
  margin-bottom: 15px;
}
.footer-section p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}
.footer-section a {
  display: inline-block;
  position: relative;
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
}
.footer-section a:hover {
  color: #b08a47;
  text-decoration: underline;
}
.tel-icon-2,
.tel-icon-2:visited {
  color: blue;
  transition: 0.2s;
}
.tel-text-2,
						.tel-text-2:visited {
  color: white;
  text-decoration: none;
  transition: 0.2s;
}
.tel-text-2:hover {
  color: blue;
  text-decoration: underline;
}
.mail-icon-2,
.mail-icon-2:visited {
  color: blue;
  transition: 0.2s;
}
.mail-text-2,
				.mail-text-2:visited {
  color: white;
  text-decoration: none;
  transition: 0.2s;
}
.mail-text-2:hover {
  color: blue;
  text-decoration: underline;
}
.address-icon-2,
.address-icon-2:visited {
  color: blue;
  transition: 0.2s;
}
.address-text-2,
				.address-text-2:visited {
  color: white;
  text-decoration: none;
  transition: 0.2s;
}
.address-text-2:hover {
  color: blue;
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  margin-top: 20px;
  font-size: 13px;
  color: #777;
}
.footer-bottom .name {
  color: #b08a47;
}
.footer-bottom a {
  color: blue;
  font-size: 15px;
}
