/* ============ ПЕРЕМЕННЫЕ ТЕМ ============ */
:root{
  --navy:#1f2a44;
  --text:#4a5568;
  --muted:#8b94a7;
  --gold:#f2a516;
  --gold-grad:linear-gradient(135deg,#ffd766 0%,#f5a623 100%);
  --cream:#fdf3e0;
  --bg:#faf6ee;
  --card:#ffffff;
  --line:#f0e7d8;
  --input-bg:#fbfaf7;
  --icon-bg:linear-gradient(135deg,#fff6e0,#fbe4b6);
  --header-bg:rgba(255,255,255,.88);
  --footer-bg:#1f2a44;
  --shadow:0 18px 40px rgba(31,42,68,.08);
  --shadow-sm:0 8px 20px rgba(31,42,68,.07);
  --glow1:rgba(255,186,73,.30);
  --glow2:rgba(255,224,160,.45);
  --glow3:rgba(255,255,255,.65);
  --r:20px;
}
html[data-theme="dark"]{
  --navy:#f1f4fb;
  --text:#b9c2d6;
  --muted:#7d879c;
  --cream:#232c42;
  --bg:#0e1424;
  --card:#171f33;
  --line:#26314b;
  --input-bg:#101828;
  --icon-bg:linear-gradient(135deg,#2b3350,#1c2438);
  --header-bg:rgba(14,20,36,.85);
  --footer-bg:#0a0f1c;
  --shadow:0 18px 40px rgba(0,0,0,.45);
  --shadow-sm:0 8px 20px rgba(0,0,0,.35);
  --glow1:rgba(242,165,22,.18);
  --glow2:rgba(76,102,255,.16);
  --glow3:rgba(242,165,22,.12);
}

/* ============ БАЗА ============ */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{
  font-family:'Montserrat',Arial,sans-serif;
  color:var(--text);background:var(--bg);
  font-size:16px;line-height:1.5;
  overflow-x:hidden;max-width:100%;
  transition:background .4s,color .4s;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body.no-scroll{overflow:hidden}

/* ---- ЖИВОЙ ФОН: слой 1 ---- */
body::before{
  content:"";position:fixed;inset:-40%;z-index:-2;pointer-events:none;
  background:
    radial-gradient(42% 42% at 22% 28%, var(--glow1), transparent 70%),
    radial-gradient(38% 38% at 78% 62%, var(--glow2), transparent 70%),
    radial-gradient(34% 34% at 55% 12%, var(--glow3), transparent 70%);
  filter:blur(46px);
  animation:bgDrift 24s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes bgDrift{
  0%{transform:translate3d(-4%,-2%,0) scale(1) rotate(0deg)}
  50%{transform:translate3d(4%,3%,0) scale(1.14) rotate(2deg)}
  100%{transform:translate3d(-2%,5%,0) scale(1.06) rotate(-2deg)}
}

/* ---- ЖИВОЙ ФОН: слой 2 ---- */
body::after{
  content:"";position:fixed;inset:-10%;z-index:-1;pointer-events:none;
  background-image:
    radial-gradient(10px 10px at 18% 28%, rgba(242,165,22,.55), transparent 70%),
    radial-gradient(8px 8px at 72% 16%, rgba(255,215,102,.45), transparent 70%),
    radial-gradient(12px 12px at 84% 66%, rgba(242,165,22,.40), transparent 70%),
    radial-gradient(7px 7px at 32% 78%, rgba(255,215,102,.35), transparent 70%);
  filter:blur(1px);
  opacity:.65;
  animation:orbsDrift 28s ease-in-out infinite alternate;
  will-change:transform;
}
html[data-theme="dark"] body::after{opacity:.95}
@keyframes orbsDrift{
  0%{background-position:0 0,0 0,0 0,0 0;transform:translateY(0)}
  100%{background-position:140px -90px,-120px 70px,90px 120px,-140px -70px;transform:translateY(-26px)}
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button{font-family:inherit}
::selection{background:rgba(242,165,22,.35)}
.container{max-width:1160px;margin:0 auto;padding:0 20px;width:100%}
.section{padding:80px 0;position:relative}
.section--soft{background:linear-gradient(180deg,rgba(128,128,128,.06),rgba(128,128,128,0))}
.gold{color:var(--gold)}
.gold--b{font-weight:800}
h1,h2,h3,h4{color:var(--navy);line-height:1.15}
h1{font-size:clamp(32px,7vw,72px);font-weight:800;letter-spacing:-.5px}
h2{font-size:clamp(26px,5.4vw,52px);font-weight:800;letter-spacing:-.5px}
.section__head{margin-bottom:44px}
.section__head p{margin-top:12px;font-size:16px}
.section__sub{margin:16px 0 26px;font-size:16px}
.hide-m{display:none}
@media (min-width:640px){.hide-m{display:block}}

/* золотой шлейф за курсором */
#trail{position:fixed;inset:0;pointer-events:none;z-index:70}

/* ============ КНОПКИ / БЕЙДЖИ / ИКОНКИ / КУБИКИ ============ */
.btn{
  position:relative;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:var(--gold-grad);color:#1f2a44;
  font-weight:700;font-size:15px;
  padding:16px 30px;border-radius:14px;border:0;cursor:pointer;
  box-shadow:0 12px 26px rgba(245,166,35,.35);
  transition:transform .25s,box-shadow .25s,filter .25s;
  max-width:100%;
  -webkit-tap-highlight-color:transparent;
}
.btn svg{width:18px;height:18px;transition:transform .25s;flex:0 0 auto}
.btn::before{
  content:"";position:absolute;top:0;left:-70%;width:45%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent);
  transform:skewX(-20deg);transition:left .55s ease;
}
.btn:hover::before{left:130%}
.btn:hover{transform:translateY(-2px);animation:btnGlow 1.6s ease-in-out infinite}
.btn:hover svg{transform:translateX(4px)}
.btn:active{transform:translateY(0)}
.btn--full{width:100%}
.btn[disabled]{opacity:.6;pointer-events:none}
@keyframes btnGlow{
  0%,100%{box-shadow:0 12px 26px rgba(245,166,35,.35),0 0 0 0 rgba(255,215,102,0)}
  50%{box-shadow:0 12px 30px rgba(245,166,35,.55),0 0 26px 4px rgba(255,215,102,.45)}
}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--cream);color:var(--navy);
  font-size:13px;font-weight:600;
  padding:9px 18px;border-radius:999px;margin-bottom:20px;max-width:100%;
}
.badge svg{width:15px;height:15px;color:var(--gold);flex:0 0 auto}
.icon-sq{
  flex:0 0 auto;width:48px;height:48px;border-radius:14px;
  background:var(--icon-bg);
  display:grid;place-items:center;color:var(--gold);
}
.icon-sq svg{width:22px;height:22px;display:block;margin:auto}
.icon-sq--sm{width:40px;height:40px;border-radius:12px}
.icon-sq--sm svg{width:19px;height:19px}
.badge24{display:inline-block;margin-top:6px;background:var(--gold-grad);color:#fff;font-weight:800;font-size:14px;padding:5px 14px;border-radius:10px;box-shadow:0 6px 14px rgba(245,166,35,.35)}

/* летающие золотые кубики */
.gem{
  position:absolute;width:26px;height:26px;border-radius:6px;
  background:linear-gradient(135deg,#ffe08a,#d98f1f);
  opacity:.85;pointer-events:none;z-index:1;
  animation:gemA 9s ease-in-out infinite alternate,gemGlow 3.2s ease-in-out infinite;
  will-change:transform;
}
.gem--sm{width:16px;height:16px}
.gem--b{animation-name:gemB,gemGlow;animation-duration:11s,4s}
.gem--c{animation-name:gemC,gemGlow;animation-duration:13s,3.6s}
@keyframes gemA{0%{transform:translate(0,0) rotate(45deg)}50%{transform:translate(16px,-24px) rotate(70deg)}100%{transform:translate(-8px,12px) rotate(30deg)}}
@keyframes gemB{0%{transform:translate(0,0) rotate(45deg)}50%{transform:translate(-20px,-14px) rotate(20deg)}100%{transform:translate(12px,-30px) rotate(80deg)}}
@keyframes gemC{0%{transform:translate(0,0) rotate(45deg)}50%{transform:translate(10px,20px) rotate(60deg)}100%{transform:translate(-16px,-12px) rotate(25deg)}}
@keyframes gemGlow{
  0%,100%{box-shadow:0 0 6px 1px rgba(245,166,35,.35)}
  50%{box-shadow:0 0 20px 6px rgba(245,166,35,.65)}
}

/* ============ ШАПКА ============ */
.header{
  position:sticky;top:0;z-index:100;
  background:var(--header-bg);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:box-shadow .3s,background .4s;
}
.header.scrolled{box-shadow:0 6px 24px rgba(0,0,0,.10)}
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:12px;height:76px}
.logo{display:flex;align-items:center;gap:10px;color:var(--gold);font-size:15px;font-weight:600;line-height:1.15;flex:0 0 auto}
.logo svg{width:30px;height:30px;flex:0 0 auto}
.logo span{color:var(--navy);white-space:nowrap}
.logo b{color:var(--gold);font-weight:800;display:block}
.nav{display:flex;gap:26px}
.nav a{font-size:14px;font-weight:600;color:var(--navy);transition:color .2s}
.nav a:hover{color:var(--gold)}
.header__right{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.header__phone{
  display:inline-flex;align-items:center;gap:9px;
  background:var(--card);border-radius:999px;padding:11px 20px;
  font-weight:700;font-size:14px;color:var(--navy);
  box-shadow:var(--shadow-sm);white-space:nowrap;
}
.header__phone svg{width:16px;height:16px;color:var(--gold);flex:0 0 auto}
.theme-btn{
  width:42px;height:42px;border-radius:50%;border:1px solid var(--line);
  background:var(--card);color:var(--gold);
  display:grid;place-items:center;cursor:pointer;flex:0 0 auto;
  box-shadow:var(--shadow-sm);transition:transform .3s,background .4s;
  -webkit-tap-highlight-color:transparent;
}
.theme-btn svg{width:19px;height:19px}
.theme-btn .sun{display:none}
html[data-theme="dark"] .theme-btn .sun{display:block}
html[data-theme="dark"] .theme-btn .moon{display:none}
.theme-btn:hover{transform:rotate(18deg) scale(1.06)}
.burger{display:none;width:42px;height:42px;border:0;background:var(--card);border-radius:12px;box-shadow:var(--shadow-sm);cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;-webkit-tap-highlight-color:transparent}
.burger span{width:20px;height:2.4px;background:var(--navy);border-radius:2px;transition:.3s}
.burger.active span:nth-child(1){transform:translateY(7.4px) rotate(45deg)}
.burger.active span:nth-child(2){opacity:0}
.burger.active span:nth-child(3){transform:translateY(-7.4px) rotate(-45deg)}

/* ============ ГЛАВНЫЙ ЭКРАН ============ */
.hero{padding:56px 0 48px;position:relative;overflow:hidden}
.hero__grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:30px}
.hero__sub{margin:22px 0 30px;font-size:clamp(15px,2vw,18px);font-weight:500;color:var(--navy)}
.hero__cta{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.hero__note{
  position:relative;font-family:'Caveat',cursive;font-weight:700;
  font-size:clamp(18px,2.4vw,24px);color:var(--navy);line-height:1.1;
  padding-left:44px;
}
.hero__note svg{position:absolute;left:0;top:6px;width:38px;color:var(--gold)}
.hero__art{position:relative}
.hero__art::before{
  content:"";position:absolute;inset:12% 6%;
  background:radial-gradient(closest-side,rgba(245,166,35,.30),rgba(245,166,35,0));
  filter:blur(14px);animation:artGlow 5s ease-in-out infinite;
  will-change:opacity;
}
@keyframes artGlow{0%,100%{opacity:.55}50%{opacity:.95}}
.float{animation:floatY 6s ease-in-out infinite;position:relative;will-change:transform}
@keyframes floatY{
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-18px) rotate(-1.4deg)}
}
.hero__art img{width:100%;filter:drop-shadow(0 30px 50px rgba(0,0,0,.22))}

/* ============ ВСПЛЫВАЮЩИЕ ПЛАШКИ ВОКРУГ НОУТБУКА ============ */
.chip{
  position:absolute;z-index:3;pointer-events:none;
  animation:chipCycle 20s ease-in-out infinite backwards;
  will-change:transform,opacity,filter;
}
.chip__in{
  display:flex;align-items:center;gap:8px;
  background:var(--card);border:1px solid var(--line);
  border-radius:999px;padding:9px 16px 9px 12px;
  box-shadow:var(--shadow-sm);
  font-size:12.5px;font-weight:600;color:var(--navy);
  white-space:nowrap;
  animation:
    chipFloat 5.5s ease-in-out infinite,
    chipBurn  20s  ease-in-out infinite backwards;
  transition:background .4s;
  will-change:transform,background,color,border-color,box-shadow;
}
.chip__in svg{width:16px;height:16px;color:var(--gold);flex:0 0 auto}
.chip--1{top:2%;left:-4%}
.chip--2{top:14%;right:-6%}
.chip--3{bottom:24%;left:-8%}
.chip--4{bottom:4%;right:-4%}
.chip--1{animation-delay:0s}     .chip--1 .chip__in{animation-delay:0s,0s}
.chip--2{animation-delay:1.6s}   .chip--2 .chip__in{animation-delay:1.6s,1.6s}
.chip--3{animation-delay:3.2s}   .chip--3 .chip__in{animation-delay:3.2s,3.2s}
.chip--4{animation-delay:4.8s}   .chip--4 .chip__in{animation-delay:4.8s,4.8s}

@keyframes chipCycle{
  0%,100%{opacity:0;transform:translateY(18px) scale(.65);filter:blur(4px)}
  5%{opacity:1;transform:translateY(-5px) scale(1.05);filter:blur(0)}
  8%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
  60%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
  76%{opacity:0;transform:translateY(-26px) scale(1.15);filter:blur(8px)}
  77%,99%{opacity:0;transform:translateY(18px) scale(.65);filter:blur(4px)}
}
@keyframes chipBurn{
  0%,58%{
    background:var(--card);color:var(--navy);
    border-color:var(--line);box-shadow:var(--shadow-sm);
  }
  66%{
    background:linear-gradient(135deg,#ffd766,#f5a623);color:#fff;
    border-color:transparent;box-shadow:0 0 22px rgba(245,166,35,.75);
  }
  76%,100%{
    background:linear-gradient(135deg,#ffd766,#f5a623);color:#fff;
    border-color:transparent;box-shadow:0 0 30px rgba(245,166,35,.9);
  }
}
@keyframes chipFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-9px)}
}

/* ============ ПОЛОСЫ ПРЕИМУЩЕСТВ ============ */
.features-strip{
  margin-top:44px;background:var(--card);border-radius:var(--r);
  box-shadow:var(--shadow);padding:18px 22px;
  display:grid;grid-template-columns:repeat(4,1fr);
  position:relative;z-index:2;transition:background .4s;
}
.f-item{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  gap:10px;padding:16px 10px;min-width:0;
}
.f-item + .f-item{border-left:1px solid var(--line)}
.f-item .icon-sq{width:48px;height:48px;border-radius:14px}
.f-item .icon-sq svg{width:24px;height:24px}
.f-item b{
  display:block;font-size:14px;font-weight:700;color:var(--navy);
  line-height:1.25;min-height:2.5em;
}
.f-item span{
  display:block;font-size:12px;color:var(--muted);
  line-height:1.2;min-height:2.4em;
}

/* ============ ШАГИ + ФОРМА ============ */
.steps__layout{display:grid;grid-template-columns:1fr 350px;gap:40px;align-items:start}
.steps__list{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;position:relative}
.steps__list::before{
  content:'';position:absolute;top:78px;left:8%;right:8%;
  border-top:3px dashed rgba(242,165,22,.35);z-index:0;
}
.step-card{position:relative;z-index:1;min-width:0}
.step__img{height:150px;display:flex;align-items:flex-end;justify-content:center}
.step__img img{max-height:150px;object-fit:contain}
.step__body{background:var(--card);border-radius:16px;box-shadow:var(--shadow-sm);padding:18px;margin-top:14px;transition:background .4s}
.step__title{display:flex;align-items:flex-start;gap:10px}
.step__num{
  flex:0 0 auto;width:30px;height:30px;border-radius:50%;
  background:var(--gold-grad);color:#fff;font-weight:800;font-size:15px;
  display:grid;place-items:center;box-shadow:0 6px 14px rgba(245,166,35,.4);
}
.step__title h3{font-size:15px;font-weight:700}
.step__body p{font-size:12.5px;margin-top:8px}
.form-card{
  background:var(--card);border-radius:24px;box-shadow:var(--shadow);
  padding:30px 26px;position:sticky;top:96px;transition:background .4s;
  min-width:0;
}
.form-card h3{font-size:19px;font-weight:800;margin-bottom:20px}
.field{position:relative;margin-bottom:14px}
.field svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted);pointer-events:none}
.field input{
  width:100%;padding:15px 14px 15px 44px;
  border:1.5px solid var(--line);border-radius:12px;
  background:var(--input-bg);font-family:inherit;font-size:14px;color:var(--navy);
  transition:border-color .2s,box-shadow .2s,background .4s;
  -webkit-appearance:none;
}
.field input::placeholder{color:var(--muted)}
.field input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 4px rgba(242,165,22,.14)}
.field input.err{border-color:#e05b5b;box-shadow:0 0 0 4px rgba(224,91,91,.12)}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.form__note{font-size:11px;color:var(--muted);margin-top:12px;text-align:center}
.form-success{text-align:center;padding:14px 4px}
.form-success svg{width:56px;height:56px;color:var(--gold);margin:0 auto 14px}
.form-success h4{font-size:19px;margin-bottom:10px}
.form-success p{font-size:13.5px}

/* ============ ПОЧЕМУ МЫ ============ */
.why__grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.why__items{display:grid;grid-template-columns:1fr 1fr;gap:22px 26px;margin:28px 0 34px}
.why-item{display:flex;gap:14px;min-width:0;align-items:center}
.why-item b{display:block;font-size:15px;margin-bottom:5px;color:var(--navy)}
.why-item span{font-size:12.5px}
.why__art{position:relative}
.why__art::before{
  content:'';position:absolute;inset:10% 8%;
  background:radial-gradient(closest-side,rgba(245,166,35,.28),rgba(245,166,35,0));
  filter:blur(10px);
}
.why__art img{position:relative;width:100%;max-width:520px;margin:0 auto}

/* ============ О НАС ============ */
.about__lead{font-size:clamp(17px,2.4vw,22px);font-weight:700;color:var(--navy);margin:14px 0 34px}
.about__grid{display:grid;grid-template-columns:1.02fr .98fr;gap:40px;margin-bottom:40px}
.about__cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-content:start}
.about-card{background:var(--card);border-radius:16px;box-shadow:var(--shadow-sm);padding:18px;display:flex;gap:12px;align-items:center;transition:background .4s;min-width:0}
.about-card b{display:block;font-size:14px;margin-bottom:4px;color:var(--navy)}
.about-card span{font-size:12px}
.about__art{display:flex;flex-direction:column;gap:16px;min-width:0}
.about__art-row{display:grid;grid-template-columns:44% 1fr;gap:16px;align-items:center}
.about__side{display:flex;flex-direction:column;gap:12px;min-width:0}
.about__money-card{background:var(--card);border-radius:16px;box-shadow:var(--shadow-sm);padding:16px 18px;font-size:13.5px;font-weight:600;color:var(--navy)}
.about__small-card{background:var(--card);border-radius:16px;box-shadow:var(--shadow-sm);padding:12px 14px;display:flex;gap:12px;align-items:center;font-size:12px;font-weight:600;color:var(--navy)}

/* ============ ОТЗЫВЫ ============ */
.reviews__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.review-card{
  background:var(--card);border-radius:var(--r);box-shadow:var(--shadow-sm);
  padding:26px;display:flex;flex-direction:column;gap:16px;min-width:0;
  transition:transform .3s,box-shadow .3s,background .4s;
}
.review-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.stars{display:flex;gap:4px;color:var(--gold)}
.stars svg{width:17px;height:17px}
.review-card p{font-size:13.5px;line-height:1.65;flex:1}
.review__footer{display:flex;align-items:center;gap:12px}
.review__footer img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:var(--cream);flex:0 0 auto}
.review__footer b{display:block;font-size:14px;color:var(--navy)}
.review__footer span{font-size:11.5px;color:var(--muted)}

/* ============ FAQ ============ */
.faq__grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:start}
.faq__left p{margin:14px 0 26px}
.faq__left img{width:78%;max-width:330px;margin:0 auto}
.acc__item{background:var(--card);border-radius:16px;box-shadow:var(--shadow-sm);margin-bottom:12px;overflow:hidden;transition:background .4s}
.acc__head{width:100%;display:flex;align-items:center;gap:14px;padding:15px 18px;background:none;border:0;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent}
.acc__head > span:nth-child(2){flex:1;font-size:14.5px;font-weight:700;color:var(--navy)}
.acc__head .chev{width:18px;height:18px;color:var(--gold);transition:transform .3s;flex:0 0 auto}
.acc__item.open .chev{transform:rotate(180deg)}
.acc__body{max-height:0;overflow:hidden;transition:max-height .35s ease}
.acc__body p{padding:0 20px 18px 72px;font-size:13.5px}

/* ============ ПОДВАЛ ============ */
.footer{background:var(--footer-bg);color:#c9d2e3;padding:44px 0 26px;margin-top:40px;transition:background .4s}
.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.logo--light{color:var(--gold)}
.logo--light span{color:#fff}
.footer__phone{font-size:20px;font-weight:800;color:var(--gold);white-space:nowrap}
.footer__info{
  margin-top:26px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  font-size:12.5px;color:#aeb9cf;
}
.footer__dt{font-weight:600}
.footer__bottom{
  margin-top:14px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12);
  display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
  font-size:12px;color:#8f9ab0;
}
.footer__legal{display:flex;gap:18px;flex-wrap:wrap;max-width:100%}
.footer__link{
  background:none;border:0;cursor:pointer;font-size:12px;color:#c9d2e3;
  border-bottom:1px dashed rgba(201,210,227,.4);padding:0;transition:color .2s;
  max-width:100%;-webkit-tap-highlight-color:transparent;
}
.footer__link:hover{color:var(--gold)}

/* ============ МОДАЛКИ ============ */
.modal{
  position:fixed;inset:0;z-index:1000;
  display:flex;align-items:center;justify-content:center;padding:20px;
  visibility:hidden;opacity:0;transition:opacity .25s,visibility .25s;
}
.modal.open{visibility:visible;opacity:1}
.modal__overlay{position:absolute;inset:0;background:rgba(8,12,22,.6);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.modal__box{
  position:relative;background:var(--card);border-radius:24px;box-shadow:var(--shadow);
  padding:34px 30px;width:min(480px,100%);max-height:88vh;overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  transform:scale(.92) translateY(14px);transition:transform .3s;
}
.modal.open .modal__box{transform:none}
.modal__box--text{width:min(760px,100%)}
.modal__close{
  position:absolute;top:14px;right:14px;width:38px;height:38px;border-radius:50%;
  border:0;background:var(--cream);color:var(--navy);font-size:20px;cursor:pointer;line-height:1;
  transition:transform .25s;flex:0 0 auto;-webkit-tap-highlight-color:transparent;
}
.modal__close:hover{transform:rotate(90deg)}
.modal__box h3{font-size:22px;margin-bottom:6px;padding-right:34px}
.modal__sub{font-size:13px;color:var(--muted);margin-bottom:18px}
.prose{margin-top:12px}
.prose h4{margin:16px 0 6px;font-size:14px}
.prose p{font-size:13px;margin-bottom:8px}

/* ============ COOKIE ============ */
.cookie{
  position:fixed;left:50%;bottom:22px;z-index:950;
  transform:translate(-50%,160%);transition:transform .55s ease;
  width:min(640px,calc(100% - 32px));
}
.cookie.show{transform:translate(-50%,0)}
.cookie__card{
  background:var(--card);border:1px solid var(--line);border-radius:18px;
  box-shadow:var(--shadow);padding:16px 20px;
  display:flex;align-items:center;gap:16px;
}
.cookie__card p{font-size:12.5px;flex:1;min-width:0}
.cookie__link{background:none;border:0;padding:0;cursor:pointer;color:var(--gold);font-size:12.5px;border-bottom:1px dashed rgba(242,165,22,.5);-webkit-tap-highlight-color:transparent}
.cookie .btn{padding:12px 22px;font-size:13px;flex:0 0 auto;width:auto}

/* ============ КНОПКА НАВЕРХ ============ */
#toTop{
  position:fixed;right:22px;bottom:22px;z-index:940;
  width:52px;height:52px;border-radius:50%;border:0;cursor:pointer;
  background:var(--gold-grad);color:#1f2a44;display:grid;place-items:center;
  box-shadow:0 10px 26px rgba(245,166,35,.4);
  opacity:0;visibility:hidden;transform:translateY(16px);transition:.35s;
  -webkit-tap-highlight-color:transparent;
}
#toTop.show{opacity:1;visibility:visible;transform:none}
#toTop:hover{animation:btnGlow 1.6s ease-in-out infinite}
#toTop svg{width:20px;height:20px}

/* ============ ПОЯВЛЕНИЕ БЛОКОВ ============ */
.rv{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.rv.on{opacity:1;transform:none}
.is-placeholder{opacity:.95}

/* ============ АДАПТИВ ============ */
@media (max-width:1100px){
  .steps__layout{grid-template-columns:1fr}
  .form-card{position:static;max-width:520px;margin:0 auto;width:100%}
  .why__grid,.about__grid,.faq__grid{grid-template-columns:1fr;gap:36px}
  .why__art{order:-1}
  .reviews__grid{grid-template-columns:repeat(2,1fr)}
  .chip--1{left:0}
  .chip--2{right:0}
  .chip--3{left:0}
  .chip--4{right:0}
}
@media (max-width:992px){
  .nav{
    position:fixed;top:76px;right:0;left:0;
    background:var(--card);flex-direction:column;gap:0;
    padding:12px 20px 20px;box-shadow:0 20px 30px rgba(0,0,0,.18);
    transform:translateY(-130%);transition:transform .35s;z-index:99;
  }
  .nav.open{transform:none}
  .nav a{padding:13px 4px;border-bottom:1px solid var(--line);font-size:15px}
  .nav a:last-child{border-bottom:0}
  .burger{display:flex}
  .hero__grid{grid-template-columns:1fr}
  .hero__art{max-width:560px;margin:0 auto}
}
@media (max-width:860px){
  .features-strip{grid-template-columns:1fr 1fr;padding:12px 14px}
  .f-item + .f-item{border-left:0}
  .f-item:nth-child(even){border-left:1px solid var(--line)}
  .f-item:nth-child(n+3){border-top:1px solid var(--line)}
  .steps__list{grid-template-columns:1fr;gap:26px}
  .steps__list::before{display:none}
  .step-card{display:flex;gap:16px;align-items:center}
  .step__img{height:auto;flex:0 0 110px}
  .step__img img{max-height:110px}
  .step__body{margin-top:0;flex:1}
}
@media (max-width:760px){
  .section{padding:60px 0}
  .reviews__grid{grid-template-columns:1fr}
  .about__cards{grid-template-columns:1fr 1fr}
  .why__items{grid-template-columns:1fr}
  .footer__inner{flex-direction:column;align-items:center;text-align:center;gap:16px}
  .footer__phone{font-size:17px}
}

/* ============================================================
   🚀 ОПТИМИЗАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (≤768px)
   Отключаем тяжёлые анимации, упрощаем эффекты
   ============================================================ */
@media (max-width:768px){
  /* Отключаем анимацию фона — самая тяжёлая операция */
  body::before, body::after{
    animation:none !important;
    filter:none !important;
  }
  body::before{
    opacity:.4;
  }
  
  /* Убираем backdrop-filter на шапке (очень тяжёлый на мобильных) */
  .header{
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    background:var(--header-bg);
  }
  
  /* Упрощаем анимацию плашек: только появление, без "сгорания" */
  .chip{
    animation:chipPopSimple .6s ease-out backwards !important;
  }
  .chip__in{
    animation:none !important;
  }
  .chip--1{animation-delay:.3s !important}
  .chip--2{animation-delay:.6s !important}
  .chip--3{animation-delay:.9s !important}
  .chip--4{animation-delay:1.2s !important}
  
  @keyframes chipPopSimple{
    0%{opacity:0;transform:translateY(12px) scale(.8)}
    100%{opacity:1;transform:translateY(0) scale(1)}
  }
  
  /* Уменьшаем анимацию кубиков */
  .gem{
    animation-duration:15s,5s !important;
    opacity:.5;
  }
  .gem--sm{display:none} /* скрываем маленькие кубики */
  
  /* Упрощаем парение ноутбука */
  .float{
    animation-duration:10s;
  }
  .hero__art::before{
    animation:none !important;
    opacity:.6;
  }
  
  /* Уменьшаем тени */
  .hero__art img{
    filter:drop-shadow(0 15px 25px rgba(0,0,0,.15));
  }
  
  /* Убираем hover-эффекты на тач-устройствах */
  .review-card:hover{
    transform:none;
  }
  .btn:hover{
    animation:none;
  }
}

@media (max-width:560px){
  .container{padding:0 16px}
  .hero__content{text-align:center}
  .hero__cta{justify-content:center}
  .hero__note{padding-left:0;text-align:center}
  .hero__note svg{display:none}
  .head-block{text-align:center}
  .section__head{text-align:center}
  .faq__left{text-align:center}
  .why__grid .rv{text-align:center}
  .why-item{text-align:left}
  .chip__in{font-size:11px;padding:7px 12px 7px 9px;gap:6px}
  .chip__in svg{width:14px;height:14px}
  .chip--1{top:0;left:0}
  .chip--2{top:10%;right:0}
  .chip--3{bottom:26%;left:0}
  .chip--4{bottom:2%;right:0}
  .f-item{gap:8px;padding:14px 8px}
  .f-item .icon-sq{width:44px;height:44px}
  .f-item .icon-sq svg{width:22px;height:22px}
  .f-item b{font-size:13px}
  .f-item span{font-size:11px}
  .header__phone{padding:9px 14px;font-size:12px;gap:6px}
  .hero{padding-top:36px}
  .form-card{padding:24px 18px}
  .step-card{flex-direction:column;align-items:flex-start}
  .step__img{flex-basis:auto;width:100%}
  .step__img img{max-height:150px;margin:0 auto}
  .about__cards{grid-template-columns:1fr}
  .about__art-row{grid-template-columns:1fr}
  .about__phone{max-width:230px;margin:0 auto}
  .acc__body p{padding-left:20px}
  .footer__info{flex-direction:column;align-items:center;text-align:center;gap:6px}
  .footer__bottom{flex-direction:column;align-items:center;text-align:center;gap:10px}
  .footer__legal{justify-content:center;gap:12px}
  .footer__link{font-size:11.5px;text-align:center}
  .cookie{bottom:84px}
  .cookie__card{flex-direction:column;align-items:stretch;text-align:center}
  .cookie .btn{width:100%}
  .modal{padding:14px}
  .modal__box{padding:26px 18px;border-radius:18px;max-height:92vh}
}
@media (max-width:380px){
  body{font-size:15px}
  .container{padding:0 14px}
  .btn{padding:14px 22px;font-size:14px;width:100%}
  .hero__cta{gap:14px}
  .header__inner{height:64px;gap:8px}
  .nav{top:64px}
  .logo{font-size:12px;gap:7px}
  .logo svg{width:24px;height:24px}
  .theme-btn{width:36px;height:36px}
  .burger{width:38px;height:38px}
  .header__phone{padding:8px 10px;font-size:11px;gap:5px}
  .header__phone svg{width:13px;height:13px}
  .chip__in{font-size:10px;padding:6px 10px 6px 8px;gap:5px}
  .chip__in svg{width:12px;height:12px}
  .f-item{padding:12px 6px}
  .f-item .icon-sq{width:40px;height:40px;border-radius:12px}
  .f-item .icon-sq svg{width:20px;height:20px}
  .icon-sq{width:40px;height:40px;border-radius:12px}
  .icon-sq svg{width:19px;height:19px}
  .icon-sq--sm{width:36px;height:36px}
  .icon-sq--sm svg{width:17px;height:17px}
  .footer__phone{font-size:15px}
  #toTop{right:12px;bottom:12px;width:46px;height:46px}
  .cookie{bottom:72px}
  .modal{padding:10px}
  .modal__box{padding:24px 14px 18px;border-radius:16px}
  .modal__box h3{font-size:17px;padding-right:30px}
  .modal__sub{font-size:12px}
  .modal__close{top:10px;right:10px;width:34px;height:34px;font-size:18px}
  .field input{padding:13px 12px 13px 40px;font-size:13px}
  .field svg{left:12px;width:16px}
  .prose h4{font-size:13.5px}
  .prose p{font-size:12.5px}
  .form__note{font-size:10px}
}
@media (max-width:349px){
  .header__phone .txt{display:none}
  .header__phone{width:38px;height:38px;padding:0;justify-content:center;border-radius:50%}
  .header__phone svg{width:15px;height:15px}
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
  #trail{display:none}
  body::before,body::after{animation:none}
  .chip{opacity:1}
  .gem{animation:none!important}
  .float{animation:none!important}
}