/* Транспортный лайнер — тёмный брутальный вариант.
   Основа — графит, акценты из брендбука: оранжевый #F3933D, синий #1B3157, красный #E3000E, серый #C5C5C6.
   Референс по настроению — kotel-system.ru, но строже: рубленые углы, узкая крупная типографика, линии сетки. */

@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/oswald-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/oswald-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #131517;
  --bg-2: #181b1e;
  --card: #1e2226;
  --card-2: #262a2f;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eef0f2;
  --text-2: #a4acb4;
  --text-3: #707981;
  --accent: #f3933d;
  --accent-hi: #ffa85c;
  --on-accent: #131517;
  --red: #e3000e;
  --hdr-bg: rgba(19, 21, 23, .82);
  --body-text: #d2d7db;
  --inv: #fff;
  --on-inv: #131517;
  --em: #34393f;
  --form-bg: #24282d;
  --f-text: #fff;
  --f-muted: rgba(255, 255, 255, .74);
  --f-faint: rgba(255, 255, 255, .5);
  --f-line: rgba(255, 255, 255, .22);
  --f-input: rgba(0, 0, 0, .22);
  --f-input-focus: rgba(0, 0, 0, .35);
  --ftr-bg: #0b0c0d;
  --err-text: #ffd1d1;
  --map-filter: invert(.92) saturate(.5) contrast(.95); /* только подложка карты; метка — своя, без фильтра */
  --grey: #c5c5c6;
  --wrap: 1320px;
  --side: clamp(16px, 4vw, 56px);
  --pad-y: clamp(64px, 8vw, 120px);
  --cut: 14px;
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

/* ── Светлая тема: включается кнопкой в шапке (html[data-theme="light"]) ── */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f4f5f6;
  --card: #eef0f2;
  --card-2: #e3e6e9;
  --line: rgba(19, 21, 23, .1);
  --line-2: rgba(19, 21, 23, .18);
  --text: #131517;
  --text-2: #555d65;
  --text-3: #80888f;
  --hdr-bg: rgba(255, 255, 255, .9);
  --body-text: #2b3035;
  --inv: #131517;
  --on-inv: #fff;
  --em: #2d3136;
  --form-bg: #eef0f2;
  --f-text: #131517;
  --f-muted: rgba(19, 21, 23, .72);
  --f-faint: rgba(19, 21, 23, .48);
  --f-line: rgba(19, 21, 23, .2);
  --f-input: #fff;
  --f-input-focus: #fff;
  --ftr-bg: #eef0f2;
  --err-text: #9d1c1c;
  --map-filter: none;
}
/* Блоки на фото и графитовые карточки в светлой теме остаются тёмными */
html[data-theme="light"] :is(.xhero, .glass, .tasks__media, .config--photo, .cap--dark, .term--dark, .stat--dark) {
  --text: #eef0f2;
  --text-2: #a4acb4;
  --text-3: #8a939b;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .2);
  --body-text: #d2d7db;
  --inv: #fff;
  --on-inv: #131517;
  --card: #1e2226;
  color: var(--text);
}
html[data-theme="light"] .toggle::after { filter: invert(1); }
html[data-theme="light"] .clients img { background: #f1f2f3; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: var(--accent); color: var(--on-accent); }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 16px; }
.skip:focus { left: 16px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic--sm { width: 14px; height: 14px; }
.ic--arrow { width: 18px; height: 18px; transition: transform .2s; }
.page { max-width: none; margin: 0; padding: 0; }
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
main > * { min-width: 0; }

/* ── Типографика ── */
.h1 { font-family: var(--display); font-size: clamp(44px, 7vw, 116px); line-height: 1.18; font-weight: 600; text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.h1--sm { font-size: clamp(28px, 3.4vw, 52px); }
.h2 { font-family: var(--display); font-size: clamp(28px, 3.5vw, 54px); line-height: 1.24; font-weight: 600; text-transform: uppercase; text-wrap: balance; }
.h3 { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); line-height: 1.26; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.tone { color: var(--accent); }
.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: var(--text); }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.shead { max-width: 980px; margin-bottom: clamp(32px, 4vw, 56px); }
.shead:last-child { margin-bottom: 0; }
.shead__lead { margin-top: 18px; color: var(--text-2); font-size: 18px; max-width: 760px; }
.shead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.shead-row .shead { margin: 0; }
.shead, .h1, .h2, .h3 { min-width: 0; }
.split .h2, .whole .h2, .twocol .h2, .formp .h2, .cta-row .h2 { font-size: clamp(26px, 2.7vw, 42px); }
@media (max-width: 600px) {
  .h1 { font-size: clamp(28px, 8vw, 36px); }
  .h2 { font-size: clamp(24px, 7vw, 30px); }
  .h1--sm { font-size: 26px; }
}

/* ── Кнопки: рубленый угол ── */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btns:first-child { margin-top: 0; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 12px 26px; border: 1px solid transparent; border-radius: 0; font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn:hover .ic--arrow { transform: translateX(4px); }
.btn--dark, .btn--sky { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.btn--dark { background: var(--accent); color: var(--on-accent); }
.btn--dark:hover { background: var(--inv); color: var(--on-inv); }
.btn--sky { background: var(--inv); color: var(--on-inv); }
.btn--sky:hover { background: var(--accent); }
.btn--white, .btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--white:hover, .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 14px; }
.btn--lg { min-height: 60px; padding: 14px 32px; font-size: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (max-width: 600px) { .btn { white-space: normal; max-width: 100%; text-align: center; } .btns .btn { flex: 1 1 auto; } }

/* ── Шапка ── */
.hdr { position: sticky; top: 0; z-index: 50; }
.hdr__bar { display: flex; align-items: center; gap: 24px; height: 76px; padding: 0 var(--side); background: var(--hdr-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__ship { height: 40px; width: auto; }
.logo__text { height: 36px; width: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 4px; height: 76px; padding: 0 14px; border: 0; background: none; font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .2s; }
.nav__link:hover { color: var(--text); }
.nav__item.is-active > .nav__link { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.nav__link .ic--sm { transition: transform .2s; }
.dd { position: absolute; left: 0; top: 100%; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.dd ul { list-style: none; margin: 0; padding: 8px; min-width: 320px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.dd a { display: flex; align-items: center; gap: 14px; padding: 12px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); }
.dd a:hover, .dd a[aria-current] { background: var(--card-2); color: var(--accent); }
.dd__ic { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); color: var(--accent); }
.nav__item--dd:hover .dd, .nav__item--dd.is-open .dd { opacity: 1; visibility: visible; transform: none; }
.nav__item--dd:hover .nav__link .ic--sm, .nav__item--dd.is-open .nav__link .ic--sm { transform: rotate(180deg); }
.hdr__contact { display: flex; align-items: center; gap: 18px; }
.hdr__phone { display: flex; flex-direction: column; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .03em; line-height: 1.15; white-space: nowrap; }
.hdr__phone small { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.hdr__call, .burger { display: none; }
.mnav { display: none; }

@media (max-width: 1260px) {
  .nav, .hdr__contact { display: none; }
  .hdr__bar { height: 64px; gap: 8px; padding-right: 10px; }
  .hdr__call { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; background: var(--accent); color: var(--on-accent); }
  .burger { display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
  .burger span { display: block; width: 20px; height: 2px; background: var(--text); transition: .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mnav:not([hidden]) { display: grid; gap: 0; max-height: calc(100dvh - 64px); overflow: auto; background: var(--bg); border-bottom: 1px solid var(--line-2); }
  .mnav__group { display: grid; padding: 14px var(--side); border-bottom: 1px solid var(--line); }
  .mnav__group--ctx { background: var(--card); box-shadow: inset 3px 0 0 var(--accent); }
  .mnav__label { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
  .mnav__group a { padding: 10px 0; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }
  .mnav__group a[aria-current] { color: var(--accent); }
  .mnav__contact { display: grid; gap: 14px; padding: 18px var(--side) 24px; }
  .mnav__phone { display: flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 24px; }
  .mnav__phone small { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
  .mnav__phone .ic { width: 46px; height: 46px; padding: 12px; background: var(--accent); color: var(--on-accent); }
}
@media (max-width: 420px) { .logo__ship { height: 32px; } .logo__text { height: 28px; } }

/* ── Секции-полосы ── */
.panel { position: relative; padding: var(--pad-y) max(var(--side), calc((100% - var(--wrap)) / 2)); background: var(--bg); border-top: 1px solid var(--line); }
main > .panel:nth-of-type(even) { background: var(--bg-2); }
.panel--tight { padding-block: clamp(40px, 5vw, 64px); }
.panel--sky { background: var(--card) !important; border-top: 0; }
.notch::before, .notch::after { display: none; }

/* ── Первый экран ── */
.xhero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(calc(100svh - 76px), 920px); overflow: hidden; isolation: isolate; }
.xhero--inner { min-height: clamp(560px, 64vh, 760px); }
.xhero--compact { min-height: clamp(480px, 52vh, 620px); }
.xhero__media { position: absolute; inset: 0; z-index: -2; background: var(--card); }
.xhero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.xhero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 21, 23, .94) 0%, rgba(19, 21, 23, .72) 42%, rgba(19, 21, 23, .2) 100%), linear-gradient(0deg, rgba(19, 21, 23, .95) 0%, rgba(19, 21, 23, 0) 45%); }
.xhero__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc((100% - 2 * var(--side)) / 6) 100%; background-position: var(--side) 0; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.xhero__inner { width: 100%; max-width: calc(var(--wrap) + 2 * var(--side)); margin: 0 auto; padding: 120px var(--side) clamp(40px, 5vw, 72px); }
.xhero .crumbs { margin-bottom: 26px; }
.xhero .h1 { max-width: 1000px; font-size: clamp(42px, 5.8vw, 96px); }
.xhero--inner .h1 { font-size: clamp(34px, 4.3vw, 66px); max-width: 1100px; }
.xhero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(28px, 3.4vw, 48px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line-2); }
.xhero__lead { flex: 1 1 420px; max-width: 760px; margin: 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: #d5dade; }
/* кнопки и строка контактов — одна сетка: телефон под первой кнопкой, мессенджеры ровно под второй */
.xhero__cta { display: grid; grid-template-columns: auto auto; gap: 14px 10px; justify-content: end; align-items: center; }
.xhero__cta .btns, .xhero__cta .cline { display: contents; }
.xhero__cta .btn:nth-child(1) { grid-column: 1; }
.xhero__cta .btn:nth-child(2) { grid-column: 2; }
.xhero__cta .btn { justify-self: stretch; }
.xhero__cta .cline__phone { grid-column: 1; margin: 0; }
.xhero__cta .messengers { grid-column: 2; display: flex; gap: 10px; }
.xhero__cta .messengers .msg { flex: 1; justify-content: center; }
.xhero__cta .hero__big { grid-column: 1 / -1; justify-self: end; }
.xhero__lead p { margin: 0 0 .8em; }
.xhero__lead p:last-child { margin: 0; }
.xhero__note { margin: 18px 0 0; }
.xhero__note { margin: 0; font-family: var(--display); font-size: 17px; letter-spacing: .05em; text-transform: uppercase; color: var(--grey); }
.xhero .cline__phone { font-size: 24px; }
.hero__big { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.hero__big b { font-family: var(--display); font-size: clamp(40px, 4vw, 64px); line-height: 1; font-weight: 600; color: var(--accent); }
.hero__big span { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--text-2); }
.xfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-2); background: rgba(19, 21, 23, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0 max(var(--side), calc((100% - var(--wrap)) / 2)); }
.xfacts div { padding: clamp(18px, 2vw, 28px) clamp(14px, 2vw, 30px); border-left: 1px solid var(--line); }
.xfacts div:first-child { border-left: 0; padding-left: 0; }
.xfacts dt { font-family: var(--display); font-size: clamp(22px, 2.2vw, 36px); line-height: 1.05; font-weight: 600; }
.xfacts div:first-child dt { color: var(--accent); }
.xfacts dd { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 900px) {
  .xhero, .xhero--inner, .xhero--compact { min-height: 0; }
  .xhero__inner { padding-top: clamp(160px, 44vw, 280px); }
  .xhero .h1, .xhero--inner .h1 { font-size: clamp(28px, 7.6vw, 40px); max-width: none; }
  .xhero__media::after { background: linear-gradient(0deg, rgba(19, 21, 23, 1) 20%, rgba(19, 21, 23, .55) 70%, rgba(19, 21, 23, .25) 100%); }
  .xfacts { grid-template-columns: 1fr 1fr; }
  .xfacts div, .xfacts div:first-child { padding: 18px 16px 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .xfacts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .xfacts dt { white-space: normal; }
  .xhero__cta { width: 100%; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .xhero__cta .btn:nth-child(1), .xhero__cta .btn:nth-child(2), .xhero__cta .cline__phone, .xhero__cta .messengers, .xhero__cta .hero__big { grid-column: 1; justify-self: stretch; }
  .xhero__cta .messengers .msg { justify-content: center; }
}

/* ── Бегущая строка ── */
.marquee { overflow: hidden; background: var(--accent); color: var(--on-accent); border-block: 1px solid #000; }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { padding: 16px 28px; font-family: var(--display); font-size: clamp(20px, 2vw, 30px); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 12px; height: 12px; background: var(--on-accent); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ── Крошки и меню раздела ── */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--accent); }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.subnav { position: sticky; top: 76px; z-index: 20; display: flex; align-items: center; gap: 0; padding: 0 max(var(--side), calc((100% - var(--wrap)) / 2)); background: var(--card); border-block: 1px solid var(--line); overflow-x: auto; }
.subnav__label { padding-right: 24px; margin-right: 8px; border-right: 1px solid var(--line-2); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.subnav a { padding: 20px 18px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--text-2); box-shadow: inset 0 -3px 0 transparent; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current] { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
@media (max-width: 1260px) { .subnav { display: none; } }

/* ── Строки контента ── */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 6vw, 96px); padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.shead + .row, .steps + .row, .twocol + .row { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.row__head .h3 { max-width: 480px; position: sticky; top: 110px; }
.row__body { font-size: 17px; color: var(--body-text); }
.row__body > * + * { margin-top: 22px; }
.row__body > p + p { margin-top: 0; }
@media (max-width: 860px) { .row { grid-template-columns: minmax(0, 1fr); } .row__head .h3 { position: static; } }

.plus { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.plus li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
.plus li:first-child { padding-top: 0; }
.plus li:first-child::before { top: 11px; }
.plus li::before { content: ''; position: absolute; left: 0; top: 23px; width: 16px; height: 2px; background: var(--accent); }
.plus--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.plus--2 li:nth-child(2) { padding-top: 0; }
.plus--2 li:nth-child(2)::before { top: 11px; }
@media (max-width: 640px) { .plus--2 { grid-template-columns: 1fr; } .plus--2 li:nth-child(2) { padding-top: 12px; } .plus--2 li:nth-child(2)::before { top: 23px; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.callout { padding: 22px 26px; background: var(--card); border-left: 3px solid var(--accent); }
.callout p:has(> .ic) { display: flex; gap: 12px; align-items: flex-start; }
.callout .ic { color: var(--accent); margin-top: 3px; }
.callout .btns { margin-top: 18px; }

/* ── Этапы: большие контурные цифры ── */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps > .step { flex: 1 1 220px; }
.step { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 2.4vw, 32px); background: var(--bg); min-height: 200px; transition: background .25s; }
main > .panel:nth-of-type(even) .step { background: var(--bg-2); }
.step:hover { background: var(--card) !important; }
.step__n { font-family: var(--display); font-size: clamp(48px, 4.4vw, 72px); font-weight: 600; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.step:hover .step__n { color: var(--accent); }
.step p { font-weight: 600; line-height: 1.5; color: var(--text); }
.step small { display: block; margin-top: 8px; font-weight: 500; font-size: 14px; color: var(--text-2); }
.steps + .callout, .steps + .muted { margin-top: 20px; }
.row__body .steps > .step { flex-basis: 180px; min-height: 150px; }

/* ── Главная: задачи ── */
.tasks__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.tasks__list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-2); }
.task { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; transition: background .25s, padding .25s; }
.task__ic { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line-2); color: var(--accent); transition: .25s; }
.task__t { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: .01em; line-height: 1.28; text-transform: uppercase; }
.task__d { display: block; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.task__btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.toggle { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-2); transition: .25s; }
.toggle::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef0f2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 20px no-repeat; }
.task.is-on { padding-left: 20px; background: var(--card); box-shadow: inset 3px 0 0 var(--accent); }
.task.is-on .task__ic { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.task.is-on .toggle { background: var(--accent); border-color: var(--accent); }
.task.is-on .toggle::after { filter: invert(1); }
.tasks__media { position: sticky; top: 100px; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--card); clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.tasks__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: opacity .3s; }
.tasks__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(19, 21, 23, .8), transparent 45%); pointer-events: none; }
.tasks__cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.tasks__cap .ic { color: var(--accent); width: 28px; height: 28px; }
@media (max-width: 900px) {
  .tasks__grid { grid-template-columns: 1fr; }
  .tasks__media { display: none; }
  .task { grid-template-columns: 46px 1fr; gap: 16px; }
  .task__ic { width: 46px; height: 46px; }
  .toggle { display: none; }
  .task.is-on { padding-left: 0; background: none; box-shadow: none; }
  .task.is-on .task__ic { background: none; border-color: var(--line-2); color: var(--accent); }
}

/* ── Фото-полоса с карточками ── */
.glass { overflow: hidden; isolation: isolate; }
main > .panel.glass { background: #0e1012; }
.glass__media { position: absolute; inset: 0; z-index: -1; }
.glass__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.glass__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 16, 18, .92) 0%, rgba(14, 16, 18, .7) 45%, rgba(14, 16, 18, .9) 100%); }
.glass__head { position: relative; max-width: 980px; padding: 0 0 clamp(36px, 4vw, 56px); background: none; }
.glass__body { position: relative; }
.glass__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.gcard { padding: clamp(24px, 2.6vw, 36px); background: rgba(19, 21, 23, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--text); }
.gcard__ic { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 26px; border: 1px solid var(--accent); color: var(--accent); }
.gcard h3 { font-family: var(--display); font-size: 22px; line-height: 1.22; font-weight: 500; text-transform: uppercase; margin-bottom: 14px; }
.gcard p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.gcard--text p { font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--text); }
.glass__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 12px; padding: 18px 18px 18px 26px; background: var(--accent); color: var(--on-accent); }
.glass__foot .btns { margin: 0; }
.glass__foot .btn--sky { background: var(--on-accent); color: #fff; }
.glass__foot .btn--sky:hover { background: #fff; color: var(--on-accent); }
.glass__note { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-weight: 700; max-width: 860px; }
.glass__note .ic { margin-top: 2px; }
@media (max-width: 960px) {
  .glass__cards { grid-template-columns: 1fr; }
}

/* ── Проект целиком ── */
.whole { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.whole .shead { margin: 0; }
.whole__body .chips { margin-top: 26px; }
@media (max-width: 860px) { .whole { grid-template-columns: minmax(0, 1fr); } }

/* ── Возможности ── */
.caps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.caps__media { margin: 0; overflow: hidden; min-height: 280px; }
.caps__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.cap { padding: clamp(24px, 2.4vw, 34px); background: var(--bg); }
main > .panel:nth-of-type(even) .cap { background: var(--bg-2); }
.cap__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.cap__ic { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line-2); color: var(--accent); }
.cap__n { font-family: var(--display); font-size: 18px; color: var(--text-3); }
.cap h3 { font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.22; text-transform: uppercase; margin-bottom: 12px; }
.cap p { font-size: 15px; color: var(--text-2); }
.cap--sky { background: var(--accent) !important; color: var(--on-accent); }
.cap--sky p, .cap--sky .cap__n { color: rgba(19, 21, 23, .78); }
.cap--sky .cap__ic { border-color: rgba(19, 21, 23, .4); color: var(--on-accent); }
.cap--dark { background: var(--em) !important; color: #fff; }
.cap--dark p { color: rgba(255, 255, 255, .78); }
.cap--dark .cap__ic { border-color: var(--accent); }
@media (max-width: 1000px) { .caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .caps__media { grid-column: 1 / -1; min-height: 0; height: clamp(200px, 40vw, 320px); } }
@media (max-width: 600px) { .caps__grid { grid-template-columns: 1fr; } }

.start__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.start__head .shead { margin: 0; }
.start .steps > .step { flex-basis: 190px; }
.start .callout { margin-top: 20px; }

/* ── Клиенты: логотипы на светлых плашках ── */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.clients li { display: grid; grid-template-rows: 140px auto; min-width: 0; background: var(--bg); text-align: center; }
main > .panel:nth-of-type(even) .clients li { background: var(--bg-2); }
.clients img { place-self: stretch; width: 100%; max-width: 100%; height: 140px; padding: 24px; box-sizing: border-box; object-fit: contain; background: #e7e8e9; filter: grayscale(1) contrast(1.1); transition: filter .3s; }
.clients li:hover img { filter: none; }
.clients span { padding: 14px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 600px) { .clients { grid-template-columns: 1fr 1fr; } .clients li { grid-template-rows: 100px auto; } .clients img { height: 100px; padding: 16px; } .clients span { padding: 12px 8px; font-size: 11px; letter-spacing: .05em; } .step { min-height: 0; } }

/* ── Фото + текст ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.split__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.split__body > * + * { margin-top: 20px; }
.split__body .shead { margin-bottom: 0; }
.split__body p { color: var(--body-text); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev .split__media { order: 0; } }

/* ── Выбор формата БМК ── */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.choice__card { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3.4vw, 52px); min-height: 360px; background: var(--bg); text-decoration: none; transition: background .25s; }
.choice__card:hover { background: var(--card); }
.choice__card--sky { background: var(--accent); color: var(--on-accent); }
.choice__card--sky:hover { background: var(--accent-hi); }
.choice__ic { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid var(--line-2); color: var(--accent); }
.choice__card--sky .choice__ic { border-color: rgba(19, 21, 23, .4); color: var(--on-accent); }
.choice__card h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 44px); font-weight: 600; line-height: 1.22; text-transform: uppercase; }
.choice__card p { color: var(--text-2); font-size: 17px; }
.choice__card--sky p { color: rgba(19, 21, 23, .8); }
.choice__go { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-family: var(--display); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.choice__card:hover .ic--arrow { transform: translateX(4px); }
@media (max-width: 760px) { .choice { grid-template-columns: 1fr; } .choice__card { min-height: 0; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.duo__item { padding: 24px; background: var(--card); }
.duo__item--sky { box-shadow: inset 0 3px 0 var(--accent); }
.duo__item h3 { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; margin-bottom: 10px; }
.duo__item h3 .ic { color: var(--accent); margin-top: 2px; }
.duo__item p { font-size: 15px; color: var(--text-2); }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } }

.faq__more { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px 22px; background: var(--card); border-left: 3px solid var(--accent); font-weight: 700; }
.faq__more .btns { margin: 0; }

/* ── Условия ── */
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.terms--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.term { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 2.4vw, 32px); background: var(--bg); }
main > .panel:nth-of-type(even) .term { background: var(--bg-2); }
.term__ic { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line-2); color: var(--accent); }
.term p { font-weight: 600; line-height: 1.5; }
.term--sky { background: var(--accent) !important; color: var(--on-accent); }
.term--sky .term__ic { border-color: rgba(19, 21, 23, .4); color: var(--on-accent); }
.term--dark { background: var(--em) !important; color: #fff; }
.term--dark .term__ic { border-color: var(--accent); }
@media (max-width: 1000px) { .terms, .terms--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .terms, .terms--3 { grid-template-columns: 1fr; } }

/* ── КАЗС: конфигурации ── */
.configs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.config { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.6vw, 34px); background: var(--bg); }
main > .panel:nth-of-type(even) .config { background: var(--bg-2); }
.config--sky { box-shadow: inset 0 3px 0 var(--accent); }
.config .config__n { margin: 0; font-family: var(--display); font-size: 48px; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.config h3 { font-family: var(--display); font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; text-transform: uppercase; }
.config__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.config__tags li { padding: 5px 10px; border: 1px solid var(--accent); color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.config p { color: var(--text-2); font-size: 15px; }
.config--photo { position: relative; padding: 0; overflow: hidden; justify-content: flex-end; min-height: 300px; }
.config--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.config--photo p { position: relative; margin: 0; padding: 20px 24px; background: rgba(19, 21, 23, .85); backdrop-filter: blur(8px); color: var(--text); font-weight: 600; border-top: 3px solid var(--accent); }
@media (max-width: 960px) { .configs { grid-template-columns: 1fr 1fr; } .config--photo { grid-column: 1 / -1; } }
@media (max-width: 600px) { .configs { grid-template-columns: 1fr; } }

.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.twocol__item--card { padding: clamp(24px, 3vw, 40px); background: var(--card); border-top: 3px solid var(--accent); }
.twocol__item .shead { margin-bottom: 28px; }
.twocol .steps > .step { flex-basis: 40%; min-height: 150px; }
@media (max-width: 900px) { .twocol { grid-template-columns: minmax(0, 1fr); } }
.numlist { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.numlist li::before { content: counter(n, decimal-leading-zero); font-family: var(--display); font-size: 20px; color: var(--accent); }

/* ── Документы ── */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.doc { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.4vw, 30px); background: var(--bg); scroll-margin-top: 110px; transition: background .25s, box-shadow .3s; }
main > .panel:nth-of-type(even) .doc { background: var(--bg-2); }
.doc:hover { background: var(--card) !important; }
.doc:target, .doc.is-hl { box-shadow: inset 0 0 0 2px var(--accent); }
.doc[hidden] { display: none; }
.doc__top { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.doc__ic { display: grid; place-items: center; width: 48px; height: 48px; background: var(--accent); color: var(--on-accent); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.doc__kind { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.doc__title { font-size: 18px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.doc__desc { font-size: 15px; color: var(--text-2); }
.doc__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.doc__type { font-family: var(--display); font-size: 15px; letter-spacing: .06em; color: var(--text-3); }
.doc__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.row__body .docs { grid-template-columns: 1fr; }
/* четыре карточки: 2×2 вместо 3+1 с пустыми ячейками */
@media (min-width: 900px) { .docs--pair { grid-template-columns: repeat(2, 1fr); } }

.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter button { padding: 10px 16px; border: 1px solid var(--line-2); background: transparent; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); cursor: pointer; }
.filter button:hover { border-color: var(--accent); color: var(--text); }
.filter button.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.cta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; }
.cta-row > div { flex: 1 1 420px; min-width: 0; }
.cta-row .btns { flex: none; }
.cta-row .shead { margin-bottom: 18px; }
.cta-row .btns { margin: 0; }
.panel--sky .btn--dark:hover { background: var(--inv); color: var(--on-inv); }

/* ── Может быть полезно ── */
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.rcard { display: flex; align-items: center; gap: 16px; height: 100%; padding: 22px 22px 22px 18px; background: var(--bg); text-decoration: none; font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; transition: background .2s, color .2s; }
main > .panel:nth-of-type(even) .rcard { background: var(--bg-2); }
.rcard:hover { background: var(--accent) !important; color: var(--on-accent); }
.rcard:hover .ic--arrow { transform: translateX(4px); }
.rcard__ic { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); color: var(--accent); flex: none; }
.rcard:hover .rcard__ic { border-color: rgba(19, 21, 23, .4); color: var(--on-accent); }
.rcard__t { flex: 1; line-height: 1.15; }
.panel--tight .shead { margin-bottom: 28px; }

/* ── FAQ ── */
.faq { display: grid; border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ic { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); flex: none; transition: transform .25s, background .25s; }
.faq__item[open] .faq__ic { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq__a { padding: 0 60px 24px 0; color: var(--text-2); }
.faq + .faq__more { margin-top: 20px; }

/* ── Цифры ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: clamp(32px, 4vw, 56px); background: var(--line-2); border: 1px solid var(--line-2); }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: clamp(22px, 2.4vw, 32px); background: var(--bg); min-height: 200px; }
main > .panel:nth-of-type(even) .stat { background: var(--bg-2); }
.stat b { font-family: var(--display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1; font-weight: 600; }
.stat b small { font-size: .45em; font-weight: 500; }
.stat span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); line-height: 1.4; }
.stat--sky { background: var(--accent) !important; color: var(--on-accent); }
.stat--sky span { color: rgba(19, 21, 23, .75); }
.stat--dark { background: var(--em) !important; color: #fff; }
.stat--dark span { color: rgba(255, 255, 255, .72); }
@media (max-width: 1000px) { .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .stat { min-height: 150px; padding: 18px; } .stat b { font-size: clamp(22px, 7vw, 30px); overflow-wrap: anywhere; } }
.fuels { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.fuels li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
main > .panel:nth-of-type(even) .fuels li { background: var(--bg-2); }
.fuels .ic { color: var(--accent); }
@media (max-width: 420px) { .fuels { grid-template-columns: 1fr; } }

.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.spec__item { display: grid; gap: 10px; padding: 22px; background: var(--card); }
.spec__item span { font-size: 11.5px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.spec__item b { font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.28; text-transform: uppercase; }
.spec__item--sky { background: var(--accent); color: var(--on-accent); }
.spec__item--sky span { color: rgba(19, 21, 23, .65); }
@media (max-width: 700px) { .spec { grid-template-columns: 1fr; } }

/* ── О компании ── */
.infra { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.infra__photo { margin: 0; overflow: hidden; min-height: 200px; }
.infra__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
@media (max-width: 1000px) { .infra { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .infra { grid-template-columns: 1fr; } }
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.aud__card { display: flex; flex-direction: column; gap: 20px; padding: clamp(26px, 3vw, 44px); background: var(--card); border-top: 3px solid var(--line-2); }
.aud__card--sky { border-top-color: var(--accent); }
.aud__tag { display: inline-flex; align-items: center; gap: 14px; margin: 0; font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1.1; text-transform: uppercase; }
.aud__tag .ic { width: 50px; height: 50px; padding: 13px; border: 1px solid var(--accent); color: var(--accent); }
.aud__lead { margin: 0; font-weight: 700; }
.aud__list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-2); }
.aud__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--text-2); transition: color .2s, padding .2s; }
.aud__list a b { color: var(--text); }
.aud__list a:hover { color: var(--accent); padding-left: 8px; }
.aud__note { display: flex; gap: 12px; margin: auto 0 0; padding-top: 18px; font-weight: 600; color: var(--text-2); }
.aud__note .ic { color: var(--accent); margin-top: 2px; }
@media (max-width: 860px) { .aud { grid-template-columns: 1fr; } }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); }
.case { background: var(--card); overflow: hidden; }
.case__media { display: grid; place-items: center; aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, #1a1d20 0 12px, #202428 12px 24px); color: var(--text-3); font-size: 14px; font-weight: 700; }
.case__body { padding: 22px; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }

/* Объект с видео: вертикальный ролик слева, описание справа */
.obj { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(18px, 2.4vw, 32px); background: var(--card); border: 1px solid var(--line-2); }
.obj__video { aspect-ratio: 5 / 9; background: #000; overflow: hidden; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.obj__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.obj__body { display: grid; gap: 18px; align-content: start; }
.obj__addr { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--text-2); }
.obj__addr .ic { flex: none; margin-top: 3px; color: var(--accent); }
.obj__sub { margin: 10px 0 0; font-size: 11.5px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.obj__note { margin: 0; font-size: 14px; color: var(--text-3); }
@media (max-width: 760px) { .obj { grid-template-columns: 1fr; } .obj__video { width: 100%; max-width: 340px; } }

/* ── Галерея и просмотр фото ── */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) var(--line-2); padding-bottom: 14px; }
.gallery__item { display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--card); cursor: zoom-in; scroll-snap-align: start; }
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.04); }
.gallery__nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.gallery__nav button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 400 28px/1 var(--display); cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.gallery__nav button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.gallery__nav button:disabled { opacity: .35; cursor: default; }
.gallery__n { margin-left: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--text-3); }
@media (max-width: 900px) { .gallery { grid-auto-columns: calc((100% - 16px) / 2.3); gap: 8px; } }
@media (max-width: 560px) { .gallery { grid-auto-columns: 70%; } }
.lbox { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(10, 11, 12, .95); touch-action: pan-y; }
.lbox img { max-width: calc(100vw - 24px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); width: auto; height: auto; object-fit: contain; }
.lbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); background: rgba(19, 21, 23, .7); color: #fff; font: 400 30px/1 var(--display); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lbox button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lbox__x { top: 14px; right: 14px; }
.lbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lbox__n { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
@media (max-width: 700px) { .lbox__prev, .lbox__next { top: auto; bottom: 8px; transform: none; width: 46px; height: 46px; } }

/* ── Контакты ── */
.contact-hero { padding-top: clamp(64px, 8vw, 110px); }
.contact-hero__head { max-width: 1000px; margin-bottom: clamp(32px, 4vw, 56px); }
.contact-hero__head .crumbs { margin-bottom: 26px; }
.contact-hero__head .h1 { font-size: clamp(34px, 4.6vw, 76px); margin-bottom: 24px; }
.contact-hero__head .lead { color: var(--text-2); max-width: 760px; }
/* Число колонок задано явно: карточка почты идёт на всю ширину, и с auto-fit появлялась пустая пятая колонка */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
@media (max-width: 1180px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.ccard { display: grid; gap: 6px; padding: clamp(24px, 2.6vw, 34px); background: var(--bg); text-decoration: none; transition: background .2s; }
.ccard:hover { background: var(--card); }
.ccard__ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 26px; border: 1px solid var(--line-2); color: var(--accent); }
.ccard small { font-size: 11.5px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.ccard b { font-family: var(--display); font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.1; text-transform: uppercase; }
.ccard--sky { background: var(--accent); color: var(--on-accent); }
.ccard--sky:hover { background: var(--accent-hi); }
.ccard--sky small { color: rgba(19, 21, 23, .65); }
.ccard--sky .ccard__ic { border-color: rgba(19, 21, 23, .4); color: var(--on-accent); }
.ccard--wide { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 22px; row-gap: 4px; }
.ccard--wide .ccard__ic { grid-row: 1 / 3; margin-bottom: 0; }
.ccard--wide small { align-self: end; }
.ccard--wide b { align-self: start; text-transform: none; overflow-wrap: anywhere; }
.places { display: grid; gap: clamp(16px, 2vw, 24px); }
.place { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--card); border: 1px solid var(--line-2); }
.place__map { min-height: 380px; background: var(--card-2); }
.place__map .ymap { width: 100%; height: 100%; min-height: 380px; }
.place__map [class*="ground-pane"] { filter: var(--map-filter); }
.place__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 3vw, 40px); }
.place__body p { margin: 0; color: var(--body-text); }
.place__coords { font-size: 14px; color: var(--text-2) !important; }
@media (max-width: 860px) { .place { grid-template-columns: 1fr; } .place__map, .place__map .ymap { min-height: 280px; } }
.req { display: grid; margin: 0; border-top: 1px solid var(--line-2); }
.req div { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.req dt { color: var(--text-3); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.req dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) { .req div { grid-template-columns: 1fr; gap: 4px; } }

/* ── Формы: синий из брендбука ── */
main > .panel.formp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(32px, 6vw, 96px); background: var(--form-bg); color: var(--f-text); border-top: 0; }
.formp::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.formp__info .shead { margin-bottom: 28px; }
.formp__info .shead__lead { color: var(--f-muted); }
.formp__info .cline { margin-top: 10px; }
.formp .muted { color: var(--f-muted); }
@media (max-width: 900px) { main > .panel.formp { grid-template-columns: minmax(0, 1fr); } }
.formp__info, .form { min-width: 0; }
.cline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cline__phone { display: inline-flex; align-items: center; gap: 12px; margin-right: 8px; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.cline__phone .ic { width: 44px; height: 44px; padding: 11px; background: var(--accent); color: var(--on-accent); }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.msg { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-2); text-decoration: none; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.msg:hover { border-color: var(--accent); color: var(--accent); }
.msg .ic { width: 18px; height: 18px; color: var(--accent); }
.formp .msg { border-color: var(--f-line); }
.form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.fld select { max-width: 100%; }
.file small { overflow-wrap: anywhere; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.fld { min-width: 0; }
.fld { display: grid; gap: 8px; }
.fld--wide { grid-column: 1 / -1; }
.fld > span { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--f-muted); }
.fld i { font-style: normal; color: var(--accent); margin-left: 3px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid var(--f-line); border-radius: 0; background: var(--f-input); font-weight: 600; font-size: 16px; color: var(--f-text); transition: border-color .2s, background .2s; }
.fld select option { background: var(--form-bg); color: var(--f-text); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--f-faint); }
.fld input[type="date"] { color-scheme: dark; }
.fld textarea { resize: vertical; min-height: 130px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); background: var(--f-input-focus); }
.fld small { font-size: 13px; color: rgba(255, 255, 255, .6); }
.fld.is-bad input, .fld.is-bad textarea, .fld.is-bad select { border-color: #ff6b6b; background: rgba(227, 0, 14, .12); }
.fld--file { position: relative; }
.fld--file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; padding: 18px; border: 1px dashed var(--f-line); background: var(--f-input); cursor: pointer; transition: border-color .2s, background .2s; }
.file:hover, .fld--file input:focus-visible + .file { border-color: var(--accent); background: var(--f-input-focus); }
.file .ic { grid-row: span 2; width: 44px; height: 44px; padding: 11px; background: var(--accent); color: var(--on-accent); }
.file b { font-size: 15px; font-weight: 700; color: var(--f-text); overflow-wrap: anywhere; }
.file small { font-size: 12.5px; color: var(--f-faint); }
.check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--f-muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check__box { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--f-faint); background: transparent; color: transparent; transition: .15s; }
.check__box .ic { width: 16px; height: 16px; stroke-width: 2.8; }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input:disabled + .check__box { opacity: .35; }
.check a { color: var(--f-text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.check.is-bad .check__box { border-color: #ff6b6b; background: rgba(227, 0, 14, .2); }
.check--sm { font-weight: 700; color: var(--f-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__err { margin: 0; padding: 14px 16px; background: rgba(227, 0, 14, .18); border-left: 3px solid var(--red); color: var(--err-text); font-weight: 700; font-size: 14px; }
.form .btn--lg { justify-self: start; }
.form__ok { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--f-input); border-left: 3px solid var(--accent); }
.form__ok .ic { width: 46px; height: 46px; padding: 12px; background: var(--accent); color: var(--on-accent); }
.form__okt { font-family: var(--display); font-size: 24px; text-transform: uppercase; margin-bottom: 4px; }
.form.is-sent .form__grid, .form.is-sent > .check, .form.is-sent .pubc, .form.is-sent > .btn { display: none; }
.pubc { display: grid; gap: 14px; margin: 0; padding: 20px; border: 1px solid var(--f-line); background: var(--f-input); }
.pubc legend { float: left; width: 100%; margin-bottom: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--f-text); }
.pubc__list { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-left: 38px; }
@media (max-width: 600px) { .form__grid { grid-template-columns: minmax(0, 1fr); } .form .btn--lg { justify-self: stretch; } }

/* ── Подвал ── */
.ftr { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 100px) max(var(--side), calc((100% - var(--wrap)) / 2)) 0; background: var(--ftr-bg); color: var(--text); border-top: 1px solid var(--line); }
.ftr a { text-decoration: none; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.ftr__brand p { max-width: 340px; color: var(--text-2); margin: 22px 0; }
.logo--footer { display: inline-flex; }
.ftr__phone { display: block; margin-bottom: 16px; font-family: var(--display); font-size: 34px; font-weight: 500; letter-spacing: .02em; }
a[href^="mailto:"] { white-space: nowrap; }
a.ccard--wide { white-space: normal; }
.ftr__mail { display: block; margin: -6px 0 18px; font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: .04em; color: var(--text-2); }
.ftr__phone:hover, .ftr__mail:hover { color: var(--accent); }
.ftr__col { display: flex; flex-direction: column; gap: 12px; }
.ftr__title { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ftr__col a { color: var(--text-2); font-weight: 600; }
.ftr__col a:hover, .ftr__legal a:hover { color: var(--accent); }
.ftr__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 36px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.ftr__legal p { margin: 0; }
.ftr__legal nav { display: flex; flex-direction: column; gap: 8px; }
.ftr__legal a { color: var(--text-2); }
.ftr .granula-credit { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; white-space: nowrap; color: var(--text-3); }
.ftr .granula-credit:hover { color: var(--text); }
.granula-credit img { display: block; height: 12px; width: auto; opacity: .7; transition: opacity .2s; }
.granula-credit:hover img { opacity: 1; }
.ftr::after { content: 'ТРАНСПОРТНЫЙ ЛАЙНЕР'; display: block; margin: clamp(32px, 4vw, 56px) 0 -.18em; font-family: var(--display); font-weight: 700; font-size: min(8.2vw, 122px); line-height: 1; letter-spacing: -.01em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-2); pointer-events: none; }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } .ftr::after { font-size: 8.4vw; } }
@media (max-width: 480px) { .ftr__top { grid-template-columns: 1fr; } }

/* ── Юридические страницы ── */
.legal .crumbs { margin-bottom: 26px; }
.legal .h1 { margin-bottom: 28px; }
.legal p { max-width: 780px; color: var(--body-text); }
.legal__text { max-width: none; } /* юр. страницы — на всю ширину контента (просьба 29.09) */
.legal__text p, .legal__text .plus { max-width: none; }
.legal__text .h3 { margin: 40px 0 16px; }
.legal__text .plus { margin: 0 0 1em; }
.legal__text a { color: var(--accent); }
.legal .muted { color: var(--text-3); }
.nf { min-height: 60vh; }
.nf .btns { margin-top: 32px; }

/* ── Cookie ── */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 18px; max-width: 540px; padding: 16px 16px 16px 22px; background: var(--card); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); font-size: 14px; color: var(--text-2); }
.cookie p { margin: 0; }
.cookie a { color: var(--accent); }
@media (max-width: 520px) { .cookie { right: 16px; flex-direction: column; align-items: stretch; } }

.todo { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}

/* ── Всплывающая форма ── */
html.is-popup { overflow: hidden; }
.popup { width: min(700px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line-2); border-top: 4px solid var(--accent); border-radius: 0; background: var(--form-bg); color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); overflow: auto; }
.popup::backdrop { background: rgba(8, 9, 10, .78); backdrop-filter: blur(6px); }
.popup[open] { animation: popIn .25s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px); } }
.popup__box { position: relative; padding: clamp(24px, 4vw, 44px); }
.popup__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--f-line); background: transparent; color: var(--f-text); cursor: pointer; transition: .2s; }
.popup__close .ic { transform: rotate(45deg); width: 22px; height: 22px; }
.popup__close:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.popup__title { margin: 0 56px 12px 0; font-family: var(--display); font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 600; text-transform: uppercase; }
.popup__lead { margin: 0 0 26px; color: var(--f-muted); }
.popup__phone { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--f-line); color: var(--f-muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.popup__phone a { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: .02em; color: var(--f-text); text-decoration: none; text-transform: none; }
.popup__phone a:hover { color: var(--accent); }


/* ── Логотип (горизонтальная компоновка ТЗ) ── */
.logo__img { height: 46px; width: auto; }
.logo__img--on-light { display: none; }
html[data-theme="light"] .logo__img--on-dark { display: none; }
html[data-theme="light"] .logo__img--on-light { display: block; }
.logo--footer .logo__img { height: 56px; }
@media (max-width: 420px) { .hdr .logo__img { height: 36px; } }

/* ── Переключатель темы ── */
.theme-tgl { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, color .2s; }
.theme-tgl:hover { border-color: var(--accent); color: var(--accent); }
.theme-tgl .ic { width: 20px; height: 20px; }
.theme-tgl .ic--sun { display: none; }
html[data-theme="light"] .theme-tgl .ic--sun { display: block; }
html[data-theme="light"] .theme-tgl .ic--moon { display: none; }
@media (max-width: 1260px) {
  .theme-tgl { margin-left: auto; height: 46px; width: 46px; }
  .theme-tgl + .hdr__call, .hdr__contact + .hdr__call { margin-left: 0; }
}

@media (max-width: 1560px) { .nav__link { padding: 0 10px; font-size: 14px; } .hdr__bar { gap: 16px; } .hdr__contact { gap: 12px; } }
@media (min-width: 1261px) and (max-width: 1400px) { .hdr__phone { display: none; } }

/* ── Фото в карточке офиса ── */
.place__photo { width: 100%; margin: 0 0 10px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--card-2); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.place__photo img { width: 100%; height: 100%; object-fit: cover; }
.place--photo .place__map .ymap { height: 100%; }


/* Полоса фактов под первым экраном в светлой теме — белая */
html[data-theme="light"] .xhero .xfacts { --text: #131517; --text-2: #555d65; --line: rgba(19, 21, 23, .1); --line-2: rgba(19, 21, 23, .14); background: #fff; color: var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; border-bottom: 1px solid var(--line); }

.aud__list a:last-child { border-bottom: 0; }
.aud__card .plus li:last-child { border-bottom: 0; }


/* Кнопка в сетке видов топлива */
.fuels__cta { padding: 8px !important; }
.fuels__cta .btn { width: 100%; height: 100%; }

/* Выбор номера на телефоне */
.callpick { width: min(420px, calc(100vw - 24px)); margin: auto; padding: 16px; border: 1px solid var(--line-2); border-top: 4px solid var(--accent); border-radius: 0; background: var(--card); color: var(--text); }
.callpick::backdrop { background: rgba(8, 9, 10, .7); }
.callpick a { display: flex; align-items: center; gap: 14px; padding: 12px 8px; text-decoration: none; font-family: var(--display); font-size: 24px; border-bottom: 1px solid var(--line); }
.callpick a small { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.callpick a .ic { width: 44px; height: 44px; padding: 11px; background: var(--accent); color: var(--on-accent); flex: none; }
.callpick .btn { width: 100%; margin-top: 12px; }

.hdr__call { border: 0; cursor: pointer; }


/* Знак MAX — цветной, без перекраски */
.ic--max { width: 18px; height: 18px; }
.ccard__ic .ic--max { width: 22px; height: 22px; }

/* ===== Заставка со знаком логотипа (первый заход за сессию) ===== */
.intro { display: none; }
html.tl-intro .intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); clip-path: inset(0 0 0 0); transition: clip-path .7s cubic-bezier(.76, 0, .24, 1) .1s, visibility 0s linear .9s; }
html.tl-intro:not(.tl-ready) body { overflow: hidden; }
html.tl-intro.tl-ready .intro { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; }
.intro__in { display: grid; justify-items: center; gap: 22px; transition: transform .6s cubic-bezier(.76, 0, .24, 1), opacity .45s ease; }
html.tl-ready .intro__in { transform: translateY(-28px); opacity: 0; }
.intro__mark { width: clamp(76px, 9vw, 104px); height: auto; overflow: visible; }
.intro__disc { fill: #ff6800; transform-origin: 127.5px 127.5px; animation: tlDisc .7s cubic-bezier(.2, .8, .2, 1) both; }
.intro__cuts path { fill: none; stroke: var(--bg); stroke-width: 16; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tlCut .45s cubic-bezier(.6, 0, .2, 1) forwards; }
.intro__cuts path:nth-child(1) { animation-delay: .45s; }
.intro__cuts path:nth-child(2) { animation-delay: .62s; }
.intro__cuts path:nth-child(3) { animation-delay: .76s; }
.intro__cuts path:nth-child(4) { animation-delay: .76s; }
.intro__word { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--text); padding-left: .32em; animation: tlUp .6s cubic-bezier(.2, .7, .2, 1) .7s both; }
.intro__bar { width: 132px; height: 2px; background: var(--line); overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; animation: tlBar 1.25s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes tlDisc { from { transform: scale(.35) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tlCut { to { stroke-dashoffset: 0; } }
@keyframes tlBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tlUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tlZoom { from { transform: scale(1.07); } to { transform: none; } }

/* ===== Первый экран: мягкое появление текста и лёгкий наезд фото ===== */
html.tl-anim .xhero__inner > * { animation: tlUp .9s cubic-bezier(.2, .7, .2, 1) both; }
html.tl-anim .xhero__inner > :nth-child(2) { animation-delay: .12s; }
html.tl-anim .xhero__inner > :nth-child(3) { animation-delay: .22s; }
html.tl-anim .xhero__inner > :nth-child(n+4) { animation-delay: .3s; }
html.tl-anim .xhero__media img { animation: tlZoom 1.8s cubic-bezier(.2, .7, .2, 1) both; }
html.tl-intro:not(.tl-ready) .xhero__inner > *, html.tl-intro:not(.tl-ready) .xhero__media img { animation-play-state: paused; }

/* ===== Блоки ниже: появляются при прокрутке (разметку data-rv ставит main.js) ===== */
[data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-d, 0ms); }
[data-rv].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.tl-intro .intro { display: none; }
  html.tl-anim .xhero__inner > *, html.tl-anim .xhero__media img { animation: none; }
  [data-rv] { opacity: 1; transform: none; transition: none; }
}

/* ===== Третий уровень меню: подразделы БМК в выпадающем списке «Системы» ===== */
.dd li { position: relative; }
.dd__more { width: 16px; height: 16px; margin-left: auto; color: var(--text-3); transform: rotate(-90deg); flex: none; }
.dd .dd__sub { position: absolute; left: calc(100% + 9px); top: -9px; min-width: 250px; opacity: 0; visibility: hidden; transform: translateX(-6px); transition: .2s; }
.dd .dd__sub::before { content: ''; position: absolute; right: 100%; top: 0; bottom: 0; width: 12px; }
.dd__has:hover > .dd__sub, .dd__has:focus-within > .dd__sub { opacity: 1; visibility: visible; transform: none; }
.dd__has:hover > a .dd__more { color: var(--accent); }
.dd__sub a { font-size: 14.5px; padding: 12px 14px; }
@media (max-width: 1260px) { .mnav__group a.mnav__sub { padding: 7px 0 7px 16px; border-left: 1px solid var(--line-2); font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-2); } .mnav__group a.mnav__sub[aria-current] { color: var(--accent); border-left-color: var(--accent); } }

.nowrap { white-space: nowrap; }

/* КАЗС: карточка с фото на телефоне — фото целиком сверху, подпись под ним */
@media (max-width: 600px) {
  .config--photo { min-height: 0; }
  .config--photo img { position: static; height: auto; aspect-ratio: 3 / 2; }
}

/* Кнопка «Оставить отзыв…» на узких экранах: не шире колонки, чуть компактнее */
@media (max-width: 600px) {
  .cta-row .btns { flex: 1 1 100%; min-width: 0; }
  .cta-row .btn { font-size: 14.5px; padding-inline: 18px; min-height: 50px; }
}
.stat b em { font-style: normal; }
