/* =========================================================
   Vexo Studio — style.css
   Тема целиком настраивается через переменные :root ниже.
   ========================================================= */

:root {
  --bg:            #0a0d14;
  --bg-2:          #0e121c;
  --surface:       #141a27;
  --surface-2:     #1a2233;
  --border:        #242f47;
  --border-soft:   #1e2740;
  --text:          #eaeef7;
  --text-dim:      #9aa4bd;
  --text-mute:     #6b7590;

  --accent:        #6d5efc;
  --accent-2:      #22d3ee;
  --accent-soft:   rgba(109, 94, 252, 0.14);
  --grad:          linear-gradient(100deg, #8b7bff 0%, #22d3ee 100%);
  --grad-135:      linear-gradient(135deg, #7d6cff 0%, #22d3ee 100%);

  --font:          'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head:     'Sora', var(--font);

  --maxw:          1160px;
  --radius:        20px;
  --radius-sm:     12px;
  --gap:           24px;
  --section-y:     clamp(60px, 8vw, 112px);
  --shadow:        0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 16px 40px -14px rgba(109, 94, 252, 0.55);
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 84px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Icons ---------- */
.ic { width: 24px; height: 24px; display: inline-block; flex: none; vertical-align: middle; }
.ic--sm { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn .ic { width: 18px; height: 18px; }
.btn--lg   { padding: 15px 30px; font-size: 16px; }
.btn--block{ width: 100%; }
.btn--primary { background: var(--grad); color: #080b12; box-shadow: var(--shadow-accent); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 52px -16px rgba(109,94,252,.7); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: rgba(255,255,255,.02); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-bottom-color: var(--border); background: rgba(10,13,20,.85); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.logo__mark { width: 22px; height: 22px; filter: drop-shadow(0 3px 8px rgba(109,94,252,.5)); }
.logo__dim  { color: var(--text-mute); font-weight: 700; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav__link { color: var(--text-dim); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav__link:hover { color: var(--text); }
.header__cta { margin-left: 8px; }

.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; margin-left: auto; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 var(--section-y); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 460px at 12% 8%, rgba(109,94,252,.24), transparent 60%),
    radial-gradient(560px 460px at 92% 30%, rgba(34,211,238,.16), transparent 60%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 78%);
}
.hero__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 64px); align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--text-dim);
  font-weight: 600; font-size: 13px; letter-spacing: .03em;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34,211,238,.18); }
.hero__title { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; }
.hero__lead { margin: 24px 0 34px; font-size: clamp(17px, 2.2vw, 20px); color: var(--text-dim); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-family: var(--font-head); font-size: 25px; }
.hero__stats span { color: var(--text-mute); font-size: 14px; }

/* Hero visual */
.hero__visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; }
.orb--1 { width: 260px; height: 260px; background: #6d5efc; top: 4%; right: 8%; animation: float1 9s var(--ease) infinite; }
.orb--2 { width: 220px; height: 220px; background: #22d3ee; bottom: 6%; left: 6%; animation: float2 11s var(--ease) infinite; }
.glass {
  position: relative; z-index: 2; width: min(360px, 100%); padding: 26px;
  border-radius: 26px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
  animation: floatCard 8s var(--ease) infinite;
}
.glass__bar { display: flex; gap: 7px; margin-bottom: 26px; }
.glass__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.glass__mark { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.glass__mark .ic { width: 34px; height: 34px; }
.glass__label { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 0 0 22px; }
.glass__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-weight: 600; font-size: 14px;
}
.chip__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-135); color: #08101a; }
.chip__ic .ic { width: 18px; height: 18px; }
.chip:nth-child(1) { animation: floatCard 7s var(--ease) infinite; }
.chip:nth-child(4) { animation: floatCard 9s var(--ease) .4s infinite; }

@keyframes floatCard { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
@keyframes float1 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-18px,16px); } }
@keyframes float2 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(16px,-14px); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__title { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; }
.section__subtitle { margin: 16px 0 0; color: var(--text-dim); font-size: 18px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.icon-badge {
  width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad-135); color: #07101a;
  box-shadow: 0 12px 28px -10px rgba(109,94,252,.6), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .25s var(--ease);
}
.icon-badge .ic { width: 28px; height: 28px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card:hover .icon-badge { transform: translateY(-2px) rotate(-4deg); }
.card__title { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card__text { color: var(--text-dim); font-size: 15.5px; margin: 0 0 18px; }
.card__list { display: flex; flex-direction: column; gap: 9px; }
.card__list li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--text-dim); }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 8px;
  border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s; }
.step:hover { transform: translateY(-4px); border-color: #33406099; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-head); font-size: 16px; font-weight: 800; color: #07101a; background: var(--grad-135);
  box-shadow: 0 10px 22px -10px rgba(109,94,252,.6);
}
.step__title { font-size: 19px; margin: 16px 0 8px; }
.step__text { color: var(--text-dim); font-size: 15px; margin: 0; }

/* ---------- Contact ---------- */
.section--cta { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__text { color: var(--text-dim); font-size: 18px; margin: 18px 0 24px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__link {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.02); font-weight: 600; font-size: 15px; color: var(--text);
  transition: border-color .2s, background .2s, transform .2s, color .2s;
}
.contact__link .ic { width: 20px; height: 20px; color: var(--text-dim); transition: color .2s; }
.contact__link:hover { transform: translateY(-2px); border-color: var(--accent); }
.contact__link--wa:hover { border-color: #25d366; } .contact__link--wa:hover .ic { color: #25d366; }
.contact__link--tg:hover { border-color: #29a9eb; } .contact__link--tg:hover .ic { color: #29a9eb; }
.contact__link:hover .ic { color: var(--accent-2); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text-dim); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); background: var(--bg);
  border: 1px solid var(--border); color: var(--text); font-family: var(--font); font-size: 16px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.invalid, .field textarea.invalid { border-color: #f2617a; }

/* consent checkbox */
.check { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 20px; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg);
  display: grid; place-items: center; transition: background .2s, border-color .2s; margin-top: 1px;
}
.check__box .ic { width: 16px; height: 16px; color: #07101a; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s; }
.check input:checked + .check__box { background: var(--grad-135); border-color: transparent; }
.check input:checked + .check__box .ic { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px var(--accent-soft); }
.check.invalid .check__box { border-color: #f2617a; }
.check__text { font-size: 13px; color: var(--text-mute); line-height: 1.5; }
.check__text a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.check__text a:hover { color: var(--accent-2); }

.form__status { margin: 14px 0 0; font-size: 14.5px; font-weight: 600; min-height: 1.2em; }
.form__status.ok { color: var(--accent-2); }
.form__status.err { color: #f2617a; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 32px; }
.footer__tagline { color: var(--text-mute); font-size: 15px; margin: 16px 0 0; max-width: 300px; }
.footer__h { display: block; font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: 14px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--section-y); }
.legal__head { max-width: 760px; margin-bottom: 36px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-weight: 600; font-size: 14px; margin-bottom: 22px; transition: color .2s; }
.legal__back .ic { width: 16px; height: 16px; transform: rotate(180deg); }
.legal__back:hover { color: var(--text); }
.legal__title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.legal__meta { color: var(--text-mute); font-size: 14px; margin-top: 12px; }
.legal__body { max-width: 800px; }
.legal__body h2 { font-size: 22px; margin: 38px 0 12px; }
.legal__body h3 { font-size: 18px; margin: 24px 0 8px; }
.legal__body p, .legal__body li { color: var(--text-dim); font-size: 16px; }
.legal__body p { margin: 0 0 12px; }
.legal__body ul { list-style: none; margin: 0 0 16px; padding: 0; }
.legal__body ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.legal__body ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.legal__body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.legal__note { margin-top: 40px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--border); color: var(--text-dim); font-size: 14px; }
.legal__note b { color: var(--text); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 300px; margin-bottom: 8px; }
  .hero__lead { max-width: none; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header__cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--border); padding: 8px 22px 20px; margin: 0; transform: translateY(-130%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
}
@media (max-width: 560px) {
  .hero__stats { gap: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .glass { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
