/* РегионГаз 16 — лендинг */

:root {
    --navy-950: #05131f;
    --navy-900: #071a2c;
    --navy-800: #0c2742;
    --navy-700: #14385c;
    --blue-600: #0f86d8;
    --blue-500: #1d9bf0;
    --blue-400: #38b6ff;
    --blue-100: #dff1ff;
    --blue-50: #f0f8ff;
    --yellow-500: #ffc629;
    --yellow-600: #f2b300;
    --ink: #0d2033;
    --text: #33475b;
    --muted: #64768a;
    --line: #e2e9f0;
    --bg: #f4f8fb;
    --white: #fff;
    --danger: #d43c3c;
    --success: #1f9d61;

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(7, 26, 44, .06), 0 4px 14px rgba(7, 26, 44, .05);
    --shadow: 0 2px 4px rgba(7, 26, 44, .05), 0 18px 44px rgba(7, 26, 44, .10);
    --shadow-lg: 0 30px 80px rgba(3, 14, 26, .35);

    --container: 1200px;
    --gutter: 24px;
    --header-h: 76px;
    --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font: 400 17px/1.6 var(--font);
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }

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

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--yellow-500);
    color: var(--ink);
    border-radius: 10px;
    font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ кнопки */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1.5px solid transparent;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .94rem; border-radius: 12px; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 1.06rem; border-radius: 16px; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--yellow-500);
    color: var(--navy-900);
    box-shadow: 0 8px 22px rgba(255, 198, 41, .28);
}
.btn--primary:hover { background: #ffd24f; color: var(--navy-900); box-shadow: 0 10px 28px rgba(255, 198, 41, .4); }

.btn--ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }

.btn--ghost-dark { border-color: var(--line); background: var(--white); color: var(--ink); }

.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); color: var(--white); }

.btn .icon { transition: transform .2s; }
.btn:hover .icon:has(use[href="#i-arrow"]) { transform: translateX(3px); }

/* ------------------------------------------------------------------ шапка */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(7, 26, 44, .06); }

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    flex: none;
}
.logo:hover { color: var(--ink); }
.logo img { width: 34px; height: 40px; object-fit: contain; }
.logo__text { font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; line-height: 1.1; }
.logo__text b { color: var(--blue-500); font-weight: 800; }
.logo__text small {
    display: block;
    margin-top: 3px;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}
.logo--light, .logo--light:hover { color: var(--white); }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--bg); color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.02rem;
    white-space: nowrap;
}
.header__phone .icon { color: var(--blue-500); }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    align-items: center;
    justify-content: center;
}
.burger .icon { width: 22px; height: 22px; }
.burger .icon--close { display: none; }
.burger[aria-expanded="true"] .icon--menu { display: none; }
.burger[aria-expanded="true"] .icon--close { display: block; }

/* ------------------------------------------------------------------ первый экран */

.hero {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    background:
        radial-gradient(900px 520px at 88% 12%, rgba(29, 155, 240, .30), transparent 62%),
        radial-gradient(700px 480px at -8% 100%, rgba(29, 155, 240, .16), transparent 60%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 64px;
    align-items: center;
    padding-block: 72px 136px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 8px 14px 8px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .86);
    font-size: .88rem;
    font-weight: 600;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-400);
    box-shadow: 0 0 0 4px rgba(56, 182, 255, .22);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.1rem, 1.1rem + 3.9vw, 3.75rem);
    line-height: 1.06;
    letter-spacing: -.03em;
}
.accent { color: var(--yellow-500); white-space: nowrap; }

.hero__lead {
    max-width: 34em;
    margin-top: 24px;
    font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem);
    line-height: 1.6;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__points { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; }
.hero__points li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .9);
    font-size: .95rem;
    font-weight: 600;
}
.hero__points .icon {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(56, 182, 255, .18);
    color: var(--blue-400);
    stroke-width: 2.6;
}

.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.hero__photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 70% 50%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    pointer-events: none;
}

.hero__card {
    position: absolute;
    z-index: 1;
    background: var(--white);
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: .88rem;
    line-height: 1.4;
}
.hero__card b { display: block; color: var(--ink); font-weight: 800; }
.hero__card--offer {
    left: -44px;
    bottom: 36px;
    display: flex;
    gap: 14px;
    align-items: center;
    width: 300px;
    padding: 16px 18px;
}
.hero__card--offer b { font-size: 1.02rem; margin-bottom: 2px; }
.hero__card-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--yellow-500);
    color: var(--navy-900);
}
.hero__card--since { top: 28px; right: -20px; padding: 14px 18px; background: var(--navy-800); color: rgba(255, 255, 255, .75); max-width: 150px; }
.hero__card--since b { color: var(--blue-400); font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }

/* ------------------------------------------------------------------ цифры */

.stats { position: relative; z-index: 2; margin-top: -72px; }
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.stats__grid li { padding: 30px 28px; }
.stats__grid li + li { border-left: 1px solid var(--line); }
.stats__grid b {
    display: block;
    color: var(--ink);
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
}
.stats__grid span { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* ------------------------------------------------------------------ секции */

.section { padding-block: clamp(64px, 4vw + 48px, 112px); }
.section--tint { background: var(--bg); }

.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--blue-600);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--blue-400); }
.eyebrow--dark { color: var(--navy-900); }

/* ------------------------------------------------------------------ услуги */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    padding: 30px 28px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--blue-50);
    color: var(--blue-600);
    transition: background-color .25s, color .25s;
}
.card__icon .icon { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--blue-500); color: var(--white); }
.card p { margin-top: 10px; color: var(--muted); font-size: .98rem; }

.objects {
    display: flex;
    align-items: center;
    gap: 16px 28px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 24px 28px;
    border-radius: var(--radius);
    background: var(--bg);
}
.objects__title { color: var(--ink); font-weight: 800; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: .92rem;
    font-weight: 600;
}

/* ------------------------------------------------------------------ спецпредложение */

.offer__box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 44px 52px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--yellow-500), #ffd75e);
    color: var(--navy-800);
}
.offer__box::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .22);
    pointer-events: none;
}
.offer__text { position: relative; z-index: 1; max-width: 640px; }
.offer__text h2 { color: var(--navy-900); }
.offer__text p:last-child { margin-top: 12px; font-size: 1.1rem; font-weight: 500; }
.offer__box .btn { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ преимущества */

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.split__media { position: relative; }
.split__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 78%;
    border-radius: var(--radius-lg);
}
.split__media figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(7, 26, 44, .72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: .84rem;
    font-weight: 600;
}
.split .section__head { margin-bottom: 36px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 36px; }
.features li { display: flex; gap: 16px; }
.features__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--navy-900);
    color: var(--yellow-500);
}
.features__icon .icon { width: 24px; height: 24px; }
.features p { margin-top: 6px; color: var(--muted); font-size: .96rem; }

/* ------------------------------------------------------------------ шаги */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.steps li {
    position: relative;
    padding: 28px 24px 30px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    counter-increment: step;
}
.steps li::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 18px;
    color: var(--blue-500);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}
.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    right: -21px;
    z-index: 1;
    width: 21px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue-400) 0 4px, transparent 4px 8px);
}
.steps li:last-child { background: var(--navy-900); border-color: var(--navy-900); }
.steps li:last-child h3 { color: var(--white); }
.steps li:last-child p { color: rgba(255, 255, 255, .72); }
.steps li:last-child::before { color: var(--yellow-500); }
.steps p { margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* ------------------------------------------------------------------ объекты */

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}
.project__media { overflow: hidden; background: var(--bg); }
.project__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.project:hover .project__media img { transform: scale(1.04); }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.project__place {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--blue-600);
    font-size: .86rem;
    font-weight: 700;
}
.project__place .icon { width: 16px; height: 16px; }
.project h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.project__body > p:not(.project__place) { margin-top: 10px; color: var(--muted); }
.project__facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 22px; }
.project__facts li {
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--bg);
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.3;
}
.project__facts b { display: block; color: var(--ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }

.project--wide { grid-column: 1 / -1; flex-direction: row; }
.project--wide .project__media { flex: 1.15; }
.project--wide .project__media img { aspect-ratio: auto; min-height: 380px; }
.project--wide .project__body { flex: 1; justify-content: center; padding: 44px; }
.project--wide h3 { font-size: 1.75rem; }
.project--wide .project__facts { margin-top: 0; }

/* ------------------------------------------------------------------ вопросы */

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq .section__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq .section__head .btn { margin-top: 28px; }

.faq__list { display: grid; gap: 12px; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-600);
    transition: transform .25s, background-color .25s, color .25s;
}
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--blue-500); color: var(--white); }
.faq details p { padding: 0 72px 24px 24px; color: var(--text); }
.faq details a, .doc a { text-decoration: underline; text-decoration-color: rgba(15, 134, 216, .35); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ контакты */

.contact {
    position: relative;
    overflow: hidden;
    padding-block: clamp(64px, 4vw + 48px, 112px);
    color: rgba(255, 255, 255, .76);
    background:
        radial-gradient(800px 500px at 0% 0%, rgba(29, 155, 240, .22), transparent 60%),
        linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: center; }
.contact h2 { color: var(--white); }
.contact__lead { max-width: 30em; margin-top: 18px; font-size: 1.1rem; }
.contact__list { display: grid; gap: 22px; margin-top: 40px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    background: rgba(255, 255, 255, .06);
    color: var(--blue-400);
}
.contact__list small { display: block; color: rgba(255, 255, 255, .55); font-size: .82rem; font-weight: 500; }
.contact__list a { color: var(--white); font-size: 1.12rem; font-weight: 700; line-height: 1.35; }
.contact__list a:hover { color: var(--blue-400); }
.contact__list li:first-child a { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }

.contact__form {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.contact__form > h3, .modal__body > h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.contact__form > p, .modal__body > p { margin-top: 8px; color: var(--muted); font-size: .96rem; }

/* ------------------------------------------------------------------ форма */

.form { display: grid; gap: 16px; margin-top: 24px; }
.field { display: block; }
.field__label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.field__label i { color: var(--muted); font-style: normal; font-weight: 500; }

.field input, .field textarea {
    display: block;
    width: 100%;
    padding: 0 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font: 500 1rem/1.4 var(--font);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}
.field input { height: 54px; }
.field textarea { min-height: 96px; padding-block: 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa9b8; font-weight: 400; }
.field input:hover, .field textarea:hover { border-color: #c9d5e1; }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(29, 155, 240, .16);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); background: #fff7f7; }

.field__error { display: none; margin-top: 6px; color: var(--danger); font-size: .84rem; font-weight: 600; }
.field__error:not(:empty) { display: block; }
.check + .field__error { margin-top: -8px; }

/* Ловушка для ботов: вне экрана, недоступна с клавиатуры и для скринридеров */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .84rem; line-height: 1.45; cursor: pointer; }
.check input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1.5px solid #c3cfdb;
    border-radius: 7px;
    background: var(--white) center / 14px no-repeat;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.check input:checked {
    border-color: var(--blue-500);
    background-color: var(--blue-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500'/%3E%3C/svg%3E");
}
.check.is-invalid input { border-color: var(--danger); }
.check a { text-decoration: underline; text-underline-offset: 2px; }

.form__status {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #fff1f1;
    color: #a12b2b;
    font-size: .92rem;
    font-weight: 600;
}
.form__note { margin-top: 16px; font-size: .95rem; }

.btn__spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(7, 26, 44, .25);
    border-top-color: var(--navy-900);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.form.is-sending .btn { pointer-events: none; opacity: .85; }
.form.is-sending .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { padding: 16px 0 8px; text-align: center; outline: none; }
.success__icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #e3f7ec;
    color: var(--success);
}
.success__icon .icon { width: 34px; height: 34px; stroke-width: 2.6; }
.success h3 { font-size: 1.6rem; font-weight: 800; }
.success p { margin-top: 10px; color: var(--muted); }
.success__phone { font-size: .94rem; }
.success__phone a { font-weight: 700; white-space: nowrap; }

/* ------------------------------------------------------------------ модальное окно */

.modal {
    width: min(480px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    overflow: auto;
}
.modal::backdrop {
    background: rgba(5, 19, 31, .62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.modal[open] { animation: modal-in .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__body { padding: 40px; }
.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
    transition: background-color .2s, color .2s;
}
.modal__close:hover { background: var(--line); color: var(--ink); }

/* ------------------------------------------------------------------ подвал */

.footer { background: var(--navy-950); color: rgba(255, 255, 255, .6); font-size: .94rem; }
.footer__inner {
    display: grid;
    grid-template-columns: 1.25fr 1.2fr .9fr auto;
    gap: 48px;
    padding-block: 56px 40px;
}
.footer__brand p { max-width: 22em; margin-top: 16px; }
.footer__title {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .45);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.footer__nav, .footer__contacts { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer__contacts span { max-width: 16em; }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: var(--white); }
.footer__contacts a[href^="tel"] { color: var(--white); font-size: 1.2rem; font-weight: 800; }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .86rem;
}

/* ------------------------------------------------------------------ панель на телефоне */

.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .3s;
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { flex: 1; padding: 0 12px; box-shadow: none; }

/* ------------------------------------------------------------------ появление при прокрутке */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n + 2), .steps .reveal:nth-child(2), .features .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3n), .steps .reveal:nth-child(3), .features .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4), .features .reveal:nth-child(4) { transition-delay: .24s; }
.steps .reveal:nth-child(5) { transition-delay: .32s; }

/* ------------------------------------------------------------------ документ (политика) */

.doc { max-width: 820px; padding-block: 56px 88px; }
.doc h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 12px; letter-spacing: -.01em; }
.doc p, .doc li { margin-top: 10px; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc__meta { color: var(--muted); font-size: .92rem; }
.doc__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-weight: 700; }
.doc__back .icon { transform: rotate(180deg); }

/* ------------------------------------------------------------------ адаптив */

@media (max-width: 1240px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--gutter) 20px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(7, 26, 44, .12);
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 14px 4px; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .nav a:last-child { border-bottom: 0; }
    .header__actions { margin-left: auto; }
    .burger { display: inline-flex; }
}

@media (max-width: 1180px) {
    .hero__card--offer { left: -20px; }
    .hero__card--since { right: -8px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li:not(:last-child)::after { display: none; }
}

@media (max-width: 1020px) {
    .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 120px; }
    .hero__visual { justify-self: center; max-width: 560px; }
    .hero__photo { aspect-ratio: 4 / 3; object-position: 60% 45%; }
    .hero__card--offer { left: 16px; bottom: -28px; }
    .hero__card--since { top: 16px; right: 16px; }

    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__grid li:nth-child(3) { border-left: 0; }
    .stats__grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }

    .cards { grid-template-columns: repeat(2, 1fr); }
    .split, .faq, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
    .split__media img { aspect-ratio: 16 / 10; object-position: 50% 70%; }
    .faq .section__head { position: static; }
    .contact__form { max-width: 560px; }

    .project--wide { flex-direction: column; }
    .project--wide .project__media img { min-height: 0; aspect-ratio: 16 / 9; }
    .project--wide .project__body { padding: 28px 30px 30px; }
    .project--wide .project__facts { margin-top: auto; }

    .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

@media (max-width: 720px) {
    :root { --gutter: 18px; --header-h: 64px; }
    body { font-size: 16px; }

    .header__inner { gap: 12px; }
    .header__cta { display: none; }
    .header__phone span { display: none; }
    .header__phone {
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: 12px;
        background: var(--blue-50);
    }
    .logo img { width: 30px; height: 35px; }
    .logo__text { font-size: 1.05rem; }
    .logo__text small { font-size: .68rem; }

    .hero__inner { padding-block: 36px 108px; }
    .hero__eyebrow { margin-bottom: 20px; font-size: .8rem; }
    .hero__cta { flex-direction: column; margin-top: 28px; }
    .hero__cta .btn { width: 100%; }
    .hero__points { flex-direction: column; gap: 10px; margin-top: 28px; }
    .hero__card--offer { left: 12px; right: 12px; width: auto; }
    .hero__card--since { padding: 10px 14px; }
    .hero__card--since b { font-size: 1.2rem; }

    .stats { margin-top: -52px; }
    .stats__grid li { padding: 20px 18px; }

    .section__head { margin-bottom: 36px; }
    .section__lead { font-size: 1.02rem; }

    .cards { grid-template-columns: 1fr; gap: 14px; }
    .card { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 22px 20px; }
    .card__icon { grid-row: span 2; margin-bottom: 0; }
    .card p { grid-column: 2; margin-top: 6px; }
    .card h3 { align-self: center; }
    .objects { padding: 20px; }

    .offer__box { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
    .offer__box .btn { width: 100%; }

    .features { grid-template-columns: 1fr; gap: 24px; }
    .steps { grid-template-columns: 1fr; gap: 12px; }
    .steps li { display: grid; grid-template-columns: 56px 1fr; padding: 20px; }
    .steps li::before { grid-row: span 2; margin: 2px 0 0; font-size: 1.6rem; }
    .steps p { grid-column: 2; margin-top: 4px; }

    .projects { grid-template-columns: 1fr; gap: 16px; }
    .project__body, .project--wide .project__body { padding: 22px 20px 24px; }
    .project h3, .project--wide h3 { font-size: 1.3rem; }

    .faq summary { padding: 18px; font-size: 1rem; }
    .faq details p { padding: 0 18px 20px; }

    .contact__form, .modal__body { padding: 28px 20px; }
    .contact__list li:first-child a { font-size: 1.3rem; }
    .contact__list a { font-size: 1rem; }

    .footer__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 32px; }
    .footer { padding-bottom: 76px; }
    .mobile-bar { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
