/* ==========================================================================
   YOKOBABY — промо-лендинг. Главная страница.
   Макет: Key_Visual_test 3_3.psd, 2146 x 1438. Все размеры пересчитаны
   от этой ширины через --u, поэтому блок масштабируется без разрывов.
   ========================================================================== */

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

:root{
  --purple-dark:#431059;      /* шапка */
  --purple-text:#7c2595;      /* текст горячей линии */
  --grey-strip:#d9d9d9;       /* плашка горячей линии */
  --red:#f80404;              /* кнопка */
  --yellow:#e49b27;           /* акцент в промо-строке */
  --dot:#f7c16c;              /* маркеры списка */
  --pink:#d850bc;             /* активный язык */
  --layout:2146;              /* ширина макета */
}

body{
  font-family:"Geologica","Segoe UI",Arial,sans-serif;
  color:#fff;
  background:#3e164b;
  overflow-x:hidden;
}

/* Масштабная единица: 1 --u == 1 пиксель макета.
   cqw берётся от ширины .page, поэтому полоса прокрутки ничего не ломает. */
.page{
  container-type:inline-size;
  --u:calc(100vw / var(--layout));
}
@supports (width:1cqw){
  .page{--u:calc(100cqw / var(--layout))}
}

/* ==========================  ШАПКА  ====================================== */
.header{
  position:relative;
  z-index:3;
  height:calc(158 * var(--u));
  background:var(--purple-dark);
}
.header__logo{
  position:absolute;
  left:calc(189 * var(--u));
  top:calc(6 * var(--u));
  width:calc(180 * var(--u));
}
.nav{
  position:absolute;
  left:calc(578 * var(--u));
  top:calc(75.21 * var(--u));
}
.nav__list{
  display:flex;
  align-items:baseline;
}
/* расстояния между пунктами взяты из макета — они неравные */
.nav__item:nth-child(2){margin-left:calc(65 * var(--u))}
.nav__item:nth-child(3){margin-left:calc(59 * var(--u))}
.nav__item:nth-child(4){margin-left:calc(58 * var(--u))}
.nav__item:nth-child(5){margin-left:calc(58 * var(--u))}
.nav__item:nth-child(6){margin-left:calc(51 * var(--u))}
.nav__item a{
  display:block;
  font-size:calc(24.59 * var(--u));
  font-weight:200;
  line-height:1;
  letter-spacing:.01em;
  text-transform:uppercase;
  white-space:nowrap;
  transition:opacity .2s;
}
.nav__item a:hover{opacity:.65}

.lang{
  position:absolute;
  right:calc(270 * var(--u));
  top:calc(57 * var(--u));
  display:flex;
  align-items:center;
  gap:calc(15 * var(--u));
}
.lang__item{
  display:flex;
  align-items:center;
  justify-content:center;
  height:calc(60 * var(--u));
  font-size:calc(24.59 * var(--u));
  font-weight:200;
  line-height:1;
  transition:opacity .2s;
}
.lang__item:hover{opacity:.75}
.lang__item--active{width:calc(60 * var(--u));border-radius:50%;background:var(--pink)}

.burger{display:none}

/* =====================  ПОЛОСА ГОРЯЧЕЙ ЛИНИИ  =========================== */
.hotline{
  position:relative;
  z-index:2;
  height:calc(69 * var(--u));
  background:var(--grey-strip);
}
.hotline__text{
  position:absolute;
  left:0;
  right:0;
  top:0;
  margin:0;
  padding-left:calc(86 * var(--u));   /* центр строки в макете — 1116, не 1073 */
  font-size:calc(34.55 * var(--u));
  font-weight:500;
  line-height:calc(69 * var(--u));
  text-align:center;
  color:var(--purple-text);
}
.hotline__text strong{font-weight:500;text-transform:uppercase}
.hotline__text a{color:inherit}

/* ============================  HERO  ===================================== */
.hero{
  position:relative;
  height:calc(1000 * var(--u));
  background:url("../img/hero-bg.jpg") no-repeat center top;
  background-size:100% 100%;
}
.hero__inner{position:relative;height:100%}

/* Логотип-дуга по центру — из макета «3», координаты 766..1362 / 287..432 */
.hero__logo{
  position:absolute;
  left:calc(766 * var(--u));
  top:calc(60 * var(--u));
  width:calc(596 * var(--u));
  margin:0;
  z-index:1;
}
.hero__logo img{width:100%}

/* Ключи — отдельным слоем поверх логотипа, по центру: 878..1207 / 340..685 */
.hero__keys{
  position:absolute;
  left:calc(878 * var(--u));
  top:calc(113 * var(--u));
  width:calc(329 * var(--u));
  z-index:2;
}

/* Список призов.
   Поднят к уровню крыши дома. Ширина 734 (146..880) — правее висят ключи,
   поэтому кегль подобран так, чтобы «Выиграй квартиру мечты» вставало
   в одну строку. Переносы остальных строк раскладывает браузер. */
.hero__list{
  position:absolute;
  left:calc(146 * var(--u));
  top:calc(240 * var(--u));
  width:calc(734 * var(--u));
  font-size:calc(50 * var(--u));
  font-weight:200;
  line-height:calc(60 * var(--u));
  text-transform:uppercase;
  text-wrap:balance;
  text-shadow:0 calc(3 * var(--u)) calc(22 * var(--u)) rgba(40,8,56,.45);
}
.hero__list-item + .hero__list-item{margin-top:calc(30 * var(--u))}
.hero__list-item b{font-weight:700}

/* Кнопка — под текстом слева */
.btn-register{
  position:absolute;
  left:calc(146 * var(--u));
  top:calc(740 * var(--u));
  display:flex;
  align-items:center;
  justify-content:center;
  width:calc(660 * var(--u));
  height:calc(90 * var(--u));
  border-radius:calc(23 * var(--u));
  background:linear-gradient(180deg,#f10303 0%,#f90404 50%,#f10303 100%);
  padding-bottom:calc(6.2 * var(--u));
  font-size:calc(40.28 * var(--u));
  font-weight:600;
  line-height:1;
  letter-spacing:.03em;
  text-transform:uppercase;
  white-space:nowrap;
  color:#fff;
  transition:filter .2s,transform .2s;
}
.btn-register:hover{filter:brightness(1.08)}
.btn-register:active{transform:translateY(calc(2 * var(--u)))}

/* Кыргызский примерно вдвое длиннее — кегль подобран так, чтобы
   «Кыялыңдагы батирди утуп ал!» тоже вставало в одну строку */
html[lang="ky"] .hero__list{
  font-size:calc(40 * var(--u));
  line-height:calc(48 * var(--u));
}
html[lang="ky"] .hero__list-item + .hero__list-item{margin-top:calc(24 * var(--u))}

/* Промо-строка внизу */
.hero__promo{
  position:absolute;
  left:0;
  top:calc(890 * var(--u));
  width:calc(2081 * var(--u));   /* центр строки — 1040 макета */
  margin:0;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:calc(22 * var(--u));
  font-size:calc(42.02 * var(--u));
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
}
.hero__promo b{font-weight:700;color:var(--yellow)}
.hero__promo-label{font-weight:300;color:#fff}

/* Плавающие иконки справа */
.side-actions{
  position:absolute;
  left:calc(2035 * var(--u));
  top:calc(688 * var(--u));
  width:calc(71 * var(--u));
}
.side-actions__top{
  display:block;
  width:calc(49 * var(--u));
  height:calc(56 * var(--u));
  margin:0 0 calc(34 * var(--u)) calc(8 * var(--u));
  background:url("../img/arrow-up.png") no-repeat center/contain;
  transition:transform .2s;
}
.side-actions__top:hover{transform:translateY(calc(-4 * var(--u)))}
.side-actions__link{
  display:block;
  width:calc(71 * var(--u));
  height:calc(71 * var(--u));
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  transition:transform .2s;
}
.side-actions__link:hover{transform:scale(1.08)}
.side-actions__link--tg{background-image:url("../img/social-tg.png")}
.side-actions__link--ig{background-image:url("../img/social-ig.png");margin-top:calc(14 * var(--u))}

/* ==========================  МОДАЛКА РЕГИСТРАЦИИ  ======================== */
.modal{
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(30,6,42,.75);
  backdrop-filter:blur(4px);
}
.modal.is-open{display:flex}
.modal__dialog{
  position:relative;
  width:100%;
  max-width:620px;
  max-height:calc(100vh - 40px);
  overflow-y:auto;
  padding:48px 56px 52px;
  border-radius:28px;
  background:linear-gradient(160deg,#5b1a76 0%,#3d0f52 100%);
  box-shadow:0 30px 80px rgba(0,0,0,.45);
}
.modal__close{
  position:absolute;
  right:22px;
  top:22px;
  width:36px;
  height:36px;
  border-radius:50%;
  font-size:26px;
  line-height:1;
  color:#fff;
  opacity:.6;
  transition:opacity .2s;
}
.modal__close:hover{opacity:1}
.modal__title{
  margin:0 0 10px;
  font-size:30px;
  font-weight:700;
  line-height:1.15;
  text-transform:uppercase;
}
.modal__note{
  margin:0 0 28px;
  font-size:15px;
  font-weight:200;
  line-height:1.45;
  opacity:.75;
}

.field{margin-bottom:24px}
.field__label{
  display:block;
  margin-bottom:10px;
  font-size:15px;
  font-weight:300;
  letter-spacing:.02em;
  text-transform:uppercase;
  opacity:.85;
}
.field__input{
  width:100%;
  height:60px;
  padding:0 20px;
  border:2px solid rgba(255,255,255,.25);
  border-radius:14px;
  background:rgba(255,255,255,.08);
  font-family:inherit;
  font-size:20px;
  font-weight:500;
  letter-spacing:.06em;
  color:#fff;
  text-transform:uppercase;
  transition:border-color .2s,background .2s;
}
.field__input::placeholder{color:rgba(255,255,255,.4);letter-spacing:.04em}
.field__input:focus{outline:none;border-color:var(--pink);background:rgba(255,255,255,.14)}

/* -------- телефон: фиксированный префикс +996 и ровно 9 цифр -------- */
.phone{
  display:flex;
  align-items:center;
  gap:10px;
}
.phone__prefix{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  height:60px;
  padding:0 16px;
  border:2px solid rgba(255,255,255,.25);
  border-radius:14px;
  background:rgba(255,255,255,.14);
  font-size:20px;
  font-weight:600;
  line-height:1;
  color:#fff;
  user-select:none;
}
.phone__cells{
  display:flex;
  flex:1 1 auto;
  gap:6px;
}
.phone__cell{
  width:100%;
  min-width:0;
  height:60px;
  padding:0;
  border:2px solid rgba(255,255,255,.25);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  font-family:inherit;
  font-size:22px;
  font-weight:600;
  text-align:center;
  color:#fff;
  transition:border-color .15s,background .15s;
  -moz-appearance:textfield;
}
.phone__cell::-webkit-outer-spin-button,
.phone__cell::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.phone__cell:focus{outline:none;border-color:var(--pink);background:rgba(255,255,255,.18)}
.phone__cell:not(:placeholder-shown){border-color:rgba(255,255,255,.5)}

.field.is-invalid .phone__cell,
.field.is-invalid .field__input{border-color:#ff5a5a}
.field__error{
  display:none;
  margin-top:10px;
  font-size:14px;
  font-weight:300;
  color:#ff8a8a;
}
.field.is-invalid .field__error{display:block}

.modal__submit{
  width:100%;
  height:66px;
  margin-top:8px;
  border-radius:16px;
  background:linear-gradient(180deg,#f10303 0%,#f90404 50%,#f10303 100%);
  font-size:20px;
  font-weight:600;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#fff;
  transition:filter .2s,transform .15s;
}
.modal__submit:hover{filter:brightness(1.08)}
.modal__submit:active{transform:translateY(2px)}

body.is-modal-open{overflow:hidden}

@media (max-width:600px){
  .modal__dialog{padding:40px 16px 30px;border-radius:22px}
  .modal__title{font-size:23px}
  .phone{gap:6px}
  .phone__prefix{height:50px;padding:0 9px;font-size:16px;border-radius:11px}
  .phone__cells{gap:3px}
  .phone__cell{height:50px;font-size:16px;border-width:1.5px;border-radius:8px}
  .field__input{height:54px;font-size:17px}
  .modal__submit{height:58px;font-size:17px}
}

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 767px)
   Макета мобильной версии в исходниках нет — раскладка собрана из тех же
   элементов и ассетов десктопа, требует согласования с дизайнером.
   ========================================================================== */
@media (max-width:767px){

  .page{--u:min(calc(100cqw / 375), 1.3px)}   /* базовая ширина мобильного макета — 375 */

  /* ---- шапка ---- */
  .header{height:calc(60 * var(--u))}
  .header__logo{
    left:calc(16 * var(--u));
    top:calc(5 * var(--u));
    width:calc(68 * var(--u));
  }
  .nav{
    position:fixed;
    left:0;
    top:calc(60 * var(--u));
    width:100%;
    padding:calc(18 * var(--u)) calc(20 * var(--u)) calc(26 * var(--u));
    background:var(--purple-dark);
    transform:translateY(-130%);
    transition:transform .3s ease;
    z-index:5;
  }
  body.is-menu-open .nav{transform:translateY(0)}
  .nav__list{display:block}
  .nav__item{margin:0!important}
  .nav__item + .nav__item{border-top:1px solid rgba(255,255,255,.12)}
  .nav__item a{
    padding:calc(13 * var(--u)) 0;
    font-size:calc(15 * var(--u));
    font-weight:300;
  }

  .lang{
    right:calc(62 * var(--u));
    top:calc(13 * var(--u));
    gap:calc(6 * var(--u));
  }
  .lang__item{height:calc(34 * var(--u));font-size:calc(14 * var(--u))}
  .lang__item--active{width:calc(34 * var(--u))}

  .burger{
    display:block;
    position:absolute;
    right:calc(16 * var(--u));
    top:calc(16 * var(--u));
    width:calc(28 * var(--u));
    height:calc(28 * var(--u));
    padding:calc(5 * var(--u)) 0;
  }
  .burger span{
    display:block;
    height:calc(2.5 * var(--u));
    border-radius:2px;
    background:#fff;
    transition:transform .25s,opacity .2s;
  }
  .burger span + span{margin-top:calc(6 * var(--u))}
  body.is-menu-open .burger span:nth-child(1){transform:translateY(calc(8.5 * var(--u))) rotate(45deg)}
  body.is-menu-open .burger span:nth-child(2){opacity:0}
  body.is-menu-open .burger span:nth-child(3){transform:translateY(calc(-8.5 * var(--u))) rotate(-45deg)}

  /* ---- горячая линия ---- */
  .hotline{height:calc(34 * var(--u))}
  .hotline__text{
    padding:0 calc(10 * var(--u));
    font-size:calc(12.5 * var(--u));
    line-height:calc(34 * var(--u));
  }

  /* ---- hero ---- */
  .hero{
    height:auto;
    padding:calc(30 * var(--u)) calc(20 * var(--u)) calc(16 * var(--u));
    background:url("../img/hero-bg-mobile.jpg") no-repeat center top;
    background-size:cover;
  }
  .hero__inner{
    position:static;
    display:flex;
    flex-direction:column;
  }

  .hero__logo{
    position:static;
    width:calc(230 * var(--u));
    margin:0 auto calc(6 * var(--u));
  }
  .hero__keys{
    position:static;
    display:block;
    width:calc(110 * var(--u));
    margin:calc(-58 * var(--u)) auto calc(20 * var(--u)) calc(96 * var(--u));
  }

  .hero__list{
    position:static;
    width:100%;
    margin:calc(4 * var(--u)) 0 calc(26 * var(--u));
    padding:0 calc(6 * var(--u));
    font-size:calc(21.5 * var(--u));
    line-height:1.26;
    text-align:center;
    text-wrap:pretty;   /* balance рвал первую строку, хотя она помещалась */
  }
  .hero__list-item + .hero__list-item{margin-top:calc(15 * var(--u))}
  html[lang="ky"] .hero__list{
    top:auto;
    font-size:calc(19 * var(--u));
    line-height:1.26;
  }
  html[lang="ky"] .hero__list-item + .hero__list-item{margin-top:calc(13 * var(--u))}
  .hero__list-item + .hero__list-item{margin-top:calc(14 * var(--u))}

  .btn-register{
    position:static;
    width:100%;
    height:calc(54 * var(--u));
    margin-bottom:calc(20 * var(--u));
    padding-bottom:0;
    border-radius:calc(14 * var(--u));
    font-size:calc(16 * var(--u));
  }

  /* визуал макета — под текстом */
  .hero__inner::after{
    content:"";
    display:block;
    order:5;
    width:calc(100% + 40 * var(--u));
    margin:0 calc(-20 * var(--u));
    aspect-ratio:1426/1043;
    background:url("../img/hero-art.png") no-repeat center bottom;
    background-size:contain;
  }

  .hero__promo{
    position:static;
    order:6;
    width:100%;
    padding:calc(16 * var(--u)) calc(56 * var(--u)) calc(30 * var(--u)) 0;
    flex-wrap:wrap;
    gap:calc(6 * var(--u));
    font-size:calc(14 * var(--u));
    line-height:1.3;
    white-space:normal;
  }
  .hero__promo b{width:100%;text-align:center}
  .hero__promo-label{width:100%;text-align:center}

  /* ---- плавающие иконки ---- */
  .side-actions{
    position:fixed;
    left:auto;
    right:calc(10 * var(--u));
    top:auto;
    bottom:calc(14 * var(--u));
    width:calc(40 * var(--u));
    z-index:4;
  }
  .side-actions__top{
    width:calc(26 * var(--u));
    height:calc(30 * var(--u));
    margin:0 auto calc(12 * var(--u));
  }
  .side-actions__link{width:calc(40 * var(--u));height:calc(40 * var(--u))}
  .side-actions__link--ig{margin-top:calc(8 * var(--u))}
}
