/* Harmónia Hallásközpont – base styles. Tokens match the design canvas. */

/* Self-hosted variable fonts from Fontsource 5.3.0 (@fontsource-variable/lora, /manrope), OFL-1.1,
   licences in /fonts. Hungarian ő and ű live in latin-ext, so both subsets are needed; unicode-range
   makes the browser fetch latin-ext only on pages that use those letters (in practice, all of them). */
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    src: url("/fonts/lora-latin-wght-normal-9577af3ccda5f49d71b0dea88b47f1ac.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    src: url("/fonts/lora-latin-ext-wght-normal-1d361631357efb8d11ee84df023b8ddc.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("/fonts/manrope-latin-wght-normal-938c6e8019b69313372c47dbb7a7c930.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("/fonts/manrope-latin-ext-wght-normal-6d36d5bdedfabb5bbee2ab6b6ded3416.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ground: #FAF7F7;
    --panel: #F3EAEC;
    --ink: #1F1A1C;
    --ink-soft: #4C4044;
    --ink-muted: #6B5A5F;
    --line: #E6DCDE;
    --accent: #8E2F4C;
    --accent-deep: #6B2039;
    --accent-soft: #F0E3E7;
    --font-display: "Lora", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --gutter: clamp(1.125rem, 4vw, 3.5rem);
    --measure: 36rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
}

h1, h2 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.125rem, 4vw + 1rem, 3.5rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.375rem); font-weight: 600; }

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 73rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: var(--ink);
    color: #FFFFFF;
}
.skip-link:focus { top: 1rem; color: #FFFFFF; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.625rem; font-weight: 600; }
.brand__sub { margin-top: 0.3rem; font-size: 0.875rem; color: var(--ink-muted); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
/* Standalone links get a 44px tap target (CLAUDE.md), without looking any bigger */
.site-nav a, .site-footer__links a, .services-card__link, .back-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav__phone { font-weight: 700; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4rem); }
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}
.badge {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #7A2742;
    font-size: 0.9375rem;
    font-weight: 700;
}
.lead { max-width: var(--measure); margin: 1.25rem 0 0; font-size: 1.3125rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }
.note { margin: 1.125rem 0 0; font-size: 1.0625rem; color: var(--ink-soft); }
.hero__art { padding: clamp(1.5rem, 4vw, 3rem); border-radius: 16px; background: var(--panel); }
.hero__art svg { display: block; width: 100%; height: auto; }

/* Buttons: at least 56px tall, the audience taps with less precision */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    max-width: 100%;
    padding: 0 1.75rem;
    border: 0;
    background: transparent;
    border-radius: 8px;
    font-size: 1.1875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-deep); color: #FFFFFF; }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-outline-light { border: 2px solid #FFFFFF; color: #FFFFFF; }
.btn-outline-light:hover { background: #FFFFFF; color: var(--accent); }

/* Contact */
.contact { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem 2.5rem;
    margin: 1.75rem 0 0;
}
.facts dt { font-size: 0.9375rem; font-weight: 700; color: var(--ink-muted); }
.facts dd { margin: 0.25rem 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem 2.25rem; }
.site-footer p { margin: 0; }
.site-footer__inner { align-items: center; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer__links a { color: var(--ink-muted); }

/* Error pages */
.error-page { padding-block: 4rem 5rem; }
.error-page .btn { margin-top: 1.5rem; }

/* Page header, used on every inner page */
.page-header { padding-block: clamp(2rem, 5vw, 3rem) 0.5rem; }
.page-header .lead { max-width: 42rem; }
.legal-page .page-header .lead { max-width: none; }

/* Section rhythm shared by the homepage and inner pages */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--bordered { border-top: 1px solid var(--line); }
.section__head { max-width: 40rem; }
.section__head .lead { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 1.1875rem; }

/* "Ismerős valamelyik?" checklist grid */
.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.875rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}
.checklist__item {
    margin: 0;
    padding: 1.25rem 1.375rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #FFFFFF;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.35;
}

/* "Így zajlik a vizsgálat" process steps */
.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem 1.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}
.process__step { margin: 0; }
.process__eyebrow { margin: 0; font-size: 1rem; color: var(--ink-muted); font-weight: 700; }
.process__title { margin: 0.5rem 0 0; font-size: 1.375rem; font-weight: 700; }
.process__text { margin: 0.5rem 0 0; font-size: 1.125rem; line-height: 1.5; color: var(--ink-soft); }

/* Services summary card on the homepage */
.services-card {
    margin-top: 1.5rem;
    padding: 1.75rem 2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    align-items: center;
}
.services-card__intro { flex: 1 1 16rem; }
.services-card__intro p { margin: 0.625rem 0 0; color: var(--ink-soft); }
.services-card__link { margin-top: 0.5rem; font-weight: 700; }
.services-card__list { flex: 2 1 20rem; }
.services-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-soft);
}
.services-card__row:last-child { border-bottom: none; }
.services-card__price { font-family: var(--font-display); font-size: 1.4375rem; font-weight: 600; white-space: nowrap; }

/* CTA banner, used for the relative call-out and the services page footer */
.cta-banner {
    margin-top: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    background: var(--panel);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.cta-banner h2 { font-size: 1.75rem; }
.cta-banner p { margin: 0.75rem 0 0; max-width: 42rem; color: var(--ink-soft); }
/* May shrink: two buttons side by side are wider than a phone, and must wrap inside the banner */
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; min-width: 0; }
.cta-banner--accent { background: var(--accent); color: #FFFFFF; }
.cta-banner--accent p { color: #F3E0E7; }
.cta-banner--accent h2 { color: #FFFFFF; }

/* Price list on the services page */
.price-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.price-card {
    padding: 1.75rem 2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    align-items: flex-start;
    justify-content: space-between;
}
.price-card__title { display: flex; align-items: baseline; gap: 0.875rem; flex-wrap: wrap; }
.price-card__title h2 { font-size: 1.5rem; }
.price-card__duration { font-size: 1.0625rem; color: var(--ink-muted); }
.price-card__text { margin: 0.625rem 0 0; max-width: 42rem; color: var(--ink-soft); }
.price-card__price { flex-shrink: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.price-card__booking { margin: 1rem 0 0; }

/* Three-up info grid, "Jó tudni" and similar */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.75rem;
    margin: 1.5rem 0 0;
}
.info-grid dt { font-size: 1.1875rem; font-weight: 700; }
.info-grid dd { margin: 0.5rem 0 0; color: var(--ink-soft); }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-layout .facts { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 0; }
.map-placeholder {
    height: 18rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #EDE5E2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: var(--ink-muted);
}
.map-link { display: inline-flex; align-items: center; min-height: 3.5rem; margin-top: 0.875rem; padding: 0 1.5rem; border: 2px solid var(--ink); border-radius: 8px; font-weight: 700; }
.map-link:hover { background: var(--ink); color: #FFFFFF; }

/* Callback form */
.callback {
    margin-top: 2rem;
    padding: 2rem 2.25rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #FFFFFF;
}
.callback__note { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--ink-muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-field label { font-size: 1.0625rem; font-weight: 700; }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"] {
    min-height: 3.5rem;
    padding: 0 1rem;
    border: 2px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 1.125rem;
    background: #FFFFFF;
    color: var(--ink);
}
.form-field textarea {
    min-height: 7rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 1.125rem;
    background: #FFFFFF;
    color: var(--ink);
    resize: vertical;
}
.form-field input:focus-visible,
.form-field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-field--spaced { margin-top: 1rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.radio-group { border: 0; margin: 0; padding: 0; }
.radio-group--spaced { margin-top: 1rem; }
.consent-field--spaced { margin-top: 1rem; }
.radio-group legend { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.radio-group__options { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.radio-option {
    flex: 1 1 8rem;
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0 0.875rem;
    border: 2px solid var(--line);
    border-radius: 8px;
    font-size: 1.0625rem;
    cursor: pointer;
}
.radio-option input { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.consent-field { display: flex; gap: 0.75rem; align-items: flex-start; }
.consent-field input { width: 1.375rem; height: 1.375rem; margin-top: 0.125rem; flex-shrink: 0; }
.consent-field label { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.callback .btn { align-self: flex-start; margin-top: 1.5rem; }
.form-error { margin: 0 0 1.25rem; padding: 0.875rem 1.125rem; border: 2px solid var(--accent); border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.field-error { margin: 0.375rem 0 0; color: var(--accent-deep); font-size: 0.9375rem; font-weight: 700; }
.callback__success { display: flex; gap: 1.25rem; align-items: flex-start; }
.callback__success-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: #E7EFE9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Article list and article page */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}
.article-card {
    display: block;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #FFFFFF;
    text-decoration: none;
    color: var(--ink);
}
.article-card:hover { color: var(--ink); border-color: var(--accent); }
.article-card h2 { font-size: 1.375rem; }
.article-card p { margin: 0.625rem 0 0; color: var(--ink-soft); }
.article-content { max-width: 42rem; }
.article-content > * + * { margin-top: 1.25rem; }
.article-content h2 { font-size: 1.625rem; margin-top: 2rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; }
.article-content li + li { margin-top: 0.5rem; }
.article-content .lead { color: var(--ink-soft); }

/* Advice steps, e.g. "hogyan hozza szóba" */
.advice-list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.advice-list__item { display: flex; gap: 1.125rem; }
.advice-list__number {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.advice-list__title { margin: 0; font-size: 1.1875rem; font-weight: 700; }
.advice-list__text { margin: 0.375rem 0 0; color: var(--ink-soft); }

/* Legal pages (impresszum, adatkezelés, ÁSZF) */
.legal-content { max-width: 46rem; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.legal-content h3 { font-size: 1.1875rem; margin: 1.5rem 0 0; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; }
.legal-content li + li { margin-top: 0.5rem; }
.draft-notice {
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem;
    border: 2px solid var(--accent);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-weight: 700;
    max-width: 46rem;
}

/* Online booking */
.booking { max-width: 48rem; }
/* Higher specificity than the lists' own margin: 0, so the rhythm doesn't depend on rule order */
.booking > :not(:first-child) { margin-top: 1.5rem; }
.booking h2 { font-size: 1.5rem; }

.steps { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; color: var(--ink-muted); }
.steps__item { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.steps__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 1rem;
}
.steps__item.is-done { color: var(--ink-soft); }
.steps__item.is-current { color: var(--accent); }
.steps__item.is-current .steps__number { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.booking-form > * + * { margin-top: 1.25rem; }
.choice-group { margin: 0; padding: 0; border: 0; }
.choice-group > * + * { margin-top: 0.625rem; }
.choice-group legend { margin-bottom: 0.625rem; padding: 0; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
.choice {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    min-height: 3.5rem;
    padding: 1rem 1.125rem;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #FFFFFF;
    cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 1.375rem; height: 1.375rem; margin-top: 0.125rem; flex-shrink: 0; accent-color: var(--accent); }
.choice__text { display: flex; flex-direction: column; gap: 0.25rem; }
.choice__hint { color: var(--ink-soft); font-size: 1.0625rem; }
.choice--compact { align-items: center; padding: 0.75rem 1rem; }
.slot-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.625rem; }
.hint, .field-hint { color: var(--ink-soft); font-size: 1.0625rem; }
.field-hint { margin: 0; }

.day-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.day-list__day {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem 1rem;
    min-height: 3.5rem;
    padding: 0.75rem 1.125rem;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ink);
    text-decoration: none;
}
a.day-list__day:hover { border-color: var(--accent); color: var(--ink); }
.day-list__date { font-weight: 700; }
a.day-list__day .day-list__status { color: var(--accent-deep); font-weight: 700; }
/* Greyed, but still readable: the text says why, not just the colour (P-01) */
.day-list__day--unavailable { border-style: dashed; background: var(--panel); color: var(--ink-muted); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    border: 2px solid var(--accent);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--accent-deep);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}
.slot:hover { background: var(--accent); color: #FFFFFF; }
.pager { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.summary-box { padding: 1.125rem 1.25rem; border-left: 6px solid var(--accent); border-radius: 8px; background: var(--panel); }
.summary-box p { margin: 0; }
.summary-box p + p { margin-top: 0.375rem; }
.summary-box__when { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }

.error-summary { padding: 1.125rem 1.25rem; border: 3px solid var(--accent-deep); border-radius: 10px; background: #FFFFFF; }
.error-summary h2 { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 700; }
.error-summary ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.error-summary a { color: var(--accent-deep); font-weight: 700; }
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: var(--accent-deep); }

.notice { padding: 1rem 1.25rem; border: 2px solid var(--line); border-radius: 10px; background: #FFFFFF; }
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }
.booking-help { padding: 1.125rem 1.25rem; border-radius: 10px; background: var(--panel); }
.booking-help h2 { font-size: 1.25rem; }
.booking-help p { margin: 0.5rem 0 0; }

.booking-details { display: grid; gap: 1rem; margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.booking-details dt { font-size: 0.9375rem; font-weight: 700; color: var(--ink-muted); }
.booking-details dd { margin: 0.25rem 0 0; }

/* Mobile call bar and menu: narrow screens only */
.callbar, .mobile-menu { display: none; }
.brand { min-height: 2.75rem; }

@media (max-width: 52rem) {
    .hero__inner { grid-template-columns: 1fr; }

    /* Header per the mobile design: brand and a menu button; the phone number lives in the call bar */
    .site-header { position: relative; }
    .site-header__inner { min-height: 4rem; }
    .brand { gap: 0.625rem; }
    .brand__mark { width: 34px; height: 22px; }
    .brand__name { font-size: 1.3125rem; }
    .brand__sub { font-size: 0.8125rem; }
    .site-nav { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu summary {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 2.75rem;
        padding: 0 0.875rem;
        border: 2px solid var(--ink);
        border-radius: 8px;
        font-weight: 700;
        list-style: none;
        cursor: pointer;
    }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu[open] summary { background: var(--ink); color: #FFFFFF; }
    .mobile-menu__panel {
        position: absolute;
        inset: 100% 0 auto 0;
        z-index: 30;
        display: flex;
        flex-direction: column;
        padding: 0.25rem var(--gutter) 1rem;
        border-bottom: 1px solid var(--line);
        background: var(--ground);
        box-shadow: 0 12px 24px rgba(31, 26, 28, 0.12);
    }
    .mobile-menu__panel a {
        display: flex;
        align-items: center;
        min-height: 3.25rem;
        border-bottom: 1px solid var(--line);
        color: var(--ink);
        font-size: 1.1875rem;
        font-weight: 700;
        text-decoration: none;
    }
    .mobile-menu__panel a:last-child { border-bottom: none; }
    .contact-layout { grid-template-columns: 1fr; }
    .services-card { flex-direction: column; align-items: stretch; }
    .cta-banner__actions { width: 100%; }
    .cta-banner__actions .btn { flex: 1 1 auto; }

    :root { --callbar-height: 5.5rem; }
    /* The bar must never cover the page's last lines, or whatever has keyboard focus (WCAG 2.4.11) */
    body { padding-bottom: var(--callbar-height); }
    html { scroll-padding-bottom: var(--callbar-height); }

    .callbar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 20;
        display: flex;
        gap: 0.625rem;
        padding: 0.75rem var(--gutter) max(0.75rem, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: #FFFFFF;
    }
    .callbar a {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.625rem;
        min-height: 3.5rem;
        padding: 0 0.75rem;
        border-radius: 10px;
        color: #FFFFFF;
        font-size: 1.125rem;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
    }
    /* "Hívás" is short: give the rest of the width to "Visszahívást kérek" so it stays on one line */
    .callbar a.callbar__call { flex: 0 0 auto; padding: 0 1.25rem; }
    .callbar__call { background: var(--ink); }
    .callbar__call:hover { background: #000000; color: #FFFFFF; }
    .callbar__callback { background: var(--accent); }
    .callbar__callback:hover { background: var(--accent-deep); color: #FFFFFF; }
    .callbar a:focus-visible { outline-offset: -5px; outline-color: #FFFFFF; }
}

@media print {
    .callbar { display: none; }
}
.nowrap { white-space: nowrap; }
.altcha-field { margin-top: 1rem; }
