:root {
  --bg: #0b080c;
  --bg-2: #140d15;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f6eef4;
  --muted: #a597a4;
  --accent-1: #ff9bcb;
  --accent-2: #ff4f9e;
  --accent: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --radius: 20px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-head: "Onest", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.center { display: flex; justify-content: center; margin-top: 40px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent {
  background: var(--accent); color: #2b0a1a;
  box-shadow: 0 8px 30px -8px rgba(255, 79, 158, .55);
}
.btn--accent:hover { box-shadow: 0 10px 40px -6px rgba(255, 79, 158, .8); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong); color: var(--text);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

/* ===== Шапка ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 8, 12, .72); backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; height: 72px; gap: 40px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.logo__icon { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,79,158,.45)); }
.logo--muted { color: var(--muted); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); }
.lang__btn { height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang__btn.is-active { background: rgba(255,255,255,.12); color: var(--text); }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger.is-open span:first-child { top: 19px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 19px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(11,8,12,.55) 0%, rgba(11,8,12,.6) 55%, var(--bg) 100%),
    url("assets/hero.webp") center / cover no-repeat,
    linear-gradient(180deg, #3a1a3a 0%, #1e0f1e 50%, #0b080c 100%);
  animation: heroZoom 30s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero__particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.particle {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: #ffc2e0; opacity: 0; box-shadow: 0 0 10px #ff6fb5;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .5; }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}

.hero__content { text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #f3d6e6;
  background: rgba(255,79,158,.1); border: 1px solid rgba(255,155,203,.3); backdrop-filter: blur(12px);
}
.hero__badge i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-1); }
.hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(42px, 7vw, 84px); line-height: 1.04; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, #ffc2df 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { margin: 24px auto 0; max-width: 620px; color: #ddcfd9; font-size: 18px; }
.hero__buttons { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 760px; margin: 72px auto 0;
}
.stat {
  padding: 22px 20px; border-radius: var(--radius);
  background: rgba(22, 12, 22, .5); border: 1px solid var(--border); backdrop-filter: blur(14px);
}
.stat__num { font-family: var(--font-head); font-size: 36px; font-weight: 700; line-height: 1.1; }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ===== Секции ===== */
.section { padding: 110px 0; position: relative; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -0.02em;
}
.section__sub { color: var(--muted); margin-top: 14px; font-size: 17px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: background .25s, border-color .25s, transform .25s;
}
.card:hover { background: var(--card-hover); border-color: var(--border-strong); }

/* Возможности */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { padding: 32px; }
.feature:hover { transform: translateY(-3px); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,155,203,.18), rgba(255,79,158,.14));
  border: 1px solid rgba(255,155,203,.25); color: var(--accent-1); margin-bottom: 22px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.feature p { color: var(--muted); }

/* Сравнение */
.compare {
  position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border); user-select: none; touch-action: none; cursor: ew-resize;
  --pos: 50%;
}
.compare__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.compare__img--before { background-image: url("assets/before.webp"), linear-gradient(135deg, #3a3030, #5a4a40); }
.compare__img--after {
  background-image: url("assets/after.webp"), linear-gradient(135deg, #2a1030, #5a2050);
  clip-path: inset(0 0 0 var(--pos));
}
.compare__tag {
  position: absolute; top: 18px; left: 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(11,8,12,.6); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600;
}
.compare__tag--right { left: auto; right: 18px; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px);
  background: rgba(255,255,255,.85);
}
.compare__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #2b0a1a; box-shadow: 0 6px 24px rgba(0,0,0,.4);
}

/* Цены */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { position: relative; padding: 34px 28px 28px; display: flex; flex-direction: column; }
.price__period { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.price__desc { color: var(--muted); margin-top: 6px; }
.price__value { font-family: var(--font-head); font-size: 44px; font-weight: 700; margin: 28px 0; letter-spacing: -0.02em; }
.price .btn { margin-top: auto; }
.price--featured {
  border-color: rgba(255,155,203,.45);
  background: linear-gradient(180deg, rgba(255,155,203,.1), rgba(255,79,158,.04));
  box-shadow: 0 20px 60px -30px rgba(255,79,158,.6);
}
.price__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; background: var(--accent); color: #2b0a1a;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { padding: 26px; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #2b0a1a; font-weight: 700;
}
.review__name { font-weight: 600; }
.review p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); }

/* Футер */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__copy { color: var(--muted); font-size: 14px; }
.footer__links { margin-left: auto; display: flex; gap: 22px; }
.footer__links a { color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--text); }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(11,8,12,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .burger { display: block; }
  .header__actions .lang, .header__actions .btn--ghost { display: none; }
  .pricing, .reviews { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero__text { font-size: 16px; }
  .hero__text br { display: none; }
  .compare { aspect-ratio: 4 / 3; }
  .footer__links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
