/* ===== Lite WMS landing — стили ===== */
:root {
  --bg: #1B1B1B;
  --bg-alt: #161616;
  --surface: #242424;
  --surface-2: #2c2c2c;
  --border: #333333;
  --text: #f4f4f4;
  --text-muted: #a6a6a6;
  --amber: #FFB347;
  --amber-strong: #F5840A;
  --amber-soft: rgba(245, 132, 10, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }

code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: .9em;
  color: var(--amber);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 760px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-strong));
  color: #1a1206;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }

.badge {
  display: inline-block;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(245, 132, 10, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}

/* ===== Шапка ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .01em;
  color: var(--text);
}
.brand-name b { color: var(--amber); font-weight: 700; margin-left: 4px; }
.brand--footer .brand-mark { width: 44px; height: 44px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-muted); font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav-cta { color: #1a1206 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--amber);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { color: var(--text-muted); margin: 18px 0 0; font-size: .95rem; }
.hero-bullets {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 26px 0 0;
}
.hero-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: .95rem;
}
.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* Телефон-мокап */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 270px;
  max-width: 80vw;
  background: #0c0c0c;
  border: 10px solid #0c0c0c;
  border-radius: 38px;
  box-shadow: var(--shadow), 0 0 0 2px #2a2a2a;
  overflow: hidden;
  z-index: 2;
}
.phone-screen { width: 100%; height: auto; border-radius: 28px; display: block; }

/* Карусель скриншотов */
.carousel { overflow: hidden; width: 100%; border-radius: 28px; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-track .phone-screen { flex: 0 0 100%; border-radius: 0; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 16px; position: relative; z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px; padding: 0; border: 0; cursor: pointer;
  border-radius: 50%; background: var(--border);
  transition: background .2s ease, width .2s ease;
}
.carousel-dot.active { background: var(--amber); width: 22px; border-radius: 4px; }
.glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--amber-soft), transparent 65%);
  filter: blur(20px);
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

/* ===== Карточки ===== */
.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: 1fr; }
.cards-4 { grid-template-columns: 1fr; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245,132,10,.4); }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--text-muted); margin: 0; font-size: .96rem; }
.card-ico { font-size: 1.8rem; margin-bottom: 10px; }
.feature-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--amber-soft);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

/* ===== Шаги ===== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-strong));
  color: #1a1206;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--text-muted); margin: 0; }

/* ===== Таблица сравнения ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--surface);
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .96rem;
  vertical-align: top;
}
.compare thead th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 700;
}
.compare tbody th { color: var(--text-muted); font-weight: 600; }
.compare td { color: var(--text-muted); }
.compare .col-highlight {
  background: var(--amber-soft);
  color: var(--text);
  font-weight: 600;
}
.compare thead .col-highlight { color: var(--amber); }

/* ===== Тариф ===== */
.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.price-card--accent {
  border-color: var(--amber-strong);
  box-shadow: 0 0 0 1px var(--amber-strong), 0 18px 50px rgba(245,132,10,.12);
}
.price-tag { color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; margin: 0 0 8px; }
.price-value { font-size: 2rem; font-weight: 700; margin: 0 0 8px; }
.price-card--accent .price-value { color: var(--amber); }
.price-desc { color: var(--text-muted); margin: 0 0 16px; }
.price-list { list-style: none; padding: 0; margin: 0 0 20px; }
.price-list li { padding-left: 24px; position: relative; margin-bottom: 8px; color: var(--text-muted); }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.price-cta { width: 100%; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 28px 16px 0;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 1.4rem;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-muted); margin: 0 0 16px; }

/* ===== CTA ===== */
.cta-section {
  background:
    radial-gradient(circle at 50% 0%, var(--amber-soft), transparent 60%),
    var(--bg);
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); }
.cta-inner p { color: var(--text-muted); font-size: 1.1rem; margin: 0 0 28px; }
.cta-actions { justify-content: center; }

/* ===== Футер ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
.footer-brand p { color: var(--text-muted); margin: 12px 0 0; max-width: 30ch; }
.footer-col h4 { font-size: .95rem; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-muted); padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .9rem;
}

/* ===== Адаптив ===== */
@media (min-width: 600px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero { padding: 80px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .phone { width: 300px; }
}

/* Мобильное меню */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
    transform: translateY(-130%);
    transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Уважение к настройкам анимации */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .card:hover { transform: none; }
}
