/* Шрифты на своём хостинге. Источник: Google Fonts (fonts.gstatic.com), лицензия SIL OFL 1.1, тексты лицензий в fonts/. */
/* cyrillic */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/golos-text-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* latin-ext */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/golos-text-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/golos-text-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; }
/* cyrillic */
@font-face { font-family: "Sofia Sans Condensed"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("../fonts/sofia-sans-condensed-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* latin-ext */
@font-face { font-family: "Sofia Sans Condensed"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("../fonts/sofia-sans-condensed-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: "Sofia Sans Condensed"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("../fonts/sofia-sans-condensed-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; }

/* Токены и общие компоненты сайта «Металлист». Описание: ../DESIGN.md */
:root {
  --bg: #F4F2EE; --surface: #FFFFFF; --surface-2: #EAE7E0;
  --text: #20252B; --text-2: #565D66; --text-3: #6B727A;
  --line: #D9D5CC; --rail: #20252B; --bg-rgb: 244, 242, 238;
  --accent: #F0581E; --accent-hover: #D94A12; --accent-ink: #20252B;
  --success: #2E7D4F; --warning: #B7791F; --error: #C62828;

  --font-display: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --font-body: "Golos Text", "Segoe UI", Arial, sans-serif;
  --fs-display: 72px; --fs-h2: 52px; --fs-h3: 30px; --fs-num: 60px;
  --fs-lead: 20px; --fs-body: 17px; --fs-small: 15px; --fs-micro: 13px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --container: 1280px; --gutter: 80px;

  --r-1: 4px; --r-2: 6px; --r-3: 10px;
  --shadow-1: 0 1px 2px rgba(32, 37, 43, .08);
  --shadow-2: 0 18px 40px -18px rgba(32, 37, 43, .28);
}
[data-theme="dark"] {
  --bg: #15181C; --surface: #1E2329; --surface-2: #272D34;
  --text: #F4F2EE; --text-2: #B6BBC2; --text-3: #8D949C;
  --line: #343A42; --rail: #F4F2EE; --bg-rgb: 21, 24, 28;
  --accent-hover: #FF6E36; --accent-ink: #15181C;
  --success: #58B67E; --warning: #E0A93B; --error: #EF6B63;
  --shadow-1: none; --shadow-2: none;
}
@media (max-width: 1100px) { :root { --gutter: 32px; } }
@media (max-width: 640px) {
  :root { --gutter: 20px; --fs-display: 35px; --fs-h2: 34px; --fs-h3: 24px; --fs-num: 40px; --fs-lead: 17px; --fs-body: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scrollbar-color: var(--line) var(--bg); }
html[data-theme="dark"] { color-scheme: dark; }
::selection { background: var(--accent); color: var(--accent-ink); }
input, textarea { caret-color: var(--accent); }
p, li, dd, figcaption { text-wrap: pretty; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 2px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Шапка */
.hdr { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.hdr .logo img { height: 26px; width: auto; }
.hdr-right { display: flex; align-items: baseline; gap: var(--sp-5); }
.hdr .hours { font-size: var(--fs-small); color: var(--text-2); white-space: nowrap; }
.hdr .logo { display: inline-flex; align-items: center; min-height: 44px; }
.hdr .tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap; }
[data-theme="dark"] .hdr .hours { color: var(--text); }
.hdr .tel:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .hdr { height: 68px; gap: var(--sp-3); }
  .hdr .logo img { height: 20px; }
  .hdr-right { flex-direction: column; align-items: flex-end; gap: 0; }
  .hdr .hours { font-size: 12px; line-height: 1.2; margin-bottom: -8px; }
  .hdr .tel { font-size: 16px; }
}

/* Заголовок и текст */
.display { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display); line-height: .95; letter-spacing: -.01em; text-wrap: balance; }
.lead { margin: 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 34em; }
.note { margin: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--text-3); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px;
  font: 600 17px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  border-radius: var(--r-2); border: 1.5px solid transparent; touch-action: manipulation;
  transition: background-color .12s ease-out, color .12s ease-out, transform .1s ease-out;
}
.btn:active { transform: scale(.98); transition-duration: .12s, .12s, 0s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--bg); }
.cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 640px) { .btn { height: 52px; width: 100%; padding: 0 16px; font-size: 16px; } }

/* Рельс с фактами */
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--sp-5); border-top: 6px solid var(--rail); }
.fact { position: relative; padding: 40px 0 0 0; }
.fact::before { content: ""; position: absolute; left: 14px; top: 0; width: 2px; height: 28px; background: var(--rail); }
.fact b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-num); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.fact span { display: block; margin-top: var(--sp-2); font-size: var(--fs-small); line-height: 1.45; color: var(--text-2); max-width: 17em; }
@media (max-width: 1000px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-5); column-gap: var(--sp-4); }
  .fact { padding-top: 30px; }
  .fact::before { height: 20px; left: 10px; }
  .fact:nth-child(n+3) { padding-top: 0; }
  .fact:nth-child(n+3)::before { display: none; }
  .fact span { font-size: 14px; }
}

/* Одно движение при загрузке: рельс прочерчивается, факты опускаются */
@media (prefers-reduced-motion: no-preference) {
  .rail { animation: rail-draw .5s ease-out both; transform-origin: left center; }
  .fact { animation: fact-drop .35s ease-out both; }
  .fact:nth-child(1) { animation-delay: .30s; } .fact:nth-child(2) { animation-delay: .38s; }
  .fact:nth-child(3) { animation-delay: .46s; } .fact:nth-child(4) { animation-delay: .54s; }
  @keyframes rail-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes fact-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
}
