/* ============================================================
   Ydalenka v3 — Experience layer
   Динамика, брендовые мотивы «ё-улитки», игровая навигация,
   геймификация кабинета и тарифов. Загружается поверх site.css.
   ============================================================ */

:root {
  --cy: #22b6cf;          /* брендовый циан из логотипа */
  --cy-2: #67e0ef;
  --cy-deep: #0c3b52;     /* тёмный контур логотипа */
  --cy-ink: #08303f;
  --gold: #f6b73c;
  --pink: #ff8fb0;
  --grad-cy: linear-gradient(135deg, #67e0ef 0%, #22b6cf 55%, #1a86b8 100%);
  --grad-deep: linear-gradient(150deg, #0c3b52 0%, #123f5e 60%, #0a2c3f 100%);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---- фон с брендовыми «пузырями» -------------------------- */
body.site {
  background:
    radial-gradient(1100px 560px at 8% -12%, #d6f4fb 0%, transparent 55%),
    radial-gradient(820px 480px at 102% 4%, #d8f7ee 0%, transparent 52%),
    radial-gradient(700px 700px at 50% 120%, #e5f6fb 0%, transparent 60%),
    linear-gradient(180deg, #f0f9fc 0%, #eef5fb 45%, #e7f1f8 100%);
}

.site-bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.site-bg-orbs i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(103,224,239,.42), rgba(34,182,207,.08) 70%);
  filter: blur(2px); animation: floatOrb 22s ease-in-out infinite;
}
.site-bg-orbs i:nth-child(1){ width:260px;height:260px; top:8%; left:-60px; animation-delay:-2s;}
.site-bg-orbs i:nth-child(2){ width:180px;height:180px; top:52%; right:-40px; animation-delay:-8s;}
.site-bg-orbs i:nth-child(3){ width:120px;height:120px; top:74%; left:12%; animation-delay:-14s;}
@keyframes floatOrb {
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(20px,-32px,0) scale(1.08); }
}

/* ---- Навигация: живой бренд ------------------------------- */
.site-nav { transition: background .3s ease, box-shadow .3s ease, height .3s ease; }
.site-nav.is-scrolled {
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(12,59,82,.1);
}
.brand img { transition: transform .5s var(--ease-pop); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav-links a { position: relative; transition: color .2s ease, background .2s ease, transform .15s ease; }
.nav-links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  background: var(--cy); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--cy-deep); background: rgba(34,182,207,.12); }
.nav-links .nav-cta {
  background: var(--grad-cy); box-shadow: 0 8px 20px rgba(34,182,207,.35);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { transform: translateY(-2px); background: var(--grad-cy); filter: brightness(1.05); }

/* ---- Кнопки: брендовый акцент ----------------------------- */
body.site .btn-primary,
body.site .auth button,
body.site .btn:not(.btn-ghost) {
  background: var(--grad-cy);
  box-shadow: 0 10px 24px rgba(34,182,207,.3);
  position: relative; overflow: hidden;
}
body.site .btn-primary:hover,
body.site .auth button:hover,
body.site .btn:not(.btn-ghost):hover { background: var(--grad-cy); filter: brightness(1.06); transform: translateY(-2px); }
body.site .btn::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
body.site .btn:hover::before { left: 140%; }

/* ============================================================
   Появление при прокрутке (scroll reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--ease-pop); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-bg-orbs { display: none !important; }
  /* компаньон и вуаль оставляем — это навигация/подсказки, не декоративный шум */
}

/* появление секций по умолчанию */
.section, .feature, .shot, .dl-card, .plan-card, .cabinet-stat, .cap-card { }

/* ============================================================
   Переход между страницами (page transition)
   ============================================================ */
.page-veil {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  display: grid; place-items: center;
  background: #0c3b52;
  background: var(--grad-deep, linear-gradient(150deg, #0c3b52 0%, #123f5e 60%, #0a2c3f 100%));
  clip-path: circle(0% at var(--vx, 50%) var(--vy, 50%));
  transition: clip-path .55s cubic-bezier(.7,0,.3,1);
}
.page-veil.show { pointer-events: all; clip-path: circle(150% at var(--vx,50%) var(--vy,50%)); }
.page-veil img {
  width: 88px; opacity: 0; transform: scale(.55) rotate(-8deg);
  filter: drop-shadow(0 12px 24px rgba(103,224,239,.45));
  transition: opacity .3s ease .12s, transform .5s var(--ease-pop) .12s;
}
.page-veil.show img {
  opacity: 1; transform: scale(1) rotate(0);
  animation: veilBob 1.05s ease-in-out infinite .45s;
}
@keyframes veilBob {
  0%,100%{ transform: translateY(0) scale(1) rotate(0); }
  50%{ transform: translateY(-12px) scale(1.06) rotate(3deg); }
}
@keyframes bob { 0%,100%{transform:translateY(0) scale(1);} 50%{transform:translateY(-10px) scale(1.04);} }

/* мягкое появление / уход страницы */
.site-main { animation: pageIn .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: none; }
}
body.is-leaving .site-main {
  animation: pageOut .42s ease forwards;
  pointer-events: none;
}
@keyframes pageOut {
  to { opacity: 0; transform: translateY(-10px) scale(.97); filter: blur(1.5px); }
}
body.is-leaving .mascot-companion,
body.is-leaving .game-hud,
body.is-leaving .site-nav {
  opacity: 0 !important;
  transition: opacity .28s ease !important;
}
body.is-leaving .site-bg-orbs { opacity: .35; transition: opacity .35s ease; }

/* ============================================================
   Игровая сквозная навигация «Собери ё»
   ============================================================ */
.game-hud {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(34,182,207,.35);
  box-shadow: 0 14px 34px rgba(12,59,82,.18);
  cursor: pointer; user-select: none;
  transform: translateY(120%); opacity: 0;
  transition: transform .5s var(--ease-pop) .4s, opacity .5s ease .4s, box-shadow .2s ease;
}
.game-hud.ready { transform: none; opacity: 1; }
.game-hud:hover { box-shadow: 0 18px 40px rgba(12,59,82,.26); }
.game-hud__badge { width: 38px; height: 38px; flex: none; }
.game-hud__badge img { width: 100%; height: 100%; animation: bob 3s ease-in-out infinite; }
.game-hud__meta { line-height: 1.1; padding-right: 6px; }
.game-hud__meta b { display: block; font-size: .82rem; color: var(--cy-deep); }
.game-hud__bar { width: 92px; height: 7px; border-radius: 6px; background: rgba(12,59,82,.12); margin-top: 5px; overflow: hidden; }
.game-hud__bar i { display: block; height: 100%; width: 0; background: var(--grad-cy); border-radius: 6px; transition: width .7s var(--ease-pop); }
.game-hud__meta small { font-size: .68rem; color: var(--muted); }

/* всплывающий +ё когда собираешь жетон */
.token-pop {
  position: fixed; z-index: 70; width: 46px; height: 46px; pointer-events: none;
  animation: tokenFly 1s ease forwards;
}
@keyframes tokenFly {
  0% { transform: scale(.4) translateY(0); opacity: 0; }
  25% { transform: scale(1.15) translateY(-8px); opacity: 1; }
  100% { transform: scale(.5) translate(var(--tx,0), var(--ty,-160px)); opacity: 0; }
}

/* якоря-жетоны, встроенные в контент */
.ye-token {
  display: inline-grid; place-items: center; width: 30px; height: 30px; vertical-align: middle;
  border-radius: 50%; margin: 0 2px; cursor: pointer;
  background: rgba(34,182,207,.14); border: 1px dashed var(--cy);
  transition: transform .2s var(--ease-pop), background .2s ease;
  animation: pulseTok 2.6s ease-in-out infinite;
}
.ye-token img { width: 20px; height: 20px; }
.ye-token:hover { transform: scale(1.2) rotate(8deg); background: rgba(34,182,207,.26); }
.ye-token.found { animation: none; border-style: solid; background: rgba(14,159,110,.16); border-color: var(--accent); cursor: default; }
.ye-token.found img { filter: grayscale(.1); opacity: .55; }
@keyframes pulseTok { 0%,100%{ box-shadow: 0 0 0 0 rgba(34,182,207,.4);} 50%{ box-shadow: 0 0 0 8px rgba(34,182,207,0);} }

/* модалка достижения */
.achieve-modal {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(8,48,63,.55); backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}
.achieve-modal.show { display: grid; }
.achieve-card {
  background: #fff; border-radius: 22px; padding: 34px 30px; max-width: 420px; text-align: center;
  box-shadow: 0 30px 80px rgba(8,48,63,.4); animation: popIn .5s var(--ease-pop);
  position: relative; overflow: hidden;
}
.achieve-card::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 200px;
  background: radial-gradient(circle, rgba(103,224,239,.4), transparent 70%);
}
.achieve-card img { width: 108px; position: relative; animation: bob 2.4s ease-in-out infinite; }
.achieve-card h3 { font-family: var(--serif); font-size: 1.6rem; margin: 8px 0 6px; color: var(--cy-deep); position: relative; }
.achieve-card p { color: var(--ink-soft); margin: 0 0 18px; position: relative; }
.achieve-card .promo {
  display: inline-block; font-weight: 800; letter-spacing: .12em; font-size: 1.05rem;
  color: var(--cy-deep); background: rgba(246,183,60,.18); border: 1px dashed var(--gold);
  padding: 8px 16px; border-radius: 10px; margin-bottom: 16px; position: relative;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes popIn { from{opacity:0; transform: translateY(20px) scale(.92);} to{opacity:1; transform:none;} }

/* конфетти */
.confetti { position: fixed; z-index: 210; width: 10px; height: 14px; top: -20px; pointer-events: none; border-radius: 2px; }

/* ============================================================
   Маскот-компаньон (маленькая улитка у края)
   ============================================================ */
.mascot-companion {
  position: fixed; left: 14px; bottom: 16px; z-index: 55; width: 76px;
  cursor: pointer; filter: drop-shadow(0 10px 18px rgba(12,59,82,.25));
  transform: translateY(140%); opacity: 0;
  transition: transform .6s var(--ease-pop) .6s, opacity .6s ease .6s;
}
.mascot-companion.ready {
  transform: none !important;
  opacity: 1 !important;
}
.mascot-companion > img {
  width: 100%; height: auto; display: block;
  transform-origin: 50% 85%;
  animation: companionIdle 3.2s ease-in-out infinite;
  transition: filter .25s ease;
}
.mascot-companion:hover > img {
  filter: brightness(1.06) drop-shadow(0 0 10px rgba(103,224,239,.55));
  animation: companionHover 1.4s ease-in-out infinite;
}
.mascot-companion.wiggle > img { animation: wiggle .65s ease; }
.mascot-companion.talk > img { animation: talkBounce .9s var(--ease-pop); }
.mascot-companion .bubble {
  position: absolute; left: 82px; bottom: 34px;
  max-width: min(280px, calc(100vw - 120px));
  white-space: normal;
  background: #fff; color: var(--cy-deep); font-weight: 600; font-size: .82rem; line-height: 1.35;
  padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(34,182,207,.3);
  box-shadow: 0 10px 24px rgba(12,59,82,.16); opacity: 0; transform: translateX(-6px) scale(.9);
  transform-origin: left bottom; transition: opacity .25s ease, transform .25s var(--ease-pop);
  pointer-events: none; z-index: 2;
}
.mascot-companion .bubble::after {
  content: ''; position: absolute; left: -6px; bottom: 10px; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid rgba(34,182,207,.3); border-bottom: 1px solid rgba(34,182,207,.3);
  transform: rotate(45deg);
}
.mascot-companion.talk .bubble { opacity: 1; transform: none; }
@keyframes companionIdle {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}
@keyframes companionHover {
  0%,100% { transform: translateY(0) rotate(-4deg) scale(1.04); }
  50% { transform: translateY(-5px) rotate(4deg) scale(1.08); }
}
@keyframes wiggle {
  0%,100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-12deg) scale(1.05); }
  40% { transform: rotate(10deg) scale(1.08); }
  60% { transform: rotate(-8deg) scale(1.04); }
  80% { transform: rotate(6deg) scale(1.06); }
}
@keyframes talkBounce {
  0% { transform: scale(1) translateY(0); }
  35% { transform: scale(1.12) translateY(-10px); }
  70% { transform: scale(.96) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}
@media (max-width: 720px) {
  .mascot-companion { left: 8px; bottom: 10px; width: 64px; }
  .mascot-companion .bubble { left: 70px; max-width: min(220px, calc(100vw - 90px)); font-size: .75rem; }
  .game-hud { right: 12px; bottom: 12px; }
}

/* ============================================================
   Домашний экран: маскот в герое (средняя / большая улитка)
   ============================================================ */
.portal-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center;
  margin: 6px auto 26px;
}
.portal-hero .hero-mascot { position: relative; display: flex; justify-content: center; }
.portal-hero .hero-mascot img {
  width: min(360px, 90%); margin: 0 auto; cursor: pointer;
  filter: drop-shadow(0 16px 28px rgba(12,59,82,.2));
  animation: bob 4s ease-in-out infinite;
  transition: transform .35s var(--ease-pop), filter .3s ease;
}
.portal-hero .hero-mascot img:hover {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 20px 34px rgba(34,182,207,.35));
}
.portal-hero .hero-mascot::after {
  content: ''; position: absolute; inset: 20% 8% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(103,224,239,.35), transparent 68%);
  animation: glowPulse 4.5s ease-in-out infinite;
}
@media (max-width: 820px) { .portal-hero { grid-template-columns: 1fr; text-align: center; } .portal-hero .hero-mascot { order: -1; } }

/* ============================================================
   Секция «Возможности программы» (справка)
   ============================================================ */
.cap-wrap { margin-top: 30px; }
.cap-head { text-align: center; max-width: 40rem; margin: 0 auto 22px; }
.cap-head h2 { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2rem); margin: 0 0 8px; color: var(--cy-deep); }
.cap-head p { color: var(--ink-soft); margin: 0; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap-card {
  background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  transition: transform .3s var(--ease-pop), box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.cap-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12,59,82,.14); border-color: rgba(34,182,207,.5); }
.cap-card .cap-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem;
  background: var(--grad-cy); color: #fff; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(34,182,207,.3);
}
.cap-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--cy-deep); }
.cap-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; line-height: 1.55; }
.cap-card .keys { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.cap-card .keys kbd {
  font: 600 .74rem/1 ui-monospace, Consolas, monospace; color: var(--cy-deep);
  background: rgba(34,182,207,.1); border: 1px solid rgba(34,182,207,.3); border-bottom-width: 2px;
  padding: 4px 7px; border-radius: 6px;
}
@media (max-width: 860px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Личный кабинет — эксклюзив и геймификация
   ============================================================ */
.cab-hero {
  background: var(--grad-deep); color: #eaf6fb; border-radius: 22px; padding: 26px 28px;
  position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(8,48,63,.28); margin-bottom: 20px;
}
.cab-hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(103,224,239,.35), transparent 70%);
}
.cab-hero .eyebrow { color: var(--cy-2); letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; font-weight: 700; margin: 0 0 4px; }
.cab-hero h1 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 4px; color: #fff; }
.cab-hero .cab-sub { color: #a9c9d8; margin: 0; font-size: .95rem; }
.cab-hero__row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; position: relative; }

/* уровень оператора */
.cab-level { text-align: center; min-width: 150px; }
.cab-level__ring { --p: 0; width: 92px; height: 92px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--cy-2) calc(var(--p)*1%), rgba(255,255,255,.15) 0); position: relative; }
.cab-level__ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #103246; }
.cab-level__ring b { position: relative; font-size: 1.5rem; color: #fff; }
.cab-level small { color: #a9c9d8; display: block; font-size: .78rem; }

.badge-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.1); color: #cfe9f2; border: 1px solid rgba(255,255,255,.16);
}
.badge-chip.on { background: rgba(103,224,239,.2); color: #fff; border-color: rgba(103,224,239,.5); }
.badge-chip.on .dot { background: var(--cy-2); }
.badge-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }

.cabinet-stat { transition: transform .3s var(--ease-pop), box-shadow .3s ease; }
.cabinet-stat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(34,182,207,.16); }
.cabinet-stat .big { background: var(--grad-cy); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* карточка «преимущества платных версий» */
.perk-card {
  margin-top: 20px; border: 1px solid rgba(34,182,207,.3); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(103,224,239,.08), rgba(255,255,255,.4));
}
.perk-card__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 20px; }
.perk-card__head h3 { margin: 0; color: var(--cy-deep); }
.perk-table { width: 100%; border-collapse: collapse; }
.perk-table th, .perk-table td { padding: 11px 14px; text-align: center; border-top: 1px solid var(--line); font-size: .9rem; }
.perk-table th:first-child, .perk-table td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.perk-table thead th { color: var(--cy-deep); font-weight: 800; }
.perk-table .yes { color: var(--accent); font-weight: 800; }
.perk-table .no { color: #c0ccd8; }
.perk-table tr.hi { background: rgba(246,183,60,.1); }
.perk-table td .lock { font-size: .8rem; }

/* ============================================================
   Тарифы — расширенные опции
   ============================================================ */
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(12,59,82,.08); margin: 0 auto 22px; }
.billing-toggle button {
  border: none; background: transparent; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink-soft); transition: all .25s ease;
}
.billing-toggle button.on { background: #fff; color: var(--cy-deep); box-shadow: 0 6px 16px rgba(12,59,82,.12); }
.billing-toggle .save { font-size: .7rem; color: var(--accent); margin-left: 4px; }

body.site .plan-card {
  transition: transform .3s var(--ease-pop), box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
}
body.site .plan-card:hover { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(12,59,82,.16); border-color: rgba(34,182,207,.5); }
body.site .plan-card.featured { border: 2px solid var(--cy); box-shadow: 0 22px 50px rgba(34,182,207,.22); }
body.site .plan-card.featured::after {
  content: ''; position: absolute; inset: 0; border-radius: 18px; padding: 2px; pointer-events: none;
  background: var(--grad-cy); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5;
}
.plan-card .badge { background: var(--grad-cy); box-shadow: 0 6px 14px rgba(34,182,207,.4); }
.plan-card h3 { color: var(--cy-deep); font-family: var(--serif); }
.plan-card .price { color: var(--cy-deep); font-weight: 800; }
.plan-card .price .old { font-size: .5em; color: var(--muted); text-decoration: line-through; margin-right: 6px; font-weight: 600; }
.plan-card ul { list-style: none; padding: 0; margin: 14px 0 18px; text-align: left; display: grid; gap: 8px; flex: 1; }
.plan-card ul li { padding-left: 24px; position: relative; color: var(--ink-soft); font-size: .93rem; }
.plan-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--cy); font-weight: 800; }
.plan-card ul li.muted-li { color: var(--muted); }
.plan-card ul li.muted-li::before { content: '·'; color: var(--muted); }

/* лента почему платно */
.why-pro { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 30px; }
.why-pro .wp {
  background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  transition: transform .3s var(--ease-pop);
}
.why-pro .wp:hover { transform: translateY(-5px); }
.why-pro .wp .n { font-family: var(--serif); font-size: 1.8rem; color: var(--cy); font-weight: 700; }
.why-pro .wp h4 { margin: 4px 0 4px; color: var(--cy-deep); }
.why-pro .wp p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
@media (max-width: 780px) { .why-pro { grid-template-columns: 1fr; } }

/* мелкие штрихи брендового «ё» */
.ye-divider { display: flex; align-items: center; gap: 14px; margin: 30px auto; color: var(--muted); }
.ye-divider::before, .ye-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.ye-divider img { width: 26px; opacity: .8; }

/* ============================================================
   Указатель «вы здесь» — сквозная последовательность разделов
   ============================================================ */
.page-signpost { margin: 18px 0 4px; }
.signpost-steps {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px; counter-reset: step;
}
.signpost-steps li { flex: 1 1 auto; min-width: 120px; }
.signpost-steps a {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px;
  text-decoration: none; border: 1px solid var(--line); background: rgba(255,255,255,.6);
  color: var(--ink-soft); font-weight: 600; font-size: .86rem; transition: all .2s var(--ease-pop);
}
.signpost-steps a .n {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; background: rgba(12,59,82,.1); color: var(--cy-deep);
}
.signpost-steps a em { font-style: normal; }
.signpost-steps a:hover { transform: translateY(-2px); border-color: rgba(34,182,207,.5); text-decoration: none; }
.signpost-steps .done a { background: rgba(34,182,207,.08); color: var(--cy-deep); }
.signpost-steps .done a .n { background: var(--accent); color: #fff; }
.signpost-steps .current a {
  background: var(--grad-cy); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(34,182,207,.32);
}
.signpost-steps .current a .n { background: rgba(255,255,255,.25); color: #fff; }
.signpost-here {
  margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
}
.signpost-here b { color: var(--cy-deep); }
.badge-here {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: rgba(34,182,207,.14); color: var(--cy-deep); border: 1px solid rgba(34,182,207,.45);
  font-size: .74rem; font-weight: 800; letter-spacing: .02em;
}
.signpost-next { margin-left: auto; font-weight: 700; color: var(--cy); white-space: nowrap; }
@media (max-width: 760px) {
  .signpost-steps a em { display: none; }
  .signpost-steps li { min-width: 0; flex: 0 0 auto; }
  .signpost-steps a { padding: 8px; }
  .signpost-next { margin-left: 0; }
}

/* ============================================================
   Нумерованная навигация в шапке — стиль «карточек-шагов»
   (сохранён вид прежнего указателя signpost-steps)
   ============================================================ */
.nav-steps { gap: 6px; }
.nav-steps .nav-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.6);
  color: var(--ink-soft); font-weight: 600; font-size: .86rem; line-height: 1;
  transition: transform .2s var(--ease-pop), border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-steps .nav-step::after { display: none; }            /* убираем подчёркивание базовых nav-links a */
.nav-steps .nav-step .sn {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800;
  background: rgba(12,59,82,.1); color: var(--cy-deep); transition: background .2s ease, color .2s ease;
}
.nav-steps .nav-step .sl { font-style: normal; white-space: nowrap; }
.nav-steps .nav-step:hover { transform: translateY(-2px); border-color: rgba(34,182,207,.5); color: var(--cy-deep); text-decoration: none; }

.nav-steps .nav-step.is-done { background: rgba(34,182,207,.08); color: var(--cy-deep); }
.nav-steps .nav-step.is-done .sn { background: var(--accent); color: #fff; }

.nav-steps .nav-step.is-current {
  background: var(--grad-cy); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(34,182,207,.32);
}
.nav-steps .nav-step.is-current .sn { background: rgba(255,255,255,.25); color: #fff; }

/* компактнее на средних экранах: прячем подписи, оставляем номера + активную */
@media (min-width: 961px) and (max-width: 1200px) {
  .nav-steps .nav-step { padding: 8px; }
  .nav-steps .nav-step .sl { display: none; }
  .nav-steps .nav-step.is-current .sl { display: inline; }
  .nav-steps .nav-step.is-current { padding-right: 12px; }
}

/* мобайл: карточки-шаги в бургер-меню, во всю ширину */
@media (max-width: 960px) {
  .nav-steps .nav-step { width: 100%; justify-content: flex-start; }
}

/* ============================================================
   Большой «живой» Ёлик в герое страницы «О программе»
   Внутренние анимации (дыхание/моргание/усики) — в самом SVG,
   здесь — плавный полёт, свечение, реакция на курсор.
   ============================================================ */
.hero-mascot--big { position: relative; display: flex; justify-content: center; align-items: center; }
.inline-mascot {
  height: 1.05em; width: auto; display: inline-block; vertical-align: -0.18em;
  filter: drop-shadow(0 3px 5px rgba(12,59,82,.2));
  animation: companionIdle 3.6s ease-in-out infinite;
}
.hero-mascot--big img {
  width: min(320px, 82%); height: auto; cursor: pointer;
  filter: drop-shadow(0 22px 34px rgba(12,59,82,.24));
  animation: heroFloat 5s ease-in-out infinite;
  transition: transform .35s var(--ease-pop), filter .3s ease;
  transform-origin: 50% 70%;
}
.hero-mascot--big img:hover {
  transform: scale(1.07) rotate(-3deg);
  filter: drop-shadow(0 26px 40px rgba(34,182,207,.4)) brightness(1.04);
}
.hero-mascot--big img:active { transform: scale(.96) rotate(2deg); }
.hero-mascot--big.is-happy img { animation: heroHappy .85s var(--ease-pop); }
.hero-mascot--big::before {
  content: ''; position: absolute; width: 70%; height: 18%; bottom: 6%; left: 15%;
  border-radius: 50%; background: rgba(12,59,82,.14); filter: blur(6px);
  animation: shadowPulse 5s ease-in-out infinite;
}
.hero-mascot--big::after {
  content: ''; position: absolute; inset: 12% 4% -4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(103,224,239,.48), rgba(103,224,239,.12) 45%, transparent 70%);
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
@keyframes heroHappy {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.12) translateY(-18px) rotate(-6deg); }
  55% { transform: scale(1.05) translateY(-6px) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes glowPulse {
  0%,100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes shadowPulse {
  0%,100% { transform: scaleX(1); opacity: .55; }
  50% { transform: scaleX(.82); opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mascot--big img, .hero-mascot--big::after, .hero-mascot--big::before,
  .portal-hero .hero-mascot img, .portal-hero .hero-mascot::after,
  .mascot-companion > img, .inline-mascot { animation: none !important; }
  /* внутреннее моргание SVG (SMIL) не трогаем — улитка остаётся «живой» */
}
