/* =========================================================
   Сайт службы по контракту
   Тёмная «полевая» тема: графит и олива, акцент — оранжевый
   ========================================================= */

:root {
    color-scheme: dark;

    --bg: #0c0f0b;
    --bg-alt: #11150f;
    --surface: #171d15;
    --surface-2: #1e261b;
    --surface-3: #283224;
    --footer-bg: #080a07;
    --bg-rgb: 12, 15, 11;
    --surface-rgb: 23, 29, 21;
    --fg-rgb: 233, 230, 216;
    --line: rgba(var(--fg-rgb), .1);
    --line-strong: rgba(var(--fg-rgb), .2);

    --text: #ebe8dc;
    --text-2: #d6d3c5;
    --muted: #a8ab9b;
    --dim: #7b7f6f;

    /* второй цвет: иконки, подписи, пометки */
    --olive: #6b7a45;
    --olive-hi: #9aaa66;
    --olive-rgb: 107, 122, 69;

    /* акцент: --accent — заливки (кнопки, плашки), --accent-fg — текст и иконки */
    --accent: #f28a1b;
    --accent-hi: #ffa53a;
    --accent-ink: #15100a;
    --accent-fg: #f28a1b;
    --accent-rgb: 242, 138, 27;
    --tint: rgba(242, 138, 27, .13);
    --danger: #ff8b78;

    /* георгиевская лента */
    --ribbon: linear-gradient(180deg, #0a0a0a 0 20%, #f28a1b 20% 40%, #0a0a0a 40% 60%, #f28a1b 60% 80%, #0a0a0a 80% 100%);

    --ff-head: "Oswald", "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
    --ff-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --header-h: 72px;
    --cut: 12px;
}

/* ---------- Схема «Триколор»: тёмно-синий, белый, красный ---------- */
:root[data-theme="navy"] {
    --bg: #0a111e;
    --bg-alt: #0d1626;
    --surface: #121d30;
    --surface-2: #19263d;
    --surface-3: #26364f;
    --footer-bg: #060b14;
    --bg-rgb: 10, 17, 30;
    --surface-rgb: 18, 29, 48;
    --fg-rgb: 222, 231, 245;

    --text: #eef2f8;
    --text-2: #cdd6e4;
    --muted: #9dabc0;
    --dim: #6f7f96;

    --olive: #3565b8;
    --olive-hi: #9cc1ff;
    --olive-rgb: 53, 101, 184;

    --accent: #d42a20;
    --accent-hi: #ec3d32;
    --accent-ink: #fff;
    --accent-fg: #7fb2ff;
    --accent-rgb: 212, 42, 32;
    --tint: rgba(127, 178, 255, .14);

    --ribbon: linear-gradient(180deg, #fff 0 33.4%, #1d4fb5 33.4% 66.7%, #d42a20 66.7% 100%);
}

/* ---------- Схема «Хаки»: светлый песок и олива; шапка, первый экран, заявка и подвал — тёмные ---------- */
:root[data-theme="sand"] {
    color-scheme: light;

    --bg: #ebe6d6;
    --bg-alt: #e2dcc8;
    --surface: #f7f3e8;
    --surface-2: #eee8d7;
    --surface-3: #cdc6ac;
    --footer-bg: #12160d;
    --bg-rgb: 235, 230, 214;
    --surface-rgb: 247, 243, 232;
    --fg-rgb: 32, 36, 22;
    --line: rgba(var(--fg-rgb), .15);
    --line-strong: rgba(var(--fg-rgb), .28);

    --text: #1b1f13;
    --text-2: #33382a;
    --muted: #575c49;
    --dim: #7b7f6b;

    --olive: #6b7a45;
    --olive-hi: #4c5a27;

    --accent: #cc5210;
    --accent-hi: #e0621c;
    --accent-ink: #fff;
    --accent-fg: #b3450b;
    --accent-rgb: 204, 82, 16;
    --tint: rgba(204, 82, 16, .12);
    --danger: #b3261e;
}
[data-theme="sand"] .site-header,
[data-theme="sand"] .hero,
[data-theme="sand"] .feature__media,
[data-theme="sand"] .section--cta,
[data-theme="sand"] .site-footer,
[data-theme="sand"] .mobile-bar,
[data-theme="sand"] .page-min__head,
[data-theme="sand"] .page-min__main {
    color-scheme: dark;
    color: var(--text);

    --bg: #1a1f14;
    --bg-alt: #1f2518;
    --surface: #252c1c;
    --surface-2: #2d3523;
    --surface-3: #3a442e;
    --bg-rgb: 26, 31, 20;
    --surface-rgb: 37, 44, 28;
    --fg-rgb: 241, 237, 221;
    --line: rgba(var(--fg-rgb), .12);
    --line-strong: rgba(var(--fg-rgb), .22);

    --text: #f1eddd;
    --text-2: #d9d6c5;
    --muted: #b4b7a2;
    --dim: #878b76;

    --olive-hi: #a9b877;
    --accent-fg: #f39a4a;
    --tint: rgba(243, 154, 74, .15);
    --danger: #ff8b78;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

section[id], article[id], div[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

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

/* ---------- Типографика ---------- */
h1, h2, h3, .feature__title {
    font-family: var(--ff-head);
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.12;
}

h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); font-weight: 600; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--ff-mono); font-size: .74rem; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase; color: var(--accent-fg);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }

.section { padding: clamp(60px, 8vw, 112px) 0; position: relative; }
.section--alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(135deg, rgba(var(--fg-rgb), .022) 0 1px, transparent 1px 14px);
    border-block: 1px solid var(--line);
}

.section-head { display: grid; gap: 16px; max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-lead { color: var(--muted); font-size: 1.06rem; max-width: 720px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: 1em 1.6em; border: 0; cursor: pointer;
    font-family: var(--ff-head); font-weight: 600; font-size: 1rem; line-height: 1;
    letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    transition: background-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: -4px; outline-color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hi); }
.btn-ghost { background: rgba(var(--fg-rgb), .1); color: var(--text); }
.btn-ghost:hover { background: rgba(var(--fg-rgb), .18); }
.btn-ghost:focus-visible { outline-color: var(--accent-hi); }
.btn-sm { padding: .8em 1.2em; font-size: .86rem; --cut: 9px; }
.btn-lg { padding: 1.15em 1.9em; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn-pulse { position: relative; overflow: hidden; }
.btn-pulse::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    animation: sheen 3.4s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }

.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
    border: 1px solid var(--line-strong); color: var(--muted);
    transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--accent-fg); border-color: var(--accent-fg); background: var(--tint); }

/* Уголки-«прицел» */
.bracket { position: relative; }
.bracket::before, .bracket::after {
    content: ""; position: absolute; width: 22px; height: 22px;
    border: 2px solid var(--accent); pointer-events: none; z-index: 2;
}
.bracket::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bracket::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- Шапка ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: rgba(var(--bg-rgb), .82);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: background-color .25s;
}
.site-header.is-scrolled { background: rgba(var(--bg-rgb), .96); }

/* Георгиевская лента */
.ribbon { height: 8px; background: var(--ribbon); }

.header-inner { display: flex; align-items: center; gap: 26px; height: 64px; }

.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--ff-head); font-weight: 700; font-size: 1.3rem;
    letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.logo-mark__shield { fill: var(--accent); }
.logo-mark__star { fill: var(--bg); }
.logo b { color: var(--accent-fg); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a {
    position: relative; padding: 6px 0;
    font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap; transition: color .2s;
}
.nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--accent); transition: right .25s;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }
.nav__extra { display: none; }

.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-head); font-weight: 600; font-size: 1.08rem; letter-spacing: .04em; white-space: nowrap;
}
.header-phone .ico { color: var(--accent-fg); width: 1em; height: 1em; }
.header-phone:hover { color: var(--accent-fg); }

.burger {
    display: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
    background: none; border: 1px solid var(--line-strong); cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 20px; height: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden; background: var(--bg);
    min-height: min(100svh, 920px);
    display: flex; align-items: flex-end;
    padding-top: calc(var(--header-h) + 48px);
}
.hero__bg {
    position: absolute; top: 0; right: 0; bottom: 0; width: 70%; z-index: -2;
    background: url("../img/bg.jpg") 50% 22% / cover no-repeat;
}
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(var(--bg-rgb), .78) 26%, rgba(var(--bg-rgb), .2) 62%, rgba(var(--bg-rgb), .5) 100%),
        linear-gradient(0deg, var(--bg) 2%, rgba(var(--bg-rgb), 0) 38%),
        linear-gradient(180deg, rgba(var(--bg-rgb), .7) 0%, rgba(var(--bg-rgb), 0) 22%);
}
.hero__grid {
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(var(--fg-rgb), .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--fg-rgb), .045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent 75%);
    mask-image: linear-gradient(90deg, #000 10%, transparent 75%);
}
.hero__inner { display: grid; gap: clamp(36px, 6vw, 72px); }
.hero__content { max-width: 680px; }

.tag {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
    padding: 7px 14px 7px 12px;
    background: rgba(var(--olive-rgb), .22); border: 1px solid rgba(var(--olive-rgb), .8);
    font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-2);
}
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero__title {
    font-size: clamp(2.3rem, 6.2vw, 4.7rem); font-weight: 700; line-height: 1.02;
    overflow-wrap: break-word;
}
.hero__title--long { font-size: clamp(2rem, 5vw, 3.8rem); }
.hero__title em { font-style: normal; color: var(--accent-fg); }
.hero__sub {
    display: block; margin-top: 16px;
    font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 500; letter-spacing: .16em; color: var(--muted);
}
.hero__lead { margin-top: 24px; max-width: 600px; font-size: 1.08rem; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(var(--bg-rgb), .86);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-top: 2px solid var(--accent);
}
.stat { display: grid; gap: 6px; padding: 22px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong {
    font-family: var(--ff-head); font-weight: 600; font-size: clamp(1.3rem, 2.3vw, 1.9rem);
    line-height: 1.1; letter-spacing: .01em; white-space: nowrap;
}
.stat:first-child strong { color: var(--accent-fg); }
.stat span { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Требования ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.req {
    display: flex; gap: 16px; align-items: flex-start; padding: 20px;
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color .25s, transform .25s;
}
.req:hover { border-color: var(--accent-fg); transform: translateY(-2px); }
.req__icon {
    display: grid; place-items: center; width: 46px; height: 46px; flex: none;
    background: rgba(var(--olive-rgb), .25); color: var(--olive-hi); font-size: 1.1rem;
}
.req h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 4px; }
.req p { color: var(--muted); font-size: .96rem; line-height: 1.45; }

.photo { border: 1px solid var(--line-strong); background: var(--surface); }
.photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.photo figcaption {
    position: absolute; left: 0; bottom: 0; padding: 10px 16px;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--ff-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Отдельные направления (Категория «В», «Рубикон») ---------- */
.feature {
    display: grid; grid-template-columns: 1.25fr .75fr;
    background: var(--surface); border: 1px solid var(--line-strong);
}
.feature + .feature { margin-top: clamp(24px, 3vw, 40px); }
.feature--reverse { grid-template-columns: .75fr 1.25fr; }
.feature--reverse .feature__side { order: -1; border-left: 0; border-right: 1px solid var(--line); }

.feature__body { padding: clamp(24px, 4vw, 52px); display: grid; gap: 26px; align-content: start; min-width: 0; }
.feature__body > .badge { margin-bottom: -8px; }
.feature__body > .feature__lead { margin-top: -8px; }
.feature__side { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); }
.feature__sidebox { padding: clamp(20px, 2.6vw, 32px); background: var(--surface-2); border-top: 1px solid var(--line); }
.feature__foot { grid-column: 1 / -1; padding: clamp(22px, 3vw, 36px) clamp(24px, 4vw, 52px); background: var(--bg-alt); border-top: 1px solid var(--line-strong); }
.feature__foot h4 { margin-bottom: 20px; }

.badge {
    display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 14px;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--ff-mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.feature__title { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 600; }
.feature__lead { color: var(--text-2); font-size: 1.04rem; }

.feature h4, .article h3 {
    font-family: var(--ff-mono); font-size: .74rem; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase; color: var(--olive-hi); margin-bottom: 12px;
}

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: .97rem; line-height: 1.45; }
.ticks li::before {
    content: ""; position: absolute; left: 2px; top: .42em; width: 11px; height: 6px;
    border-left: 2px solid var(--accent-fg); border-bottom: 2px solid var(--accent-fg); transform: rotate(-45deg);
}
.ticks--doc li::before { top: .5em; width: 8px; height: 8px; border: 0; background: var(--olive-hi); transform: none; }

.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.mini-steps li {
    counter-increment: s; position: relative; display: grid; gap: 6px; align-content: start;
    padding: 16px 24px 0 0; border-top: 2px solid var(--surface-3);
}
.mini-steps li::before {
    content: counter(s, decimal-leading-zero);
    font-family: var(--ff-head); font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--accent-fg);
}
.mini-steps li::after {
    content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--accent);
}
.mini-steps b { font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; }
.mini-steps span { color: var(--muted); font-size: .92rem; line-height: 1.45; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    padding: 7px 14px; background: var(--surface-2); border: 1px solid var(--line-strong);
    font-size: .9rem; color: var(--text-2);
}

.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.roles li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.roles__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: var(--tint); color: var(--accent-fg); }
.roles b { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; }
.roles div span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; }

.note {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
    background: rgba(var(--fg-rgb), .04); border-left: 2px solid var(--olive);
    color: var(--muted); font-size: .9rem; line-height: 1.5;
}
.note .ico { color: var(--olive-hi); margin-top: 1px; }

.note--stop { background: rgba(var(--accent-rgb), .12); border-left-color: var(--accent); color: var(--text-2); }
.note--stop .ico { color: var(--accent-fg); }
.note--stop b { color: var(--text); }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.specs li { display: grid; gap: 6px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-top: 2px solid var(--accent); }
.specs span { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specs b { font-family: var(--ff-head); font-weight: 600; font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }

.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Блок «Делаем отношение» */
.relation {
    display: grid; grid-template-columns: .85fr 1.15fr; margin-bottom: clamp(24px, 3vw, 40px);
    background: var(--surface); border: 1px solid var(--line-strong);
}
.relation__body { display: grid; gap: 22px; align-content: center; min-width: 0; padding: clamp(24px, 4vw, 52px); }
.relation__list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: center;
    padding: clamp(24px, 3vw, 40px); background: var(--bg-alt); border-left: 1px solid var(--line);
}
.relation__list li { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.relation__list b { font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; }

.feature__media { position: relative; flex: 1; min-height: 340px; overflow: hidden; background: var(--bg); }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.feature__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .15) 55%, rgba(var(--bg-rgb), .35) 100%);
}
.feature__media--hud::before {
    content: ""; position: absolute; inset: 18px; z-index: 1; pointer-events: none;
    border: 1px solid rgba(var(--fg-rgb), .28);
    background:
        linear-gradient(rgba(var(--fg-rgb), .3), rgba(var(--fg-rgb), .3)) 50% 50% / 1px 44px no-repeat,
        linear-gradient(rgba(var(--fg-rgb), .3), rgba(var(--fg-rgb), .3)) 50% 50% / 44px 1px no-repeat;
}
.feature__mark { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; display: grid; gap: 8px; }
.feature__mark-big {
    font-family: var(--ff-head); font-weight: 700; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9;
    color: transparent; -webkit-text-stroke: 2px var(--accent-fg);
}
.feature__media--hud .feature__mark-big { font-size: clamp(2.6rem, 5.5vw, 4.4rem); letter-spacing: .04em; }
.feature__mark-text { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); line-height: 1.6; }

/* ---------- Путь кандидата ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
    display: grid; gap: 12px; align-content: start; padding: 24px;
    background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--surface-3);
    transition: border-color .25s, transform .25s;
}
.step:hover { border-top-color: var(--accent); transform: translateY(-3px); }
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__num { font-family: var(--ff-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent-fg); }
.step__icon { color: var(--olive-hi); font-size: 1.15rem; }
.step h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: .04em; line-height: 1.25; }
.step p { color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* ---------- Выплаты ---------- */
.pay { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.pay__tabs { display: grid; gap: 8px; }
.pay__tab {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; text-align: left; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); border-left: 3px solid transparent;
    font-family: var(--ff-head); font-weight: 500; font-size: 1.04rem; letter-spacing: .05em; text-transform: uppercase;
    color: var(--muted); transition: color .2s, background-color .2s, border-color .2s;
}
.pay__tab span { font-family: var(--ff-mono); font-size: .74rem; color: var(--dim); }
.pay__tab:hover { color: var(--text); }
.pay__tab.is-active { color: var(--text); background: var(--surface-2); border-left-color: var(--accent); }
.pay__tab.is-active span { color: var(--accent-fg); }

.pay__panels { background: var(--surface); border: 1px solid var(--line-strong); padding: clamp(18px, 3vw, 36px); min-height: 100%; }
.pay-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    padding: 14px 0; border-bottom: 1px dashed var(--line-strong);
}
.pay-row:last-child { border-bottom: 0; }
.pay-row span { color: var(--text-2); }
.pay-row b { font-family: var(--ff-head); font-weight: 600; font-size: 1.25rem; letter-spacing: .02em; color: var(--accent-fg); white-space: nowrap; }
.pay-total {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 20px; padding: 20px 24px; background: var(--accent); color: var(--accent-ink);
}
.pay-total span { font-family: var(--ff-mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.pay-total b { font-family: var(--ff-head); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1; white-space: nowrap; }

/* ---------- Льготы ---------- */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.benefits__col { padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); }
.benefits__col--family { border-top-color: var(--olive-hi); }
.benefits__col > h3 {
    display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
    font-size: 1.25rem; font-weight: 600; letter-spacing: .04em;
}
.benefits__col > h3 .ico { color: var(--accent-fg); }
.benefits__col--family > h3 .ico { color: var(--olive-hi); }
.benefits__col ul { display: grid; gap: 20px; }
.benefits__col li { display: flex; gap: 16px; align-items: flex-start; }
.benefits__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--tint); color: var(--accent-fg); }
.benefits__col--family .benefits__icon { background: rgba(var(--olive-rgb), .25); color: var(--olive-hi); }
.benefits__col h4 { font-size: 1.04rem; font-weight: 600; margin-bottom: 2px; }
.benefits__col p { color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* ---------- Вакансии ---------- */
.vac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vac { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.vac:hover { border-color: var(--accent-fg); transform: translateY(-3px); }
.vac__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.vac__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); transition: transform .5s, filter .3s; }
.vac:hover .vac__media img { transform: scale(1.05); filter: saturate(1) contrast(1.05); }
.vac__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--surface-rgb), .95) 0%, rgba(var(--surface-rgb), 0) 55%); }
.vac__num {
    position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 9px;
    background: rgba(var(--bg-rgb), .8); border: 1px solid var(--line-strong);
    font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em; color: var(--accent-fg);
}
.vac__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 4px 22px 22px; }
.vac h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: .04em; }
.vac p { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.vac__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.vac__actions .btn { flex: 1; min-width: 0; height: 42px; padding-block: 0; }
.vac--more { border: 1px dashed var(--accent-fg); background: var(--tint); }
.vac--more .vac__body { padding-top: 26px; }
.vac__more-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; background: var(--accent); color: var(--accent-ink); font-size: 1.3rem; }

/* ---------- Статья о городе ---------- */
.article { max-width: 920px; margin: 0 auto; padding: clamp(24px, 4vw, 52px); background: var(--surface); border: 1px solid var(--line-strong); display: grid; gap: 18px; }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.article p { color: var(--text-2); }
.article h3 { margin: 8px 0 0; font-size: .8rem; line-height: 1.5; }

/* ---------- Заявка и контакты ---------- */
.section--cta {
    background:
        linear-gradient(180deg, rgba(var(--bg-rgb), .93), rgba(var(--bg-rgb), .97)),
        url("../img/bg.jpg") 50% 30% / cover no-repeat;
    border-top: 1px solid var(--line);
}
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.contact__form { padding: clamp(24px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line-strong); }
.contact__form h2 { margin: 14px 0 10px; }
.contact__lead { color: var(--muted); margin-bottom: 28px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field__control { position: relative; }
.field__control .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.input {
    width: 100%; height: 56px; padding: 0 16px 0 48px;
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: 0; color: var(--text);
    outline: none; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: rgba(var(--fg-rgb), .35); }
.input:focus { border-color: var(--accent-fg); box-shadow: 0 0 0 3px var(--tint); }
select.input {
    -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9383' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select.input:invalid { color: var(--dim); }
select.input option { background: var(--surface); color: var(--text); }
.field.is-invalid .input { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .86rem; }
.field.is-flash .input { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 40% { border-color: var(--accent-fg); box-shadow: 0 0 0 4px var(--tint); } }
.form__note { color: var(--dim); font-size: .8rem; text-align: center; }

.contact__aside { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 40px); background: rgba(var(--surface-rgb), .9); border: 1px solid var(--line); }
.contact__aside h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: .03em; }
.contact-list { display: grid; gap: 8px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s; }
.contact-list a:hover { border-color: var(--accent-fg); background: var(--surface-2); }
.contact-list__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: var(--tint); color: var(--accent-fg); }
.contact-list__icon--text { font-family: var(--ff-head); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.contact-list small { display: block; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.contact-list b { display: block; font-weight: 600; font-size: 1.04rem; overflow-wrap: anywhere; }
.contact__note { display: flex; gap: 12px; align-items: flex-start; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.contact__note .ico { color: var(--olive-hi); margin-top: 2px; }

/* ---------- Окно выбора мессенджера ---------- */
.ask {
    width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
    background: transparent; border: 0; color: var(--text);
}
.ask::backdrop { background: rgba(4, 6, 10, .74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ask[open] { animation: ask-in .2s ease-out; }
@keyframes ask-in { from { opacity: 0; transform: translateY(10px); } }
.ask__box { position: relative; display: grid; gap: 14px; padding: clamp(22px, 5vw, 34px); background: var(--surface); border: 1px solid var(--line-strong); }
.ask__box h2 { font-size: clamp(1.35rem, 4vw, 1.7rem); padding-right: 40px; }
.ask__lead { color: var(--muted); font-size: .95rem; }
.ask__close {
    position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    background: none; border: 1px solid var(--line-strong); color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
    transition: color .2s, border-color .2s;
}
.ask__close:hover { color: var(--text); border-color: var(--accent-fg); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-about p { margin-top: 16px; max-width: 360px; color: var(--muted); font-size: .94rem; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a, .footer-contacts > a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer-nav a:hover, .footer-contacts > a:hover { color: var(--accent-fg); }
.footer-contacts { display: grid; gap: 10px; align-content: start; }
.footer-contacts .footer-phone { font-family: var(--ff-head); font-weight: 600; font-size: 1.5rem; letter-spacing: .03em; color: var(--text); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.socials a {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line-strong); color: var(--muted); font-size: .86rem;
    transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--accent-fg); border-color: var(--accent-fg); }
.socials b { font-family: var(--ff-head); font-weight: 700; letter-spacing: .04em; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
    padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line);
    color: var(--dim); font-size: .82rem;
}

/* ---------- Мобильная нижняя панель ---------- */
.mobile-bar { display: none; }

/* ---------- Служебные страницы (заявка принята, 404, форма) ---------- */
.page-min { min-height: 100svh; display: flex; flex-direction: column; }
.page-min__head { border-bottom: 1px solid var(--line); background: var(--bg); }
.page-min__head .header-inner { justify-content: space-between; }
.page-min__main {
    flex: 1; display: grid; align-items: center; padding: clamp(32px, 6vw, 72px) 0;
    background:
        linear-gradient(180deg, rgba(var(--bg-rgb), .92), rgba(var(--bg-rgb), .97)),
        url("../img/bg.jpg") 50% 30% / cover no-repeat;
}
.status { max-width: 620px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); text-align: center; background: var(--surface); border: 1px solid var(--line-strong); display: grid; gap: 16px; justify-items: center; }
.status__icon { display: grid; place-items: center; width: 72px; height: 72px; background: var(--accent); color: var(--accent-ink); font-size: 1.7rem; }
.status__code { font-family: var(--ff-head); font-weight: 700; font-size: clamp(4rem, 14vw, 7rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--accent-fg); }
.status h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 600; }
.status p { color: var(--muted); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
    .header-phone { display: none; }
    .logo { font-size: 1.15rem; }
    .nav { gap: 20px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .pay { grid-template-columns: 290px 1fr; }
}

@media (max-width: 980px) {
    .burger { display: inline-flex; }
    .header-cta { display: none; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0;
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line-strong);
        max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 16px 0; font-size: .86rem; border-bottom: 1px solid var(--line); }
    .nav a::after { display: none; }
    .nav__extra { display: block; color: var(--accent-fg) !important; }

    .hero__bg { width: 100%; }
    .hero__bg::after {
        background:
            linear-gradient(90deg, rgba(var(--bg-rgb), .93) 0%, rgba(var(--bg-rgb), .72) 60%, rgba(var(--bg-rgb), .6) 100%),
            linear-gradient(0deg, var(--bg) 2%, rgba(var(--bg-rgb), 0) 40%);
    }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(odd) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

    .split { grid-template-columns: 1fr; }
    .photo img { aspect-ratio: 16 / 10; }

    .feature, .feature--reverse { grid-template-columns: 1fr; }
    .relation { grid-template-columns: 1fr; }
    .relation__list { border-left: 0; border-top: 1px solid var(--line); }
    .feature__side, .feature--reverse .feature__side { display: contents; }
    .feature__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
    .feature__sidebox { padding-inline: clamp(24px, 4vw, 52px); }
    .feature__foot { order: 2; }

    .pay { grid-template-columns: 1fr; }
    .pay__tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
    .pay__tabs::-webkit-scrollbar { display: none; }
    .pay__tab { width: auto; flex: none; padding: 14px 16px; border-left-width: 1px; border-bottom: 3px solid transparent; font-size: .95rem; white-space: nowrap; }
    .pay__tab.is-active { border-left-color: var(--line); border-bottom-color: var(--accent); }

    .benefits { grid-template-columns: 1fr; }
    .vac-grid { grid-template-columns: repeat(2, 1fr); }
    .contact { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    body.has-mobile-bar { padding-bottom: 64px; }
    .mobile-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        display: grid; grid-template-columns: 1fr 1fr 1.25fr;
        background: rgba(var(--bg-rgb), .97); border-top: 1px solid var(--line-strong);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-bar a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 64px;
        font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
        border-left: 1px solid var(--line);
    }
    .mobile-bar a:first-child { border-left: 0; }
    .mobile-bar .ico { width: 20px; height: 20px; color: var(--text); }
    .mobile-bar .is-accent { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
    .mobile-bar .is-accent .ico { color: var(--accent-ink); }

    .hero { min-height: 0; padding-top: calc(var(--header-h) + 36px); }
    .hero__actions .btn { flex: 1 1 100%; }
    .stat { padding: 16px; }

    .mini-steps { grid-template-columns: 1fr 1fr; gap: 14px 0; }
    .roles { grid-template-columns: 1fr; }
    .specs { grid-template-columns: 1fr; }
    .feature__actions .btn { flex: 1 1 100%; }

    .pay-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
}

@media (max-width: 560px) {
    .logo { font-size: 1.12rem; }
    .req-grid, .steps, .vac-grid, .relation__list { grid-template-columns: 1fr; }
    .mini-steps { grid-template-columns: 1fr; }
    .stat span { font-size: .64rem; }
    .btn-lg { font-size: 1rem; padding-inline: 1.3em; }
}

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