/* СтальТракт — негабаритные перевозки. Тёмная стальная тема, янтарный акцент. */

:root {
  --bg:        #0d1014;
  --bg-2:      #11151c;
  --surface:   #161c26;
  --surface-2: #1c2431;
  --line:        rgba(233,238,245,0.09);
  --line-strong: rgba(233,238,245,0.17);
  --text:    #eef2f7;
  --muted:   #98a4b3;
  --muted-2: #6d7a8a;
  --accent:      #f5811e;
  --accent-600:  #dd6f12;
  --accent-tint: rgba(245,129,30,0.13);
  --on-accent:   #120c05;

  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-text:    'Manrope', system-ui, -apple-system, sans-serif;

  --r: 4px;
  --nav-h: 70px;
  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r);
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(245,129,30,0.55);
}
.btn-primary:hover { background: #ff8f2c; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(245,129,30,0.65); }
.btn-primary:active { transform: translateY(0) scale(0.985); }
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(0.985); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13,16,20,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-tel { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.01em; white-space: nowrap; }
.nav-tel:hover { color: var(--accent); }
.nav-cta { display: inline-flex; }
.nav-burger { display: none; width: 42px; height: 42px; margin-left: auto; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r); }
.nav-burger svg { width: 22px; height: 22px; }

/* mobile menu */
.mmenu { position: fixed; inset: 0; z-index: 99; background: rgba(10,12,16,0.97); backdrop-filter: blur(6px); display: flex; flex-direction: column; padding: calc(var(--nav-h) + 24px) 28px 40px; gap: 6px; transform: translateY(-14px); opacity: 0; pointer-events: none; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
.mmenu.open { opacity: 1; transform: none; pointer-events: auto; }
.mmenu a { font-family: var(--font-display); font-weight: 700; font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mmenu .btn { margin-top: 22px; }
.mmenu .m-tel { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; padding-top: var(--nav-h); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,16,20,0.94) 0%, rgba(13,16,20,0.7) 42%, rgba(13,16,20,0.15) 72%, rgba(13,16,20,0.55) 100%),
    linear-gradient(0deg, rgba(13,16,20,0.96) 2%, rgba(13,16,20,0.1) 46%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 7vw, 92px); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: rgba(255,255,255,0.03);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #cfd8e2;
  margin-bottom: 26px;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: #c4cdd8; font-size: clamp(16px, 1.7vw, 20px); max-width: 52ch; line-height: 1.5; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- kpi strip ---------- */
.kpi { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.kpi-item { padding: 40px 28px; border-left: 1px solid var(--line); }
.kpi-item:first-child { border-left: none; }
.kpi-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.2vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.kpi-num .u { color: var(--accent); }
.kpi-label { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ---------- section head ---------- */
.shead { max-width: 62ch; margin-bottom: clamp(38px, 5vw, 60px); }
.shead .h2 { margin-top: 14px; }
.shead p { margin-top: 18px; }

/* ---------- bento: что возим ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 28px;
  min-height: 210px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
  overflow: hidden;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.tile-ico { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--accent-tint); color: var(--accent); }
.tile-ico svg { width: 26px; height: 26px; }
.tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 7px; }
.tile p { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.tile-body { margin-top: 20px; }
.tile-feature { grid-column: span 2; grid-row: span 1; padding: 0; min-height: 210px; }
.tile-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile-feature::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11,13,17,0.94) 8%, rgba(11,13,17,0.15) 62%); }
.tile-feature .fcap { position: relative; z-index: 2; margin-top: auto; padding: 28px; }
.tile-feature h3 { font-size: 22px; }
.tile-feature p { color: #c4cdd8; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step { padding: 34px 30px; border-left: 1px solid var(--line); position: relative; background: var(--surface); }
.step:first-child { border-left: none; }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.step-n::after { content: ""; height: 1px; flex: 1; background: var(--line-strong); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- split: почему мы ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-media { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13,16,20,0.35), transparent 55%); }
.why-list { list-style: none; margin-top: 30px; display: grid; gap: 4px; }
.why-list li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-ico { color: var(--accent); margin-top: 2px; }
.why-ico svg { width: 24px; height: 24px; }
.why-list h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 3px; }
.why-list p { color: var(--muted); font-size: 14.5px; }

/* ---------- quote ---------- */
.quote-band { position: relative; overflow: hidden; }
.quote-bg { position: absolute; inset: 0; z-index: 0; }
.quote-bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,17,0.96) 30%, rgba(11,13,17,0.7)); }
.quote-inner { position: relative; z-index: 1; max-width: 900px; }
.quote-mark { font-family: var(--font-display); font-weight: 800; font-size: 90px; line-height: 0.6; color: var(--accent); height: 46px; }
.quote-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 34px); line-height: 1.28; letter-spacing: -0.015em; margin: 8px 0 30px; }
.quote-by { display: flex; align-items: center; gap: 16px; }
.quote-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; color: var(--accent); flex: none; }
.quote-by b { font-family: var(--font-display); font-weight: 700; display: block; font-size: 16px; }
.quote-by span { color: var(--muted); font-size: 14px; }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,17,0.92) 40%, rgba(11,13,17,0.72)); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact-info .h2 { margin: 14px 0 20px; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 30px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
.contact-list .ci-ico { width: 44px; height: 44px; border-radius: var(--r); background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.contact-list .ci-ico svg { width: 22px; height: 22px; }
.contact-list .ci-lab { color: var(--muted-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-list .ci-val { font-family: var(--font-display); font-weight: 700; font-size: 18px; }

/* form card */
.form-card { background: rgba(20,25,33,0.94); border: 1px solid var(--line-strong); border-radius: var(--r); padding: clamp(26px, 3vw, 40px); backdrop-filter: blur(8px); }
.form-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.form-card .fc-sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 26px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: #c4cdd8; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r);
  color: var(--text); font-size: 15.5px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a4b3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.field.invalid input, .field.invalid select { border-color: #e5484d; }
.field .err { color: #ff7a7e; font-size: 12.5px; display: none; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-consent { color: var(--muted-2); font-size: 12.5px; margin-top: 14px; line-height: 1.4; }
.form-consent a { color: var(--muted); text-decoration: underline; }
.form-ok { display: none; text-align: center; padding: 20px 8px; }
.form-ok.show { display: block; }
.form-ok .ok-ico { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.form-ok .ok-ico svg { width: 32px; height: 32px; }
.form-ok h3 { margin-bottom: 8px; }
.form-ok p { color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer .brand { margin-bottom: 18px; }
.footer-about { color: var(--muted); font-size: 14.5px; max-width: 38ch; }
.footer-col h5 { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.footer-col a:hover { color: var(--accent); }
.footer-col .big { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; color: var(--muted-2); font-size: 13px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }
.reveal[data-d="5"] { transition-delay: 0.35s; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav-links, .nav-tel { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kpi-item:nth-child(odd) { border-left: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-feature { grid-column: span 2; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step:nth-child(odd) { border-left: none; }
  .split { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-item { border-left: none !important; border-bottom: 1px solid var(--line); padding: 28px 20px; }
  .kpi-item:last-child { border-bottom: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-feature { grid-column: span 1; }
  .process { grid-template-columns: 1fr; }
  .step { border-left: none !important; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
