@view-transition {
  navigation: auto;
}

/* ── Base ── */
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: #0a0a0f;
}

body {
  font-family: 'Roobert PRO', ui-sans-serif, system-ui, sans-serif;
  background: #0a0a0f;
  color: #e2e8f0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero-benefits { font-size: 16px; line-height: 1.5; }
.hero-benefits svg, .hero-action svg { width: 18px; height: 18px; }
.hero-action { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; max-width: 100%; padding: 14px 28px; font-size: 16px; line-height: 24px; text-align: center; }
.hero-secondary-button { background-color: #14141e; }
.hero-secondary-button:hover { background-color: #242432; }

/* Hero status board: lightweight, opaque, and readable without JavaScript. */
.hero-status-board {
  position: relative;
  --status-surface: #15151e;
  --status-line: #30303d;
  --status-text: #f1f1f4;
  --status-muted: #9a9aaa;
  --status-success: #43d38c;
  width: 100%; max-width: 560px; margin-inline: auto;
  background: var(--status-surface); color: var(--status-text);
  border: 1px solid var(--status-line); border-radius: 24px;
  padding: 28px; box-shadow: 0 16px 48px rgba(0,0,0,.12);
}
[data-theme="light"] .hero-status-board {
  --status-surface: #fff; --status-line: #e2e2e7;
  --status-text: #191c1f; --status-muted: #727980; --status-success: #15824e;
  box-shadow: 0 12px 36px rgba(25,28,31,.035);
}
.hero-status-header, .hero-status-heading, .hero-status-row, .hero-status-state {
  display: flex; align-items: center;
}
.hero-status-header { gap: 12px; margin-bottom: 20px; }
.hero-status-heading { gap: 12px; min-width: 0; }
.hero-status-server { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--status-line); border-radius: 12px; flex-shrink: 0; }
.hero-status-heading h2 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--status-text); }
.hero-status-list { padding: 0; margin: 0; list-style: none; }
.hero-status-row { gap: 12px; padding: 12px 0; }
.hero-status-platform { width: 40px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-status-platform img { width: 32px; height: 32px; object-fit: contain; }
.hero-status-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.hero-status-platform-name { display: block; }
.hero-status-services { display: block; margin-top: 4px; color: var(--status-muted); font-size: 12px; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.hero-status-state { gap: 7px; color: var(--status-success); font-size: 12px; font-weight: 500; white-space: nowrap; }
.hero-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero-status-sticker {
  position: absolute; top: -26px; right: -12px; z-index: 2;
  width: 86px; height: 86px; padding: 0; border: 3px solid #fff; border-radius: 12px;
  background: #fff; overflow: hidden; cursor: pointer;
  transform: rotate(11deg); transition: transform .2s ease;
  box-shadow: 0 5px 18px rgba(25,28,31,.15);
}
.hero-status-sticker img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-status-sticker.is-playing { transform: rotate(11deg) scale(1.13); }
.hero-status-sticker:focus-visible { outline: 2px solid var(--status-text); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .hero-status-sticker { transition: none; } }
@media (max-width: 480px) {
  .hero-status-board { padding: 20px; border-radius: 20px; }
  .hero-status-heading h2 { font-size: 18px; }
  .hero-status-server { width: 36px; height: 36px; }
  .hero-status-row { gap: 10px; padding: 10px 0; }
  .hero-status-platform { width: 34px; }
  .hero-status-name { font-size: 13px; }
  .hero-status-services { font-size: 11px; }
  .hero-status-state { font-size: 11px; }
  .hero-status-sticker { width: 60px; height: 60px; top: -46px; right: 8px; border-radius: 10px; }
}

/* Мягкое общее свечение под всем лендингом (фиксированное, даёт глубину при скролле) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -8%, rgba(99, 102, 241, 0.12), transparent 70%),
    radial-gradient(45% 40% at 100% 100%, rgba(139, 92, 246, 0.07), transparent 70%),
    radial-gradient(40% 35% at 0% 60%, rgba(99, 102, 241, 0.05), transparent 70%);
}

/* ── Hero: лучи-прожекторы ── */
.hero-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-beams .source {
  position: absolute;
  top: -150px;
  left: 50%;
  width: 520px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.5) 0%, rgba(139, 92, 246, 0.18) 35%, transparent 70%);
  filter: blur(30px);
}

.hero-beams .beam {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 240px;
  height: 125%;
  transform-origin: top center;
  background: linear-gradient(to bottom,
    rgba(167, 139, 250, 0.22) 0%,
    rgba(99, 102, 241, 0.08) 35%,
    transparent 72%);
  filter: blur(26px);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: beamPulse 9s ease-in-out infinite alternate;
}

.hero-beams .beam.b1 { transform: translateX(-50%) rotate(-32deg); animation-delay: 0s; }
.hero-beams .beam.b2 { transform: translateX(-50%) rotate(-11deg); animation-delay: -2.5s; }
.hero-beams .beam.b3 { transform: translateX(-50%) rotate(11deg);  animation-delay: -5s; }
.hero-beams .beam.b4 { transform: translateX(-50%) rotate(32deg);  animation-delay: -7.5s; }

@keyframes beamPulse {
  0%   { opacity: 0.45; }
  100% { opacity: 1; }
}

@media (max-width: 640px) {
  .hero-beams .beam { width: 150px; filter: blur(20px); }
  .hero-beams .source { width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-beams .beam { animation: none; opacity: 0.7; }
}

/* Hero section glow from top-right */
body > section:first-of-type {
  position: relative;
  overflow: hidden;
}

body > section:first-of-type::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse 350px 200px at 100% 0%, rgba(99, 102, 241, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Section Dividers */
.section-divider {
  height: 80px;
  pointer-events: none;
  margin: 0 auto;
}

/* ── Grain overlay (everywhere except Hero) ── */
/* Регулируй opacity от 0 (нет) до 1 (очень много) */
#services::before,
#reviews::before,
#faq::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04; /* ← Отсюда! Измени на 0.02 (меньше) или 0.08 (больше) */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#services {
  position: relative;
  overflow: hidden;
}

/* Services section glows from top-left and bottom-right */
#services::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse 300px 150px at 0% 0%, rgba(99, 102, 241, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

#reviews {
  position: relative;
  overflow: hidden;
}

/* Reviews section glows from top-right and bottom-left */
#reviews::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse 300px 150px at 100% 0%, rgba(139, 92, 246, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

#faq {
  position: relative;
  overflow: hidden;
}

/* FAQ section glows from bottom-left */
#faq::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse 300px 150px at 0% 100%, rgba(99, 102, 241, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}


/* ── Mouse spotlight ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    350px circle at var(--mx, 50%) var(--my, 50%),
    rgba(99, 102, 241, 0.045) 0%,
    transparent 70%
  );
}

/* ── Nav button — glass glow from below ── */
.nav-btn {
  position: relative;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

/* Glow rising from the bottom — like backlight through frosted glass */
.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(99, 102, 241, 0.28) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Top edge highlight — like frosted glass catching light */
.nav-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.nav-btn:hover::before {
  opacity: 1;
}

.nav-btn:hover::after {
  opacity: 1;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(99, 102, 241, 0.28);
}

/* ── Dropdown ── */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown-wrap:hover .dropdown-menu,
.dropdown-wrap:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Mobile menu animation ── */
#mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

#mobile-menu.open {
  grid-template-rows: 1fr;
}

#mobile-menu > div {
  overflow: hidden;
}

/* ── Burger → X ── */
.burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #94a3b8;
  border-radius: 9999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Animations ── */
.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
  animation: fadeInUp 0.8s ease forwards 0.2s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Transitions ── */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

/* ── Tailwind color overrides ── */
.text-slate-300 {
  color: rgb(203, 213, 225);
}

.text-slate-400 {
  color: rgb(148, 163, 184);
}

.text-white {
  color: #ffffff;
}

.border-white {
  border-color: rgba(255, 255, 255, 0.5);
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ── Blog / Legal page background atmosphere ── */
.blog-layout::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 400px at 100% 0%,   rgba(99, 102, 241, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 0%   60%,  rgba(139, 92, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 600px 300px at 50% 100%,  rgba(99, 102, 241, 0.04) 0%, transparent 60%);
}

/* ── Blog card ── */
.blog-card {
  background: rgba(15, 15, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 0 32px rgba(99, 102, 241, 0.18);
}

.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ── Services Section ── */
.category-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgb(148, 163, 184);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transition: left 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.category-btn:hover {
  border-color: rgba(99, 102, 241, 0.5);
  color: white;
}

.category-btn:hover::before {
  left: 0;
}

.category-btn.active {
  border-color: rgba(99, 102, 241, 0.8);
  color: white;
}

.category-btn.active::before {
  left: 0;
}

.plan-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.plan-card.popular {
  border: 1px solid rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.03));
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
  white-space: nowrap;
}

.plan-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  margin-top: 8px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
}



.duration {
  color: rgb(148, 163, 184);
}

.price {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 16px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.product-list-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 12px 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
}

.product-title {
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
  font-size: 14px;
}

.product-info {
  font-size: 12px;
  color: rgb(148, 163, 184);
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.cta-button {
  min-height: 48px;
  padding: 14px 28px;
  line-height: 1.25;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  margin-top: auto;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.fade-card {
  animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.category-content-fade {
  animation: categoryContentFade 180ms ease-out;
}

@keyframes categoryContentFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .category-content-fade { animation: none; }
}

/* ── Reviews Section ── */
.review-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.review-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.02));
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.06);
}

.rating-star {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.5;
}

.rating-star:hover {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.rating-star.selected {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.6));
}

/* ── FAQ Section ── */
.faq-card {
  border-bottom: none;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.faq-card:last-child {
  border-bottom: none;
}

.faq-btn {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: white;
  transition: color 0.3s ease;
  word-break: break-word;
}

.faq-btn span {
  flex: 1;
}

.faq-btn svg {
  flex-shrink: 0;
}

.faq-btn:hover {
  color: #a5b4fc;
}

.faq-answer {
  margin-top: 12px;
  padding: 12px 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

/* ── Payment Methods ── */
.payment-method-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: grayscale(100%);
}

.payment-method-wrapper:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px) scale(1.05);
  filter: grayscale(0%) brightness(1.1);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

.payment-method {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Video poster loading state: neutral, with no brand artwork. */

/* Catalogue rows reserve interaction for their order button. */
.product-list-item { align-items: stretch; min-height: 82px; padding: 16px; gap: 16px; }
.product-list-item > img, .product-list-item > .product-icon { align-self: center; }
.product-summary { flex: 1; min-width: 0; align-self: center; }
.product-actions { display: flex; align-items: stretch; gap: 24px; flex-shrink: 0; }
.product-actions .product-price { display: flex; align-items: center; margin: 0; white-space: nowrap; }
.product-order-button { margin: 0; }
@media (max-width: 640px) { .product-list-item { flex-wrap: wrap; } .product-actions { width: 100%; justify-content: space-between; gap: 16px; } }

.plan-card > .price-item:last-of-type { margin-bottom: 16px; }
