@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;900&display=swap');

@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: 'Onest', ui-sans-serif, system-ui, sans-serif;
  background: #0a0a0f;
  color: #e2e8f0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 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;
}

/* ── Video Container ── */
@keyframes videoZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

@keyframes videoGlow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3), inset 0 0 20px rgba(99, 102, 241, 0.05);
  }
  50% {
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.4), inset 0 0 30px rgba(139, 92, 246, 0.1);
  }
}

#video-container.playing {
  animation: videoZoom 0.8s ease-out forwards, videoGlow 2s ease-in-out infinite;
  border-color: rgba(99, 102, 241, 0.5);
}

/* ── 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: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 12px 24px rgba(99, 102, 241, 0.08);
}

.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: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.price-item:last-child {
  border-bottom: none;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.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-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.01));
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.06);
}

.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-list-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.01));
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.06);
}

.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: 18px;
  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 {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  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);
  }
}

/* ── 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: 1px solid rgba(255, 255, 255, 0.1);
  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;
  }
}
