/* ==========================================================================
   Лидер Логистик — редизайн 2026
   Тема: маршрутный лист / накладная. Тёмно-синяя ночная трасса + янтарный
   сигнальный акцент. Big Shoulders Display (заголовки) + IBM Plex Sans
   (текст) + IBM Plex Mono (технические данные, метки).
   ========================================================================== */

:root {
  --ink: #0d1526;
  --ink-2: #141f38;
  --ink-3: #1b2947;
  --paper: #eceae2;
  --paper-2: #ffffff;
  --route: #ff8a3d;
  --route-dim: #c9691f;
  --route-soft: rgba(255, 138, 61, 0.14);
  --steel: #4b5468;
  --steel-lt: #9aa3b8;
  --line-on-dark: rgba(255, 255, 255, 0.12);
  --line-on-light: rgba(13, 21, 38, 0.12);
  --ok: #5fb488;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "Courier New", monospace;

  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--route);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--route);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}

p { line-height: 1.6; }

.btn {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--route);
  color: var(--route);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--route); color: var(--ink); transform: translateY(-1px); }
.btn-solid { background: var(--route); color: var(--ink); }
.btn-solid:hover { background: var(--route-dim); border-color: var(--route-dim); color: var(--paper); }
.btn svg { width: 14px; height: 14px; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================== NAV ============================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(13, 21, 38, 0.94);
  backdrop-filter: blur(6px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-on-dark);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; filter: brightness(0) invert(1); }
.brand-text { font-family: var(--f-display); color: #fff; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-lt);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--route); }
.nav-links a.btn:hover { color: var(--ink); }
.nav-links .btn { padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 84vw); background: var(--ink); flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px; gap: 24px; transform: translateX(100%); transition: transform 0.35s ease; border-left: 1px solid var(--line-on-dark); }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-toggle.open span { opacity: 0; }
  .nav-toggle.open::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open::after { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 168px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black 40%, transparent 90%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: end; }
.hero-copy p.lead { font-size: 1.15rem; color: var(--steel-lt); max-width: 480px; margin: 22px 0 32px; }
.hero-title { font-size: clamp(2.6rem, 6vw, 5.1rem); }
.hero-title .line { display: block; }
.hero-title .accent { color: var(--route); }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.hero-since { font-family: var(--f-mono); font-size: 0.78rem; color: var(--steel-lt); letter-spacing: 0.05em; }
.hero-since b { color: #fff; }

.hero-manifest { font-family: var(--f-mono); font-size: 0.78rem; color: var(--steel-lt); border: 1px solid var(--line-on-dark); padding: 20px; background: rgba(255,255,255,0.02); }
.hero-manifest .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-on-dark); }
.hero-manifest .row:last-child { border-bottom: 0; }
.hero-manifest .row span:first-child { color: var(--steel-lt); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
.hero-manifest .row span:last-child { color: #fff; }

/* route strip: animated waypoint line for the 4 transport modes */
.route-strip { position: relative; margin-top: 64px; }
.route-strip svg { width: 100%; height: auto; display: block; }
.route-strip .route-path { fill: none; stroke: var(--route); stroke-width: 1.5; stroke-dasharray: 6 7; opacity: 0.55; }
.route-strip .route-path.animate { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s ease forwards 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.route-nodes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -18px; }
.route-node { text-align: center; }
.route-node .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--route); margin: 0 auto 14px; box-shadow: 0 0 0 5px rgba(255,138,61,0.14); }
.route-node .label { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--steel-lt); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .route-nodes { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}

/* ============================== INTRO ============================== */
.intro { background: var(--paper); padding: 90px 0; border-bottom: 1px solid var(--line-on-light); }
.intro-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.intro-inner .lead-text { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: none; line-height: 1.18; }
.intro-body p { color: var(--steel); font-size: 1.02rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line-on-light); color: var(--steel); }
@media (max-width: 800px) { .intro-inner { grid-template-columns: 1fr; gap: 26px; } }

/* ============================== BENEFITS ============================== */
.benefits { background: var(--ink); color: #fff; padding: 90px 0; }
.benefits .eyebrow { color: var(--route); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-on-dark); margin-top: 46px; border: 1px solid var(--line-on-dark); }
.benefit { background: var(--ink); padding: 34px 28px; }
.benefit .icon { width: 34px; height: 34px; color: var(--route); margin-bottom: 22px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 12px; text-transform: none; }
.benefit p { color: var(--steel-lt); font-size: 0.94rem; }
@media (max-width: 1000px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ============================== TRANSPORT (Перевозки) ============================== */
.transport { background: var(--paper); padding: 100px 0; }
.transport-intro { max-width: 760px; color: var(--steel); font-size: 1.02rem; margin-bottom: 60px; }
.mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line-on-light);
  position: relative;
}
.mode:first-of-type { border-top: 1px solid var(--line-on-light); }
.mode:nth-of-type(even) .mode-media { order: 2; }
.mode-media { position: relative; }
.mode-media img { width: 100%; height: 340px; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.mode h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.mode p.desc { color: var(--steel); margin-bottom: 20px; }
.mode ul { margin: 0 0 22px; padding: 0; list-style: none; }
.mode ul li { position: relative; padding-left: 20px; color: var(--steel); font-size: 0.95rem; margin-bottom: 9px; }
.mode ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--route); }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tags .tag { border-color: var(--route); color: var(--route-dim); }
.mode-cta { display: inline-block; margin-top: 20px; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--route-dim); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.mode-cta:hover { border-bottom-color: var(--route-dim); }
@media (max-width: 860px) {
  .mode { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .mode:nth-of-type(even) .mode-media { order: 0; }
  .mode-media img { height: 220px; }
}

/* ============================== SERVICES ============================== */
.services { background: var(--ink); color: #fff; padding: 100px 0; }
.services .eyebrow { color: var(--route); }
.service {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line-on-dark);
}
.service:nth-of-type(even) .service-media { order: 2; }
.service-media img { width: 100%; height: 260px; object-fit: cover; filter: grayscale(0.25); }
.service h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; text-transform: none; }
.service p.desc { color: var(--steel-lt); margin-bottom: 18px; }
.service ul { margin: 0; padding: 0; list-style: none; }
.service ul li { position: relative; padding-left: 20px; color: var(--steel-lt); font-size: 0.94rem; margin-bottom: 9px; }
.service ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--route); }
.service-steps { display: flex; gap: 26px; margin: 26px 0; flex-wrap: wrap; }
.service-step { font-family: var(--f-mono); font-size: 0.78rem; color: var(--steel-lt); border-left: 2px solid var(--route); padding-left: 12px; }
.service-step b { color: #fff; display: block; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.order-list { counter-reset: order; margin: 18px 0 26px; padding: 0; list-style: none; }
.order-list li { counter-increment: order; position: relative; padding-left: 34px; color: var(--steel-lt); font-size: 0.94rem; margin-bottom: 12px; }
.order-list li::before { content: counter(order); position: absolute; left: 0; top: -2px; font-family: var(--f-mono); color: var(--route); border: 1px solid var(--route); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 22px; padding: 40px 0; }
  .service:nth-of-type(even) .service-media { order: 0; }
}

/* ============================== PARTNERS ============================== */
.partners { background: var(--paper); padding: 90px 0; }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-on-light); border: 1px solid var(--line-on-light); margin-top: 46px; }
.partners-grid > div { background: var(--paper-2); display: flex; align-items: center; justify-content: center; padding: 30px 22px; }
.partners-grid img { max-height: 46px; width: auto; filter: grayscale(1) opacity(0.55); transition: filter 0.2s ease; }
.partners-grid > div:hover img { filter: grayscale(0) opacity(1); }
@media (max-width: 860px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================== CONTACT / REQUEST ============================== */
.contact { background: var(--ink); color: #fff; padding: 100px 0 80px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.map-box { border: 1px solid var(--line-on-dark); height: 525px; background: var(--ink-2); position: relative; overflow: hidden; }
.map-box iframe { display: block; }
.map-box .map-label { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel-lt); background: rgba(13,21,38,0.8); padding: 5px 9px; }

.form-card { border: 1px solid var(--line-on-dark); background: var(--ink-2); color: #fff; padding: 36px; position: relative; height: 525px; overflow-y: auto; }
.form-card .map-label { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel-lt); background: rgba(13,21,38,0.8); padding: 5px 9px; }
.form-card p.lede { color: var(--steel-lt); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel-lt); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-on-dark);
  background: transparent;
  padding: 8px 2px;
  font-family: var(--f-body);
  font-size: 1rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--route); }
.field textarea { resize: vertical; min-height: 58px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--route); flex-shrink: 0; }
.consent label { font-size: 0.85rem; color: var(--steel-lt); line-height: 1.5; }
.consent a { color: var(--route); text-decoration: underline; }
.form-card .btn { width: 100%; justify-content: center; padding: 16px; }
.form-note { text-align: center; font-family: var(--f-mono); font-size: 0.74rem; color: var(--steel-lt); margin: 12px 0 0; }
.more-toggle { display: block; background: none; border: 0; padding: 0 0 18px; margin: -4px 0 0; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--route-dim); cursor: pointer; text-align: left; }
.more-toggle:hover { color: var(--route); }
.more-fields { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.3s ease, opacity 0.25s ease; }
.more-fields > * { overflow: hidden; }
.more-fields.open { grid-template-rows: 1fr; opacity: 1; }
.more-fields-inner { min-height: 0; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } .form-card { padding: 30px 22px; } }

/* ============================== FOOTER ============================== */
.site-footer { background: #0a0f1c; color: var(--steel-lt); padding: 70px 0 26px; border-top: 1px solid var(--line-on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid var(--line-on-dark); }
.footer-grid h4 { font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 18px; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: var(--steel-lt); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--route); }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; margin: 4px 0; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--f-mono); font-size: 0.7rem; color: var(--ok); border: 1px solid rgba(95,180,136,0.35); padding: 6px 10px; text-decoration: none; }
.footer-badge svg { width: 12px; height: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.8rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { text-decoration: none; color: var(--steel-lt); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.anchor { display: block; position: relative; top: -84px; height: 0; line-height: 0; visibility: hidden; }

.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 150;
    text-align: center;
    background: var(--route);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    transform: translateY(120%);
    transition: transform 0.3s ease;
  }
  .mobile-cta.visible { transform: translateY(0); }
}
