@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/golos-text-400_600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/golos-text-400_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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-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: 'Oswald';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/oswald-400_600-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 600;
  font-display: swap;
  src: url(/assets/fonts/oswald-400_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;
}
/* БМГТ · cfa-port.ru — морская карта и лист условий выпуска */
:root {
  --night: #071a26;
  --deep: #04121b;
  --panel: #0c2636;
  --ice: #eaf0f3;
  --snow: #f7fafb;
  --mist: #dce6eb;
  --ink: #0b1b25;
  --ink-2: #2b4352;
  --ink-3: #4a6272;
  --line: #c3d1d9;
  --on-dark: #d5e0e6;
  --on-dark-2: #9db4c1;
  --line-dark: rgba(157, 180, 193, 0.28);
  --accent: #f0552a;
  --accent-ink: #b8380f;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --text: 'Golos Text', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5.5vw, 80px);
  --gap-section: clamp(64px, 8vw, 120px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; scrollbar-color: #47677a var(--deep); }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ice);
  caret-color: var(--accent);
  overflow-wrap: break-word;
}
::selection { background: var(--accent); color: var(--night); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 10; padding: 12px 20px; background: var(--accent); color: var(--night); font-weight: 600; }
.skip:focus { left: 0; }
.wrap { max-width: 1120px; margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ——— служебная полоса и шапка ——— */
.strip { background: var(--deep); color: var(--on-dark-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px var(--pad); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 6px 32px; justify-content: space-between; }
.strip b { font-weight: 500; color: var(--accent); }

.head { background: var(--night); color: #fff; padding: 0 var(--pad); border-bottom: 1px solid var(--line-dark); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 40px; min-height: 76px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.logo strong { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: 0.06em; }
.logo span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-2); line-height: 1.3; }
.nav { display: flex; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-dark); border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.head-side { display: flex; align-items: center; gap: 12px 24px; }
.tel { font-family: var(--mono); font-size: 15px; text-decoration: none; color: #fff; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-dark); border-radius: 2px; background: none; color: #fff; cursor: pointer; }
.burger svg { margin: auto; }

/* ——— кнопки ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 1px solid transparent; border-radius: 2px; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.btn-accent { background: var(--accent); color: var(--night); }
.btn-accent:hover { background: #ff7048; }
.btn-ghost { border-color: rgba(213, 224, 230, 0.5); color: #fff; font-weight: 500; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-ink { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.btn-ink:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.more::after, .next a::after, .mats a::after { content: ''; width: 18px; height: 10px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 0.3s var(--ease); }
.more:hover::after, .next a:hover::after, .mats a:hover::after { transform: translateX(5px); }

/* ——— секции ——— */
.sec { padding: var(--gap-section) var(--pad); }
.sec-snow { background: var(--snow); }
.sec-mist { background: var(--mist); }
.sec-dark { background: var(--night); color: #fff; }
.sec-dark p { color: var(--on-dark); }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.08; text-transform: uppercase; }
.h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; text-transform: uppercase; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 36em; }
.prose { max-width: 42em; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.sec-dark .prose strong { color: #fff; }
.split { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-end; }
.split > :first-child { flex: 999 1 480px; min-width: 0; }
.split > :last-child { flex: 1 1 360px; min-width: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.cols > .main { flex: 999 1 560px; min-width: 0; }
.cols > .side { flex: 1 1 340px; min-width: 0; }
.cols > .half { flex: 1 1 440px; min-width: 0; }
.mt { margin-top: clamp(40px, 5vw, 72px); }
.mt-s { margin-top: 28px; }
.note { font-size: 15px; color: var(--ink-3); max-width: 46em; }
.sec-dark .note { color: var(--on-dark-2); }

/* ——— первый экран ——— */
.hero { background: var(--night); color: #fff; padding: clamp(48px, 6vw, 88px) var(--pad) 0; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.hero-text { flex: 999 1 520px; min-width: 0; padding-bottom: clamp(40px, 5vw, 72px); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.04; letter-spacing: 0.005em; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 0; color: var(--on-dark); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-chart { flex: 0 1 440px; padding-bottom: 32px; min-width: 0; color: var(--accent); }
.route { stroke-dasharray: 2 9; }
@media (prefers-reduced-motion: no-preference) {
  .route-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s var(--ease) 0.3s forwards; }
  .ring { transform-origin: 186px 418px; animation: ring 3.2s ease-out 0.6s infinite; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }
.terms { border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; }
.terms div { flex: 1 1 220px; padding: 24px 24px 32px 0; }
.terms dt { font-size: 14px; color: var(--on-dark-2); }
.terms dd { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ——— заголовок внутренней страницы ——— */
.phead { background: var(--night); color: #fff; padding: clamp(40px, 5vw, 72px) var(--pad) clamp(48px, 6vw, 88px); }
.crumbs { font-size: 14px; color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--on-dark); }
.phead h1 { margin-top: 28px; font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5.6vw, 80px); line-height: 1.06; text-transform: uppercase; max-width: 17em; }
.phead .lead { margin-top: 28px; color: var(--on-dark); }

/* ——— цепочка «карьер → порты» ——— */
.chain { display: flex; flex-wrap: wrap; gap: 40px 0; }
.chain li { flex: 1 1 240px; min-width: 0; }
.chain .rail { display: flex; align-items: center; height: 38px; }
.chain .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); flex: none; }
.chain .dot-hot { width: 26px; height: 26px; background: var(--accent); box-shadow: 0 0 0 6px rgba(240, 85, 42, 0.2); }
.chain .dot-end { border-radius: 0; background: none; border: 2px solid var(--ink); transform: rotate(45deg); }
.chain .seg { flex: 1; height: 2px; background: var(--ink); }
.chain .seg-sea { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 12px); }
.chain .seg-none { background: none; }
.chain .body { padding: 12px 28px 0 0; }
.chain .h3 { font-size: 30px; }
.chain p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.chain .fact { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink); }

/* ——— иллюстрации ——— */
.shot { background: var(--mist); }
.shot img { width: 100%; object-fit: cover; }
.shot figcaption { padding: 12px 0 0; font-size: 14px; color: var(--ink-3); background: var(--ice); }
.sec-snow .shot figcaption { background: var(--snow); }
.shot-wide { max-width: 1090px; margin-inline: auto; }
.shot-wide img { aspect-ratio: 21 / 8; }
.shot-center { max-width: 800px; margin-inline: auto; }
.shot-map img { aspect-ratio: 9 / 7; }

/* ——— таблица-лист ——— */
.sheet { border-top: 2px solid var(--ink); }
.sheet > div { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sheet dt { color: var(--ink-3); max-width: 30em; }
.sheet dt small { display: block; font-size: 14px; }
.sheet dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.sec-dark .sheet { border-top-color: #fff; }
.sec-dark .sheet > div { border-bottom-color: var(--line-dark); }
.sec-dark .sheet dt { color: var(--on-dark-2); }

.status { align-self: flex-start; background: var(--night); color: #fff; padding: 36px 32px 40px; }
.status .flag { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--on-dark-2); }
.status .flag::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.status .h3 { margin-top: 16px; font-size: 32px; }
.status p { margin-top: 16px; font-size: 16px; color: var(--on-dark); }
.status .btn { width: 100%; margin-top: 28px; }

/* ——— формула ——— */
.big { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 8.4vw, 96px); line-height: 1; text-transform: uppercase; }
.big em { font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; }
.formula { border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; }
.formula li { flex: 1 1 200px; padding: 28px 16px 0 0; }
.formula li.op { flex: 0 0 56px; font-family: var(--display); font-size: 48px; line-height: 1.1; color: #6f8a99; padding-right: 0; }
.formula b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(36px, 3.6vw, 52px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.formula span { display: block; margin-top: 8px; font-size: 15px; color: var(--on-dark-2); max-width: 16em; }

/* ——— строки с заголовком и текстом ——— */
.rows { border-top: 2px solid var(--ink); }
.rows > li, .rows > div { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows .h3 { flex: 1 1 300px; }
.rows .txt { flex: 2 1 440px; min-width: 0; color: var(--ink-2); }
.rows .txt p + p { margin-top: 0.8em; }
.rows .txt strong { color: var(--ink); }
.rows .num { flex: 0 0 64px; font-family: var(--display); font-weight: 500; font-size: 38px; color: var(--accent-ink); line-height: 1.1; }
.sec-dark .rows { border-top-color: #fff; }
.sec-dark .rows > li { border-bottom-color: var(--line-dark); }
.sec-dark .rows .txt { color: var(--on-dark); }
.sec-dark .rows .num { color: var(--accent); }

/* ——— шаги ——— */
.steps { display: flex; flex-wrap: wrap; gap: 32px 0; counter-reset: step; }
.steps li { flex: 1 1 250px; min-width: 0; border-top: 2px solid var(--ink); padding: 20px 28px 0 0; counter-increment: step; }
.steps li::before { content: 'Шаг ' counter(step); font-size: 14px; color: var(--ink-3); }
.steps b { display: block; margin-top: 8px; font-weight: 600; font-size: 20px; line-height: 1.3; }
.steps p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ——— материалы и переход дальше ——— */
.mats { border-top: 2px solid var(--ink); }
.mats li { border-bottom: 1px solid var(--line); }
.mats a { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; min-height: 72px; padding: 14px 0; text-decoration: none; }
.mats a b { flex: 1 1 260px; font-weight: 600; font-size: 19px; }
.mats a span { flex: 2 1 320px; font-size: 15px; color: var(--ink-3); }
.mats a:hover b { text-decoration: underline; text-underline-offset: 0.2em; }
.next { background: var(--mist); padding: clamp(40px, 5vw, 64px) var(--pad); }
.next a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; text-decoration: none; }
.next small { flex: 1 1 100%; font-size: 15px; color: var(--ink-3); }
.next b { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 54px); line-height: 1.1; text-transform: uppercase; }
.next a::after { width: 44px; height: 24px; color: var(--accent-ink); }

/* ——— списки и таблицы данных ——— */
.ticks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); max-width: 46em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 24px; width: 18px; height: 2px; background: var(--accent-ink); }
.sec-dark .ticks li { border-bottom-color: var(--line-dark); color: var(--on-dark); }
.sec-dark .ticks li::before { background: var(--accent); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data caption { caption-side: bottom; text-align: left; padding-top: 14px; font-size: 14px; color: var(--ink-3); }
.data th, .data td { padding: 16px 16px 16px 0; text-align: right; border-bottom: 1px solid var(--line); font-weight: 400; }
.data th:first-child, .data td:first-child { text-align: left; }
.data thead th { font-size: 14px; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.data td:not(:first-child), .data tbody th:not(:first-child) { font-family: var(--mono); font-size: 16px; }
.data .total td, .data .total th { font-weight: 600; border-bottom: 2px solid var(--ink); }

/* ——— столбчатые графики ——— */
.bars { display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 28px); height: 300px; border-bottom: 2px solid var(--ink); }
.bars li { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; }
.bars b { font-family: var(--mono); font-weight: 500; font-size: clamp(13px, 1.4vw, 16px); padding-bottom: 6px; font-variant-numeric: tabular-nums; }
.bars i { display: block; background: var(--ink); }
.bars .hot i { background: var(--accent); }
.bars-x { display: flex; gap: clamp(8px, 2vw, 28px); margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.bars-x li { flex: 1; text-align: center; }
.bars-neg { height: 120px; border: 0; align-items: flex-start; }
.bars-neg li { justify-content: flex-start; }
.bars-neg b { padding: 6px 0 0; color: var(--accent-ink); }
.bars-neg i { background: repeating-linear-gradient(135deg, var(--accent-ink) 0 3px, transparent 3px 6px); }
.chart-title { font-weight: 600; font-size: 19px; }
.chart-sub { font-size: 14px; color: var(--ink-3); margin: 4px 0 24px; }

/* ——— заявка ——— */
.start { background: var(--night); color: #fff; padding: var(--gap-section) var(--pad); }
.start .h2 { font-size: clamp(38px, 5.4vw, 78px); line-height: 1.05; }
.start .h2 em { font-style: normal; color: var(--accent); }
.start-tel { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 15px; color: var(--on-dark-2); }
.start-tel a { display: inline-block; margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.6vw, 52px); text-decoration: none; color: #fff; }
.form { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; color: var(--on-dark); }
.field input { height: 56px; padding: 0 16px; font: inherit; font-size: 17px; color: #fff; background: var(--panel); border: 1px solid #47677a; border-radius: 2px; transition: border-color 0.2s var(--ease); }
.field input:hover { border-color: #6f8a99; }
.field input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field input::placeholder { color: #8fa7b5; }
.field input[aria-invalid="true"] { border-color: #ff8a66; }
.field .err { font-size: 14px; color: #ffb199; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--on-dark); min-height: 44px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.form-msg { font-size: 15px; color: #ffb199; }
.form-msg:empty { display: none; }
.form-done { border: 1px solid var(--line-dark); padding: 32px; max-width: 480px; }
.form-done .h3 { color: #fff; }
.form-done p { margin-top: 12px; color: var(--on-dark); }

/* ——— подвал ——— */
.foot { background: var(--deep); color: var(--on-dark-2); padding: 40px var(--pad) 48px; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; }
.foot strong { display: block; font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0.06em; color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 28px; align-content: flex-start; max-width: 560px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-dark); }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot .legal { flex: 1 1 100%; max-width: 62em; padding-top: 24px; border-top: 1px solid rgba(157, 180, 193, 0.2); }

.mbar { display: none; }

/* ——— 404 ——— */
.nf { background: var(--night); color: #fff; padding: clamp(64px, 10vw, 140px) var(--pad); min-height: 60vh; }
.nf .code { font-family: var(--mono); color: var(--accent); }
.nf h1 { margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 84px); line-height: 1.05; text-transform: uppercase; max-width: 14em; }
.nf p { margin-top: 24px; color: var(--on-dark); max-width: 34em; }
.nf ul { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nf li a { display: inline-flex; align-items: center; min-height: 44px; }

/* ——— узкие экраны ——— */
@media (max-width: 900px) {
  .burger { display: grid; }
  .head .wrap { min-height: 64px; }
  .head-side .tel, .head-side .btn { display: none; }
  .nav { display: none; flex: 1 1 100%; flex-direction: column; gap: 0; padding: 4px 0 20px; font-size: 18px; }
  .nav a { min-height: 52px; border-bottom: 1px solid var(--line-dark); }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .nav .nav-tel { font-family: var(--mono); }
  .js .nav[data-open="true"], html:not(.js) .nav { display: flex; }
  .logo span { display: none; }
  body { padding-bottom: 68px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--deep); border-top: 1px solid var(--line-dark); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mbar a { flex: 1; min-height: 50px; padding: 0 10px; font-size: 15px; }
  .chain .rail { display: none; }
  .chain { gap: 0; border-top: 2px solid var(--ink); }
  .chain li { flex-basis: 100%; border-bottom: 1px solid var(--line); padding: 8px 0 20px; }
  .formula li.op { flex: 0 0 100%; padding-top: 12px; font-size: 32px; }
  .formula li { flex-basis: 100%; padding-top: 12px; }
  .formula { padding-top: 12px; }
  .sheet dd { text-align: left; flex-basis: 100%; }
  .steps li { flex-basis: 100%; }
  .shot-wide img { aspect-ratio: 16 / 9; }
  .hero-chart { max-width: 420px; margin-inline: auto; }
  .bars { height: 220px; }
  .bars-neg { height: 88px; }
  .terms div { flex: 1 1 150px; padding: 18px 16px 22px 0; }
  .data { min-width: 480px; }
}
@media (min-width: 901px) { .nav .nav-tel { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .head, .strip, .mbar, .start, .next { display: none; } body { background: #fff; } }

/* ——— широкий экран: шапки секций по центру, боковая колонка прилипает ——— */
@media (min-width: 901px) {
  .wrap > .h2, .wrap > .big, .wrap > .h3, .wrap > .lead, .wrap > .note, .split, .phead .wrap { text-align: center; }
  .wrap > .lead, .wrap > .note, .phead .lead { margin-inline: auto; max-width: 40em; }
  .wrap > .h2, .wrap > .big, .split > .h2 { max-width: 22em; margin-inline: auto; }
  .phead h1 { max-width: 18em; margin-inline: auto; }
  .crumbs { justify-content: center; }
  .split { display: block; }
  .split > .prose { max-width: 720px; margin: 28px auto 0; }
  .split > div.prose { text-align: left; }
  .wrap > .ticks { max-width: 760px; margin-inline: auto; }
  .wrap > .mt-s > .more { margin-inline: auto; }
  .formula { text-align: center; }
  .formula span { margin-inline: auto; }
  .next a { justify-content: center; text-align: center; }
  .cols > .side { position: sticky; top: 24px; align-self: flex-start; }
  .start .cols > .side { position: static; }
}
