/* HIMG Medical — reusable components
   Each block mirrors a component of the HIMG Clinic English prototype and is written so subpages can reuse
   it unchanged. Component index:
     1  Buttons and text links         10 Speciality list with status (.spec-list)
     2  Labels (eyebrow, kicker)       11 Feature split (.feature) and check list (.checks)
     3  Sections and section heads     12 Person cards (.people)
     4  Header and navigation          13 Steps (.steps)
     5  Home hero                      14 Visit panel (.visit)
     6  Page hero (subpages)           15 Contact methods (.contact-methods)
     7  Trust bar                      16 CTA band
     8  Navigation tiles               17 Footer
     9  Service cards (.svc-cards)     18 Note
   Added for the subpages:
     19 Breadcrumb                     23 Prose and sticky aside (.with-aside)
     20 Page hero with photo           24 Form (.form)
     21 Status note (.status-note)     25 Map embed
     22 Speciality and topic cards     26 Notices (.notice)
                                       27 Card photos, credits, drop-down menu
                                       28 Lab package cards (.pkg-cards)
                                       29 FAQ disclosures (.faq) */

/* ---------- 1 Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font); font-weight: 500; font-size: .9375rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn:active { transform: translateY(1px); }
/* primary: brand on light backgrounds, champagne on brand ones */
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--ivory); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--white); }
.on-brand .btn-primary, .hero .btn-primary, .page-hero .btn-primary, .section.deep .btn-primary, .cta-band .btn-primary {
  background: var(--champagne); border-color: var(--champagne); color: var(--brand);
}
.on-brand .btn-primary:hover, .hero .btn-primary:hover, .page-hero .btn-primary:hover, .section.deep .btn-primary:hover, .cta-band .btn-primary:hover {
  background: var(--champagne-hover); border-color: var(--champagne-hover); color: var(--brand);
}
/* secondary: outlined */
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--ivory); }
.btn-ghost { background: transparent; border-color: rgba(247, 243, 234, .7); color: var(--ivory); }
.btn-ghost:hover { background: var(--ivory); border-color: var(--ivory); color: var(--brand); }
/* the ghost button with a round arrow, as "View Patient Results" in the reference */
.btn-arrow { padding-right: 6px; }
.btn-arrow::after {
  content: ""; width: 38px; height: 38px; margin-left: 6px; border-radius: 50%; border: 1px solid currentColor;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23F7F3EA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.btn-arrow:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23065654' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.btn-sm { min-height: 44px; padding: 0 22px; font-size: .875rem; }

.text-link {
  font-weight: 500; color: var(--brand);
  text-decoration: underline; text-decoration-color: var(--champagne); text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link:hover { color: var(--walnut); text-decoration-color: var(--walnut); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* ---------- 2 Labels: eyebrow (sections) and kicker (heroes) ---------- */

.eyebrow, .kicker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  color: var(--walnut); font-family: var(--font); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.3;
}
.eyebrow::before, .kicker::before { content: ""; flex: none; width: 36px; height: 1px; background: var(--champagne); }
.kicker { gap: 16px; color: var(--champagne); font-size: .8125rem; letter-spacing: .22em; }
.kicker::before { width: 40px; background: currentColor; }
.section.deep .eyebrow, .on-brand .eyebrow { color: var(--champagne); }

/* status badge, e.g. "Jelenleg nem elérhető" */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white);
  color: var(--muted); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--stone); }
.badge.is-open::before { background: #3E7D5A; }

/* ---------- 3 Sections ---------- */

.section { padding-block: var(--section); }
.section.tint { background: var(--sand); }
.section.cream { background: var(--cream); }
.section.deep { background: var(--brand); color: var(--on-brand); }
.section.deep h2, .section.deep h3 { color: var(--ivory); }
.section.tint + .section.tint, .section.cream + .section.cream { padding-top: 0; }

.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 72px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head h2.h2-support { font-size: var(--fs-h2-support); }
.section-head > p { margin: 0; font-size: var(--fs-lead); line-height: 1.7; }
.section.deep .section-head > p { color: var(--on-brand); }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.section-foot { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* ---------- 4 Header and navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--brand); border-bottom: 1px solid rgba(212, 193, 163, .18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: 150px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 6px 0 5px; border-bottom: 1px solid transparent;
  color: rgba(247, 243, 234, .88); font-size: .875rem; letter-spacing: .03em; text-decoration: none; white-space: nowrap;
}
.site-nav ul a:hover { color: var(--ivory); border-bottom-color: var(--champagne); }
.site-nav ul a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--champagne); }
.site-nav .btn { min-height: 44px; padding: 0 22px; font-size: .875rem; background: var(--ivory); border-color: var(--ivory); color: var(--brand); }
.site-nav .btn:hover { background: var(--champagne); border-color: var(--champagne); color: var(--brand); }
@media (max-width: 1240px) { .site-nav { gap: 24px; } .site-nav ul { gap: 20px; } }

.nav-toggle {
  display: none; position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(212, 193, 163, .55); background: transparent; color: var(--ivory); cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; margin-left: -9px; background: currentColor; transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle .bars { top: 50%; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); background: var(--ivory); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--ivory); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 20px; padding: 8px var(--gutter) 28px;
    background: var(--brand); border-top: 1px solid rgba(212, 193, 163, .18); box-shadow: 0 24px 40px rgba(4, 59, 58, .35);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 16px 0; font-size: 1rem; border-bottom-color: rgba(212, 193, 163, .18); }
  .site-nav .btn { align-self: flex-start; min-height: 50px; }
}
@media (max-width: 480px) { :root { --header-h: 76px; } .brand img { width: 128px; } .site-nav .btn { align-self: stretch; } }

/* ---------- 5 Home hero: text on brand (left), clinic photo (right) ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  background: var(--brand); color: var(--on-brand);
}
.hero-media { position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--brand-deep); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* narrow brand fade on the left edge, as in the reference */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 86, 84, 1) 0%, rgba(6, 86, 84, .8) 3%, rgba(6, 86, 84, .32) 7%, rgba(6, 86, 84, 0) 11%);
}
.hero-body {
  grid-column: 1; grid-row: 1;
  padding: 40px clamp(24px, 3vw, 48px) 40px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero-title {
  margin: 0 0 18px; color: var(--ivory); font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 1.9vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; max-width: 18ch;
}
.hero-title em { font-style: italic; color: var(--champagne); }
.hero-lede { margin: 0 0 26px; color: rgba(247, 243, 234, .9); font-size: var(--fs-lead); line-height: 1.6; max-width: 46ch; }
.hero .actions .btn { min-height: 52px; }
.hero-note { margin: 22px 0 0; color: var(--on-brand-muted); font-size: var(--fs-small); }
.hero-note a { color: var(--ivory); text-decoration-color: var(--champagne); }
@media (max-width: 1199px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
  .hero-media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 8; }
  .hero-media::after { background: linear-gradient(0deg, rgba(6, 86, 84, 1) 0%, rgba(6, 86, 84, .7) 5%, rgba(6, 86, 84, 0) 14%); }
  .hero-body { grid-column: 1; grid-row: 2; padding: 8px var(--gutter) 0; max-width: calc(var(--wrap)); }
}
@media (max-width: 760px) {
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-title { font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.25rem); }
  .hero-lede { font-size: 1rem; }
  .kicker { font-size: .75rem; letter-spacing: .18em; }
}
@media (max-width: 480px) { .hero .actions .btn { flex: 1 1 100%; } }

/* ---------- 6 Page hero (subpages): brand band, serif title, champagne rule ---------- */

.page-hero { background: var(--brand); color: var(--on-brand); padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 {
  color: var(--ivory); font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem); line-height: 1.04; letter-spacing: -0.015em; max-width: 16ch;
}
.page-hero h1::after { content: ""; display: block; width: 56px; height: 1px; margin-top: 28px; background: var(--champagne); }
.page-hero p { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; }

/* ---------- 7 Trust bar: four facts between champagne hairlines ---------- */

.trust-bar { padding-top: clamp(28px, 4vw, 48px); }
.trust-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: flex-start; gap: 14px; padding: 4px clamp(12px, 1.6vw, 24px); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { padding-right: 0; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon { flex: none; width: 32px; height: 32px; fill: none; stroke: var(--bronze); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.trust-item p { margin: 0; line-height: 1.3; }
.trust-item b { display: block; font-family: var(--serif); font-weight: 400; color: var(--brand); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); letter-spacing: -0.01em; }
.trust-item p > span { display: block; margin-top: 6px; color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 960px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .trust-item, .trust-item:first-child, .trust-item:last-child { padding: 0; }
  .trust-item + .trust-item { border-left: 0; }
}
@media (max-width: 480px) { .trust-list { gap: 24px 16px; } .trust-item { flex-direction: column; gap: 8px; } }

/* ---------- 8 Navigation tiles: square photo tiles with a champagne inner frame ---------- */

.nav-tiles { --nt-gap: 16px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--nt-gap); }
.nav-tiles > li { display: flex; flex: 0 0 calc((100% - 4 * var(--nt-gap)) / 5); min-width: 0; }
.nav-tile {
  --frame: 10px;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 100%;
  aspect-ratio: 1 / 1; padding: 0 calc(var(--frame) + 12px) calc(var(--frame) + 20px); overflow: hidden; isolation: isolate;
  background: var(--brand); color: var(--ivory); text-decoration: none; text-align: center;
}
.nav-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.nav-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 86, 84, .08) 0%, rgba(6, 86, 84, 0) 40%, rgba(6, 86, 84, .78) 100%);
  transition: background-color .4s ease;
}
.nav-tile::after {
  content: ""; position: absolute; inset: var(--frame); border: 1px solid rgba(212, 193, 163, .8); pointer-events: none;
  transition: inset .4s ease, border-color .4s ease;
}
.nt-body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nt-body::before { content: ""; width: 22px; height: 1px; background: var(--champagne); transition: width .4s ease; }
.nt-label { font-size: var(--fs-label); font-weight: 500; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); }
.nav-tile:hover, .nav-tile:focus-visible { color: var(--ivory); }
.nav-tile:hover img, .nav-tile:focus-visible img { transform: scale(1.06); }
.nav-tile:hover::before, .nav-tile:focus-visible::before { background-color: rgba(6, 86, 84, .18); }
.nav-tile:hover::after, .nav-tile:focus-visible::after { inset: calc(var(--frame) + 4px); border-color: var(--champagne); }
.nav-tile:hover .nt-body::before, .nav-tile:focus-visible .nt-body::before { width: 44px; }
.nav-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 1000px) { .nav-tiles > li { flex-basis: calc((100% - 2 * var(--nt-gap)) / 3); } }
@media (max-width: 640px) {
  .nav-tiles { --nt-gap: 10px; }
  .nav-tiles > li { flex-basis: calc((100% - var(--nt-gap)) / 2); }
  .nav-tile { --frame: 8px; padding-bottom: calc(var(--frame) + 14px); }
  .nt-label { font-size: .6875rem; letter-spacing: .18em; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-tile img, .nav-tile::before, .nav-tile::after, .nt-body::before { transition: none; }
  .nav-tile:hover img, .nav-tile:focus-visible img { transform: none; }
}

/* intro split: a serif statement beside a paragraph, between hairlines */
.intro { display: grid; grid-template-columns: 1fr 1.4fr; border-bottom: 1px solid var(--line); }
.intro > div { padding: clamp(32px, 5vw, 56px) var(--gutter); }
.intro > div:first-child { padding-left: 0; }
.intro > div:last-child { padding-right: 0; border-left: 1px solid var(--line); }
.intro .lead { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); line-height: 1.45; color: var(--ink); }
.intro p { font-size: var(--fs-lead); }
.intro p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro > div { padding-inline: 0; }
  .intro > div:last-child { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- 9 Service cards: brand cards, photo or champagne line icon on top ---------- */

/* flex rather than grid so an incomplete last row is centred, like the navigation tiles */
.svc-cards { --svc-gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--svc-gap); list-style: none; margin: 0; padding: 0; }
.svc-cards > li { display: flex; flex: 0 0 calc((100% - 2 * var(--svc-gap)) / 3); min-width: 0; }
.svc-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden;
  background: var(--brand); color: rgba(247, 243, 234, .84); border: 1px solid rgba(212, 193, 163, .28);
  box-shadow: var(--shadow-card); transition: border-color .3s ease, transform .3s ease;
}
.svc-card:hover { border-color: rgba(212, 193, 163, .7); transform: translateY(-3px); }
.svc-media { position: relative; flex: none; height: 132px; padding: 28px 28px 0; }
.svc-media.has-photo { height: 150px; padding: 0; margin-bottom: -8px; }
.svc-media.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-media.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 86, 84, 0) 40%, var(--brand) 100%); }
.svc-icon { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(212, 193, 163, .55); border-radius: 50%; }
.svc-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--champagne); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { position: relative; margin: 0 28px 10px; color: var(--ivory); font-size: var(--fs-h3); line-height: 1.2; }
.svc-card h3::before { content: ""; display: block; width: 28px; height: 1px; margin-bottom: 14px; background: var(--champagne); }
.svc-card p { margin: 0 28px 20px; font-size: .9375rem; line-height: 1.6; }
.svc-link {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: auto 28px 28px; padding-bottom: 3px;
  color: var(--champagne); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-decoration: none;
  border-bottom: 1px solid rgba(212, 193, 163, .45);
}
.svc-link::after { content: "\2192"; transition: transform var(--ease); }
.svc-link:hover, .svc-link:focus-visible { color: var(--ivory); border-bottom-color: var(--ivory); }
.svc-link:hover::after { transform: translateX(3px); }
.svc-link:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }
@media (max-width: 1000px) { .svc-cards > li { flex-basis: calc((100% - var(--svc-gap)) / 2); } }
.svc-cards.cols-2 { max-width: 920px; margin-inline: auto; }
.svc-cards.cols-2 > li { flex-basis: calc((100% - var(--svc-gap)) / 2); }
.svc-cards.cols-2 .svc-media.has-photo { height: 190px; }
@media (max-width: 640px) {
  .svc-cards { --svc-gap: 14px; }
  .svc-cards > li, .svc-cards.cols-2 > li { flex-basis: 100%; }
  .svc-media { height: auto; padding: 22px 22px 18px; }
  .svc-media.has-photo, .svc-cards.cols-2 .svc-media.has-photo { height: 160px; padding: 0; margin-bottom: -4px; }
  .svc-card h3, .svc-card p { margin-inline: 22px; }
  .svc-link { margin: auto 22px 22px; }
}
@media (prefers-reduced-motion: reduce) { .svc-card, .svc-link::after { transition: none; } .svc-card:hover { transform: none; } }

/* ---------- 10 Speciality list with status ---------- */

.spec-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px;
  list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--champagne);
}
.spec-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.spec-list .spec-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.spec-list a.spec-name { text-decoration: none; }
.spec-list a.spec-name:hover { color: var(--walnut); text-decoration: underline; text-decoration-color: var(--champagne); }
@media (max-width: 760px) { .spec-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .spec-list li { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ---------- 11 Feature split and check list ---------- */

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
/* champagne offset frame behind the photo */
.feature-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--champagne); z-index: -1; }
.feature-media { isolation: isolate; }
.feature-body h2 { font-size: var(--fs-h2-support); max-width: 18ch; }
.feature-body > p:not(.eyebrow):not(.note) { font-size: var(--fs-lead); }
.feature-body .actions { margin-top: 28px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.reverse .feature-media { order: 0; }
  .feature-media { margin-right: 18px; }
}

.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; line-height: 1.55; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.25' fill='none' stroke='%23B8A27F' stroke-width='1'/%3E%3Cpath d='M6 10.4l2.7 2.7 5.3-6' fill='none' stroke='%23065654' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checks.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 560px) { .checks.cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 12 Person cards (on brand) ---------- */

.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.person img { width: 100%; aspect-ratio: 350 / 441; object-fit: cover; background: var(--brand-deep); }
.person h3 { margin: 18px 0 6px; font-size: 1.25rem; font-weight: 500; }
.person p { margin: 0; color: var(--champagne); font-size: .875rem; font-weight: 500; letter-spacing: .02em; line-height: 1.45; }
@media (min-width: 641px) and (max-width: 1100px) {
  .people { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .person { grid-column: span 2; }
  .person:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .person h3 { font-size: 1.1rem; } }

.team-note {
  margin: clamp(40px, 5vw, 64px) 0 0; padding: 4px 0 4px 24px; max-width: 60ch;
  border-left: 1px solid var(--champagne); color: var(--ivory); font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5;
}

/* ---------- 13 Steps: champagne rule and serif numerals ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--champagne); padding-top: 24px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 16px;
  color: var(--walnut); font-family: var(--serif); font-size: 1.75rem; line-height: 1;
}
.steps h3 { font-size: 1.3rem; }
.steps p { margin: 0; font-size: .9375rem; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- 14 Visit panel: address, hours and directions ---------- */

.visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; background: var(--white); border: 1px solid var(--line); }
.visit-media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.visit-body { padding: clamp(28px, 4vw, 48px); }
.visit-body h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.visit dl { display: grid; gap: 18px; margin: 24px 0 28px; }
.visit dt { color: var(--walnut); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.visit dd { margin: 4px 0 0; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.visit dd a { text-decoration: none; }
.visit dd a:hover { text-decoration: underline; text-decoration-color: var(--champagne); }
@media (max-width: 860px) { .visit { grid-template-columns: minmax(0, 1fr); } .visit-media img { min-height: 0; aspect-ratio: 16 / 9; } }

/* ---------- 15 Contact methods ---------- */

.contact-methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-methods a, .contact-methods .cm-static {
  display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 22px 24px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none;
  transition: border-color var(--ease), background-color var(--ease);
}
.contact-methods a:hover { border-color: var(--brand); }
.cm-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%;
  border: 1px solid var(--champagne); color: var(--brand);
}
.cm-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cm-label { font-weight: 500; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--walnut); }
.cm-value { margin-top: 4px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; overflow-wrap: anywhere; }
.on-brand .contact-methods a, .on-brand .contact-methods .cm-static { background: rgba(255,255,255,.05); border-color: rgba(212, 193, 163, .28); color: var(--ivory); }
.on-brand .contact-methods a:hover { background: rgba(255,255,255,.1); border-color: var(--champagne); }
.on-brand .cm-icon { color: var(--champagne); border-color: rgba(212, 193, 163, .6); }
.on-brand .cm-label { color: var(--champagne); }
@media (max-width: 860px) { .contact-methods { grid-template-columns: minmax(0, 1fr); } .contact-methods a, .contact-methods .cm-static { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; padding: 16px 20px; } .contact-methods a, .contact-methods .cm-static { flex-wrap: nowrap; } .cm-icon { flex: none; margin-bottom: 0; } .cm-text { flex: 1 1 0; min-width: 0; } }

/* ---------- 16 CTA band: full-bleed brand with a faint champagne curve ---------- */

.cta-band { position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); padding: clamp(64px, 9vw, 128px) 0; }
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ivory); font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.75rem); max-width: 18ch; }
.cta-band h2 em { font-style: italic; color: var(--champagne); }
.cta-band p:not(.eyebrow) { font-size: 1.125rem; max-width: 52ch; }
.cta-band .actions { margin-top: 28px; }
.cta-band .contact-methods { margin-top: 44px; }
.cta-curve { position: absolute; top: 0; right: -60px; height: 100%; width: auto; pointer-events: none; opacity: .45; }
.cta-curve path { fill: none; stroke: var(--brand-logo); stroke-width: 1.5; stroke-linecap: round; }
@media (max-width: 760px) { .cta-curve { opacity: .12; } }

/* ---------- 17 Footer ---------- */

.site-footer { background: var(--brand); color: var(--on-brand-muted); font-size: var(--fs-small); border-top: 1px solid rgba(212, 193, 163, .22); padding: 72px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line-on-brand);
}
.footer-grid .brand img { width: 150px; margin-bottom: 18px; }
.footer-grid p { color: var(--on-brand-muted); max-width: 34ch; }
.footer-grid h3 { margin-bottom: 16px; color: var(--champagne); font-family: var(--font); font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(247, 243, 234, .82); text-decoration: none; }
.footer-grid a:hover { color: var(--champagne); text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px;
  color: rgba(247, 243, 234, .6); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 18 Note ---------- */

.note { margin: 28px 0 0; padding: 16px 20px; background: var(--cream); border-left: 2px solid var(--champagne); color: var(--text); font-size: .9375rem; }
.section.tint .note { background: var(--white); }

/* ---------- 19 Breadcrumb (on the page hero) ---------- */

.breadcrumb { margin: 0 0 clamp(28px, 4vw, 44px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; font-size: .8125rem; letter-spacing: .03em; color: var(--on-brand-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(212, 193, 163, .6); }
.breadcrumb a { color: rgba(247, 243, 234, .82); text-decoration: none; }
.breadcrumb a:hover { color: var(--champagne); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ivory); }

/* ---------- 20 Page hero with photo: text left, framed photo right ---------- */

.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.page-hero-grid h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.25rem); }
.page-hero .lede { margin: 0; max-width: 46ch; color: rgba(247, 243, 234, .9); }
.page-hero .actions { margin-top: 30px; }
.page-hero-media { position: relative; isolation: isolate; margin: 0 18px 18px 0; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; background: var(--brand-deep); }
.page-hero-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(212, 193, 163, .55); z-index: -1; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) { .page-hero .actions .btn { flex: 1 1 100%; } }

/* ---------- 21 Status note: "A szakrendelés előkészítés alatt áll." ---------- */

.status-note {
  display: inline-flex; align-items: center; gap: 12px; margin: 26px 0 0; padding: 10px 20px 10px 16px;
  border: 1px solid rgba(212, 193, 163, .6); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .06);
  color: var(--ivory); font-size: .9375rem; font-weight: 500; line-height: 1.4;
}
.status-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--champagne); box-shadow: 0 0 0 4px rgba(212, 193, 163, .2); }
.cta-band .status-note { margin: 4px 0 22px; }
.status-note.on-light { border-color: var(--champagne); background: var(--white); color: var(--ink); }
.status-note.on-light::before { background: var(--bronze); box-shadow: 0 0 0 4px rgba(139, 115, 85, .15); }
.badge.is-prep { border-color: var(--champagne); color: var(--walnut); }
.badge.is-prep::before { background: var(--bronze); }

/* ---------- 22 Speciality cards (whole card is a link) and topic cards ---------- */

.spec-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.spec-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-cards > li { display: flex; min-width: 0; }
.spec-card {
  display: flex; flex-direction: column; width: 100%; padding: 26px 24px 24px;
  background: var(--white); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.spec-card:hover { color: var(--text); border-color: var(--champagne); transform: translateY(-3px); box-shadow: 0 18px 36px -26px rgba(4, 59, 58, .45); }
.sc-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border: 1px solid var(--champagne); border-radius: 50%; color: var(--brand); }
.sc-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.spec-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.3rem; }
.spec-card p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.spec-card .badge { margin-top: auto; align-self: flex-start; }
.sc-more { margin-top: 16px; color: var(--brand); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; }
.sc-more::after { content: " \2192"; }
.spec-card:hover .sc-more { color: var(--walnut); }
/* dark closing card: link to the overview or to the contact page */
.spec-card.is-dark { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.spec-card.is-dark h3 { color: var(--ivory); }
.spec-card.is-dark p { color: var(--on-brand); }
.spec-card.is-dark .sc-icon { color: var(--champagne); border-color: rgba(212, 193, 163, .6); }
.spec-card.is-dark .sc-more { margin-top: auto; color: var(--champagne); }
.spec-card.is-dark:hover { color: var(--on-brand); border-color: var(--champagne); }
.spec-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 1100px) { .spec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .spec-cards.cols-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .spec-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .spec-card { transition: none; } .spec-card:hover { transform: none; } }

.topic-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: topic; }
.topic-card { counter-increment: topic; height: 100%; padding: clamp(26px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--champagne); }
.topic-card::before { content: counter(topic, decimal-leading-zero); display: block; margin-bottom: 18px; color: var(--walnut); font-family: var(--serif); font-size: 1.5rem; line-height: 1; font-variant-numeric: lining-nums; }
.topic-card h3 { margin-bottom: 12px; }
.topic-card p { margin: 0; }
.section.tint .topic-card, .section.cream .topic-card { border-color: var(--white); border-top-color: var(--champagne); }

/* ---------- 23 Prose and sticky aside ---------- */

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 18px; font-size: var(--fs-h2-support); }
.prose h3 { margin: 36px 0 10px; }
.prose p, .prose li { font-size: var(--fs-lead); }
.prose .checks { margin: 20px 0 28px; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--champagne); }
.aside-card h2 { font-size: 1.5rem; }
.aside-card dl { display: grid; gap: 16px; margin: 20px 0 26px; }
.aside-card dt { color: var(--walnut); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.aside-card dd { margin: 4px 0 0; color: var(--ink); font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; font-variant-numeric: lining-nums; }
.aside-card dd a { text-decoration: none; }
.aside-card .btn { width: 100%; }
@media (max-width: 960px) { .with-aside { grid-template-columns: minmax(0, 1fr); } .aside-card { position: static; } }

/* ---------- 24 Form (prototype: never sends data) ---------- */

.form-card { padding: clamp(26px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--champagne); }
.form-card h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.form { display: grid; gap: 20px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: .875rem; font-weight: 500; }
.field .req { color: var(--walnut); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #CDBFA8; border-radius: var(--radius-s);
  background: var(--ivory); color: var(--text); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: var(--white); }
.field .hint { margin: 8px 0 0; color: var(--muted); font-size: .8125rem; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; line-height: 1.5; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.form .btn { justify-self: start; }
.form-status[hidden] { display: none; }
.form-status.is-error { border-left-color: #9A4B3C; }
.form-status.is-error svg { stroke: #9A4B3C; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.altcha-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 16px; border: 1px solid var(--line); background: var(--white); }
.altcha-label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .9rem; font-weight: 500; cursor: pointer; }
.altcha-check { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.altcha-state { color: var(--muted); font-size: .8125rem; }
.altcha-box.is-busy .altcha-check { opacity: .45; }
.altcha-box.is-done .altcha-state { color: var(--brand); font-weight: 500; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } .form .btn { justify-self: stretch; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-grid h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.contact-methods.stack { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
.contact-methods.stack a, .contact-methods.stack .cm-static { flex-direction: row; flex-wrap: nowrap; align-items: center; column-gap: 16px; padding: 16px 20px; }
.contact-methods.stack .cm-icon { flex: none; margin-bottom: 0; }
.contact-methods.stack .cm-text { flex: 1 1 0; min-width: 0; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 25 Map embed ---------- */

.map-embed { position: relative; aspect-ratio: 16 / 6.5; background: var(--sand); border: 1px solid var(--line); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .map-embed { aspect-ratio: 4 / 3.4; } }

/* ---------- 26 Notices: general disclaimer and urgent help ---------- */

.notice { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--champagne); font-size: .9375rem; }
.notice p { margin: 0; max-width: none; }
.notice p + p { margin-top: 8px; }
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--bronze); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.notice + .notice { margin-top: 12px; }

/* ---------- 27 Photos on speciality cards, photo credit, speciality drop-down menu ---------- */

/* photo bleeds to the card edges; the round icon sits on its lower edge */
.sc-photo { display: block; margin: -26px -24px 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.spec-card:hover .sc-photo img { transform: scale(1.04); }
.sc-photo + .sc-icon { position: relative; margin-top: -26px; background: var(--white); }
@media (prefers-reduced-motion: reduce) { .sc-photo img { transition: none; } .spec-card:hover .sc-photo img { transform: none; } }

.page-hero-media figcaption { margin-top: 10px; color: var(--on-brand-muted); font-size: .75rem; letter-spacing: .02em; }
.page-hero-media figcaption a { color: inherit; }
.page-hero-media figcaption a:hover { color: var(--champagne); }

/* Szakrendelések drop-down: opens on hover and keyboard focus on desktop, always listed in the mobile menu */
.site-nav .has-sub { position: relative; }
.sub-menu { position: absolute; top: 100%; left: 50%; z-index: 40; width: 520px; padding-top: 18px; transform: translateX(-50%); visibility: hidden; opacity: 0; transition: opacity var(--ease), visibility var(--ease); }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.site-nav .sub-menu ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 12px;
  background: var(--ivory); border: 1px solid var(--line); border-top: 2px solid var(--champagne); box-shadow: 0 24px 48px -20px rgba(4, 59, 58, .45);
}
.site-nav .sub-menu a {
  display: flex; align-items: center; gap: 12px; padding: 8px; border: 0;
  color: var(--ink); font-size: .9rem; letter-spacing: 0; white-space: normal;
}
.site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus-visible, .site-nav .sub-menu a[aria-current="page"] { background: var(--white); color: var(--brand); }
.site-nav .sub-menu a[aria-current="page"] span { text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 4px; }
.sub-menu img { flex: none; width: 64px; height: 44px; object-fit: cover; }
.site-nav .sub-menu .sub-all a { justify-content: center; height: 100%; color: var(--brand); font-weight: 500; }
.sub-all span::after { content: " \2192"; }
.sub-menu .sub-all { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .sub-menu { transition: none; } }
@media (max-width: 1180px) {
  .sub-menu { position: static; width: auto; padding: 0 0 12px; transform: none; visibility: visible; opacity: 1; }
  .site-nav .sub-menu ul { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav .sub-menu a { padding: 8px 0 8px 16px; color: rgba(247, 243, 234, .82); font-size: .9375rem; border-bottom: 0; }
  .site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus-visible, .site-nav .sub-menu a[aria-current="page"] { background: none; color: var(--ivory); }
  .sub-menu img { width: 48px; height: 34px; }
  .site-nav .sub-menu .sub-all a { justify-content: flex-start; color: var(--champagne); }
}

/* ---------- 28 Lab package cards: price, notes and the test list in a disclosure ---------- */

.pkg-group + .pkg-group { margin-top: clamp(48px, 6vw, 72px); }
.pkg-group > h3 { margin-bottom: 8px; }
.pkg-group > p { margin-bottom: 0; color: var(--muted); }
.pkg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; list-style: none; margin: 24px 0 0; padding: 0; }
.pkg-meta { display: grid; gap: 6px; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: .875rem; }
.pkg-meta div { display: flex; justify-content: space-between; gap: 16px; }
.pkg-meta dt { color: var(--muted); }
.pkg-meta dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: lining-nums; }
.pkg-tests { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: .8125rem; font-variant-numeric: lining-nums; }
.pkg-tests th, .pkg-tests td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pkg-tests th { color: var(--walnut); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.pkg-tests td:last-child, .pkg-tests th:last-child { padding-left: 12px; text-align: right; white-space: nowrap; }
.pkg-tests th:last-child { white-space: normal; }
@media (max-width: 760px) { .pkg-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 29 FAQ disclosures on speciality pages (same card language as .pkg-card) ---------- */

.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--champagne); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.faq summary::after { content: "+"; flex: none; color: var(--bronze); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover h3 { color: var(--walnut); }
.faq details > div { padding: 0 22px 20px; }
.faq details p { margin: 0; }
.compare-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Speciality pages: the compare block follows a white section, so it needs no extra top padding */
.section.compare { padding-top: 0; }
.compare-media { margin: clamp(24px, 3vw, 36px) 0 0; }
.compare-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare-media figcaption { margin-top: 8px; color: var(--muted); font-size: .75rem; letter-spacing: .02em; }
.compare-media figcaption a { color: inherit; }

/* Thank-you page (koszonjuk/): one centred column, each text on its own line */
.thanks { display: flex; flex-direction: column; align-items: center; max-width: 1040px; margin: clamp(28px, 5vw, 56px) auto 0; text-align: center; }
.thanks .kicker::after { content: ""; flex: none; width: 40px; height: 1px; background: currentColor; }
.thanks h1 { max-width: none; margin-bottom: 28px; }
.thanks h1::after { margin-inline: auto; }
.thanks .lede { max-width: none; }
.thanks .lede + .lede { margin-top: 8px; }
.thanks .actions { margin-top: 32px; justify-content: center; }
.thanks-more { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.thanks-more .eyebrow { justify-content: center; margin-inline: auto; }
.thanks-more .eyebrow::after { content: ""; flex: none; width: 36px; height: 1px; background: var(--champagne); }
.thanks-more p:not(.eyebrow) { max-width: none; margin: 0 auto; }
.thanks-more p + p { margin-top: 6px; }

/* Lab package pages (laborvizsgalatok/<csomag>/): price card in the hero, full test table; overview card link */
.pkg-facts { padding: clamp(24px, 3vw, 32px); background: var(--white); border-top: 2px solid var(--champagne); color: var(--ink); }
.pkg-facts p { margin: 0; font-size: .9375rem; line-height: 1.5; }
.page-hero .pkg-facts p { font-size: .9375rem; }
.pkg-facts .pkg-facts-label { color: var(--walnut); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; }
.page-hero .pkg-facts .pkg-facts-price { margin-top: 6px; color: var(--brand); font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1.1; font-variant-numeric: lining-nums; }
.page-hero .pkg-facts .pkg-facts-fee { margin-top: 12px; padding: 10px 12px; background: var(--ivory); border-left: 2px solid var(--champagne); color: var(--ink); font-size: .875rem; }
.pkg-facts .pkg-meta { margin-top: 18px; }
.pkg-table { padding: clamp(16px, 3vw, 28px); background: var(--white); border: 1px solid var(--line); }
.pkg-table .pkg-tests { margin-top: 0; font-size: .875rem; }
.pkg-table .pkg-tests th, .pkg-table .pkg-tests td { padding-left: 0; text-align: left; white-space: normal; }

/* Bemutatkozás: four people in one row (the .people grid is built for five) */
.people.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.people.cols-4 .person h3 { color: var(--ivory); }
@media (min-width: 641px) and (max-width: 1100px) {
  .people.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .people.cols-4 .person, .people.cols-4 .person:nth-child(4):nth-last-child(2) { grid-column: auto; }
}
@media (max-width: 640px) { .people.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 30 Cookie consent banner, map placeholder, footer button ---------- */
.cookie-banner {
  position: fixed; z-index: 60; right: clamp(12px, 3vw, 32px); bottom: clamp(12px, 3vw, 32px); left: auto;
  width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
  padding: clamp(20px, 3vw, 28px); background: var(--white); border-top: 2px solid var(--champagne);
  box-shadow: 0 18px 48px rgba(4, 59, 58, .28); color: var(--text); font-size: .9375rem;
}
.cookie-banner h2 { margin: 0 0 10px; font-size: 1.35rem; }
.cookie-banner p { margin: 0; line-height: 1.55; }
.cookie-banner a { color: var(--brand); }
.cookie-settings { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cookie-settings[hidden] { display: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 480px) { .cookie-actions .btn { flex: 1 1 100%; } }
.map-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; padding: 24px; text-align: center; }
.map-consent p { margin: 0; max-width: 52ch; }
.map-consent .actions { justify-content: center; align-items: center; }
.map-embed:has(.map-consent) { min-height: 240px; }
.footer-link { padding: 0; border: 0; background: none; color: rgba(247, 243, 234, .82); font: inherit; cursor: pointer; text-align: left; }
.footer-link:hover { color: var(--champagne); text-decoration: underline; }
.cookie-table td:first-child { font-weight: 500; }
.cookie-table th:last-child, .cookie-table td:last-child { white-space: normal; text-align: left; padding-left: 12px; }
.cookie-table th + th, .cookie-table td + td { padding-left: 12px; }
@media (max-width: 640px) {
  .cookie-table thead { display: none; }
  .cookie-table tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cookie-table td, .cookie-table td + td, .cookie-table td:last-child { padding: 0; border: 0; }
}

/* 'Hol talál minket' panel with the map instead of the photo */
.visit-media.map-embed { aspect-ratio: auto; min-height: 360px; border: 0; border-right: 1px solid var(--line); }
@media (max-width: 860px) { .visit-media.map-embed { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* Lab overview package cards: green name band, prominent price, lifted card */
.pkg-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pkg-card:hover { transform: translateY(-4px); border-color: var(--champagne); box-shadow: 0 26px 48px -26px rgba(6, 86, 84, .7); }
.pkg-head {
  display: block; padding: clamp(20px, 2.6vw, 26px) clamp(22px, 3vw, 30px);
  background: var(--brand); border-bottom: 3px solid var(--champagne); text-decoration: none;
}
.pkg-head h4 { margin: 0; color: var(--ivory); font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); font-weight: 500; line-height: 1.25; }
.pkg-head:hover h4, .pkg-head:focus-visible h4 { color: var(--champagne); }
.pkg-body { display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 3vw, 30px); }
.pkg-body > p { margin: 0 0 20px; font-size: .9375rem; }
.pkg-pricebox {
  display: grid; gap: 2px; margin-top: auto; padding: 16px 18px;
  background: var(--cream); border-left: 3px solid var(--brand);
}
.pkg-price-label { color: var(--walnut); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; }
.pkg-pricebox .pkg-price { color: var(--brand); font-family: var(--serif); font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); line-height: 1.15; font-variant-numeric: lining-nums; }
.pkg-fee { color: var(--ink); font-size: .875rem; font-weight: 500; }
.pkg-body .pkg-meta { margin-top: 16px; }
.pkg-body .pkg-more { align-self: stretch; margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { .pkg-card { transition: none; } .pkg-card:hover { transform: none; } }
/* overview card button "Érdekel": champagne, so it stands apart from the green name band */
.pkg-body .pkg-more { background: var(--champagne); border-color: var(--champagne); color: var(--brand); font-weight: 600; }
.pkg-body .pkg-more:hover { background: var(--champagne-hover); border-color: var(--champagne-hover); color: var(--brand); }
/* Lab package pages: more air between the lines of the (often two-line) title */
.pkg-hero h1 { line-height: 1.18; }
