/* ============================================================
   SONMAX Logistics — Variant 2: Design Freedom
   Bold typography, yellow inverted sections, diagonal accents,
   heavy clip-path usage, animated-ready stripe bg
   ============================================================ */

:root {
  --yellow: #fff500;
  --black: #000000;
  --bg: #080c10;
  --panel: #0e1318;
  --border: #1e2832;
  --muted: #5a7080;
  --text: #c8d8e0;
  --white: #ffffff;
  --container: 1280px;
  --gap: 48px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* UTILITIES */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section-label {
  color: var(--yellow);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 32px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 16px 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  border: none;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--black);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn--yellow:hover { background: #f0e800; }

.btn--ghost {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn--ghost:hover {
  background: var(--yellow);
  color: var(--black);
}

.btn--black {
  background: var(--black);
  color: var(--yellow);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn--black:hover { background: #111; }

.btn--black-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn--black-outline:hover {
  background: var(--black);
  color: var(--yellow);
}

.btn--full { width: 100%; text-align: center; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 16, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.logo__text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__text {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
}
.logo__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--yellow);
  letter-spacing: 0.2em;
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.04em;
}
.nav__link:hover { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Diagonal stripe background — pure CSS, no images */
.hero__stripe-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stripe {
  position: absolute;
  width: 120px;
  background: rgba(255, 245, 0, 0.03);
  transform: skewX(-20deg);
  height: 200%;
  top: -50%;
}

.stripe:nth-child(1) { right: 5%; }
.stripe:nth-child(2) { right: 15%; width: 60px; background: rgba(255, 245, 0, 0.05); }
.stripe:nth-child(3) { right: 22%; width: 200px; background: rgba(255, 245, 0, 0.02); }
.stripe:nth-child(4) { right: 35%; width: 40px; background: rgba(255, 245, 0, 0.04); }
.stripe:nth-child(5) { right: 50%; width: 80px; background: rgba(255, 245, 0, 0.015); }

.hero__diagonal {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--yellow);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 245, 0, 0.1);
  border: 1px solid rgba(255, 245, 0, 0.3);
  color: var(--yellow);
  padding: 8px 20px;
  margin-bottom: 32px;
  font-size: 11px;
  letter-spacing: 0.15em;
}

.hero__title {
  font-size: 96px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__title mark {
  background: var(--yellow);
  color: var(--black);
  padding: 0 12px;
  display: inline;
}

.hero__desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 48px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   STATS BAR (inverted: yellow)
   ============================================================ */
.stats-bar {
  background: var(--yellow);
  padding: 0;
  position: relative;
  z-index: 1;
}

.stats-bar__inner {
  display: flex;
  align-items: stretch;
  min-height: 100px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(0,0,0,0.2);
}

.stats-bar .stat-item__num {
  font-size: 40px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.stats-bar .stat-item__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(0,0,0,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-divider { display: none; }

/* ============================================================
   FORM SECTION
   ============================================================ */
.form-section {
  padding: 100px 0;
  background: var(--panel);
}

.form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.form-section__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.form-section__desc {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.7;
}

.form-guarantee {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid var(--yellow);
  padding-left: 20px;
}

.form-guarantee__item {
  font-size: 14px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* Form */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.form-input {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--yellow); }

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

/* ============================================================
   DELIVERY TABS
   ============================================================ */
.delivery {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#t-sea, #t-air, #t-rail { display: none; }

.tab-nav {
  display: flex;
  gap: 4px;
  margin-top: 40px;
  margin-bottom: 4px;
}

.tab-nav__item {
  flex: 1;
  text-align: center;
  padding: 18px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.tab-nav__item:hover { color: var(--white); border-color: var(--muted); }

#t-sea:checked ~ .tab-nav label[for="t-sea"],
#t-air:checked ~ .tab-nav label[for="t-air"],
#t-rail:checked ~ .tab-nav label[for="t-rail"] {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  border-color: var(--yellow);
}

.tab-panels { }

.tab-panel {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  display: none;
}

#t-sea:checked ~ .tab-panels #p-sea,
#t-air:checked ~ .tab-panels #p-air,
#t-rail:checked ~ .tab-panels #p-rail {
  display: flex;
  align-items: stretch;
}

.tab-panel__eta-big {
  background: var(--yellow);
  color: var(--black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 80px;
  font-weight: 700;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  min-width: 120px;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.tab-panel__body {
  padding: 48px 56px;
  flex: 1;
}

.tab-panel__label {
  color: var(--yellow);
  margin-bottom: 12px;
}

.tab-panel__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.tab-panel__desc {
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.7;
  font-size: 15px;
  max-width: 560px;
}

.tab-panel__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact__key {
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.fact__val {
  font-size: 14px;
  color: var(--text);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 100px 0;
  background: var(--bg);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.about__text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  margin-bottom: 48px;
}

.about__what {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.service-list__item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  padding-left: 20px;
  position: relative;
}

.service-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--yellow);
}

/* About callout */
.about__callout {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
  background: var(--yellow);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.callout-num {
  font-size: 120px;
  font-weight: 900;
  color: var(--black);
  line-height: 0.9;
  margin-bottom: 8px;
}

.callout-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.callout-note {
  color: rgba(0,0,0,0.5);
  font-size: 10px;
}

/* ============================================================
   PROCESS (numbered list with left yellow border)
   ============================================================ */
.process {
  padding: 100px 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  padding-left: 40px;
  margin-left: 0;
  transition: background 0.2s;
}
.process-item:hover { background: rgba(255,245,0,0.03); }

.process-item__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  flex-shrink: 0;
  min-width: 72px;
}

.process-item__content { flex: 1; }

.process-item__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  padding-top: 10px;
}

/* ============================================================
   STATS DEEP (dark version, large numbers)
   ============================================================ */
.stats-deep {
  padding: 100px 0;
  background: var(--black);
  border-top: 4px solid var(--yellow);
}

.stats-deep__label {
  color: var(--yellow);
  margin-bottom: 48px;
  text-align: center;
}

.stats-deep__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.stat-big {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 48px 32px;
  text-align: center;
}

.stat-big__num {
  font-size: 64px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}

.stat-big__label {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* ============================================================
   CTA (inverted: yellow bg)
   ============================================================ */
.cta-section {
  background: var(--yellow);
  padding: 120px 0;
  position: relative;
  clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.cta-section__inner { text-align: center; }

.cta-section__label {
  color: rgba(0,0,0,0.5);
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
}

.cta-section__title {
  font-size: 52px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__sub {
  font-size: 18px;
  color: rgba(0,0,0,0.6);
  margin-bottom: 48px;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.footer__heading {
  color: var(--yellow);
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav__link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav__link:hover { color: var(--white); }

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-contact:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer__copy {
  color: var(--muted);
  font-size: 11px;
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --gap: 20px; }

  .section-title { font-size: 28px; }

  /* Header */
  .header__inner { height: 68px; }
  .nav { display: none; }
  .header__inner .btn { margin-left: auto; padding: 10px 20px; font-size: 12px; }

  /* Logo */
  .logo__mark { width: 32px; height: 32px; font-size: 18px; }
  .logo__text { font-size: 17px; }

  /* Hero */
  .hero { min-height: auto; padding: 80px 0 100px; }
  .hero__title { font-size: 52px; }
  .hero__title mark { padding: 0 8px; }
  .hero__diagonal { height: 40px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
  .stripe { display: none; }

  /* Stats bar */
  .stats-bar__inner { flex-wrap: wrap; }
  .stats-bar .stat-item { flex: 1 0 40%; }
  .stats-bar .stat-item__num { font-size: 28px; }
  .stat-item + .stat-item::before { display: none; }

  /* Form */
  .form-section { padding: 64px 0; }
  .form-section__inner { grid-template-columns: 1fr; gap: 40px; }
  .form-section__title { font-size: 28px; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Tabs */
  .delivery { padding: 64px 0; }
  .tab-nav { flex-direction: column; gap: 2px; }
  .tab-nav__item { clip-path: none; }
  #t-sea:checked ~ .tab-panels #p-sea,
  #t-air:checked ~ .tab-panels #p-air,
  #t-rail:checked ~ .tab-panels #p-rail { flex-direction: column; }
  .tab-panel__eta-big {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 48px;
    min-width: auto;
    padding: 20px;
  }
  .tab-panel__body { padding: 28px 20px; }
  .tab-panel__title { font-size: 22px; }

  /* About */
  .about { padding: 64px 0; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__callout { position: static; padding: 40px 28px; }
  .callout-num { font-size: 80px; }

  /* Process */
  .process { padding: 64px 0; }
  .process-item { padding: 24px 0 24px 24px; gap: 20px; }
  .process-item__num { font-size: 36px; min-width: 52px; }
  .process-item__title { font-size: 16px; }

  /* Stats deep */
  .stats-deep { padding: 64px 0; }
  .stats-deep__grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .stat-big__num { font-size: 44px; }

  /* CTA */
  .cta-section { padding: 80px 0; clip-path: none; }
  .cta-section__title { font-size: 32px; }
  .cta-section__actions { flex-direction: column; align-items: center; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
