:root {
    --brand-cyan:    #009CCB;
    --brand-cyan-lt: #34C3EC;
    --brand-cyan-dk: #007A9F;
    --brand-mag:     #B03273;
    --brand-mag-lt:  #DB5B9C;
    --brand-mag-dk:  #8A2059;
    --brand-char:    #22232B;
    --brand-deep:    #162931;
    --brand-void:    #101319;
    --brand-mist:    #E8EEF2;
    --brand-paper:   #F4F7F9;
    --font-display: "Play", "Segoe UI Semibold", "Arial Narrow", sans-serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-num: "Play", "JetBrains Mono", "Courier New", monospace;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --font-head: var(--font-display);
    --font-body: var(--font-sans);
    --c1: var(--ink);
    --c2: var(--accent);
    --c3: var(--accent-2);

    /* rhythm */
    --section-y: clamp(72px, 9vw, 150px);
    --gutter: clamp(20px, 4vw, 64px);
    --radius: 0px;
    --radius-lg: 2px;

    /* technical grid */
    --grid-step: 88px;

    /* motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.65, .05, .36, 1);
    --dur: .45s;

    /* bootstrap overrides */
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius);
    --bs-link-color: var(--text);
    --bs-link-hover-color: var(--accent);
}

/* ---------- 2. ТОКЕНЫ ТЕМЫ — сайт всегда тёмный ----------
   --bg / --surface / --panel  → базовые поверхности
   --inv-*                     → ещё более тёмные блоки: герой, футер, .is-dark
   --accent                    → читаемый акцент (текст, границы, иконки)
   --accent-solid              → чистый брендовый цвет для заливок
   --accent-2                  → вторичный сигнальный цвет
------------------------------------------------------------ */
:root,
html[data-theme="night"] {
    --bg:        #17181E;
    --surface:   #22232B;
    --panel:     #1C1D24;
    --ink:       #F0F3F7;
    --text:      #DCE2EA;
    --text-mid:  #939BAB;
    --text-dim:  #6E7585;
    --line:      rgba(220, 226, 234, .14);
    --line-soft: rgba(220, 226, 234, .07);

    --accent:       #2FBBE4;
    --accent-solid: #009CCB;
    --accent-2:     #DB5B9C;
    --on-accent:    #08161C;
    --on-accent-2:  #08181F;

    --header-bg: rgba(23, 24, 30, .88);
    --hero-tint: linear-gradient(120deg, rgba(0, 156, 203, .4), transparent 60%);
    --glow:      rgba(0, 156, 203, .22);
    --grid-ink:  rgba(47, 187, 228, .07);

    --inv-bg:        #101319;
    --inv-surface:   #191B23;
    --inv-ink:       #F4F7FA;
    --inv-text:      #E1E6EE;
    --inv-text-mid:  rgba(225, 230, 238, .62);
    --inv-text-dim:  rgba(225, 230, 238, .42);
    --inv-line:      rgba(225, 230, 238, .13);
    --inv-line-soft: rgba(225, 230, 238, .07);
    --inv-accent:    #2FBBE4;
    --inv-accent-2:  #DB5B9C;
    --inv-grid-ink:  rgba(47, 187, 228, .08);
}

/* theme cross-fade */
html { transition: background-color .4s var(--ease); }
body, .section, .svc-card, .offer-cell, .number-cell, .stat-cell, .form-panel, .aside-card, .stack-cat, .site-header {
    transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}

/* ---------- 3. BASE ---------- */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    letter-spacing: .005em;
    position: relative;
}

/* technical grid — replaces the old film grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
            linear-gradient(to right, var(--grid-ink) 1px, transparent 1px),
            linear-gradient(to bottom, var(--grid-ink) 1px, transparent 1px);
    background-size: var(--grid-step) var(--grid-step);
    mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 78%);
}
body > * { position: relative; z-index: 1; }

::selection { background: var(--accent-solid); color: var(--on-accent); }

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: color .28s var(--ease); }

hr { border-color: var(--line); opacity: 1; }

/* ---------- 4. TYPOGRAPHY ---------- */
h1, h2, h3, h4, .display-serif {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -.005em;
    line-height: 1.1;
    color: var(--ink);
    margin: 0;
}

.t-hero { font-size: clamp(2.4rem, 5.9vw, 3.9rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 700; }
.t-h2   { font-size: clamp(1.85rem, 3.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; }
.t-h3   { font-size: clamp(1.36rem, 2.1vw, 1.95rem); line-height: 1.18; font-weight: 400; }
.t-h4   { font-size: clamp(1.06rem, 1.35vw, 1.3rem); line-height: 1.28; letter-spacing: -.005em; font-weight: 700; }

.t-lead {
    font-size: clamp(1.02rem, 1.28vw, 1.2rem);
    line-height: 1.66;
    color: var(--text-mid);
    font-weight: 300;
    max-width: 60ch;
}

.t-body   { font-size: .975rem; line-height: 1.72; color: var(--text-mid); }
.t-small  { font-size: .85rem; line-height: 1.62; color: var(--text-dim); }

.t-italic { font-style: normal; color: var(--accent); }

/* numeric type — technical, tabular */
.num, .number-val, .stat-cell b, .hero-meta strong, .step-num, .offer-num, .num-index, .type-price, .price-row b, .svc-idx {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: -.01em;
}

/* monospace micro-labels */
.eyebrow, .num-index, .svc-idx, .pf-tag, .step-meta, .number-lbl, .footer-h,
.crumbs, .stat-cell span, .hero-meta span, .scroll-cue, .brief-nav button,
.form-note, .lang-btn, .lang-code, .footer-bottom {
    font-family: var(--font-mono);
    font-weight: 400;
}

.eyebrow {
    font-size: .66rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: .7em;
}
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent-solid);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid) 22%, transparent);
    display: inline-block;
    flex-shrink: 0;
}
.eyebrow.no-rule::before { display: none; }

.num-index {
    font-size: .68rem;
    letter-spacing: .14em;
    color: var(--text-dim);
}

.text-accent { color: var(--accent) !important; }
.text-dim    { color: var(--text-dim) !important; }
.text-mid    { color: var(--text-mid) !important; }

/* ---------- 5. LAYOUT ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: clamp(52px, 6vw, 96px) 0; }

.shell {
    width: 100%;
    max-width: 1560px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.shell-narrow { max-width: 1120px; }

.rule { height: 1px; background: var(--line); width: 100%; }
.rule-soft { height: 1px; background: var(--line-soft); width: 100%; }

.section-head { margin-bottom: clamp(40px, 5vw, 76px); }

/* inverted blocks — one token flip for every dark surface */
.is-dark {
    background: var(--inv-bg);
    color: var(--inv-text);
    --bg:        var(--inv-bg);
    --surface:   var(--inv-surface);
    --panel:     var(--inv-surface);
    --ink:       var(--inv-ink);
    --text:      var(--inv-text);
    --text-mid:  var(--inv-text-mid);
    --text-dim:  var(--inv-text-dim);
    --line:      var(--inv-line);
    --line-soft: var(--inv-line-soft);
    --accent:       var(--inv-accent);
    --accent-solid: var(--inv-accent);
    --accent-2:     var(--inv-accent-2);
    --on-accent:   var(--inv-bg);
    --on-accent-2: var(--inv-bg);
    --grid-ink:  var(--inv-grid-ink);
}
.is-dark h1, .is-dark h2, .is-dark h3, .is-dark h4 { color: var(--inv-ink); }
.is-sand { background: var(--panel); }

/* ---------- 6. BUTTONS ---------- */
.btn-bmv {
    --btn-bg: var(--accent-solid);
    --btn-fg: var(--on-accent);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8em;
    padding: 1.05em 2.1em;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    border-radius: var(--radius);
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
    white-space: nowrap;
}
.btn-bmv::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--accent-2);
    transform: translateX(-101%);
    transition: transform .4s var(--ease);
}
.btn-bmv:hover::before { transform: translateX(0); }
.btn-bmv:hover { color: var(--on-accent-2); border-color: var(--accent-2); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 40%, transparent), 0 10px 30px -14px var(--accent-2); }

.btn-bmv--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    border-color: var(--line);
}
.btn-bmv--ghost::before { background: var(--accent-solid); }
.btn-bmv--ghost:hover { color: var(--on-accent); border-color: var(--accent-solid); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-solid) 40%, transparent); }

.btn-bmv--light { --btn-bg: var(--brand-mist); --btn-fg: #16171D; border-color: var(--brand-mist); }
.btn-bmv--light::before { background: var(--brand-cyan); }
.btn-bmv--light:hover { color: #08181F; border-color: var(--brand-cyan); }

.btn-bmv--sm { padding: .78em 1.45em; font-size: .66rem; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.btn-bmv--block { width: 100%; }

.link-sweep {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    padding-bottom: .45em;
    color: var(--accent);
}
.link-sweep::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform-origin: right;
    transform: scaleX(1);
    transition: transform .32s var(--ease);
}
.link-sweep:hover::after { transform-origin: left; animation: sweep .5s var(--ease); }
@keyframes sweep {
    0%   { transform: scaleX(1); transform-origin: right; }
    49%  { transform: scaleX(0); transform-origin: right; }
    50%  { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}
.link-sweep .arw { transition: transform .3s var(--ease); }
.link-sweep:hover .arw { transform: translateX(5px); }

/* ---------- 7. HEADER ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    height: 88px;
    transition: height .3s var(--ease);
}
.site-header.is-stuck {
    background: var(--header-bg);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line-soft);
    box-shadow: 0 1px 0 0 color-mix(in srgb, var(--accent-solid) 20%, transparent);
}
.site-header.is-stuck .shell { height: 68px; }
.site-header.is-hidden { transform: translateY(-100%); }

/* header sitting on a dark hero */
.site-header.on-dark:not(.is-stuck) { color: #EEF4F8; }
.site-header.on-dark:not(.is-stuck) .brand-mark,
.site-header.on-dark:not(.is-stuck) .nav-link-bmv,
.site-header.on-dark:not(.is-stuck) .header-phone,
.site-header.on-dark:not(.is-stuck) .lang-btn { color: #EEF4F8; }
.site-header.on-dark:not(.is-stuck) .brand-sub { color: var(--brand-cyan-lt); }
.site-header.on-dark:not(.is-stuck) .lang-btn { border-color: rgba(238,244,248,.28); }
.site-header.on-dark:not(.is-stuck) .btn-bmv--ghost { --btn-bg: transparent; --btn-fg: #EEF4F8; border-color: rgba(238,244,248,.3); }
.site-header.on-dark:not(.is-stuck) .btn-bmv--ghost::before { background: var(--brand-cyan); }
.site-header.on-dark:not(.is-stuck) .burger span { background: #EEF4F8; }

.brand { display: inline-flex; align-items: baseline; gap: .55em; flex-shrink: 0; }
.brand-mark {
    font-family: var(--font-display);
    font-size: 1.34rem;
    font-weight: 700;
    letter-spacing: .26em;
    color: var(--ink);
    line-height: 1;
}
.brand-sub {
    font-family: var(--font-mono);
    font-size: .56rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    padding-bottom: .1em;
}

.nav-bmv { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 30px); }
.nav-link-bmv {
    position: relative;
    font-size: .78rem;
    letter-spacing: .06em;
    font-weight: 400;
    color: var(--text);
    padding: 6px 0;
    white-space: nowrap;
}
.nav-link-bmv::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--accent-solid);
    transition: width .3s var(--ease);
}
.nav-link-bmv:hover { color: var(--accent); }
.nav-link-bmv:hover::after, .nav-link-bmv.is-active::after { width: 100%; }

.header-phone { font-family: var(--font-num); font-size: .84rem; letter-spacing: .02em; font-weight: 400; color: var(--ink); white-space: nowrap; }

/* mega dropdown */
.has-mega { position: relative; }
.mega {
    position: fixed;
    left: 0; right: 0;
    top: 88px;
    background: var(--surface);
    border-top: 1px solid var(--accent-solid);
    border-bottom: 1px solid var(--line-soft);
    padding: 40px 0 44px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), visibility .22s;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.site-header.is-stuck .mega { top: 68px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 40px; }
.mega-link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 12px 11px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .875rem;
    color: var(--text);
    transition: color .22s var(--ease), padding-left .28s var(--ease), background .22s var(--ease);
}
.mega-link:hover { color: var(--accent); padding-left: 10px; background: color-mix(in srgb, var(--accent-solid) 7%, transparent); }
.mega-link i { font-style: normal; font-size: .62rem; letter-spacing: .1em; color: var(--accent); font-family: var(--font-mono); }

/* ---------- 8. ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА ---------- */
.lang-switch { position: relative; flex-shrink: 0; }

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 13px 0 11px;
    background: none;
    border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    color: var(--text);
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .25s var(--ease), color .25s var(--ease);
}
.lang-btn:hover { border-color: var(--accent-solid); color: var(--accent); }
.lang-btn svg { width: 15px; height: 15px; }

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 190px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 1px solid var(--accent-solid);
    padding: 6px;
    box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s;
    z-index: 20;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; }

.lang-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    color: var(--text);
    font-size: .84rem;
    font-weight: 300;
    transition: background .22s var(--ease), color .22s var(--ease);
}
.lang-opt:hover { background: var(--panel); color: var(--accent); }
.lang-opt.is-active { color: var(--accent); background: color-mix(in srgb, var(--accent-solid) 10%, transparent); }
.lang-code {
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .1em;
    padding: 3px 6px;
    border: 1px solid var(--line);
    color: var(--accent);
}
.lang-check { width: 13px; height: 13px; margin-left: auto; flex-shrink: 0; }

/* языковой ряд в мобильном меню */
.lang-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-row .lang-opt { border: 1px solid var(--line); padding: 8px 14px 8px 9px; }
.lang-row .lang-opt.is-active { border-color: var(--accent-solid); }

/* burger */
.burger {
    width: 40px; height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), width .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { width: 26px; }
.burger span:nth-child(2) { width: 16px; background: var(--accent-solid); }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); width: 24px; }
.burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); width: 24px; }

/* mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--inv-bg);
    padding: 104px var(--gutter) 40px;
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .45s var(--ease);
}
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
    transition: color .25s var(--ease), padding-left .28s var(--ease);
}
.drawer-link:hover { color: var(--accent); padding-left: 8px; }
.drawer-link .num-index { color: var(--accent); }
.drawer-sub {
    font-size: .82rem;
    font-family: var(--font-sans);
    color: var(--text-mid);
    padding: 9px 0;
    display: block;
    border-bottom: 1px solid var(--line-soft);
}
.drawer-sub:hover { color: var(--accent); }

body.no-scroll { overflow: hidden; }
body.no-scroll .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; box-shadow: none; }
body.no-scroll .site-header .brand-mark { color: #EEF4F8; }
body.no-scroll .site-header .brand-sub { color: var(--brand-cyan-lt); }
body.no-scroll .burger span:nth-child(1) { background: #EEF4F8; }

section[id], article[id] { scroll-margin-top: 92px; }

/* ---------- 9. HERO ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding-top: 140px;
    padding-bottom: clamp(36px, 5vw, 64px);
    background: var(--inv-bg);
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(.55) contrast(1.06);
}
/* time-of-day signal tint */
.hero-media::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--hero-tint);
    mix-blend-mode: screen; opacity: .5;
    transition: background .5s var(--ease);
}
.hero-media::after {
    content: "";
    position: absolute; inset: 0;
    background:
            linear-gradient(to top, rgba(16,19,25,.95) 0%, rgba(16,19,25,.6) 44%, rgba(16,19,25,.38) 72%, rgba(16,19,25,.66) 100%);
}
/* hero technical grid */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
            linear-gradient(to right, rgba(52,195,236,.09) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(52,195,236,.09) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to top, #000, transparent 72%);
    -webkit-mask-image: linear-gradient(to top, #000, transparent 72%);
}
.hero .shell { position: relative; z-index: 2; width: 100%; }

/* line reveal containers — kept as plain blocks, no entrance animation */
.reveal-line { display: block; overflow: visible; padding-bottom: .04em; }
.reveal-line > span { display: block; transform: none; }
.d1 > span, .d2 > span, .d3 > span, .d4 > span { animation: none; }

.fade-up-init { opacity: 1; transform: none; animation: none; }
.fu1, .fu2, .fu3, .fu4 { animation: none; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    margin-top: clamp(38px, 5vw, 64px);
    padding-top: 22px;
}
.hero-meta > div { flex: 1 1 160px; padding-right: 24px; position: relative; }
.hero-meta > div + div { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.hero-meta strong {
    display: block;
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 8px;
}
.hero-meta span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

.hero-scan {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--brand-cyan-lt), transparent);
    opacity: .32;
    z-index: 1;
    animation: scanX 9s var(--ease-io) infinite;
}
.hero-scan.s2 { animation-delay: 3s; opacity: .18; background: linear-gradient(to bottom, transparent, var(--brand-mag-lt), transparent); }
@keyframes scanX { 0% { left: 12%; } 50% { left: 78%; } 100% { left: 12%; } }

.scroll-cue {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(36px, 5vw, 64px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
}
.scroll-cue i {
    display: block;
    width: 1px; height: 46px;
    background: var(--line);
    position: relative;
    overflow: hidden;
}
.scroll-cue i::after {
    content: "";
    position: absolute;
    left: 0; top: -46px;
    width: 1px; height: 46px;
    background: var(--accent-solid);
    animation: cueDrop 2.2s var(--ease-io) infinite;
}
@keyframes cueDrop { 0% { top: -46px; } 60%, 100% { top: 46px; } }

/* inner page hero */
.page-hero {
    background: var(--inv-bg);
    padding: clamp(150px, 17vw, 230px) 0 clamp(56px, 7vw, 96px);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    opacity: .3;
    filter: saturate(.5);
}
.page-hero::after {
    content: "";
    position: absolute; inset: 0;
    background:
            linear-gradient(120deg, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 55%),
            linear-gradient(to top, rgba(16,19,25,.95), rgba(16,19,25,.62));
}
.page-hero .shell { position: relative; z-index: 2; }

.crumbs { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 26px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { padding: 0 .5em; color: var(--accent); }

/* ---------- 10. REVEAL — disabled (no entrance animation) ---------- */
[data-rv],
[data-rv="mask"],
[data-rv="scale"],
[data-rv].is-in {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
    animation: none;
}

/* ---------- 11. ABOUT / SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.split-media img { width: 100%; }
.split-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent-solid) 16%, transparent), transparent 60%);
    pointer-events: none;
}

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-cell { background: var(--bg); padding: 26px 22px; position: relative; }
.stat-cell::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 0; height: 2px;
    background: var(--accent-solid);
    transition: width .35s var(--ease);
}
.stat-cell:hover::before { width: 100%; }
.stat-cell b {
    display: block;
    font-size: clamp(1.75rem, 2.9vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 9px;
}
.stat-cell span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    position: relative;
    padding: 14px 0 14px 32px;
    border-bottom: 1px solid var(--line-soft);
    font-size: .95rem;
    color: var(--text-mid);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 3px; top: 21px;
    width: 7px; height: 7px;
    background: var(--accent-solid);
    transform: rotate(45deg);
}
.check-list li b { color: var(--text); font-weight: 500; }

/* ---------- 12. SERVICES GRID ---------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 268px;
    padding: 34px 32px 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    transition: color .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
            linear-gradient(140deg, color-mix(in srgb, var(--accent-solid) 26%, transparent), transparent 58%),
            var(--inv-bg);
    transform: translateY(100%);
    transition: transform .42s var(--ease);
}
.svc-card::after {
    content: "";
    position: absolute;
    right: 0; top: 0;
    width: 14px; height: 14px;
    border-top: 2px solid var(--accent-solid);
    border-right: 2px solid var(--accent-solid);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.svc-card:hover::before { transform: translateY(0); }
.svc-card:hover::after { opacity: 1; }
.svc-card:hover { color: var(--inv-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-solid) 45%, transparent); }
.svc-card:hover .svc-title, .svc-card:hover .svc-idx { color: var(--inv-ink); }
.svc-card:hover .svc-desc { color: var(--inv-text-mid); }
.svc-card:hover .svc-go { opacity: 1; transform: translate(0, 0); }
.svc-card:hover .svc-ico { border-color: var(--inv-accent); color: var(--inv-accent); background: color-mix(in srgb, var(--inv-accent) 12%, transparent); }

.svc-idx { font-size: .66rem; letter-spacing: .16em; color: var(--accent); transition: color .3s var(--ease); }
.svc-ico {
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    display: grid;
    place-items: center;
    margin: 24px 0 auto;
    color: var(--accent);
    transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.svc-ico svg { width: 20px; height: 20px; }
.svc-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 22px 0 10px;
    transition: color .3s var(--ease);
}
.svc-desc { font-size: .875rem; line-height: 1.62; color: var(--text-dim); transition: color .3s var(--ease); }
.svc-go {
    position: absolute;
    top: 30px; right: 30px;
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    color: var(--inv-accent);
}

/* ---------- 13. SITE TYPES ---------- */
.type-row {
    display: grid;
    grid-template-columns: 60px minmax(220px, 1.05fr) 1.5fr auto;
    gap: 24px;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.type-row:first-child { border-top: 1px solid var(--line); }
.type-row:hover {
    padding-left: 18px;
    background: color-mix(in srgb, var(--accent-solid) 6%, transparent);
    box-shadow: inset 3px 0 0 0 var(--accent-solid);
}
.type-row:hover .type-name { color: var(--accent); }
.type-row:hover .num-index { color: var(--accent); }
.type-name {
    font-family: var(--font-display);
    font-size: clamp(1.22rem, 1.8vw, 1.66rem);
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--ink);
    transition: color .28s var(--ease);
}
.type-desc { font-size: .9rem; color: var(--text-mid); line-height: 1.6; }
.type-price { font-size: .8rem; letter-spacing: .02em; color: var(--accent); white-space: nowrap; font-weight: 400; }

/* ---------- 14. PORTFOLIO ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.4vw, 40px) clamp(16px, 2vw, 32px); }
.pf-item { position: relative; display: block; }
.pf-item .pf-frame { position: relative; overflow: hidden; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); }
.pf-item img { width: 100%; transition: transform .7s var(--ease), filter .5s var(--ease); will-change: transform; filter: saturate(.7); }
.pf-item:hover img { transform: scale(1.045); filter: saturate(1.05); }
.pf-frame::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent-solid) 32%, transparent), transparent 55%), linear-gradient(to top, rgba(16,19,25,.55), transparent 60%);
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.pf-item:hover .pf-frame::after { opacity: 1; }
.pf-item:hover .pf-frame { border-color: var(--accent-solid); }
.pf-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-top: 16px; }
.pf-title { font-family: var(--font-display); font-size: 1.24rem; font-weight: 400; letter-spacing: -.01em; color: var(--ink); line-height: 1.24; transition: color .25s var(--ease); }
.pf-item:hover .pf-title { color: var(--accent); }
.pf-tag { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.pf-view {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(.9);
    width: 104px; height: 104px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    background: var(--accent-solid);
    color: var(--on-accent);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .3s var(--ease), transform .35s var(--ease);
    z-index: 2;
}
.pf-item:hover .pf-view { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* grid spans — deliberately NOT named .col-* to avoid clashing with Bootstrap */
.pf-c3  { grid-column: span 4; }
.pf-c7  { grid-column: span 7; }
.pf-c5  { grid-column: span 5; }
.pf-c6  { grid-column: span 6; }
.pf-c4  { grid-column: span 4; }
.pf-c8  { grid-column: span 8; }
.pf-c12 { grid-column: span 12; }
.pf-up   { margin-top: clamp(-90px, -6vw, 0px); }
.pf-down { margin-top: clamp(24px, 5vw, 90px); }

/* ---------- 15. OFFER CARDS ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.offer-cell { background: var(--bg); padding: 34px 30px 38px; transition: background .3s var(--ease), box-shadow .3s var(--ease); position: relative; }
.offer-cell:hover { background: var(--surface); box-shadow: inset 0 2px 0 0 var(--accent-solid); }
.offer-cell h3 { font-size: 1.16rem; margin: 18px 0 12px; font-weight: 700; }
.offer-num {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--accent);
}

/* ---------- 16. TECH STACK MARQUEE ---------- */
.marquee { overflow: hidden; position: relative; padding: 14px 0; }
.marquee::before, .marquee::after {
    content: "";
    position: absolute; top: 0; bottom: 0;
    width: 14vw; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    margin-right: 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    font-family: var(--font-mono);
    font-size: .76rem;
    letter-spacing: .02em;
    color: var(--text-mid);
    white-space: nowrap;
    transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.chip:hover { border-color: var(--accent-solid); color: var(--accent); background: color-mix(in srgb, var(--accent-solid) 8%, transparent); }
.chip i { font-style: normal; width: 6px; height: 6px; border-radius: 0; background: var(--accent-solid); }
button.chip { font-family: var(--font-mono); font-weight: 400; cursor: pointer; }
.chip.is-active { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }
.chip.is-active i { background: var(--on-accent); }

.stack-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.stack-cat { background: var(--bg); padding: 28px 26px 32px; }
.stack-cat h4 { font-size: 1.04rem; margin-bottom: 16px; font-weight: 700; color: var(--accent); }
.stack-cat ul { list-style: none; padding: 0; margin: 0; }
.stack-cat li { font-size: .85rem; color: var(--text-mid); padding: 5px 0; }

/* ---------- 17. NUMBERS ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.number-cell { background: var(--bg); padding: clamp(30px, 4vw, 52px) clamp(20px, 2.4vw, 34px); position: relative; }
.number-cell::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 2px; height: 0;
    background: var(--accent-solid);
    transition: height .4s var(--ease);
}
.number-cell:hover::before { height: 100%; }
.number-val {
    font-size: clamp(2.6rem, 4.8vw, 4.3rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: .04em;
}
.number-val sup { font-size: .4em; top: -.66em; color: var(--accent); font-weight: 400; letter-spacing: 0; }
.number-lbl { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-top: 16px; }

/* ---------- 18. PROCESS ---------- */
.process { counter-reset: step; }
.step {
    display: grid;
    grid-template-columns: 110px 1fr 1.35fr;
    gap: clamp(20px, 3vw, 48px);
    padding: clamp(26px, 3vw, 40px) 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
    position: relative;
    transition: background .3s var(--ease);
}
.step:first-child { border-top: 1px solid var(--line); }
.step:hover { background: color-mix(in srgb, var(--accent-solid) 5%, transparent); }
.step-num {
    font-size: clamp(1.9rem, 2.9vw, 2.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.035em;
    color: var(--accent);
    opacity: .55;
    transition: opacity .3s var(--ease);
}
.step:hover .step-num { opacity: 1; }
.step h3 { font-size: clamp(1.28rem, 1.85vw, 1.64rem); font-weight: 700; }
.step-meta { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-top: 12px; }

/* ---------- 19. FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item.is-open { background: color-mix(in srgb, var(--accent-solid) 5%, transparent); box-shadow: inset 3px 0 0 0 var(--accent-solid); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(20px, 2.4vw, 30px) clamp(12px, 1.5vw, 22px) clamp(20px, 2.4vw, 30px) clamp(12px, 1.5vw, 22px);
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.45vw, 1.34rem);
    font-weight: 400;
    letter-spacing: -.005em;
    color: var(--ink);
    transition: color .25s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-item.is-open .faq-q { color: var(--accent); }
.faq-ico { position: relative; width: 16px; height: 16px; flex-shrink: 0; margin-top: .38em; color: var(--accent); }
.faq-ico::before, .faq-ico::after {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 16px; height: 2px;
    background: currentColor;
    transition: transform .3s var(--ease);
}
.faq-ico::after { transform: rotate(90deg); }
.faq-item.is-open .faq-ico::after { transform: rotate(0); }
.faq-a { overflow: hidden; height: 0; transition: height .35s var(--ease); }
.faq-a-inner { padding: 0 clamp(12px, 1.5vw, 22px) 28px; max-width: 76ch; font-size: .95rem; line-height: 1.72; color: var(--text-mid); }

/* ---------- 20. FORMS ---------- */
.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent-solid);
    padding: clamp(28px, 4vw, 54px);
    border-radius: var(--radius-lg);
    position: relative;
}

.fld { position: relative; margin-bottom: 26px; }
.fld input, .fld textarea, .fld select {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0 11px;
    font-family: var(--font-sans);
    font-size: .98rem;
    font-weight: 300;
    color: var(--text);
    border-radius: 0;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
    appearance: none;
}
.fld textarea { resize: vertical; min-height: 88px; }
.fld select { cursor: pointer; }
.fld select option { background: var(--surface); color: var(--text); }
.fld input:focus, .fld textarea:focus, .fld select:focus {
    outline: 0;
    border-bottom-color: var(--accent-solid);
    box-shadow: 0 1px 0 0 var(--accent-solid);
}
.fld label {
    position: absolute;
    left: 0; top: 15px;
    font-size: .95rem;
    color: var(--text-dim);
    pointer-events: none;
    transition: transform .25s var(--ease), font-size .25s var(--ease), color .25s var(--ease);
    transform-origin: left top;
}
.fld input:focus + label,
.fld input:not(:placeholder-shown) + label,
.fld textarea:focus + label,
.fld textarea:not(:placeholder-shown) + label,
.fld select:focus + label,
.fld select.has-val + label {
    transform: translateY(-19px) scale(.7);
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.fld.is-err input, .fld.is-err textarea, .fld.is-err select { border-bottom-color: var(--brand-mag); box-shadow: 0 1px 0 0 var(--brand-mag); }
.fld-err { display: none; font-family: var(--font-mono); font-size: .68rem; color: var(--brand-mag-lt); margin-top: 6px; letter-spacing: .04em; }
.fld.is-err .fld-err { display: block; }

.chk { display: flex; align-items: flex-start; gap: 12px; font-size: .78rem; line-height: 1.55; color: var(--text-dim); cursor: pointer; }
.chk input { appearance: none; width: 15px; height: 15px; border: 1px solid var(--line); border-radius: 0; flex-shrink: 0; margin-top: 3px; cursor: pointer; transition: background .2s, border-color .2s; }
.chk input:checked { background: var(--accent-solid); border-color: var(--accent-solid); }
.chk a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    font-family: var(--font-mono);
    font-size: .76rem;
    color: var(--text-mid);
    cursor: pointer;
    transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
    user-select: none;
}
.pill input:checked + span { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }
.pill span:hover { border-color: var(--accent-solid); color: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent-solid); outline-offset: 2px; }

.form-note { font-size: .68rem; color: var(--text-dim); letter-spacing: .04em; }
.form-ok {
    display: none;
    padding: 22px 24px;
    border: 1px solid var(--accent-solid);
    border-left-width: 3px;
    background: color-mix(in srgb, var(--accent-solid) 10%, transparent);
    font-size: .92rem;
    color: var(--text);
    margin-bottom: 24px;
}
.form-ok.is-visible { display: block; animation: none; }

.brief-nav { display: flex; gap: 2px; margin-bottom: 44px; flex-wrap: wrap; }
.brief-nav button {
    flex: 1 1 120px;
    background: none;
    border: 0;
    border-top: 2px solid var(--line);
    padding: 14px 4px 0;
    text-align: left;
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}
.brief-nav button.is-active { color: var(--accent); border-top-color: var(--accent-solid); }
.brief-nav button.is-done { color: var(--text-mid); border-top-color: var(--accent-2); }
.brief-step { display: none; }
.brief-step.is-active { display: block; animation: none; }

/* ---------- 21. CTA BAND ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 128px) 0; }
.cta-band::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--glow), transparent 62%);
    pointer-events: none;
}
.cta-band::after {
    content: "";
    position: absolute;
    left: -12%; bottom: -34%;
    width: 46vw; height: 46vw;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 64%);
    pointer-events: none;
}

.big-marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.big-marquee .marquee-track { animation-duration: 34s; }
.big-marquee em {
    font-family: var(--font-display);
    font-style: normal;
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -.015em;
    text-transform: uppercase;
    color: var(--ink);
    padding-right: .5em;
    white-space: nowrap;
}
.big-marquee em:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--accent-solid); }

/* ---------- 22. FOOTER ---------- */
.site-footer { background: var(--inv-bg); padding: clamp(56px, 7vw, 92px) 0 30px; position: relative; overflow: hidden; }
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
            linear-gradient(to right, var(--grid-ink) 1px, transparent 1px),
            linear-gradient(to bottom, var(--grid-ink) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.site-footer > .shell { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 60px); padding-bottom: 56px; }
.footer-h { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 11px; }
.footer-list a { font-size: .875rem; color: var(--text-mid); font-weight: 300; }
.footer-list a:hover { color: var(--accent); }
.footer-contact a { display: block; font-family: var(--font-num); font-size: 1.04rem; color: var(--ink); margin-bottom: 8px; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: .68rem;
    letter-spacing: .04em;
    color: var(--text-dim);
}
.soc { display: flex; gap: 10px; }
.soc a {
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    display: grid;
    place-items: center;
    color: var(--text-mid);
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.soc a:hover { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }
.soc svg { width: 16px; height: 16px; }

.footer-logo {
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 12vw, 11rem);
    line-height: .86;
    font-weight: 700;
    letter-spacing: .02em;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--accent-solid) 45%, transparent);
    text-align: center;
    padding: 20px 0 8px;
    user-select: none;
}

/* ---------- 23. MISC ---------- */
.float-cta {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.float-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float-cta a {
    width: 50px; height: 50px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    display: grid;
    place-items: center;
    background: var(--accent-solid);
    color: var(--on-accent);
    box-shadow: 0 10px 30px -12px var(--accent-solid);
    transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.float-cta a:hover { transform: translateY(-3px); background: var(--accent-2); color: var(--on-accent-2); box-shadow: 0 12px 32px -12px var(--accent-2); }
.float-cta svg { width: 20px; height: 20px; }

.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(to right, var(--brand-cyan), var(--brand-mag));
    z-index: 1001;
    width: 0;
    transition: width .1s linear;
}

.prose h2 { font-size: clamp(1.46rem, 2.3vw, 2.1rem); margin: 52px 0 18px; font-weight: 700; }
.prose h3 { font-size: clamp(1.14rem, 1.65vw, 1.4rem); margin: 34px 0 14px; font-weight: 700; }
.prose p { font-size: .985rem; line-height: 1.78; color: var(--text-mid); margin-bottom: 18px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 0; list-style: none; margin-bottom: 24px; }
.prose ul li { position: relative; padding: 8px 0 8px 26px; color: var(--text-mid); font-size: .95rem; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 7px; height: 7px; background: var(--accent-solid); transform: rotate(45deg); }
.prose strong { color: var(--text); font-weight: 500; }

.aside-card { border: 1px solid var(--line); border-top: 2px solid var(--accent-solid); padding: 30px 28px; background: var(--surface); position: sticky; top: 104px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: .875rem; }
.price-row b { font-weight: 400; white-space: nowrap; color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 3px; }

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 1400px) {
    .lang-btn .lang-name { display: none; }
    .lang-btn { padding: 0 10px; }
}
@media (max-width: 1200px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .offer-grid, .stack-cats { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .mega-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .nav-bmv, .header-phone, .lang-switch { display: none; }
    .burger { display: flex; }
    .numbers { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .step { grid-template-columns: 64px 1fr; }
    .step > div:last-child { grid-column: 2; }
    .pf-grid > * { grid-column: span 12 !important; margin-top: 0 !important; }
    .type-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
    .type-row .num-index { display: none; }
    .hero { min-height: 92svh; }
    .scroll-cue { display: none; }
    .hero-meta > div + div { padding-left: 0; border-left: 0; }
    :root { --grid-step: 64px; }
}
@media (max-width: 767px) {
    .svc-grid, .offer-grid, .stack-cats, .stat-row { grid-template-columns: 1fr; }
    .numbers { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .hero-meta > div { flex: 1 1 45%; margin-bottom: 18px; }
    .btn-bmv { width: 100%; }
    .btn-bmv--auto { width: auto; }
    .form-panel { padding: 24px 20px; }
    .pf-view { width: 84px; height: 84px; }
    :root { --grid-step: 48px; }
}

/* =========================================================
   25. НОЧНОЙ ГОРОД — фон всего сайта
   ========================================================= */
.night-city {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.night-city .city-svg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* параллакс: чем ближе слой, тем быстрее едет */
.city-layer { will-change: transform; }
.city-far  { animation: cityDrift 260s linear infinite; }
.city-mid  { animation: cityDrift 165s linear infinite; }
.city-near { animation: cityDrift 96s  linear infinite; }
@keyframes cityDrift {
    from { transform: translateX(0); }
    to   { transform: translateX(-2000px); }
}

/* звёзды дышат */
.city-stars { animation: starTwinkle 9s ease-in-out infinite; }
@keyframes starTwinkle { 0%, 100% { opacity: .75; } 50% { opacity: .35; } }

/* авиационные огни на вышках */
.city-beacons circle { fill: #FF4D6D; animation: beacon 2.6s ease-in-out infinite; }
.city-beacons circle:nth-child(2) { animation-delay: .7s; }
.city-beacons circle:nth-child(3) { animation-delay: 1.4s; }
.city-beacons circle:nth-child(4) { animation-delay: 2s; }
@keyframes beacon { 0%, 62%, 100% { opacity: .15; } 72% { opacity: 1; } }

/* отдельные окна гаснут и загораются */
.city-windows rect { animation: windowFlicker 11s steps(1, end) infinite; }
@keyframes windowFlicker {
    0%, 44%  { opacity: .85; }
    46%, 58% { opacity: .06; }
    60%, 100% { opacity: .85; }
}

/* луна слегка всплывает */
.city-moon { animation: moonFloat 26s ease-in-out infinite; }
@keyframes moonFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
    .city-layer, .city-stars, .city-beacons circle, .city-windows rect, .city-moon { animation: none !important; }
}

/* Город живёт только в героях — контент над ним */
.hero > .shell,
.hero .hero-scan,
.hero .scroll-cue,
.page-hero > .shell { position: relative; z-index: 2; }

.hero { background: var(--inv-bg); }
.page-hero { background: var(--inv-bg); }
/* фоновая картинка внутренних страниц теперь не нужна — её место занял город */
.page-hero::before { display: none; }
/* затемнение живёт в .night-city::after — здесь дубль не нужен */
.page-hero::after { display: none; }
/* в компактных героях город обрезаем снизу, чтобы силуэт читался */
.page-hero .city-svg { min-height: 460px; }

/* =========================================================
   26. БЛОК КОРОТКОГО ОТВЕТА (AEO)
   ========================================================= */
.answer-box {
    margin: 28px 0 0;
    padding: 22px 26px;
    max-width: 74ch;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent-solid);
    background: color-mix(in srgb, var(--accent-solid) 7%, transparent);
}
.answer-box-label {
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.answer-box-text { font-size: 1rem; line-height: 1.66; color: var(--text); margin: 0; }

/* =========================================================
   27. БЛОГ
   ========================================================= */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.post-card { background: var(--bg); transition: background .3s var(--ease); }
.post-card:hover { background: var(--surface); }
.post-card-link { display: block; padding: 0 0 28px; height: 100%; }
.post-cover { overflow: hidden; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.post-cover img { width: 100%; filter: saturate(.7); transition: transform .6s var(--ease), filter .4s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.04); filter: saturate(1.05); }
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    padding: 0 26px;
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.post-cat { color: var(--accent); }
.post-title {
    font-family: var(--font-display);
    font-size: 1.24rem;
    font-weight: 700;
    line-height: 1.24;
    color: var(--ink);
    padding: 14px 26px 0;
    transition: color .25s var(--ease);
}
.post-card:hover .post-title { color: var(--accent); }
.post-excerpt { font-size: .88rem; line-height: 1.62; color: var(--text-mid); padding: 10px 26px 0; margin: 0; }

.blog-search { max-width: 460px; }

/* пагинация Bootstrap в фирменных цветах */
.pagination { gap: 4px; }
.page-link {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text-mid);
    font-family: var(--font-mono);
    font-size: .74rem;
    padding: .55rem .9rem;
}
.page-link:hover { background: color-mix(in srgb, var(--accent-solid) 12%, transparent); border-color: var(--accent-solid); color: var(--accent); }
.page-item.active .page-link { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }
.page-item.disabled .page-link { opacity: .4; background: transparent; border-color: var(--line-soft); }

/* =========================================================
   28. МЕЛОЧИ
   ========================================================= */
.svc-price {
    font-family: var(--font-num);
    font-size: .82rem;
    color: var(--accent);
    margin-top: 14px;
    letter-spacing: -.01em;
}
.crumbs-current { color: var(--text-mid); padding: 0; }
.crumbs a:hover { color: var(--accent); }

.types { display: block; }

.contact-list { border-top: 1px solid var(--line); }
.contact-list .price-row b a:hover { color: var(--accent); }

.form-err-box {
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--brand-mag);
    border-left-width: 3px;
    background: color-mix(in srgb, var(--brand-mag) 10%, transparent);
    font-size: .86rem;
    color: var(--text);
}
.form-err-box ul { list-style: none; padding: 0; margin: 0; }
.form-err-box li { padding: 2px 0; }

.chk-wrap.is-err .chk { color: var(--brand-mag-lt); }
.chk-wrap.is-err .chk input { border-color: var(--brand-mag); }

.faq-block { width: 100%; }
.faq-list { width: 100%; }

@media (max-width: 1200px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .post-grid { grid-template-columns: 1fr; }
    .city-far { animation-duration: 200s; }
    .city-mid { animation-duration: 130s; }
    .city-near { animation-duration: 80s; }
}


/* =========================================================
   29. ПОРТФОЛИО — ровная сетка в три колонки
   ========================================================= */
.pf-grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
.pf-item .pf-frame { aspect-ratio: 3 / 2; }
.pf-item .pf-frame img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1200px) {
    .pf-c4, .pf-c6, .pf-c8 { grid-column: span 6; }
}
@media (max-width: 767px) {
    .pf-c4, .pf-c6, .pf-c8 { grid-column: span 12; }
}

/* =========================================================
   30. ПОЛУПРОЗРАЧНАЯ ПАНЕЛЬ В ГЕРОЕ
   Город виден насквозь, текст остаётся читаемым
   ========================================================= */
.hero-panel {
    position: relative;
    padding: clamp(26px, 3.2vw, 52px) clamp(22px, 2.8vw, 48px);
    background:
            linear-gradient(135deg,
            color-mix(in srgb, var(--brand-char) 74%, transparent) 0%,
            color-mix(in srgb, var(--brand-deep) 58%, transparent) 100%);
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    border: 1px solid rgba(225, 230, 238, .12);
    border-left: 2px solid var(--brand-cyan);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
/* маджентовый уголок — второй фирменный акцент */
.hero-panel::after {
    content: "";
    position: absolute;
    right: 0; top: 0;
    width: 24px; height: 24px;
    background: linear-gradient(225deg, var(--brand-mag) 0 50%, transparent 50%);
    opacity: .9;
}
.hero .hero-panel { max-width: 1180px; }
.hero-panel .hero-meta { border-top-color: rgba(225, 230, 238, .16); }
.page-hero .hero-panel { max-width: 1020px; }

@media (max-width: 767px) {
    .hero-panel { clip-path: none; padding: 24px 20px; }
    .hero-panel::after { display: none; }
}

/* =========================================================
   31. ВТОРОЙ АКЦЕНТ #B03273
   Циан — интерактив и ссылки, маджента — цифры, индексы,
   метки и декоративная графика. Так два цвета не спорят.
   ========================================================= */

/* цифры и порядковые номера */
.number-val sup,
.step-num,
.offer-num          { color: var(--brand-mag-lt); }
.number-cell:hover::before { background: var(--brand-mag); }
.stat-cell::before  { background: linear-gradient(to right, var(--brand-cyan), var(--brand-mag)); }

/* метки и подписи */
.pf-tag,
.post-cat,
.type-price,
.brand-sub          { color: var(--brand-mag-lt); }
.crumbs span        { color: var(--brand-mag-lt); }

/* акцентное слово в заголовке героя — переливом */
.t-italic {
    background: linear-gradient(100deg, var(--brand-cyan-lt) 10%, var(--brand-mag-lt) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* декоративная графика */
.eyebrow::before {
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-mag));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-mag) 20%, transparent);
}
.svc-card::after        { border-color: var(--brand-mag); }
.faq-item.is-open       { box-shadow: inset 3px 0 0 0 var(--brand-mag); }
.faq-item.is-open .faq-q,
.faq-item.is-open .faq-ico { color: var(--brand-mag-lt); }
.big-marquee em:nth-child(even) { -webkit-text-stroke-color: var(--brand-mag); }
.footer-logo { -webkit-text-stroke: 1px color-mix(in srgb, var(--brand-mag) 55%, transparent); }
.chip:nth-child(even) i { background: var(--brand-mag); }
.marquee-track.rev .chip i { background: var(--brand-mag); }
.city-beacons circle    { fill: var(--brand-mag-lt); }
.svc-card:hover {
    box-shadow:
            inset 0 0 0 1px color-mix(in srgb, var(--brand-mag) 42%, transparent),
            0 18px 44px -28px var(--brand-mag);
}
.svc-card:hover .svc-ico { border-color: var(--brand-mag-lt); color: var(--brand-mag-lt); }
.answer-box { border-left-color: var(--brand-mag); }
.answer-box-label { color: var(--brand-mag-lt); }
.section + .section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brand-mag) 22%, var(--brand-cyan) 78%, transparent);
    opacity: .3;
}
.night-city::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
            linear-gradient(180deg,
            color-mix(in srgb, var(--brand-char) 82%, transparent) 0%,
            color-mix(in srgb, var(--brand-char) 46%, transparent) 38%,
            color-mix(in srgb, var(--brand-deep) 52%, transparent) 72%,
            color-mix(in srgb, var(--brand-void) 78%, transparent) 100%),
            linear-gradient(115deg,
            color-mix(in srgb, var(--brand-mag) 14%, transparent) 0%,
            transparent 46%,
            color-mix(in srgb, var(--brand-cyan) 12%, transparent) 100%);
}
.page-hero .night-city::after {
    background:
            linear-gradient(180deg,
            color-mix(in srgb, var(--brand-char) 88%, transparent) 0%,
            color-mix(in srgb, var(--brand-char) 62%, transparent) 45%,
            color-mix(in srgb, var(--brand-void) 86%, transparent) 100%),
            linear-gradient(115deg,
            color-mix(in srgb, var(--brand-mag) 12%, transparent) 0%,
            transparent 50%,
            color-mix(in srgb, var(--brand-cyan) 10%, transparent) 100%);
}
.night-city .city-svg { opacity: .1; }
