/* шрифты Onest и JetBrains Mono — со своего сервера (OFL) */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/onest-400-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: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/onest-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/onest-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/onest-400-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/onest-500-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: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/onest-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/onest-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/onest-500-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/onest-600-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: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/onest-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/onest-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/onest-600-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/onest-700-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: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/onest-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/onest-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/onest-700-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/onest-800-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: 'Onest'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/onest-800-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/onest-800-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/onest-800-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500-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: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
/* ТЭК «Регион 59» — стили сайта */
:root {
  --ink: #0f1318;
  --ink-2: #161b22;
  --ink-3: #222933;
  --steel: #4a5360;
  --paper: #f4f2ec;
  --paper-2: #ebe7dd;
  --white: #fffdf8;
  --line: rgba(15, 19, 24, .12);
  --line-strong: rgba(15, 19, 24, .22);
  --line-dark: rgba(244, 242, 236, .14);
  --muted: #5a6370;
  --muted-dark: #a7adb5;
  --accent: #f3ae1d;          /* золото эмблемы, чуть мягче */
  --accent-hover: #f8be3e;
  --accent-ink: #8a5a00;      /* тёмное золото — для текста и линий на светлом */
  --ok: #2f9e6b;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 48px);
  --head-h: 108px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--paper); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 5px rgba(243, 174, 29, .35); }
::selection { background: var(--accent); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h);
  padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px;
  text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arr { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-3); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.link-arr { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arr svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arr:hover svg { transform: translateX(4px); }

/* ---------- шапка: плавающая плашка с отступом от края ---------- */
.head { position: fixed; inset: 14px 0 auto 0; z-index: 100; height: 80px; pointer-events: none; transition: transform .35s var(--ease); }
.head.is-hidden { transform: translateY(calc(-100% - 20px)); }
.head .wrap { height: 100%; }
.bar {
  pointer-events: auto; height: 100%; display: flex; align-items: center; gap: 14px; padding: 0 12px 0 10px; border-radius: 20px; color: #fff;
  background: rgba(12, 15, 20, .42); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.head.is-solid .bar { background: rgba(251, 249, 244, .94); color: var(--ink); border-color: var(--line); box-shadow: 0 14px 34px -18px rgba(15, 19, 24, .35); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .emblem { width: 68px; height: 68px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .18)); }
.brand b { display: flex; align-items: center; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.brand b em { font-style: normal; margin-left: 7px; padding: 3px 5px 2px; border: 1.5px solid var(--accent); border-radius: 5px; color: var(--accent); font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.head.is-solid .brand b em, .foot .brand b em { color: var(--accent-ink); border-color: var(--accent-ink); }
.brand small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; opacity: .72; line-height: 1.1; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.bar .brand small { display: none; }
.nav a { position: relative; padding: 10px 12px; font-size: 15.5px; font-weight: 500; text-decoration: none; border-radius: 10px; opacity: .9; transition: opacity .2s, background-color .2s; }
.nav a:hover { opacity: 1; background: rgba(127, 127, 127, .16); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
.hphs { display: flex; gap: 6px; flex: none; }
.hph {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; text-decoration: none; border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.hph i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); transition: background-color .2s var(--ease), color .2s var(--ease), transform .25s var(--ease); }
.hph i svg { width: 18px; height: 18px; }
.hph small { display: block; font-size: 12px; line-height: 1.2; opacity: .72; white-space: nowrap; }
.hph b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hph:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.hph:hover i { background: var(--accent); color: var(--ink); transform: rotate(-12deg); }
.hph:active { transform: scale(.98); }
.head.is-solid .hph i { background: var(--ink); color: var(--paper); }
.head.is-solid .hph:hover { background: var(--paper-2); border-color: var(--line); }
.head.is-solid .hph:hover i { background: var(--accent); color: var(--ink); }
.btn-calc { flex: none; }
.burger { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid rgba(127, 127, 127, .4); border-radius: 12px; background: transparent; align-items: center; justify-content: center; flex: none; }
.burger svg { width: 22px; height: 22px; }

.sheet {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--paper); display: flex; flex-direction: column;
  padding: 20px var(--gut) calc(24px + env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s; overflow-y: auto;
}
.sheet.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.sheet-top .burger { display: inline-flex; color: var(--paper); margin: 0; }
.sheet nav { display: grid; margin-top: 28px; border-top: 1px solid var(--line-dark); }
.sheet nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.sheet nav a svg { width: 22px; height: 22px; opacity: .5; }
.sheet-contacts { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.sheet-contacts .tel { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--ink-3); text-decoration: none; }
.sheet-contacts .tel span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.sheet-contacts .tel b { font-size: 18px; }

/* ---------- герой ---------- */
.hero { position: relative; min-height: max(640px, 100svh); max-height: 1080px; color: #fff; background: #1b1e22; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.is-on { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 16, .78) 0%, rgba(10, 12, 16, .5) 38%, rgba(10, 12, 16, .08) 70%),
    linear-gradient(180deg, rgba(10, 12, 16, .55) 0%, rgba(10, 12, 16, 0) 26%, rgba(10, 12, 16, 0) 58%, rgba(10, 12, 16, .82) 100%);
}
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--head-h) + 6vh); padding-bottom: 4vh; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .82); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { margin-top: 22px; max-width: 19ch; font-size: clamp(40px, 6vw, 92px); font-weight: 700; letter-spacing: -.04em; line-height: .98; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 26px; max-width: 560px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .86); }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot { padding-bottom: 28px; }
.hero-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.dir-tel {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 20px; border-radius: 16px;
  background: rgba(15, 19, 24, .52); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  text-decoration: none; transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.dir-tel:hover { background: rgba(15, 19, 24, .7); border-color: rgba(255, 255, 255, .3); }
.dir-tel i { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.dir-tel i svg { width: 22px; height: 22px; }
.dir-tel span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.dir-tel b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.dir-tel em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.dir-tel em svg { width: 18px; height: 18px; }
.coords { text-align: right; color: rgba(255, 255, 255, .55); font-size: 11px; line-height: 1.7; }
.coords b { display: block; color: rgba(255, 255, 255, .85); font-weight: 500; }

/* ---------- страница: внутренний герой ---------- */
.phero { position: relative; color: #fff; background: var(--ink); isolation: isolate; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.phero > picture, .phero > img { position: absolute; inset: 0; z-index: -2; }
.phero picture img, .phero > img { width: 100%; height: 100%; object-fit: cover; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 12, 16, .82) 0%, rgba(10, 12, 16, .45) 50%, rgba(10, 12, 16, .15) 100%), linear-gradient(180deg, rgba(10, 12, 16, .5) 0%, rgba(10, 12, 16, 0) 30%, rgba(10, 12, 16, .75) 100%); }
.phero .wrap { padding-top: calc(var(--head-h) + 70px); padding-bottom: 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255, 255, 255, .7); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.phero h1 { margin-top: 22px; font-size: clamp(38px, 5.2vw, 80px); letter-spacing: -.04em; line-height: 1; max-width: 16ch; }
.phero .hero-lead { max-width: 640px; }
.phero-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.phero-row .dir-tel { min-width: min(100%, 380px); }

/* ---------- секции ---------- */
.sec { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-dark { background: var(--ink); color: var(--paper); }
.sec-dark + .sec, .sec + .sec-dark { border-top: 0; }
.sec-paper2 { background: var(--paper-2); }
.sec-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px var(--gut); align-items: start; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-num { padding-top: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.sec-num::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sec-dark .sec-num { color: var(--muted-dark); }
.sec-head h2 { font-size: clamp(32px, 4vw, 60px); letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; }
.sec-head p { margin-top: 20px; max-width: 640px; font-size: 18px; color: var(--muted); }
.sec-dark .sec-head p { color: var(--muted-dark); }

/* фон тёмных блоков — схема путей станции, как на табло диспетчера */
.sec-dark, .nf { position: relative; isolation: isolate; overflow: hidden; }
.rails-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-composite: intersect; }
.rails-bg svg { width: 100%; height: 100%; display: block; }
.rails-bg .rb-l { fill: none; stroke: rgba(244, 242, 236, .14); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rails-bg .rb-dash { stroke-dasharray: 2 6; stroke: rgba(244, 242, 236, .1); }
.rails-bg .rb-rail { stroke: rgba(244, 242, 236, .17); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.rails-bg .rb-sl { stroke: rgba(244, 242, 236, .07); stroke-width: 13; stroke-dasharray: 2.5 11; }
.rails-bg .rb-sw { fill: rgba(244, 242, 236, .3); }
.rails-bg .rb-sig { fill: #0f1318; stroke: rgba(244, 242, 236, .3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rails-bg .rb-sig.g { fill: rgba(47, 158, 107, .55); stroke: none; }
.rails-bg .rb-sig.o { fill: rgba(243, 174, 29, .7); stroke: none; }
.rails-bg .rb-blink { animation: rbblink 2.4s steps(1) infinite; }
.rails-bg .rb-t { fill: rgba(244, 242, 236, .26); font: 500 12px var(--mono); letter-spacing: .06em; }
.rails-bg .rb-train rect { fill: rgba(243, 174, 29, .24); }
.rails-bg .rb-train rect.loco { fill: rgba(243, 174, 29, .42); }
.rails-bg .rb-train { animation: rbgo 50s linear infinite; }
.rails-bg .rb-train.rev { animation-name: rbback; }
@keyframes rbgo { from { transform: translateX(-700px); } to { transform: translateX(1750px); } }
@keyframes rbback { from { transform: translateX(1750px); } to { transform: translateX(-700px); } }
@keyframes rbblink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }

/* направления */
.dirs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.dir { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.dir-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); }
.dir-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dir:hover .dir-img img { transform: scale(1.04); }
.dir-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 16, 0) 40%, rgba(10, 12, 16, .7) 100%); }
.dir-img .tag { position: absolute; left: 20px; top: 20px; z-index: 1; padding: 6px 10px; border-radius: 8px; background: rgba(15, 19, 24, .6); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dir-img h3 { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; color: #fff; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.03em; }
.dir-body { padding: 28px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.dir-body > p { font-size: 17px; color: var(--muted); }
.ticks { display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-ink); }
.sec-dark .ticks svg { color: var(--accent); }
.dir-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); }
.mgr { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.mgr i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-style: normal; font-weight: 700; }
.mgr span { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.mgr b { display: block; font-size: 17px; white-space: nowrap; }

/* цепочка услуг */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid4.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { padding: 30px 26px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; transition: background-color .3s var(--ease); }
.cell:hover { background: var(--white); }
.cell .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: background-color .3s var(--ease), color .3s var(--ease); }
.cell:hover .ic { background: var(--accent); color: var(--ink); }
.cell .ic svg { width: 24px; height: 24px; }
.cell .mono { display: block; margin-top: 26px; color: var(--muted); }
.cell h3 { margin-top: 8px; font-size: 21px; letter-spacing: -.02em; }
.cell p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* как работаем — путь со станциями */
.track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-top: 42px; }
.track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 10px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(15, 19, 24, .35) 0 3px, transparent 3px 14px);
}
.sec-dark .track::before {
  background:
    linear-gradient(var(--paper), var(--paper)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 100% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(244, 242, 236, .35) 0 3px, transparent 3px 14px);
}
.track .train { position: absolute; top: 9px; left: 0; width: 64px; height: 18px; border-radius: 4px; background: var(--accent); box-shadow: -18px 0 0 -2px var(--accent), -36px 0 0 -2px var(--accent); transform: translateX(var(--tx, 0)); transition: transform 1.6s var(--ease); }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -37px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.sec-dark .step::before { background: var(--ink); border-color: var(--paper); }
.step .mono { color: var(--muted); }
.sec-dark .step .mono { color: var(--muted-dark); }
.step h3 { margin-top: 10px; font-size: 22px; letter-spacing: -.02em; }
.step p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.sec-dark .step p { color: var(--muted-dark); }

/* грузы */
.cargo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cg { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #fff; aspect-ratio: 4 / 3.4; isolation: isolate; }
.cg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 16, .05) 30%, rgba(10, 12, 16, .85) 100%); }
.cg:hover img { transform: scale(1.05); }
.cg .in { position: absolute; inset: auto 0 0 0; padding: 24px; }
.cg .mono { color: rgba(255, 255, 255, .7); }
.cg h3 { margin-top: 8px; font-size: 25px; letter-spacing: -.02em; }
.cg p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .8); line-height: 1.5; }

.cg-cta { background: var(--accent); color: var(--ink); }
.cg-cta::before { display: none; }
.cg-cta .mono { color: rgba(15, 19, 24, .7); }
.cg-cta p { color: rgba(15, 19, 24, .8); }

/* подвижной состав */
.stock { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); align-items: start; }
.stock-tabs { display: grid; gap: 8px; position: sticky; top: calc(var(--head-h) + 24px); }
.stock-tabs button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s;
}
.stock-tabs button b { font-size: 18px; letter-spacing: -.01em; }
.stock-tabs button span { grid-column: 1; font-size: 13px; color: var(--muted); }
.stock-tabs button i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.stock-tabs button i svg { width: 14px; height: 14px; }
.stock-tabs button:hover { border-color: var(--line-strong); background: var(--white); }
.stock-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stock-tabs button[aria-selected="true"] span { color: var(--muted-dark); }
.stock-tabs button[aria-selected="true"] i { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.stock-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); }
.stock-panel[hidden] { display: none; }
.stock-panel h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.03em; }
.stock-panel .model { margin-top: 8px; color: var(--muted); }
.drw-box { margin: 28px 0 8px; padding: 26px 18px 10px; border-radius: 14px; background: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; background-position: -1px -1px; }
.drw { width: 100%; height: auto; color: var(--ink); overflow: visible; }
.drw .b { fill: var(--white); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.drw .c { fill: var(--white); }
.drw .door { fill: var(--paper-2); }
.drw .f { fill: currentColor; }
.drw .t { stroke: currentColor; stroke-width: 1; }
.drw .g { stroke: currentColor; stroke-width: .6; opacity: .4; }
.drw .g2 { fill: none; stroke: currentColor; stroke-width: .8; }
.drw .rail { stroke: currentColor; stroke-width: 2.2; }
.drw .ground { stroke-dasharray: 2 4; stroke-width: 1.4; }
.drw .dim line { stroke: var(--accent-ink); stroke-width: 1; }
.drw .dim text { font: 500 11px var(--mono); fill: var(--ink); letter-spacing: .02em; }
.drw .dimbg { fill: var(--paper); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid var(--line); }
.specs div { padding: 16px 16px 4px 0; }
.specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 6px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stock-panel .for { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.stock-panel .for b { color: var(--ink); font-weight: 600; }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* принципы */
.princ { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gut); align-items: stretch; }
.princ-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line-dark); }
.pr { padding: 30px 26px 34px 0; border-bottom: 1px solid var(--line-dark); }
.pr:nth-child(odd) { padding-right: 28px; border-right: 1px solid var(--line-dark); }
.pr:nth-child(even) { padding-left: 28px; }
.pr .n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.pr h3 { margin-top: 18px; font-size: 24px; letter-spacing: -.02em; }
.pr p { margin-top: 12px; color: var(--muted-dark); font-size: 16px; }
.seal { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; isolation: isolate; display: flex; align-items: flex-end; }
.seal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.seal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 16, 0) 35%, rgba(10, 12, 16, .88) 100%); }
.seal .in { padding: 28px; }
.seal .mono { color: var(--accent); }
.seal p { margin-top: 10px; font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }

/* география */
.geo { position: relative; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); overflow: hidden; padding: clamp(18px, 3vw, 36px); }
.geo svg { width: 100%; height: auto; }
.geo .ln { fill: none; stroke: var(--steel); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.geo .run { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 22; animation: run 2.4s linear infinite; }
@keyframes run { to { stroke-dashoffset: -64; } }
.geo .st { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
.geo .port { fill: var(--paper); }
.geo .home { fill: var(--accent); }
.geo .halo { fill: var(--accent); opacity: .25; transform-origin: center; transform-box: fill-box; animation: halo 2.6s var(--ease) infinite; }
@keyframes halo { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.4); opacity: 0; } }
.geo text { font-family: var(--font); font-size: 17px; font-weight: 600; fill: var(--paper); }
.geo text.sm { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; fill: var(--muted-dark); text-transform: uppercase; }
.geo text.big { font-size: 24px; font-weight: 800; }
.geo-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; color: var(--muted-dark); font-size: 14px; }
.geo-legend span { display: inline-flex; gap: 8px; align-items: center; }
.geo-legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--paper); }
.geo-legend i.p { background: var(--paper); }
.geo-legend i.h { background: var(--accent); border-color: var(--accent); }
.geo-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gut); align-items: center; }
.geo-side h3 { font-size: 28px; letter-spacing: -.03em; }
.geo-side p { margin-top: 14px; color: var(--muted); }
.geo-side .ticks { margin-top: 22px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); align-items: start; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 0; cursor: pointer; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .3s var(--ease), background-color .25s, border-color .25s; }
.qa summary i svg { width: 16px; height: 16px; }
.qa details[open] summary i { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.qa .ans { padding: 0 60px 26px 0; color: var(--muted); font-size: 17px; }
.qa .ans p + p { margin-top: 10px; }

/* заявка */
.lead-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gut); align-items: start; }
.lead-side h2 { font-size: clamp(34px, 4vw, 60px); letter-spacing: -.035em; line-height: 1.02; }
.lead-side > p { margin-top: 20px; color: var(--muted-dark); font-size: 18px; max-width: 460px; }
.lead-contacts { margin-top: 36px; display: grid; gap: 12px; max-width: 460px; }
.lc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 20px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-dark); }
.lc .mono { color: var(--muted-dark); }
.lc b { font-size: 20px; }
.lc a { text-decoration: none; }
.lc .who { grid-column: 1; color: var(--muted-dark); font-size: 14px; }
.lc .who a { text-decoration: underline; text-decoration-color: rgba(244, 242, 236, .3); }
.lc .call { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.lc .call svg { width: 20px; height: 20px; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); }
.form h3 { font-size: 26px; letter-spacing: -.02em; }
.form .sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 24px; padding: 5px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 10px; font-weight: 600; font-size: 15px; text-align: center; line-height: 1.2; transition: background-color .2s, color .2s; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.fld { display: grid; gap: 6px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-size: 14px; font-weight: 500; color: var(--ink); }
.fld label i { color: var(--accent-ink); font-style: normal; }
.fld input, .fld textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.fld textarea { min-height: 104px; resize: vertical; }
.fld input:hover, .fld textarea:hover { border-color: rgba(15, 19, 24, .4); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243, 174, 29, .25); }
.fld .err { display: none; font-size: 13px; color: #b42318; }
.fld.is-bad input { border-color: #b42318; }
.fld.is-bad .err { display: block; }
.agree { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 14px; font-weight: 400 !important; color: var(--muted) !important; line-height: 1.45; align-items: start; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.agree a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }
.agree a:hover { text-decoration-color: var(--accent); }
.agree i { color: var(--accent-ink); font-style: normal; }
.agree-box.is-bad .agree input { outline: 2px solid #b42318; outline-offset: 2px; border-radius: 4px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 20px; }
.form-foot .btn { min-width: 220px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.form-msg.ok { display: block; background: rgba(47, 158, 107, .12); color: #1d6b47; }
.form-msg.bad { display: block; background: rgba(180, 35, 24, .1); color: #8f1d14; }
.form.is-sent .fields, .form.is-sent .seg, .form.is-sent .form-foot { display: none; }
.done { display: none; padding: 30px 0 8px; }
.form.is-sent .done { display: block; }
.done i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.done i svg { width: 26px; height: 26px; }
.done h4 { margin-top: 18px; font-size: 24px; letter-spacing: -.02em; }
.done p { margin-top: 8px; color: var(--muted); }
.btn.is-busy { pointer-events: none; opacity: .7; }
.btn .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-busy .spin { display: block; }
.btn.is-busy svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* вводный блок: текст + фото и цифры */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.intro .prose { max-width: none; }
.intro-aside { display: grid; gap: 12px; position: sticky; top: calc(var(--head-h) + 20px); }
.intro-img { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); }
.intro-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.intro-img:hover img { transform: scale(1.04); }
.intro-img figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 11px; border-radius: 9px; background: rgba(15, 19, 24, .62); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.intro-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0; }
.intro-facts div { padding: 20px 18px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.intro-facts div::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 3px; background: var(--accent); }
.intro-facts div:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.intro-facts dt { font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.intro-facts dd { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.intro-mgrs { display: grid; gap: 10px; }
.intro-mgr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.intro-mgr .mono { color: var(--muted); }
.intro-mgr b { font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.intro-mgr small { font-size: 14px; color: var(--muted); }
.intro-mgr i { grid-column: 2; grid-row: 1 / span 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: background-color .2s, color .2s, transform .25s var(--ease); }
.intro-mgr i svg { width: 20px; height: 20px; }
.intro-mgr:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.intro-mgr:hover i { background: var(--accent); color: var(--ink); transform: rotate(-12deg); }

/* текстовые блоки внутренних страниц */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gut); align-items: start; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); max-width: 70ch; }
.prose p + p { margin-top: 18px; }
.prose .lead { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.45; letter-spacing: -.015em; font-weight: 500; }
.prose ul { margin-top: 18px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 12px; height: 2px; background: var(--accent); }
.sticky { position: sticky; top: calc(var(--head-h) + 24px); }
.kv { display: grid; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; word-break: break-word; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.fact { padding: 28px 24px 8px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.fact b { display: block; font-size: clamp(38px, 4vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 12px; color: var(--muted-dark); font-size: 15px; }
.quote { font-size: clamp(30px, 4.2vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; max-width: 20ch; }
.quote em { font-style: normal; color: var(--accent); }
.media-wide { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--ink-3); }
.media-wide img { width: 100%; height: 100%; object-fit: cover; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.card h3 { font-size: 26px; letter-spacing: -.02em; }
.card p { margin-top: 12px; color: var(--muted); }
.card .ticks { margin-top: 20px; }
.img-card { border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; background: var(--ink-3); }
.img-card img { width: 100%; height: 100%; object-fit: cover; }
.ctable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ctable th, .ctable td { text-align: left; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: top; }
.ctable th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ctable td:first-child { font-weight: 600; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.checklist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.checklist li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.checklist li i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--mono); font-style: normal; font-size: 12px; }
.checklist li b { display: block; }
.checklist li span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* крупная эмблема: «О компании», «Контакты» */
.emblem-wrap { position: relative; display: grid; place-items: center; isolation: isolate; }
.emblem-wrap::before { content: ""; position: absolute; z-index: -1; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(243, 174, 29, .34) 0%, rgba(243, 174, 29, .1) 45%, transparent 70%); }
.emblem-wrap.light::before { background: radial-gradient(circle at 50% 55%, rgba(243, 174, 29, .26) 0%, rgba(243, 174, 29, .08) 45%, transparent 70%); }
.emblem-big { width: min(100%, 320px); height: auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .35)); transition: transform .6s var(--ease); }
.emblem-wrap.light .emblem-big { width: min(100%, 240px); filter: drop-shadow(0 14px 28px rgba(60, 30, 0, .18)); }
.emblem-wrap:hover .emblem-big { transform: rotate(-3deg) scale(1.03); }
.about-brand { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); align-items: center; }
.contact-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gut); align-items: center; }

/* контакты */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ccard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 18px; align-content: start; }
.ccard .mono { color: var(--muted); }
.ccard h3 { font-size: 26px; letter-spacing: -.02em; }
.ccard .big { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.ccard .row { display: flex; flex-wrap: wrap; gap: 10px; }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: var(--ink); color: var(--paper); display: grid; place-items: center; text-align: center; padding: 28px; isolation: isolate; }
.map::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 40px 40px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-live { min-height: 460px; }
.map-canvas { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .6s var(--ease); }
.map-live.is-ready .map-canvas { opacity: 1; }
.map-live.is-ready .map-fallback { visibility: hidden; }
.map .pin { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.map .pin svg { width: 26px; height: 26px; }
.map h3 { margin-top: 18px; font-size: 26px; }
.map p { margin-top: 8px; color: var(--muted-dark); }
.map .row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.req-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.req-head h2 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; }

/* подвал — светлый, отдельно от тёмного блока заявки */
.foot { background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--line-strong); padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 28px, transparent 28px 40px); opacity: .9; }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px var(--gut); }
.foot .brand small { opacity: .65; }
.foot .brand .emblem { width: 76px; height: 76px; filter: none; }
.foot-about { margin-top: 20px; color: var(--muted); font-size: 15px; max-width: 340px; }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.foot ul { display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent-ink); }
.foot .ft-tel { font-size: 19px; font-weight: 600; }
.foot .ft-sub { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.foot-req { font-size: 14px; color: var(--muted); line-height: 1.7; }
.foot-req a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--muted); font-size: 13px; }

/* документы: политика и согласие */
.doc .prose h2 { margin-top: 40px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; }
.doc .prose { max-width: 80ch; }
.doc-table { min-width: 760px; }
.doc-table td { font-size: 15px; line-height: 1.5; }
.doc-table td:not(:first-child) { font-weight: 400; }
.foot-bottom a, .linkbtn { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; }
.foot-bottom a:hover, .linkbtn:hover { color: var(--accent-ink); }

/* уведомление о cookie */
.cookie {
  position: fixed; z-index: 120; left: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); padding: 20px 20px 18px; border-radius: 18px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(15, 19, 24, .45);
  opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.in { opacity: 1; transform: none; }
.cookie p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie p a { color: var(--ink); }
.cookie-btns { display: flex; gap: 8px; margin-top: 14px; }
.cookie-btns .btn { flex: 1; }

/* нижняя панель на телефоне */
.mbar { display: none; }

/* появление */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--paper); padding: 120px var(--gut) 60px; }
.nf b { display: block; font-size: clamp(120px, 22vw, 280px); font-weight: 800; letter-spacing: -.06em; line-height: .85; color: var(--accent); }
.nf h1 { margin-top: 20px; font-size: clamp(28px, 3vw, 40px); }
.nf p { margin: 14px auto 0; max-width: 480px; color: var(--muted-dark); }
.nf .row { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- адаптив ---------- */
@media (max-width: 1365px) {
  .bar .nav { display: none; }
  .bar .burger { display: inline-flex; margin-left: 4px; }
  .hphs { margin-left: auto; }
}
@media (max-width: 900px) {
  .hph { gap: 8px; padding-right: 10px; }
  .hph i { width: 34px; height: 34px; }
  .hph b { font-size: 15px; }
  .hph small { font-size: 11px; }
}
@media (max-width: 780px) { .hphs { display: none; } .bar .burger { margin-left: auto; } }
@media (max-width: 1080px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cargo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock { grid-template-columns: minmax(0, 1fr); }
  .stock-tabs { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .princ { grid-template-columns: minmax(0, 1fr); }
  .geo-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-grid, .split, .faq, .intro { grid-template-columns: minmax(0, 1fr); }
  .about-brand { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .about-brand .emblem-big { width: 220px; }
  .intro-aside { position: static; }
  .sticky { position: static; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .coords { display: none; }
}
@media (max-width: 820px) {
  :root { --head-h: 84px; }
  .head { inset: 10px 0 auto 0; height: 64px; }
  .bar { border-radius: 16px; padding: 0 8px 0 10px; }
  body { font-size: 16px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .brand .emblem { width: 52px; height: 52px; }
  .brand b { font-size: 16px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sec-num { padding-top: 0; }
  .dirs, .duo, .contacts { grid-template-columns: minmax(0, 1fr); }
  .track { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 0; padding-left: 44px; }
  .track::before {
    left: 13px; right: auto; top: 0; bottom: 0; width: 10px; height: auto;
    background:
      linear-gradient(var(--ink), var(--ink)) 0 0 / 2px 100% no-repeat,
      linear-gradient(var(--ink), var(--ink)) 100% 0 / 2px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(15, 19, 24, .35) 0 3px, transparent 3px 14px);
  }
  .sec-dark .track::before {
    background:
      linear-gradient(var(--paper), var(--paper)) 0 0 / 2px 100% no-repeat,
      linear-gradient(var(--paper), var(--paper)) 100% 0 / 2px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(244, 242, 236, .35) 0 3px, transparent 3px 14px);
  }
  .track .train { display: none; }
  .step::before { top: 4px; left: -40px; }
  .hero { min-height: max(600px, 100svh); }
  .hero-media img, .hero-media video { object-position: 38% 62%; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 12, 16, .7) 0%, rgba(10, 12, 16, .35) 45%, rgba(10, 12, 16, .3) 62%, rgba(10, 12, 16, .9) 100%); }
  .hero-body { justify-content: flex-start; padding-top: calc(var(--head-h) + 40px); }
  .hero-foot .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dir-tel { padding: 12px 14px; }
  .dir-tel b { font-size: 17px; }
  .dir-tel i { width: 38px; height: 38px; }
  .princ-list { grid-template-columns: minmax(0, 1fr); }
  .pr:nth-child(odd), .pr:nth-child(even) { padding: 24px 0; border-right: 0; }
  .qa summary { font-size: 18px; padding: 20px 0; }
  .qa .ans { padding-right: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .checklist { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kv div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .media-wide { aspect-ratio: 4 / 3; }
  .phero { min-height: 72svh; }
  .phero .wrap { padding-top: calc(var(--head-h) + 48px); padding-bottom: 36px; }
  .mbar {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(15, 19, 24, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-dark); transition: transform .3s var(--ease);
  }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; border-radius: 12px; text-decoration: none; color: var(--paper); background: var(--ink-3); font-size: 12px; line-height: 1.15; font-weight: 600; text-align: center; }
  .mbar a span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); font-weight: 500; }
  .mbar a.go { background: var(--accent); color: var(--ink); font-size: 14px; }
  .mbar.is-off { transform: translateY(110%); }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .cookie { left: 10px; right: 10px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .contact-head { grid-template-columns: minmax(0, 1fr); }
  .contact-head .emblem-wrap { justify-self: start; }
  .emblem-wrap.light .emblem-big { width: 170px; }
  .rails-bg { bottom: auto; height: min(100%, 520px); }
}
@media (max-width: 560px) {
  .grid4, .grid4.g3, .cargo { grid-template-columns: minmax(0, 1fr); }
  .stock-tabs { grid-template-columns: minmax(0, 1fr); }
  .seg span { font-size: 14px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .brand small { display: none; }
  .cg { aspect-ratio: 4 / 3.6; }
  .form-foot .btn { width: 100%; }
}
@media (max-width: 1080px) and (min-width: 561px) {
  .intro-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .intro-img { aspect-ratio: auto; min-height: 300px; }
  .intro-facts, .intro-mgrs { align-content: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .rails-bg .rb-train, .rails-bg .rb-blink { animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
@media print {
  .head, .mbar, .hero-media, .sheet, .form { display: none !important; }
  body { padding: 0; background: #fff; }
}
