/* ==========================================================
   MBO Solutions — styles
   ========================================================== */

/* Manrope (variable 400–800), self-hosted: Cyrillic + Latin subsets */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #07060b;
  --bg-alt: #0c0a13;
  --surface: #13101c;
  --surface-2: #1a1626;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(167, 139, 250, .35);
  --text: #f4f2f8;
  --muted: #a6a1b4;
  --accent: #8b5cf6;
  --accent-2: #a855f7;
  --accent-light: #c4b5fd;
  --grad: linear-gradient(90deg, #c4b5fd 0%, #a855f7 25%, #8b5cf6 50%, #a855f7 75%, #c4b5fd 100%);
  --grad-btn: linear-gradient(135deg, #9b5cff 0%, #7c3aed 100%);
  --glow: 0 10px 40px -8px rgba(139, 92, 246, .55);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  interpolate-size: allow-keywords;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(139, 92, 246, .45); color: #fff; }

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }

svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1001;
  padding: 10px 16px; background: var(--accent); border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.grad {
  background-image: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io);
}
.js.skip-intro .preloader { display: none; }
.preloader::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .25), transparent 65%);
  animation: pulse 2.4s ease-in-out infinite;
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__logo { position: relative; width: clamp(180px, 34vw, 280px); height: auto; overflow: hidden; }
.preloader__logo use { transform: translateY(110%); animation: rise .9s var(--ease) forwards; animation-delay: calc(.1s + var(--i) * .1s); }
.preloader__sub { position: relative; margin-top: 14px; padding-left: .6em; font-size: 12px; letter-spacing: .6em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fade .8s .5s forwards; }
.preloader__bar { position: relative; width: 160px; height: 2px; margin-top: 26px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--grad-btn); box-shadow: 0 0 12px var(--accent); transform-origin: left; transform: scaleX(0); animation: grow 1.1s .25s var(--ease) forwards; }

@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes pulse { 50% { transform: scale(1.15); opacity: .7; } }

/* ---------- Scroll progress / cursor glow / to-top ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 102; height: 2px;
  background: var(--grad-btn); box-shadow: 0 0 10px var(--accent);
  transform-origin: left; transform: scaleX(0);
}

.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none;
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .12), transparent 62%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .6s;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(19, 16, 28, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease), background-color .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(139, 92, 246, .25); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--border); stroke-width: 2; }
.to-top__ring .to-top__fill { stroke: var(--accent-2); stroke-dasharray: 138.23; stroke-dashoffset: 138.23; }
.to-top__arrow { width: 20px; height: 20px; stroke-width: 2; transition: transform .3s var(--ease); }
.to-top:hover .to-top__arrow { transform: translateY(-3px); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s;
}
.btn .ico-arrow { width: 18px; height: 18px; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(4px); }

.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: var(--glow); }
.btn--primary::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .8s var(--ease);
}
.btn--primary:hover::before { left: 130%; }
.btn--primary:hover { box-shadow: 0 16px 50px -8px rgba(139, 92, 246, .8); }

.btn--outline { border-color: var(--border-strong); background: rgba(139, 92, 246, .08); min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--outline:hover { border-color: var(--accent); background: rgba(139, 92, 246, .2); }

.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, .04); }

.btn--block { width: 100%; }
/* Buttons keep their full width in flex rows (the text next to them wraps instead) */
.btn { flex-shrink: 0; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
}

/* ---------- Logo ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { position: relative; z-index: 120; display: inline-flex; line-height: 0; transition: opacity .3s, filter .4s; }
.logo__svg { width: 118px; height: auto; aspect-ratio: 166 / 64; overflow: visible; }
.logo { align-items: center; gap: 10px; }
.logo__mark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(139, 92, 246, .7); transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.logo--sm .logo__mark { width: 34px; }
.logo:hover { filter: drop-shadow(0 0 14px rgba(168, 85, 247, .55)); }
.logo--sm .logo__svg { width: 104px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, transform .45s var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on .header itself would trap the fixed mobile menu inside it */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(7, 6, 11, .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .3s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled { border-bottom-color: var(--border); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.js .header { opacity: 0; transform: translateY(-20px); transition: opacity .8s var(--ease), transform .8s var(--ease), background-color .3s, border-color .3s; }
.is-loaded .header { opacity: 1; transform: none; }
.is-loaded .header.is-hidden { transform: translateY(-100%); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; }
.nav__link { position: relative; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; padding: 0; position: relative; z-index: 120; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Split text ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.w__i { display: inline-block; }
.js [data-split] .w__i {
  transform: translateY(115%) rotate(6deg); transform-origin: left bottom;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--base, 0s) + var(--i) * 70ms);
}
.js [data-split].is-visible .w__i { transform: none; }

/* ---------- Intro (hero) ---------- */
.js .intro {
  opacity: 0; transform: translateY(30px); filter: blur(10px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .intro--zoom { transform: scale(.9) translateY(30px); }
.is-loaded .intro { opacity: 1; transform: none; filter: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(40px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--zoom { transform: scale(.94) translateY(20px); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

.reveal-img { overflow: hidden; border-radius: var(--r, 24px); }
.js .reveal-img {
  clip-path: inset(100% 0 0 0 round var(--r, 24px));
  transition: clip-path 1.3s var(--ease-io);
}
.js .reveal-img img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0 round var(--r, 24px)); }
.js .reveal-img.is-visible img { transform: scale(1); }

/* ---------- Spotlight cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(19, 16, 28, .6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after {
  content: ""; position: absolute; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .4s;
}
.spot::before {
  inset: 0; z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .16), transparent 45%);
}
.spot::after {
  inset: -1px; padding: 1px; z-index: 2;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(196, 181, 253, .8), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 96px; overflow: hidden; }
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 38%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(500px 360px at 8% 10%, rgba(168, 85, 247, .12), transparent 70%);
  animation: aurora 14s ease-in-out infinite alternate;
}
@keyframes aurora {
  50% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1); }
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
.hero__title { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; }
.hero__lead { margin-top: 24px; max-width: 520px; font-size: 18px; color: var(--muted); }
.hero__lead b { color: var(--text); font-weight: 600; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.js [data-split-intro] .w__i { --base: .15s; }

.hero__visual { position: relative; perspective: 1200px; }
.hero__visual::before {
  content: ""; position: absolute; inset: 10% 6%; border-radius: 50%;
  background: rgba(139, 92, 246, .45); filter: blur(90px); z-index: -1;
}

.tilt {
  position: relative; border-radius: 28px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease);
  will-change: transform;
}
.tilt.is-tilting { transition: transform .15s linear; }
.tilt img { width: 100%; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.tilt::before {
  content: ""; position: absolute; inset: -1px; z-index: 1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), rgba(255, 255, 255, .06) 0deg, rgba(255, 255, 255, .06) 220deg, #a855f7 290deg, #e9d5ff 320deg, rgba(255, 255, 255, .06) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 5s linear infinite;
}
@keyframes spin { to { --angle: 360deg; } }
.tilt__glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .16), transparent 45%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .5s;
}
.tilt.is-tilting .tilt__glare { opacity: 1; }

.chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  background: rgba(19, 16, 28, .72); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
}
.chip svg { width: 16px; height: 16px; color: var(--accent-light); stroke-width: 2; }
.chip--1 { top: 9%; left: -7%; --cd: 1.1s; --fd: 6s; }
.chip--2 { top: 46%; right: -6%; --cd: 1.3s; --fd: 7s; }
.chip--3 { bottom: 6%; left: 8%; --cd: 1.5s; --fd: 6.5s; }
.chip__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.chip__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-2); animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }

.js .chip { opacity: 0; }
.is-loaded .chip { animation: chip-in .8s var(--ease) var(--cd) forwards, float var(--fd) ease-in-out calc(var(--cd) + .8s) infinite; }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-10px); } }

.features {
  position: relative; margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(19, 16, 28, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.feature { display: flex; align-items: center; gap: 16px; padding: 24px 28px; font-size: 15px; font-weight: 500; line-height: 1.35; transition: background-color .3s; }
.feature:hover { background: rgba(139, 92, 246, .06); }
.feature + .feature { border-left: 1px solid var(--border); }
.feature svg { width: 32px; height: 32px; color: var(--accent-light); stroke-width: 1.4; transition: transform .4s var(--ease); }
.feature:hover svg { transform: scale(1.15) rotate(-6deg); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; margin-left: -13px;
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .25);
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent-light); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 64px 0; }
.marquee__band { width: 110%; margin-left: -5%; padding: 16px 0; }
.marquee__band--front {
  position: relative; z-index: 2;
  background: var(--grad-btn);
  transform: rotate(-2.5deg);
  box-shadow: 0 24px 60px -16px rgba(139, 92, 246, .6);
}
.marquee__band--back {
  position: absolute; top: 50%; left: 0;
  background: var(--surface); border-block: 1px solid var(--border);
  transform: translateY(-50%) rotate(2.5deg);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track--reverse { animation-direction: reverse; animation-duration: 46s; }
.marquee__track span { font-size: clamp(22px, 3vw, 36px); font-weight: 800; line-height: 1.2; white-space: nowrap; text-transform: uppercase; letter-spacing: .01em; }
.marquee__band--back span { color: transparent; -webkit-text-stroke: 1px rgba(196, 181, 253, .45); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__title { font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 17px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service { grid-column: span 2; }
.service:nth-child(n+4) { grid-column: span 3; }
.service { padding: 32px; }
.service:hover { border-color: rgba(167, 139, 250, .2); transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(139, 92, 246, .55); }
.service__num { position: absolute; top: 26px; right: 30px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .14); transition: color .3s; }
.service:hover .service__num { color: var(--accent-light); }
.service__icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 24px;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .25);
  color: var(--accent-light);
  transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .4s;
}
.service:hover .service__icon { background: var(--grad-btn); color: #fff; transform: rotate(-8deg) scale(1.08); box-shadow: var(--glow); }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }

/* Cases */
.case {
  display: grid; grid-template-columns: 1.3fr 1fr;
  border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
  background: var(--surface);
}
.case__media { position: relative; overflow: hidden; --r: 0px; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case:hover .case__media img { transform: scale(1.04); }
.case__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.case__label { font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--accent-light); margin-bottom: 14px; }
.case__title { font-size: 28px; margin-bottom: 16px; }
.case__text { color: var(--muted); }
.case__list { margin-top: 22px; display: grid; gap: 10px; }
.case__list li { position: relative; padding-left: 26px; font-size: 15px; }
.case__list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--accent-light); border: 1px solid var(--border-strong); background: rgba(139, 92, 246, .08); transition: background-color .3s, color .3s; }
.tags li:hover { background: var(--accent); color: #fff; }

.case-next {
  margin-top: 20px; padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px dashed var(--border-strong); border-radius: 24px;
  background: radial-gradient(400px 200px at 0% 0%, rgba(139, 92, 246, .14), transparent 70%);
}
.case-next h3 { font-size: 22px; margin-bottom: 6px; }
.case-next p { color: var(--muted); }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why__media { border-radius: 24px; overflow: hidden; }
.why__media img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 62% 50%; }
.why__content .section__title { margin-bottom: 36px; }
.why__list { display: grid; gap: 26px; }
.why__list li { display: flex; gap: 18px; }
.why__list svg { width: 30px; height: 30px; margin-top: 2px; color: var(--accent-light); stroke-width: 1.4; transition: transform .4s var(--ease); }
.why__list li:hover svg { transform: scale(1.15); }
.why__list h3 { font-size: 18px; margin-bottom: 4px; }
.why__list p { color: var(--muted); font-size: 15px; }

/* Process */
.steps-wrap { position: relative; --p: 0; }
.steps__track { position: relative; height: 2px; margin-bottom: 28px; border-radius: 2px; background: var(--border); overflow: hidden; }
.steps__track i { position: absolute; inset: 0; background: var(--grad-btn); box-shadow: 0 0 12px var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { padding: 28px 24px; }
.step.is-active { border-color: rgba(167, 139, 250, .22); }
.step__num {
  display: inline-block; margin-bottom: 26px;
  font-size: 44px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(196, 181, 253, .45);
  background: linear-gradient(90deg, #c4b5fd, #a855f7) no-repeat;
  background-size: 0% 100%;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 1s var(--ease);
}
.step.is-active .step__num { background-size: 100% 100%; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about__photo { position: relative; }
.about__photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 28px;
  border: 1px solid var(--border-strong);
}
.about__photo img { position: relative; border-radius: 24px; aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.about__badge {
  position: absolute; right: -40px; bottom: 48px; z-index: 2;
  width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(12, 10, 19, .85); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(139, 92, 246, .6);
}
.about__badge-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: rotate 18s linear infinite; }
.about__badge-text text { fill: var(--accent-light); stroke: none; font-size: 10px; font-weight: 600; letter-spacing: 1.9px; }
.about__badge-logo { font-size: 20px; font-weight: 800; }
@keyframes rotate { to { transform: rotate(360deg); } }
.about__content > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 17px; }
.about__content .section__title { margin-bottom: 8px; }
.about__quote {
  margin: 32px 0 0; padding: 24px 28px;
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(139, 92, 246, .07);
  font-size: 18px; font-weight: 500;
}
.about__quote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--accent-light); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .3s, background-color .3s; }
.faq details:hover { border-color: rgba(167, 139, 250, .2); }
.faq details[open] { border-color: var(--border-strong); background: linear-gradient(180deg, rgba(139, 92, 246, .08), var(--surface)); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; font-weight: 400; color: var(--accent-light);
  border: 1px solid var(--border-strong); transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--accent); color: #fff; }
.faq__body p { padding: 0 26px 22px; color: var(--muted); }

/* Contact */
.contact { overflow: hidden; }
.contact__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 85% 60%, rgba(139, 92, 246, .22), transparent 70%); }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__links { margin-top: 36px; display: grid; gap: 14px; }
.contact__links a { display: inline-flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; transition: color .2s; }
.contact__links a:hover { color: var(--accent-light); }
.contact__links svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(139, 92, 246, .08); color: var(--accent-light); transition: background .3s, color .3s, transform .4s var(--ease); }
.contact__links a:hover svg { background: var(--grad-btn); color: #fff; transform: rotate(-8deg); }

.form { padding: 36px; display: grid; gap: 18px; }
.form__row { display: grid; gap: 8px; }
.form label { font-size: 14px; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder, .form textarea::placeholder { color: #6b6678; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.form .is-invalid { border-color: #f87171; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--accent-light); text-align: center; }
.form__status.is-error { color: #f87171; }
.form__status a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.form__consent { font-size: 12.5px; color: var(--muted); text-align: center; }
.form__consent a, .footer__copy a { text-decoration: underline; text-underline-offset: 3px; }
.form__consent a:hover, .footer__copy a:hover { color: var(--accent-light); }

/* Footer */
.footer { position: relative; overflow: hidden; padding: 0 0 40px; border-top: 1px solid var(--border); }
.footer__big {
  padding: 48px 16px 0; text-align: center; white-space: nowrap;
  font-size: clamp(40px, 10.4vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.01em;
  color: rgba(139, 92, 246, .06); -webkit-text-stroke: 1px rgba(167, 139, 250, .45);
  -webkit-mask-image: linear-gradient(#000 30%, transparent 100%);
  mask-image: linear-gradient(#000 30%, transparent 100%);
  user-select: none;
}
.footer__big::before { content: attr(data-text); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.footer__tag { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.footer__copy { font-size: 14px; color: var(--muted); }

/* ---------- Header phone ---------- */
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .2s; }
.nav__phone svg { width: 18px; height: 18px; color: var(--accent-light); }
.nav__phone:hover { color: var(--accent-light); }

/* ---------- Hero gift link ---------- */
.hero__gift {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  font-size: 14px; color: var(--muted);
  background: rgba(139, 92, 246, .08); border: 1px dashed var(--border-strong);
  transition: background-color .3s, color .3s;
}
.hero__gift b { color: var(--accent-light); }
.hero__gift:hover { background: rgba(139, 92, 246, .16); color: var(--text); }
.hero__gift-ico { font-size: 18px; line-height: 1; }
.feature b { font-weight: 700; }

/* ---------- Service price/term ---------- */
.service__meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.service__meta b { white-space: nowrap; color: var(--text); font-size: 16px; }
.service__meta span:last-child { color: var(--accent-light); font-weight: 600; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px; border-radius: 24px; }
.plan--featured {
  border-color: var(--border-strong);
  background: radial-gradient(400px 260px at 50% 0%, rgba(139, 92, 246, .22), transparent 70%), linear-gradient(180deg, var(--surface), rgba(19, 16, 28, .6));
  box-shadow: 0 30px 70px -30px rgba(139, 92, 246, .6);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--grad-btn); box-shadow: var(--glow);
}
.plan__name { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-light); }
.plan__product { margin-top: 8px; font-size: 22px; }
.plan__price { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; color: var(--muted); }
.plan__price b { white-space: nowrap; font-size: clamp(34px, 11vw, 42px); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.plan__term { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--accent-light); }
.plan__list { margin: 24px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan__list li { display: flex; gap: 10px; font-size: 15px; }
.plan__list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-2); stroke-width: 2.2; }

.guarantee {
  margin-top: 20px; padding: 26px 32px; border-radius: 24px;
  display: flex; align-items: center; gap: 22px;
  border: 1px solid rgba(74, 222, 128, .28);
  background: linear-gradient(90deg, rgba(74, 222, 128, .08), rgba(74, 222, 128, .02));
}
.guarantee__ico { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #4ade80; background: rgba(74, 222, 128, .12); }
.guarantee__ico svg { width: 30px; height: 30px; }
.guarantee h3 { font-size: 20px; margin-bottom: 4px; }
.guarantee p { color: var(--muted); }

.gift {
  margin-top: 20px; padding: 32px 36px; border-radius: 24px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px;
  border: 1px solid var(--border-strong);
  background: radial-gradient(500px 240px at 0% 50%, rgba(139, 92, 246, .25), transparent 70%), var(--surface);
}
.gift__ico { font-size: 52px; line-height: 1; animation: float 4s ease-in-out infinite; }
.gift .eyebrow { margin-bottom: 8px; }
.gift h3 { font-size: 24px; }
.gift__text > p:last-child { margin-top: 6px; color: var(--muted); }

/* ---------- USD prices ---------- */
.usd { font-size: .82em; font-weight: 500; color: var(--muted); white-space: nowrap; }
.plan__price .usd { font-size: 16px; }
.rate-note { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.rate-note:empty { display: none; }

/* ---------- Honest terms ---------- */
.terms { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.terms li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.terms svg { width: 26px; height: 26px; color: var(--accent-light); margin-top: 2px; }
.terms b { display: block; font-size: 16px; margin-bottom: 2px; }
.terms span { font-size: 14px; color: var(--muted); }

/* ---------- Tools (links to pages) ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool { display: flex; flex-direction: column; padding: 28px 24px; }
.tool:hover { border-color: rgba(167, 139, 250, .25); transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(139, 92, 246, .55); }
.tool__ico { font-size: 36px; line-height: 1; margin-bottom: 18px; }
.tool h3 { font-size: 18px; margin-bottom: 8px; }
.tool p { color: var(--muted); font-size: 14.5px; flex: 1; }
.tool__cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--accent-light); }
.tool__cta .ico-arrow { width: 16px; height: 16px; stroke-width: 2; transition: transform .3s var(--ease); }
.tool:hover .ico-arrow { transform: translateX(4px); }

/* ---------- Proof points ---------- */
.proof__points { margin-top: 26px; display: grid; gap: 12px; }
.proof__points li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.proof__points svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: #fff; background: var(--grad-btn); stroke-width: 2.6; }

/* ---------- Founder caption ---------- */
.about__caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  padding: 10px 16px; border-radius: 14px;
  font-size: 13px; line-height: 1.35; color: var(--muted);
  background: rgba(12, 10, 19, .82); border: 1px solid var(--border-strong);
}
.about__caption b { display: block; font-size: 16px; color: var(--text); }

/* ---------- Footer contacts ---------- */
.footer__contacts { display: grid; gap: 2px; text-align: center; font-size: 13px; color: var(--muted); }
.footer__contacts a:hover { color: var(--accent-light); }
.footer__phone { display: inline-block; padding: 8px 0; font-size: 18px; font-weight: 700; color: var(--text); }

/* ---------- Proof (speed) ---------- */
.proof { padding-top: 40px; }
.proof__card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 64px;
  padding: 56px 64px; border-radius: 28px;
  background:
    radial-gradient(500px 300px at 0% 50%, rgba(139, 92, 246, .16), transparent 70%),
    linear-gradient(180deg, var(--surface), rgba(19, 16, 28, .6));
}
.proof__score { position: relative; width: 220px; height: 220px; }
.proof__ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.proof__ring circle { fill: none; stroke-width: 7; }
.proof__track { stroke: rgba(255, 255, 255, .07); }
.proof__bar {
  stroke: url(#proof-grad); stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, .7));
  transition: stroke-dashoffset 2s var(--ease);
}
.js .proof__card:not(.is-counted) .proof__bar { stroke-dashoffset: 326.73; }
.proof__num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 74px; }
.proof__num b { font-size: 80px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.proof__num small { margin-left: 6px; font-size: 20px; font-weight: 600; color: var(--muted); }
.proof__content .section__title { margin-bottom: 16px; }
.proof__lead { color: var(--muted); font-size: 17px; max-width: 560px; }
.proof__lead strong { color: var(--text); }

/* ---------- Quiz ---------- */
.quiz { overflow: hidden; }
.quiz__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 420px at 50% 60%, rgba(139, 92, 246, .16), transparent 70%); }
.container--quiz { position: relative; max-width: 880px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
.quiz__card { padding: 40px; border-radius: 28px; }
.quiz__top { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.quiz__counter { flex-shrink: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); }
.quiz__progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.quiz__progress i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad-btn); box-shadow: 0 0 12px var(--accent); transform-origin: left; transform: scaleX(.25); transition: transform .6s var(--ease); }

.quiz__steps { position: relative; min-height: 236px; }
.quiz__step { animation: step-in .55s var(--ease) both; }
.quiz__step.is-back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.quiz__q { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 24px; }
.quiz__options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.quiz__opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 20px; border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; font-weight: 600; text-align: left; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.quiz__opt svg { width: 26px; height: 26px; color: var(--accent-light); transition: transform .35s var(--ease); }
.quiz__opt:hover { border-color: var(--border-strong); background: rgba(139, 92, 246, .08); transform: translateY(-2px); }
.quiz__opt:hover svg { transform: scale(1.12) rotate(-6deg); }
.quiz__opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(139, 92, 246, .18); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2), var(--glow); }

.quiz__result { padding: 28px; border-radius: 20px; background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(139, 92, 246, .04)); border: 1px solid var(--border-strong); }
.quiz__result .eyebrow { margin-bottom: 10px; }
.quiz__result-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.quiz__result-text { margin-top: 12px; color: var(--muted); }
.quiz__result .tags { margin-top: 18px; }
.quiz__form { margin-top: 24px; display: grid; gap: 14px; }
.quiz__form-title { font-weight: 700; font-size: 17px; }
.quiz__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__form input {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.quiz__form input::placeholder { color: #6b6678; }
.quiz__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.quiz__form .is-invalid { border-color: #f87171; animation: shake .4s; }

.quiz__nav { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.quiz__back, .quiz__restart {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  background: none; border: 0; cursor: pointer; transition: color .2s, opacity .2s;
}
.quiz__back svg { width: 18px; height: 18px; stroke-width: 2; }
.quiz__back:hover, .quiz__restart:hover { color: var(--text); }
.quiz__back:disabled { opacity: 0; pointer-events: none; }

/* ---------- Floating Telegram ---------- */
.tg-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  display: flex; align-items: center;
  height: 56px; padding: 0; border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 12px 30px -8px rgba(34, 158, 217, .7);
  color: #fff; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .3s;
}
.tg-float::before {
  content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid #2aabee; animation: tg-ping 2.6s ease-out infinite; pointer-events: none;
}
@keyframes tg-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.tg-float__icon { position: relative; flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center; }
.tg-float__icon svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: -2px; }
.tg-float__label { max-width: 0; white-space: nowrap; font-size: 15px; font-weight: 700; opacity: 0; transition: max-width .45s var(--ease), opacity .3s, padding .45s var(--ease); }
.tg-float:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -8px rgba(34, 158, 217, .85); }
.tg-float:hover .tg-float__label { max-width: 160px; opacity: 1; padding-right: 22px; }
.js .tg-float { opacity: 0; transform: translateY(30px) scale(.8); }
.is-loaded .tg-float { opacity: 1; transform: none; transition: opacity .6s 1.4s, transform .7s var(--ease) 1.4s, box-shadow .3s; }
.is-loaded .tg-float:hover { transform: translateY(-3px); transition-delay: 0s; }

/* ---------- Easter egg ---------- */
.egg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1001; pointer-events: none; }
.egg-toast {
  position: fixed; left: 50%; top: 96px; z-index: 1002;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  background: rgba(19, 16, 28, .92); border: 1px solid var(--border-strong);
  box-shadow: var(--glow);
  transform: translate(-50%, -20px); opacity: 0;
  transition: opacity .4s, transform .5s var(--ease);
}
.egg-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.egg .logo__svg { animation: egg-logo 1.2s var(--ease); }
@keyframes egg-logo {
  30% { transform: scale(1.25) rotate(-6deg); filter: drop-shadow(0 0 18px #a855f7); }
  60% { transform: scale(.95) rotate(3deg); }
}

/* ---------- Lighter rendering on phones / touch ---------- */
@media (max-width: 960px), (hover: none) {
  body::after { display: none; }
  .js .intro, .js .reveal { filter: none; }
  .hero__glow, .preloader::before { animation: none; }
  .tilt::before { animation: none; --angle: 200deg; }
  .chip, .features, .to-top, .about__badge {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .chip { background: rgba(19, 16, 28, .92); }
  .features { background: rgba(19, 16, 28, .9); }
  .to-top, .about__badge { background: rgba(12, 10, 19, .95); }
  .hero__visual::before { filter: blur(60px); }
  .hero__particles { display: none; }
  .grad { animation: none; }
  .js .intro { transition-duration: .8s; transition-delay: calc(var(--d, 0s) * .35); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .intro, .js .chip, .js .header { opacity: 1; transform: none; filter: none; }
  .js .reveal-img { clip-path: none; }
  .js .reveal-img img, .js [data-split] .w__i { transform: none; }
  .cursor-glow, .hero__particles, .scroll-hint { display: none; }
  .js .tg-float { opacity: 1; transform: none; }
  .js .proof__card:not(.is-counted) .proof__bar { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) and (min-width: 961px) {
  .nav__phone { display: none; }
}

@media (max-width: 1080px) {
  .nav__list { gap: 22px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 28px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .terms { grid-template-columns: 1fr; }
  .gift { grid-template-columns: auto 1fr; }
  .gift .btn { grid-column: 1 / -1; justify-self: start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case__body { padding: 36px; }
  .chip--1 { left: -2%; }
  .chip--2 { right: -2%; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 36px;
    padding: calc(var(--header-h) + 16px) 24px 40px;
    background:
      radial-gradient(420px 320px at 50% 20%, rgba(139, 92, 246, .22), transparent 70%),
      var(--bg);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; max-width: 360px; }
  .nav__list li { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: .2s; }
  .nav.is-open .nav__list li:nth-child(6) { transition-delay: .25s; }
  .nav__list li + li { border-top: 1px solid var(--border); }
  .nav__link { display: block; padding: 16px 0; text-align: center; font-size: 24px; font-weight: 700; color: var(--text); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent-light); }
  .nav__phone { font-size: 20px; }
  .nav__phone svg { width: 22px; height: 22px; }
  .nav__cta { min-height: 52px; padding: 0 32px; font-size: 16px; background: var(--grad-btn); border-color: transparent; box-shadow: var(--glow); }
  body.menu-open { overflow: hidden; }

  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .chip--1 { left: 2%; top: 4%; }
  .chip--2 { right: 2%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--border); }
  .scroll-hint { display: none; }

  .services { grid-template-columns: repeat(2, 1fr); }
  .service, .service:nth-child(n+4) { grid-column: auto; }
  .service:last-child { grid-column: 1 / -1; }
  .why, .about, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .why__media img { aspect-ratio: 16 / 10; }
  .about__photo { max-width: 420px; }
  .about__badge { right: -16px; }
  .proof__card { grid-template-columns: 1fr; justify-items: center; gap: 32px; padding: 40px 28px; text-align: center; }
  .proof__score { width: 180px; height: 180px; }
  .proof__num { padding-top: 60px; }
  .proof__num b { font-size: 52px; }
  .proof__lead { margin: 0 auto; }
  .proof__points { max-width: 420px; margin-left: auto; margin-right: auto; }

  /* vertical process line */
  .steps-wrap { padding-left: 28px; }
  .steps__track { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; height: auto; margin: 0; }
  .steps__track i { transform-origin: top; transform: scaleY(var(--p)); }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .chip { font-size: 11.5px; padding: 8px 12px; }
  .chip--3 { display: none; }
  .features { grid-template-columns: 1fr; margin-top: 48px; }
  .feature { padding: 18px 22px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--border); }
  .feature br { display: none; }
  .marquee { padding: 56px 0; }
  .marquee__band { padding: 12px 0; }
  .marquee__band--front { transform: rotate(-5deg); }
  .marquee__band--back { transform: translateY(-50%) rotate(5deg); }
  .services, .steps { grid-template-columns: 1fr; }
  .service:last-child { grid-column: auto; }
  .steps-wrap { padding-left: 22px; }
  .service { padding: 26px; }
  .case__body { padding: 28px 22px; }
  .case__title { font-size: 23px; }
  .case-next { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .case-next .btn { width: 100%; }
  .about__photo { margin: 0 auto; max-width: 240px; }
  .step { padding: 12px 18px; display: flex; align-items: center; gap: 14px; }
  .step .step__num { font-size: 26px; margin: 0; }
  .case .tags { display: none; }
  .step h3 { margin-bottom: 0; }
  .step p { display: none; }
  .terms { grid-template-columns: 1fr 1fr; gap: 10px; }
  .terms li { flex-direction: column; gap: 8px; padding: 16px 14px; }
  .terms b { font-size: 14.5px; }
  .terms span { font-size: 12.5px; }
  .proof__points { justify-items: start; text-align: left; }
  .tools { grid-template-columns: 1fr; }
  .guarantee { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .gift { grid-template-columns: 1fr; padding: 26px 22px; gap: 16px; }
  .gift__ico { font-size: 44px; }
  .gift h3 { font-size: 21px; }
  .gift .btn { width: 100%; }
  .plan { padding: 32px 24px; }
  .hero__gift { font-size: 13px; }
  .service__meta { flex-wrap: wrap; }
  .about__badge { width: 104px; height: 104px; right: -10px; bottom: 28px; }
  .about__badge-text text { font-size: 9px; letter-spacing: 1.2px; }
  .form { padding: 24px 20px; }
  .faq summary { padding: 18px 20px; font-size: 16px; }
  .faq__body p { padding: 0 20px 18px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .tg-float { left: 16px; bottom: 16px; height: 50px; }
  .tg-float::before, .tg-float__icon { width: 50px; height: 50px; }
  .quiz__card { padding: 24px 18px; }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__opt { padding: 15px 16px; }
  .quiz__steps { min-height: 0; }
  .quiz__fields { grid-template-columns: 1fr; }
  .quiz__result { padding: 22px 18px; }
  .egg-toast { white-space: normal; width: calc(100% - 32px); text-align: center; border-radius: 18px; }
}

/* ---------- Comfortable tap targets on touch screens ---------- */
@media (pointer: coarse) {
  .footer__contacts span a { display: inline-block; padding: 8px 4px; }
}

/* ---------- Concept case + first-clients offer ---------- */
.case + .case { margin-top: 20px; }
.case--rev { grid-template-columns: 1fr 1.3fr; }
.case--rev .case__media { order: 2; }
.case__badge { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; vertical-align: 2px; color: #67e8f9; border: 1px solid rgba(103, 232, 249, .35); background: rgba(103, 232, 249, .08); }
.case__link { align-self: flex-start; margin-top: 26px; }
.case-next--offer { border-style: solid; border-color: rgba(167, 139, 250, .35); background: radial-gradient(500px 240px at 0% 0%, rgba(139, 92, 246, .22), transparent 70%), var(--surface); }
.case-next__tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--accent), #c026d3); }
.case-next--offer p:not(.case-next__tag) { max-width: 620px; }
@media (max-width: 1080px) {
  .case--rev { grid-template-columns: 1fr; }
  .case--rev .case__media { order: 0; }
}
@media (max-width: 600px) {
  .case__link { align-self: stretch; }
}
