/* ТОК Инжиниринг — графит, один акцент, инженерная сетка. По описанию слайда в ../../toq_ru.md */
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #1A1D23;
  --bg-2: #15171C;
  --surface: #20242B;
  --surface-2: #262B33;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #FFFFFF;
  --text-2: #C9CED6;
  --muted: #8E96A3;
  --accent: #00C2FF;
  --accent-ink: #001A24;
  --accent-soft: rgba(0, 194, 255, .12);
  --radius: 6px;
  --wrap: 1200px;
  --grid: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
          linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
          linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 160px 160px,
          linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 160px 160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text-2);
  font: 400 17px/1.6 "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--text); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* предварительная версия */
.preview-bar { background: var(--accent); color: var(--accent-ink); font-size: 13px; text-align: center; padding: 6px 16px; }

/* шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(26, 29, 35, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo-mark { font-weight: 800; font-size: 26px; letter-spacing: .08em; position: relative; padding-left: 14px; }
.logo-mark::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--accent); }
.logo-sub { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--text-2); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius); padding: 8px; cursor: pointer; }
.mobile-nav { display: none; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: var(--radius);
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1.1; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #33CEFF; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* первый экран */
.hero { position: relative; background: var(--grid), var(--bg); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 88px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.02em; }
h1 span { color: var(--text-2); font-weight: 600; }
.lead { font-size: 19px; color: var(--text-2); margin-top: 24px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.facts { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.facts li { display: flex; gap: 24px; padding: 22px 0 22px 28px; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.fact-n { font-size: 44px; font-weight: 800; line-height: 1; color: var(--accent); min-width: 64px; font-variant-numeric: tabular-nums; }
.facts h3 { font-size: 20px; margin-bottom: 6px; }
.facts p { color: var(--muted); font-size: 15px; }
.strip { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 17px; padding: 18px 0; }
.strip .wrap { border-left: 3px solid var(--accent); padding-left: 20px; margin-left: max(24px, calc((100% - var(--wrap)) / 2 + 24px)); }

/* разделы */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { font-size: 18px; max-width: 62ch; margin-top: 20px; }
.cards { display: grid; gap: 20px; margin-top: 48px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--text-2); }
.card-n { display: block; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .1em; margin-bottom: 20px; }
.card-ic { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.ticks li { position: relative; padding-left: 18px; margin-top: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.integr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; padding: 18px 22px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 15px; }
.integr .ic { color: var(--accent); }
.integr b { font-weight: 600; color: var(--text); padding: 4px 10px; background: var(--surface-2); border-radius: 4px; font-size: 14px; }

/* этапы */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { position: relative; padding: 0 24px 0 0; }
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: 12px; height: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; font-weight: 700; margin-bottom: 20px; background: var(--bg); position: relative; z-index: 1; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 15px; }

/* форматы */
.price-card { display: flex; flex-direction: column; }
.price-card .price { color: var(--text); font-size: 28px; font-weight: 700; line-height: 1.2; }
.price-card .term { color: var(--accent); font-size: 14px; margin: 6px 0 16px; }
.price-card-main { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }

/* для кого */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--line-2); }
.client { padding: 24px 24px 0 0; }
.client h3 { margin-bottom: 8px; }
.client p { font-size: 15px; color: var(--muted); }

/* заявка */
.section-form { background: var(--grid), var(--bg-2); border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contacts { list-style: none; padding: 0; margin: 36px 0 0; }
.contacts li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contacts span { color: var(--muted); min-width: 90px; font-size: 15px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; font: inherit; font-size: 16px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.form textarea { resize: vertical; }
.form .file { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); cursor: pointer; color: var(--text-2); }
.form .file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form .file .ic { color: var(--accent); }
.form .check { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -9999px; }
.form-msg { font-size: 15px; min-height: 1em; }
.form-msg.err { color: #FF8A80; }
.form-msg.ok { color: var(--accent); }

/* служебные страницы */
.page { padding-top: 72px; }
.page h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.page .btn { margin-top: 32px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; max-width: none; }
.prose p, .prose li { color: var(--text-2); margin-top: 10px; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; margin: 0 0 24px; }

/* подвал */
.footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--muted); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer p { margin-top: 14px; max-width: 40ch; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); }

/* адаптив */
@media (max-width: 1080px) {
  .cards-4, .clients { grid-template-columns: repeat(2, 1fr); }
  .clients { gap: 0 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav { display: none; flex-direction: column; padding: 8px 16px 20px; border-top: 1px solid var(--line); }
  .mobile-nav.open { display: flex; }
  .mobile-nav a:not(.btn) { color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 16px; }
  .hero-grid, .form-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid { padding-top: 64px; padding-bottom: 56px; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .strip .wrap { margin-left: 16px; }
  .section { padding: 64px 0; }
  .cards-4, .clients, .steps, .row2 { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .facts li { padding-left: 20px; gap: 16px; }
  .fact-n { font-size: 34px; min-width: 48px; }
  .form { padding: 20px; }
  .logo-sub { display: none; }
}
