/* Главный экран: картинка айсберга во всю страницу и текст поверх неё.
   Экран показывают до входа, поэтому цифр движка на нём нет вовсе. */
:root {
  --deep: #05070C;
  /* Вторичный текст поверх картинки: обычный --muted на гранях айсберга
     читается на пределе, этот заметно светлее (7.7:1 против 4.8:1). */
  --dim: #90A2B8;
}

/**
 * Скрытие. Правило живёт именно здесь: главная подключает только base.css и
 * gate.css, а .is-hidden раньше был описан лишь в layout.css кабинета — без
 * него класс на блоках ничего не делал, и все четыре состояния экрана
 * показывались разом, наложенные друг на друга.
 */
.is-hidden { display: none !important; }

body { background: var(--deep); overflow-x: hidden; }

.gate {
  position: relative; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}

/* Фон. Линия воды на картинке проходит на 32% её высоты, поэтому картинка
   растянута до 145% высоты экрана и прижата к верху: вода оказывается примерно
   на 48% экрана. Пропорции при этом не ломаются — задана только высота. */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: url('/img/iceberg-bg.png') no-repeat center top / auto 145%;
}

/* Затемнение сверху, снизу и у правого края экрана. */
.veil {
  position: fixed; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.72) 0%, rgba(5, 7, 12, 0) 26%,
                    rgba(5, 7, 12, 0) 62%, var(--deep) 100%),
    linear-gradient(90deg, rgba(5, 7, 12, 0) 82%, var(--deep) 100%);
}

/**
 * Подложка под текстовую колонку: слева сплошной #05070C, к правому краю
 * сходит на нет. Буквы ложатся на ровное тёмное, а правая часть айсберга
 * вместе с вершиной остаётся видимой.
 */
.scrim {
  position: fixed; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    var(--deep) 0%, var(--deep) 34%,
    rgba(5, 7, 12, 0.88) 46%, rgba(5, 7, 12, 0.45) 58%,
    rgba(5, 7, 12, 0) 70%);
}

/* --- Шапка --- */
.bar {
  position: relative; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 22px 40px;
}

.bar-left { display: flex; align-items: center; flex-wrap: wrap; gap: 34px; }
.brand { font-size: 15px; font-weight: 600; letter-spacing: 0.26em; }

/* Разделы шапки некликабельны: курсор обычный, нажатие ничего не открывает. */
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--dim); cursor: default; user-select: none;
}

.tab-lock { width: 13px; height: 13px; flex: none; stroke: currentColor; fill: none; }

.soon {
  padding: 2px 7px; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
}

/* Плашка «раздел в разработке» под неготовым пунктом. */
.tip {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 3;
  padding: 6px 10px; font-size: 11px; white-space: nowrap;
  color: var(--text); background: rgba(5, 7, 12, 0.94);
  border: 1px solid var(--line); border-radius: var(--radius);
}

.enter {
  font-size: 14px; color: var(--dim); cursor: pointer;
  border-bottom: 1px solid transparent;
}

.enter:hover { color: var(--text); border-bottom-color: var(--line); }

/* --- Центр: текстовая колонка прижата влево --- */
.stage {
  position: relative; z-index: 2; flex: 1; display: flex;
  flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 20px 40px 72px;
}

.view { width: 100%; max-width: 620px; text-align: left; }

/* Формы кладём на тёмную карточку: на голой картинке поля терялись. */
.view.card {
  max-width: 420px; align-self: center; padding: 28px;
  background: rgba(5, 7, 12, 0.92);
  border: 1px solid var(--line); border-radius: 10px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
}

.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.title { margin: 18px 0 14px; font-size: 58px; font-weight: 300;
  line-height: 1; letter-spacing: 0.14em; }

.lead { margin: 0; font-size: 15px; color: #C2CDDA; }

.view-title { margin: 0; font-size: 22px; font-weight: 400; }
.view-lead { margin: 10px 0 22px; font-size: 13px; color: var(--dim); }

/* --- Кнопки и поля --- */
/* Белая кнопка: единственный яркий элемент экрана. */
.wide {
  width: 100%; max-width: 260px; height: 46px; margin-top: 32px;
  font-size: 15px; color: #05070C; cursor: pointer; background: #FFFFFF;
  border: 1px solid #FFFFFF; border-radius: var(--radius);
}

.card .wide { max-width: none; margin-top: 0; }
.wide:hover { background: #E6EDF5; border-color: #E6EDF5; }
.wide:disabled { cursor: default; opacity: 0.55; }

.row { display: flex; gap: 8px; }

.input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: rgba(232, 238, 245, 0.04); border: 1px solid var(--line);
  border-radius: var(--radius);
}

.input:focus { outline: none; border-color: var(--accent); }
.input::placeholder { color: #4A5F78; }

.go {
  height: 40px; padding: 0 16px; font-size: 13px; color: #05070C;
  cursor: pointer; background: #FFFFFF; border-radius: var(--radius);
}

.go:disabled { cursor: default; opacity: 0.55; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.msg { margin-top: 12px; min-height: 16px; font-size: 12px; color: var(--dim); }
.msg.is-bad { color: #FF8B8B; }

.small { margin: 16px 0 0; font-size: 13px; color: var(--dim); }
.link { color: var(--text); cursor: pointer; border-bottom: 1px solid var(--line); }
.link:hover { border-bottom-color: var(--accent); }

/* Экран «заявка принята» */
.check { width: 34px; height: 34px; margin-bottom: 16px; stroke: var(--accent); fill: none; }
.done-mail { color: var(--text); word-break: break-all; }

@media (max-width: 640px) {
  .bar { padding: 18px 20px; gap: 14px; }
  .bar-left { gap: 20px; }
  .stage { padding: 20px 20px 48px; }
  .title { font-size: 44px; }
  .scrim { background: linear-gradient(90deg, var(--deep) 0%, rgba(5, 7, 12, 0.9) 100%); }
}
