/* ==========================================================================
   SENDPUSH — лендинг
   ========================================================================== */

/* Шрифты — вариативные, один файл на подмножество вместо файла на начертание */
@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest-cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('/assets/fonts/onest-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Токены. Базовые значения — hex, чтобы страница не осталась без цвета там,
   где oklch не поддерживается; ниже точные значения подменяются через @supports.
   -------------------------------------------------------------------------- */
:root {
  --bg: #fbfcfb;
  --surface: #fff;
  --dark: #101815;
  --code-bg: #0b120e;

  --text: #15201a;
  --text-2: #5c6d64;
  --text-3: #3a4a41;
  --muted: #7e948a;
  --muted-2: #8fa196;
  --on-dark: #f2f6f3;
  --on-dark-2: #a9bfb2;
  --code-fg: #cdd9d2;

  --border: #e6ebe8;
  --border-strong: #d6ded9;
  --icon-bg: #f0f4f1;
  --warn: #b08d3e;

  --accent: #2fbf71;
  --accent-600: #27b169;
  --accent-700: #17a05c;
  --accent-link: #199d5c;
  --accent-800: #128a4f;
  --accent-900: #0e7a45;
  --cyan: #0aa3b5;

  /* Полупрозрачные производные акцента: rgba работает везде, а на таких
     значениях альфы разница с oklch неразличима. */
  --accent-a08: rgba(47, 191, 113, 0.08);
  --accent-a15: rgba(47, 191, 113, 0.15);
  --accent-a16: rgba(47, 191, 113, 0.16);
  --accent-a20: rgba(47, 191, 113, 0.2);
  --accent-a25: rgba(47, 191, 113, 0.25);
  --accent-a30: rgba(47, 191, 113, 0.3);
  --accent-a35: rgba(47, 191, 113, 0.35);
  --accent-a40: rgba(47, 191, 113, 0.4);
  --accent-a50: rgba(47, 191, 113, 0.5);
  --accent-a60: rgba(47, 191, 113, 0.6);
  --cyan-a14: rgba(70, 190, 205, 0.14);

  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1140px;
  --section-y: 96px;
  --shadow-card: 0 16px 40px rgba(21, 32, 26, 0.08);
}

@supports (color: oklch(0.65 0.18 155)) {
  :root {
    --accent: oklch(0.65 0.18 155);
    --accent-600: oklch(0.62 0.18 155);
    --accent-700: oklch(0.55 0.18 155);
    --accent-link: oklch(0.55 0.16 155);
    --accent-800: oklch(0.5 0.16 155);
    --accent-900: oklch(0.45 0.16 155);
    --cyan: oklch(0.6 0.16 200);
  }
}

/* --------------------------------------------------------------------------
   База
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* якорные ссылки не должны уезжать под липкую шапку */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-link);
  text-decoration: none;
}

a:hover {
  color: var(--accent-900);
}

img {
  max-width: 100%;
  height: auto;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Анимации
   -------------------------------------------------------------------------- */
@keyframes cascadePulse { 0%, 100% { opacity: 0.35 } 50% { opacity: 1 } }
@keyframes floatGlow { 0%, 100% { transform: translate(0, 0) scale(1) } 50% { transform: translate(40px, -30px) scale(1.15) } }
@keyframes floatGlow2 { 0%, 100% { transform: translate(0, 0) scale(1) } 50% { transform: translate(-50px, 20px) scale(1.1) } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes popIn { from { opacity: 0; transform: scale(0.92) translateY(10px) } to { opacity: 1; transform: scale(1) translateY(0) } }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: 0.2 } }
@keyframes shimmer { from { background-position: 200% center } to { background-position: -200% center } }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }

.btn--outline {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn--dark {
  background: var(--text);
  color: #fff;
}

.btn--dark:hover {
  background: var(--accent-link);
  color: #fff;
}

.btn--accent {
  background: var(--accent);
  color: var(--code-bg);
  font-weight: 800;
  box-shadow: 0 8px 28px var(--accent-a40);
}

.btn--accent:hover {
  color: var(--code-bg);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--accent-a50);
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 251, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo:hover { color: var(--text); }

.logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.logo__text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav__link { color: var(--text); }
.nav__link:hover { color: var(--accent-link); }

.nav__actions {
  display: flex;
  gap: 10px;
  margin-left: 4px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}

.burger__bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger[aria-expanded='true'] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--1 {
  top: -160px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: var(--accent-a16);
  filter: blur(90px);
  animation: floatGlow 14s ease-in-out infinite;
}

.hero__glow--2 {
  bottom: -200px;
  right: -100px;
  width: 560px;
  height: 560px;
  background: var(--cyan-a14);
  filter: blur(100px);
  animation: floatGlow2 18s ease-in-out infinite;
}

.hero__inner {
  position: relative;
  padding-top: 92px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--accent-a35);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-800);
  animation: fadeUp 0.7s ease both;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.6s infinite;
}

.hero__title {
  margin: 22px 0 0;
  font-size: 56px;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-wrap: pretty;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero__title-accent {
  background: linear-gradient(90deg, var(--accent-700), var(--cyan), var(--accent-700));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

.hero__lead {
  margin: 20px 0 0;
  max-width: 480px;
  font-size: 18px;
  color: var(--text-2);
  text-wrap: pretty;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 40px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  animation: fadeUp 0.7s 0.4s ease both;
}

/* --------------------------------------------------------------------------
   Демонстрация каскада
   -------------------------------------------------------------------------- */
.cascade {
  animation: popIn 0.8s 0.3s ease both;
}

.cascade__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s, transform 0.5s;
}

.cascade__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  transition: background-color 0.5s, color 0.5s;
}

.cascade__body {
  flex: 1;
  min-width: 0;
}

.cascade__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.cascade__note {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.cascade__status {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  transition: color 0.5s;
}

.cascade__card[data-state='sending'] {
  border-color: var(--accent-a50);
  box-shadow: 0 8px 24px var(--accent-a20);
  transform: scale(1.03);
}
.cascade__card[data-state='sending'] .cascade__status { color: var(--accent-link); }
.cascade__card[data-state='sending'] .cascade__icon {
  background: var(--accent-a15);
  color: var(--accent-900);
}

.cascade__card[data-state='failed'] .cascade__status { color: var(--warn); }
.cascade__card[data-state='failed'] .cascade__icon { color: var(--muted-2); }

.cascade__card[data-state='delivered'] {
  background: var(--accent-a08);
  border-color: var(--accent-a50);
  box-shadow: 0 8px 24px var(--accent-a25);
  transform: scale(1.03);
}
.cascade__card[data-state='delivered'] .cascade__status { color: var(--accent-800); }
.cascade__card[data-state='delivered'] .cascade__icon {
  background: var(--accent);
  color: var(--code-bg);
}

.cascade__arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.cascade__arrow span {
  width: 2px;
  height: 18px;
  background: linear-gradient(var(--accent), transparent);
  animation: cascadePulse 2s infinite;
}

.cascade__caption {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Бегущая строка каналов
   -------------------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  padding: 22px 0;
  animation: marquee 22s linear infinite;
}

.marquee__half {
  display: flex;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}

.marquee__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-a60);
}

/* --------------------------------------------------------------------------
   Секции и карточки
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-y) 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  margin: 0;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}

.section__title--center { text-align: center; }

.section__lead {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 17px;
  color: var(--text-2);
  text-wrap: pretty;
}

.section__lead--tight { max-width: none; margin-top: 16px; }

.section__lead--center {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--stretch { align-items: stretch; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card--on-alt { background: var(--bg); }

.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.card__step {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-link);
}

.card__title {
  margin: 12px 0 0;
  font-size: 19px;
  font-weight: 700;
}

.card__title--top { margin-top: 0; }

.card__text {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-2);
  text-wrap: pretty;
}

.bubble {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--accent-a30);
  border-radius: 14px 14px 14px 4px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(21, 32, 26, 0.05);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   API
   -------------------------------------------------------------------------- */
.api__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--text-3);
}

.checklist__item {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.checklist__mark {
  flex: none;
  font-family: var(--font-mono);
  color: var(--accent-link);
}

.code-window {
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 18, 14, 0.25);
}

.code-window__bar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-window__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4b42;
}

.code-window__code {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--code-fg);
}

.code-window__code code {
  font: inherit;
}

/* --------------------------------------------------------------------------
   Тарифы
   -------------------------------------------------------------------------- */
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(21, 32, 26, 0.12);
}

.plan--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--on-dark);
}

.plan__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.plan__price {
  margin: 16px 0 0;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.plan__per {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-2);
}

.plan--dark .plan__per { color: var(--on-dark-2); }

.plan__feats {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  font-size: 14.5px;
  line-height: 1.5;
}

.plan__feat {
  display: flex;
  gap: 8px;
}

.plan__mark {
  flex: none;
  color: var(--accent-600);
}

.pricing__note {
  max-width: 520px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 600px;
  height: 400px;
  max-width: 100%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(47, 191, 113, 0.18);
  filter: blur(90px);
  animation: floatGlow 12s ease-in-out infinite;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--section-y) 24px;
  text-align: center;
}

.cta__title {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}

.cta__lead {
  max-width: 480px;
  margin: 16px auto 0;
  font-size: 17px;
  color: var(--on-dark-2);
}

.cta__inner p:last-child { margin: 32px 0 0; }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.site-footer__brand {
  font-weight: 700;
  color: var(--text);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--accent-link); }

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner,
  .api__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__inner { padding-top: 64px; padding-bottom: 72px; }
  .hero__lead { max-width: none; }
  .hero__title { font-size: 44px; }
  .cta__title { font-size: 34px; }
  .section__title { font-size: 32px; }
}

@media (max-width: 900px) {
  .burger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    font-size: 16px;
  }

  .nav.is-open { display: flex; }

  .nav__link { padding: 12px 0; }

  .nav__actions {
    margin: 12px 0 0;
    gap: 12px;
  }

  .nav__actions .btn {
    flex: 1;
    padding: 12px 18px;
  }
}

@media (max-width: 700px) {
  :root { --section-y: 64px; }

  .grid--3 { grid-template-columns: 1fr; }

  .hero__title { font-size: 36px; }
  .cta__title { font-size: 28px; }
  .section__title { font-size: 28px; }
  .section__lead { font-size: 16px; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { gap: 8px 24px; }

  .card,
  .plan { padding: 24px; }

  .plan__price { font-size: 32px; }

  .code-window__code { font-size: 12.5px; padding: 18px; }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   Уважение к prefers-reduced-motion.
   Бесконечные анимации выключаем полностью, появления — мгновенные.
   Каскад JS переводит в финальное состояние и не запускает цикл.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee__track,
  .hero__glow,
  .cta__glow,
  .badge__dot,
  .cascade__arrow span,
  .hero__title-accent {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Уведомление о cookie
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 16px 24px 24px;
  /* клики проходят мимо контейнера — перехватывает только сама плашка */
  pointer-events: none;
}

/* авторский display перебивает [hidden] из стилей браузера, поэтому явно */
.cookie[hidden] { display: none; }

.cookie__box {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  padding: 18px 20px 18px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(21, 32, 26, 0.16);
}

.cookie__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.cookie__btn {
  flex: none;
  padding: 12px 30px;
  font-size: 15px;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Правовые страницы
   -------------------------------------------------------------------------- */
.legal {
  padding: 56px 0 96px;
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal__inner--center { text-align: center; }

.legal__title {
  margin: 0;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}

.legal__updated {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.legal h2 {
  margin: 40px 0 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal p {
  margin: 12px 0 0;
  color: var(--text-2);
  text-wrap: pretty;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--text-2);
}

.legal li { margin-top: 8px; }

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal__inner--center .btn { margin-top: 20px; }

.requisites {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 10px 24px;
  margin: 20px 0 0;
  font-size: 15px;
}

.requisites dt { color: var(--muted); }

.requisites dd {
  margin: 0;
  color: var(--text);
}

/* строка с реквизитами в подвале */
.site-footer__legal {
  padding-bottom: 28px;
}

.site-footer__legal p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-2);
}

@media (max-width: 700px) {
  .cookie { padding: 12px 16px 16px; }

  .cookie__box {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
  }

  .cookie__btn { width: 100%; }

  .legal { padding: 40px 0 64px; }
  .legal__title { font-size: 28px; }
  .legal h2 { font-size: 19px; margin-top: 32px; }

  .requisites {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .requisites dt { margin-top: 12px; }
}

/* --------------------------------------------------------------------------
   Страница цен на SMS
   -------------------------------------------------------------------------- */
.sms__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.sms__lead {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--text-2);
  text-wrap: pretty;
}

.sms__title {
  margin: 0 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sms__subtitle {
  margin: 48px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.sms__note {
  max-width: 680px;
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-2);
  text-wrap: pretty;
}

.sms__footnote {
  max-width: 680px;
  margin: 48px 0 0;
  font-size: 14px;
  color: var(--muted-2);
}

/* вкладки: без JS список кнопок скрыт, а панели идут одна за другой */
.tabs { margin-top: 36px; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.tabs__list[hidden] { display: none; }

.tabs__btn {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  background: none;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tabs__btn:hover { color: var(--text); }

.tabs__btn[aria-selected='true'] {
  background: var(--text);
  color: #fff;
}

.tabs__panel + .tabs__panel { margin-top: 64px; }

/* когда вкладки включены, соседняя панель скрыта и отступ не нужен */
.tabs--on .tabs__panel + .tabs__panel { margin-top: 0; }

/* --------------------------------------------------------------------------
   Таблица цен
   -------------------------------------------------------------------------- */
.table-scroll {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.ptable th,
.ptable td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.ptable tbody tr:last-child th,
.ptable tbody tr:last-child td { border-bottom: 0; }

.ptable thead th {
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.ptable__corner,
.ptable__op {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: var(--surface);
  font-weight: 700;
  white-space: normal;
  min-width: 220px;
}

.ptable thead .ptable__corner { background: var(--bg); }

.ptable__tier {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-link);
}

.ptable__from {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.ptable__plan {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  white-space: normal;
}

.ptable__unknown {
  text-align: left;
  font-size: 13.5px;
  color: var(--warn);
  white-space: normal;
}

.ptable--names th,
.ptable--names td { text-align: left; }
.ptable--names .ptable__op { min-width: 260px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ссылка «все цены» в карточке тарифа */
.plan__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14.5px;
  font-weight: 600;
}

.plan--dark .plan__link { color: var(--accent); }

@media (max-width: 700px) {
  .sms__inner { padding: 0 16px; }
  .tabs__btn { min-width: 100%; }
  .ptable__corner,
  .ptable__op { min-width: 170px; }
  .ptable th,
  .ptable td { padding: 12px; }
}

/* цена «от» для операторов без ступеней платежа */
.ptable td.ptable__from-cell {
  text-align: left;
  white-space: normal;
}

.ptable__from-price {
  font-weight: 700;
  color: var(--text);
}

.sms__footnote--tight { margin-top: 12px; }
