/* Группа компаний «БигФут» — лендинг. Цвета логотипа (img/logo.svg): надпись #1B77BD, след #29AEE2;
   стол плоттера — #0D2638, нитка оверлока (нож, пунктир вех) — #F0B03A. */
/* Шрифты (SIL OFL 1.1, fonts/LICENSE.txt) — в архиве сайта, без обращений к Google; переменной толщины,
   кириллица и латиница отдельными файлами. Источник — Google Fonts, версия — в имени файла. */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/golos-text-cyrillic.v7.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("/fonts/golos-text-latin.v7.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: 400 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-cyrillic.v24.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: 400 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.v24.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: "Unbounded";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/unbounded-cyrillic.v12.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/unbounded-latin.v12.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #F2F6F9;
  --surface: #FFFFFF;
  --ink: #0B1D2A;
  --muted: #4B6273;
  --line: #D5E1EA;
  --blue: #1B77BD;
  --blue-deep: #14609B;
  --sky: #29AEE2;
  --table: #0D2638;
  --thread: #F0B03A;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip:focus { top: 12px; color: #fff; }

.eyebrow {
  font: 500 13px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ─── шапка ─────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand img { width: 104px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .top-phone { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .top-phone:hover { color: var(--blue); }
.top-phone { font-family: var(--mono); font-size: 14px; white-space: nowrap; }

/* ─── первый экран ─────────────────────────────────────── */
.hero { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.hero-title, .hero-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.h1-pre {
  display: block;
  font: 500 clamp(18px, 2vw, 24px)/1.2 var(--display);
  color: var(--muted);
  margin-bottom: 14px;
}
.h1-name {
  display: block;
  font: 700 clamp(46px, 7vw, 100px)/.95 var(--display);
  letter-spacing: -.02em;
  color: var(--ink);
}
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 34em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* Стол плоттера (SVG собирает tools/hero.py) */
.hero-table { margin: 0; min-width: 0; }
.table { width: 100%; height: auto; overflow: visible; }
.table-surface { fill: var(--table); }
.grid-fine { stroke: rgba(255, 255, 255, .05); stroke-width: 2; }
.grid-major { stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.ruler line { stroke: #8EA3B3; stroke-width: 3; }
.ruler text { font: 500 40px var(--mono); fill: var(--muted); }
.ruler .unit { fill: var(--blue); }
.part-body { fill: rgba(41, 174, 226, .16); }
.part-cut { fill: none; stroke: var(--sky); stroke-width: 6; stroke-linejoin: round; }
.knife-tip { fill: var(--thread); }

.hero-tools { display: flex; justify-content: flex-end; margin-top: 12px; }
.replay {
  font: 500 13px/1 var(--mono);
  color: var(--blue);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  border-bottom: 1px dashed currentColor;
}
.replay:hover { color: var(--blue-deep); }

/* ─── разделы ──────────────────────────────────────────── */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 860px; }
.section h2 { font: 700 clamp(28px, 3.6vw, 44px)/1.12 var(--display); letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 40em; }
.section h3 { font: 500 19px/1.3 var(--display); }

/* Вехи — настоящая последовательность во времени */
.timeline {
  list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--thread) 0 10px, transparent 10px 18px);
}
.timeline li { position: relative; padding: 36px 32px 0 0; display: grid; align-content: start; gap: 8px; min-width: 0; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ground); border: 3px solid var(--blue);
}
.timeline li:last-child::before { background: var(--blue); }
.year { font: 700 clamp(28px, 3vw, 36px)/1 var(--display); color: var(--blue); }
.timeline p { color: var(--muted); max-width: 22em; }

.directions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: clamp(56px, 7vw, 88px);
}
.direction {
  display: grid; align-content: start; gap: 12px;
  padding: 24px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-width: 0;
  transition: border-color .25s ease, transform .25s ease;
}
.direction:hover { border-color: color-mix(in srgb, var(--sky) 60%, var(--line)); transform: translateY(-3px); }
.direction p { color: var(--muted); font-size: 16px; }
.glyph {
  width: 100%; height: auto; margin-bottom: 8px;
  background: var(--ground); border-radius: 12px;
}
.g-sheet, .g-swatch { fill: #E3EEF5; stroke: var(--blue); stroke-width: 1.5; }
.g-body { fill: var(--sky); stroke: var(--blue); stroke-width: 1.5; }
.g-end { fill: #BFE3F5; stroke: var(--blue); stroke-width: 1.5; }
.g-ring { fill: none; stroke: var(--blue); stroke-width: 1.2; }
.g-core { fill: var(--blue); }
.g-pile { stroke: var(--blue); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.g-pile-mm { stroke-width: 10; }
.g-cell { fill: #CFE9F7; stroke: var(--blue); stroke-width: 9; }
.g-mat { fill: #E3EEF5; stroke: var(--blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.g-caption { font: 500 11px var(--mono); fill: var(--muted); letter-spacing: .06em; }
.g-arrow { stroke: var(--thread); stroke-width: 2; stroke-dasharray: 6 5; fill: none; }
.direction:hover .g-arrow { animation: thread 1.2s linear infinite; }
@keyframes thread { to { stroke-dashoffset: -22; } }

/* Сотрудничество */
.audiences {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 2px solid var(--ink);
}
.audience { padding: 28px 28px 8px 0; display: grid; align-content: start; gap: 16px; min-width: 0; }
.audience + .audience { padding-left: 28px; border-left: 1px solid var(--line); }
.audience ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.audience li { position: relative; padding-left: 22px; color: var(--muted); }
.audience li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 10px; height: 2px; background: var(--sky);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  font-weight: 600; text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Контакты */
.contacts { background: var(--table); color: #E8F2F8; border-top: 0; }
.contacts .eyebrow { color: var(--sky); }
.contacts .section-lead { color: #A7BCCB; }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { margin: 0; display: grid; }
.contact-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding-block: 22px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.contact-row:first-child { border-top: 1px solid rgba(255, 255, 255, .12); }
.contact-row dt { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #7F98AA; }
.contact-row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; min-width: 0; }
.contact-big {
  font: 500 clamp(20px, 2.6vw, 32px)/1.2 var(--display);
  color: #fff; text-decoration: none; overflow-wrap: anywhere;
}
.contact-big:hover { color: var(--sky); }
.contact-row address { font-style: normal; font-size: 19px; color: #E8F2F8; }
.copy {
  font: 500 12px/1 var(--mono); letter-spacing: .06em;
  color: var(--sky); background: none; cursor: pointer;
  border: 1px solid rgba(41, 174, 226, .45); border-radius: 999px; padding: 7px 12px;
}
.copy:hover { border-color: var(--sky); }
.copy.is-done { color: var(--thread); border-color: var(--thread); }

/* Подвал */
.foot { background: var(--table); color: #7F98AA; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 28px; font-size: 14px; }
.foot-row img { width: 80px; height: auto; }
.foot-row a { color: #A7BCCB; text-decoration: none; margin-left: auto; font-family: var(--mono); }
.foot-row a:hover { color: #fff; }

/* Появление при прокрутке — только при работающем JS */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ─── адаптив ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-head, .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  /* Планшет: карточка строкой — рисунок слева, текст справа */
  .directions { grid-template-columns: minmax(0, 1fr); }
  .direction { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 28px; align-items: center; }
  .direction .glyph { grid-row: span 2; margin-bottom: 0; }
  .audiences { grid-template-columns: minmax(0, 1fr); }
  .audience, .audience + .audience { padding: 24px 0; border-left: 0; }
  .audience + .audience { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top-phone { margin-left: auto; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--thread) 0 10px, transparent 10px 18px); }
  .timeline li { padding: 0 0 0 40px; }
  .direction { grid-template-columns: minmax(0, 1fr); }
  .direction .glyph { grid-row: auto; margin-bottom: 8px; }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .foot-row a { margin-left: 0; }
}
@media (max-width: 600px) {
  .ruler text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
