/* ============================================================
   АМТ Логістика — styles.css
   Токени тем -> базові стилі -> компоненти -> адаптив
   ============================================================ */

/* ---------- 1. Кольорові токени ---------- */

:root {
  color-scheme: light;

  --bg:        #F1F4F7;
  --surface:   #FFFFFF;
  --inset:     #E7ECF1;
  --text:      #0E1A26;
  --text-2:    #55646F;
  --text-3:    #8794A0;
  --line:      #D6DEE6;
  --line-soft: #E5EAF0;

  --accent:      #D95A16;
  --accent-hot:  #E36623;
  --accent-ink:  #FFFFFF;
  --accent-soft: rgba(227, 102, 35, .10);
  --accent-line: rgba(227, 102, 35, .30);

  --steel:      #14618C;
  --steel-soft: rgba(20, 97, 140, .10);

  --shadow-sm: 0 1px 2px rgba(14, 26, 38, .06), 0 2px 8px rgba(14, 26, 38, .04);
  --shadow-md: 0 2px 6px rgba(14, 26, 38, .07), 0 12px 32px rgba(14, 26, 38, .08);
  --shadow-lg: 0 4px 12px rgba(14, 26, 38, .10), 0 24px 60px rgba(14, 26, 38, .14);

  --wa: #25D366;
  --tg: #2AABEE;
  --vb: #7360F2;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --maxw: 1200px;
  --header-h: 68px;
}

/* Темна тема: автоматично за системними налаштуваннями... */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;

    --bg:        #0A1017;
    --surface:   #121B25;
    --inset:     #18232F;
    --text:      #E9EEF3;
    --text-2:    #97A6B4;
    --text-3:    #6B7B8B;
    --line:      #24313F;
    --line-soft: #1C2733;

    --accent:      #F1782F;
    --accent-hot:  #FF8C45;
    --accent-ink:  #17110B;
    --accent-soft: rgba(241, 120, 47, .13);
    --accent-line: rgba(241, 120, 47, .32);

    --steel:      #57AEDC;
    --steel-soft: rgba(87, 174, 220, .12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .38), 0 14px 34px rgba(0, 0, 0, .40);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .45), 0 28px 64px rgba(0, 0, 0, .55);
  }
}

/* ...або вручну через тумблер у хедері */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #0A1017;
  --surface:   #121B25;
  --inset:     #18232F;
  --text:      #E9EEF3;
  --text-2:    #97A6B4;
  --text-3:    #6B7B8B;
  --line:      #24313F;
  --line-soft: #1C2733;

  --accent:      #F1782F;
  --accent-hot:  #FF8C45;
  --accent-ink:  #17110B;
  --accent-soft: rgba(241, 120, 47, .13);
  --accent-line: rgba(241, 120, 47, .32);

  --steel:      #57AEDC;
  --steel-soft: rgba(87, 174, 220, .12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .38), 0 14px 34px rgba(0, 0, 0, .40);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .45), 0 28px 64px rgba(0, 0, 0, .55);
}

/* ---------- 2. База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.95rem, 1.4rem + 2.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.08rem, .98rem + .5vw, 1.32rem); line-height: 1.28; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Ярлик секції — набирається моноширинним, як поле в накладній */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: .6;
}

.lede { color: var(--text-2); font-size: clamp(1rem, .96rem + .25vw, 1.12rem); max-width: 62ch; }

section { padding-block: clamp(56px, 7vw, 104px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- 3. Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hot); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: var(--accent); color: var(--accent-ink); }

.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- 4. Хедер ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header.is-stuck { border-bottom-color: var(--line); }

.header .wrap { display: flex; align-items: center; gap: 20px; }

/* Логотип: знак кольором бренду + текст поточним кольором теми */
.svg_logo_orange { fill: var(--accent); }
.white_fill { fill: currentColor; }

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  color: var(--text);
}
.brand-mark { height: 38px; width: 38px; display: block; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-text b {
  font-family: Unbounded, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.brand-text i {
  font-style: normal;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 4px;
}
.brand:hover .svg_logo_orange { fill: var(--accent-hot); }

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a {
  padding: 8px 11px;
  white-space: nowrap;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}
.nav a:hover { color: var(--text); background: var(--inset); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.header-phone {
  font-family: "IBM Plex Mono", monospace;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  padding: 6px 4px;
}
.header-phone:hover { color: var(--accent); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: block; }
}

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.burger svg { width: 20px; height: 20px; }

/* Мобільне меню */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 55;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 12px clamp(16px, 4vw, 32px) 22px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 13px 6px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { margin-top: 14px; }

/* ---------- 5. Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 76px) clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: .55em; }
.hero h1 .accent { color: var(--accent); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
}
.chip svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- 6. Табло маршрутів (сигнатурний елемент) ---------- */

.board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--inset);
}
.board-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
}
.board-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.board-dot i {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.board-body { padding: 20px; }

.field { margin-bottom: 14px; }
.field-label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

select, input[type="tel"], input[type="text"], textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  appearance: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
select { padding-right: 42px; cursor: pointer; }
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }

.swap-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.swap-btn {
  width: 42px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, transform .3s ease;
}
.swap-btn:hover { color: var(--accent); border-color: var(--accent); }
.swap-btn.spin { transform: rotate(180deg); }
.swap-btn svg { width: 17px; height: 17px; }

/* Результат */
.board-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--r-md);
  background: var(--accent-soft);
}
.result-route {
  font-family: "IBM Plex Mono", monospace;
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--text-2);
  margin-bottom: 10px;
}
.result-time {
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
}
.result-time small { font-size: .5em; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.result-modes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
}
.mode-tag svg { width: 14px; height: 14px; color: var(--accent); }
.result-note { font-size: .8rem; color: var(--text-2); margin-top: 12px; }
.board-foot { padding: 0 20px 20px; }
.board-fine { font-size: .76rem; color: var(--text-3); text-align: center; margin-top: 10px; }

/* ---------- 7. Смуга цифр ---------- */

.stats { border-block: 1px solid var(--line); background: var(--surface); padding-block: clamp(32px, 4vw, 46px); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 18px 16px; text-align: center; }
.stat b {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--accent);
  line-height: 1.1;
}
.stat span { display: block; font-size: .78rem; color: var(--text-2); margin-top: 6px; line-height: 1.35; }

/* ---------- 8. Сітки карток ---------- */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card-link:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Напрямки */
.dir-card { display: flex; flex-direction: column; }
.dir-flag { display: flex; gap: 6px; margin-bottom: 16px; }
.dir-flag svg {
  width: 34px;
  height: 23px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset, var(--shadow-sm);
}
.dir-card h3 { margin-bottom: .45em; }
.dir-card p { font-size: .9rem; color: var(--text-2); flex: 1; }
.dir-modes { display: flex; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.dir-modes span {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.dir-modes svg { width: 17px; height: 17px; }
.dir-cta {
  margin-top: 14px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dir-cta:hover { gap: 10px; }
.dir-cta::after { content: "→"; transition: transform .18s ease; }

/* Послуги */
.service {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
}
.service-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
}
.service-icon svg { width: 23px; height: 23px; }
.service ul { margin: 14px 0 0; padding: 0; list-style: none; }
.service li {
  position: relative;
  padding-left: 22px;
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: 7px;
}
.service li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.service .btn { margin-top: 18px; }

/* Переваги */
.why h3 { font-size: 1.02rem; margin-bottom: .4em; }
.why p { font-size: .88rem; color: var(--text-2); }
.why-icon { color: var(--accent); margin-bottom: 14px; }
.why-icon svg { width: 24px; height: 24px; }

/* ---------- 9. Схема роботи ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { position: relative; padding: 0 18px 0 0; }
.step-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-bar { position: relative; height: 3px; background: var(--line); margin-bottom: 18px; border-radius: 2px; }
.step-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 2px;
}
.step:nth-child(1) .step-bar::before { width: 25%; }
.step:nth-child(2) .step-bar::before { width: 50%; }
.step:nth-child(3) .step-bar::before { width: 75%; }
.step:nth-child(4) .step-bar::before { width: 100%; }
.step h3 { font-size: 1rem; margin-bottom: .4em; }
.step p { font-size: .87rem; color: var(--text-2); }

/* ---------- 10. Кейси ---------- */

.cases { display: grid; gap: 12px; }
.case {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.case > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 54px 20px 22px;
  position: relative;
  display: block;
}
.case > summary::-webkit-details-marker { display: none; }
.case-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.case-title { display: block; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: -.015em; }
.case-meta { display: block; font-size: .85rem; color: var(--text-2); margin-top: 6px; }
.case > summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 27px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.case[open] > summary::after { transform: rotate(-135deg); }
.case-body { padding: 0 22px 22px; border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 18px; }
.case-body h4 { font-family: Manrope, sans-serif; font-weight: 700; font-size: .92rem; margin: 16px 0 8px; }
.case-body ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: .9rem; }
.case-body li { margin-bottom: 6px; }

/* ---------- 11. Відгуки ---------- */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.review-mark { font-family: Unbounded, sans-serif; font-size: 2.4rem; line-height: .8; color: var(--accent); opacity: .35; margin-bottom: 10px; }
.review p { font-size: .9rem; color: var(--text-2); flex: 1; }
.review cite { font-style: normal; font-weight: 700; font-size: .87rem; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ---------- 12. Тарифи ---------- */

.tariffs-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: .76rem;
  color: var(--text-2);
  line-height: 1.7;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 24px;
}
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 620px; }
thead th {
  text-align: left;
  padding: 14px 18px;
  background: var(--inset);
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: "IBM Plex Mono", monospace; white-space: nowrap; font-size: .85rem; }
tr.group td { background: var(--inset); font-weight: 700; }
.table-fine { font-size: .78rem; color: var(--text-3); margin-top: 12px; }

/* ---------- 13. FAQ ---------- */

.faq-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: .87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.faq-panel { display: none; }
.faq-panel.is-active { display: block; }

.qa { border-bottom: 1px solid var(--line); }
.qa > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: .98rem;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 13px; height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}
.qa > summary::before {
  content: "";
  position: absolute;
  right: 13.5px; top: 50%;
  width: 2px; height: 13px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: opacity .2s ease, transform .2s ease;
}
.qa[open] > summary::before { opacity: 0; transform: translateY(-50%) rotate(90deg); }
.qa-body { padding: 0 40px 20px 0; color: var(--text-2); font-size: .93rem; }
.qa-body ul { padding-left: 20px; margin: 8px 0 0; }
.qa-body li { margin-bottom: 5px; }

/* ---------- 14. Форма заявки ---------- */

.cta-band { background: var(--surface); border-block: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 5vw, 64px); align-items: start; }

.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.contact-item .ci-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-item svg { width: 19px; height: 19px; }
.contact-item .ci-label { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.contact-item a { text-decoration: none; font-weight: 700; }
.contact-item a:hover { color: var(--accent); }
.contact-item .ci-sub { display: block; font-size: .87rem; color: var(--text-2); font-weight: 450; }

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card .field:last-of-type { margin-bottom: 18px; }

.radio-row { display: flex; gap: 8px; }
.radio-row label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .16s ease;
}
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row input:checked + span { color: var(--accent); }
.radio-row label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.radio-row label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-alt { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-alt-label { font-size: .8rem; color: var(--text-3); margin-bottom: 10px; }
.form-alt-row { display: flex; gap: 8px; justify-content: center; }
.alt-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all .16s ease;
}
.alt-btn svg { width: 20px; height: 20px; }
.alt-btn:hover { transform: translateY(-2px); }
.alt-btn[data-net="wa"]:hover { color: var(--wa); border-color: var(--wa); }
.alt-btn[data-net="tg"]:hover { color: var(--tg); border-color: var(--tg); }
.alt-btn[data-net="vb"]:hover { color: var(--vb); border-color: var(--vb); }

.form-fine { font-size: .78rem; color: var(--text-3); text-align: center; margin-top: 12px; }
.form-status { margin-top: 14px; padding: 13px 16px; border-radius: var(--r-md); font-size: .88rem; font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.form-status.is-err { display: block; background: var(--steel-soft); color: var(--steel); border: 1px solid var(--steel); }

/* ---------- 15. Футер ---------- */

.footer { padding-block: clamp(44px, 5vw, 64px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { font-family: Manrope, sans-serif; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { text-decoration: none; font-size: .9rem; color: var(--text-2); }
.footer a:hover { color: var(--accent); }
.footer-about { font-size: .88rem; color: var(--text-2); margin-top: 16px; max-width: 34ch; }
.footer-brand .brand-mark { height: 42px; width: 42px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-3);
}

/* ---------- 16. Панель месенджерів ---------- */

.dock { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.dock-panel {
  width: 292px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.96);
}
.dock.is-open .dock-panel { opacity: 1; visibility: visible; transform: none; }

.dock-head { padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--inset); }
.dock-head b { display: block; font-family: Unbounded, sans-serif; font-size: .92rem; letter-spacing: -.01em; }
.dock-head span { font-size: .78rem; color: var(--text-2); }

.dock-list { padding: 10px; display: grid; gap: 8px; }
.dock-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
}
.dock-net { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: #fff; }
.dock-net svg { width: 19px; height: 19px; }
.dock-net.wa { background: var(--wa); }
.dock-net.tg { background: var(--tg); }
.dock-net.vb { background: var(--vb); }
.dock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dock-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: var(--r-sm);
  background: var(--inset);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  transition: background .16s ease, color .16s ease;
}
.dock-actions a svg { width: 13px; height: 13px; }
.dock-actions a:hover { background: var(--accent); color: var(--accent-ink); }

.dock-foot { padding: 4px 10px 12px; }
.dock-foot a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: .86rem;
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
}
.dock-foot a svg { width: 15px; height: 15px; }

.dock-fab {
  width: 58px; height: 58px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease, background .2s ease;
}
.dock-fab:hover { transform: scale(1.06); }
.dock-fab svg { width: 25px; height: 25px; }
.dock-fab .i-close { display: none; }
.dock.is-open .dock-fab .i-chat { display: none; }
.dock.is-open .dock-fab .i-close { display: block; }
.dock-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--accent);
  animation: ring 2.6s ease-out infinite;
  pointer-events: none;
}
.dock.is-open .dock-fab::after { display: none; }
@keyframes ring {
  0% { transform: scale(1); opacity: .7 }
  70%, 100% { transform: scale(1.5); opacity: 0 }
}
.dock-fab { position: relative; }

/* ---------- 17. Поява при скролі ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 18. Адаптив ---------- */

@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header .wrap { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .header-phone { display: none; }
  .header-actions .btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --header-h: 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .brand-mark { height: 32px; width: 32px; }
  .brand-text b { font-size: 1rem; }
  .brand-text i { font-size: .52rem; letter-spacing: .28em; }

  /* Панель месенджерів як нижній лист */
  .dock { right: 14px; left: 14px; bottom: 14px; align-items: stretch; }
  .dock-panel { width: auto; }
  .dock-fab { align-self: flex-end; }
  .radio-row { flex-direction: row; }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .dock-actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- 19. Друк ---------- */
@media print {
  .header, .dock, .hero-cta, .form-card, .burger { display: none !important; }
  body { background: #fff; color: #000; }
}
