/* ══════════════════════════════════════════════════════════════════
   ПЕРВЫЙ ЗАПУСК И РАЗДЕЛЫ НАСТРОЕК — волна 08.09.2026.

   Отдельный файл намеренно: откат волны сводится к удалению двух
   строк из index.html, а чужие style.css и duga-components.css
   остаются нетронутыми.

   Цвета берём только из уже существующих переменных темы — тогда
   светлая тема, тёмная и режим высокого контраста работают сами,
   без второго набора правил.
   ══════════════════════════════════════════════════════════════════ */

#vhod {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  overflow-y: auto;
}
#vhod.hidden { display: none !important; }

/* ── верхняя строка: возврат и точки шагов ── */
.vh-verh {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 0; min-height: 56px;
  max-width: 560px; width: 100%; margin: 0 auto;
}
.vh-nazad {
  width: 48px; height: 48px; min-width: 48px; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--text);
  border-radius: 14px; padding: 0;
}
.vh-nazad:hover { background: var(--surface); }
.vh-nazad[hidden] { visibility: hidden; display: inline-flex !important; }
.vh-tochki { display: flex; gap: 8px; flex: 1; justify-content: center; }
.vh-tochka {
  width: 26px; height: 4px; border-radius: 2px;
  background: var(--border); transition: background .25s;
}
.vh-tochka.on { background: var(--accent); }
.vh-mesto { width: 48px; height: 48px; flex: none; }

/* ── середина ── */
.vh-telo {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 20px 22px; max-width: 560px; width: 100%; margin: 0 auto;
}
.vh-znak { width: 76px; height: 76px; margin-bottom: 22px; background: var(--logo) center/contain no-repeat; }
.vh-zagol {
  font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 700;
  font-size: 30px; line-height: 1.15; margin: 0 0 12px; color: var(--text);
}
.vh-tekst { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.vh-tekst b { color: var(--text); font-weight: 700; }

/* три обещания на первом экране */
.vh-punkty { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.vh-punkt { display: flex; gap: 13px; align-items: flex-start; }
.vh-punkt-zn {
  flex: none; width: 40px; height: 40px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent-text);
}
.vh-punkt-tx b { display: block; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.vh-punkt-tx span { display: block; font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* поле имени и выбор кружка */
.vh-pole { margin: 6px 0 18px; }
.vh-pole label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.vh-pole input { min-height: 56px; font-size: 16px; border-radius: 14px; }
.vh-krugi { display: flex; gap: 12px; flex-wrap: wrap; }
.vh-krug {
  width: 56px; height: 56px; min-width: 56px; min-height: 56px;
  border-radius: 50%; border: 2px solid transparent; padding: 0;
  font-family: 'Unbounded', 'Manrope', sans-serif; font-size: 20px; font-weight: 700;
  color: #ffffff; display: inline-flex; align-items: center; justify-content: center;
}
.vh-krug.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

/* галочка «готово» */
.vh-galka {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent);
  box-shadow: 0 0 46px rgba(255,107,74,.22);
}
.vh-sered { text-align: center; }

/* ── низ: кнопки ── */
.vh-niz { padding: 0 22px 26px; max-width: 560px; width: 100%; margin: 0 auto; }
.vh-glavnaya {
  width: 100%; min-height: 56px; font-size: 16px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.vh-vtoraya {
  width: 100%; min-height: 48px; margin-top: 10px; font-size: 14px;
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.vh-vtoraya:hover { background: var(--surface); border-color: var(--accent); }
.vh-tihaya {
  width: 100%; min-height: 48px; margin-top: 8px; font-size: 14px; font-weight: 700;
  background: transparent; color: var(--accent-text); border: none;
}
.vh-tihaya:hover { background: var(--surface); }
.vh-oshibka { color: var(--danger); font-size: 13px; line-height: 1.5; margin-top: 10px; min-height: 18px; }

/* ── лист «Код восстановления» ── */
.vhod-kod-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px; letter-spacing: .06em; text-align: center; word-break: break-all;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 14px; padding: 16px 12px; margin: 14px 0; line-height: 1.6;
}

/* ── группы в настройках ── */
.set-gruppa {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); padding: 20px 4px 8px; margin: 0;
}
.set-gruppa:first-child { padding-top: 6px; }

@media (max-width: 400px) {
  .vh-zagol { font-size: 26px; }
  .vh-telo { padding: 16px 18px; }
  .vh-niz { padding: 0 18px 20px; }
}
