/* ТранзитАгро — стили одностраничника */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Black.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  --bg: #0c0e0b;
  --bg-alt: #121510;
  --surface: #171b15;
  --line: rgba(255, 255, 255, .09);
  --text: #f1f2ec;
  --muted: #9a9f96;
  --green: #3e8e1c;          /* цвет из логотипа */
  --green-hi: #5fb832;       /* светлее — для текста на тёмном */
  --radius: 4px;
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --hatch: repeating-linear-gradient(-72deg, var(--green) 0 1.4px, transparent 1.4px 6px);
}

*, *::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);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
b { font-weight: 600; color: var(--text); }

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

/* ---------- общие элементы ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.dot { width: 8px; height: 8px; background: var(--green-hi); flex: none; }

.h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800; line-height: 1.05; letter-spacing: -.035em;
  max-width: 18ch;
}
.h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 18px 0 24px; }
.text { color: var(--muted); font-size: 17px; max-width: 60ch; }
.text b { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px;
  background: var(--green); color: #fff;
  border: 1px solid var(--green); border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: #4aa322; border-color: #4aa322; }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); }
.btn--light { background: #fff; color: #0c0e0b; border-color: #fff; }
.btn--light:hover { background: #e6e8e2; border-color: #e6e8e2; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.hatch { background: var(--hatch); }

:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 11, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { color: #fff; flex: none; }
.logo__svg { width: 150px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--text); }
.burger { display: none; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 0; overflow: hidden; }
.hero__title {
  margin: 28px 0 clamp(32px, 5vw, 64px);
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, 11.4vw, 168px);
  line-height: .86; letter-spacing: -.055em;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--green-hi); display: flex; align-items: center; gap: .12em; }
.hatch--inline { flex: 1; height: .52em; min-width: 40px; margin-top: .04em; }
.hero__bottom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero__slogan { font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.hero__lead { color: var(--muted); font-size: 17px; max-width: 46ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__band { height: 14px; border-top: 1px solid var(--line); }

/* ---------- цифры ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 24px 36px 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.stat span { color: var(--muted); font-size: 14px; max-width: 22ch; }

/* ---------- секции ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }

.split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); }
.split__body { display: flex; flex-direction: column; gap: 24px; }
.split__body .h2 { max-width: 22ch; }

/* преимущества */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; transition: background .25s; }
.card:hover { background: var(--surface); }
.card__num { font-size: 13px; font-weight: 600; color: var(--green-hi); margin-bottom: auto; padding-bottom: 32px; }
.card__title { font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.card p { color: var(--muted); font-size: 15px; }
.card--cta { background: var(--green); justify-content: flex-end; }
.card--cta:hover { background: var(--green); }
.card--cta p { color: rgba(255,255,255,.85); margin-bottom: 12px; }
.card--cta .btn { align-self: flex-start; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 3px; background: var(--green-hi); }
.step__num { display: block; font-size: 64px; font-weight: 900; letter-spacing: -.06em; line-height: 1; color: rgba(255,255,255,.12); margin-bottom: 24px; }
.step__title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* автопарк */
.fleet { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.fleet__big { display: flex; flex-direction: column; gap: 20px; }
.fleet__number {
  font-size: clamp(80px, 13vw, 200px); font-weight: 900; letter-spacing: -.06em; line-height: .85;
  display: flex; align-items: flex-start; flex-wrap: wrap;
}
.fleet__number span { color: var(--green-hi); margin: 0 .06em; }
.fleet__number small { font-size: .18em; font-weight: 600; letter-spacing: -.01em; margin: .4em 0 0 .4em; color: var(--muted); }
.checklist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.checklist li { position: relative; padding: 20px 0 20px 36px; border-bottom: 1px solid var(--line); color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 26px; width: 16px; height: 10px;
  border-left: 2px solid var(--green-hi); border-bottom: 2px solid var(--green-hi); transform: rotate(-45deg);
}

/* география */
.geo { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.geo__regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.region { aspect-ratio: 1 / 1.1; padding: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.region::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: var(--hatch); opacity: .55; }
.region b { font-size: clamp(32px, 4.4vw, 60px); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.region span { font-size: 13px; color: var(--muted); position: relative; z-index: 1; max-width: 16ch; }
.geo__text { display: flex; flex-direction: column; gap: 18px; }

/* тарифы и документы */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; color: var(--muted); }
.list li { position: relative; padding-left: 22px; }
.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--green-hi); }
.badge { margin-top: auto; padding: 12px 16px; border: 1px solid rgba(95,184,50,.4); color: var(--green-hi); font-size: 14px; font-weight: 600; }

/* заявка */
.request { position: relative; background: var(--bg-alt); border-top: 1px solid var(--line); overflow: hidden; }
.request__hatch { position: absolute; top: 0; left: 0; right: 0; height: 14px; }
.request__inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.request__intro { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 120px; }
.form { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 44px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 16px; transition: border-color .2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #5c6158; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-hi); }
.field.is-error input { border-color: #e0574a; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.consent a { color: var(--text); }
.consent.is-error { color: #e98a80; }
.form__status { margin-top: 16px; font-size: 15px; min-height: 1.5em; }
.form__status.is-ok { color: var(--green-hi); }
.form__status.is-err { color: #e98a80; }

/* контакты */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.person { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.person__name { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.person__phone { font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; transition: color .2s; }
.person__phone:hover { color: var(--green-hi); }
.person__links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.person__links a { font-size: 13px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; text-decoration: none; color: var(--muted); transition: color .2s, border-color .2s; }
.person__links a:hover { color: var(--text); border-color: var(--green-hi); }
.contact-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.contact-line a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--green-hi); }

/* подвал */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__logo { width: min(420px, 70vw); height: auto; color: #fff; }
.footer__meta { color: var(--muted); font-size: 13px; text-align: right; display: flex; flex-direction: column; gap: 6px; }
.footer__meta a { color: var(--muted); }
.footer__meta a:hover { color: var(--text); }

/* появление при скролле */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .geo { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header__inner { gap: 16px; }
  .header__cta { margin-left: auto; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--text); transition: transform .25s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 18px; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); }

  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .fleet, .two-col, .request__inner { grid-template-columns: 1fr; }
  .request__intro { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .logo__svg { width: 120px; }
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__num { padding-bottom: 20px; }
  .geo__regions { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .region { padding: 14px; }
  .region span { font-size: 11px; }
  .form__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .footer__meta { text-align: left; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
}

/* контакты с полосой сверху */
.contacts { position: relative; background: var(--bg-alt); border-top: 1px solid var(--line); }
