/* ==========================================================================
   Лю-Дент — design system (contract: 00-architecture §8, extras: §11)
   Mobile-first; breakpoints 640 / 960 / 1200 px. No build step.

    1. Fonts                 9. Carousel
    2. Tokens               10. Price rows, accordion
    3. Base                 11. Forms
    4. Typography, prose    12. Notice, lists
    5. Layout               13. Site header & navigation
    6. Buttons              14. Site footer, floating CTA
    7. Cards, badge         15. Blocks
    8. Breadcrumbs, page head 16. Lightbox, compare, 404, utilities, a11y
   ========================================================================== */

/* 1. Fonts — Montserrat (OFL) from the brand theme ------------------------ */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Metric-compatible fallback: less layout shift while the webfont loads. */
@font-face {
    font-family: "Montserrat Fallback";
    src: local("Arial");
    ascent-override: 85%;
    descent-override: 22%;
    line-gap-override: 0%;
    size-adjust: 113%;
}

/* 2. Tokens ---------------------------------------------------------------- */

:root {
    --c-brand: #ff7349;
    --c-brand-dark: #c9401a;          /* text-safe brand (4.9:1 on white) */
    --c-brand-hover: #f2602f;
    --c-brand-soft: #fff3ee;
    --c-brand-tint: #ffe1d6;
    --c-ink: #494949;
    --c-ink-2: #6b6b6b;
    --c-ink-strong: #2b2b2b;
    --c-bg: #ffffff;
    --c-bg-soft: #f8f5f2;
    --c-line: #ece5de;
    --c-line-strong: #dcd1c7;
    --c-dark: #494949;
    --c-on-dark: rgb(255 255 255 / 0.78);
    --c-on-dark-accent: #ffb59e;
    --c-focus: #c9401a;
    --c-success: #2e7d50;
    --c-success-soft: #edf7f0;
    --c-warning: #8a5300;
    --c-warning-soft: #fff6e3;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgb(60 38 26 / 0.06);
    --shadow: 0 1px 2px rgb(60 38 26 / 0.05), 0 12px 32px -14px rgb(60 38 26 / 0.22);
    --shadow-lg: 0 28px 64px -28px rgb(60 38 26 / 0.38);
    --shadow-brand: 0 10px 24px -10px rgb(255 115 73 / 0.75);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: clamp(1.75rem, 1.45rem + 1.2vw, 2.5rem);
    --space-7: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);
    --space-8: clamp(3.5rem, 2.5rem + 4vw, 6rem);

    --font-display: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --container: 75rem;
    --container-narrow: 48rem;
    --gutter: clamp(1rem, 0.55rem + 2.2vw, 2rem);
    --header-h: 4rem;
    --topbar-h: 0rem;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur: 0.2s;

    --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9401a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2b2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

@media (min-width: 960px) {
    :root {
        --header-h: 5rem;
        --topbar-h: 2.5rem;
    }
}

/* 3. Base ------------------------------------------------------------------ */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    color-scheme: light;
}

html:has(.lightbox[open]),
html.is-menu-open {
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font: 400 1rem/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.site-main {
    flex: 1 0 auto;
}

img,
svg,
video,
iframe,
picture {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

iframe {
    border: 0;
}

a {
    color: var(--c-brand-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color var(--dur) var(--ease);
}

a:hover {
    color: var(--c-ink-strong);
}

button {
    cursor: pointer;
}

hr {
    height: 1px;
    margin: var(--space-6) 0;
    border: 0;
    background: var(--c-line);
}

::selection {
    background: var(--c-brand-tint);
    color: var(--c-ink-strong);
}

/* 4. Typography, prose ----------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.5em;
    color: var(--c-ink-strong);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
}

h3 {
    font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
}

h4 {
    font-size: 1.0625rem;
}

p,
ul,
ol,
dl,
figure,
blockquote,
table {
    margin: 0 0 1em;
}

p {
    text-wrap: pretty;
}

strong,
b {
    font-weight: 700;
}

small {
    font-size: 0.8125rem;
}

.prose {
    max-width: 72ch;
    line-height: 1.7;
}

.prose > * {
    margin-block: 0;
}

.prose > * + * {
    margin-top: 1em;
}

.prose > :is(h2, h3, h4) {
    margin-top: 1.6em;
}

.prose > :is(h2, h3, h4):first-child,
.prose > :first-child {
    margin-top: 0;
}

.prose > :is(h2, h3, h4) + * {
    margin-top: 0.6em;
}

.prose h2 {
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
}

.prose h3 {
    font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
}

.prose a {
    color: var(--c-brand-dark);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--c-ink-strong);
}

.prose strong {
    color: var(--c-ink-strong);
}

.prose ul {
    padding: 0;
    list-style: none;
}

.prose ul > li {
    position: relative;
    padding-left: 1.6em;
}

.prose ul > li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0.3em;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--c-brand);
}

.prose ol {
    padding-left: 1.5em;
}

.prose ol > li {
    padding-left: 0.25em;
}

.prose ol > li::marker {
    color: var(--c-brand-dark);
    font-weight: 700;
}

.prose li + li {
    margin-top: 0.45em;
}

.prose li > :is(ul, ol) {
    margin-top: 0.45em;
}

.prose img {
    border-radius: var(--radius);
}

.prose blockquote {
    padding: var(--space-4) var(--space-5);
    border-left: 4px solid var(--c-brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--c-brand-soft);
    color: var(--c-ink-strong);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.prose :is(th, td) {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--c-line);
    text-align: left;
    vertical-align: top;
}

.prose th {
    color: var(--c-ink-strong);
    font-weight: 700;
}

.prose--lg {
    font-size: 1.0625rem;
}

/* 5. Layout ---------------------------------------------------------------- */

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

.container--narrow {
    max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.section {
    padding-block: var(--space-8);
}

.section--soft {
    background: var(--c-bg-soft);
}

.section--compact {
    padding-block: var(--space-5);
}

/* Consecutive sections on the same background share one gap. */
.section:not(.section--soft) + .section:not(.section--soft),
.section--soft + .section--soft,
.hero + .section:not(.section--soft),
.page-head + .section:not(.section--soft),
.page-head + .page-body > .section:first-child:not(.section--soft) {
    padding-top: 0;
}

/* A compact section that closes the page (a lone CTA button) keeps a full gap above the footer. */
.site-main > .section--compact:last-child,
.site-main > :last-child > .section--compact:last-child {
    padding-bottom: var(--space-8);
}

/* After a compact section (text, buttons) a regular one keeps a small gap, so its heading does not stick to the text. */
.section.section--compact + .section:not(.section--compact, .section--soft) {
    padding-top: var(--space-5);
}

.section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: var(--space-6);
    align-items: end;
    margin-bottom: var(--space-6);
}

.section__head > * {
    margin: 0;
}

/* Row spacing as margins: the side link spans three rows, and empty rows must not add gaps under the title. */
.section__head > * + * {
    margin-top: var(--space-3);
}

.section__head--center {
    justify-items: center;
    text-align: center;
}

.section__eyebrow {
    color: var(--c-brand-dark);
    font: 700 0.8125rem/1.3 var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section__title {
    margin: 0;
    font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.375rem);
}

.section__lead {
    max-width: 44rem;
    color: var(--c-ink-2);
    font-size: 1.0625rem;
}

.section__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--c-brand-dark);
    font: 700 0.9375rem/1.3 var(--font-display);
    text-decoration: none;
    white-space: nowrap;
}

.section__link:hover {
    color: var(--c-ink-strong);
}

.section__link .icon {
    transition: transform var(--dur) var(--ease);
}

.section__link:hover .icon {
    transform: translateX(3px);
}

.section__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

@media (min-width: 640px) {
    .section__head:has(> .section__link, > .section__actions, > .carousel__nav) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .section__head > :is(.section__link, .section__actions, .carousel__nav) {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: end;
        margin: 0;
    }
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--grid-gap, var(--space-5));
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stack > * {
    margin-block: 0;
}

.stack > * + * {
    margin-top: var(--stack-gap, var(--space-4));
}

.stack--sm {
    --stack-gap: var(--space-2);
}

.stack--lg {
    --stack-gap: var(--space-6);
}

.split {
    display: grid;
    gap: var(--space-6);
    align-items: center;
}

@media (min-width: 960px) {
    .split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-8);
    }
}

/* 6. Buttons --------------------------------------------------------------- */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--c-ink-strong);
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: 700 0.9375rem/1.2 var(--font-display);
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    color: var(--btn-fg);
}

.btn:active {
    transform: translateY(1px);
}

.btn .icon {
    width: 1.2em;
    height: 1.2em;
}

.btn--primary {
    --btn-bg: var(--c-brand);
    --btn-fg: #fff;
    --btn-border: var(--c-brand);
    box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
    --btn-bg: var(--c-brand-hover);
    --btn-border: var(--c-brand-hover);
    box-shadow: 0 14px 30px -12px rgb(242 96 47 / 0.85);
}

.btn--ghost {
    --btn-fg: var(--c-ink-strong);
    --btn-border: var(--c-line-strong);
    --btn-bg: transparent;
}

.btn--ghost:hover {
    --btn-fg: var(--c-brand-dark);
    --btn-border: var(--c-brand);
    --btn-bg: var(--c-brand-soft);
}

.btn--light {
    --btn-bg: #fff;
    --btn-fg: var(--c-ink-strong);
    --btn-border: #fff;
}

.btn--light:hover {
    --btn-bg: var(--c-brand-soft);
    --btn-border: var(--c-brand-soft);
}

.btn--sm {
    min-height: 2.5rem;
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
}

.btn--lg {
    min-height: 3.5rem;
    padding: 0.95rem 2rem;
    font-size: 1rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

/* 7. Cards, badge ---------------------------------------------------------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    isolation: isolate;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

a.card {
    color: inherit;
    text-decoration: none;
}

a.card:hover,
.card:has(.card__link:hover) {
    border-color: transparent;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card__media {
    display: block;
    width: 100%;
    aspect-ratio: var(--card-ratio, 4 / 3);
    overflow: hidden;
    background: var(--c-bg-soft);
    object-fit: cover;
}

.card__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

a.card:hover .card__media > img,
.card:has(.card__link:hover) .card__media > img,
a.card:hover img.card__media,
.card:has(.card__link:hover) img.card__media {
    transform: scale(1.04);
}

img.card__media {
    transition: transform 0.6s var(--ease);
}

.card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
}

.card__body > * {
    margin: 0;
}

.card__title {
    margin: 0;
    color: var(--c-ink-strong);
    font-size: 1.125rem;
    line-height: 1.3;
}

.card__title a {
    color: inherit;
    text-decoration: none;
}

.card__title a:hover {
    color: var(--c-brand-dark);
}

/* Stretched link: the whole card is clickable, inner buttons stay on top. */
.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card__body :is(.btn, .card__actions a) {
    position: relative;
    z-index: 2;
}

.card__meta {
    margin: 0;
    color: var(--c-ink-2);
    font-size: 0.875rem;
    line-height: 1.45;
}

.card__text {
    color: var(--c-ink-2);
    font-size: 0.9375rem;
}

.card__price {
    color: var(--c-ink-strong);
    font: 700 1.0625rem/1.3 var(--font-display);
}

.card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-3);
}

/*
 * Doctor and direction cards keep «Подробнее» and the booking button in one row: the buttons share it, and the
 * thresholds are widths of the row itself, so one set of rules serves the phone carousel and the four-column grid.
 * The pair needs 285px at 14px and 273px at 13px; narrower, «Записаться онлайн» drops «онлайн» (btn_label()).
 * A custom label too long even for that wraps to its own row, as before.
 */
:is(.doctor-card, .direction-card) .card__actions {
    container: card-actions / inline-size;
    gap: 0.375rem;
}

:is(.doctor-card, .direction-card) .card__actions > .btn {
    padding-inline: 0.625rem;
}

:is(.doctor-card, .direction-card) .card__actions > .btn:not(:only-child) {
    flex: 1 1 auto;
}

@container card-actions (max-width: 18.5rem) {
    .card__actions > .btn {
        font-size: 0.8125rem;
    }
}

@container card-actions (max-width: 17.25rem) {
    .card__actions .btn__tail {
        display: none;
    }
}

.card__badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 2;
}

.card--soft {
    border-color: transparent;
    background: var(--c-bg-soft);
    box-shadow: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    width: fit-content;
    padding: 0.35em 0.8em;
    border-radius: var(--radius-pill);
    background: var(--c-brand-soft);
    color: var(--c-brand-dark);
    font: 700 0.75rem/1.2 var(--font-display);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge--solid {
    background: var(--c-brand-dark);
    color: #fff;
}

.badge--neutral {
    background: var(--c-bg-soft);
    color: var(--c-ink);
}

.badge--light {
    background: rgb(255 255 255 / 0.94);
    color: var(--c-ink-strong);
    box-shadow: var(--shadow-sm);
}

.badge .icon {
    width: 1.1em;
    height: 1.1em;
}

/* 8. Breadcrumbs, page head ------------------------------------------------ */

.breadcrumbs {
    padding-top: var(--space-4);
    color: var(--c-ink-2);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li + li::before {
    content: "";
    width: 0.38em;
    height: 0.38em;
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
    opacity: 0.55;
    transform: rotate(45deg);
}

.breadcrumbs a {
    color: var(--c-ink-2);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--c-brand-dark);
    text-decoration: underline;
}

.breadcrumbs [aria-current] {
    color: var(--c-ink-strong);
}

.page-head {
    padding-block: var(--space-2) var(--space-7);
}

/* Without breadcrumbs the title would sit right under the header. */
.page-head:not(:has(.breadcrumbs)) {
    padding-top: var(--space-6);
}

.page-head .breadcrumbs {
    margin-bottom: var(--space-5);
}

.page-head__title {
    max-width: 52rem;
    margin: 0;
}

.page-head__lead {
    max-width: 46rem;
    margin: var(--space-3) 0 0;
    color: var(--c-ink-2);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* 9. Carousel (scroll-snap; JS adds prev/next) ----------------------------- */

.carousel {
    --per-view: 1.12;
    --carousel-gap: var(--space-4);
    position: relative;
    min-width: 0;
}

@media (min-width: 640px) {
    .carousel {
        --per-view: 2;
        --carousel-gap: var(--space-5);
    }
}

@media (min-width: 960px) {
    .carousel {
        --per-view: 3;
    }
}

@media (min-width: 1200px) {
    .carousel--4 {
        --per-view: 4;
    }
}

.carousel__track {
    display: grid;
    grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--carousel-gap)) / var(--per-view));
    grid-auto-flow: column;
    gap: var(--carousel-gap);
    margin: -6px;
    padding: 6px 6px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    list-style: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__item {
    display: flex;
    min-width: 0;
    scroll-snap-align: start;
}

.carousel__item > * {
    width: 100%;
}

.carousel__nav {
    display: flex;
    gap: var(--space-2);
}

.carousel > .carousel__nav {
    justify-content: flex-end;
    margin-top: var(--space-3);
}

.carousel__btn {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1.5px solid var(--c-line-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--c-ink-strong);
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.carousel__btn:hover {
    border-color: var(--c-brand);
    background: var(--c-brand-soft);
    color: var(--c-brand-dark);
}

.carousel__btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.carousel__btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Without JS the track still scrolls natively; buttons appear once JS runs and there is overflow. */
.carousel:not(.is-ready) .carousel__nav,
.carousel.is-static .carousel__nav {
    display: none;
}

/* 10. Price rows, accordion ------------------------------------------------ */

/* .price-list is the <ul> of .price-row items only; sections that hold price lists use their own block class. */
.price-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-1) var(--space-5);
    align-items: baseline;
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--c-line);
}

.price-row:last-child {
    border-bottom: 0;
}

.price-row__name {
    color: var(--c-ink);
}

.price-row__price {
    color: var(--c-ink-strong);
    font: 700 1rem/1.35 var(--font-display);
    text-align: right;
    white-space: nowrap;
}

.price-row__note,
.price-row__code {
    grid-column: 1;
    color: var(--c-ink-2);
    font-size: 0.8125rem;
}

.accordion {
    border-top: 1px solid var(--c-line);
}

.accordion__item {
    border-bottom: 1px solid var(--c-line);
}

.accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-4);
    color: var(--c-ink-strong);
    font: 700 1.0625rem/1.35 var(--font-display);
    list-style: none;
    cursor: pointer;
    transition: color var(--dur) var(--ease);
}

.accordion__summary::-webkit-details-marker {
    display: none;
}

.accordion__summary::after {
    content: "";
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--c-bg-soft) var(--chevron) center / 1.1rem no-repeat;
    transition: transform 0.25s var(--ease), background-color var(--dur) var(--ease);
}

.accordion__summary:hover {
    color: var(--c-brand-dark);
}

.accordion__item[open] > .accordion__summary::after {
    background-color: var(--c-brand-tint);
    transform: rotate(180deg);
}

.accordion__panel {
    padding-bottom: var(--space-5);
}

.accordion--nested {
    border-top: 0;
}

.accordion--nested .accordion__item:last-child {
    border-bottom: 0;
}

.accordion--nested .accordion__summary {
    font-size: 0.9375rem;
}

.accordion--nested .accordion__summary::after {
    width: 1.75rem;
    height: 1.75rem;
}

/* 11. Forms ---------------------------------------------------------------- */

input,
button,
select,
textarea {
    color: inherit;
    font: inherit;
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field__label {
    color: var(--c-ink-strong);
    font-size: 0.875rem;
    font-weight: 700;
}

.field__hint {
    color: var(--c-ink-2);
    font-size: 0.8125rem;
}

.field__error {
    color: #b42318;
    font-size: 0.8125rem;
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--c-line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--c-ink-strong);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.input:hover,
.select:hover,
.textarea:hover {
    border-color: #c8bbae;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--c-brand);
    outline: none;
    box-shadow: 0 0 0 4px rgb(255 115 73 / 0.2);
}

.input::placeholder,
.textarea::placeholder {
    color: #9a928b;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border-color: #b42318;
}

.textarea {
    min-height: 8rem;
    resize: vertical;
}

.select {
    padding-right: 2.75rem;
    background: #fff var(--chevron) right 1rem center / 1.1rem no-repeat;
    appearance: none;
}

.checkbox {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.5;
}

input[type="checkbox"],
input[type="radio"] {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.15rem 0 0;
    accent-color: var(--c-brand-dark);
}

/* 12. Notice, lists -------------------------------------------------------- */

.notice {
    --notice-accent: var(--c-brand);
    --notice-icon: var(--c-brand-dark);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    max-width: 52rem;
    padding: var(--space-4) var(--space-5);
    border-left: 4px solid var(--notice-accent);
    border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
    background: var(--c-brand-soft);
    color: var(--c-ink-strong);
}

.notice > .icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    color: var(--notice-icon);
}

.notice__body > :last-child {
    margin-bottom: 0;
}

.notice a {
    color: var(--c-brand-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.notice a:hover {
    text-decoration: underline;
}

.notice--warning {
    --notice-accent: #f0a63a;
    --notice-icon: var(--c-warning);
    background: var(--c-warning-soft);
}

.notice--success {
    --notice-accent: #49a46d;
    --notice-icon: var(--c-success);
    background: var(--c-success-soft);
}

.checklist {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist > li {
    position: relative;
    padding-left: 2.25rem;
}

.checklist > li::before {
    content: "";
    position: absolute;
    top: 0.05em;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--c-brand-soft) var(--check) center / 0.85rem no-repeat;
}

.steps-list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps-list__item {
    position: relative;
    min-height: 4.25rem;
    padding: var(--space-4) var(--space-4) var(--space-4) 4.25rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--c-ink-strong);
    counter-increment: step;
}

.steps-list__item::before {
    content: counter(step);
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--c-brand);
    color: #fff;
    font: 700 1rem/1 var(--font-display);
}

/* .steps-list--stacked keeps one column at every width (long items, narrow columns). */
@media (min-width: 960px) {
    .steps-list:not(.steps-list--stacked) {
        grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
        gap: var(--space-4);
    }

    .steps-list:not(.steps-list--stacked) > .steps-list__item {
        padding: 4.5rem var(--space-5) var(--space-5);
    }

    .steps-list:not(.steps-list--stacked) > .steps-list__item::before {
        top: var(--space-5);
        left: var(--space-5);
    }
}

/* 13. Site header & navigation --------------------------------------------- */

.skip-link {
    position: absolute;
    top: -10rem;
    left: var(--space-4);
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--c-ink-strong);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-4);
    color: #fff;
}

.site-header {
    position: sticky;
    top: calc(-1 * var(--topbar-h));
    z-index: 50;
}

.topbar {
    display: none;
    background: var(--c-bg-soft);
    color: var(--c-ink-2);
    font-size: 0.8125rem;
}

@media (min-width: 960px) {
    .topbar {
        display: block;
    }
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    height: var(--topbar-h);
}

.topbar__list {
    display: flex;
    gap: var(--space-6);
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.topbar__item .icon {
    width: 1rem;
    height: 1rem;
    color: var(--c-brand-dark);
}

.topbar__item a {
    color: inherit;
    text-decoration: none;
}

.topbar__item a:hover {
    color: var(--c-brand-dark);
}

.social {
    display: flex;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.social__link {
    display: block;
    color: var(--c-ink);
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.social__link:hover {
    color: var(--c-brand);
    transform: translateY(-1px);
}

.social__link .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.header {
    position: relative;
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), box-shadow 0.3s var(--ease);
}

/* The blurred background lives on a pseudo-element: a backdrop-filter on .header itself
   would become the containing block of the fixed mobile drawer. */
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(255 255 255 / 0.9);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
}

.site-header.is-scrolled .header {
    border-color: var(--c-line);
    box-shadow: 0 10px 30px -22px rgb(60 38 26 / 0.45);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: var(--header-h);
}

.header__logo {
    flex: none;
    margin-right: auto;
}

.header__logo img {
    width: auto;
    height: 2.5rem;
}

@media (min-width: 960px) {
    .header__logo img {
        height: 3rem;
    }
}

.header__actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-3);
}

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--c-ink-strong);
    font: 700 0.9375rem/1.2 var(--font-display);
    text-decoration: none;
    white-space: nowrap;
}

.header__phone-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--c-brand-soft);
    color: var(--c-brand-dark);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.header__phone-icon .icon {
    width: 1.15rem;
    height: 1.15rem;
}

.header__phone:hover {
    color: var(--c-brand-dark);
}

.header__phone:hover .header__phone-icon {
    background: var(--c-brand);
    color: #fff;
}

.header__cta {
    display: none;
}

/* Icon-only phone where the bar is tight: tablets and the first desktop widths with the inline menu. */
@media (max-width: 959px), (min-width: 1200px) and (max-width: 1359px) {
    .header__phone-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (min-width: 640px) {
    .header__cta {
        display: inline-flex;
    }
}

.header__burger {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c-ink-strong);
    color: #fff;
}

.burger,
.burger::before,
.burger::after {
    display: block;
    width: 1.125rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.burger {
    position: relative;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
    left: 0;
}

.burger::before {
    top: -6px;
}

.burger::after {
    top: 6px;
}

/* Navigation: off-canvas drawer below 1200px, inline bar with dropdowns above. */
.nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(25rem, 100%);
    padding: 0 var(--space-5) var(--space-6);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
}

.nav.is-open {
    visibility: visible;
    transform: none;
    transition: transform 0.32s var(--ease), visibility 0s;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgb(30 22 18 / 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s var(--ease), visibility 0s linear 0.32s;
}

.is-menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.32s var(--ease), visibility 0s;
}

.nav__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    margin-bottom: var(--space-2);
    background: #fff;
}

.nav__title {
    color: var(--c-ink-strong);
    font: 700 1.125rem/1 var(--font-display);
}

.nav__close {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c-bg-soft);
    color: var(--c-ink-strong);
}

.nav__close .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--c-line);
}

.nav__link {
    flex: 1;
    padding-block: 0.95rem;
    color: var(--c-ink-strong);
    font: 700 1.0625rem/1.3 var(--font-display);
    text-decoration: none;
}

.nav__link:hover,
.nav__link[aria-current="page"],
.nav__item.is-current > .nav__link {
    color: var(--c-brand-dark);
}

.nav__toggle {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c-bg-soft);
    color: var(--c-ink-strong);
    transition: transform 0.25s var(--ease), background-color var(--dur) var(--ease);
}

.nav__toggle .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.nav__toggle[aria-expanded="true"] {
    background: var(--c-brand-tint);
    transform: rotate(180deg);
}

.nav__sub {
    display: none;
    flex-basis: 100%;
    margin: 0 0 var(--space-3);
    padding: 0 0 0 var(--space-4);
    border-left: 2px solid var(--c-brand-tint);
    list-style: none;
}

.nav__item.is-open > .nav__sub {
    display: block;
}

.nav__sublink {
    display: block;
    padding: 0.55rem 0;
    color: var(--c-ink);
    text-decoration: none;
}

.nav__sublink:hover,
.nav__sublink[aria-current="page"] {
    color: var(--c-brand-dark);
}

.nav__extra {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.nav__contacts {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    color: var(--c-ink-2);
    font-size: 0.9375rem;
    list-style: none;
}

.nav__contacts li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.nav__contacts .icon {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    color: var(--c-brand-dark);
}

.nav__contacts a {
    color: var(--c-ink-strong);
    font-weight: 700;
    text-decoration: none;
}

@media (min-width: 1200px) {
    .header__inner {
        gap: var(--space-5);
    }

    .header__logo {
        margin-right: 0;
    }

    .header__burger,
    .nav__head,
    .nav__extra,
    .nav-backdrop {
        display: none;
    }

    .nav {
        position: static;
        z-index: auto;
        flex: 1;
        flex-direction: row;
        justify-content: center;
        width: auto;
        padding: 0;
        overflow: visible;
        background: none;
        box-shadow: none;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .nav__list {
        display: flex;
        gap: 0.125rem;
    }

    .nav__item {
        position: relative;
        flex-wrap: nowrap;
        border: 0;
    }

    .nav__link {
        position: relative;
        padding: 0.5rem 0.6rem;
        font: 400 0.9375rem/1.3 var(--font-body);
        white-space: nowrap;
    }

    .nav__link::after {
        content: "";
        position: absolute;
        right: 0.6rem;
        bottom: 0.15rem;
        left: 0.6rem;
        height: 2px;
        border-radius: 2px;
        background: var(--c-brand);
        transform: scaleX(0);
        transition: transform 0.25s var(--ease);
    }

    .nav__link:hover::after,
    .nav__link[aria-current="page"]::after,
    .nav__item.is-current > .nav__link::after {
        transform: none;
    }

    .nav__item--parent > .nav__link {
        padding-right: 0.25rem;
    }

    .nav__item--parent > .nav__link::after {
        right: 0.25rem;
    }

    .nav__toggle {
        width: 1.5rem;
        height: 1.5rem;
        margin-right: 0.2rem;
        background: none;
    }

    .nav__toggle[aria-expanded="true"] {
        background: none;
    }

    .nav__toggle .icon {
        width: 0.95rem;
        height: 0.95rem;
    }

    .nav__item--parent:is(:hover, :focus-within) > .nav__toggle {
        color: var(--c-brand-dark);
    }

    .nav__sub {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 50%;
        display: block;
        min-width: 17rem;
        margin: 0;
        padding: var(--space-2);
        border: 1px solid var(--c-line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 6px);
        transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
    }

    /* Hover bridge between the link and the dropdown. */
    .nav__sub::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 0.85rem;
    }

    .nav__item--parent:hover > .nav__sub,
    .nav__item--parent:focus-within > .nav__sub,
    .nav__item.is-open > .nav__sub {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s;
    }

    .nav__item--parent.is-closed > .nav__sub {
        opacity: 0;
        visibility: hidden;
    }

    .nav__sublink {
        padding: 0.6rem 0.85rem;
        border-radius: var(--radius-sm);
        color: var(--c-ink-strong);
        font-size: 0.9375rem;
        white-space: nowrap;
    }

    .nav__sublink:hover,
    .nav__sublink[aria-current="page"] {
        background: var(--c-brand-soft);
    }
}

/* 14. Site footer, floating CTA -------------------------------------------- */

.site-footer {
    margin-top: auto;
    background: var(--c-dark);
    color: var(--c-on-dark);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--c-on-dark-accent);
}

.site-footer :focus-visible {
    outline-color: #fff;
}

.site-footer__grid {
    display: grid;
    gap: var(--space-6) var(--space-5);
    padding-block: var(--space-7) var(--space-6);
}

@media (min-width: 640px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .site-footer__grid {
        grid-template-columns: 1.15fr 1fr 0.85fr 1.3fr;
        gap: var(--space-7);
    }
}

.site-footer__logo {
    display: inline-block;
}

.site-footer__logo img {
    width: 9.5rem;
    height: auto;
}

.site-footer__disclaimer {
    max-width: 20rem;
    margin: var(--space-5) 0;
    color: var(--c-on-dark);
    font-size: 0.8125rem;
}

.site-footer .social__link {
    color: #fff;
}

.site-footer .social__link:hover {
    color: var(--c-brand);
}

.site-footer .social__link .icon {
    width: 2rem;
    height: 2rem;
}

.site-footer__title {
    margin: 0 0 var(--space-4);
    color: #fff;
    font: 700 0.8125rem/1.3 var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list .site-footer__list {
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding-left: var(--space-4);
    border-left: 1px solid rgb(255 255 255 / 0.15);
    font-size: 0.875rem;
}

.site-footer__list .site-footer__list a {
    color: var(--c-on-dark);
}

.site-footer__list .site-footer__list a:hover {
    color: var(--c-on-dark-accent);
}

.site-footer__contacts li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.site-footer__contacts .icon {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.22rem;
    color: var(--c-brand);
}

.site-footer__phone {
    font: 700 1.0625rem/1.4 var(--font-display);
}

.site-footer__legal {
    margin: var(--space-4) 0 0;
    color: var(--c-on-dark);
    font-size: 0.8125rem;
}

.site-footer__legal p {
    margin: 0;
}

.site-footer__bottom {
    border-top: 1px solid rgb(255 255 255 / 0.12);
    font-size: 0.8125rem;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-6);
    padding-block: var(--space-5);
}

.site-footer__copyright {
    margin: 0;
}

.site-footer__bottom .site-footer__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
}

.site-footer__bottom a {
    color: var(--c-on-dark);
    text-decoration: underline;
    text-decoration-color: rgb(255 255 255 / 0.3);
}

.floating-cta {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.2rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--c-brand);
    color: #fff;
    font: 700 0.6875rem/1.15 var(--font-display);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 14px 30px -10px rgb(255 115 73 / 0.8);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color var(--dur) var(--ease);
}

.floating-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: var(--c-brand);
    animation: floating-pulse 2.6s var(--ease) infinite;
}

.floating-cta:hover {
    background: var(--c-brand-hover);
    color: #fff;
}

.floating-cta .icon {
    width: 1.35rem;
    height: 1.35rem;
}

.js .floating-cta:not(.is-visible) {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
}

@keyframes floating-pulse {
    0% {
        opacity: 0.55;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

/* 15. Blocks --------------------------------------------------------------- */

/* hero */
.hero {
    position: relative;
    padding-block: var(--space-5) var(--space-8);
    overflow: clip;
}

.hero__inner {
    display: grid;
    gap: var(--space-7);
    align-items: center;
}

.hero__content {
    min-width: 0;
}

.hero__title {
    margin-bottom: var(--space-5);
    font-size: clamp(2.125rem, 1.35rem + 3.2vw, 3.75rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.hero__text {
    max-width: 36rem;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.hero__text ul {
    display: grid;
    gap: 0.6rem;
}

.hero__text ul > li {
    padding-left: 2.1rem;
}

.hero__text ul > li::before {
    top: 0.12em;
    left: 0;
    width: 1.45rem;
    height: 1.45rem;
    background: var(--c-brand-soft) var(--check) center / 0.8rem no-repeat;
}

.hero__text li + li {
    margin-top: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.hero__media {
    position: relative;
    isolation: isolate;
    justify-self: center;
    width: 100%;
    max-width: 34rem;
    margin: 0;
    padding: 0 6% 6% 0;
}

.hero__media::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffa284 0%, var(--c-brand) 62%);
}

.hero__media::after {
    content: "";
    position: absolute;
    top: -2%;
    right: 6%;
    z-index: -1;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 0 100%;
    background: var(--c-brand-tint);
    transform: rotate(-12deg);
}

.hero__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 6rem;
    object-fit: cover;
    object-position: 50% 30%;
    box-shadow: var(--shadow-lg);
}

.hero__stats {
    grid-column: 1 / -1;
}

@media (min-width: 960px) {
    .hero {
        padding-top: var(--space-6);
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: var(--space-7) var(--space-8);
    }

    .hero__img {
        aspect-ratio: 5 / 6;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 960px) {
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
        gap: var(--space-4);
    }
}

.stats__item {
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.stats__value {
    display: block;
    color: var(--c-brand-dark);
    font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem)/1.1 var(--font-display);
    letter-spacing: -0.02em;
}

.stats__label {
    display: block;
    margin-top: 0.35rem;
    color: var(--c-ink-2);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* about */
.about__inner {
    display: grid;
    gap: var(--space-7);
    align-items: center;
}

.about__content > .section__title {
    margin-bottom: var(--space-5);
}

.about__more {
    margin-top: var(--space-6);
}

.about__media {
    position: relative;
    margin: 0;
}

.about__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.about__quote {
    position: relative;
    max-width: 24rem;
    margin: calc(-1 * var(--space-7)) var(--space-4) 0 auto;
    padding: var(--space-5) var(--space-5) var(--space-5) 4.25rem;
    border-radius: var(--radius);
    background: #fff;
    color: var(--c-ink-strong);
    box-shadow: var(--shadow);
    font-size: 1rem;
    line-height: 1.55;
}

.about__quote .icon {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    width: 1.75rem;
    height: 1.75rem;
    color: var(--c-brand);
}

.about__quote p {
    margin: 0;
}

@media (min-width: 960px) {
    .about__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: var(--space-8);
    }

    .about__img {
        aspect-ratio: 1;
    }

    .about__quote {
        position: absolute;
        bottom: var(--space-5);
        left: calc(-1 * var(--space-7));
        margin: 0;
    }
}

/* features */
.feature {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--space-2);
    border-radius: 1.1rem;
    background: var(--c-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.feature__icon .icon {
    width: 1.75rem;
    height: 1.75rem;
}

.feature__title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.3;
}

.feature__text {
    margin: 0;
    color: var(--c-ink-2);
    font-size: 0.9375rem;
}

/* text_image */
.text-image__inner {
    display: grid;
    gap: var(--space-6);
    align-items: center;
}

.text-image__media {
    margin: 0;
}

.text-image__img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.text-image__content > .section__title {
    margin-bottom: var(--space-5);
}

/* WP text often opens with its own heading: give it the section-title scale. */
.text-image__content > .prose > :is(h2, h3):first-child {
    margin-bottom: var(--space-5);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
}

.text-image__list-title {
    margin: var(--space-6) 0 var(--space-4);
    color: var(--c-ink-strong);
    font-weight: 700;
}

.text-image__cta {
    margin-top: var(--space-6);
}

@media (min-width: 960px) {
    .text-image__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-8);
    }

    .text-image--image-right .text-image__media {
        order: 2;
    }
}

/* gallery */
.gallery__link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-bg-soft);
}

.gallery__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery__zoom {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.92);
    color: var(--c-ink-strong);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.gallery__zoom .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.gallery__link:is(:hover, :focus-visible) .gallery__img {
    transform: scale(1.04);
}

.gallery__link:is(:hover, :focus-visible) .gallery__zoom {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .gallery__zoom {
        opacity: 1;
        transform: none;
    }
}

/* cta_button */
.cta-banner {
    position: relative;
    display: grid;
    gap: var(--space-5);
    padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-brand-soft);
    isolation: isolate;
}

.cta-banner::before,
.cta-banner::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.cta-banner::before {
    top: -55%;
    right: -12%;
    width: min(28rem, 70vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgb(255 115 73 / 0.3) 0%, rgb(255 115 73 / 0) 70%);
}

.cta-banner::after {
    bottom: -3.5rem;
    left: 38%;
    width: 7rem;
    aspect-ratio: 1;
    border: 1.5rem solid rgb(255 115 73 / 0.12);
}

.cta-banner__title {
    margin: 0;
    font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
}

.cta-banner__text {
    max-width: 40rem;
    margin: var(--space-3) 0 0;
    color: var(--c-ink);
    font-size: 1.0625rem;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-5);
}

.cta-banner__phone {
    color: var(--c-ink);
    font-size: 0.9375rem;
    text-decoration: none;
}

.cta-banner__phone strong {
    color: var(--c-ink-strong);
    white-space: nowrap;
}

.cta-banner__phone:hover strong {
    color: var(--c-brand-dark);
}

@media (min-width: 960px) {
    .cta-banner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--space-7);
    }

    .cta-banner__actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

.cta-inline {
    display: flex;
    justify-content: center;
}

/* rich_text, page_header, buttons, ordered_list */
.rich-text__title,
.ordered-list__title {
    margin-bottom: var(--space-5);
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
}

/* booking_widget (stage 1 stub) */
.booking-stub {
    display: grid;
    gap: var(--space-5);
    padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
    border: 1px solid var(--c-brand-tint);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff 0%, var(--c-brand-soft) 100%);
}

@media (min-width: 640px) {
    .booking-stub {
        grid-template-columns: auto minmax(0, 1fr);
        gap: var(--space-6);
    }
}

.booking-stub__icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    background: var(--c-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.booking-stub__icon .icon {
    width: 2rem;
    height: 2rem;
}

.booking-stub__title {
    margin: var(--space-3) 0 var(--space-3);
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
}

.booking-stub__text {
    max-width: 40rem;
    margin: 0;
    font-size: 1.0625rem;
}

.booking-stub__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-5);
    margin-top: var(--space-5);
}

.booking-stub__hours {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    color: var(--c-ink-2);
    font-size: 0.9375rem;
}

.booking-stub__hours .icon {
    color: var(--c-brand-dark);
}

/* 16. Lightbox, compare, 404, utilities, a11y ------------------------------ */

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(22 17 14 / 0.94);
    color: #fff;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.lightbox::backdrop {
    background: transparent;
}

.lightbox__stage {
    display: grid;
    place-items: center;
    min-height: 0;
    margin: 0;
    padding: 4.5rem 1rem 0;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100dvh - 9.5rem);
    border-radius: var(--radius-sm);
    object-fit: contain;
    box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6);
}

.lightbox__caption {
    min-height: 3.5rem;
    padding: var(--space-4) var(--space-5) var(--space-5);
    color: rgb(255 255 255 / 0.85);
    font-size: 0.9375rem;
    text-align: center;
}

.lightbox__counter {
    position: absolute;
    top: 1.6rem;
    left: 1.5rem;
    color: rgb(255 255 255 / 0.7);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    transition: background-color var(--dur) var(--ease);
}

.lightbox__btn:hover {
    background: rgb(255 255 255 / 0.24);
}

.lightbox__btn .icon {
    width: 1.4rem;
    height: 1.4rem;
}

.lightbox__btn:focus-visible {
    outline-color: #fff;
}

.lightbox__close {
    top: 1rem;
    right: 1rem;
}

.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__prev {
    left: 1rem;
}

.lightbox__next {
    right: 1rem;
}

.lightbox__btn[hidden] {
    display: none;
}

@media (min-width: 960px) {
    .lightbox__stage {
        padding-inline: 5.5rem;
    }

    .lightbox__prev {
        left: 1.5rem;
    }

    .lightbox__next {
        right: 1.5rem;
    }
}

@media (max-width: 639px) {
    .lightbox__prev,
    .lightbox__next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .lightbox__caption {
        padding-inline: 4.5rem;
    }
}

.compare {
    --compare: 50%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-bg-soft);
    user-select: none;
    -webkit-user-select: none;
}

.compare__img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--compare-ratio, auto);
    object-fit: cover;
    pointer-events: none;
}

.compare__after {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 var(--compare));
}

.compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare);
    width: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06);
    transform: translateX(-50%);
    pointer-events: none;
}

.compare__handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9401a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.3rem no-repeat;
    box-shadow: var(--shadow);
    transform: translate(-50%, -50%);
}

.compare__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    appearance: none;
    -webkit-appearance: none;
}

.compare:has(.compare__range:focus-visible) .compare__handle::after {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
}

.compare__label {
    position: absolute;
    top: var(--space-3);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgb(30 22 18 / 0.62);
    color: #fff;
    font: 700 0.75rem/1.3 var(--font-display);
    pointer-events: none;
}

.compare__label--before {
    left: var(--space-3);
}

.compare__label--after {
    right: var(--space-3);
}

.error-page {
    padding-block: var(--space-7) var(--space-8);
    text-align: center;
}

.error-page__code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.06em;
    margin: 0 0 var(--space-5);
    color: var(--c-ink-strong);
    font: 700 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--font-display);
    letter-spacing: -0.04em;
}

.error-page__code img {
    width: 0.78em;
    height: auto;
    margin-top: -0.12em;
}

.error-page__title {
    margin-bottom: var(--space-4);
}

.error-page__text {
    max-width: 34rem;
    margin: 0 auto var(--space-6);
    color: var(--c-ink-2);
    font-size: 1.0625rem;
}

.error-page .button-row {
    justify-content: center;
}

.error-page__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) var(--space-5);
    margin: var(--space-6) 0 0;
    padding: 0;
    list-style: none;
}

.error-page__links a {
    font-weight: 700;
    text-decoration: none;
}

.error-page__links a:hover {
    text-decoration: underline;
}

.error-page__phone {
    margin: var(--space-5) 0 0;
    color: var(--c-ink-2);
}

.error-page__phone a {
    color: var(--c-ink-strong);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.icon {
    display: inline-block;
    flex: none;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.22em;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--c-ink-2);
}

.text-brand {
    color: var(--c-brand-dark);
}

.nowrap {
    white-space: nowrap;
}

.media-frame {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-bg-soft);
}

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

.card:focus-within:has(.card__link:focus-visible) {
    outline: 3px solid var(--c-focus);
    outline-offset: 3px;
}

.card__link:focus-visible {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating-cta::before {
        animation: none;
    }
}

@media print {
    .site-header,
    .floating-cta,
    .site-footer__grid,
    .carousel__nav {
        display: none !important;
    }

    body {
        color: #000;
    }

    .section {
        padding-block: 1rem;
    }
}
