/*!
 * АвтоКлиматСервис - modern design system
 * 2026 rebuild. Self-contained (no Bootstrap dependency).
 */

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
    /* Brand */
    --brand: #0b63c4;
    --brand-dark: #0a4a96;
    --brand-darker: #07336a;
    --brand-ink: #04243f;
    --accent: #ff7a18;        /* warmth / CTA */
    --accent-dark: #e85f00;
    --cold: #19b6e8;          /* cool accent */

    /* Neutrals */
    --ink: #11202f;
    --ink-soft: #3a4a5a;
    --muted: #67788a;
    --line: #e6ecf3;
    --line-strong: #d3dde7;
    --surface: #ffffff;
    --surface-alt: #f4f8fc;
    --surface-2: #eef3f9;

    /* Effects */
    --radius: 14px;
    --radius-lg: 22px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(16, 36, 63, .06), 0 2px 6px rgba(16, 36, 63, .05);
    --shadow: 0 6px 20px rgba(16, 36, 63, .08), 0 2px 6px rgba(16, 36, 63, .05);
    --shadow-lg: 0 18px 50px rgba(11, 51, 106, .16);
    --shadow-brand: 0 16px 34px rgba(11, 99, 196, .28);
    --shadow-accent: 0 14px 30px rgba(255, 122, 24, .32);

    /* Typography */
    --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

    /* Layout */
    --container: 1180px;
    --gutter: clamp(18px, 4vw, 40px);
    --header-h: 74px;

    --grad-brand: linear-gradient(135deg, #0b63c4 0%, #0a4a96 55%, #07336a 100%);
    --grad-accent: linear-gradient(135deg, #ff8a32 0%, #ff7a18 50%, #e85f00 100%);
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }

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

::selection { background: var(--brand); color: #fff; }

/* ============================================================
   3. Layout helpers
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.section__head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: .9rem;
}
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.text-center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
    --btn-bg: var(--brand);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: .92em 1.5em;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-fg);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--primary { background: var(--grad-accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { box-shadow: 0 18px 38px rgba(255, 122, 24, .42); }

.btn--brand { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--brand:hover { box-shadow: 0 20px 40px rgba(11, 99, 196, .4); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }

.btn--light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn--light:hover { background: #fff; color: var(--brand-darker); border-color: #fff; }

.btn--lg { font-size: 1.06rem; padding: 1.05em 1.8em; }
.btn--block { width: 100%; }

/* ============================================================
   5. Header / navigation
   ============================================================ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background .28s ease, box-shadow .28s ease, height .28s ease;
}
.site-header.is-transparent { background: linear-gradient(to bottom, rgba(4,36,63,.55), rgba(4,36,63,0)); }
.site-header.is-solid {
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(16,36,63,.07);
}

.nav { display: flex; align-items: center; gap: 1.5rem; width: 100%; }

.nav__brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: inherit; letter-spacing: -.01em; }
.nav__brand img { width: 40px; height: 40px; object-fit: contain; }
.is-transparent .nav__brand,
.is-transparent .nav__link { color: #fff; }
.is-solid .nav__brand { color: var(--ink); }
.is-solid .nav__link { color: var(--ink-soft); }

.nav__menu { display: flex; align-items: center; gap: .35rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .96rem;
    padding: .55em .85em;
    border-radius: 9px;
    transition: background .18s ease, color .18s ease;
}
.nav__link:hover { background: rgba(127,127,127,.14); }
.is-transparent .nav__link:hover { background: rgba(255,255,255,.18); color: #fff; }

.nav__phone {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: .98rem;
    padding: .6em 1.15em; border-radius: 999px;
    background: var(--grad-accent); color: #fff !important;
    box-shadow: var(--shadow-accent);
    transition: transform .18s ease, box-shadow .18s ease;
}
.nav__phone:hover { transform: translateY(-2px); color: #fff; }
.nav__phone svg { width: 1.05em; height: 1.05em; }

.nav__toggle {
    display: none;
    margin-left: auto;
    width: 46px; height: 46px;
    border: 0; background: transparent; cursor: pointer;
    padding: 11px;
}
.nav__toggle span { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle span + span { margin-top: 5px; }
.is-transparent .nav__toggle { color: #fff; }
.is-solid .nav__toggle { color: var(--ink); }

/* ============================================================
   6. Hero (home)
   ============================================================ */
.hero { position: relative; min-height: clamp(560px, 88vh, 840px); display: flex; align-items: center; padding: calc(var(--header-h) + 28px) 0 52px; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, rgba(4,28,52,.92) 0%, rgba(7,51,106,.78) 42%, rgba(11,99,196,.34) 100%);
}
.hero__inner { max-width: 720px; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.25rem); margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__title .accent { color: #ffd9b0; }
.hero__text { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 600px; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero__trust div { display: flex; align-items: center; gap: .6rem; font-size: .98rem; color: rgba(255,255,255,.92); }
.hero__trust svg { width: 1.4rem; height: 1.4rem; color: #ffd9b0; flex-shrink: 0; }

.badge-since {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: .82rem;
    letter-spacing: .1em; text-transform: uppercase;
    padding: .5em 1em; border-radius: 999px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
    color: #fff; margin-bottom: 1.4rem;
}
.badge-since span { color: #ffd9b0; }

/* ============================================================
   7. Stats band
   ============================================================ */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.stat { background: var(--surface); padding: clamp(22px, 3vw, 34px) 18px; text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1; color: var(--brand); }
.stat__num .plus { color: var(--accent); }
.stat__label { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

/* ============================================================
   8. Service cards grid
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(20px, 3vw, 30px); }

.service-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card__title { font-size: 1.22rem; margin-bottom: .45rem; }
.service-card__title a { color: var(--ink); }
.service-card:hover .service-card__title a { color: var(--brand); }
.service-card__text { color: var(--muted); font-size: .98rem; margin-bottom: 1.2rem; flex: 1; }
.service-card__link {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--font-head); font-weight: 600; font-size: .96rem;
    color: var(--brand); align-self: flex-start;
}
.service-card__link svg { width: 1.05em; height: 1.05em; transition: transform .2s ease; }
.service-card:hover .service-card__link svg { transform: translateX(4px); }
.service-card__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(4,36,63,.28), transparent 55%);
}

/* ============================================================
   9. Features / why-us
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.feature { text-align: left; }
.feature__icon {
    width: 58px; height: 58px; border-radius: 16px;
    display: grid; place-items: center; margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(11,99,196,.12), rgba(25,182,232,.16));
    color: var(--brand);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ============================================================
   10. Gallery
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px;
    color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
    background: linear-gradient(to top, rgba(4,28,52,.85), transparent);
}

/* ============================================================
   10b. Slider (auto-rotating showcase)
   ============================================================ */
.slider { position: relative; max-width: 1040px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #07243f; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slider__slide { position: relative; min-width: 100%; margin: 0; }
.slider__slide img { width: 100%; height: clamp(340px, 56vh, 600px); object-fit: cover; display: block; }
.slider__slide figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 56px 32px 26px; color: #fff;
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    background: linear-gradient(to top, rgba(4,28,52,.9), transparent);
}
.slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.9); color: var(--brand-dark); cursor: pointer;
    display: grid; place-items: center; box-shadow: var(--shadow);
    transition: background .2s ease, transform .2s ease;
}
.slider__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider__arrow--prev { left: 18px; }
.slider__arrow--next { right: 18px; }
.slider__arrow svg { width: 24px; height: 24px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; gap: 9px; justify-content: center; }
.slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.slider__dot:hover { background: rgba(255,255,255,.8); }
.slider__dot.is-active { background: #fff; transform: scale(1.3); }
@media (max-width: 560px) {
    .slider__arrow { width: 42px; height: 42px; }
    .slider__arrow--prev { left: 10px; }
    .slider__arrow--next { right: 10px; }
    .slider__slide figcaption { padding: 44px 18px 22px; }
}

/* ============================================================
   11. CTA band
   ============================================================ */
.cta { position: relative; color: #fff; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(7,51,106,.95), rgba(11,99,196,.82)); }
.cta__inner { text-align: center; padding: clamp(56px, 8vw, 96px) 0; max-width: 720px; margin-inline: auto; }
.cta__inner h2 { color: #fff; }
.cta__inner p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 1.8rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ============================================================
   12. Page hero (interior pages)
   ============================================================ */
.page-hero { position: relative; color: #fff; padding: calc(var(--header-h) + 56px) 0 56px; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(4,28,52,.94), rgba(7,51,106,.74) 60%, rgba(11,99,196,.5)); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 60ch; font-size: 1.1rem; margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; list-style: none; padding: 0; margin: 0 0 1.1rem; font-size: .9rem; }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li[aria-current] { color: #fff; }
.breadcrumb svg { width: .8rem; height: .8rem; opacity: .6; }

/* ============================================================
   13. Pricing table
   ============================================================ */
.price-wrap { max-width: 900px; margin-inline: auto; }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.price-table thead th {
    background: var(--grad-brand); color: #fff;
    font-family: var(--font-head); font-weight: 600; font-size: .92rem;
    text-transform: uppercase; letter-spacing: .04em;
    padding: 16px 20px; text-align: left;
}
.price-table thead th:last-child { text-align: right; }
.price-table thead th:first-child { width: 56px; text-align: center; }
.price-table tbody td { padding: 15px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr:nth-child(even) { background: var(--surface-alt); }
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table .col-num { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.price-table .col-name { color: var(--ink); }
.price-table .col-cost { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--brand-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 1rem; }

/* ============================================================
   13b. About-service block
   ============================================================ */
.about-service { max-width: 820px; margin-inline: auto; }
.about-service__text { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.72; }
.about-service__text p { margin: 0 0 1rem; }
.about-service__text p:last-child { margin-bottom: 0; }

.about-service__freq {
    display: flex; gap: 18px; align-items: flex-start;
    margin-top: 2rem; padding: 22px 26px;
    background: var(--surface); border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
}
.about-service__freq svg { flex-shrink: 0; width: 28px; height: 28px; color: var(--brand); margin-top: 2px; }
.about-service__freq strong {
    display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); margin-bottom: .35rem;
}
.about-service__freq p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   14. FAQ (native details/summary)
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
    list-style: none; cursor: pointer; padding: 20px 22px;
    font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: ""; flex-shrink: 0; width: 22px; height: 22px;
    background: var(--surface-2); border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b63c4' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    background-size: 14px; background-repeat: no-repeat; background-position: center;
    transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__item .faq__a { padding: 0 22px 20px; color: var(--ink-soft); }
.faq__item .faq__a p { margin: 0; }

/* ============================================================
   15. Related services chips
   ============================================================ */
.related { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65em 1.2em; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-strong);
    font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-soft);
    transition: all .18s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ============================================================
   16. Content (prose) section
   ============================================================ */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose p { color: var(--ink-soft); }

/* ============================================================
   17. Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-card__icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(11,99,196,.12), rgba(25,182,232,.16)); color: var(--brand); }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card a { font-weight: 600; }
.map-wrap { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 100%; }
.map-wrap img { width: 100%; height: 100%; min-height: clamp(380px, 56vh, 600px); object-fit: cover; }

/* ============================================================
   18. Footer
   ============================================================ */
.site-footer { background: #07243f; color: rgba(255,255,255,.78); padding-top: clamp(48px, 7vw, 76px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 48px); padding-bottom: 40px; }
.footer__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 1rem; }
.footer__brand img { width: 40px; height: 40px; object-fit: contain; }
.footer__about { font-size: .96rem; color: rgba(255,255,255,.62); max-width: 32ch; }
.footer h4 { color: #fff; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer__links a { color: rgba(255,255,255,.74); font-size: .98rem; }
.footer__links a:hover { color: #fff; padding-left: 4px; }
.footer__contact { display: grid; gap: .9rem; }
.footer__contact a, .footer__contact p { color: rgba(255,255,255,.74); display: flex; gap: .6rem; align-items: flex-start; margin: 0; font-size: .98rem; }
.footer__contact svg { width: 1.15rem; height: 1.15rem; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; font-size: .9rem; color: rgba(255,255,255,.55); }

/* ============================================================
   19. Responsive
   ============================================================ */
@media (max-width: 960px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .nav__toggle { display: block; }
    .nav__menu {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: .25rem;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);
        padding: 16px var(--gutter) 24px;
        box-shadow: 0 14px 30px rgba(16,36,63,.14);
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: transform .25s ease, opacity .25s ease;
        margin-left: 0;
    }
    .nav.is-open .nav__menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav__link { color: var(--ink-soft) !important; padding: .8em 1em; }
    .nav__link:hover { background: var(--surface-2); }
    .nav__phone { margin-top: .5rem; justify-content: center; }
    .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    /* keep toggle dark when menu open over solid sheet */
    .nav.is-open .nav__toggle { color: var(--ink); }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    /* Keep the "since 2003" pill on one line on narrow phones */
    .badge-since { font-size: .66rem; letter-spacing: .04em; padding: .5em .85em; white-space: nowrap; }
    .hero__title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
    .stats { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__actions .btn, .cta__actions .btn { width: 100%; }

    /* Pricing table -> stacked cards */
    .price-table { box-shadow: none; background: transparent; }
    .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
    .price-table tbody tr {
        background: var(--surface) !important; border: 1px solid var(--line);
        border-radius: var(--radius); margin-bottom: 14px; padding: 8px 16px 14px; box-shadow: var(--shadow-sm);
    }
    .price-table tbody td { border: 0; padding: 7px 0; }
    .price-table .col-num { display: none; }
    .price-table .col-name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; padding-bottom: 4px; }
    .price-table .col-cost { text-align: left; font-size: 1.15rem; }
    .price-table .col-cost::before { content: "Стоимость: "; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .9rem; }
}

/* ============================================================
   20. Motion preferences & utilities
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Gated behind .js so content is always visible without JavaScript */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
