:root {
  --teal: #009c9c;
  --teal-dark: #075c61;
  --ink: #102f34;
  --body: #3f565a;
  --mist: #e7f2f3;
  --mist-light: #f4f9f9;
  --line: rgba(7, 92, 97, .16);
  --container: min(1220px, calc(100% - 48px));
  --shadow: 0 18px 50px rgba(12, 64, 68, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--body); background: #fff; font-family: Rubik, system-ui, sans-serif; font-size: 1rem; line-height: 1.65; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-weight: 600; line-height: 1.08; }
h1 { margin-bottom: 1.55rem; font-size: clamp(2.65rem, 4.5vw, 4rem); letter-spacing: -.045em; }
h2 { margin-bottom: 1.2rem; font-size: clamp(2.15rem, 3.25vw, 3.15rem); letter-spacing: -.035em; }
h3 { margin-bottom: .55rem; font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin-bottom: 1rem; }
:focus-visible { outline: 3px solid #f5b700; outline-offset: 4px; }
.container { width: var(--container); margin-inline: auto; }
.section-pad { padding: clamp(4.5rem, 7vw, 6.5rem) 0; }
.eyebrow { margin-bottom: 1rem; color: var(--teal); font-size: .78rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.subheading { color: var(--teal-dark); font-size: 1.15rem; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; left: 1rem; top: 1rem; padding: .7rem 1rem; color: #fff; background: var(--ink); border-radius: 8px; transform: translateY(-170%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(236, 247, 247, .94); border-bottom: 1px solid rgba(0, 134, 134, .11); backdrop-filter: blur(14px); }
.header-inner { width: min(1320px, calc(100% - 48px)); min-height: 104px; margin: auto; display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.brand { flex: 0 0 auto; }
.brand img { width: 112px; height: 112px; object-fit: contain; }
.primary-nav { margin-left: auto; }
.primary-nav > ul, .footer-nav-list { margin: 0; padding: 0; list-style: none; }
.primary-nav > ul { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.8rem); }
.primary-nav li { position: relative; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--teal); }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; inset: auto 0 .25rem; height: 2px; background: var(--teal); }
.primary-nav .submenu { position: absolute; left: -.9rem; top: calc(100% - .2rem); min-width: 220px; padding: .55rem; border: 1px solid var(--line); background: #fff; border-radius: 12px; box-shadow: var(--shadow); list-style: none; opacity: 0; visibility: hidden; transform: translateY(7px); transition: .18s ease; }
.primary-nav li:hover > .submenu, .primary-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .submenu a { padding: .5rem .65rem; border-radius: 7px; }
.primary-nav .submenu a:hover { background: var(--mist-light); }
.header-cta { flex: 0 0 auto; padding: .68rem 1.05rem; color: #fff; background: var(--teal); border-radius: 9px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.header-cta:hover { background: var(--teal-dark); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; padding: 10px; border: 1px solid rgba(0,134,134,.25); border-radius: 10px; color: var(--teal-dark); background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 5px auto; background: currentColor; }

.hero { padding: clamp(4.25rem, 7vw, 6.75rem) 0; background: linear-gradient(135deg, #f8fbfb 0%, #e7f2f3 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, 1fr); align-items: center; gap: clamp(2.5rem, 5vw, 5rem); }
.hero-copy { max-width: 670px; }
.hero-copy h1 span { color: var(--teal); }
.hero-copy .lead { font-size: clamp(1.04rem, 1.25vw, 1.16rem); }
.hero-copy > p:not(.eyebrow) { max-width: 64ch; }
.hero-visual { position: relative; width: min(100%, 560px); margin: 0; justify-self: end; }
.hero-visual::before { content: ""; position: absolute; z-index: 0; inset: 12px -12px -12px 12px; border-radius: 24px; background: rgba(0, 156, 156, .11); }
.hero-visual picture { position: relative; z-index: 1; display: block; overflow: hidden; border-radius: 22px; box-shadow: 0 16px 40px rgba(7, 73, 78, .13); }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .72rem 1.25rem; border: 1px solid transparent; border-radius: 10px; font-weight: 600; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { color: var(--teal-dark); border-color: rgba(0,134,134,.35); background: rgba(255,255,255,.68); }
.button-secondary:hover { background: #fff; }
.trust-strip { color: #dce9e9; background: var(--ink); }
.trust-strip-inner { display: flex; align-items: center; justify-content: center; gap: clamp(.65rem, 2vw, 1.5rem); min-height: 64px; font-size: .86rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.trust-strip-inner span[aria-hidden] { color: #67cccb; }

.since-section { background: #fff; }
.since-grid { display: block; }
.since-copy { max-width: 820px; margin-inline: auto; }
.since-copy p { font-size: 1.05rem; }
.section-heading { max-width: 760px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-heading h2 { margin-bottom: 1.1rem; }

.leadership { background: var(--mist-light); }
.leadership-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; justify-items: center; gap: clamp(1.5rem, 4vw, 4rem); max-width: 900px; margin-inline: auto; }
.leader-person { min-width: 0; text-align: center; }
.leader-portrait { display: block; width: 240px; max-width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #dbeeee; cursor: zoom-in; }
.leader-kovacs .leader-portrait { width: 260px; box-shadow: 0 14px 34px rgba(7,92,97,.12); }
.leader-portrait img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; transition: transform .25s ease; }
.leader-portrait:hover img { transform: scale(1.025); }
.leader-copy { max-width: 265px; padding-top: 1.25rem; }
.leader-copy h3 { margin-bottom: .45rem; }
.leader-copy p { margin: .08rem 0; color: var(--teal-dark); font-size: .93rem; font-weight: 500; }
.leader-copy .leader-role { color: var(--ink); }
.leader-copy .leader-en { color: #6e8184; font-size: .78rem; font-weight: 400; }
.role { margin: .12rem 0; color: var(--teal-dark); font-weight: 500; }
.role-secondary { margin: .12rem 0; color: #687c80; font-size: .88rem; }
.inline-profile-link { display: inline-flex; margin-top: .85rem; padding: 0; border: 0; color: var(--teal-dark); background: transparent; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.doctors { background: #fff; }
.doctor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.doctor-profile { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.6rem; min-width: 0; padding: 1.55rem; border: 1px solid var(--line); border-radius: 16px; background: var(--mist-light); }
.doctor-portrait { display: block; width: 180px; height: 180px; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #dbeeee; cursor: zoom-in; }
.doctor-portrait img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; transition: transform .25s ease; }
.doctor-portrait:hover img { transform: scale(1.025); }
.doctor-copy { min-width: 0; }
.doctor-copy h3 { font-size: 1.45rem; }
.doctor-copy .summary { margin: 1rem 0 0; font-size: .96rem; line-height: 1.65; }
.doctor-actions { margin-top: 1.05rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.hours strong { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; }
.hours span { display: block; color: var(--teal-dark); font-size: .9rem; font-weight: 500; }
.profile-booking, .profile-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: .8rem .5rem 0 0; padding: .5rem .8rem; border-radius: 8px; font-size: .86rem; font-weight: 600; text-decoration: none; }
.profile-booking { color: #fff; background: var(--teal); }
.profile-booking:hover { background: var(--teal-dark); }
.profile-button { border: 1px solid var(--teal); color: var(--teal-dark); background: transparent; cursor: pointer; }
.profile-button:hover { color: #fff; background: var(--teal-dark); }

.assistance { background: var(--mist-light); }
.assistance-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.assistance-grid .section-heading { margin: 0; }
.assistant-profile { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 1.75rem; }
.assistant-portrait { width: 210px; height: 210px; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #dbeeee; cursor: zoom-in; }
.assistant-portrait img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; transition: transform .25s ease; }
.assistant-portrait:hover img { transform: scale(1.025); }
.assistant-copy { min-width: 0; }
.assistant-copy h3 { margin-bottom: .45rem; }
.assistant-copy .summary { margin-top: 1rem; }

.principles { background: #fff; }
.principle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.principle { min-height: 0; padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--mist-light); }
.principle > span { display: inline-block; margin-bottom: 1.6rem; color: var(--teal); font-size: .75rem; font-weight: 600; }
.principle p { margin: 0; font-size: .95rem; }
.partner { background: var(--mist); }
.partner-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); }
.text-link { display: inline-flex; gap: .6rem; color: var(--teal-dark); font-weight: 600; text-decoration: none; border-bottom: 1px solid; }

.final-cta { color: #dbe7e8; background: var(--teal-dark); }
.final-cta-inner { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 3rem; }
.final-cta h2 { color: #fff; }
.final-cta .eyebrow { color: #8fe4e2; }
.button-light { color: var(--teal-dark); background: #fff; }
.button-outline-light { color: #fff; border-color: rgba(255,255,255,.55); }

.site-footer { padding: 4rem 0 1.5rem; color: #c9d9da; background: #0c292e; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 4rem; }
.footer-logo-panel { display: grid; width: 180px; height: 180px; margin-bottom: 1rem; place-items: center; border: 1px solid rgba(0,156,156,.18); border-radius: 16px; background: #f4f9f9; }
.footer-logo { width: 160px; height: 160px; object-fit: contain; }
.site-footer h2 { margin-bottom: 1rem; color: #fff; font-family: Rubik, sans-serif; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.site-footer address { font-style: normal; }
.site-footer a { text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.footer-nav-list li { margin: .32rem 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(4,26,30,.82); backdrop-filter: blur(6px); }
.profile-dialog { width: min(820px, calc(100% - 28px)); max-height: min(88vh, 900px); border-radius: 18px; color: var(--body); background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.4); }
.dialog-shell { position: relative; max-width: 760px; margin-inline: auto; padding: clamp(2rem, 6vw, 4.5rem); }
.dialog-close, .lightbox-close { position: absolute; z-index: 4; right: 1rem; top: 1rem; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.dialog-close { color: var(--ink); background: var(--mist); }
.profile-kicker { margin-bottom: .8rem; color: var(--teal); font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.profile-dialog h2 { margin-right: 3rem; }
.profile-meta { margin: .7rem 0 2rem; color: var(--teal-dark); font-weight: 500; }
.profile-dialog h3 { margin: 2rem 0 .8rem; font-family: Rubik, sans-serif; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.profile-dialog ul { padding-left: 1.25rem; }
.profile-dialog .profile-hours { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; margin: 1.5rem 0; padding: 1rem; background: var(--mist-light); border-radius: 12px; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; color: #fff; background: transparent; }
.lightbox-shell { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 84px 36px; }
.lightbox figure { display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 1rem; height: 100%; margin: 0; text-align: center; }
.lightbox img { min-height: 0; max-width: 100%; max-height: calc(100vh - 125px); margin: auto; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { font-weight: 500; }
.lightbox-close { color: #fff; background: rgba(255,255,255,.12); }
.lightbox-nav { position: absolute; z-index: 3; top: 50%; width: 50px; height: 64px; border: 0; border-radius: 11px; color: #fff; background: rgba(255,255,255,.12); cursor: pointer; font-size: 2rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.mobile-booking-bar { position: fixed; z-index: 95; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: .5rem; padding: .35rem; background: rgba(12,41,46,.96); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.24); transform: translateY(140%); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.mobile-booking-bar a { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 48px; color: #fff; background: var(--teal); border-radius: 8px; font-weight: 600; text-decoration: none; }
.mobile-booking-bar button { width: 44px; height: 44px; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 1.5rem; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-profile { grid-template-columns: 180px minmax(0,1fr); }
}

@media (max-width: 1040px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 104px; display: none; margin: 0; padding: 1rem 24px 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(6,70,74,.09); }
  .primary-nav.open { display: block; }
  .primary-nav > ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .primary-nav .submenu { position: static; display: block; min-width: 0; padding: 0 0 0 1rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .assistance-grid { grid-template-columns: 1fr; }
  .assistant-profile { max-width: 760px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { justify-self: start; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 32px, 1180px); }
  .section-pad { padding: 4rem 0; }
  .header-inner { width: calc(100% - 32px); }
  .header-inner { min-height: 92px; }
  .brand img { width: 98px; height: 98px; }
  .primary-nav { top: 92px; }
  .hero { padding: 3.6rem 0 4.2rem; }
  .hero-grid { gap: 2.4rem; }
  .hero-visual { width: min(100%, 560px); justify-self: center; }
  .hero-visual::before { inset: 8px -8px -8px 8px; border-radius: 20px; }
  .hero-visual picture { border-radius: 18px; }
  .trust-strip-inner { flex-wrap: wrap; gap: .25rem .65rem; min-height: 72px; padding: .8rem 0; font-size: .75rem; }
  .leadership-stage { grid-template-columns: 1fr; gap: 2.8rem; }
  .leader-kovacs { order: 1; }
  .leader-varga { order: 2; }
  .leader-feher { order: 3; }
  .leader-portrait, .leader-kovacs .leader-portrait { width: min(220px, 62vw); margin-inline: auto; }
  .doctor-profile { grid-template-columns: 1fr; }
  .doctor-portrait { width: min(210px, 62vw); height: auto; margin-inline: auto; }
  .assistant-profile { grid-template-columns: 1fr; text-align: center; }
  .assistant-portrait { width: min(210px, 62vw); height: auto; margin-inline: auto; }
  .assistant-copy .profile-button { margin-right: 0; }
  .principle-grid, .partner-grid, .final-cta-inner, .footer-grid { grid-template-columns: 1fr; }
  .final-cta-inner { align-items: start; }
  .footer-grid { gap: 2.2rem; }
  .footer-logo-panel { width: 168px; height: 168px; }
  .footer-logo { width: 150px; height: 150px; }
  .footer-bottom { flex-direction: column; }
  .profile-dialog { width: 100%; max-height: 94vh; margin-top: auto; border-radius: 18px 18px 0 0; }
  .dialog-shell { padding: 4.5rem 1.35rem 2.5rem; }
  .profile-dialog .profile-hours { grid-template-columns: 1fr; }
  .lightbox-shell { padding: 64px 16px 74px; }
  .lightbox-nav { top: auto; bottom: 12px; height: 48px; }
  .lightbox-prev { left: calc(50% - 62px); }
  .lightbox-next { right: calc(50% - 62px); }
  .lightbox img { max-height: calc(100vh - 155px); }
  .mobile-booking-bar { display: flex; }
  .mobile-booking-bar.is-visible { transform: none; opacity: 1; }
}

@media (max-width: 420px) {
  h1 { font-size: 2.42rem; }
  h2 { font-size: 2rem; }
  .button-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
