/*
 * Лендинг акции «Поймай Лаки за хвост» — happygifts.ru/lucky/
 *
 * Один файл, чистый CSS, без препроцессоров и внешних библиотек.
 * Приставка hgl-lp — страница лежит в одной папке с игрой.
 *
 * Порядок: переменные → база → шапка → первый экран и три части →
 * игра → призы → условия → финал → состояния кнопки → подвал → телефон.
 */

:root {
  --lp-yellow: #ffe500;
  --lp-yellow-hover: #f2d900;
  --lp-black: #000;
  --lp-graphite: #474a55;
  --lp-graphite-deep: #3b3e47;
  --lp-grey: #8a8d96;
  --lp-line: #e3e4e8;
  --lp-soft: #f1f1f4;
  --lp-page: #fff;

  --lp-r-sm: 10px;
  --lp-r-md: 14px;
  --lp-r-lg: 20px;
  --lp-r-hero: 32px;

  --lp-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  --lp-shadow-lg: 0 10px 30px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--lp-black);
  background: var(--lp-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--lp-black); }
a:hover { color: var(--lp-graphite); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 229, 0, .55), 0 0 0 5px rgba(0, 0, 0, .6);
  border-radius: var(--lp-r-sm);
}

.hgl-lp__wrap {
  width: 94vw;
  max-width: none;
  margin: 0 auto;
  padding: 0 20px;
}

.hgl-lp__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── общая типографика ──────────────────────────────────────────────────── */

.hgl-lp__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-graphite);
  margin-bottom: 16px;
}

.hgl-lp__eyebrow--onDark { color: var(--lp-yellow); }

.hgl-lp__h1 {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.015em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hgl-lp__h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.01em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hgl-lp__h2--onDark { color: #fff; }

.hgl-lp__sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--lp-graphite);
  max-width: 760px;
  text-wrap: pretty;
}

.hgl-lp__sub--onDark { color: rgba(255, 255, 255, .78); max-width: 700px; }

/* ── шапка ──────────────────────────────────────────────────────────────── */

.hgl-lp__top { border-bottom: 1px solid var(--lp-line); }

.hgl-lp__topinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.hgl-lp__logo { display: inline-flex; align-items: center; min-height: 44px; }
.hgl-lp__logo img { display: block; height: 28px; width: auto; }

.hgl-lp__topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hgl-lp__topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--lp-r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-graphite);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.hgl-lp__topnav a:hover { background: var(--lp-soft); color: var(--lp-black); }

/* ── первый экран ───────────────────────────────────────────────────────── */

.hgl-lp__herowrap { width: 100%; max-width: none; padding: 0; margin: 0; position: relative; z-index: 3; }

.hgl-lp__hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 0;
  grid-template-columns: 1fr;
  padding: 64px calc(3vw + 20px) 0;
  /* Жёлтый — подложка. Когда Надя отдаст баннер: положить файл в assets,
     добавить сюда background-image с его путём — background-size: cover
     растянет его на всю ширину любого экрана. */

  /* Ширина Лаки и высота жёлтого связаны: тело маскота кончается на 530-й
     строке картинки 1200×638, ниже свисают только лапы. Чтобы тело садилось
     ровно на край жёлтого, а за край свешивались лапы, фон должен обрываться
     на (638−534)/1200 = 0.0867 ширины картинки выше низа секции. Раньше вылет
     считался своей формулой от vw и с шириной Лаки не сходился: на 1280
     тело свисало на 16 px ниже жёлтого, на 1024 — на 13.

     Зазор сверх этой доли не добавляем: подняли край на 12 px — и Лаки
     повис над фоном, стало заметно хуже, чем исходное касание. */
  --peek-w: min(67.5vw, 1200px);
  --peek-over: calc(var(--peek-w) * 0.0867);
  background-color: transparent;
  background-image: url("assets/bg-hero-wide.webp");
  background-size: 100% calc(100% - var(--peek-over));
  background-position: 50% 0;
  background-repeat: no-repeat;
  padding-bottom: var(--peek-over);
  min-height: min(70vh, 720px);
  align-content: start;
  overflow: visible;
  animation: hgl-lp-rise .5s ease both;
}

.hgl-lp__hero .hgl-lp__eyebrow { color: rgba(0, 0, 0, .62); }

.hgl-lp__lead {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 560px;
  color: rgba(0, 0, 0, .78);
  text-wrap: pretty;
}

.hgl-lp__cta { margin-top: 28px; }

.hgl-lp__pic {
  display: flex;
  justify-content: center;
  animation: hgl-lp-rise .5s .1s ease both;
}

.hgl-lp__mascot {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin-bottom: -4px;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .22));
  animation: hgl-lp-float 5s ease-in-out infinite;
  transform-origin: 50% 100%;
}

/* ── кнопки ─────────────────────────────────────────────────────────────── */

.hgl-lp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 1.5px solid var(--lp-black);
  border-radius: var(--lp-r-sm);
  background: var(--lp-black);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.hgl-lp__btn:hover {
  background: #fff;
  color: var(--lp-black);
  box-shadow: var(--lp-shadow);
}

.hgl-lp__btn--dark {
  background: var(--lp-yellow);
  border-color: var(--lp-black);
  color: var(--lp-black);
}

.hgl-lp__btn--dark:hover { background: var(--lp-yellow-hover); color: var(--lp-black); }

.hgl-lp__btn[disabled] {
  background: var(--lp-soft);
  border-color: var(--lp-line);
  color: var(--lp-grey);
  cursor: default;
  box-shadow: none;
}

.hgl-lp__note {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, .6);
  margin-top: 14px;
  max-width: 400px;
}

.hgl-lp__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-black);
  text-decoration: none;
  border-bottom: 2px solid var(--lp-yellow);
  transition: border-color .15s ease;
}

.hgl-lp__link:hover { border-bottom-color: var(--lp-black); color: var(--lp-black); }

/* ── игра ───────────────────────────────────────────────────────────────── */

.hgl-lp__game {
  padding: 72px 0 80px;
  background: var(--lp-graphite);
}

.hgl-lp__gamegrid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 44px;
  align-items: start;
  margin-top: 40px;
}

/* Окно сборки — копия компонента из игры: пазл 2 × 3, счётчик, статус дня,
   жетоны и кнопка обмена. */
.hgl-lp__window {
  margin: 0;
  background: #fff;
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  box-shadow: var(--lp-shadow-lg);
  overflow: hidden;
}

.hgl-lp__winhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 0;
}

.hgl-lp__wineyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lp-grey);
  margin-bottom: 6px;
}

.hgl-lp__wintitle {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.hgl-lp__winclose {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--lp-line);
  border-radius: 12px;
  font-size: 17px;
  color: var(--lp-graphite);
}

.hgl-lp__winbody {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 26px;
  padding: 22px 28px 26px;
}

/* Пазл: картинка под сеткой, непойманные фрагменты закрыты. */
.hgl-lp__board {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-md);
  background: #fff;
  overflow: hidden;
}

.hgl-lp__boardpic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Пойманные фрагменты открывают картинку, остальные закрыты
   белыми элементами пазла с замками. */
.hgl-lp__frags {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
}

.hgl-lp__winpanel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hgl-lp__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-graphite);
}

.hgl-lp__count b {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--lp-black);
  font-variant-numeric: tabular-nums;
}

.hgl-lp__progress {
  height: 8px;
  margin-top: -6px;
  border-radius: 999px;
  background: var(--lp-soft);
  overflow: hidden;
}

.hgl-lp__progressfill {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: var(--lp-yellow);
  animation: hgl-lp-fill 1.4s .3s ease both;
}

.hgl-lp__status {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--lp-r-md);
  background: #f4f4f6;
  padding: 16px 18px;
}

.hgl-lp__status img { width: 52px; height: 52px; flex: none; object-fit: contain; }
.hgl-lp__statustext { font-size: 15px; line-height: 1.45; color: var(--lp-graphite); text-wrap: pretty; }

.hgl-lp__shards {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-md);
  padding: 18px;
}

.hgl-lp__coin {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--lp-yellow);
  font-size: 14px;
  font-weight: 700;
}

.hgl-lp__shardmain { flex: 1; min-width: 0; display: grid; gap: 10px; }
.hgl-lp__shardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hgl-lp__shardname { font-size: 16px; font-weight: 700; }
.hgl-lp__shardcount { font-size: 14px; font-weight: 500; color: var(--lp-graphite); font-variant-numeric: tabular-nums; }

.hgl-lp__shardbars { display: flex; gap: 8px; }

.hgl-lp__shardbar {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: var(--lp-soft);
  border: 1.5px solid var(--lp-line);
}

.hgl-lp__shardbar--on { background: var(--lp-yellow); border-color: var(--lp-black); }

.hgl-lp__shardhint { font-size: 14px; line-height: 1.45; color: var(--lp-grey); }

.hgl-lp__winbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: var(--lp-r-md);
  background: var(--lp-yellow);
  color: var(--lp-black);
  font-size: 17px;
  font-weight: 700;
}

.hgl-lp__winrules {
  margin-top: auto;
  text-align: right;
  font-size: 14px;
  color: var(--lp-graphite);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hgl-lp__wincap {
  padding: 0 28px 20px;
  font-size: 13px;
  color: var(--lp-grey);
}

/* Цель сборки — под шагами. */
.hgl-lp__goal {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.hgl-lp__goal img { width: 110px; flex: none; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .28)); }
.hgl-lp__goal p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .74); }

.hgl-lp__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.hgl-lp__step {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.hgl-lp__stepnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--lp-r-sm);
  background: var(--lp-black);
  color: var(--lp-yellow);
  border: 1.5px solid var(--lp-yellow);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
}

.hgl-lp__step h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}

.hgl-lp__step p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .74); }

/* ── общие секции ───────────────────────────────────────────────────────── */

.hgl-lp__section { padding: 76px 0; }
.hgl-lp__section--soft { background: #fafafb; }

/* ── призы ──────────────────────────────────────────────────────────────── */

.hgl-lp__prizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.hgl-lp__prize {
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  padding: 16px 16px 22px;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.hgl-lp__prize:hover { border-color: var(--lp-yellow); box-shadow: var(--lp-shadow); }

.hgl-lp__prize h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 16px 0 8px;
}

.hgl-lp__prize p { font-size: 14px; line-height: 1.6; color: var(--lp-graphite); }

/* Плейсхолдер под будущее фото приза. */
.hgl-lp__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--lp-r-md);
  background: var(--lp-soft);
}

.hgl-lp__ph span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b3b5bd;
}

.hgl-lp__ph--points { background: var(--lp-yellow); }
.hgl-lp__ph--points span { color: var(--lp-black); font-size: 26px; letter-spacing: .04em; }

.hgl-lp__foot-note {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-md);
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-graphite);
  max-width: 720px;
}

/* ── условия ────────────────────────────────────────────────────────────── */

.hgl-lp__terms {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}

.hgl-lp__terms li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-graphite);
}

.hgl-lp__terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--lp-yellow);
}


/* ── кому что достаётся ─────────────────────────────────────────────────── */

.hgl-lp__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.hgl-lp__col {
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  padding: 28px;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.hgl-lp__col:hover { border-color: var(--lp-yellow); box-shadow: var(--lp-shadow); }
.hgl-lp__col--accent { background: var(--lp-yellow); border-color: var(--lp-black); }
.hgl-lp__col--accent:hover { border-color: var(--lp-black); }

.hgl-lp__colkicker {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}

.hgl-lp__marklist { display: grid; gap: 14px; }

.hgl-lp__marklist li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--lp-graphite);
  text-wrap: pretty;
}

.hgl-lp__marklist li b { color: var(--lp-black); }

.hgl-lp__marklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--lp-yellow);
  border: 1.5px solid var(--lp-black);
}

.hgl-lp__col--accent .hgl-lp__marklist li { color: rgba(0, 0, 0, .78); }
.hgl-lp__col--accent .hgl-lp__marklist li::before { background: #fff; }

/* Тот же список на тёмном фоне поездки: цвета у него заданы под светлую
   подложку, и без перекраски текст сливается с фиолетовым. */
.hgl-lp__marklist--onDark li { color: rgba(255, 255, 255, .78); }
.hgl-lp__marklist--onDark li b { color: #fff; }
.hgl-lp__marklist--onDark li::before { border-color: rgba(255, 255, 255, .5); }

/* Описание поездки идёт на всю ширину — под ним в ряд четыре фотографии,
   и текст в 700 px смотрелся колонкой не по месту. Сужаем правило до этой
   секции: в блоке игры подзаголовок остаётся узким, как задумано. */
.hgl-lp__tour .hgl-lp__sub--onDark { max-width: none; }

/* У .hgl-lp__sub нет нижнего отступа: раньше после него сразу шли фотографии
   со своим margin-top, и этого хватало. Теперь абзацев два и между ними
   список — без явных отступов они слипаются в сплошную простыню. */
.hgl-lp__tour .hgl-lp__sub--onDark + .hgl-lp__sub--onDark { margin-top: 16px; }
.hgl-lp__tour .hgl-lp__marklist { margin-top: 22px; }

/* На всю ширину строка списка длинная, и межпунктовый зазор в 14 px
   читался как случайный разрыв. Разводим пункты заметнее, чем строки
   внутри пункта, — тогда видно, где кончается один и начинается другой. */
.hgl-lp__tour .hgl-lp__marklist { gap: 18px; }

/* ── сколько вернётся ───────────────────────────────────────────────────── */

.hgl-lp__moneygrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 20px;
  align-items: start;
  margin-top: 36px;
}

.hgl-lp__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.hgl-lp__table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-black);
  background: var(--lp-yellow);
  padding: 14px 20px;
}

.hgl-lp__table th { color: var(--lp-black); }

.hgl-lp__table td {
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 600;
  border-top: 1px solid var(--lp-line);
}

.hgl-lp__table tbody tr:first-child td { border-top: none; }
.hgl-lp__table td:first-child { color: var(--lp-graphite); font-weight: 500; }
.hgl-lp__table td:last-child { font-weight: 700; }

.hgl-lp__callout {
  border: 1.5px solid var(--lp-black);
  border-radius: var(--lp-r-lg);
  padding: 22px;
  background: #fffdf0;
}

.hgl-lp__calloutlabel {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hgl-lp__callout p + p, .hgl-lp__callout p:last-child {
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-graphite);
}

.hgl-lp__aftertable {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-graphite);
  max-width: 720px;
}

/* ── на что потратить баллы ─────────────────────────────────────────────── */

.hgl-lp__spend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.hgl-lp__spendtext { display: grid; gap: 16px; }
.hgl-lp__spendfacts { display: grid; gap: 16px; }

.hgl-lp__fact {
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-md);
  padding: 20px 22px;
  background: #fff;
}

.hgl-lp__factnum {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.hgl-lp__fact p:last-child { font-size: 14px; line-height: 1.55; color: var(--lp-graphite); }

/* ── поездка ────────────────────────────────────────────────────────────── */

.hgl-lp__tour {
  padding: 76px 0 80px;
  background: #522f49;
}

.hgl-lp__tour .hgl-lp__h2 { max-width: 900px; }

.hgl-lp__tourgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.hgl-lp__tourcard {
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: var(--lp-r-lg);
  padding: 24px;
}

.hgl-lp__tourcard h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.hgl-lp__tourcard p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .76); }

.hgl-lp__tourcard--accent { background: var(--lp-yellow); border-color: var(--lp-yellow); }
.hgl-lp__tourcard--accent h3 { color: var(--lp-black); }
.hgl-lp__tourcard--accent p { color: rgba(0, 0, 0, .78); }

/* ── текст для руководителя ─────────────────────────────────────────────── */

.hgl-lp__boss {
  display: grid;
  gap: 20px;
  justify-items: start;
  margin-top: 32px;
}

.hgl-lp__quote {
  margin: 0;
  max-width: 760px;
  padding: 24px 28px;
  background: #fff;
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  font-size: 15px;
  line-height: 1.65;
  color: var(--lp-graphite);
  text-wrap: pretty;
}

/* ── вопросы ────────────────────────────────────────────────────────────── */

.hgl-lp__faq {
  margin-top: 32px;
  max-width: none;
  column-gap: 56px;
  border-top: 1px solid var(--lp-line);
}

.hgl-lp__faqitem { border-bottom: 1px solid var(--lp-line); }

.hgl-lp__faqitem summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .15s ease;
}

.hgl-lp__faqitem summary::-webkit-details-marker { display: none; }

.hgl-lp__faqitem summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--lp-line);
  border-radius: var(--lp-r-sm);
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-graphite);
  transition: background .15s ease, border-color .15s ease;
}

.hgl-lp__faqitem summary:hover::after { border-color: var(--lp-yellow); background: var(--lp-soft); }
.hgl-lp__faqitem[open] summary::after { content: "−"; background: var(--lp-yellow); border-color: var(--lp-black); color: var(--lp-black); }

.hgl-lp__faqitem p {
  padding: 0 56px 22px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--lp-graphite);
  text-wrap: pretty;
}

.hgl-lp__note--onDark { color: rgba(255, 255, 255, .6); }

/* ── финал ──────────────────────────────────────────────────────────────── */

.hgl-lp__finalwrap { padding-top: 76px; padding-bottom: 20px; }

.hgl-lp__final {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 44px 48px;
  border-radius: var(--lp-r-hero);
  background: var(--lp-graphite-deep);
}

.hgl-lp__final .hgl-lp__h2 { color: #fff; }
.hgl-lp__final .hgl-lp__sub { color: rgba(255, 255, 255, .78); margin-bottom: 26px; }
.hgl-lp__finalpic { width: 220px; height: auto; align-self: end; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .3)); }

/* ── состояния кнопки (только для приёмки) ──────────────────────────────── */

.hgl-lp__states { padding-top: 72px; }

.hgl-lp__states .hgl-lp__h2 {
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--lp-grey);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lp-line);
  margin-bottom: 32px;
}

.hgl-lp__stategrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.hgl-lp__state {
  border: 1px dashed var(--lp-line);
  border-radius: var(--lp-r-lg);
  padding: 24px;
}

.hgl-lp__statelabel {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lp-grey);
  margin-bottom: 16px;
}

/* Блок непрозрачный, а Лаки лежит справа в том же первом экране — без
   ограничения ширины блок наползал на фигуру: при 1920 на 239 px, при 901
   на 466 px. Ширину держим по свободному месту слева от фигуры; замерено
   по непрозрачным пикселям картинки на ширинах 901…2560. */
.hgl-lp__joined {
  max-width: min(26vw, 500px);
  border: 1.5px solid var(--lp-black);
  border-radius: var(--lp-r-md);
  padding: 20px;
  background: #fffdf0;
}

.hgl-lp__joinedtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hgl-lp__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--lp-yellow);
  border: 1.5px solid var(--lp-black);
  font-size: 14px;
}

.hgl-lp__joinedmeta {
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-graphite);
  margin-bottom: 8px;
}

/* ── подвал ─────────────────────────────────────────────────────────────── */

.hgl-lp__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding: 20px 0 36px;
  margin-top: 40px;
  border-top: 1px solid var(--lp-line);
  font-size: 13px;
  color: var(--lp-grey);
}

.hgl-lp__footlinks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-right: -12px; }
.hgl-lp__footlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--lp-r-sm);
  color: var(--lp-graphite);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.hgl-lp__footlinks a:hover { background: var(--lp-soft); color: var(--lp-black); }

/* ── анимации ───────────────────────────────────────────────────────────── */

@keyframes hgl-lp-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes hgl-lp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1.2deg); }
}

@keyframes hgl-lp-fill {
  from { width: 0; }
  to { width: 50%; }
}

/* ── планшет ────────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hgl-lp__gamegrid { grid-template-columns: 1fr; gap: 32px; }
  .hgl-lp__goal { grid-column: 1; }
}

@media (max-width: 720px) {
  .hgl-lp__winbody { grid-template-columns: 1fr; }
  .hgl-lp__board { max-width: 320px; }
}

/* ── телефон ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hgl-lp__herowrap { padding-top: 0; }

  .hgl-lp__hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
    border-radius: 0;
    min-height: 0;
    text-align: left;
  }

  .hgl-lp__pic { order: -1; justify-content: flex-start; }
  .hgl-lp__mascot { max-width: 180px; }
  .hgl-lp__lead { font-size: 16px; }
  .hgl-lp__btn { width: 100%; padding: 0 20px; }

  .hgl-lp__game { padding: 48px 0 52px; }
  .hgl-lp__gamegrid { margin-top: 28px; }
  .hgl-lp__winhead { padding: 18px 18px 0; }
  .hgl-lp__wintitle { font-size: 21px; }
  .hgl-lp__winbody { padding: 16px 18px 20px; gap: 18px; }
  .hgl-lp__wincap { padding: 0 18px 16px; }
  .hgl-lp__goal { flex-direction: row; }
  .hgl-lp__goal img { width: 90px; }
  .hgl-lp__steps { grid-template-columns: 1fr; gap: 20px; }

  .hgl-lp__section { padding: 48px 0; }
  .hgl-lp__prizes { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .hgl-lp__ph { aspect-ratio: 16 / 9; }
  .hgl-lp__terms { grid-template-columns: 1fr; margin-top: 22px; }

  .hgl-lp__finalwrap { padding-top: 48px; }
  .hgl-lp__final { grid-template-columns: 1fr; padding: 28px 22px 32px; border-radius: var(--lp-r-lg); }
  .hgl-lp__finalpic { width: 150px; justify-self: center; }

  .hgl-lp__split { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .hgl-lp__col { padding: 22px; }
  .hgl-lp__moneygrid { grid-template-columns: 1fr; margin-top: 26px; }
  .hgl-lp__table th { padding: 12px 14px; font-size: 11px; }
  .hgl-lp__table td { padding: 14px; font-size: 15px; }
  .hgl-lp__spend { grid-template-columns: 1fr; gap: 22px; }
  .hgl-lp__tour { padding: 48px 0 52px; }
  .hgl-lp__tourgrid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .hgl-lp__quote { padding: 20px 22px; }
  .hgl-lp__faqitem summary { font-size: 15px; }
  .hgl-lp__faqitem p { padding-right: 40px; }
  .hgl-lp__stategrid { grid-template-columns: 1fr; gap: 18px; }
  .hgl-lp__state { padding: 20px; }
  .hgl-lp__states .hgl-lp__h2 { font-size: 13px; }
}

@media (max-width: 420px) {
  .hgl-lp__hero { padding: 0; }
  .hgl-lp__news li { padding-left: 34px; font-size: 15px; }
  .hgl-lp__midctatext { font-size: 20px; }
  .hgl-lp__frags { gap: 8px; }
  .hgl-lp__winbody { padding: 14px 14px 18px; }
  .hgl-lp__winhead { padding: 16px 14px 0; }
  .hgl-lp__wincap { padding: 0 14px 14px; }
}

/* ── меньше движения ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── подзаголовок и новости первого экрана ────────────────────────── */

.hgl-lp__herosub {
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: -8px 0 22px;
  color: rgba(0, 0, 0, .82);
}

.hgl-lp__news {
  counter-reset: hgl-news;
  display: grid;
  gap: 14px;
  margin-top: 22px;
  max-width: 620px;
}

.hgl-lp__news li {
  counter-increment: hgl-news;
  position: relative;
  padding-left: 40px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(0, 0, 0, .82);
  text-wrap: pretty;
}

.hgl-lp__news li::before {
  content: counter(hgl-news);
  position: absolute;
  left: 0;
  top: -1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lp-black);
  color: var(--lp-yellow);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── призы: мудборд без описаний ──────────────────────────────────── */

.hgl-lp__mood {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  gap: 16px;
  margin-top: 34px;
}

.hgl-lp__moodtile {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  border-radius: var(--lp-r-lg);
  background: var(--lp-soft);
}

/* aspect-ratio держит высоту, пока снимок не подгрузился: высота ряда
   теперь считается от содержимого, и без него плитки с loading="lazy"
   схлопывались в ноль, а страница дёргалась по мере загрузки. Все узкие
   снимки сняты 800x720; когда высота ряда уже известна, height: 100%
   перебивает пропорцию и плитка растягивается на ряд. */
.hgl-lp__moodtile img { width: 100%; height: 100%; aspect-ratio: 10 / 9; object-fit: cover; display: block; }

.hgl-lp__moodtile span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-grey);
}

/* Высоту ряда задаёт широкая плитка, остальные под неё растягиваются.
   Раньше ряд был 190 px, а ширина колонки тянется за экраном: широкая
   плитка выходила 3.4:1 на 1440 и 4.1:1 на 1920 при снимках 2:1 — cover
   срезал больше трети кадра по высоте, и нанесение уходило за рамку
   (у перчаток пропадала лапка на манжете, у кепок — глаза моделей).
   2.2:1 — самая скупая пропорция, при которой в кадр входят все надписи;
   держится на любой ширине, потому что задана отношением, а не пикселями. */
.hgl-lp__moodtile--wide { grid-column: span 2; aspect-ratio: 2.2 / 1; }

.hgl-lp__moodtile--points {
  background: var(--lp-yellow);
  border: 0;
}

.hgl-lp__moodtile--points span {
  color: var(--lp-black);
  font-size: 22px;
  letter-spacing: .02em;
}

/* ── кнопка посередине страницы ───────────────────────────────────── */

.hgl-lp__midcta {
  background: var(--lp-yellow);
  padding: 40px 0;
}

.hgl-lp__midctainner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hgl-lp__midctatext {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .hgl-lp__mood { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hgl-lp__news li { font-size: 16px; }
  .hgl-lp__midctainner { flex-direction: column; align-items: flex-start; }
  .hgl-lp__midcta .hgl-lp__btn { width: 100%; }
}

/* ── фотографии «Восточной сказки» ────────────────────────────────── */

.hgl-lp__tourpics {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}

.hgl-lp__tourpic {
  margin: 0;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--lp-r-lg);
  background: rgba(255, 255, 255, .06);
}

.hgl-lp__tourpic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hgl-lp__tourpic span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.hgl-lp__tourpic--big { min-height: 340px; }

/* ── вопросы в две колонки на широком экране ──────────────────────── */

@media (min-width: 1000px) {
  .hgl-lp__faq { columns: 2; }
  .hgl-lp__faqitem { break-inside: avoid; }
}

@media (max-width: 900px) {
  .hgl-lp__tourpics { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  .hgl-lp__tourpic, .hgl-lp__tourpic--big { min-height: 200px; }
}

/* ── ширина контента по сайту ─────────────────────────────────────────
   section.main на happygifts.ru: 94vw, с 1920 px — 90vw при потолке 1711. */

@media (min-width: 1920px) {
  .hgl-lp__wrap:not(.hgl-lp__herowrap) { width: 90vw; max-width: 1711px; }
  .hgl-lp__hero { padding-inline: max(calc(3vw + 20px), calc((100vw - 1711px) / 2 + 20px)); }
}

/* Широкий экран — больше колонок, а не шире колонки. */

@media (min-width: 1400px) {
  .hgl-lp__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .hgl-lp__tourpics { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .hgl-lp__stategrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1700px) {
  .hgl-lp__faq { columns: 3; column-gap: 48px; }
}

/* ── планшет: промежуточные ширины ────────────────────────────────────── */

@media (min-width: 901px) and (max-width: 1400px) {
  /* Лаки здесь уже, вылет за фон пересчитается из той же переменной. */
  .hgl-lp__hero { --peek-w: min(52vw, 880px); }
  .hgl-lp__joined { max-width: min(30vw, 400px); }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .hgl-lp__tourpics { grid-template-columns: 1fr 1fr; }
  .hgl-lp__tourpic, .hgl-lp__tourpic--big { min-height: 240px; }
}

/* ── первый экран: готовый баннер ─────────────────────────────────────── */

.hgl-lp__vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hgl-lp__heropic {
  position: relative;
  display: block;
  width: 100%;
  background: var(--lp-soft);
}

.hgl-lp__heropic img { width: 100%; height: auto; display: block; }

/* прямоугольник поверх нарисованной кнопки — цель для мыши и клавиатуры */
.hgl-lp__herohit {
  position: absolute;
  left: 8.2%;
  top: 83.6%;
  width: 14.6%;
  height: 5.4%;
  border-radius: 999px;
  transition: box-shadow .15s ease;
}

.hgl-lp__heropic:hover .hgl-lp__herohit { box-shadow: 0 0 0 3px rgba(82, 47, 73, .35); }
.hgl-lp__heropic:focus-visible { outline: none; }
.hgl-lp__heropic:focus-visible .hgl-lp__herohit { box-shadow: 0 0 0 4px var(--lp-black); }

.hgl-lp__heronote {
  max-width: 640px;
  margin: 18px calc(3vw + 20px) 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lp-graphite);
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .hgl-lp__herohit { left: 9.6%; top: 56.8%; width: 35.2%; height: 4.2%; }
  .hgl-lp__heronote { margin: 16px 20px 0; font-size: 13px; }
}

/* ── первый экран: фирменный фон + Лаки ───────────────────────────────── */

.hgl-lp__herotext { position: relative; z-index: 1; max-width: 760px; padding-bottom: 72px; }

.hgl-lp__peek {
  position: absolute;
  right: calc(3vw + 20px);
  bottom: 0;
  width: var(--peek-w);
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.hgl-lp__heropic, .hgl-lp__heronote, .hgl-lp__herohit { display: none; }

@media (max-width: 900px) {
  .hgl-lp__hero {
    /* Вылет за фон не переопределяем: общая формула считает его от той же
       --peek-w, и тело так же остаётся выше края жёлтого. Со своим числом
       на планшете тело садилось ровно на линию. */

    /* Ширину Лаки держим одной переменной, высоту считаем из неё же:
       пропорция картинки 1200×638. Отступ под текстом берётся отсюда,
       поэтому при смене ширины Лаки воздух над ним не разъезжается —
       раньше отступ был зашит числом и текст наезжал на картинку. */
    --peek-w: min(86vw, 420px);
    --peek-h: calc(var(--peek-w) * 0.5317);
    /* Своих 29px даёт нижний отступ подписи под кнопкой, здесь — добавка
       поверх них. Итоговый просвет над Лаки выходит около 39px. */
    --peek-air: 10px;

    background-image: url("assets/bg-hero-tall.webp");
    padding: 28px 22px var(--peek-over);
    min-height: 0;
  }

  .hgl-lp__herotext {
    padding-bottom: calc(var(--peek-h) + var(--peek-air));
    max-width: none;
  }

  .hgl-lp__peek { right: 0; left: 0; margin: 0 auto; width: var(--peek-w); bottom: 0; }
  .hgl-lp__joined { max-width: none; }
}

@media (max-width: 420px) {
  /* Меняем только ширину: высота и отступ пересчитаются сами. */
  .hgl-lp__hero { --peek-w: 96vw; }
}

/* правый край Лаки привязан к контейнеру сайта, включая широкие экраны */
@media (min-width: 1920px) {
  .hgl-lp__peek { right: max(calc(3vw + 20px), calc((100vw - 1711px) / 2 + 20px)); }
}
