/* Rubezh Love (happ-love.xyz): тёплый кремовый, малиновый и слива; без маскота (решение владельца 18.11.2026),
   на первом экране — телефон на HTML/CSS с анимацией подключения.
   Своя вёрстка без long.css — чтобы сайт не походил на остальные лендинги. Без внешних шрифтов: Manrope из ../assets. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fff6f2;
  --bg2: #fdebe8;
  --card: #ffffff;
  --ink: #2a1230;
  --muted: #6e5670;
  --berry: #c8175d;
  --berry2: #ee4d8b;
  --plum: #4a1240;
  --plum2: #2a0b26;
  --gold: #e5ae3f;
  --mint: #12a37b;
  --line: #f0d9df;
  --grad: linear-gradient(135deg, #e0246f 0%, #a8186b 55%, #6d1660 100%);
  --shadow: 0 18px 50px -18px rgb(74 18 64 / 0.35);
  --shadow-s: 0 8px 24px -12px rgb(74 18 64 / 0.28);
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 1rem/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p,
ul,
ol {
  margin: 0;
}

a {
  color: var(--berry);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--berry2);
  outline-offset: 3px;
}

.hide-s {
  display: inline;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 10px 24px -10px rgb(200 23 93 / 0.7);
  color: #fff;
  font: 700 0.98rem/1.2 inherit;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgb(200 23 93 / 0.75);
  filter: saturate(1.1);
}

.btn:active {
  transform: translateY(0);
}

.btn-big {
  padding: 16px 26px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 15px;
  font-size: 0.9rem;
}

.btn-soft {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-s);
  color: var(--ink);
}

.btn-soft:hover {
  box-shadow: inset 0 0 0 1.5px var(--berry2), var(--shadow-s);
}

/* ---------- Бегущая строка ---------- */
.tick-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ticker {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--plum2);
  color: #fde7ef;
  font-size: 0.88rem;
  font-weight: 700;
}

.tick-run {
  display: flex;
  flex: none;
  gap: 40px;
  padding: 9px 0 9px 40px;
  white-space: nowrap;
  animation: tick 38s linear infinite;
}

.tick-toggle:checked + .ticker .tick-run {
  animation-play-state: paused;
}

.tick-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 44px;
  background: linear-gradient(90deg, transparent, var(--plum2) 35%);
  color: #fde7ef;
  font-size: 0.7rem;
  cursor: pointer;
}

.tick-toggle:focus-visible + .ticker .tick-btn {
  outline: 2px solid var(--berry2);
}

@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

/* Триколор: тонкая полоса под бегущей строкой и над подвалом (владелец 18.11.2026) */
.tricolor {
  height: 9px;
  background: linear-gradient(#fff 0 33.4%, #0039a6 33.4% 66.7%, #d52b1e 66.7%);
}

/* ---------- Шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 246 242 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(240 217 223 / 0.7);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.brand b {
  color: var(--berry);
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  color: var(--berry);
}

.top-act {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

/* ---------- Первый экран ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-block: 56px 32px;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fde3ec;
  color: var(--berry);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 800;
}

.hero h1 em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.lead {
  max-width: 580px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.13rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 10px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.stats li {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-s);
}

.stats b {
  display: block;
  color: var(--berry);
  font-size: 1.45rem;
  white-space: nowrap;
  line-height: 1.1;
}

.stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 30px 0 auto;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffd1e2 0%, #ffe6ee 45%, transparent 70%);
  z-index: -1;
}

@keyframes float {
  to {
    transform: rotate(-2deg) translateY(-10px);
  }
}

.nw {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Скорость и трафик ---------- */
.speed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 20px;
}

.speed-card {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
}

.speed-fast {
  background: linear-gradient(135deg, #e0246f 0%, #a8186b 60%, #6d1660 100%);
}

.speed-unl {
  background: linear-gradient(135deg, #3a0f36 0%, #4a1240 55%, #6d1660 100%);
}

.speed-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
}

.speed-num {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}

.speed-num small {
  font-size: 0.42em;
  font-weight: 700;
  opacity: 0.85;
}

.speed-card h3 {
  margin-top: 12px;
  font-size: 1.25rem;
}

.speed-card p:last-child {
  max-width: 460px;
  margin-top: 6px;
  color: rgb(255 255 255 / 0.85);
}

/* ---------- Предложение: посадочный талон «Россия → куда угодно» (motion.js) ---------- */
.offer {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
  width: min(480px, 100% - 24px);
  filter: drop-shadow(0 22px 34px rgb(42 11 38 / 0.42)) drop-shadow(0 0 1px rgb(42 11 38 / 0.35));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(46px) rotate(-4deg);
  transition:
    opacity 0.35s,
    transform 0.55s var(--ease),
    visibility 0s 0.55s;
}

.offer.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.35s,
    transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1),
    visibility 0s;
}

.offer-x {
  position: absolute;
  top: 5px;
  right: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.offer-x:hover {
  background: rgb(255 255 255 / 0.25);
}

.pass {
  --stub: 152px;
  display: grid;
  grid-template-columns: 1fr var(--stub);
  border-radius: 16px;
  background: #fff8f4;
  color: var(--ink);
  -webkit-mask:
    radial-gradient(circle 10px at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 10px at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 10px at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 10px at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}

.pass-main,
.pass-stub {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pass-stub {
  position: relative;
  overflow: hidden;
  border-left: 2px dashed rgb(120 72 10 / 0.35);
  background: linear-gradient(150deg, #fff1b8 0%, #f4cf62 40%, #e5ae3f 70%, #f7dc85 100%);
}

/* блик, пробегающий по золотому корешку */
.pass-stub::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.65) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 4.5s ease-in-out 1s infinite;
  pointer-events: none;
}

.pass-stub > * {
  position: relative;
  z-index: 1;
}

.pass-stub .pass-price small,
.pass-stub .pass-price s {
  color: #7a4d0c;
}

/* свёрнутый билет — золотой ярлычок */
.pass-mini {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(150deg, #fff1b8 0%, #f4cf62 40%, #e5ae3f 70%, #f7dc85 100%);
  box-shadow:
    0 14px 30px -12px rgb(42 11 38 / 0.55),
    0 0 0 1px rgb(120 72 10 / 0.3);
  color: var(--plum2);
  font: 800 0.95rem/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease),
    visibility 0s 0.45s;
}

.pass-mini.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.3s 0.15s,
    transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s,
    visibility 0s;
}

.pass-mini b {
  color: var(--berry);
}

.pass-mini::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.65) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 4.5s ease-in-out 1s infinite;
  pointer-events: none;
}

@keyframes shine {
  0%,
  60% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.pass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 36px;
  padding: 0 16px;
  background: var(--plum2);
  color: #f6e7ee;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pass-head span + span {
  color: #d9a8c0;
}

.pass-head b {
  color: var(--gold);
}

.pass-stub .pass-head {
  padding-right: 36px;
}

.pass-flag {
  height: 6px;
  background: linear-gradient(#fff 0 33.4%, #0039a6 33.4% 66.7%, #d52b1e 66.7%);
}

.pass-route {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 4px;
}

.pass-pt {
  display: grid;
  min-width: 76px;
}

.pass-pt small,
.pass-info dt,
.pass-price small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pass-pt b {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.pass-pt span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pass-to {
  text-align: right;
}

.pass-to b {
  color: var(--berry);
}

.pass-to b.is-flip {
  animation: flip 0.32s ease-out;
}

.pass-path {
  position: relative;
  flex: 1;
  height: 18px;
  margin-top: 14px;
  background: radial-gradient(circle, #d6b6c4 1.4px, transparent 1.6px) 0 50% / 8px 8px repeat-x;
}

.pass-plane {
  position: absolute;
  top: 0;
  left: 0;
  fill: var(--plum);
  animation: fly 3.4s ease-in-out infinite;
}

.pass-info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 16px 14px;
}

.pass-info dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.pass-price {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 6px;
  padding: 10px 14px 0;
}

.pass-price small {
  grid-column: 1 / -1;
}

.pass-price b {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.pass-price s {
  color: #b9a3b6;
  font-size: 0.85rem;
  font-weight: 700;
}

.pass-btn {
  margin: 8px 14px 0;
}

.pass-code {
  display: block;
  height: 20px;
  margin: 10px 14px 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 8px,
    var(--ink) 8px 11px,
    transparent 11px 12px,
    var(--ink) 12px 13px,
    transparent 13px 16px
  );
  opacity: 0.8;
}

@keyframes fly {
  0% {
    left: 0;
    opacity: 0;
  }

  15%,
  85% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 18px);
    opacity: 0;
  }
}

@keyframes flip {
  from {
    opacity: 0.2;
    transform: rotateX(80deg);
  }
}

/* ---------- Телефон на первом экране (motion.js: is-idle → is-conn → is-on → is-on is-fast) ---------- */
.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.75;
  animation: drift 10s ease-in-out infinite alternate;
}

.glow-a {
  top: 30px;
  right: 30px;
  width: 300px;
  height: 300px;
  background: #ff4f9a;
}

.glow-b {
  bottom: 40px;
  left: 20px;
  width: 260px;
  height: 260px;
  background: #8a3cff;
  animation-delay: -5s;
}

@keyframes drift {
  to {
    transform: translate(-30px, 20px) scale(1.08);
  }
}

.dev {
  margin: 0;
  width: 290px;
  transform: rotate(-3deg);
  animation: float 7s var(--ease) infinite alternate;
}

.dev-frame {
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(145deg, #4a1c45 0%, #1a0816 55%, #2c0f28 100%);
  box-shadow:
    0 50px 90px -35px rgb(42 11 38 / 0.7),
    inset 0 0 0 1.5px #6b3363,
    inset 0 0 0 6px #0c040a;
}

.dev-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 570px;
  padding: 14px 18px 18px;
  overflow: hidden;
  border-radius: 38px;
  background: radial-gradient(120% 70% at 50% 0%, #34124a 0%, #150a22 58%, #0b0612 100%);
  color: #fff;
}

.dev-screen > * {
  flex: none;
}

.dev-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #f1e6f3;
  font-size: 0.72rem;
  font-weight: 700;
}

.dev-isl {
  width: 86px;
  height: 25px;
  border-radius: 14px;
  background: #000;
}

.dev-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  font-size: 1.05rem;
}

.dev-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.08);
}

.dev-state {
  position: relative;
  width: 100%;
  height: 24px;
  margin-top: 34px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.st {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
}

.st-on {
  color: #5ef0b8;
}

.dev.is-idle .st-idle,
.dev.is-conn .st-conn,
.dev.is-on .st-on {
  opacity: 1;
}

.dev-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-top: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #3d2752, #1b1028);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 24px 40px -22px #000;
  transition: background 0.5s;
}

.dev-btn svg {
  fill: none;
  stroke: #cbb8d6;
  stroke-linecap: round;
  stroke-width: 2.2;
  transition: stroke 0.4s;
}

.dev-ring {
  position: absolute;
  inset: -9px;
  border: 3px solid transparent;
  border-radius: 50%;
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
}

.dev.is-idle .dev-btn {
  animation: tap 1.5s var(--ease) 0.6s;
}

.dev.is-conn .dev-ring {
  border-top-color: #ee4d8b;
  border-right-color: #ff9ac2;
  animation: spin 0.8s linear infinite;
}

.dev.is-on .dev-ring {
  border-color: rgb(94 240 184 / 0.9);
  box-shadow:
    0 0 34px rgb(94 240 184 / 0.55),
    inset 0 0 20px rgb(94 240 184 / 0.35);
}

.dev.is-on .dev-btn {
  background: radial-gradient(circle at 50% 35%, #1f5f4e, #0b2a22);
}

.dev.is-on .dev-btn svg {
  stroke: #5ef0b8;
}

.dev-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.35;
  transition: opacity 0.4s;
}

.dev-loc img {
  border-radius: 3px;
}

.dev-loc b {
  color: #5ef0b8;
}

.dev-meter {
  width: 100%;
  margin-top: 22px;
  opacity: 0.3;
  transition: opacity 0.4s;
}

.dev.is-on .dev-loc,
.dev.is-on .dev-meter {
  opacity: 1;
}

.dev-meter-top {
  display: flex;
  justify-content: space-between;
  color: #cbb8d6;
  font-size: 0.78rem;
}

.dev-meter-top b {
  color: #fff;
}

.dev-track {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.08);
}

.dev-track i {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ee4d8b, #ffb86b, #5ef0b8);
  box-shadow: 0 0 14px rgb(238 77 139 / 0.6);
  transition: width 1.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dev.is-fast .dev-track i {
  width: 100%;
}

.dev-cards {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
}

.dev-cards span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.4s,
    transform 0.45s var(--ease);
}

.dev.is-fast .dev-cards span {
  opacity: 1;
  transform: none;
}

.dev.is-fast .dev-cards span:nth-child(2) {
  transition-delay: 0.25s;
}

.dev-warp {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.dev.is-fast .dev-warp {
  opacity: 1;
}

.dev-warp i {
  position: absolute;
  left: -45%;
  width: 45%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.9));
  animation: warp 1.1s linear infinite;
}

.dev-warp i:nth-child(1) { top: 16%; animation-delay: -0.1s; }
.dev-warp i:nth-child(2) { top: 27%; animation-delay: -0.55s; background: linear-gradient(90deg, transparent, #ff9ac2); }
.dev-warp i:nth-child(3) { top: 41%; animation-delay: -0.3s; animation-duration: 0.9s; }
.dev-warp i:nth-child(4) { top: 55%; animation-delay: -0.8s; background: linear-gradient(90deg, transparent, #5ef0b8); }
.dev-warp i:nth-child(5) { top: 68%; animation-delay: -0.2s; animation-duration: 1.3s; }
.dev-warp i:nth-child(6) { top: 80%; animation-delay: -0.65s; background: linear-gradient(90deg, transparent, #ffb86b); }
.dev-warp i:nth-child(7) { top: 91%; animation-delay: -0.4s; animation-duration: 0.8s; }

@keyframes warp {
  to {
    transform: translateX(340%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tap {
  40% {
    transform: scale(0.92);
  }
}

.float {
  position: absolute;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-s);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite alternate;
}

.float-a {
  top: 110px;
  left: 0;
}

.float-b {
  right: 0;
  bottom: 120px;
  animation-delay: -3s;
}

@keyframes bob {
  to {
    transform: translateY(-12px);
  }
}


.apps {
  display: block !important;
}

.final {
  grid-template-columns: 1fr !important;
  text-align: center;
}

.final .cta-row {
  justify-content: center;
}

.final h2 {
  margin-inline: auto;
}

/* ---------- Протоколы ---------- */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-block: 10px 30px;
}

.chips-t {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ---------- Секции ---------- */
.section {
  padding-block: 70px;
}

.band {
  padding-block: 76px;
  background: var(--bg2);
}

.band-plum {
  background: radial-gradient(120% 90% at 10% 0%, #6d1660 0%, var(--plum) 45%, var(--plum2) 100%);
  color: #fff;
}

.band-plum .kicker {
  background: rgb(255 255 255 / 0.12);
  color: #ffc2d8;
}

.band-plum .sub {
  color: rgb(255 255 255 / 0.78);
}

h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

.sub {
  max-width: 680px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.06rem;
}

/* Возможности */
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.feat {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-s);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feat-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #fde3ec;
  font-size: 1.4rem;
}

.feat h3 {
  font-size: 1.15rem;
}

.feat p:last-child {
  margin-top: 8px;
  color: var(--muted);
}

.failover {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.fo-txt p {
  margin-top: 8px;
  color: rgb(255 255 255 / 0.78);
}

.fo-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.fo-route li:not(.fo-arrow) {
  display: grid;
  justify-items: center;
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
  text-align: center;
}

.fo-route img {
  margin-bottom: 6px;
  border-radius: 4px;
}

.fo-route small {
  font-size: 0.78rem;
  font-weight: 600;
}

.fo-off {
  background: rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.5);
  text-decoration: line-through;
}

.fo-off small {
  text-decoration: none;
}

.fo-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 4px rgb(18 163 123 / 0.35);
}

.fo-on small {
  color: var(--mint);
}

.fo-arrow {
  color: var(--berry2);
  font-size: 1.8rem;
  font-weight: 800;
  animation: nudge 1.6s var(--ease) infinite;
}

@keyframes nudge {
  50% {
    transform: translateX(6px);
  }
}

/* Устройства */
.apps {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 30px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.app {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 16px 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-s);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}

.app:hover {
  transform: translateY(-3px);
}

.app span {
  font-size: 1.6rem;
}

.app small {
  color: var(--muted);
  font-size: 0.78rem;
}

.steps,
.ref-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.steps li,
.ref-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.steps b,
.ref-steps b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
}

.also {
  margin-top: 18px;
  color: var(--muted);
}

/* Страны */
.locs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.locs li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-s);
}

.locs img {
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.locs b {
  flex: 1;
}

.locs span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f7f1;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
}

/* Тарифы: выбор срока на радиокнопках */
.tariff {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "seg seg"
    "card incl";
  gap: 18px 26px;
  margin-top: 34px;
}

.t-in {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg {
  grid-area: seg;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
}

.seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 999px;
  color: rgb(255 255 255 / 0.8);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}

.seg small {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--plum2);
  font-size: 0.72rem;
}

#srok-7:checked ~ .seg label[for="srok-7"],
#srok-1:checked ~ .seg label[for="srok-1"],
#srok-3:checked ~ .seg label[for="srok-3"],
#srok-6:checked ~ .seg label[for="srok-6"] {
  background: #fff;
  color: var(--ink);
}

#srok-7:focus-visible ~ .seg label[for="srok-7"],
#srok-1:focus-visible ~ .seg label[for="srok-1"],
#srok-3:focus-visible ~ .seg label[for="srok-3"],
#srok-6:focus-visible ~ .seg label[for="srok-6"] {
  outline: 3px solid var(--berry2);
}

.tcard {
  grid-area: card;
  display: none;
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
  animation: pop 0.45s var(--ease);
}

#srok-7:checked ~ .t-7,
#srok-1:checked ~ .t-1,
#srok-3:checked ~ .t-3,
#srok-6:checked ~ .t-6 {
  display: block;
}

.t-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fde3ec;
  color: var(--berry);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.t-price {
  margin-top: 14px;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
}

.t-price s {
  margin-right: 6px;
  color: #b9a3b6;
  font-size: 0.45em;
  font-weight: 700;
}

.t-per {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

.t-btn {
  width: 100%;
  margin-top: 22px;
}

.incl {
  grid-area: incl;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.incl li {
  display: flex;
  gap: 10px;
  color: rgb(255 255 255 / 0.92);
  font-weight: 600;
}

.incl li::before {
  content: "✓";
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgb(18 163 123 / 0.25);
  color: #6ff0c4;
  font-size: 0.8rem;
  font-weight: 800;
}

.pay-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.pay-row p {
  padding: 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.07);
  color: rgb(255 255 255 / 0.82);
  font-size: 0.95rem;
}

.pay-row b {
  color: #fff;
}

.pay-row a {
  color: #ffc2d8;
}

/* Партнёрам */
.partner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 24px;
}

.ref-steps {
  flex-direction: column;
  margin-top: 0;
}

.ref-steps li {
  background: var(--card);
  box-shadow: var(--shadow-s);
}

/* Вопросы */
.faq-wrap {
  max-width: 860px;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.faq details {
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-s);
}

.faq summary {
  position: relative;
  padding: 18px 54px 18px 22px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fde3ec;
  color: var(--berry);
  font-size: 1.2rem;
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* Финал */
.final {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 30px;
  margin-block: 70px;
  padding: 36px 40px;
  border-radius: 32px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
}

.final p {
  margin-top: 10px;
  color: rgb(255 255 255 / 0.9);
  font-weight: 700;
}

.final .btn {
  background: #fff;
  color: var(--berry);
}

.final .btn-soft {
  background: rgb(255 255 255 / 0.15);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.5);
  color: #fff;
}

/* Подвал */
.foot {
  padding-block: 40px;
  background: var(--plum2);
  color: rgb(255 255 255 / 0.75);
  font-size: 0.92rem;
}

.foot-in {
  display: grid;
  gap: 20px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.foot-brand b {
  color: #fff;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.foot-links a {
  color: #ffc2d8;
}

.foot-note {
  color: rgb(255 255 255 / 0.5);
  font-size: 0.82rem;
}



/* ========== Подача 18.11.2026: журнальный первый экран, плитки, клавиши, табло, билеты, открытка, чат ========== */
.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.04;
}

.hero h1 em,
.h-left em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--berry);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.squig {
  padding-bottom: 6px;
  background: url("squig.svg") left bottom / 100% 14px no-repeat !important;
}

.note {
  position: relative;
  display: inline-block;
  margin: 14px 0 0 150px;
  color: var(--berry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
  transform: rotate(-3deg);
}

.note-arrow {
  position: absolute;
  top: -30px;
  left: -78px;
  fill: none;
  stroke: var(--berry);
  stroke-linecap: round;
  stroke-width: 2.2;
}

.stub {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-s);
}

.stub li {
  padding: 14px 20px;
}

.stub li + li {
  border-left: 2px dashed var(--line);
}

.stub b {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.stub span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.h-left {
  max-width: 820px;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
}

/* полоса скорости */
.band-speed {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding: 44px 44px 46px;
  border-radius: 34px;
  background: radial-gradient(120% 140% at 0% 0%, #7a1866 0%, #3a0d36 55%, #1d0619 100%);
  color: #fff;
}

.band-speed::before,
.band-speed::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 40%;
  left: -40%;
  background: linear-gradient(90deg, transparent, rgb(255 154 194 / 0.9));
  animation: warp 2.6s linear infinite;
}

.band-speed::before {
  top: 22%;
}

.band-speed::after {
  top: 78%;
  animation-delay: -1.3s;
  background: linear-gradient(90deg, transparent, rgb(94 240 184 / 0.8));
}

.band-speed h2 {
  position: relative;
  max-width: 900px;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
}

.band-speed p {
  position: relative;
  max-width: 720px;
  margin-top: 14px;
  color: rgb(255 255 255 / 0.8);
  font-size: 1.05rem;
}

/* плитки разного размера */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.tile {
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: #fff;
}

.tile h3 {
  font-size: 1.2rem;
}

.tile p {
  margin-top: 8px;
  color: var(--muted);
}

.tile-num {
  margin: 0 0 18px !important;
  color: var(--berry) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-style: italic;
}

.tile-auto {
  grid-column: span 2;
  grid-row: span 2;
  border: 0;
  background: var(--ink);
  color: #fff;
}

.tile-auto h3 {
  font-size: 1.7rem;
}

.tile-auto p {
  max-width: 440px;
  color: rgb(255 255 255 / 0.78);
}

.tile-auto .fo-route {
  justify-content: flex-start;
  margin-top: 34px;
}

.tile-auto {
  display: flex;
  flex-direction: column;
}

.tile-auto .fo-route {
  margin-top: auto;
  padding-top: 30px;
}

.proto {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px !important;
}

.proto span {
  padding: 4px 10px;
  border-radius: 8px;
  background: #fbeef2;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

/* клавиши устройств */
.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.key {
  display: grid;
  min-width: 150px;
  padding: 14px 18px 12px;
  border: 1.5px solid #e9cfd8;
  border-bottom-width: 6px;
  border-radius: 16px;
  background: linear-gradient(#fff, #fdf3f6);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.15s,
    border-bottom-width 0.15s;
}

.key:hover {
  border-bottom-width: 2px;
  transform: translateY(4px);
}

.key small {
  color: var(--muted);
}

.howto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 26px;
  font-weight: 700;
}

.howto span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
}

.howto i {
  color: var(--berry);
  font-style: normal;
}

/* табло вылетов */
.board {
  margin-top: 30px;
  padding: 18px 20px 14px;
  border-radius: 22px;
  background: #140b16;
  color: #ffd27a;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  box-shadow: var(--shadow);
}

.board ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-head,
.board li {
  display: grid;
  grid-template-columns: 70px 1fr 90px 170px;
  align-items: center;
  gap: 10px;
}

.board-head {
  padding: 0 4px 10px;
  border-bottom: 1px solid rgb(255 210 122 / 0.2);
  color: rgb(255 210 122 / 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board li {
  padding: 11px 4px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  font-size: 0.98rem;
}

.b-code {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.b-city {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffe7b0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.b-city img {
  border-radius: 2px;
}

.b-st {
  color: #5ef0b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.board-foot {
  padding-top: 10px;
  color: rgb(255 210 122 / 0.5);
  font-size: 0.75rem;
}

/* билеты */
.tickets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.ticket {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 22px;
  background: #fff8f4;
  color: var(--ink);
  -webkit-mask:
    radial-gradient(circle 14px at 0 calc(100% - 84px), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 14px at 100% calc(100% - 84px), #0000 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 14px at 0 calc(100% - 84px), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 14px at 100% calc(100% - 84px), #0000 97%, #000) right / 51% 100% no-repeat;
}

.t-main {
  padding: 26px 22px 20px;
}

.t-dest {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.t-price {
  margin-top: 8px;
  font-size: clamp(2.1rem, 3.3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
}

.t-price s {
  margin-right: 4px;
  color: #b9a3b6;
  font-size: 0.45em;
  font-weight: 700;
}

.t-per {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

.t-stub {
  display: grid;
  height: 84px;
  place-items: center;
  padding: 0 22px;
  border-top: 2px dashed #e9cfd8;
}

.t-btn {
  width: 100%;
}

.ticket-hot {
  background: #fff;
  box-shadow: 0 0 0 3px var(--gold);
}

.stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 12px;
  border: 3px solid var(--berry);
  border-radius: 8px;
  color: var(--berry);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(9deg);
  opacity: 0.85;
}

.fine {
  max-width: 900px;
  margin-top: 26px;
  color: rgb(255 255 255 / 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

.fine a {
  color: #ffc2d8;
}

/* открытка партнёрам */
.postcard {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  padding: 38px 40px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgb(200 23 93 / 0.06) 31px 32px),
    #fffaf3;
  box-shadow:
    0 30px 60px -30px rgb(74 18 64 / 0.4),
    0 0 0 1px var(--line);
  transform: rotate(-0.6deg);
}

.pc-text p {
  max-width: 520px;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.mark {
  position: absolute;
  top: 26px;
  right: 30px;
  display: grid;
  place-items: center;
  width: 108px;
  height: 128px;
  border: 3px dashed var(--berry);
  border-radius: 6px;
  background: #fde3ec;
  color: var(--berry);
  font-size: 1.9rem;
  font-weight: 800;
  transform: rotate(4deg);
}

.pc-lines {
  display: grid;
  align-content: end;
  gap: 18px;
  padding-top: 150px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.pc-lines span {
  padding-bottom: 6px;
  border-bottom: 1.5px solid #e2c7cf;
}

/* вопросы чатом */
.chat-wrap {
  max-width: 860px;
}

.chat {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.chat details {
  display: grid;
}

.chat summary {
  justify-self: end;
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 20px 20px 6px 20px;
  background: var(--plum);
  color: #fff;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.chat summary::-webkit-details-marker {
  display: none;
}

.chat details[open] summary {
  background: var(--berry);
}

.chat details p {
  justify-self: start;
  max-width: 80%;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 20px 20px 20px 6px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-s);
}

.chat details p::before {
  content: "Rubezh";
  display: block;
  margin-bottom: 2px;
  color: var(--berry);
  font-size: 0.75rem;
  font-weight: 800;
}

.chat-more {
  margin-top: 22px;
  color: var(--muted);
}

/* финал без картинки */
.final h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

@media (max-width: 980px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .tickets {
    grid-template-columns: 1fr 1fr;
    max-width: 720px;
  }

  .postcard {
    grid-template-columns: 1fr;
  }

  .pc-lines {
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .tickets {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .note {
    margin-left: 86px;
    font-size: 1rem;
  }

  .note-arrow {
    left: -72px;
  }

  .stub {
    grid-template-columns: 1fr 1fr;
  }

  .stub li:nth-child(3) {
    border-left: 0;
  }

  .stub li:nth-child(n + 3) {
    border-top: 2px dashed var(--line);
  }

  .band-speed {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile-auto {
    grid-column: auto;
    grid-row: auto;
  }

  .key {
    min-width: calc(50% - 6px);
  }

  .board {
    padding: 14px 12px 10px;
  }

  .board-head,
  .board li {
    grid-template-columns: 52px 1fr 64px;
  }

  .board-head span:last-child,
  .b-st {
    display: none;
  }

  .board li {
    font-size: 0.86rem;
  }

  .postcard {
    padding: 28px 22px;
  }

  .mark {
    position: static;
    width: 90px;
    height: 100px;
    font-size: 1.5rem;
  }

  .chat summary,
  .chat details p {
    max-width: 92%;
  }
}

/* ---------- Окна покупки и «Мой ключ» (checkout.js, key.js) ---------- */
.buy {
  width: min(440px, 100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.buy[open] {
  animation: pop 0.45s var(--ease);
}

.buy::backdrop {
  background: rgb(42 11 38 / 0.5);
  backdrop-filter: blur(6px);
}

.buy-box {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 30px 26px 24px;
}

.buy-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fbeef2;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}

.buy-kicker {
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buy h3 {
  font-size: 1.5rem;
}

.buy-price,
.buy-note {
  color: var(--muted);
}

.buy-note {
  font-size: 0.85rem;
}

.buy-label {
  margin-top: 6px;
  font-weight: 700;
}

.buy input {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: #fbf3f5;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
}

.buy input:focus {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--berry);
}

.buy-err {
  color: #c81e1e;
  font-weight: 700;
}

.buy-go {
  display: block;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font: 700 1rem/1.2 inherit;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.buy-go:disabled {
  opacity: 0.6;
  cursor: default;
}

.order-key {
  display: grid;
  gap: 10px;
}

.order-key code {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: #fbf3f5;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.order-steps,
.key-perks {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.key-step {
  display: grid;
  gap: 12px;
}

.key-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
}

.key-facts dt {
  color: var(--muted);
}

.key-facts dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.key-alt {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
}

.key-tg {
  background: #2aabee;
}

.key-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.key-link {
  border: 0;
  background: none;
  color: var(--berry);
  font: 700 0.9rem inherit;
  font-family: inherit;
  cursor: pointer;
}

.key-link:disabled {
  color: #b9a3b6;
  cursor: default;
}

.key-wait {
  color: var(--muted);
  font-weight: 600;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

/* ---------- Страница «Оплата и условия» ---------- */
.doc {
  max-width: 820px;
  padding-block: 50px 70px;
}

.crumbs {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--muted);
}

.doc h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.5rem;
}

.doc > p,
.doc li {
  color: var(--muted);
  font-size: 1.04rem;
}

.doc > p,
.doc > ul,
.doc > ol {
  margin-top: 14px;
}

.doc li + li {
  margin-top: 8px;
}

.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.doc th,
.doc td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.doc-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
}

.doc-cta .btn {
  background: #fff;
  color: var(--berry);
}

/* ---------- Появление при прокрутке (motion.js ставит .is-in; без JS всё видно) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .top-act {
    margin-left: auto;
  }

  .hero,
  .apps,
  .failover,
  .partner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-art {
    min-height: 470px;
  }

  .feats,
  .locs {
    grid-template-columns: repeat(2, 1fr);
  }

  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tariff {
    grid-template-columns: 1fr;
    grid-template-areas:
      "seg"
      "card"
      "incl";
  }

  .pay-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hide-s {
    display: none;
  }

  .brand span {
    font-size: 1rem;
  }

  .feats,
  .locs,
  .speed {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .offer {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .pass-mini {
    right: 12px;
    bottom: 12px;
  }

  body.has-pass {
    padding-bottom: 240px;
  }

  .pass {
    --row: 62px;
    grid-template-columns: 1fr;
    -webkit-mask:
      radial-gradient(circle 10px at 0 calc(100% - var(--row)), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 10px at 100% calc(100% - var(--row)), #0000 97%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle 10px at 0 calc(100% - var(--row)), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 10px at 100% calc(100% - var(--row)), #0000 97%, #000) right / 51% 100% no-repeat;
  }

  .pass-main .pass-head {
    padding-right: 40px;
  }

  .pass-info {
    display: none;
  }

  .pass-route {
    padding-bottom: 12px;
  }

  .pass-stub {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: var(--row);
    padding: 0 14px;
    border-top: 2px dashed rgb(120 72 10 / 0.35);
    border-left: 0;
  }

  .pass-stub .pass-head,
  .pass-stub .pass-flag,
  .pass-code {
    display: none;
  }

  .pass-price {
    padding: 0;
  }

  .pass-price b {
    font-size: 1.4rem;
  }

  .pass-btn {
    margin: 0;
  }

  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .seg {
    grid-template-columns: repeat(3, 1fr);
  }

  .seg label {
    flex-direction: column;
    gap: 2px;
    padding: 10px 4px;
    font-size: 0.92rem;
  }

  .fo-route li:not(.fo-arrow) {
    min-width: 0;
    padding: 12px;
  }

  .final {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    text-align: center;
  }

  .final .cta-row {
    justify-content: center;
  }

  .tcard {
    padding: 24px;
  }

  .btn-big {
    width: 100%;
  }
}

/* билет и ярлычок постоянно у нижнего края — оставляем место, чтобы подвал не прятался под ними */
body.has-pass {
  padding-bottom: 230px;
}

body.has-pass-mini {
  padding-bottom: 76px;
}


@media (max-width: 620px) {
  .hero-art {
    min-height: 560px;
  }

  .dev {
    width: 258px;
  }

  .dev-screen {
    height: 520px;
  }

  .dev-btn {
    width: 124px;
    height: 124px;
    margin-top: 16px;
  }

  .dev-state {
    margin-top: 22px;
  }

  .dev-loc {
    margin-top: 20px;
  }

  .dev-meter {
    margin-top: 16px;
  }

  .dev-cards span {
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .float {
    font-size: 0.78rem;
  }

  .float-a {
    top: 0;
    left: 6px;
  }

  .float-b {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
