/* Стили вынесены из inline в лист: в макете они были в React-записи
   (backdropFilter, borderBottom, accentColor) — в обычном HTML такие
   свойства молча не применяются, шапка осталась бы без размытия. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --blue:       #0071e3;
  --blue-hover: #0077ed;
  --blue-dark:  #2997ff;
  --ink:        #1d1d1f;
  --ink-2:      #6e6e73;
  --ink-3:      #86868b;
  --ink-4:      #515154;
  --surface:    #f5f5f7;
  --white:      #fff;
  --hairline:   rgba(0, 0, 0, 0.08);
  --hairline-2: rgba(0, 0, 0, 0.12);
  --live:       #30d158;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Golos Text", "Segoe UI", system-ui, sans-serif;
  --wide: 73.75rem;   /* 1180px */
  --mid:  64rem;      /* 1024px */
  --narrow: 47.5rem;  /* 760px */

  --z-sticky: 60;
  --z-callbar: 70;
  --z-skip: 80;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 20rem;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
::selection { background: var(--blue); color: var(--white); }

:focus-visible { outline: 0.1875rem solid var(--blue); outline-offset: 0.1875rem; border-radius: 0.25rem; }
a, button, label { -webkit-tap-highlight-color: transparent; }

/* display:grid у поля перебивает атрибут hidden — гасим явно */
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 0.625rem; left: 0.625rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.125rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 320ms var(--ease);
}
.skip-link:focus { transform: translateY(0); text-decoration: none; color: var(--white); }

/* ── Шапка ── */
.top {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.0625rem solid var(--hairline);
}
.top-nav {
  max-width: var(--wide);
  margin: 0 auto;
  min-height: 3.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { flex: none; width: 4rem; height: 2.125rem; object-fit: contain; }
.top-right { display: flex; align-items: center; gap: 1.5rem; }
.live { display: flex; align-items: center; gap: 0.4375rem; color: var(--ink-2); white-space: nowrap; }
.live::before {
  content: "";
  width: 0.4375rem; height: 0.4375rem;
  border-radius: 50%;
  background: var(--live);
}
.divider { width: 0.0625rem; height: 1.125rem; background: var(--hairline-2); }
.top-link { color: var(--ink); opacity: 0.8; white-space: nowrap; }
.top-link:hover { color: var(--ink); opacity: 1; text-decoration: none; }

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 61.25rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease), transform 120ms ease-out;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-hover); color: var(--white); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.4375rem 1rem; font-size: 0.875rem; }
.btn-md { padding: 0.875rem 1.875rem; font-size: 1.1875rem; }

/* ── Первый экран ── */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 1.375rem 0; text-align: center; }
.hero-inner { max-width: 56.25rem; margin: 0 auto; }
.kicker {
  margin: 0 0 0.875rem;
  font-size: clamp(1rem, 2vw, 1.1875rem);
  font-weight: 600;
  color: var(--blue);
}
h1 {
  margin: 0 0 1.375rem;
  /* В макете было жёсткие 76px — на телефоне такой заголовок вылезает
     за экран. Тот же размер на десктопе, но текучий вниз. */
  font-size: clamp(2.5rem, 7.4vw, 4.75rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 span { color: var(--ink-3); }
.hero-lede {
  margin: 0 auto 1.875rem;
  max-width: 41.25rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.hero-tel { font-size: clamp(1.0625rem, 2vw, 1.1875rem); }
.hero-hint { margin: 1rem 0 0; font-size: 0.875rem; color: var(--ink-3); }

.hero-figure { margin: clamp(2rem, 5vw, 3.25rem) auto 0; max-width: var(--wide); }
.hero-figure img { width: 100%; border-radius: 1.75rem; }
.hero-figure figcaption {
  margin: 1.125rem auto 0;
  max-width: 38.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ── Цифры ── */
.metrics { max-width: var(--mid); margin: 0 auto; padding: clamp(3.5rem, 8vw, 5.75rem) 1.375rem 0; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2.5rem;
  text-align: center;
}
.metric-value {
  font-size: clamp(2.75rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric-value small { font-size: clamp(1.25rem, 2.6vw, 1.625rem); font-weight: 600; color: var(--ink-3); }
.metric p { margin: 0.625rem 0 0; color: var(--ink-2); font-size: 1.0625rem; }

/* ── Секции ── */
.band { padding: clamp(4rem, 9vw, 7.5rem) 1.5rem 0; }
.band-head { max-width: var(--narrow); margin: 0 auto clamp(2rem, 4vw, 2.75rem); text-align: center; }
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
.band-head p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ── Что перевозим ── */
.cargo {
  max-width: var(--mid);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.875rem;
}
.card {
  background: var(--surface);
  border-radius: 1.375rem;
  padding: 2rem;
  min-height: 11.25rem;
}
.card-3 { grid-column: span 3; }
.card-2 { grid-column: span 2; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}
.card h3 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.tag {
  flex: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--white);
  border: 0.0625rem solid var(--hairline);
  padding: 0.3125rem 0.75rem;
  border-radius: 61.25rem;
  white-space: nowrap;
}
.cargo-cta {
  grid-column: span 6;
  background: var(--ink);
  color: var(--white);
  border-radius: 1.375rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  transition: transform 250ms var(--ease);
}
.cargo-cta:hover { color: var(--white); text-decoration: none; transform: translateY(-0.1875rem); }
.cargo-cta:active { transform: translateY(0) scale(0.995); }
.cargo-cta b { font-size: clamp(1.25rem, 2.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.022em; line-height: 1.25; }
.cargo-cta span { font-size: clamp(1.0625rem, 2vw, 1.3125rem); color: var(--blue-dark); white-space: nowrap; }

/* ── Калькулятор ── */
.calc-shell {
  max-width: var(--mid);
  margin: 0 auto;
  background: var(--surface);
  border-radius: 1.75rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 2.25rem;
  align-items: stretch;
}
.calc-controls { display: flex; flex-direction: column; gap: 1.875rem; margin: 0; border: 0; padding: 0; }
.control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.control-head span:first-child { font-size: 1rem; color: var(--ink-2); }
.control-head output { font-size: 1.1875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.control-label { font-size: 1rem; color: var(--ink-2); margin-bottom: 0.75rem; }
.seg { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.seg button {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.6875rem 1.25rem;
  border-radius: 61.25rem;
  background: var(--white);
  color: var(--ink);
  border: 0.0625rem solid var(--hairline-2);
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.seg button:active { transform: scale(0.97); }
.check { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-size: 1.0625rem; }
.check input { width: 1.125rem; height: 1.125rem; accent-color: var(--blue); flex: none; }

.calc-out {
  background: var(--white);
  border-radius: 1.375rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.375rem;
}
.calc-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.625rem;
}
.calc-sum {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.calc-note { margin: 0.875rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.calc-out .btn { width: 100%; padding: 0.875rem; font-size: 1.0625rem; }

/* ── Шаги ── */
.steps {
  max-width: var(--mid);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.875rem;
}
.step { background: var(--surface); border-radius: 1.375rem; padding: 2.25rem 2rem; }
.step b { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--blue); margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.step h3 { margin: 0 0 0.625rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ── География ── */
.area { max-width: var(--mid); margin: 0 auto; text-align: center; }
.area p { margin: 0 auto 2.25rem; max-width: 41.25rem; font-size: clamp(1rem, 2vw, 1.1875rem); line-height: 1.55; color: var(--ink-2); }
.area ul { display: flex; flex-wrap: wrap; gap: 0.625rem; justify-content: center; margin: 0; padding: 0; list-style: none; }
.area li { background: var(--surface); border-radius: 61.25rem; padding: 0.6875rem 1.375rem; font-size: 1.0625rem; }

/* ── Финал ── */
.closing { margin-top: clamp(4rem, 9vw, 7.5rem); background: #000; color: #f5f5f7; }
.closing-inner { max-width: 56.25rem; margin: 0 auto; padding: clamp(4rem, 9vw, 6.875rem) 1.375rem; text-align: center; }
.closing h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 5.6vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.06; }
.closing-tel {
  display: block;
  margin-bottom: 2.125rem;
  font-size: clamp(2.25rem, 6.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.closing-tel:hover { color: var(--blue-dark); text-decoration: none; }
.closing-note { margin: 1.5rem 0 0; font-size: 0.9375rem; color: var(--ink-3); }

footer { background: var(--surface); }
.footer-inner {
  max-width: var(--mid);
  margin: 0 auto;
  padding: 1.375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.footer-inner a { color: var(--ink-4); }
.footer-inner a:hover { color: var(--ink); }

/* Одна цель под большим пальцем на телефоне */
.callbar {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: var(--z-callbar);
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.0625rem solid var(--hairline);
  color: var(--blue);
  font-size: 1.0625rem;
  font-weight: 600;
}
.callbar:hover { text-decoration: none; }

/* ── Адаптив ── */
@media (max-width: 60rem) {
  .calc-grid { grid-template-columns: 1fr; }
  .cargo { grid-template-columns: repeat(2, 1fr); }
  .card-3, .card-2 { grid-column: span 1; }
  .cargo-cta { grid-column: span 2; }
}
@media (max-width: 46rem) {
  .top-right .top-link, .divider { display: none; }
}
@media (max-width: 34rem) {
  .cargo { grid-template-columns: 1fr; }
  .cargo-cta { grid-column: span 1; }
  .live { display: none; }
  .callbar { display: flex; }
  footer .footer-inner { padding-bottom: 5rem; }
}

/* ── Появление: усиливает уже видимое, ничего не прячет насовсем ── */
@media (prefers-reduced-motion: no-preference) {
  .js-in [data-reveal] { opacity: 0; transform: translateY(1.125rem); }
  .js-in [data-reveal].seen {
    opacity: 1;
    transform: none;
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 160ms !important;
    transition-property: opacity, color, background-color, border-color !important;
    scroll-behavior: auto !important;
  }
  .js-in [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .callbar { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #43434a; --ink-3: #55555c; --hairline: rgba(0,0,0,.4); --hairline-2: rgba(0,0,0,.5); }
  .top, .callbar { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card, .step, .area li, .calc-shell { outline: 0.0625rem solid var(--hairline); }
}

/* ── Гео-страницы городов ── */
.crumbs {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }

.prose {
  max-width: 41.25rem;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose p { margin: 0; }

.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}
.rates th, .rates td { padding: 1rem 0; text-align: left; vertical-align: baseline; }
.rates td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rates th { font-weight: 400; color: var(--ink-2); padding-right: 1rem; }
.rates tr + tr th, .rates tr + tr td { border-top: 0.0625rem solid var(--hairline); }
.rates-note { margin: 1.25rem 0 1.75rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-3); }

.links { display: flex; flex-wrap: wrap; gap: 0.625rem; justify-content: center; margin: 0; padding: 0; list-style: none; }
.links a {
  display: inline-block;
  background: var(--surface);
  border-radius: 61.25rem;
  padding: 0.6875rem 1.375rem;
  font-size: 1.0625rem;
  color: var(--ink);
  transition: background 200ms var(--ease);
}
.links a:hover { background: #ebebee; color: var(--ink); text-decoration: none; }
.links a:active { transform: scale(0.97); }

.visually-hidden {
  position: absolute;
  width: 0.0625rem; height: 0.0625rem;
  margin: -0.0625rem; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Города в списке зоны на главной кликабельны */
.area li a { color: var(--ink); }
.area li a:hover { color: var(--blue); text-decoration: none; }
