/* =========================
   RESET / BASE
========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
  background: #fff;
}

/* опциональный фон для десктопа */
.desktop-bg{
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 700px at 50% 10%, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}

/* =========================
   OVERLAY: заполняем ниже 1024px через bg2.png
   (видно за пределами "экрана", если контент выше)
========================= */
.overlay{
  min-height: 100dvh;
  width: 100%;
  position: relative;

  background-image: url("../img/bg2.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 480px auto;

  overflow-x: hidden; /* КЛЮЧ */
}

/* =========================
   PHONE WRAPPER
   Показываем мобилку и на десктопе (по центру)
========================= */
.phone{
  width: 360px;          /* можешь оставить 360 как раньше */
  max-width: 100vw;
  margin: 0 auto;
  position: relative;
}

/* на десктопе можно добавить тень */
@media (min-width: 900px){
  .phone{
    box-shadow: 0 20px 80px rgba(0,0,0,.55);
  }
}

/* =========================
   SCREEN:
   - растёт по контенту
   - bg.png "прибит" к верху и НЕ растягивается
========================= */
.screen{
  width: 360px;
  min-height: 1024px;   /* базовая высота под новый фон */
  height: auto;
  position: relative;
  overflow: visible;    /* не обрезаем форму */
}

/* основной фон 480x1024: прибиваем сверху */
.screen::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);

  width: 480px;         /* как файл */
  height: 1024px;       /* как файл */

  background: url("../img/bgben.webp") top center / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Важно: контент поверх фона */
.content,
.lang{
  position: relative;
  z-index: 2;
}

/* =========================
   CONTENT LAYOUT
   - отступ сверху 400px
   - форма по центру, ширина 312px
========================= */
.content{
  padding-top: 400px;
  padding-bottom: 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* расстояние между формой и нижним текстом */
}

.form-slot{
  width: 312px;
  max-width: calc(100% - 48px);

  background: rgba(255, 255, 255, 0.10); /* 10% белого */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  border: 1px solid rgba(255, 255, 255, 0.22); /* 20% белого */
  border-radius: 12px;
}

/* =========================
   BOTTOM TEXT (как раньше)
========================= */
.bottom-text{
  width: 312px;
  max-width: calc(100% - 48px);

  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  color: #FFFFFF;
  gap: 6px;
}

/* =========================
   LANGUAGE SELECT (как было)
========================= */
/* контейнер языка (у тебя уже есть) */
.lang{
  position: absolute;
  left: 24px;
  top: 16px;
  width: 128px;
  height: 28px;
  z-index: 3;
}

/* кнопка */
.lang__btn{
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.20); /* белая обводка 20% */
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #fff;
  font-size: 13px;
  line-height: 1;

  background:
    linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
    rgba(245,245,245,0.2);

  border-radius: 8px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang__chev{
  width: 16px;
  height: 16px;
  display: block;
  opacity: 1;
  transition: transform 0.25s ease;
}

.lang__btn[aria-expanded="true"] .lang__chev{
  transform: rotate(180deg);
}

.lang__item a{
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #ffffff;
}


/* сам дропдаун: 128x128 по фигме */
.lang__list{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;

  width: 128px;
  height: 96px;

  margin: 0;
  padding: 0;
  list-style: none;

  /* фон по фигме */
  background:
    linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
    rgba(245,245,245,0.2);

  border-radius: 8px;

  /* белая обводка полупрозрачная */
  border: 1px solid rgba(255,255,255,0.20);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  overflow: hidden; /* чтобы разделители и hover не вылезали за радиус */
}

/* пункт меню */
.lang__item{
  height: calc(96px / 3); /* если 3 языка, ровно влезут */
  display: flex;
  align-items: center;

  padding: 0 10px;

  font-size: 13px;
  color: #fff;
  opacity: .92;

  cursor: pointer;
  user-select: none;
}

/* разделительные линии полупрозрачные */
.lang__item + .lang__item{
  border-top: 1px solid rgba(255,255,255,0.20);
}

/* hover без изменения размера (только цвет/подсветка) */
.lang__item:hover{
  background: rgba(255,255,255,0.10);
}

/* выбранный пункт (по желанию) */
.lang__item[aria-selected="true"]{
  background: rgba(0,0,0,0.12);
}
