/* China Cargo «Red Route» — kargo.draftsman.az
   Токены и правила — из DESIGN.md владельца. Брейкпоинты: 480, 768, 1024, 1280. */

:root {
  --red: #D7141A;
  --red-dark: #A90E12;
  --coral: #F2554A;
  --coral-soft: #FFB3A6;
  --coral-soft-70: rgba(255, 179, 166, .7);
  --ink: #000;
  --ground: #EEEDEB;
  --white: #fff;
  --glass: rgba(255, 255, 255, .72);
  --steel: #6B6B6B;
  --line: #E2E0DD;
  --gold: #FFC400;
  --success: #1FA463;

  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;
  --shadow-pop: 0 4px 12px rgba(0, 0, 0, .15);

  --gutter: 48px;
  --sec-y: 112px;
  --hdr-h: 52px;
  --hdr-gap: 12px;
  --cycle: 7s;
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --sec-y: 72px; }
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + var(--hdr-gap) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Onest, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 767px) { body { font-size: 15px; } }
.lang-wait body { opacity: 0; animation: reveal 0s 1.5s forwards; }
@keyframes reveal { to { opacity: 1; } }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sec--red :focus-visible, .foot :focus-visible { outline-color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- кнопки и поля ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border: 0; border-radius: var(--r-pill);
  background: var(--coral); color: var(--white);
  box-shadow: 0 0 0 2px var(--coral-soft);
  font-size: 15px; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color .2s;
}
.pill:hover { background: var(--red); }
.pill:active { background: var(--red-dark); }
.pill:disabled { opacity: .4; cursor: default; background: var(--coral); }
.pill--tall { min-height: 52px; padding: 0 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.field {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 17px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--steel); }
.field:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
select.field {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}

/* ---------- шапка ---------- */
.hdr {
  position: fixed; z-index: 50;
  top: var(--hdr-gap); left: var(--hdr-gap); right: var(--hdr-gap);
  height: var(--hdr-h);
  display: flex; align-items: stretch;
  background: var(--white);
}
.hdr__logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 0 14px;
  background: var(--red); color: var(--white); text-decoration: none;
  transition: background-color .2s;
}
.hdr__logo:hover { background: var(--red-dark); }
.hdr__mark { width: 30px; height: 30px; }
.hdr__brand { display: flex; flex-direction: column; line-height: 1; }
.hdr__brand b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.hdr__brand small { font-size: 11px; opacity: .85; margin-top: 3px; white-space: nowrap; }
.hdr__nav { display: flex; align-items: stretch; padding: 0 8px; }
.hdr__nav a {
  display: flex; align-items: center; padding: 0 12px;
  font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: color .15s;
}
.hdr__nav a:hover { color: var(--red); }
.hdr__cells { display: flex; margin-left: auto; }
.hdr__cell {
  display: flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 0 18px;
  border: 0; border-left: 1px solid var(--line); background: none;
  font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.hdr__cell:hover { color: var(--red); }
.hdr__search { padding: 0; width: 52px; }
.hdr__search[aria-expanded="true"] { background: var(--ground); }
.hdr__lang { padding: 0; }
.hdr__lang button, .mmenu__lang button {
  min-width: 44px; height: 100%; padding: 0 6px;
  border: 0; background: none; color: var(--steel); font-size: 15px;
}
.hdr__lang button[aria-pressed="true"], .mmenu__lang button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.hdr__lang button:hover { color: var(--red); }
.hdr__calc, .hdr__calc-m { background: var(--red); color: var(--white); border-left: 0; }
.hdr__calc:hover, .hdr__calc-m:hover { background: var(--red-dark); color: var(--white); }
.hdr__calc-m, .hdr__burger { display: none; }
.hdr__burger { width: 52px; padding: 0; }
.hdr__burger .ico { width: 24px; height: 24px; }
.hdr__burger .ico--close, .hdr__burger[aria-expanded="true"] .ico--open { display: none; }
.hdr__burger[aria-expanded="true"] .ico--close { display: block; }

.search {
  position: absolute; top: calc(var(--hdr-h) + 8px); right: 0;
  width: 440px; padding: 12px;
  background: var(--white); border: 1px solid var(--line);
}
.search__list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.search__list:empty { display: none; }
.search__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: var(--r-sm); background: none; text-align: left;
}
.search__item:hover, .search__item:focus-visible { background: var(--ground); outline: none; }
.search__item b { font-weight: 400; font-size: 15px; line-height: 1.3; }
.search__item small { font-size: 13px; color: var(--steel); line-height: 1.3; }
.search__empty { padding: 10px 12px; font-size: 15px; color: var(--steel); }

.mmenu {
  position: absolute; top: calc(var(--hdr-h) + 8px); left: 0; right: 0;
  max-height: calc(100svh - var(--hdr-h) - 2 * var(--hdr-gap) - 8px); overflow: auto;
  padding: 8px 16px 16px; background: var(--white);
}
.menu-open::after { content: ''; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .35); }
.mmenu__nav { display: flex; flex-direction: column; margin-bottom: 16px; }
.mmenu__nav a { display: flex; align-items: center; min-height: 52px; font-size: 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mmenu__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.mmenu__lang { display: flex; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); }

@media (max-width: 1279px) {
  .hdr__track { display: none; }
  .hdr__nav a { padding: 0 9px; }
}
@media (max-width: 1023px) {
  .hdr__nav, .hdr__search, .hdr__lang, .hdr__calc { display: none; }
  .hdr__calc-m, .hdr__burger { display: flex; }
  .search { display: none !important; }
}
@media (max-width: 380px) {
  .hdr__logo { padding: 0 12px 0 10px; gap: 8px; }
  .hdr__cell { padding: 0 14px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 620px;
  background: var(--ground);
}
.hero__stage { position: absolute; inset: 0; container-type: size; overflow: hidden; }
.scene {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.scene.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity .8s ease, visibility 0s; }
.scene.is-leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }
/* Кадр 16:9 «cover»: точки «+» стоят в процентах от него и не съезжают при ресайзе. */
.scene__frame {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, 177.778cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
}
.scene__zoom { position: absolute; inset: 0; transform-origin: 60% 45%; }
.scene.is-active .scene__zoom, .scene.is-leaving .scene__zoom { animation: zoom calc(var(--cycle) + .8s) linear forwards; }
.scene.is-leaving .scene__zoom, .hero.is-paused .scene .scene__zoom { animation-play-state: paused; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.04); } }
.scene picture, .scene img { width: 100%; height: 100%; }
.scene img { object-fit: cover; }

.hotspot { position: absolute; left: var(--x); top: var(--y); z-index: 1; transform: translate(-50%, -50%); }
.hotspot.is-hidden { visibility: hidden; }
.hotspot.is-open { z-index: 3; }
.hotspot__btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.hotspot__btn::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; } /* зона нажатия 46px */
.hotspot__btn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--white); pointer-events: none;
  animation: ring 3s ease-out infinite;
}
.hotspot.is-open .hotspot__btn::after { animation: none; opacity: 0; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 40%, 100% { transform: scale(1.75); opacity: 0; } }
.hotspot__btn .ico { width: 18px; height: 18px; stroke-width: 2; transition: transform .25s ease; }
.hotspot__btn[aria-expanded="true"] .ico { transform: rotate(45deg); }
.hotspot__card {
  position: absolute; left: 52px; top: -8px;
  width: 260px; padding: 14px 16px 16px;
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-pop);
}
.hotspot--left .hotspot__card { left: auto; right: 52px; }
.hotspot--up .hotspot__card { top: auto; bottom: -8px; }
.hotspot__card b { display: block; font-size: 17px; font-weight: 500; line-height: 1.25; margin-bottom: 6px; }
.hotspot__card p { margin: 0; font-size: 15px; line-height: 1.45; }

.hero__ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__ui > * { pointer-events: auto; }
.hero__card {
  position: absolute; left: var(--gutter); bottom: 118px;
  width: 400px; padding: 16px 16px 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--r-md);
}
.hero__card h1 { font-size: 56px; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 16px; }
.hero__card p { margin: 0 0 20px; }
.hero__facts { display: none; }

.hero__bar {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; align-items: flex-end; gap: 24px;
}
.timeline { position: relative; display: flex; flex: 1; min-width: 0; padding-top: 16px; }
.hero__bar::before { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--white); }
.tab {
  position: relative; display: flex; align-items: center;
  min-height: 44px; margin-right: 20px; padding: 7px 0;
  border: 0; background: none; color: var(--ink);
}
.tab:last-child { margin-right: 0; }
.tab__seg { position: absolute; left: 0; right: -20px; top: -11px; height: 2px; }
.tab:last-child .tab__seg { right: 0; }
.tab__seg::before {
  content: ''; position: absolute; left: -1px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.tab__fill { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--coral); }
.tab.is-active .tab__seg::before { background: var(--coral); box-shadow: none; }
.tab.is-active .tab__fill { animation: fill var(--cycle) linear forwards; }
.hero.is-paused .tab.is-active .tab__fill { animation-play-state: paused; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.tab__num, .tab__ico {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: var(--r-sm); background: var(--coral-soft-70);
  font-size: 13px; line-height: 1;
  transition: background-color .2s, color .2s;
}
.tab__ico { margin-left: 2px; }
.tab__ico .ico { width: 18px; height: 18px; }
.tab:hover .tab__ico { background: var(--coral-soft); }
.tab.is-active .tab__ico { background: var(--coral); color: var(--white); }
.tab__label {
  display: flex; align-items: center; height: 30px; max-width: 0; overflow: hidden;
  margin-left: 2px; padding: 0; border-radius: var(--r-sm);
  background: var(--coral); color: var(--white);
  font-size: 15px; line-height: 1; white-space: nowrap; opacity: 0;
  transition: max-width .3s ease, padding .3s ease, opacity .2s ease;
}
.tab.is-active .tab__label { max-width: 240px; padding: 0 12px; opacity: 1; }

.all-btn { display: flex; align-items: center; gap: 2px; flex: none; text-decoration: none; }
.all-btn__arrow {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--coral); color: var(--white);
  box-shadow: 0 0 0 2px var(--coral-soft); font-size: 18px; line-height: 1;
  transition: background-color .2s;
}
.all-btn:hover .pill, .all-btn:hover .all-btn__arrow { background: var(--red); }

@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__card h1 { font-size: 48px; }
}
/* Компактный hero: сцена сверху, карточка под ней, таймлайн без подписей. */
@media (max-width: 1023px) {
  .hero { height: auto; min-height: 0; overflow: visible; padding-bottom: 12px; }
  .hero__stage { position: relative; height: 55vh; height: 55svh; min-height: 300px; }
  .scene__frame { left: 0; top: 0; width: 100%; height: 100%; transform: none; }
  .scene__zoom { transform-origin: 50% 50%; }
  .hotspot { display: none; }
  .hero__ui { position: relative; inset: auto; z-index: 4; margin-top: -64px; padding: 0 var(--gutter); }
  .hero__card { position: relative; left: auto; bottom: auto; width: auto; max-width: 560px; }
  .hero__card h1 { font-size: 34px; margin-bottom: 12px; }
  .hero__facts { display: block; min-height: 1.3em; margin: 12px 0 0; font-size: 13px; line-height: 1.3; color: var(--steel); }
  .hero__bar { position: relative; left: auto; right: auto; bottom: auto; margin-top: 4px; }
  .timeline { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; padding-right: 72px; }
  .timeline::-webkit-scrollbar { display: none; }
  .hero__bar::before { background: var(--line); }
  .tab { margin-right: 12px; }
  .tab__seg { right: -12px; }
  .tab__label { display: none; }
  .all-btn { display: none; }
}

/* ---------- плавающие кнопки ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; gap: 12px; transition: bottom .3s ease; }
.hero-in-view .fab { bottom: 120px; }
.fab__btn {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-pop); transition: transform .15s;
}
.fab__btn:hover { transform: translateY(-2px); }
.fab__btn .ico { width: 24px; height: 24px; }
.fab__btn--wa { color: var(--coral); }
@media (max-width: 1023px) { .fab, .hero-in-view .fab { right: 16px; bottom: 16px; } }

/* ---------- секции ---------- */
.sec { padding: var(--sec-y) 0; }
.sec--white { background: var(--white); }
.sec--ground { background: var(--ground); }
.sec--red { background: var(--red); color: var(--white); }
.sec__index { margin: 0 0 12px; font-size: 13px; line-height: 1.3; color: var(--steel); }
.sec--red .sec__index { color: rgba(255, 255, 255, .8); }
h2 { font-size: 48px; line-height: 1.1; letter-spacing: -.015em; max-width: 900px; margin-bottom: 16px; }
.sec__lead { max-width: 640px; margin: 0 0 48px; color: var(--steel); }
.sec--red .sec__lead { color: rgba(255, 255, 255, .88); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.sec__head h2 { margin-bottom: 0; }
@media (max-width: 767px) {
  h2 { font-size: 30px; }
  .sec__lead { margin-bottom: 32px; }
  .sec__head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
}

/* ---------- 01 трекинг ---------- */
.track { display: flex; gap: 12px; max-width: 880px; }
.track__input { flex: 1; text-transform: uppercase; }
.track__input::placeholder { text-transform: none; }
.track__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--steel); }
.chip {
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white);
  font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums;
  transition: border-color .15s;
}
.chip:hover { border-color: var(--coral); }
.track__msg { margin: 24px 0 0; color: var(--steel); }

.tcard { margin-top: 32px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tcard__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.tcard__code { font-size: 28px; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-sm); font-size: 13px; background: var(--coral); color: var(--white); }
.status--done { background: var(--success); }
.status .ico { width: 16px; height: 16px; }
.tcard__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; margin: 24px 0 32px; }
.tcard__meta dt { font-size: 13px; color: var(--steel); }
.tcard__meta dd { margin: 2px 0 0; }

.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.stage { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.stage::before { content: ''; position: absolute; top: 21px; left: -100%; right: 100%; height: 2px; margin: 0 4px 0 48px; background: var(--line); }
.stage:first-child::before { display: none; }
.stage.is-reached::before { background: var(--ink); }
.stages--done .stage.is-reached::before { background: var(--success); }
.stage__dot {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--steel);
}
.stage__txt { display: flex; flex-direction: column; margin-top: 10px; }
.stage__name { font-size: 15px; line-height: 1.3; }
.stage__sub { font-size: 13px; line-height: 1.3; color: var(--steel); }
.stage--done .stage__dot { background: var(--ink); border-color: var(--ink); color: var(--white); }
.stage--current .stage__dot { background: var(--coral); border-color: var(--coral); color: var(--white); box-shadow: 0 0 0 4px var(--coral-soft); }
.stage--current .stage__sub { color: var(--coral); }
.stage--delivered .stage__dot { background: var(--success); border-color: var(--success); color: var(--white); }
.stage--skip .stage__dot { border-style: dashed; opacity: .55; }
.stage--skip .stage__name { color: var(--steel); }

.hist { list-style: none; margin: 32px 0 0; padding: 0; }
.hist__title { margin: 32px 0 8px; font-size: 13px; color: var(--steel); }
.hist li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.hist time { font-size: 15px; color: var(--steel); font-variant-numeric: tabular-nums; }
.hist b { font-weight: 400; }
.hist li:first-child b { font-weight: 500; }
.hist small { display: block; font-size: 13px; color: var(--steel); }

@media (max-width: 767px) {
  .track { flex-direction: column; }
  .track__input { flex: none; }
  .tcard { padding: 20px 16px; }
  .tcard__code { font-size: 20px; }
  .tcard__meta { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stage { flex-direction: row; align-items: center; gap: 14px; padding: 6px 0; }
  .stage::before { top: -50%; bottom: 50%; left: 21px; right: auto; width: 2px; height: auto; margin: 0; }
  .stage__txt { margin: 0; }
  .hist li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- 02 цифры ---------- */
.stats { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 0 28px; border-top: 1px solid var(--line); }
.stat dt { font-size: 15px; color: var(--steel); margin-top: 8px; }
.stat dd { margin: 0; font-size: 80px; font-weight: 500; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__suf, .stat__unit { font-size: .5em; letter-spacing: 0; margin-left: 4px; vertical-align: .6em; }
.stats__truck { width: 100%; height: auto; }
@media (max-width: 1023px) {
  .stats { grid-template-columns: 1fr; }
  .stats__truck { max-width: 560px; margin: 0 auto; order: -1; }
}
@media (max-width: 767px) {
  .stat dd { font-size: min(48px, 10.5vw); }
  .stats__grid { gap: 0 16px; }
}

/* ---------- 03 тарифы ---------- */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tariff {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white);
}
.tariff--best { border-color: var(--ink); }
.badge-gold { position: absolute; top: 24px; right: 24px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--gold); font-size: 13px; line-height: 1; }
.tariff__head { display: flex; align-items: center; gap: 12px; }
.tariff__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--ground); }
.tariff__ico .ico { width: 24px; height: 24px; }
.tariff h3 { font-size: 20px; font-weight: 500; line-height: 1.25; }
.tariff__note { margin: -8px 0 0; font-size: 15px; color: var(--steel); }
.tariff__price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; }
.tariff__price small { font-size: 15px; color: var(--steel); }
.tariff__price b { font-size: 80px; font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.tariff__price span { font-size: 20px; }
.tariff__rows, .calc__rows { margin: 0; }
.tariff__rows div, .calc__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.tariff__rows dt, .calc__rows dt { color: var(--steel); }
.tariff__rows dd, .calc__rows dd { margin: 0; text-align: right; }
.tariff .pill { align-self: flex-start; margin-top: auto; }
@media (max-width: 1023px) { .tariffs { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 767px) { .tariff { padding: 24px 20px; } .tariff__price b { font-size: 48px; } }

/* ---------- 04 калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--white); color: var(--ink); border-radius: var(--r-md); overflow: hidden; }
.calc__form { display: flex; flex-direction: column; gap: 24px; padding: 32px; }
.calc__result { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-left: 1px solid var(--line); }
.seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend, .fld label { display: block; margin-bottom: 8px; padding: 0; font-size: 13px; line-height: 1.3; color: var(--steel); }
.seg__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg label > span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; line-height: 1.1; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.seg label:hover > span { border-color: var(--coral); }
.seg input:checked + span { background: var(--coral); border-color: var(--coral); color: var(--white); }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px var(--coral-soft); }
.calc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc__label { margin: 0; font-size: 13px; color: var(--steel); }
.calc__price { display: flex; align-items: baseline; gap: 4px; margin: 0; }
.calc__price b { font-size: 80px; font-weight: 500; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.calc__price span { font-size: 28px; }
.calc__azn { margin: 0 0 8px; font-size: 20px; color: var(--steel); min-height: 1.3em; }
.calc__rows { margin-bottom: 8px; }
.calc__rows small { display: block; font-size: 13px; color: var(--steel); }
.calc__result .pill { align-self: flex-start; }
.calc__note { margin: 4px 0 0; font-size: 13px; line-height: 1.3; color: var(--steel); }
.calc.is-error .calc__price b { color: var(--steel); }
@media (max-width: 1023px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .calc__form, .calc__result { padding: 20px 16px; }
  .calc__price b { font-size: 48px; }
  .seg label > span { font-size: 13px; gap: 6px; }
  .seg label > span .ico { display: none; }
}

/* ---------- 05 что возим ---------- */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.cat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white);
}
.cat img { position: absolute; top: 8px; right: 8px; width: 132px; height: 132px; }
.cat h3 { position: relative; font-size: 20px; font-weight: 500; line-height: 1.25; margin-bottom: 6px; }
.cat p { position: relative; margin: 0; font-size: 15px; line-height: 1.45; color: var(--steel); max-width: 30ch; }
.cat--xl { grid-column: span 2; grid-row: span 2; background: var(--ground); border-color: var(--ground); }
.cat--xl img { width: 320px; height: 320px; top: 24px; right: 24px; }
.cat--xl h3 { font-size: 28px; }
.cat--wide { grid-column: span 2; }
.cat--wide img { width: 180px; height: 180px; top: 16px; right: 24px; }
@media (max-width: 1023px) {
  .cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(200px, auto); }
  .cat--xl { grid-row: span 1; min-height: 320px; }
  .cat--xl img { width: 220px; height: 220px; }
}
@media (max-width: 479px) {
  .cats { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .cat, .cat--xl { grid-column: auto; min-height: 0; flex-direction: column; padding: 16px 16px 16px 108px; justify-content: center; min-height: 104px; }
  .cat img, .cat--xl img, .cat--wide img { top: 50%; left: 8px; right: auto; width: 92px; height: 92px; transform: translateY(-50%); }
  .cat h3, .cat--xl h3 { font-size: 18px; }
  .cat p { font-size: 13px; }
}

/* ---------- 06 о нас ---------- */
.about { display: grid; grid-template-columns: 1fr 1.45fr; gap: 56px; align-items: center; }
.about__text p:not(.sec__index) { margin: 0 0 28px; }
.collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 170px 170px 210px; gap: 12px; }
.collage figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--white); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--white); font-size: 13px; line-height: 1.3; }
.collage__a { grid-column: 1 / 5; grid-row: 1 / 3; }
.collage__b { grid-column: 5 / 7; grid-row: 1 / 2; }
.collage__c { grid-column: 5 / 7; grid-row: 2 / 3; }
.collage__d { grid-column: 1 / 3; grid-row: 3 / 4; }
.collage__e { grid-column: 3 / 7; grid-row: 3 / 4; }
@media (max-width: 1023px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 130px 130px; gap: 8px; }
  .collage__a { grid-column: 1 / 3; grid-row: 1; }
  .collage__b { grid-column: 1; grid-row: 2; }
  .collage__c { grid-column: 2; grid-row: 2; }
  .collage__d { grid-column: 1; grid-row: 3; }
  .collage__e { grid-column: 2; grid-row: 3; }
}

/* ---------- 07 отзывы ---------- */
.reviews {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 380px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 4px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white);
}
.review:nth-child(3n + 1) { flex-basis: 460px; }
.review p { flex: 1; margin: 0 0 20px; }
.review b { font-size: 15px; font-weight: 500; }
.review small { font-size: 13px; color: var(--steel); }
@media (max-width: 767px) {
  .review, .review:nth-child(3n + 1) { flex-basis: 86%; padding: 20px; }
}

/* ---------- 08 вопросы ---------- */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 20px; font-weight: 500; line-height: 1.25;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .ico { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--white); transition: transform .25s ease; }
.faq__list summary:hover .ico { color: var(--red); }
.faq__list details[open] summary .ico { transform: rotate(45deg); }
.faq__list details p { max-width: 62ch; margin: -4px 0 24px; }
@media (max-width: 1023px) { .faq { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 767px) { .faq__list summary { font-size: 18px; } }

/* ---------- футер ---------- */
.foot { padding: var(--sec-y) 0 32px; background: var(--ink); color: var(--white); }
.foot__slogan { margin: 0 0 64px; font-size: clamp(48px, 8.6vw, 120px); line-height: 1; letter-spacing: -.035em; max-width: 13ch; }
.foot__big { display: flex; flex-wrap: wrap; gap: 8px 48px; padding-top: 32px; margin-bottom: 64px; border-top: 1px solid rgba(255, 255, 255, .2); }
.foot__big a { font-size: 40px; line-height: 1.25; text-decoration: none; transition: color .15s; }
.foot__big a:hover { color: var(--coral-soft); }
.foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot__grid h3 { margin: 0 0 12px; font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .6); }
.foot__grid p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.foot__grid a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.foot__grid a:hover { border-color: var(--white); }
.foot__copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 64px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; color: rgba(255, 255, 255, .6); }
@media (max-width: 1023px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .foot__slogan { font-size: 44px; margin-bottom: 40px; }
  .foot__big { flex-direction: column; margin-bottom: 40px; }
  .foot__big a { display: flex; align-items: center; min-height: 48px; font-size: 28px; }
  .foot__grid { grid-template-columns: 1fr; gap: 24px; }
  .foot__grid a { min-height: 44px; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reviews { scroll-behavior: auto; }
  .scene, .scene.is-active { transition: none; }
  .scene.is-active .scene__zoom, .scene.is-leaving .scene__zoom { animation: none; }
  .hotspot__btn::after { animation: none; opacity: 0; }
  .tab.is-active .tab__fill { animation: none; width: 100%; }
  .tab__label { transition: none; }
}
