/* ═══════════════════════════════════════════════════════════════
   Laska VPN — сайт-открытка
   Палитра совпадает с miniapp/src/styles/global.css.
   Фон #1a2d42 зафиксирован — см. Obsidian: 15_Infra/laska-bot/miniapp-brand-colors.md.
   Разметка и анимация — свои, Mini App не переиспользуется.
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* Brand tokens — держать в синхроне с miniapp/src/styles/global.css */
  --laska-navy: #0d1b2a;
  --laska-navy-deep: #0a1520;
  --laska-navy-bg: #1a2d42;      /* CANONICAL — DO NOT CHANGE */
  --laska-navy-card: #152232;
  --laska-navy-elevated: #223a52;
  --laska-teal: #26a69a;
  --laska-teal-bright: #2ec4b6;
  --laska-teal-glow: rgba(38, 166, 154, 0.35);
  --laska-cream: #f5f5dc;
  --laska-cream-bright: #fdfdfd;
  --laska-cream-muted: rgba(245, 245, 220, 0.62);
  --laska-cream-dim: rgba(245, 245, 220, 0.38);

  --bg: var(--laska-navy-bg);
  --text: var(--laska-cream);
  --hint: var(--laska-cream-muted);
  --accent: var(--laska-teal);
  --accent-text: var(--laska-navy-deep);
  --card: var(--laska-navy-card);
  --border: rgba(38, 166, 154, 0.22);
  --border-subtle: rgba(245, 245, 220, 0.08);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-teal: 0 12px 32px var(--laska-teal-glow);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shell: 1080px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3 { color: var(--laska-cream-bright); letter-spacing: -0.015em; }

/* ── Фоновая аврора: свой приём, не орбы Mini App ───────────────── */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__band {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 62vh;
  filter: blur(90px);
  opacity: 0.55;
}

.aurora__band--1 {
  top: -28vh;
  background: linear-gradient(100deg, transparent 8%, rgba(38, 166, 154, 0.5) 42%, rgba(46, 196, 182, 0.28) 62%, transparent 92%);
  animation: aurora-sweep-1 26s ease-in-out infinite;
}

.aurora__band--2 {
  top: 46vh;
  height: 54vh;
  opacity: 0.34;
  background: linear-gradient(260deg, transparent 12%, rgba(46, 196, 182, 0.42) 48%, transparent 88%);
  animation: aurora-sweep-2 34s ease-in-out infinite;
}

/* Едва заметная сетка — «инфраструктура» под контентом */
.aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 245, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 220, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 78%);
}

@keyframes aurora-sweep-1 {
  0%, 100% { transform: translate3d(-6%, 0, 0) rotate(-3deg); }
  50%      { transform: translate3d(8%, 5vh, 0) rotate(2deg); }
}
@keyframes aurora-sweep-2 {
  0%, 100% { transform: translate3d(7%, 0, 0) rotate(2deg); }
  50%      { transform: translate3d(-8%, -4vh, 0) rotate(-3deg); }
}

/* ── Верхняя панель ────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--laska-cream-bright);
  text-decoration: none;
}

.topbar__brand img { filter: drop-shadow(0 4px 14px var(--laska-teal-glow)); }

.topbar__brand b {
  margin-left: 4px;
  background: linear-gradient(120deg, var(--laska-teal-bright), var(--laska-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar__nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 0.9rem;
}

.topbar__nav a {
  position: relative;
  white-space: nowrap;
  color: var(--hint);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  background: var(--laska-teal-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}

.topbar__nav a:hover { color: var(--laska-cream-bright); }
.topbar__nav a:hover::after { transform: scaleX(1); }

/* ── Кнопки ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  color: var(--accent-text);
  background: linear-gradient(120deg, var(--laska-teal-bright), var(--laska-teal));
  box-shadow: var(--shadow-teal);
}

/* Блик, пробегающий по кнопке при наведении */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-out);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px var(--laska-teal-glow); }
.btn--primary:hover::after { left: 115%; }

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(21, 34, 50, 0.55);
}

.btn--ghost:hover {
  border-color: var(--laska-teal-bright);
  color: var(--laska-cream-bright);
  transform: translateY(-2px);
}

.btn--lg { padding: 15px 30px; font-size: 1rem; }

/* ── Hero ──────────────────────────────────────────────────────── */

main { position: relative; z-index: 1; }

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 20px 72px;
  text-align: center;
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 240px;
  height: 240px;
  margin: 0 auto 26px;
}

.hero__logo {
  position: relative;
  z-index: 2;
  width: 168px;
  height: auto;
  filter: drop-shadow(0 14px 34px var(--laska-teal-glow));
  animation: logo-float 7s ease-in-out infinite;
}

/* Вращающийся конический ореол за логотипом */
.halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(38, 166, 154, 0.42) 70deg,
    rgba(46, 196, 182, 0.14) 150deg,
    transparent 230deg);
  filter: blur(26px);
  animation: halo-spin 14s linear infinite;
}

/* Расходящиеся кольца — «сигнал» подключения */
.ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(46, 196, 182, 0.34);
  border-radius: 50%;
  opacity: 0;
  animation: ring-pulse 4.2s ease-out infinite;
}

.ring--2 { animation-delay: 2.1s; }

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@keyframes halo-spin {
  to { transform: rotate(360deg); }
}

@keyframes ring-pulse {
  0%   { opacity: 0; transform: scale(0.72); }
  22%  { opacity: 0.75; }
  100% { opacity: 0; transform: scale(1.35); }
}

.hero__title {
  margin: 0;
  font-size: clamp(2.1rem, 6.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero__title span {
  background: linear-gradient(120deg, var(--laska-teal-bright), var(--laska-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__kicker {
  margin: 0 0 12px;
  color: var(--laska-teal-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--hint);
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero__chips li {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(21, 34, 50, 0.5);
  color: var(--hint);
  font-size: 0.84rem;
}

/* ── Подарок: Gemini Pro + 5 ТБ ────────────────────────────────
   Единственное место с золотым акцентом — чтобы акция читалась как
   отдельная фишка, а не ещё одна teal-карточка.
   ─────────────────────────────────────────────────────────────── */

:root {
  --gift: #ffd54f;
  --gift-deep: #f5a623;
  --gift-glow: rgba(255, 213, 79, 0.32);
}

.topbar__nav-gift { color: var(--gift) !important; font-weight: 700; }
.topbar__nav-gift::after { background: var(--gift) !important; }

/* Бейдж в герое */
.gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 30px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 79, 0.45);
  background:
    linear-gradient(120deg, rgba(255, 213, 79, 0.16), rgba(245, 166, 35, 0.06) 60%, rgba(21, 34, 50, 0.6));
  box-shadow: 0 10px 30px rgba(255, 213, 79, 0.12);
  color: var(--laska-cream);
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

.gift-badge:hover {
  transform: translateY(-2px);
  border-color: var(--gift);
  box-shadow: 0 14px 36px var(--gift-glow);
}

.gift-badge__icon { font-size: 1.25rem; line-height: 1; animation: gift-wiggle 3.6s ease-in-out infinite; }
.gift-badge__text b { color: var(--gift); }
.gift-badge__arrow { color: var(--gift); font-weight: 800; transition: transform 0.25s var(--ease-out); }
.gift-badge:hover .gift-badge__arrow { transform: translateX(4px); }

@keyframes gift-wiggle {
  0%, 84%, 100% { transform: rotate(0); }
  88% { transform: rotate(-12deg); }
  92% { transform: rotate(10deg); }
  96% { transform: rotate(-6deg); }
}

/* Секция */
.section--gift { padding-top: 24px; }

.gift {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  padding: 40px 42px;
  border-radius: 30px;
  border: 1px solid rgba(255, 213, 79, 0.35);
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(255, 213, 79, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(38, 166, 154, 0.2), transparent 60%),
    linear-gradient(160deg, rgba(26, 45, 66, 0.97), rgba(13, 27, 42, 0.97));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 213, 79, 0.08), 0 30px 80px rgba(255, 213, 79, 0.08);
  overflow: hidden;
}

/* Медленно плывущее золотое пятно за контентом */
.gift__glow {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.22), transparent 62%);
  filter: blur(40px);
  pointer-events: none;
  animation: gift-drift 18s ease-in-out infinite;
}

@keyframes gift-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(18%, 10%, 0); }
}

.gift__main, .gift__how { position: relative; z-index: 1; }

.gift__kicker {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 213, 79, 0.16);
  color: var(--gift);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gift__title {
  margin: 16px 0 12px;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
}

.gift__title span {
  background: linear-gradient(120deg, var(--gift), var(--gift-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gift__lead { margin: 0; color: var(--hint); font-size: 1rem; }
.gift__lead b { color: var(--laska-cream-bright); }

.gift__perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.gift__perks li {
  position: relative;
  padding-left: 28px;
  color: var(--laska-cream);
  font-size: 0.95rem;
}

.gift__perks li b { color: var(--laska-cream-bright); }

.gift__perks li::before {
  content: "✦";
  position: absolute;
  left: 2px;
  top: 0.05em;
  color: var(--gift);
  font-size: 1rem;
}

.gift__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 28px;
}

.btn--gift {
  position: relative;
  overflow: hidden;
  color: #2b1d00;
  background: linear-gradient(120deg, var(--gift), var(--gift-deep));
  box-shadow: 0 12px 32px var(--gift-glow);
}

.btn--gift::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-out);
}

.btn--gift:hover { transform: translateY(-2px); box-shadow: 0 18px 40px var(--gift-glow); }
.btn--gift:hover::after { left: 115%; }

.gift__guide { color: var(--hint); font-size: 0.9rem; text-decoration: none; }
.gift__guide:hover { color: var(--gift); }

.gift__how {
  align-self: start;
  padding: 24px 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 27, 42, 0.55);
}

.gift__how h3 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; }

.gift__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gift;
}

.gift__steps li {
  position: relative;
  counter-increment: gift;
  margin: 0 0 12px;
  padding-left: 40px;
  color: var(--hint);
  font-size: 0.93rem;
}

.gift__steps li b { color: var(--laska-cream-bright); }

.gift__steps li::before {
  content: counter(gift);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 213, 79, 0.5);
  color: var(--gift);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.gift__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  color: var(--laska-cream-dim);
  font-size: 0.85rem;
}

/* ── Секции ────────────────────────────────────────────────────── */

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 20px;
}

.section__title {
  margin: 0 0 30px;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 800;
  text-align: center;
}

/* Карточки «Что входит» */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(26, 45, 66, 0.92), rgba(21, 34, 50, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% -10%, rgba(46, 196, 182, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover { transform: translateY(-5px); border-color: var(--border); }
.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(38, 166, 154, 0.14);
  color: var(--laska-teal-bright);
}

.card__icon svg { width: 24px; height: 24px; }

.card h3 { margin: 16px 0 8px; font-size: 1.08rem; font-weight: 700; }
.card p  { margin: 0; color: var(--hint); font-size: 0.93rem; }

/* Строка под карточками «Что входит» — цены только в боте */
.section__after {
  margin: 26px 0 0;
  color: var(--laska-cream-dim);
  text-align: center;
  font-size: 0.9rem;
}

.section__after a { color: var(--laska-teal-bright); text-decoration: none; }
.section__after a:hover { text-decoration: underline; }

/* Карточки-ссылки (гайды) */
.card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.card--link h3 { margin-top: 10px; }
.card--link p  { flex: 1; }

.card__tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.14);
  color: var(--laska-teal-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card__more {
  display: inline-block;
  margin-top: 16px;
  color: var(--laska-teal-bright);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease-out);
}

.card--link:hover .card__more { transform: translateX(4px); }

/* Главный гайд — на всю ширину первого ряда на широких экранах */
.cards--guides { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (min-width: 900px) {
  .cards--guides { grid-template-columns: repeat(4, 1fr); }
  .card--wide { grid-column: span 2; }
}

/* Подводка к секции */
.section__lead {
  max-width: 560px;
  margin: -16px auto 34px;
  color: var(--hint);
  text-align: center;
  font-size: 0.98rem;
}

/* Уточнение под подводкой: какое приложение поддерживаем */
.section__note {
  max-width: 560px;
  margin: -18px auto 32px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(38, 166, 154, 0.08);
  color: var(--laska-cream);
  text-align: center;
  font-size: 0.92rem;
}

.section__note b { color: var(--laska-teal-bright); }

/* ── Подключение: таймлайн с рейкой-«сигналом» ─────────────────── */
.flow {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  --flow-num: 38px;
  --flow-gap: 18px;
}

/* Рейка — сегменты от номера до следующего номера. Так линия заканчивается
   ровно на последнем номере, каким бы длинным ни был его текст. */
.flow__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--flow-num) / 2);
  bottom: calc(-1 * var(--flow-num) / 2);   /* заходит в следующий шаг, до центра его номера */
  left: calc(var(--flow-num) / 2 - 1px);
  width: 2px;
  background: linear-gradient(180deg, var(--laska-teal-bright), rgba(38, 166, 154, 0.25));
  transform-origin: top;
}

/* Заполняется сверху вниз, сегмент за сегментом */
.flow.is-armed .flow__step::before { transform: scaleY(0); }
.flow.is-armed.is-visible .flow__step::before {
  transform: scaleY(1);
  transition: transform 0.9s var(--ease-out);
}
.flow.is-armed.is-visible .flow__step:nth-child(1)::before { transition-delay: 0.35s; }
.flow.is-armed.is-visible .flow__step:nth-child(2)::before { transition-delay: 1.0s; }

.flow__step {
  position: relative;
  display: flex;
  gap: var(--flow-gap);
  align-items: flex-start;
  padding-bottom: 34px;
}

.flow__step:last-child { padding-bottom: 0; }

.flow__num {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--flow-num);
  height: var(--flow-num);
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--laska-navy-bg);      /* перекрывает рейку — линия «проходит между» номерами */
  box-shadow: 0 0 0 6px var(--laska-navy-bg), 0 0 22px var(--laska-teal-glow);
  color: var(--laska-teal-bright);
  font-weight: 800;
  font-size: 0.95rem;
}

.flow__body { flex: 1; min-width: 0; padding-top: 6px; }
.flow__body h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 700; }
.flow__body p  { margin: 0 0 14px; color: var(--hint); font-size: 0.95rem; }

.flow__note {
  display: block;
  margin-top: 10px;
  color: var(--laska-cream-dim);
  font-size: 0.82rem;
}

/* Плитки магазинов */
.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.store {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(21, 34, 50, 0.7);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background 0.25s ease;
}

.store:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  background: rgba(34, 58, 82, 0.7);
}

.store__name { color: var(--laska-cream-bright); font-weight: 700; font-size: 0.95rem; }
.store__sub  { color: var(--laska-cream-dim); font-size: 0.8rem; }

/* Плитка определённой платформы: первая, с рамкой и пометкой,
   один раз мягко пульсирует при появлении */
.store.is-you {
  order: -1;
  border-color: var(--laska-teal);
  background: rgba(38, 166, 154, 0.12);
  animation: store-pulse 1.6s ease-out 0.6s 1;
}

.store.is-you::after {
  content: "ваше устройство";
  align-self: flex-start;      /* своя строка в потоке: не наезжает на название,
                                  соседние плитки в ряду сетка растянет до той же высоты */
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.18);
  color: var(--laska-teal-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@keyframes store-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.45); }
  100% { box-shadow: 0 0 0 16px rgba(46, 196, 182, 0); }
}

/* Безопасность */
.safety {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(26, 45, 66, 0.94), rgba(13, 27, 42, 0.94));
  box-shadow: var(--shadow);
}

.safety h2 { margin: 0 0 12px; font-size: 1.35rem; font-weight: 800; }
.safety p  { margin: 0; color: var(--hint); font-size: 0.96rem; }

.safety__warn {
  display: flex;
  gap: 10px;
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--laska-cream) !important;
}

/* Финальный призыв */
.cta { padding: 20px 20px 70px; }

.cta__inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 44px 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -20%, rgba(38, 166, 154, 0.22), transparent 62%),
    linear-gradient(160deg, rgba(26, 45, 66, 0.95), rgba(21, 34, 50, 0.95));
  box-shadow: var(--shadow);
  text-align: center;
}

.cta__inner img { filter: drop-shadow(0 10px 26px var(--laska-teal-glow)); }
.cta__inner h2  { margin: 14px 0 8px; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; }
.cta__inner p   { margin: 0 0 24px; color: var(--hint); }

/* Подвал */
.footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 26px 20px 40px;
  border-top: 1px solid var(--border-subtle);
  color: var(--laska-cream-dim);
  font-size: 0.85rem;
}

.footer a { color: var(--hint); text-decoration: none; }
.footer a:hover { color: var(--laska-teal-bright); }

/* ── Юридические страницы (privacy.html, terms.html) ────────────
   Генерируются scripts/render_legal_pages.py из laska_vpn_bot/ui/legal.py —
   руками HTML не править, только этот CSS.
   ─────────────────────────────────────────────────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 28px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  line-height: 1.6;
}
.legal h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.legal h2 { margin: 28px 0 10px; font-size: 1.08rem; font-weight: 700; color: var(--laska-teal-bright); }
.legal p  { margin: 0 0 10px; font-size: 0.95rem; }
.legal ul { margin: 0 0 10px; padding-left: 22px; font-size: 0.95rem; }
.legal li { margin: 0 0 6px; }
.legal__meta    { margin: 0 0 18px; color: var(--laska-cream-dim); font-size: 0.88rem; }
.legal__summary { color: var(--hint); }
.legal__closing { margin-top: 24px; color: var(--hint); font-style: italic; }
.legal__nav { max-width: 760px; margin: 0 auto 18px; color: var(--hint); font-size: 0.9rem; }
.legal__nav a { color: var(--laska-teal-bright); text-decoration: none; }
.legal__nav a:hover { text-decoration: underline; }

/* ── Гайды (guides/*.html) ───────────────────────────────────────
   Статьи-инструкции. Общий каркас: хлебные крошки, шапка с саммари,
   оглавление, нумерованные шаги, выноски, FAQ и блок перехода в бота.
   ─────────────────────────────────────────────────────────────── */

.section--guide { padding-top: 28px; }

.crumbs {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--laska-cream-dim);
  font-size: 0.9rem;
}
.crumbs a { color: var(--hint); text-decoration: none; }
.crumbs a:hover { color: var(--laska-teal-bright); }
.crumbs span { color: var(--laska-cream); }

.guide {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  line-height: 1.65;
}

.guide__head .card__tag { margin-top: 0; }
.guide h1 { margin: 14px 0 12px; font-size: clamp(1.6rem, 4.4vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.guide__summary { margin: 0; color: var(--hint); font-size: 1rem; }
.guide__summary b { color: var(--laska-cream-bright); }

.guide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.guide__meta li {
  padding: 5px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--laska-cream-dim);
  font-size: 0.8rem;
}

.guide__toc {
  margin: 28px 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(13, 27, 42, 0.55);
  font-size: 0.92rem;
}
.guide__toc b { display: block; margin-bottom: 8px; color: var(--laska-cream-bright); }
.guide__toc ol { margin: 0; padding-left: 20px; }
.guide__toc li { margin: 3px 0; }
.guide__toc a { color: var(--hint); text-decoration: none; }
.guide__toc a:hover { color: var(--laska-teal-bright); }

.guide h2 {
  margin: 34px 0 12px;
  font-size: 1.28rem;
  font-weight: 800;
  scroll-margin-top: 80px;
}
.guide h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; }
.guide p  { margin: 0 0 12px; font-size: 0.97rem; }
.guide p b, .guide li b { color: var(--laska-cream-bright); }

.checklist {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 30px;
  font-size: 0.97rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.2em;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--laska-teal);
  color: var(--laska-teal-bright);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  counter-increment: step;
  margin: 0 0 12px;
  padding-left: 46px;
  font-size: 0.97rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--laska-navy-bg);
  box-shadow: 0 0 16px var(--laska-teal-glow);
  color: var(--laska-teal-bright);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.callout {
  margin: 14px 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: rgba(38, 166, 154, 0.08);
  color: var(--laska-cream);
  font-size: 0.93rem;
}
.callout b { color: var(--laska-cream-bright); }
.callout--warn {
  border-color: rgba(245, 245, 220, 0.28);
  background: rgba(245, 245, 220, 0.05);
}

.faq {
  margin: 0 0 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(13, 27, 42, 0.45);
}
.faq summary {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--laska-cream-bright);
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--laska-teal-bright);
  font-weight: 800;
}
.faq[open] summary::before { content: "−"; }
.faq p { margin: 0; padding: 0 16px 14px 34px; color: var(--hint); font-size: 0.93rem; }

.guide__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 20px 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 0% 0%, rgba(38, 166, 154, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(26, 45, 66, 0.95), rgba(21, 34, 50, 0.95));
}
.guide__cta > div:first-child { flex: 1 1 260px; }
.guide__cta p { margin: 0; color: var(--hint); font-size: 0.93rem; }
.guide__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.guide__back { margin: 28px 0 0 !important; font-size: 0.92rem; }
.guide__back a { color: var(--laska-teal-bright); text-decoration: none; }
.guide__back a:hover { text-decoration: underline; }

/* ── Появление контента ─────────────────────────────────────────
   Две разные механики, намеренно:
   .rise   — герой, виден при первой отрисовке. Чистый CSS с fill: both,
             поэтому не мигает и не может «застрять» невидимым.
   .reveal — секции ниже сгиба. Прячет их сам скрипт (.is-armed), уже
             за пределами вьюпорта, так что мигания тоже нет; если
             main.js не загрузится — всё просто остаётся видимым.
   ─────────────────────────────────────────────────────────────── */

.rise {
  animation: rise-up 0.62s var(--ease-out) var(--d, 0ms) both;
}

@keyframes rise-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}


/* По умолчанию всё видно. Прячет только сам скрипт, добавляя .is-armed —
   если main.js не загрузится, страница остаётся читаемой. */
.reveal.is-armed {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s var(--ease-out) var(--d, 0ms),
    transform 0.6s var(--ease-out) var(--d, 0ms);
}

.reveal.is-armed.is-visible { opacity: 1; transform: none; }

/* ── Адаптив ───────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .gift { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { gap: 12px; padding: 12px 16px; }
  .topbar__nav { display: none; }
  .topbar__cta { margin-left: auto; padding: 10px 16px; font-size: 0.86rem; }
  .hero { padding: 24px 18px 54px; }
  .hero__art { width: 200px; height: 200px; }
  .hero__logo { width: 138px; }
  .section { padding: 44px 18px; }
  .flow { --flow-gap: 14px; }
  .legal { padding: 24px 18px; }
  .guide { padding: 26px 18px; }
  .guide__cta { padding: 18px; }
  .gift { gap: 22px; padding: 26px 20px; border-radius: 24px; }
  .gift-badge { font-size: 0.84rem; padding: 10px 14px; }
  .gift__actions .btn { width: 100%; }
  .guide__cta-actions .btn { flex: 1 1 auto; }
  .footer { flex-wrap: wrap; }
}

/* ── Уважаем настройку «меньше движения» ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .aurora__band,
  .halo,
  .ring,
  .hero__logo,
  .gift__glow,
  .gift-badge__icon { animation: none; }

  .rise { animation: none; opacity: 1; transform: none; }

  .ring { opacity: 0.25; }

  .reveal.is-armed { opacity: 1; transform: none; transition: none; }

  .btn, .card, .store { transition: none; }
  .flow.is-armed .flow__step::before { transform: none; transition: none; }
  .store.is-you { animation: none; }
  .btn--primary::after { display: none; }
  .btn:hover, .card:hover { transform: none; }
}
