/* ===========================================================
   Екомерс Групп — Slate + Amber design system
   =========================================================== */

:root {
  /* Dark premium base */
  --bg:      #0E1116;
  --surface: #171B22;
  --surface-2: #1C212A;
  --ink:     #F4F6F8;
  --muted:   #9AA4B2;
  --line:    #262C36;
  --accent:  #F2A93B;
  --accent-deep: #D98E1F;
  --accent-ink: #1A1206;

  /* Light inversion */
  --bg2:     #F5F6F8;
  --bg2-soft:#ECEEF1;
  --ink2:    #11151B;
  --muted2:  #5B6675;
  --line2:   #DDE1E7;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* tabular figures everywhere numbers appear */
.tnum, .stat__num, .calc__result-num, .counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-pad { padding-block: clamp(72px, 10vw, 140px); }

/* type scale (1.25) */
.h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--muted); line-height: 1.55; }

.light { background: var(--bg2); color: var(--ink2); }
.light .lead { color: var(--muted2); }
.light .eyebrow { color: var(--accent-deep); }
.light .eyebrow::before { background: var(--accent-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 82%, #fff); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.light .btn--ghost { color: var(--ink2); border-color: var(--line2); }
.light .btn--ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ===========================================================
   HEADER
   =========================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.logo__mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.logo__mark svg { width: 26px; height: 26px; display: block; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__ecg { font-weight: 800; font-size: 19px; letter-spacing: 0.04em; color: var(--ink); }
.logo__full { font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.footer .logo__ecg { color: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font-size: 15px; color: var(--muted); transition: color .2s var(--ease); position: relative; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.msgr-links { display: flex; gap: 16px; }
.msgr-links a {
  font-size: 13px; font-weight: 600; color: var(--muted);
  font-family: var(--font-head); transition: color .2s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.msgr-links a svg { width: 17px; height: 17px; flex: 0 0 auto; }
.msgr-links a:hover { color: var(--accent); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .25s var(--ease); }

/* ===========================================================
   HERO
   =========================================================== */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); }
.hero__h1 .amber { color: var(--accent); }
.hero__sub { margin-top: 26px; max-width: 33ch; }
.hero__cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.hero__trust .dot { color: var(--line); }
.hero__visual { position: relative; min-height: 440px; }

/* hero image / map card */
.hero-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  height: 100%;
  min-height: 440px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.hero-card image-slot { width: 100%; height: 100%; display: block; }
.hero-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,17,22,.85) 0%, rgba(14,17,22,.1) 50%);
  pointer-events: none;
}
.hero-card__tag {
  position: absolute; left: 20px; bottom: 20px;
  font-size: 13px; color: var(--ink); background: rgba(14,17,22,.6);
  backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line);
}
.hero-float {
  position: absolute; right: -14px; top: -22px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 20px; min-width: 168px;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8);
  will-change: transform;
}
.hero-float__num { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--accent); }
.hero-float__lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ===========================================================
   STAT BAR
   =========================================================== */
.statbar { border-block: 1px solid var(--line); background: var(--surface); }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: clamp(36px, 5vw, 56px) clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); white-space: nowrap; }
.stat__num .accent { color: var(--accent); }
.stat__lbl { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ===========================================================
   IMPORTERS / BRANDS
   =========================================================== */
.imp__grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.imp__lead { margin-top: 24px; max-width: 46ch; }
.imp__points { margin-top: 30px; display: grid; gap: 16px; }
.imp__point { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.imp__point svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.imp__point span b { font-weight: 600; }
.imp__point span { color: var(--muted); }
.imp__point span b { color: var(--ink); }

.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brand-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 26px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.brand-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.brand-card__name { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.brand-card__cat { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.brands__cap { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ===========================================================
   SERVICES
   =========================================================== */
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 52px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 30px 28px 32px;
  position: relative; overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}
.svc::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.svc:hover::after { transform: scaleY(1); }
.svc__n { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.svc__icon { margin: 8px 0 18px; color: var(--accent); }
.svc__t { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--ink); }
.svc__d { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ===========================================================
   PAYMENT (hero block)
   =========================================================== */
.pay { background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.pay__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.pay__title { margin-top: 22px; }
.pay__lead { margin-top: 22px; max-width: 42ch; }
.pay__steps { display: grid; gap: 14px; }
.pay-step {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px;
  position: relative;
}
.pay-step__num {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pay-step__t { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.pay-step__d { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.pay-step__cur { margin-left: auto; font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 22px; }
.pay-flow-arrow { display: grid; place-items: center; color: var(--line); }

/* ===========================================================
   DEFECT / QC
   =========================================================== */
.qc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.qc__media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line2); aspect-ratio: 4/3; }
.light .qc__media { box-shadow: 0 30px 60px -36px rgba(17,21,27,.4); }
.qc__media image-slot { width: 100%; height: 100%; display: block; }
.qc__badge {
  position: absolute; left: 18px; top: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink2); color: var(--bg2); font-size: 12.5px; font-weight: 600;
  padding: 8px 13px; border-radius: 100px; font-family: var(--font-head);
}
.qc__badge .ping { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.qc__guarantee {
  margin-top: 28px; display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line2); border-radius: var(--r-md); padding: 22px 24px;
}
.qc__guarantee svg { color: var(--accent-deep); flex: 0 0 auto; }
.qc__guarantee b { font-weight: 700; }
.qc-list { margin-top: 26px; display: grid; gap: 14px; }
.qc-list li { list-style: none; display: flex; gap: 13px; align-items: flex-start; color: var(--muted2); font-size: 16px; }
.qc-list li svg { color: var(--accent-deep); flex: 0 0 auto; margin-top: 3px; }
.qc-list b { color: var(--ink2); font-weight: 600; }

/* ===========================================================
   ROUTE MAP
   =========================================================== */
.map__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.map__head .lead { margin-top: 18px; }
.modes { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.mode-btn {
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  padding: 11px 22px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: all .22s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.mode-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.mode-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.map-stage {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(120% 100% at 80% 10%, #1A2029 0%, var(--surface) 60%);
  padding: 18px; overflow: hidden;
}
.map-stage svg { width: 100%; height: auto; display: block; }
.map-eta {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px;
}
.map-eta__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 28px; text-align: center; min-width: 150px;
}
.map-eta__num { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--accent); }
.map-eta__lbl { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* map svg node styling driven by classes */
.route-line { fill: none; stroke: color-mix(in srgb, var(--accent) 50%, transparent); stroke-width: 1.8; stroke-linecap: round; }
.route-line--major { stroke: var(--accent); stroke-width: 2.6; }
.node circle.node__dot { fill: var(--surface); stroke: var(--line); stroke-width: 2; transition: fill .4s var(--ease), stroke .4s var(--ease); }
.node.lit circle.node__dot { fill: var(--accent); stroke: var(--accent); }
.node--major.lit circle.node__dot { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent)); }
.node text { fill: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: 12px; transition: fill .4s var(--ease); }
.node--major text { fill: var(--ink); font-size: 13px; }
.node.lit text { fill: var(--ink); }
.node--hub .node__dot { fill: var(--accent); stroke: var(--accent-deep); stroke-width: 2; }
.node--hub text { fill: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .08em; }
.hub-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .5; transform-box: fill-box; transform-origin: center; animation: hubpulse 2.4s var(--ease) infinite; }
@keyframes hubpulse { 0% { transform: scale(.6); opacity: .6; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hub-ring { animation: none; } }
.cargo { fill: var(--accent); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 80%, transparent)); }

/* ===========================================================
   CALCULATOR
   =========================================================== */
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.calc__form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px);
}
.calc-field { margin-bottom: 22px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 9px; font-weight: 500; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  font-family: var(--font-body); font-size: 14px; padding: 10px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer;
  transition: all .2s var(--ease); flex: 1; min-width: fit-content;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--accent); }
.calc-input, .calc-select {
  width: 100%; font-family: var(--font-body); font-size: 16px; padding: 13px 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color .2s var(--ease);
}
.calc-input:focus, .calc-select:focus { outline: none; border-color: var(--accent); }
.calc-input::placeholder { color: #59636E; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.calc__result {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column;
}
.calc__result-lbl { color: var(--muted); font-size: 14px; }
.calc__result-eta { margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); }
.calc__result-block { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.calc__result-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--accent); line-height: 1; }
.calc__result-sub { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 34ch; }
.calc__result .btn { margin-top: auto; }
.calc__disclaim { font-size: 12.5px; color: #59636E; margin-top: 18px; }

/* ===========================================================
   PROCESS TIMELINE
   =========================================================== */
.proc { position: relative; }
.proc__wrap { display: grid; grid-template-columns: 240px 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.proc__sticky { position: sticky; top: 120px; }
.proc__track { position: relative; padding-left: 40px; }
.proc__track::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line2);
}
.proc__fill {
  position: absolute; left: 13px; top: 8px; width: 2px; background: var(--accent-deep);
  height: 0; transition: height .15s linear;
}
.proc-step { position: relative; padding: 0 0 clamp(40px, 5vw, 64px); }
.proc-step:last-child { padding-bottom: 0; }
.proc-step__dot {
  position: absolute; left: -34px; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--line2); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--muted2);
  font-variant-numeric: tabular-nums; transition: all .3s var(--ease); z-index: 2;
}
.proc-step.active .proc-step__dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.proc-step__t { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--ink); transition: opacity .3s; opacity: .5; }
.proc-step.active .proc-step__t { opacity: 1; }
.proc-step__d { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 52ch; }

/* ===========================================================
   CASES
   =========================================================== */
.cases__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 28px; transition: transform .28s var(--ease), border-color .28s var(--ease);
  display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.case__seg { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.case__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-top: 14px; color: var(--ink); }
.case__metrics { margin-top: 22px; display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.case__metric { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.case__metric dt { color: var(--muted); font-size: 14px; }
.case__metric dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.case__effect { margin-top: 22px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ===========================================================
   TRUST
   =========================================================== */
.trust__cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery image-slot { border-radius: var(--r-md); border: 1px solid var(--line); }
.gallery image-slot:first-child { grid-column: 1 / -1; height: 240px; }
.gallery image-slot:not(:first-child) { height: 160px; }
.reviews { display: grid; gap: 16px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 28px; }
.review__text { font-size: 16.5px; line-height: 1.55; }
.review__by { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.review__av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); flex: 0 0 auto; display: grid; place-items: center; color: var(--accent-ink); font-weight: 700; font-family: var(--font-head); }
.review__meta { font-size: 13.5px; color: var(--muted); }
.review__meta b { color: var(--ink); font-weight: 600; display: block; font-size: 14.5px; }
.guarantees { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.guarantee { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: var(--muted); }
.guarantee svg { color: var(--accent); flex: 0 0 auto; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line2); }
.faq-item { border-bottom: 1px solid var(--line2); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink2);
}
.faq-q__icon { flex: 0 0 auto; transition: transform .3s var(--ease); color: var(--accent-deep); }
.faq-item.open .faq-q__icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a__inner { padding: 0 0 26px; color: var(--muted2); font-size: 16px; line-height: 1.6; max-width: 60ch; }

/* ===========================================================
   FINAL CTA
   =========================================================== */
.final { background: var(--bg); position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%);
  pointer-events: none;
}
.final__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; position: relative; }
.final__title { font-size: clamp(2rem, 4vw, 3.2rem); }
.final__sub { margin-top: 22px; }
.final__msgr { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.msgr-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-head);
  font-weight: 600; font-size: 14px; transition: all .2s var(--ease);
}
.msgr-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
}
.form__row { margin-bottom: 18px; }
.form label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.form input, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; padding: 14px 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color .2s var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form input.invalid, .form textarea.invalid { border-color: #E5614A; }
.form .err { color: #E5614A; font-size: 12.5px; margin-top: 6px; display: none; }
.form .err.show { display: block; }
.form textarea { resize: vertical; min-height: 80px; }
.form .btn { width: 100%; margin-top: 6px; }
.form__success {
  display: none; text-align: center; padding: 30px 10px;
}
.form__success.show { display: block; }
.form__success svg { color: var(--accent); }
.form__success h3 { margin-top: 16px; font-size: 22px; }
.form__success p { margin-top: 10px; color: var(--muted); }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__desc { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 36ch; line-height: 1.6; }
.footer__col h4 { font-family: var(--font-head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 12px; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ===========================================================
   SCROLL REVEAL
   =========================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .route-line { stroke-dashoffset: 0 !important; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero__grid, .imp__grid, .pay__grid, .qc__grid, .calc__grid, .proc__wrap, .trust__cols, .faq__grid, .final__grid, .footer__grid {
    grid-template-columns: 1fr;
  }
  .svc-grid, .cases-grid { grid-template-columns: 1fr 1fr; }
  .proc__sticky { position: static; }
  .hero__visual { min-height: 360px; }
  .nav, .msgr-links { display: none; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .header.menu-open .nav {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px var(--gutter); gap: 18px;
  }
  .statbar__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .svc-grid, .cases-grid, .brands, .calc-row { grid-template-columns: 1fr; }
  .statbar__grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .pay-step { grid-template-columns: auto 1fr; }
  .pay-step__cur { display: none; }
  .gallery image-slot:not(:first-child) { height: 130px; }
}

/* ===========================================================
   ALTERNATE PALETTES  (data-theme on <html>)
   default = Slate + Amber (defined in :root)
   =========================================================== */
:root { transition: none; }
body, .header, .statbar, .pay, .map-stage, .svc, .brand-card, .case, .review, .calc__form, .calc__result, .form, .footer, .hero-card, .hero-float, .pay-step, .mode-btn, .map-eta__card {
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
}

:root[data-theme="azure"] {
  --bg: #0B0F17; --surface: #141A24; --surface-2: #1A222E; --line: #232C3A;
  --accent: #4F9DF7; --accent-deep: #2F7FE0; --accent-ink: #07101D;
}
:root[data-theme="emerald"] {
  --bg: #0B1210; --surface: #141C19; --surface-2: #1A2420; --line: #233029;
  --accent: #2FBF77; --accent-deep: #1E9D5E; --accent-ink: #05140C;
}
:root[data-theme="indigo"] {
  --bg: #0E0F1A; --surface: #171827; --surface-2: #1D1E30; --line: #282A40;
  --accent: #8B7CF6; --accent-deep: #6D5AE6; --accent-ink: #0B0820;
}
@media (prefers-reduced-motion: reduce) {
  body, .header, .statbar, .pay, .map-stage, .svc, .brand-card, .case, .review, .calc__form, .calc__result, .form, .footer, .hero-card, .hero-float, .pay-step, .mode-btn, .map-eta__card { transition: none; }
}

/* palette switcher */
.theme-switch {
  position: fixed; left: 20px; bottom: 20px; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 14px 9px 16px;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.8);
}
.theme-switch__lbl {
  font-family: var(--font-head); font-weight: 600; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.theme-switch__dots { display: flex; gap: 9px; }
.theme-dot {
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid transparent; position: relative;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.theme-dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.theme-dot:hover { transform: translateY(-2px); }
.theme-dot.active { border-color: var(--sw); }
@media (max-width: 600px) {
  .theme-switch { left: 12px; bottom: 12px; padding: 8px 12px; gap: 9px; }
  .theme-switch__lbl { display: none; }
}

/* ===========================================================
   MEDIA PLACEHOLDERS  (заменить на реальные фото)
   =========================================================== */
.media-slot{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  text-align:center; padding:18px; overflow:hidden;
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--surface-2)), var(--surface));
  color:var(--muted); border:1px dashed var(--line);
}
.hero-card .media-slot, .qc__media .media-slot{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.gallery .media-slot{ border-radius:var(--r-md); border:1px dashed var(--line); }
.gallery .media-slot:first-child{ grid-column:1 / -1; height:240px; }
.gallery .media-slot:not(:first-child){ height:160px; }
.media-slot__ic{ width:30px; height:30px; opacity:.55; color:var(--accent); }
.media-slot__cap{ font-family:var(--font-head); font-weight:600; font-size:13.5px; color:var(--ink); }
.media-slot__sub{ font-size:11.5px; color:var(--muted); letter-spacing:.02em; }
@media (max-width:600px){ .gallery .media-slot:not(:first-child){ height:130px; } }

.media-slot.has-img{ padding:0; border:0; background:none; gap:0; }
.media-slot.has-img img{ width:100%; height:100%; object-fit:cover; display:block; }

/* hero-float: аккуратно на мобиле (не вылезать за край, без параллакс-дёрганья) */
@media (max-width: 980px) {
  .hero-float { top: 14px; right: 14px; bottom: auto; left: auto; transform: none !important; }
}
@media (max-width: 600px) {
  .hero-float { padding: 13px 16px; min-width: 0; max-width: 62%; }
  .hero-float__num { font-size: 22px; }
}

/* ===== СВЕТЛАЯ ТЕМА (корпоративная главная) ===== */
:root[data-theme="light"]{
  --bg:#F4F7F5; --surface:#FFFFFF; --surface-2:#EDF1EF; --ink:#101814; --muted:#586B62; --line:#E2E8E4;
  --accent:#1E9D5E; --accent-deep:#15814B; --accent-ink:#FFFFFF;
}
:root[data-theme="light"] .hero-card{box-shadow:0 30px 70px -40px rgba(16,24,20,.35)}
:root[data-theme="light"] .logo__ecg{color:var(--ink)}

/* ===== СВЕТЛАЯ ТЕМА · ритм, контраст, глубина ===== */
:root[data-theme="light"]{ --bg:#EDF1EE; --surface-2:#E6ECE8; --line:#E0E7E2; }
/* hero — мягкое изумрудное свечение, не пустой лист */
:root[data-theme="light"] .hero{ background:radial-gradient(920px 520px at 92% -12%, rgba(30,157,94,.08), transparent 60%); }
/* statbar — тёмный фичер-бэнд */
:root[data-theme="light"] .statbar{ background:#0E1A14; border-block:1px solid #1B2A22; }
:root[data-theme="light"] .statbar .stat{ border-left-color:#22342B; }
:root[data-theme="light"] .statbar .stat:first-child{ border-left:0; }
:root[data-theme="light"] .statbar .stat__num{ color:#F4F7F5; }
:root[data-theme="light"] .statbar .stat__num .accent{ color:#34C97E; }
:root[data-theme="light"] .statbar .stat__lbl{ color:#93A89D; }
/* о-компании — чистый белый бэнд, карточки брендов серые */
:root[data-theme="light"] #o-kompanii{ background:#FFFFFF; }
:root[data-theme="light"] .brand-card{ background:var(--surface-2); }
/* контакты — мягкий изумрудный wash */
:root[data-theme="light"] .final{ background:#E7F1EB; }
/* футер — тонированный серый */
:root[data-theme="light"] .footer{ background:var(--surface-2); border-top-color:var(--line); }
/* глубина карточек */
:root[data-theme="light"] .dir{ box-shadow:0 1px 2px rgba(16,24,20,.04),0 10px 30px -16px rgba(16,24,20,.13); }
:root[data-theme="light"] .dir:hover{ box-shadow:0 2px 4px rgba(16,24,20,.05),0 18px 44px -18px rgba(16,24,20,.20); }
:root[data-theme="light"] .brand-card{ box-shadow:0 1px 2px rgba(16,24,20,.04),0 8px 22px -14px rgba(16,24,20,.12); }
:root[data-theme="light"] .form{ box-shadow:0 14px 50px -24px rgba(16,24,20,.20); }
:root[data-theme="light"] .header.scrolled{ box-shadow:0 1px 0 var(--line),0 10px 26px -18px rgba(16,24,20,.14); }

/* ===== СВЕТЛАЯ ТЕМА · WOW-апгрейд ===== */
/* хедер — тёмный, не сливается со светлым фоном */
:root[data-theme="light"] .header{ background:rgba(13,24,18,.90); border-bottom:1px solid #1E2E25; }
:root[data-theme="light"] .header.scrolled{ background:rgba(11,20,15,.96); box-shadow:0 16px 36px -22px rgba(0,0,0,.55); }
:root[data-theme="light"] .header .logo__ecg{ color:#F4F7F5; }
:root[data-theme="light"] .header .logo__full{ color:#8FA399; }
:root[data-theme="light"] .header .nav>a,
:root[data-theme="light"] .header .nav-dd__t{ color:#C8D4CE; }
:root[data-theme="light"] .header .nav>a:hover,
:root[data-theme="light"] .header .nav-dd__t:hover{ color:#fff; }
:root[data-theme="light"] .header .burger span{ background:#F4F7F5; }
:root[data-theme="light"] .header.menu-open .nav{ background:#0D1812; border-bottom-color:#1E2E25; }
@media(max-width:980px){ :root[data-theme="light"] .header.menu-open .nav-dd__inner a{ color:#C8D4CE; } }

/* эйбрау — пилюля */
:root[data-theme="light"] .eyebrow{ background:color-mix(in srgb,var(--accent) 9%,#fff); border:1px solid color-mix(in srgb,var(--accent) 20%,transparent); border-radius:100px; padding:6px 13px 6px 11px; }
:root[data-theme="light"] .eyebrow::before{ width:7px; height:7px; border-radius:50%; }

/* плавающие чипсы в hero */
.hero-chip{ position:absolute; background:var(--surface); border:1px solid var(--line); border-radius:100px; padding:9px 16px; font-family:var(--font-head); font-weight:600; font-size:14px; color:var(--ink); box-shadow:0 16px 38px -16px rgba(16,24,20,.32); display:inline-flex; align-items:center; gap:8px; z-index:3; animation:chipFloat 5s var(--ease) infinite; }
.hero-chip .chip-dot{ width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent); }
.hero-chip--1{ top:-16px; left:-20px; color:var(--accent-deep); }
.hero-chip--2{ bottom:48px; left:-26px; animation-delay:.7s; }
.hero-chip--3{ top:78px; right:-14px; animation-delay:1.4s; }
@keyframes chipFloat{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
@media(max-width:600px){ .hero-chip--2{display:none} .hero-chip--1{left:2px;top:-12px} .hero-chip--3{right:2px} }

/* бегущая лента брендов */
.marquee-band{ background:#fff; border-block:1px solid var(--line); padding:24px 0 30px; overflow:hidden; }
.marquee-lbl{ font-family:var(--font-head); font-weight:600; font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.marquee{ display:flex; width:max-content; margin-top:16px; animation:marquee 32s linear infinite; }
.marquee:hover{ animation-play-state:paused; }
.marquee__seq{ display:flex; gap:54px; padding-right:54px; align-items:center; }
.marquee__seq span{ font-family:var(--font-head); font-weight:700; font-size:26px; color:#A6B5AD; white-space:nowrap; transition:color .2s var(--ease); }
.marquee__seq span:hover{ color:var(--accent-deep); }
@keyframes marquee{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* sheen-блик на карточках направлений */
:root[data-theme="light"] .dir::before{ content:""; position:absolute; inset:0; background:linear-gradient(115deg,transparent 42%,rgba(30,157,94,.07) 50%,transparent 58%); transform:translateX(-120%); transition:transform .7s var(--ease); pointer-events:none; }
:root[data-theme="light"] .dir:hover::before{ transform:translateX(120%); }

@media(prefers-reduced-motion:reduce){ .hero-chip,.marquee{ animation:none; } :root[data-theme="light"] .dir::before{ display:none; } }
/* hero-tag: белый текст на светлой теме (подложка тёмная) */
:root[data-theme="light"] .hero-card__tag{ color:#F4F7F5; border-color:rgba(255,255,255,.18); }
/* hero-trust как пилюли (светлая тема) */
:root[data-theme="light"] .hero__trust{ gap:9px 10px; margin-top:34px; }
:root[data-theme="light"] .hero__trust .dot{ display:none; }
:root[data-theme="light"] .hero__trust > span:not(.dot){ display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:100px; padding:8px 15px; font-family:var(--font-head); font-weight:600; font-size:13.5px; color:var(--ink); box-shadow:0 3px 10px -5px rgba(16,24,20,.14); }
:root[data-theme="light"] .hero__trust > span:not(.dot)::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); flex:none; }
/* hero-card под вертикальное фото (3:4, без обрезки) */
.hero-card--tall{ aspect-ratio:3/4; height:auto; min-height:0; }
:root[data-theme="light"] .hero-card--tall .hero-card__overlay{ background:linear-gradient(to top, rgba(13,24,18,.58), transparent 42%); }
/* фото-окно правее, аккуратным портретом */
:root[data-theme="light"] .hero-card--tall{ max-width:460px; margin-left:auto; }
@media(max-width:980px){ :root[data-theme="light"] .hero-card--tall{ max-width:380px; margin:0 auto; } }
/* подпись основателя на фото */
.hero-card__tag--founder{ display:flex; flex-direction:column; gap:2px; line-height:1.3; padding:11px 16px; font-size:12.5px; max-width:none; }
.hero-card__tag--founder b{ font-family:var(--font-head); font-weight:700; font-size:15px; }
/* плашка "1000+ брендов" выше, не на текст */
.hero-chip--2{ top:36px; left:4px; bottom:auto; }
/* ссылка на блог в подписи основателя */
.hero-card__tag--founder span{ display:block; }
.founder-blog{ display:inline-flex; align-items:center; gap:4px; margin-top:6px; font-family:var(--font-head); font-weight:700; font-size:12.5px; color:#34C97E; }
.founder-blog:hover{ color:#fff; }
