/* ==========================================================================
   Digital College — фронтенд лендинга
   Метрики взяты 1:1 с исходной вёрстки (сетка 1200px, контент 996px)
   ========================================================================== */

:root{
  --purple:#8347e4;
  --purple-dark:#7f44e0;
  --lime:#99d40e;
  --lime-soft:#98ce1c;
  --ink:#444444;
  --page:#faf9ff;

  --grid:1200px;      /* ширина сетки */
  --inset:102px;      /* отступ контента от края сетки */
}

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

html{scroll-behavior:smooth}

body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  font-size:16px;
  line-height:1.4;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}

/* Заметная рамка при навигации с клавиатуры (мышью не показывается) */
:focus-visible{
  outline:3px solid var(--lime);
  outline-offset:3px;
  border-radius:4px;
}
.hero__card :focus-visible,
.test__card :focus-visible,
.footer :focus-visible{outline-color:#fff}

/* Отступ при переходе по якорю, чтобы контент не уезжал под фиксированную шапку */
section[id]{scroll-margin-top:70px}

.grid{
  position:relative;
  width:var(--grid);
  margin:0 auto;
}

.h2{
  font-size:64px;
  line-height:1.13;
  font-weight:700;
}
.h2--purple{color:var(--purple)}

/* ---------------------------------------------------------------- Кнопки */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:23px;
  font-weight:600;
  line-height:1.1;
  border-radius:24px;
  padding:0 24px;
  transition:transform .15s ease, filter .15s ease;
}
.btn:hover{transform:translateY(-2px);filter:brightness(1.05)}
.btn:active{transform:translateY(0)}
.btn--lime{background:var(--lime);color:#fff}
.btn--white{background:#fff;color:var(--purple)}
.btn--purple{background:var(--purple);color:#fff}
.btn--big{font-size:32px;border-radius:21px;height:77px;width:313px}
.btn--wide{font-size:29px;border-radius:20px;height:101px;width:463px}

/* ================================================== Компактная шапка ==== */
.topbar{
  position:fixed;
  inset:0 0 auto 0;
  height:50px;
  background:rgba(0,0,0,.7);
  backdrop-filter:blur(6px);
  z-index:990;
  transform:translateY(-100%);
  transition:transform .25s ease;
}
.topbar.is-visible{transform:none}
.topbar__nav{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:34px;
}
.topbar__nav a{
  color:#fff;
  font-family:Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:1.15;
  text-transform:uppercase;
  opacity:.9;
}
.topbar__nav a:hover{opacity:1}

/* ============================================================ Первый экран */
.hero{background:var(--page);padding-bottom:55px}
.hero .grid{padding-top:0}

.navbar{
  position:relative;
  z-index:11;
  display:flex;
  align-items:center;
  gap:46px;
  width:1199px;
  height:45px;
  margin-left:-17px;
  padding:0 62px 0 42px;
  background:#fff;
  border-radius:21px;
}
.navbar__logo{
  font-size:28px;
  line-height:1.23;
  font-weight:700;
  color:var(--purple-dark);
  margin-right:auto;
}
.navbar__links{display:flex;gap:46px}
.navbar__links a{
  font-size:18px;
  line-height:1.78;
  color:#5b5b5b;
  white-space:nowrap;
}
.navbar__links a:hover{color:var(--purple)}
.navbar__burger{display:none}

.hero__card{
  position:relative;
  margin:3px 0 0 -74px;
  width:1359px;
  height:627px;
  background:var(--purple);
  border-radius:40px;
}
.hero__wave{
  position:absolute;
  left:0;bottom:0;
  width:1359px;
  border-radius:0 0 40px 40px;
  pointer-events:none;
}
.hero__gamepad{
  position:absolute;
  left:766px;top:-96px;
  width:672px;
  height:auto;
  pointer-events:none;
}
.hero__pixels{
  position:absolute;
  left:999px;top:-86px;
  width:180px;height:365px;
  pointer-events:none;
}
.hero__body{
  position:relative;
  z-index:2;
  padding:19px 0 0 168px;
  max-width:760px;
}
.hero__title{
  font-size:72px;
  line-height:1.12;
  font-weight:700;
  color:#fff;
  width:586px;
}
.hero__text{
  width:486px;
  margin-top:32px;
  font-size:22px;
  line-height:1.6;
  color:#fff;
}
.hero__text mark{
  background:var(--lime);
  color:#fff;
  border-radius:10px;
  padding:2px 6px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
.hero__actions{
  display:flex;
  align-items:center;
  gap:44px;
  margin:60px 0 0 -14px;
}
.hero__actions .btn--lime{width:282px;height:89px}
.hero__actions .btn--white{width:227px;height:89px}

/* ============================================================ Направления */
.directions{padding:28px 0 51px}
.directions .grid{padding:0 var(--inset)}
.directions .h2{margin-bottom:57px}

.directions__deco-a{position:absolute;left:284px;top:195px;width:177px;height:87px;pointer-events:none}
.directions__deco-b{position:absolute;left:695px;top:463px;width:102px;height:171px;pointer-events:none}
.directions__pixels{position:absolute;left:1037px;top:395px;width:122px;height:248px;pointer-events:none}

.dircols{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:345fr 346fr 345fr;
  gap:38px;
  align-items:start;
}
.dircol{display:flex;flex-direction:column}

.dircard{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:12px;
  height:var(--h);
  margin-top:var(--mt,0);
  padding:var(--pt,27px) 20px 0;
  background:var(--bg);
  border-radius:33px;
  color:#fff;
  overflow:hidden;
}
.dircol .dircard:nth-child(1){z-index:1}
.dircol .dircard:nth-child(2){z-index:2;box-shadow:0 -3px 11px rgba(16,3,36,.1)}
.dircol .dircard:nth-child(3){z-index:3;box-shadow:0 -3px 11px rgba(16,3,36,.1)}
.dircol .dircard:nth-child(4){z-index:4;box-shadow:0 -3px 11px rgba(16,3,36,.1)}
.dircard img{width:31px;height:auto;flex:none;margin-top:1px}
.dircard h3{font-size:25px;line-height:1.08;font-weight:600}
.dircard p{margin-top:3px;font-size:14px;line-height:1.2;font-weight:400}

/* ==================================================== Как проходит обучение */
.roadmap{padding:72px 0 0}
.roadmap .grid{padding:0 var(--inset)}
.roadmap .h2{margin-bottom:56px}

/* Схема-«артборд»: координаты масштабируются вместе с шириной блока (--k).
   Контейнером служит .roadmap__stage, чтобы единицы cqw одинаково работали
   и в фиолетовой панели, и в лаймовой врезке. */
.roadmap__stage{
  container-type:inline-size;
  position:relative;
  --k:calc(100cqw / 996);
}

.roadmap__blob{
  position:absolute;
  left:calc(-68 * var(--k));
  top:calc(188 * var(--k));
  width:calc(241 * var(--k));
  height:calc(241 * var(--k));
  z-index:3;
  pointer-events:none;
}

.roadmap__panel{
  position:relative;
  width:100%;
  aspect-ratio:996 / 503;
  background:var(--purple);
  border-radius:30px;
}

.roadmap__illustration{
  position:absolute;
  left:calc(70 * var(--k));
  top:calc(50 * var(--k));
  width:calc(565 * var(--k));
  height:calc(307 * var(--k));
  pointer-events:none;
}
.roadmap__step{position:absolute;color:#fff}
.roadmap__step h3{font-size:calc(36 * var(--k));line-height:1.08;font-weight:600}
.roadmap__step p{margin-top:calc(16 * var(--k));font-size:calc(19 * var(--k));line-height:1.2;font-weight:400}
.roadmap__dot{
  position:absolute;
  width:calc(66 * var(--k));
  height:calc(66 * var(--k));
  background:#fff;
  border-radius:50%;
}
.roadmap__step--1{left:calc(142 * var(--k));top:calc(100 * var(--k));width:calc(180 * var(--k))}
.roadmap__step--1 .roadmap__dot{left:calc(-72 * var(--k));top:calc(-12 * var(--k))}
.roadmap__step--3{left:calc(519 * var(--k));top:calc(166 * var(--k));width:calc(190 * var(--k))}
.roadmap__step--3 .roadmap__dot{left:calc(-74 * var(--k));top:calc(-20 * var(--k))}
.roadmap__step--4{left:calc(223 * var(--k));top:calc(314 * var(--k));width:calc(315 * var(--k))}
.roadmap__step--4 .roadmap__dot{left:calc(-71 * var(--k));top:calc(-12 * var(--k))}

.roadmap__total{
  position:absolute;
  left:calc(714 * var(--k));top:0;
  width:calc(282 * var(--k));
  height:calc(503 * var(--k));
  background:var(--lime-soft);
  border-radius:30px;
  color:#fff;
}
.roadmap__badge{
  position:absolute;
  left:calc(-74 * var(--k));
  top:calc(31 * var(--k));
  width:calc(190 * var(--k));
  height:calc(73 * var(--k));
  display:flex;align-items:center;justify-content:center;
  background:#fff;
  border-radius:calc(17 * var(--k));
  color:var(--purple);
  font-size:calc(38 * var(--k));
  font-weight:700;
}
.roadmap__years{
  position:absolute;
  left:calc(47 * var(--k));
  top:calc(144 * var(--k));
  font-size:calc(47 * var(--k));
  line-height:1.1;
  font-weight:700;
}
.roadmap__arrow{
  position:absolute;
  left:calc(51 * var(--k));
  top:calc(225 * var(--k));
  width:calc(44 * var(--k));
  height:calc(45 * var(--k));
}
.roadmap__result{
  position:absolute;
  left:calc(47 * var(--k));
  top:calc(290 * var(--k));
  width:calc(196 * var(--k));
  font-size:calc(22 * var(--k));
  line-height:1.25;
  font-weight:700;
}

/* ============================================================== Сравнение */
.compare{padding:71px 0 0}
.compare .grid{padding:0 var(--inset)}
.compare__title{font-size:72px;line-height:1;font-weight:700}
.compare__subtitle{margin-top:19px;font-size:40px;line-height:1.26;font-weight:700}
.compare__title span,.compare__subtitle span{color:#8447e5}

.ctable{
  position:relative;
  margin-top:75px;
  display:grid;
  grid-template-columns:345fr 313fr 319fr;
  column-gap:9px;
  row-gap:7px;
}
.ctable__cell{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:133px;
  padding:10px;
  border-radius:16px;
  text-align:center;
  font-size:26px;
  line-height:1.09;
  font-weight:700;
  color:var(--ink);
}
.ctable__cell--grey{background:#f1f1f1}
.ctable__cell--bad{background:#ffecec}
.ctable__cell--good{background:#eef8d7}
.ctable__cell--art{position:relative;background:none;overflow:visible}
.ctable__cell--art img{
  position:absolute;
  left:145px;top:10px;
  width:188px;height:167px;
  max-width:none;
}

/* =================================================================== Тест */
.test{padding:96px 0 0}
.test .grid{padding:0 var(--inset)}
.test__pixels{position:absolute;left:40px;top:199px;width:141px;height:286px;z-index:2;pointer-events:none}

/* В оригинале картинка-подложка (1200px, без радиуса) случайно перекрывала
   скруглённый прямоугольник под ней. Здесь карточка приведена к общему виду
   страницы: ширина по контенту, радиус 30px. */
.test__card{
  position:relative;
  min-height:588px;
  padding:87px 65px 0;
  /* Пропорции подложки почти совпадают с карточкой, поэтому растягиваем её
     на несколько процентов: собственные скруглённые углы картинки уходят
     за границу, и радиус карточки остаётся чистым */
  background:var(--purple) url('../img/test-bg.png') center / 106% 108% no-repeat;
  border-radius:30px;
  color:#fff;
  overflow:hidden;
}
.test__title{
  width:568px;
  font-size:64px;
  line-height:1.02;
  font-weight:700;
  text-align:center;
}
.test__text{
  width:423px;
  margin-top:42px;
  font-size:24px;
  line-height:1.35;
  font-weight:400;
}
.test__card .btn{margin-top:41px}
.test__text--last{width:525px;margin-top:42px}

/* ==================================================== Почему выбирают нас */
.whyus{padding:84px 0 0}
.whyus .grid{padding:0 var(--inset)}
.whyus .h2{font-size:72px;line-height:1;margin-bottom:56px}

.whyus__top{display:grid;grid-template-columns:486fr 488fr;gap:22px}
.whyus__big{
  position:relative;   /* база для 3D-фигуры внутри карточки */
  display:flex;
  flex-direction:column;
  background:var(--lime-soft);
  border-radius:27px;
  color:#fff;
}
.whyus__big h3{font-size:34px;line-height:1.15;font-weight:600}
.whyus__big p{font-size:22px;line-height:1.36;font-weight:400}

.whyus__big--apple{min-height:314px;padding:41px 26px 0}
.whyus__big--apple h3{max-width:437px}
.whyus__big--apple p{margin-top:16px;max-width:450px}

/* Заголовок кампуса Samsung в оригинале сдвинут вправо, чтобы не уходить
   под 3D-фигуру, а подпись прижата к низу карточки. */
.whyus__big--samsung{height:310px;align-self:end;padding:33px 60px 43px}
.whyus__big--samsung h3{max-width:422px}
.whyus__big--samsung p{margin-top:auto;max-width:360px}
.whyus__blob{
  position:absolute;
  right:-118px;top:-10px;
  width:269px;height:269px;
  max-width:none;
  pointer-events:none;
}

.whyus__row{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.whyus__small{
  display:flex;
  align-items:center;
  min-height:180px;
  padding:27px;
  background:var(--purple);
  border-radius:27px;
  color:#fff;
  font-size:22px;
  line-height:1.36;
}

.whyus__bar{
  position:relative;
  margin-top:10px;
  min-height:110px;
  display:flex;
  align-items:center;
  padding:0 27px;
  background:var(--purple);
  border-radius:27px;
  color:#fff;
  font-size:22px;
  line-height:1.36;
  overflow:hidden;
}
.whyus__bar img{position:absolute;right:0;top:32px;width:446px;height:45px}

/* ==================================================================== CTA */
.cta{padding:78px 0 0}
.cta .grid{
  padding:0 var(--inset);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:40px;
}
.cta__left{padding-top:0;max-width:520px}
.cta__title{font-size:59px;line-height:1.1;font-weight:700;color:var(--purple)}
.cta__text{margin-top:31px;font-size:23px;line-height:1.3;color:#2e2e2e}
.cta__right{display:flex;flex-direction:column;gap:13px;padding-top:17px}
.cta__right .btn--lime{color:var(--page)}

/* ================================================================== Футер */
.footer{
  margin-top:140px;
  background:var(--purple);
  color:#fff;
  overflow:hidden;
}
.footer .grid{height:740px;padding:0 var(--inset)}

.footer__blob{position:absolute;max-width:none;pointer-events:none;z-index:1}
.footer__blob--violet{left:-102px;top:339px;width:446px;height:446px}
.footer__blob--extra{left:210px;top:302px;width:496px;height:496px}
.footer__blob--blue{left:318px;top:238px;width:549px;height:549px}
.footer__blob--lime{left:634px;top:238px;width:501px;height:502px}
.footer__deco{position:absolute;z-index:2;pointer-events:none}
.footer__deco--a{left:210px;top:393px;width:281px;height:199px}
.footer__deco--b{left:726px;top:370px;width:279px;height:199px}

.footer__logo{
  position:relative;z-index:3;
  padding-top:49px;
  font-size:96px;
  line-height:1.19;
  font-weight:700;
}
.footer__socials{
  position:absolute;z-index:3;
  left:var(--inset);top:211px;
  display:flex;gap:12px;
}
.footer__socials img{width:86px;height:86px;transition:transform .15s ease}
.footer__socials a:hover img{transform:scale(1.06)}

.footer__phone{
  position:absolute;z-index:3;
  left:298px;top:227px;
  font-size:35px;
  line-height:1.5;
  font-weight:700;
}
.footer__link{
  position:absolute;z-index:3;
  padding:0;
  font-size:21px;
  line-height:1.5;
  text-align:left;
  border-bottom:1px solid transparent;
}
.footer__link:hover{border-bottom-color:#fff}
.footer__link--test{left:656px;top:234px}
.footer__link--article{left:956px;top:235px}
.footer__link--conf{left:105px;top:323px}
.footer__link--oferta{left:446px;top:323px}

/* ================================================================= Попап */
.popup{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}
.popup[hidden]{display:none}
.popup__overlay{position:absolute;inset:0;background:rgba(3,31,76,.55);backdrop-filter:blur(3px)}
.popup__window{
  position:relative;
  width:100%;
  max-width:560px;
  max-height:calc(100vh - 40px);
  overflow-y:auto;
  padding:44px 48px 40px;
  background:#fff;
  border-radius:30px;
  box-shadow:0 24px 70px rgba(16,3,36,.28);
}
.popup__close{
  position:absolute;right:20px;top:14px;
  font-size:34px;line-height:1;color:#b7b5cd;
}
.popup__close:hover{color:var(--purple)}
.popup__title{font-size:36px;line-height:1.15;font-weight:700;color:var(--purple);margin-bottom:8px}
.popup__subtitle{
  max-width:42ch;
  margin-bottom:24px;
  font-size:16px;
  line-height:1.45;
  font-weight:400;
  color:#5c5870;
  text-wrap:pretty;
}

.lead__field{display:block;margin-bottom:20px}
.lead__label{display:block;margin-bottom:9px;font-size:18px;font-weight:400;color:#000}
.lead__input{
  width:100%;
  height:60px;
  padding:0 18px;
  font:400 16px/1.2 'Inter',Arial,sans-serif;
  color:#000;
  background:#fff;
  border:1px solid #000;
  border-radius:10px;
}
.lead__input:focus{outline:2px solid var(--purple);outline-offset:-1px;border-color:var(--purple)}
.lead__input.is-invalid{border-color:#d64545}
.lead__error{display:block;min-height:18px;margin-top:5px;font-size:13px;color:#d64545}
/* Ловушка для ботов: человек её не видит и не заполняет */
.lead__trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.lead__submit{
  width:100%;
  height:60px;
  margin-top:6px;
  background:var(--purple);
  color:#fff;
  border-radius:14px;
  font-size:18px;
  font-weight:600;
  transition:filter .15s ease;
}
.lead__submit:hover{filter:brightness(1.08)}
.lead__submit[disabled]{opacity:.6;cursor:default}
.lead__note{margin-top:14px;font-size:13px;line-height:1.4;color:#8b8b96}
.lead__note a{text-decoration:underline}
.lead__status{margin-top:14px;font-size:16px;line-height:1.4}
.lead__status.is-ok{color:#2e782e}
.lead__status.is-err{color:#d64545}
.lead.is-sent .lead__field,
.lead.is-sent .lead__submit,
.lead.is-sent .lead__note{display:none}

/* ============================================ Тест «Кто ты в IT?» ====== */
.quiz{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}
.quiz[hidden]{display:none}
.quiz__overlay{position:absolute;inset:0;background:rgba(3,31,76,.55);backdrop-filter:blur(3px)}
.quiz__window{
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:640px;
  max-height:calc(100vh - 40px);
  background:#fff;
  border-radius:30px;
  box-shadow:0 24px 70px rgba(16,3,36,.28);
  overflow:hidden;
}
.quiz__close{
  position:absolute;right:20px;top:16px;z-index:2;
  font-size:34px;line-height:1;color:#b7b5cd;
}
.quiz__close:hover{color:var(--purple)}

.quiz__progress{height:6px;background:#efecf9;flex:none}
.quiz__bar{display:block;height:100%;width:0;background:var(--lime);transition:width .3s ease}

.quiz__body{padding:38px 48px 40px;overflow-y:auto}

.quiz__step{font-size:14px;font-weight:600;color:#b7b5cd;text-transform:uppercase;letter-spacing:.04em}
.quiz__question{margin-top:10px;font-size:30px;line-height:1.2;font-weight:700;color:var(--purple);padding-right:30px}

.quiz__options{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.quiz__option{
  width:100%;
  padding:17px 20px;
  text-align:left;
  font-size:17px;
  line-height:1.35;
  color:var(--ink);
  background:#f5f3fc;
  border:2px solid transparent;
  border-radius:16px;
  transition:background .15s ease, border-color .15s ease, transform .1s ease;
}
.quiz__option:hover{background:#ece7fa;border-color:var(--purple)}
.quiz__option:active{transform:scale(.99)}
.quiz__option.is-active{background:#ece7fa;border-color:var(--purple)}

.quiz__back{margin-top:22px;font-size:16px;color:#8b8b96}
.quiz__back:hover{color:var(--purple)}

/* --- экран результата --- */
.quiz__result{
  margin-top:14px;
  padding:26px 28px;
  background:var(--accent);
  border-radius:24px;
  color:#fff;
}
.quiz__result-icon{width:38px;height:38px;margin-bottom:14px}
.quiz__result-title{font-size:34px;line-height:1.1;font-weight:700}
.quiz__result-short{margin-top:8px;font-size:17px;line-height:1.35;opacity:.92}
.quiz__result-text{margin-top:20px;font-size:17px;line-height:1.5}

.quiz__also-label{margin-top:26px;font-size:14px;font-weight:600;color:#b7b5cd;text-transform:uppercase;letter-spacing:.04em}
.quiz__also{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.quiz__also li{
  display:flex;align-items:center;gap:9px;
  padding:10px 16px 10px 12px;
  border:2px solid var(--accent);
  border-radius:14px;
  font-size:16px;
  font-weight:600;
  color:var(--ink);
}
.quiz__also img{width:24px;height:24px}

.quiz__actions{margin-top:30px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.quiz__cta{height:64px;padding:0 34px;font-size:19px;border-radius:18px}
.quiz__restart{font-size:16px;color:#8b8b96}
.quiz__restart:hover{color:var(--purple)}

/* Подпись с направлением из теста в форме заявки */
.lead__direction{
  margin-bottom:18px;
  padding:12px 16px;
  background:#f0fadb;
  border-radius:12px;
  font-size:15px;
  line-height:1.35;
  color:#4a6b12;
}
.lead__direction[hidden]{display:none}

/* ==========================================================================
   Плавающая кнопка WhatsApp
   ========================================================================== */
/* Свёрнута в круглый значок, при наведении/фокусе разворачивается в надпись.
   Прижата к правому краю: рост ширины идёт влево, значок остаётся на месте. */
.wa{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  width:62px;
  height:62px;
  border-radius:31px;
  background:#25d366;
  color:#fff;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(37,211,102,.4);
  animation:wa-pulse 2.6s ease-out infinite;
  transition:width .28s ease, background .2s ease, box-shadow .2s ease;
}
.wa:hover,.wa:focus-visible{
  width:250px;
  background:#1fbe5a;
  animation:none;
  box-shadow:0 14px 32px rgba(37,211,102,.5);
}
.wa__icon{
  width:62px;
  height:62px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wa__label{
  white-space:nowrap;
  padding-left:22px;
  font-size:16px;
  font-weight:600;
  line-height:1;
  opacity:0;
  transition:opacity .2s ease;
}
.wa:hover .wa__label,.wa:focus-visible .wa__label{opacity:1}

@keyframes wa-pulse{
  0%{box-shadow:0 10px 26px rgba(37,211,102,.4),0 0 0 0 rgba(37,211,102,.5)}
  70%{box-shadow:0 10px 26px rgba(37,211,102,.4),0 0 0 16px rgba(37,211,102,0)}
  100%{box-shadow:0 10px 26px rgba(37,211,102,.4),0 0 0 0 rgba(37,211,102,0)}
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

/* --- Планшетная сетка: пропорциональное сжатие 1200 -> 960 -------------- */
@media (max-width:1239px){
  :root{--grid:100%;--inset:40px}
  .grid{max-width:1080px}
  .hero .grid{padding:0 var(--inset)}

  .navbar{width:auto;margin-left:0;padding:0 28px;gap:24px}
  .navbar__links{gap:24px}
  .navbar__links a{font-size:16px}

  .hero__card{width:auto;margin-left:0;height:auto;padding-bottom:64px}
  .hero__body{padding:40px 40px 0;max-width:none}
  .hero__title{font-size:56px;width:auto;max-width:520px}
  .hero__text{width:auto;max-width:480px}
  .hero__actions{margin-left:0}
  .hero__gamepad{left:auto;right:-40px;top:-60px;width:44%;height:auto}
  .hero__pixels{display:none}
  .hero__wave{width:100%}

  .directions__deco-a,.directions__deco-b,.directions__pixels{display:none}
  .dircols{grid-template-columns:repeat(3,1fr);gap:24px}

  .roadmap__blob{display:none}

  .ctable__cell--art img{left:50%;top:0;transform:translateX(-50%);width:150px}

  .test__pixels{display:none}
  .test__card{padding:60px 40px;min-height:0}
  .test__title{width:auto;max-width:520px;text-align:left;font-size:52px}
  .test__text,.test__text--last{width:auto;max-width:520px}

  .whyus .h2{font-size:56px}
  .whyus__blob{right:-40px;top:-30px;width:200px;height:200px}
  .whyus__bar img{display:none}

  .cta .grid{gap:30px}
  .cta__title{font-size:48px}
  .btn--wide{width:400px;font-size:26px;height:88px}

  .footer .grid{height:auto;padding-top:0;padding-bottom:60px}
  .footer__logo{font-size:72px}
  .footer__blob--violet{left:-140px}
  .footer__blob--extra,.footer__blob--blue,.footer__blob--lime{left:auto;right:-120px}
  .footer__blob--blue{right:60px}
  .footer__blob--lime{right:-180px}
  .footer__deco{display:none}
  .footer__socials{position:static;margin-top:36px}
  .footer__phone{position:static;display:inline-block;margin-top:28px}
  .footer__link{position:static;display:block;margin-top:14px}
}

/* --- Узкий планшет ----------------------------------------------------- */
@media (max-width:959px){
  .h2,.whyus .h2{font-size:44px}

  .hero__title{font-size:44px}
  .hero__text{font-size:19px}
  .hero__gamepad{width:50%;right:-60px;top:-30px;opacity:.9}
  .hero__actions{flex-wrap:wrap;gap:16px}

  .dircols{grid-template-columns:repeat(2,1fr)}
  .dircard{height:auto;margin-top:0;padding:24px 20px;border-radius:28px}
  .dircol{gap:14px}
  .dircol .dircard{box-shadow:none}

  .roadmap__stage{--k:1px}
  .roadmap__panel{aspect-ratio:auto;padding:36px 28px}
  .roadmap__illustration{display:none}
  .roadmap__step{position:static;width:auto;padding-left:86px;min-height:66px;margin-bottom:28px}
  .roadmap__step h3{font-size:28px}
  .roadmap__step p{font-size:17px;margin-top:8px}
  .roadmap__dot{left:0;top:0}
  .roadmap__step--1 .roadmap__dot,
  .roadmap__step--3 .roadmap__dot,
  .roadmap__step--4 .roadmap__dot{left:0;top:0}
  .roadmap__total{position:static;left:auto;width:auto;height:auto;padding:28px;margin-top:8px}
  .roadmap__badge{position:static;width:150px;height:56px;font-size:30px;margin-bottom:16px}
  .roadmap__years{position:static;font-size:40px;display:block}
  .roadmap__arrow{display:none}
  .roadmap__result{position:static;width:auto;font-size:20px;margin-top:10px}

  .compare__title{font-size:52px}
  .compare__subtitle{font-size:30px}
  .ctable{grid-template-columns:1fr 1fr 1fr;column-gap:7px}
  .ctable__cell{font-size:18px;min-height:104px;border-radius:14px}
  .ctable__cell--art img{width:110px}

  .whyus__top{grid-template-columns:1fr;gap:16px}
  .whyus__big,
  .whyus__big--apple,
  .whyus__big--samsung{min-height:0;height:auto;align-self:auto;padding:32px 24px}
  .whyus__big h3{font-size:26px;max-width:none}
  .whyus__big p{font-size:18px;margin-top:12px;max-width:none}
  .whyus__blob{width:150px;height:150px;right:-30px;top:auto;bottom:-30px}
  .whyus__row{grid-template-columns:1fr 1fr}
  .whyus__small{font-size:18px;min-height:140px;padding:22px}
  .whyus__bar{font-size:18px;padding:22px}

  .cta .grid{flex-direction:column}
  .cta__title{font-size:40px}
  .btn--wide{width:100%;max-width:463px}
}

/* --- Мобильные --------------------------------------------------------- */
@media (max-width:639px){
  :root{--inset:16px}
  .h2,.whyus .h2{font-size:32px;line-height:1.15}
  section[id]{scroll-margin-top:20px}

  .topbar{display:none}

  .navbar{
    position:relative;
    height:56px;
    padding:0 16px 0 18px;
    border-radius:18px;
    flex-wrap:wrap;
  }
  .navbar__logo{font-size:20px}
  .navbar__burger{
    display:flex;flex-direction:column;justify-content:center;gap:5px;
    width:32px;height:32px;margin-left:auto;
  }
  .navbar__burger span{display:block;height:2px;background:var(--purple);border-radius:2px;transition:.2s}
  .navbar__burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .navbar__burger[aria-expanded="true"] span:nth-child(2){opacity:0}
  .navbar__burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .navbar__links{
    display:none;
    flex-basis:100%;
    flex-direction:column;
    gap:0;
    padding:6px 0 14px;
  }
  .navbar__links.is-open{display:flex}
  .navbar__links a{padding:10px 0;font-size:17px;border-top:1px solid #eee}

  .hero{padding-bottom:32px}
  .hero__card{border-radius:28px;padding-bottom:44px}
  .hero__body{padding:28px 22px 0}
  .hero__title{font-size:33px}
  .hero__text{font-size:16px;margin-top:20px}
  .hero__gamepad{position:static;width:70%;margin:24px auto -20px;opacity:1}
  .hero__actions{margin-top:28px;flex-direction:column;align-items:stretch}
  .hero__actions .btn{width:100%;height:64px;font-size:18px;border-radius:18px}
  .hero__wave{border-radius:0 0 28px 28px}

  .directions{padding:20px 0 36px}
  .directions .h2{margin-bottom:28px}
  .dircols{grid-template-columns:1fr;gap:14px}
  .dircard{border-radius:24px}
  .dircard h3{font-size:21px}

  .roadmap{padding:36px 0 0}
  .roadmap .h2{margin-bottom:26px}
  .roadmap__panel{border-radius:24px;padding:26px 20px}
  .roadmap__step{padding-left:70px;min-height:56px;margin-bottom:22px}
  .roadmap__dot{width:54px;height:54px}
  .roadmap__step h3{font-size:22px}
  .roadmap__step p{font-size:15px}
  .roadmap__total{border-radius:24px;padding:22px}
  .roadmap__badge{font-size:24px;width:120px;height:46px;border-radius:14px}
  .roadmap__years{font-size:32px}
  .roadmap__result{font-size:17px}

  .compare{padding:40px 0 0}
  .compare__title{font-size:34px}
  .compare__subtitle{font-size:20px;margin-top:12px}
  .ctable{margin-top:34px;column-gap:5px;row-gap:5px}
  .ctable__cell{font-size:12px;min-height:76px;border-radius:10px;padding:6px}
  .ctable__cell--art img{width:64px}

  .test{padding:40px 0 0}
  .test__card{padding:34px 22px;border-radius:24px;background-size:auto 60%;background-position:right bottom}
  .test__title{font-size:30px}
  .test__text,.test__text--last{font-size:17px;margin-top:18px}
  .test__card .btn{margin-top:24px}
  .btn--big{width:100%;height:64px;font-size:20px;border-radius:18px}

  .whyus{padding:40px 0 0}
  .whyus .h2{margin-bottom:24px}
  .whyus__big{padding:26px 20px;border-radius:22px}
  .whyus__big h3{font-size:21px}
  .whyus__big p{font-size:16px}
  .whyus__blob{width:92px;height:92px;right:-24px;bottom:-20px}
  .whyus__big--samsung p{padding-right:56px}
  .whyus__row{grid-template-columns:1fr;gap:8px}
  .whyus__small{min-height:0;padding:20px;font-size:16px;border-radius:22px}
  .whyus__bar{padding:20px;font-size:16px;border-radius:22px}

  .cta{padding:44px 0 0}
  .cta__title{font-size:30px}
  .cta__text{font-size:17px;margin-top:18px}
  .btn--wide{height:64px;font-size:19px;border-radius:16px}

  .footer{margin-top:60px}
  .footer .grid{padding-bottom:40px}
  .footer__logo{font-size:38px;padding-top:34px}
  .footer__socials img{width:64px;height:64px}
  .footer__phone{font-size:26px}
  .footer__link{font-size:16px}
  .footer__blob{opacity:.3}
  .footer__blob--violet{left:-160px;top:auto;bottom:-110px;width:300px;height:300px}
  .footer__blob--extra{display:none}
  .footer__blob--blue{right:-150px;top:auto;bottom:-90px;width:320px;height:320px}
  .footer__blob--lime{display:none}

  .popup__window{padding:34px 22px 28px;border-radius:22px}
  .popup__title{font-size:26px;margin-bottom:6px}
  .popup__subtitle{max-width:none;font-size:15px;line-height:1.4;margin-bottom:18px}

  .quiz{padding:0}
  .quiz__window{max-width:none;height:100%;max-height:none;border-radius:0}
  .quiz__body{padding:26px 20px 32px}
  .quiz__question{font-size:22px}
  .quiz__option{padding:15px 16px;font-size:16px;border-radius:14px}
  .quiz__result{padding:22px 20px;border-radius:20px}
  .quiz__result-title{font-size:26px}
  .quiz__result-short,.quiz__result-text{font-size:16px}
  .quiz__also li{font-size:15px;padding:8px 14px 8px 10px}
  .quiz__actions{gap:14px}
  .quiz__cta{width:100%;height:60px;font-size:18px}
  .quiz__restart{width:100%;text-align:center}

  .wa{right:16px;bottom:16px;width:56px;height:56px;border-radius:28px}
  .wa:hover,.wa:focus-visible{width:56px}
  .wa__icon{width:56px;height:56px}
  .wa__icon svg{width:29px;height:29px}
  .wa:hover .wa__label,.wa:focus-visible .wa__label{opacity:0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}
  .wa{animation:none !important}
}
