/* =========================================
   Birzumda — стили сайта
   ========================================= */

/* ---------- 1. Переменные: 8 тем + акцентный цвет ---------- */
:root {
  --radius: 20px;
  --font-title: 'Unbounded', sans-serif;
  --font-text: 'Manrope', system-ui, sans-serif;
}

/* Тёмные темы: общие значения */
[data-theme="kosmos"], [data-theme="okean"], [data-theme="neon"], [data-theme="qish"],
[data-theme="lava"], [data-theme="orman"] {
  --text: #f4f2fa; --muted: #a39fb5;
  --glass: rgba(255, 255, 255, 0.06); --glass-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --strong: var(--accent-2); --blob-op: .45;
  color-scheme: dark;
}
/* Светлые темы: общие значения */
[data-theme="light"], [data-theme="sakura"] {
  --glass: rgba(255, 255, 255, 0.6); --glass-border: rgba(255, 255, 255, 0.9);
  --strong: var(--accent); --blob-op: .25;
  color-scheme: light;
}

/* 1 Kosmos — звёзды и созвездия */
[data-theme="kosmos"] { --bg: #07060b; --accent: #8b5cf6; --accent-2: #c4b5fd; }
/* 2 Kunduzgi — светлая, пузырьки */
[data-theme="light"]  { --bg: #f5f3fb; --text: #16121f; --muted: #5e5872; --accent: #7c3aed; --accent-2: #a78bfa;
                        --shadow: 0 10px 40px rgba(60, 40, 120, 0.12); }
/* 3 Okean — пузырьки поднимаются */
[data-theme="okean"]  { --bg: #021420; --accent: #06b6d4; --accent-2: #67e8f9; --muted: #8fb3c4; }
/* 4 Neon — ретро-сетка */
[data-theme="neon"]   { --bg: #0a0014; --accent: #ff2bd6; --accent-2: #22d3ee; --muted: #b09ac4; }
/* 5 Qish — падает снег */
[data-theme="qish"]   { --bg: #0b1220; --accent: #60a5fa; --accent-2: #dbeafe; --muted: #9fb0c8; }
/* 6 Lava — летят искры */
[data-theme="lava"]   { --bg: #120604; --accent: #f97316; --accent-2: #fbbf24; --muted: #c4a493; }
/* 7 O'rmon — светлячки */
[data-theme="orman"]  { --bg: #04110a; --accent: #22c55e; --accent-2: #bef264; --muted: #96b8a2; }
/* 8 Sakura — падают лепестки */
[data-theme="sakura"] { --bg: #fff1f5; --text: #3b0a1e; --muted: #8a5a6c; --accent: #ec4899; --accent-2: #f9a8d4;
                        --shadow: 0 10px 40px rgba(190, 24, 93, 0.12); }

/* Свой акцентный цвет (если выбран не «Avto») — перекрывает цвет темы */
[data-accent="purple"] { --accent: #8b5cf6; --accent-2: #c4b5fd; }
[data-accent="blue"]   { --accent: #3b82f6; --accent-2: #93c5fd; }
[data-accent="green"]  { --accent: #10b981; --accent-2: #6ee7b7; }
[data-accent="pink"]   { --accent: #ec4899; --accent-2: #f9a8d4; }
[data-accent="gold"]   { --accent: #f59e0b; --accent-2: #fde68a; }

/* ---------- 2. Базовые стили ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; }

/* ---------- 3. Загрузочный экран ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  background: var(--bg);
  transition: opacity .5s, visibility .5s;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-logo { display: flex; align-items: center; gap: 14px; font-family: var(--font-title); font-size: 28px; font-weight: 800; animation: pulse 1s ease-in-out infinite; }
.loader-bar { width: 160px; height: 4px; border-radius: 4px; background: var(--glass-border); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--accent); animation: load 1s ease forwards; }
@keyframes load { to { width: 100%; } }
@keyframes pulse { 50% { transform: scale(1.05); } }

/* ---------- 4. Анимированный фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: var(--blob-op);
  background: var(--accent);
  animation: float 18s ease-in-out infinite;
}
.b1 { width: 480px; height: 480px; top: -120px; left: -120px; }
.b2 { width: 380px; height: 380px; bottom: -100px; right: -80px; background: var(--accent-2); animation-delay: -6s; opacity: calc(var(--blob-op) * .7); }
.b3 { width: 300px; height: 300px; top: 40%; left: 55%; animation-delay: -12s; opacity: calc(var(--blob-op) * .5); }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-60px, 40px) scale(.95); }
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 5. Стекло (glassmorphism) ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 6. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn-ghost { border: 1px solid var(--glass-border); background: var(--glass); }
.btn-tg { background: #229ed9; color: #fff; padding: 9px 16px; }
.btn.full { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; font-size: 18px;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: grid; place-items: center;
  transition: transform .3s;
}
.icon-btn:hover { transform: rotate(45deg); }

/* ---------- 7. Шапка ---------- */
.header {
  position: sticky; top: 12px; z-index: 20;
  margin: 12px auto 0; width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 800; font-size: 18px; }
.logo-icon { width: 34px; height: 34px; }
.logo-icon.big { width: 56px; height: 56px; }
.nav { display: flex; gap: 22px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- 8. Панель настроек ---------- */
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: .3s; }
.overlay.show { opacity: 1; visibility: visible; }
.settings {
  position: fixed; top: 0; right: 0; z-index: 40;
  width: min(340px, 88vw); height: 100%;
  padding: 24px; display: flex; flex-direction: column; gap: 26px;
  background: var(--bg); border-left: 1px solid var(--glass-border);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.settings.open { transform: translateX(0); }
.settings-head { display: flex; justify-content: space-between; align-items: center; }
.setting p { font-weight: 700; margin-bottom: 10px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.segmented { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); }
.segmented button { flex: 1; padding: 10px 6px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: .2s; }
.segmented button.active { background: var(--accent); color: #fff; }
.colors { display: flex; gap: 12px; }
.colors button {
  width: 42px; height: 42px; border-radius: 50%; background: var(--c);
  border: 3px solid transparent; transition: transform .2s;
}
.colors button.active { border-color: var(--text); transform: scale(1.12); }

/* ---------- 9. Главный экран ---------- */
.hero { text-align: center; padding: 90px 20px 50px; max-width: 900px; margin: 0 auto; }
.badge { display: inline-block; padding: 6px 16px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-border); font-weight: 600; font-size: 14px; }
.hero h1 { font-size: clamp(38px, 8vw, 76px); font-weight: 800; margin: 22px 0 16px; }
.grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); max-width: 600px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 54px; }
.stat { padding: 20px 10px; }
.stat b { display: block; font-family: var(--font-title); font-size: clamp(22px, 4vw, 34px); color: var(--strong); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- 10. Секции ---------- */
.section { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0; }
.section h2 { font-size: clamp(26px, 4.5vw, 40px); text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 10px 0 36px; }

/* ---------- 11. Карточки ботов ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s, box-shadow .35s, border-color .35s; }
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 16px 50px color-mix(in srgb, var(--accent) 30%, transparent);
}
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.card h3 { font-size: 22px; }
.card > p { color: var(--muted); }
.features { list-style: none; display: grid; gap: 6px; margin-bottom: 8px; }

/* Статус бота */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-border); }
.status em { font-style: normal; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.status.online i { background: #22c55e; box-shadow: 0 0 0 0 #22c55e; animation: ping 1.6s infinite; }
.status.offline i { background: #ef4444; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }

/* ---------- 12. Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.review { padding: 20px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.stars { color: #fbbf24; letter-spacing: 2px; }
.empty { text-align: center; color: var(--muted); padding: 24px; grid-column: 1 / -1; }
.review-form { max-width: 560px; margin: 0 auto; padding: 22px; display: grid; gap: 12px; }
.stars-input { display: flex; gap: 4px; }
.stars-input button { font-size: 30px; color: var(--glass-border); transition: transform .15s, color .15s; }
.stars-input button.on { color: #fbbf24; }
.stars-input button:hover { transform: scale(1.2); }
textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; resize: vertical;
  font: inherit; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border);
}
textarea:focus { outline: 2px solid var(--accent); }

/* ---------- 13. О нас ---------- */
.about { display: flex; gap: 26px; padding: 34px; align-items: flex-start; }
.about h2 { text-align: left; margin-bottom: 12px; }
.about p { color: var(--muted); margin-bottom: 10px; }

/* ---------- 14. FAQ ---------- */
.faq { max-width: 760px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { padding: 18px 22px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ---------- 15. Подвал ---------- */
.footer { text-align: center; padding: 40px 20px 50px; display: grid; gap: 10px; justify-items: center; border-top: 1px solid var(--glass-border); }
.footer a { color: var(--strong); font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- 16. Уведомление (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 120px);
  padding: 12px 20px; border-radius: 14px; max-width: 90vw;
  background: var(--text); color: var(--bg); font-weight: 600;
  transition: transform .35s;
}
.toast:not(.show) { visibility: hidden; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- 17. Анимация появления при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 18. Телефоны ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  .btn-tg span { display: none; }
  .stats { grid-template-columns: 1fr; }
  .about { flex-direction: column; padding: 24px; }
  .hero { padding-top: 60px; }
}


/* ---------- 19. Кабинет и админ-панель ---------- */
.page { width: min(900px, calc(100% - 32px)); margin: 30px auto 60px; display: grid; gap: 18px; }
.page h1 { font-size: clamp(24px, 5vw, 34px); }
.page h2 { font-size: 20px; margin-bottom: 12px; }
.profile { display: flex; align-items: center; gap: 18px; padding: 24px; }
.avatar.big { width: 64px; height: 64px; font-size: 26px; flex-shrink: 0; }
.notice { padding: 18px 22px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.kpi { padding: 20px; display: grid; gap: 6px; align-content: start; }
.kpi > span { color: var(--muted); font-weight: 600; }
.kpi b { font-family: var(--font-title); font-size: 24px; }
.kpi small { font-size: 13px; }
.block { padding: 22px; }
.copy-row { display: flex; gap: 8px; margin: 14px 0; }
.copy-row input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; font: inherit; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border);
}
.btn.small { padding: 8px 14px; font-size: 14px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--glass-border); }
.order-row:last-child { border-bottom: none; }
.order-row p { font-size: 14px; }
.pill { white-space: nowrap; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-border); }
.pill.st-done { color: #22c55e; }
.pill.st-rejected { color: #ef4444; }
.pill.st-work { color: #f59e0b; }
code { font-family: ui-monospace, monospace; background: color-mix(in srgb, var(--accent) 18%, transparent); padding: 2px 8px; border-radius: 8px; }
.tg-login { display: flex; align-items: center; }
@media (max-width: 560px) {
  .order-row { flex-direction: column; align-items: flex-start; }
  .header .btn-ghost { padding: 9px 12px; }
}


/* ---------- 20. Анимации нажатий ---------- */
.btn, .icon-btn, .card, .segmented button, .theme-card, .colors button, .bnav a, .mini-btn { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.btn:active, .icon-btn:active, .mini-btn:active, .segmented button:active, .bnav a:active { transform: scale(.94); }
.theme-card:active, .colors button:active { transform: scale(.92); }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  background: currentColor; opacity: .35;
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(var(--s, 18)); opacity: 0; } }
.spark {
  position: fixed; z-index: 90; width: 7px; height: 7px; border-radius: 50%; pointer-events: none;
  background: var(--accent-2); box-shadow: 0 0 8px var(--accent);
  animation: spark .55s ease-out forwards;
}
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.stars-input button.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.5) rotate(-12deg); } }
.faq details[open] p { animation: fadeDown .35s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }
.toast.show { animation: toastIn .4s cubic-bezier(.2,1.4,.4,1); }
@keyframes toastIn { from { transform: translate(-50%, 40px) scale(.9); } }

/* смена темы — круг от места нажатия */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal-circle .7s ease-in-out; }
@keyframes reveal-circle {
  from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 50%)); }
  to   { clip-path: circle(150% at var(--vx, 50%) var(--vy, 50%)); }
}

/* 3D-наклон карточек (только мышь) */
@media (hover: hover) {
  .card.tilt { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px); transition: transform .1s; }
}

/* ---------- 21. Полоса прокрутки и кнопка «наверх» ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 50; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.totop {
  position: fixed; right: 18px; bottom: 22px; z-index: 25; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .3s, transform .3s; pointer-events: none;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; }

/* ---------- 22. Нижнее меню (телефон) ---------- */
.bnav { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 84px; }
  .bnav {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 26;
    display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px;
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow);
  }
  .bnav a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--muted); transition: .25s; }
  .bnav a i { font-style: normal; font-size: 20px; transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
  .bnav a.active { color: var(--text); background: color-mix(in srgb, var(--accent) 22%, transparent); }
  .bnav a.active i { transform: translateY(-2px) scale(1.15); }
  .totop { bottom: 96px; }
}

/* ---------- 23. Мини-кнопки в карточках ---------- */
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; }
.mini-btn {
  width: 48px; flex-shrink: 0; border-radius: 14px; font-size: 18px;
  background: var(--glass); border: 1px solid var(--glass-border); transition: transform .2s, background .2s;
}
.mini-btn:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.lang-btn { font-weight: 800; font-size: 13px; }

/* ---------- 24. Окно (QR-код) ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transition: .3s; }
.modal.show { opacity: 1; visibility: visible; }
.modal-box { width: min(340px, 100%); padding: 26px; text-align: center; display: grid; gap: 14px; justify-items: center;
  background: var(--bg); transform: scale(.85) translateY(20px); transition: transform .4s cubic-bezier(.2,1.4,.4,1); }
.modal.show .modal-box { transform: none; }
.qr { background: #fff; padding: 12px; border-radius: 16px; min-height: 100px; display: grid; place-items: center; }
.qr img, .qr canvas { display: block; width: 200px; height: 200px; }

/* ---------- 25. Выбор темы в настройках ---------- */
.settings { overflow-y: auto; }
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.theme-card {
  height: 64px; border-radius: 14px; padding: 8px 10px; text-align: left; color: #fff;
  display: flex; align-items: flex-end; font-weight: 700; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.5);
  background: var(--prev); border: 2px solid transparent; transition: transform .2s, border-color .2s;
}
.theme-card.active { border-color: var(--text); transform: scale(1.03); }
.theme-card .em { position: absolute; top: 6px; right: 8px; font-size: 18px; }
.colors .auto { background: conic-gradient(#8b5cf6, #06b6d4, #22c55e, #f59e0b, #ec4899, #8b5cf6); }
.colors button { position: relative; }
.colors .auto::after { content: 'A'; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; }
.reset-btn { color: var(--muted); font-weight: 600; text-decoration: underline; justify-self: start; }

/* Лёгкий режим: без живого фона */
.lite .blob { animation: none; }
.lite #particles { display: none; }


/* ---------- 27. Страница бота ---------- */
.bot-page { gap: 34px; }
.bot-hero { padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.bot-hero .card-actions { grid-column: 1 / -1; }
.bot-icon { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; font-size: 44px;
  background: color-mix(in srgb, var(--accent) 22%, transparent); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(-4deg); } }
.bot-info { display: grid; gap: 6px; justify-items: start; }
.nick { font-weight: 800; color: var(--strong); font-size: 16px; padding: 0; }
.nick:hover { text-decoration: underline; }
.sec-title { font-size: clamp(22px, 4vw, 30px); margin-bottom: 18px; }
.center { text-align: center; margin-top: 12px; }

/* как работает: телефон + шаги */
.how { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.phone {
  width: 100%; max-width: 300px; height: 520px; margin: 0 auto; border-radius: 38px; padding: 12px;
  background: #0d0b14; border: 2px solid var(--glass-border); box-shadow: var(--shadow), 0 0 50px color-mix(in srgb, var(--accent) 25%, transparent);
  display: flex; flex-direction: column;
}
.phone-top { padding: 10px 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; display: grid; }
.phone-top small { color: #4ade80; font-size: 12px; }
.chat { flex: 1; overflow-y: auto; padding: 12px 6px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; scrollbar-width: none; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; color: #fff; animation: msgIn .35s cubic-bezier(.2,1.4,.4,1); word-break: break-word; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.msg.bot { background: #1f1b2e; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.kb { align-self: stretch; max-width: 100%; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); font-weight: 700; }
.msg.media { background: #1f1b2e; border: 1px dashed var(--accent-2); font-weight: 700; padding: 18px 14px; }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #aaa; animation: typing 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .4; } }
.demo-video { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px;
  background: linear-gradient(var(--accent), transparent); }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: relative; opacity: 0; transform: translateX(20px); }
.visible .step { animation: stepIn .5s var(--d) ease forwards; }
@keyframes stepIn { to { opacity: 1; transform: none; } }
.step-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--accent) 25%, var(--bg)); }
.step p { font-size: 14px; margin-top: 2px; }

/* пакеты */
.tabs { max-width: 420px; margin: 0 auto 22px; }
.pkg-title { font-size: 18px; margin: 26px 0 14px; text-align: center; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pkg-grid.four { grid-template-columns: repeat(4, 1fr); }
.pkg-grid.one { grid-template-columns: minmax(0, 380px); justify-content: center; }
.pkg { padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  animation: msgIn .5s var(--d, 0ms) both; transition: transform .3s, border-color .3s; }
.pkg:hover { transform: translateY(-5px); }
.pkg.featured { border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 14px 44px color-mix(in srgb, var(--accent) 30%, transparent); }
.pkg.featured::before { content: ''; position: absolute; inset: -50%; z-index: -1; opacity: .25;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent 30%); animation: rot 5s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.pkg h3 { font-size: 18px; }
.pkg-price { font-family: var(--font-title); font-size: 24px; color: var(--strong); }
.pkg ul { list-style: none; display: grid; gap: 5px; font-size: 14px; flex: 1; }
.pkg .btn { margin-top: 6px; }
.pkg.small { gap: 6px; text-align: center; padding-top: 36px; }
.pkg.small .pkg-badge { left: 50%; right: auto; top: 8px; transform: translateX(-50%); white-space: nowrap; }
.pkg.small .pkg-price { font-size: 19px; }
.pkg-badge { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px;
  background: var(--accent); color: #fff; }
.price-list { margin-top: 18px; }
.price-list h3 { margin-bottom: 4px; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.meta { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); }
.meta a { color: var(--strong); }
.more-link { font-weight: 700; color: var(--strong); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.more-link:hover { gap: 10px; }
.more-link { transition: gap .25s; }

@media (max-width: 760px) {
  .how { grid-template-columns: 1fr; }
  .phone { height: 460px; }
  .pkg-grid, .pkg-grid.four { grid-template-columns: 1fr; }
  .pkg-grid.four { grid-template-columns: 1fr 1fr; }
  .bot-hero { grid-template-columns: 1fr; text-align: left; }
}

/* Если человек отключил анимации в системе */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
