/* Общие стили сайта Kuaidi (все страницы) */
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"), url("fonts/manrope.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded.woff2") format("woff2"), url("fonts/unbounded.woff") format("woff"); font-weight: 500 800; font-display: swap; }
:root {
  --paper: #ECEEF6;
  --card: #FFFFFF;
  --ink: #17183A;
  --muted: #5B5E80;
  --line: #C8CBE0;
  --indigo: #3438C9;
  --violet: #6E4DF5;
  --btn: #3438C9;          /* фон главной кнопки */
  --btn-hover: #2A2EB5;
  --btn-edge: #1F2290;     /* «ступенька» под кнопкой */
  --field: #FFFFFF;
  --soft: #EEEFFF;         /* выбранная доставка */
  --row: #EDEEF5;          /* линии в расчёте */
  --head: #F6F7FB;         /* шапка таблицы */
  --shadow: rgba(23, 24, 58, 0.45);
  --ring: rgba(52, 56, 201, 0.18);
  --band: #3438C9;
  --band-btn: #FFFFFF;
  --band-btn-ink: #3438C9;
  --final-ring: #17183A;   /* обводка шага 6 */
  --g1: #3A3FE0; --g2: #6E4DF5; --g3: #A44BEB;
  --grad: linear-gradient(120deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --glow-a: rgba(58, 63, 224, 0.22);
  --glow-b: rgba(164, 75, 235, 0.18);
  --display: "Unbounded", "Arial Black", Arial, sans-serif;
  --body: "Manrope", Arial, sans-serif;
  --wrap: 1120px;
}
/* тёмная версия: <html lang="ru" data-theme="dark"> */
:root[data-theme="dark"] {
  --paper: #0E0F2B;
  --card: #191B44;
  --ink: #ECEDFF;
  --muted: #A4A7D0;
  --line: #34386E;
  --indigo: #8E91FF;
  --violet: #7B5CFF;
  --btn: #4D51F0;
  --btn-hover: #5B5FF5;
  --btn-edge: #2A2D9E;
  --field: #12143A;
  --soft: #272B6E;
  --row: #2A2D60;
  --head: #20235A;
  --shadow: rgba(0, 0, 0, 0.6);
  --ring: rgba(142, 145, 255, 0.25);
  --band: #3438C9;
  --band-btn: #FFFFFF;
  --band-btn-ink: #2A2EB5;
  --final-ring: #ECEDFF;
  --glow-a: rgba(58, 80, 255, 0.40);
  --glow-b: rgba(150, 70, 240, 0.34);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(760px 520px at 8% -6%, var(--glow-a), transparent 70%),
    radial-gradient(820px 600px at 92% 4%, var(--glow-b), transparent 70%),
    var(--paper);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
}
a { color: var(--indigo); text-decoration: none; }
a:not(.btn):hover { opacity: .8; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.logo { font: 800 20px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--indigo); font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-weight: 700; }
.top-link { font-weight: 700; font-size: 15px; text-decoration: none; }

/* ---------- первый экран ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; padding-top: 40px; padding-bottom: 88px; }
h1 {
  font: 800 clamp(34px, 5.2vw, 60px)/1.04 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 0 32px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.platforms li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px; border-radius: 14px;
  font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer;
}
.btn-main { background: var(--grad); color: #fff; box-shadow: 0 6px 0 var(--btn-edge); }
.btn-main:hover { filter: brightness(1.1); }
.btn-main:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--btn-edge); }
.btn-ghost { color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--card); }

/* ---------- калькулятор-накладная ---------- */
.bill {
  position: relative;
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  padding: 30px 28px 26px;
  /* перфорация как у отрывной накладной — дырочки вырезаны маской, поэтому сквозь них виден фон */
  -webkit-mask:
    radial-gradient(circle at 7px 0, transparent 4px, #000 4.5px) 0 0 / 14px 51% repeat-x,
    radial-gradient(circle at 7px 100%, transparent 4px, #000 4.5px) 0 100% / 14px 51% repeat-x;
          mask:
    radial-gradient(circle at 7px 0, transparent 4px, #000 4.5px) 0 0 / 14px 51% repeat-x,
    radial-gradient(circle at 7px 100%, transparent 4px, #000 4.5px) 0 100% / 14px 51% repeat-x;
}
.bill-wrap { filter: drop-shadow(0 22px 30px var(--shadow)); }
.bill::before {   /* градиентная полоска сверху */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad);
}
.bill h2 { font: 700 20px/1.2 var(--display); margin: 0 0 4px; letter-spacing: -0.02em; }
.bill .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label, .field .lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--field);
  font: 500 17px var(--body); color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px var(--ring); }
.price-in { position: relative; }
.price-in input { font: 700 22px var(--display); padding-right: 44px; }
.price-in::after { content: "¥"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 700 20px var(--display); color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg { position: relative; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 6px 4px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; margin: 0;
}
.seg label small { font-weight: 500; color: var(--muted); font-size: 12px; }
.seg input:checked + label { border-color: var(--indigo); background: var(--soft); color: var(--indigo); }
.seg input:focus-visible + label { outline: 3px solid var(--violet); outline-offset: 2px; }

.total { border-top: 2px dashed var(--line); margin-top: 22px; padding-top: 18px; position: relative; }
.total-label { font-weight: 700; font-size: 14px; color: var(--muted); }
.total-sum { font: 800 clamp(38px, 6vw, 48px)/1.05 var(--display); letter-spacing: -0.03em; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.lines { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--row); }
.lines li span:last-child { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); margin: 14px 0 18px; }
.bill .btn { width: 100%; }
/* кнопка заказа в калькуляторе */
.btn-order { position: relative; overflow: hidden; gap: 12px; min-height: 60px; font-size: 18px; border-radius: 16px; }
.btn-order .tg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-order .order-text { font-variant-numeric: tabular-nums; }
.btn-order .order-arrow { font: 800 26px/1 var(--display); margin-left: auto; transition: transform .25s; }
.btn-order { justify-content: flex-start; padding: 0 22px; }
.btn-order::after {   /* блик пробегает по кнопке */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out 1.2s infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-order:hover .order-arrow { transform: translateX(4px); }
.order-hint { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
/* убираем стрелочки у поля с ценой */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- секции ---------- */
section.block { padding: 72px 0; }
h2.title { font: 800 clamp(26px, 3.6vw, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin: 0 0 14px; max-width: 18em; }
.intro { color: var(--muted); max-width: 36em; margin: 0 0 40px; }

/* маршрут посылки — это реальная последовательность, поэтому с номерами */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: st; position: relative; }
.route::before { content: ""; position: absolute; top: 21px; left: 22px; right: calc(100% / 6 - 22px); height: 3px; background: repeating-linear-gradient(90deg, var(--indigo) 0 10px, transparent 10px 18px); }
.route li { position: relative; padding-right: 16px; counter-increment: st; }
.route li::before {
  content: counter(st); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 3px solid var(--indigo);
  font: 800 16px var(--display); color: var(--indigo); position: relative; margin-bottom: 14px;
}
.route li:last-child::before { background: var(--grad); border-color: var(--final-ring); color: #fff; }
.route b { display: block; font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
.route p { margin: 0; font-size: 15px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 18px 0; border-top: 1.5px solid var(--ink); }
.facts li:last-child { border-bottom: 1.5px solid var(--ink); }
.facts b { display: block; font-size: 18px; margin-bottom: 4px; }
.facts p { margin: 0; color: var(--muted); }

.tariffs { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 6px; overflow: hidden; }
.tariffs th, .tariffs td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--row); vertical-align: top; }
.tariffs th { font-size: 14px; color: var(--muted); font-weight: 700; background: var(--head); }
.tariffs td:first-child { font-weight: 700; }

.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 700 26px var(--display); color: var(--indigo); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 44em; }

.cta-band { background: var(--grad); color: #fff; border-radius: 6px; padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font: 800 clamp(24px, 3.2vw, 34px)/1.15 var(--display); letter-spacing: -0.03em; margin: 0; max-width: 16em; }
.cta-band .btn-main { background: var(--band-btn); color: var(--band-btn-ink); box-shadow: 0 6px 0 var(--btn-edge); }
.cta-band .btn-main:hover { background: var(--band-btn); filter: brightness(0.95); }
.cta-band .btn-main:active { box-shadow: 0 3px 0 var(--btn-edge); }

footer { padding: 32px 0 40px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--row); margin-top: 72px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { margin: 0 0 6px; }
footer .tariffs-line { max-width: 34em; font-size: 14px; }

/* ---------- выбор города ---------- */
.city { position: relative; }
.city-btn {
  width: 100%; height: 50px; padding: 0 44px 0 14px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--field);
  font: 500 17px var(--body); color: var(--ink); position: relative;
}
.city-btn::after {   /* стрелочка вниз */
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.city-btn[aria-expanded="true"] { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--ring); }
.city-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.city-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -12px var(--shadow); overflow: hidden;
}
.city-pop[hidden] { display: none; }
.city-search { padding: 10px; border-bottom: 1px solid var(--row); }
.city-search input {
  width: 100%; height: 42px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--field); color: var(--ink); font: 500 16px var(--body);
}
.city-search input:focus { outline: none; border-color: var(--indigo); }
.city-body { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.city-back {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--row);
  background: var(--head); color: var(--indigo); font: 700 15px var(--body); cursor: pointer; text-align: left;
}
.city-back span { font: 800 22px/1 var(--display); }
.city-list { list-style: none; margin: 0; padding: 4px 0; }
.city-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; cursor: pointer; }
.city-item:hover, .city-item.active { background: var(--soft); }
.city-name { display: flex; flex-direction: column; font-weight: 600; font-size: 16px; line-height: 1.3; }
.city-name small { font-weight: 500; font-size: 13px; color: var(--muted); }
.city-arrow { font: 800 22px/1 var(--display); color: var(--indigo); }
.city-check { color: var(--indigo); font-weight: 800; }
.city-item.sel .city-name { color: var(--indigo); }
/* список «перетекает»: в регион — справа налево, назад — слева направо */
.slide-in { animation: city-in .22s ease-out; }
.slide-back { animation: city-back .22s ease-out; }
@keyframes city-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes city-back { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide-in, .slide-back { animation: none; } }

/* ---------- цвета страниц площадок: <html class="theme-95"> и т.п. ---------- */
:root[data-theme].theme-95 {   /* приглушённый зелёный */
  --paper: #0D1A16; --card: #15261F; --ink: #E8F2ED; --muted: #9DB5AA; --line: #2A4339;
  --indigo: #6CC79E; --violet: #4FB487; --btn-edge: #1F5A40; --field: #101F1A; --soft: #1E3A2E;
  --row: #213830; --head: #1A2F27; --ring: rgba(108, 199, 158, .22); --band-btn-ink: #2A7A55;
  --g1: #2C8A62; --g2: #36A174; --g3: #4DB487;
  --glow-a: rgba(60, 170, 120, .16); --glow-b: rgba(40, 140, 110, .12);
}
:root[data-theme].theme-poizon {   /* приглушённый синий */
  --paper: #0D1322; --card: #172036; --ink: #E8EDF7; --muted: #9EABC4; --line: #2C3A58;
  --indigo: #7FA7E8; --violet: #5D8EDB; --btn-edge: #26457E; --field: #111A2D; --soft: #213459;
  --row: #22304C; --head: #1B2741; --ring: rgba(127, 167, 232, .22); --band-btn-ink: #2F5BA8;
  --g1: #3566C9; --g2: #3F7BD6; --g3: #4C93D8;
  --glow-a: rgba(70, 120, 220, .18); --glow-b: rgba(60, 140, 200, .12);
}
:root[data-theme].theme-taobao {   /* приглушённый оранжевый */
  --paper: #1A130F; --card: #2A1E17; --ink: #F5EDE7; --muted: #C2AE9F; --line: #4A3527;
  --indigo: #E39A64; --violet: #D07D45; --btn-edge: #7A3F17; --field: #20170F; --soft: #43301F;
  --row: #3D2C20; --head: #33251B; --ring: rgba(227, 154, 100, .22); --band-btn-ink: #B5571C;
  --g1: #C9611F; --g2: #D8742E; --g3: #E08E4A;
  --glow-a: rgba(220, 120, 50, .16); --glow-b: rgba(200, 90, 30, .11);
}

/* ---------- главная ---------- */
.platforms a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.platforms a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.platforms li:has(a) { padding: 0; }
.platforms li a { padding: 6px 14px; }
.platforms li:has(a):hover { border-color: var(--c); }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.trust li::before { content: "✓"; color: var(--indigo); font-weight: 800; margin-right: 8px; }

.pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 26px 22px 22px; overflow: hidden;
  border-radius: 16px; border: 1.5px solid var(--line); color: var(--ink);
  background: var(--card);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.pcard:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 16px 36px -18px var(--c); opacity: 1; }
.pc-mark {   /* цветной квадрат с названием площадки */
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  min-width: 52px; height: 52px; padding: 0 10px; margin-bottom: 20px; border-radius: 14px;
  background: var(--c); color: #fff; font: 700 20px/1 "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pcard b { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.pc-text { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.pc-price { margin-top: auto; font-size: 14px; color: var(--muted); }
.pc-price span { color: var(--ink); font-weight: 800; }
.pc-more { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--c); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards li { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 24px 22px; }
.cards .num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; font: 800 15px var(--display); margin-bottom: 16px;
}
.cards b { display: block; font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.cards p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pcards { grid-template-columns: 1fr; } }

/* ---------- первый экран страниц площадок: по центру, без калькулятора ---------- */
.hero-center { text-align: center; padding-top: 40px; padding-bottom: 24px; }
.hero-center h1 { max-width: 15em; margin-left: auto; margin-right: auto; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .btns { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--ink);
  font: 700 14px/1.2 "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .02em;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 10px var(--indigo); }
.stats { list-style: none; margin: 48px auto 0; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.stats li { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.stats b { display: block; font: 800 24px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; color: var(--ink); }
.stats li > span { color: var(--muted); font-size: 15px; }
.calc-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; }
.calc-side h2.title { margin-top: 8px; }
@media (max-width: 880px) {
  .stats { grid-template-columns: 1fr; margin-top: 36px; }
  .calc-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- страницы площадок и доставки ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--indigo); opacity: 1; }
.prose { max-width: 44em; }
.prose p { margin: 0 0 16px; }
.prose h3 { font: 700 20px/1.3 var(--body); margin: 28px 0 8px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.links a { display: block; height: 100%; padding: 22px 22px 20px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); }
.links a:hover { border-color: var(--indigo); opacity: 1; }
.links b { display: block; font: 700 19px/1.25 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }
.links span { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; }
.tariffs td.num { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.table-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--indigo); opacity: 1; }
.foot-nav a:first-child { color: var(--ink); font-weight: 700; }

/* ---------- телефон ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; padding-bottom: 64px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { display: none; }
  /* на телефоне — отдельный пунктир между каждой парой кружков, ровно по центру */
  .route li:not(:last-child)::after { content: ""; position: absolute; left: 20.5px; top: 50px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--indigo); opacity: .55; }
  .route li { padding: 0 0 26px 64px; min-height: 44px; }
  .route li:last-child { padding-bottom: 0; }
  .route li::before { position: absolute; left: 0; top: 0; margin: 0; }
  section.block { padding: 56px 0; }
  .cta-band { padding: 36px 24px; }
  .tariffs th, .tariffs td { padding: 12px 10px; font-size: 15px; }
}
@media (max-width: 420px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .bill { padding: 26px 18px 22px; }
  .btns .btn { width: 100%; }
}
/* ---------- появление блоков при прокрутке ---------- */
html.js { overflow-x: clip; }
html.js body { overflow-x: clip; }
.js [data-reveal] {
  opacity: 0;
  transition: opacity .6s ease, transform .8s cubic-bezier(.2, .75, .2, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js [data-reveal="left"]  { transform: translateX(-56px); }
.js [data-reveal="right"] { transform: translateX(90px) rotate(1.5deg); }
.js [data-reveal="up"]    { transform: translateY(36px); }
.js [data-reveal="zoom"]  { transform: scale(.92); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* пунктир маршрута «прорисовывается» */
.js .route::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.3s cubic-bezier(.4, 0, .2, 1) .15s; }
.js .route.in::before { transform: none; }
@media (max-width: 880px) {
  .js .route li::after { transform: scaleY(0); transform-origin: center top; transition: transform .45s ease; }
  .js .route.in li::after { transform: none; }
  .js .route.in li:nth-child(2)::after { transition-delay: .2s; }
  .js .route.in li:nth-child(3)::after { transition-delay: .4s; }
  .js .route.in li:nth-child(4)::after { transition-delay: .6s; }
  .js .route.in li:nth-child(5)::after { transition-delay: .8s; }
}

/* ---------- плашка про cookies ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px var(--shadow);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 14px; color: var(--muted); }
.cookie .btn { min-height: 44px; padding: 0 18px; font-size: 15px; flex: none; }
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: stretch; text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
  .btn-order::after { animation: none; display: none; }
  .js [data-reveal], .js .route::before, .js .route li::after { opacity: 1 !important; transform: none !important; transition: none !important; }
}
