/* HafMed Clinics — site styles
   Brand: logo red (#D9262C) + ink black, geometric Jost headings to echo the wordmark. */

:root {
    --red: #D9262C;
    --red-dark: #B51C22;
    --red-soft: #FCEDEE;
    --ink: #16181D;
    --ink-2: #3B404B;
    --muted: #646B78;
    --paper: #FBF8F5;
    --surface: #FFFFFF;
    --line: #ECE5DF;
    --line-strong: #DDD4CC;
    --green: #17804A;
    --green-soft: #E7F4EC;

    --font-display: "Jost", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 8px 24px -8px rgba(22, 24, 29, .10);
    --shadow-lg: 0 2px 4px rgba(22, 24, 29, .04), 0 24px 48px -16px rgba(22, 24, 29, .18);
    --container: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;

    color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.005em; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 6px;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 10vw, 120px); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.section--white { background: var(--surface); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); margin: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
}
.eyebrow::before {
    content: "";
    width: 28px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--ink);
    --btn-border: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1.5px solid var(--btn-border);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { color: var(--btn-fg); border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn--primary {
    --btn-bg: var(--red);
    --btn-fg: #fff;
    --btn-border: var(--red);
    box-shadow: 0 8px 20px -10px rgba(217, 38, 44, .7);
}
.btn--primary:hover { --btn-bg: var(--red-dark); border-color: var(--red-dark); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-border: var(--ink); }
.btn--dark:hover { --btn-bg: #000; }

.btn--on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .35); }
.btn--on-dark:hover { border-color: #fff; }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 500;
    text-decoration: none;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 245, .88);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(22, 24, 29, .4); }

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}
.nav__brand { flex: none; }
.nav__brand img { width: 168px; height: auto; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}
.nav__links a {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: 10px;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.nav__phone .icon { color: var(--red); }

.nav__toggle {
    display: none;
    margin-left: auto;
    width: 46px; height: 46px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav-open .nav__toggle .icon-open { display: none; }
.nav-open .nav__toggle .icon-close { display: block; }

@media (max-width: 1023px) {
    .nav__phone { display: none; }
}

@media (max-width: 859px) {
    :root { --header-h: 68px; }
    .nav__brand img { width: 146px; }
    .nav__toggle { display: inline-flex; }
    .nav__menu {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        padding: 12px var(--gutter) 24px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -24px rgba(22, 24, 29, .35);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav-open .nav__menu { opacity: 1; transform: none; visibility: visible; }
    .nav__links { flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 16px; }
    .nav__links a { padding: 14px 4px; font-size: 1.25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav__links a::after { display: none; }
    .nav__links a[aria-current="page"] { color: var(--red); }
    .nav__actions .btn { width: 100%; }
}

@media (min-width: 860px) {
    .nav__menu { display: contents; }
}

/* ---------- ECG motif ---------- */
.ecg {
    position: absolute;
    left: 0; right: 0;
    width: 100%;
    height: 160px;
    pointer-events: none;
    color: var(--red);
}
.ecg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.js .ecg--draw path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ecg-draw 2.4s cubic-bezier(.6, .05, .3, 1) .2s forwards;
}
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 112px);
}
.hero .ecg { top: auto; bottom: 0; height: 120px; opacity: .85; }
.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__copy { position: relative; z-index: 1; }
.hero__copy .lead { max-width: 34ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .975rem;
    color: var(--ink-2);
}
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks .icon {
    width: 22px; height: 22px;
    padding: 4px;
    stroke-width: 3;
    color: var(--red);
    background: var(--red-soft);
    border-radius: 50%;
}

.hero__grid > * { min-width: 0; }
@media (max-width: 899px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero .ecg { height: 90px; opacity: .5; }
}

/* ---------- Visit card (status + hours) ---------- */
.visit-card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(24px, 3vw, 32px);
    box-shadow: var(--shadow-lg);
}
.visit-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.visit-card h2 { font-size: 1.375rem; margin: 0; }
.visit-card__row {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 1rem;
}
.visit-card__row > .icon { margin-top: 3px; color: var(--red); }
.visit-card__row strong { display: block; color: var(--ink); font-weight: 600; }
.visit-card__row a { font-weight: 500; }
.visit-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    background: #F1EEEA;
    color: var(--ink-2);
}
.status::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.status--open { background: var(--green-soft); color: var(--green); }
.status--open::before { box-shadow: 0 0 0 0 rgba(23, 128, 74, .5); animation: pulse 2s infinite; }
.status--closed { background: var(--red-soft); color: var(--red-dark); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(23, 128, 74, .45); }
    70% { box-shadow: 0 0 0 8px rgba(23, 128, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(23, 128, 74, 0); }
}

.hours { width: 100%; border-collapse: collapse; font-size: .975rem; }
.hours th, .hours td { padding: 7px 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--ink); }
.hours tr.is-today th::after {
    content: "Today";
    margin-left: 8px;
    padding: 2px 8px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--red-dark);
    background: var(--red-soft);
    border-radius: 999px;
    vertical-align: 1px;
}

/* ---------- Price tiers ---------- */
.tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.tier {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
@media (hover: hover) {
    .tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
}
.tier__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--red-soft);
    color: var(--red);
}
.tier__icon .icon { width: 26px; height: 26px; }
.tier h3 { margin-bottom: 4px; }
.tier__ages { margin: 0 0 22px; color: var(--muted); font-size: .975rem; }
.tier__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.tier__price strong {
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.tier__price span { color: var(--muted); font-size: .95rem; }
.tier ul {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-size: 1rem;
}
.tier li { display: flex; gap: 10px; align-items: flex-start; }
.tier li .icon { margin-top: 3px; width: 18px; height: 18px; color: var(--red); stroke-width: 2.5; }
.tier .btn { margin-top: auto; }

.tier--featured { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .78); }
.tier--featured h3, .tier--featured .tier__price strong { color: #fff; }
.tier--featured .tier__ages, .tier--featured .tier__price span { color: rgba(255, 255, 255, .6); }
.tier--featured .tier__price { border-color: rgba(255, 255, 255, .14); }
.tier--featured .tier__icon { background: rgba(217, 38, 44, .2); color: #FF6A6F; }
.tier--featured li .icon { color: #FF6A6F; }
.tier--featured:hover { border-color: var(--ink); }

.tiers-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin: 32px auto 0;
    color: var(--muted);
    font-size: 1rem;
    text-align: center;
}
.tiers-note .icon { color: var(--red); }

@media (max-width: 959px) {
    .tiers { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.feature { padding: 32px 28px; background: var(--surface); }
.feature .icon { width: 30px; height: 30px; margin-bottom: 20px; color: var(--red); stroke-width: 1.75; }
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 959px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .features { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); counter-increment: step; }
.step::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--red);
}
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

@media (max-width: 799px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split layout ---------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.split--center { align-items: center; }
.split--form { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 899px) { .split, .split--form { grid-template-columns: 1fr; } }

/* ---------- Dark band ---------- */
.band {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: rgba(255, 255, 255, .74);
}
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #FF6A6F; }
.band .ecg { bottom: -20px; color: var(--red); opacity: .5; }
.band__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.band__inner h2 { max-width: 18ch; margin-bottom: 12px; }
.band__inner p { max-width: 52ch; margin: 0; }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Location ---------- */
.map {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #EAE4DD;
    border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.info-list { display: grid; gap: 0; margin: 0 0 28px; padding: 0; list-style: none; }
.info-list li {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.info-list li:first-child { padding-top: 0; }
.info-list .icon { margin-top: 3px; color: var(--red); }
.info-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.info-list a { color: var(--ink-2); }
.info-list a:hover { color: var(--red); }

/* ---------- Sub-page header ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 8vw, 96px) clamp(96px, 11vw, 136px);
    border-bottom: 1px solid var(--line);
}
.page-hero .ecg { top: auto; bottom: 0; height: clamp(72px, 8vw, 110px); opacity: .55; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 56ch; margin: 0; color: var(--muted); }

/* ---------- Prose / cards ---------- */
.prose p { color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.card {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.card > .icon { width: 30px; height: 30px; margin-bottom: 20px; color: var(--red); stroke-width: 1.75; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 8px; }
.card .btn, .card .link-arrow { margin-top: 18px; }
@media (max-width: 899px) { .cards { grid-template-columns: 1fr; } }

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: .875rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }

.callout {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    border-radius: var(--radius-sm);
    background: var(--red-soft);
    color: var(--ink);
}
.callout > .icon { margin-top: 2px; color: var(--red); }
.callout p { margin: 0; }
.callout strong { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    flex: none;
    width: 14px; height: 14px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    color: var(--red);
    transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 62ch; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card {
    padding: clamp(24px, 4vw, 44px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}
.form-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.form-card > p { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 559px) { .form-grid { grid-template-columns: 1fr; } }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .field label {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ink);
}
.optional { font-weight: 400; color: var(--muted); }

.input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
    appearance: none;
}
textarea.input { min-height: 120px; resize: vertical; }
select.input {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2316181D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.input::placeholder { color: #9AA0AA; }
.input:hover { border-color: #C9BFB5; }
.input:focus { outline: none; border-color: var(--ink); background-color: var(--surface); box-shadow: 0 0 0 4px rgba(22, 24, 29, .08); }
.input[aria-invalid="true"] { border-color: var(--red); background-color: #FFF8F8; }
.hint { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.error-text { margin: 6px 0 0; font-size: .875rem; color: var(--red-dark); font-weight: 500; }

.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 559px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-size: .9rem;
    color: var(--muted);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice span b { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.choice span i { font-style: normal; font-weight: 600; color: var(--ink); }
.choice:hover span { border-color: #C9BFB5; }
.choice input:checked + span { border-color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
.choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }

.hp { position: absolute !important; left: -9999px !important; }

.form-status {
    display: none;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}
.form-status.is-visible { display: flex; }
.form-status .icon { margin-top: 2px; }
.form-status--ok { background: var(--green-soft); color: #0F5C35; }
.form-status--error { background: var(--red-soft); color: var(--red-dark); }
.form-status p { margin: 0; }
.form-status strong { display: block; }

.form-done { text-align: center; padding: 24px 0; }
.form-done .icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    padding: 16px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    stroke-width: 2.5;
}
.form-done p { color: var(--muted); max-width: 40ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .66);
    font-size: .975rem;
}
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-block: 72px 56px;
}
.footer__brand img { width: 184px; margin-bottom: 20px; }
.footer__brand p { max-width: 32ch; }
.site-footer h2 {
    margin-bottom: 18px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer .hours th, .site-footer .hours td { padding: 4px 0; color: rgba(255, 255, 255, .66); }
.site-footer .hours tr.is-today th, .site-footer .hours tr.is-today td { color: #fff; }
.site-footer .hours tr.is-today th::after { display: none; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .875rem;
    color: rgba(255, 255, 255, .5);
}
.footer__bottom p { margin: 0; }

@media (max-width: 959px) { .footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .footer__main { grid-template-columns: 1fr; padding-block: 56px 40px; } }

/* ---------- Photos ---------- */
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }

.photo {
    overflow: hidden;
    border-radius: 24px;
    background: #EAE4DD;
    box-shadow: var(--shadow-lg);
}
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo-figure { margin: 0; }
.photo-figure figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* ---------- Group strip (BelMed) ---------- */
.group-strip {
    background: var(--surface);
    border-block: 1px solid var(--line);
}
.group-strip__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 24px 48px;
    align-items: center;
    padding-block: 32px;
}
.group-strip__brand { display: flex; align-items: center; gap: 20px; }
.group-strip__brand img { width: 260px; flex: none; }
.group-strip__brand p { margin: 0; font-size: .975rem; color: var(--muted); }
.group-strip__brand strong { color: var(--ink); font-weight: 600; }
.group-strip__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.group-strip__facts li { padding-left: 16px; border-left: 2px solid var(--red); }
.group-strip__facts strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
}
.group-strip__facts span { display: block; font-size: .875rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 1099px) {
    .group-strip__inner { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
    .group-strip__brand { flex-direction: column; align-items: flex-start; gap: 12px; }
    .group-strip__brand img { width: 200px; }
    .group-strip__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}

/* ---------- Photo tiles ---------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}
.tile__img { aspect-ratio: 4 / 3; overflow: hidden; background: #EAE4DD; }
.tile__img img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile__body { padding: 22px 24px 26px; }
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; font-size: 1rem; color: var(--muted); }
@media (hover: hover) {
    .tile:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
    .tile:hover .tile__img img { transform: scale(1.04); }
    .tile:hover h3 { color: var(--red); }
}
@media (max-width: 959px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Location cards ---------- */
.locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.location {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.location__img { aspect-ratio: 16 / 9; overflow: hidden; background: #EAE4DD; }
.location__map { position: relative; }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location__body { display: flex; flex-direction: column; flex: 1; padding: 28px clamp(20px, 3vw, 32px) 32px; }
.location__tag {
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--red-dark);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.location__tag--blue { background: #E6EEF7; color: #1B4A82; }
.location h3 { font-size: 1.625rem; margin-bottom: 6px; }
.location__meta { color: var(--muted); font-size: .975rem; margin-bottom: 18px; }
.location .info-list { margin-bottom: 24px; }
.location__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.info-list--compact li { padding: 12px 0; }
.info-list--compact li:first-child { padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 899px) { .locations { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-group-logo { width: 260px; margin-top: 28px; }

/* ---------- Credits ---------- */
.credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.credit { margin: 0; }
.credit__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: #EAE4DD; margin-bottom: 14px; }
.credit figcaption { font-size: .9375rem; color: var(--muted); }
.credit figcaption strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 959px) { .credits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .credits { grid-template-columns: 1fr; } }

/* ---------- Footer group badge ---------- */
.footer__group {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
}
.footer__group img { width: 200px; }
.footer__group span { font-size: .8125rem; color: var(--muted); }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 699px) {
    .action-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: 10px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
        background: rgba(251, 248, 245, .94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
    }
    .action-bar .btn { min-height: 48px; padding: 0 12px; }
    body { padding-bottom: 76px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 374px) {
    body { font-size: 1rem; }
    .btn { padding: 0 20px; font-size: 1rem; }
    .hero__cta .btn { width: 100%; }
    .tier { padding: 26px 20px 22px; }
    .tier__price strong { font-size: 2.75rem; }
    .visit-card__actions { grid-template-columns: 1fr; }
    .nav__brand img { width: 128px; }
    .status { white-space: normal; }
    .action-bar { grid-template-columns: 1fr 1.6fr; }
    .action-bar .btn { font-size: .9375rem; gap: 6px; }
}

/* ---------- Large screens ---------- */
@media (min-width: 1680px) {
    :root { --container: 1280px; }
    body { font-size: 1.125rem; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--red); margin-bottom: 8px; letter-spacing: -0.04em; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .ecg--draw path { stroke-dashoffset: 0; }
}

@media print {
    .site-header, .action-bar, .map, .band, form { display: none !important; }
    body { background: #fff; padding: 0; }
}
