/* ============================================================
   ЛЕНДИНГ И ОКНО ВХОДА. Те же правила: стекло без теней,
   свечений и обводок, сильные скругления, Inter 10–18 px.
   Режим задаётся классом на <html>: .landing (лендинг),
   .landing.preview (смотрим город), без класса — игра.
   ============================================================ */

/* ---------- переключение режимов ---------- */
.top, .rail, .panel, .dock, #labels { transition: opacity 0.4s ease, transform 0.4s ease; }
.landing .top, .landing .rail, .landing .panel, .landing .dock, .landing #card, .landing #tip { opacity: 0; pointer-events: none !important; }
.landing .top { transform: translateY(-10px); }
.landing .dock { transform: translateX(-50%) translateY(14px); }
.landing:not(.preview) #labels { opacity: 0; }
/* на лендинге полоски загрузки нет: город там — фон под текстом; она видна только в игре и в режиме «Посмотреть город» */
.landing:not(.preview) #boot-loader { opacity: 0; visibility: hidden; }

#landing {
  position: absolute; inset: 0; z-index: 50; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: none;
  opacity: 0; visibility: hidden; transform: scale(1.015);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s 0.45s;
}
#landing::-webkit-scrollbar { display: none; }
.landing:not(.preview) #landing { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }

#l-shade {
  position: absolute; inset: 0; z-index: 49; pointer-events: none; opacity: 0; transition: opacity 0.45s;
  /* весь город притемнён наполовину, чтобы текст первого экрана читался поверх него; под меню — сильнее */
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.7) 0%, rgba(11, 12, 14, 0.5) 14%, rgba(11, 12, 14, 0.5) 100%);
}
.landing:not(.preview) #l-shade { opacity: 1; }

.preview-bar {
  position: absolute; z-index: 45; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px;
  transition: opacity 0.3s, transform 0.3s;
}
.landing.preview .preview-bar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ---------- каркас ---------- */
.l-wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; position: relative; }
.btn.sm { height: 32px; padding: 0 14px; }
.btn.lg { height: 44px; padding: 0 20px; }
.btn.xl { height: 52px; padding: 0 26px; font-size: 15px; }   /* кнопки первого экрана */
.btn.xl .ic { width: 18px; height: 18px; }
.center { text-align: center; margin: 0; }

.l-nav {
  position: sticky; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 5; margin-top: 12px;
  height: 48px; border-radius: 999px; padding: 0 8px 0 16px; display: flex; align-items: center; gap: 6px;
}
.l-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; }
.l-links { display: flex; margin-left: 14px; }
.l-links a { height: 32px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.l-links a:hover { background: var(--fill); color: var(--fg); }

/* ---------- первый экран ---------- */
.l-hero { min-height: calc(100svh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 0 20svh; position: relative; isolation: isolate; }
/* текст — по центру экрана, чуть выше середины, поверх города. Город притемнён дважды: #l-shade — весь и ровно,
   а этот переход — на весь первый экран (начинается под меню, отсюда −60px): вверху город виден, к тексту темнеет,
   внизу уходит в сплошной фон .l-body. Переход прокручивается вместе с текстом, поэтому текст всегда на тёмном */
.l-hero::after { content: ''; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); top: -60px; bottom: 0; pointer-events: none;
  /* много ступеней, чтобы не было видно границы */
  background: linear-gradient(180deg, rgba(11, 12, 14, 0) 0, rgba(11, 12, 14, 0.06) 16%, rgba(11, 12, 14, 0.3) 28%, rgba(11, 12, 14, 0.5) 40%,
    rgba(11, 12, 14, 0.62) 52%, rgba(11, 12, 14, 0.76) 64%, rgba(11, 12, 14, 0.88) 76%, rgba(11, 12, 14, 0.96) 88%, #0B0C0E 100%); }
.l-hero-text { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
/* заголовок первого экрана крупнее общей шкалы 10–18 px — по просьбе владельца */
.l-hero h1 { margin: 0; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.l-hero p { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: rgba(243, 245, 251, 0.78); }
.l-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding-top: 8px; }


/* ---------- разделы ---------- */
.l-body { background: #0B0C0E; padding-top: 40px; position: relative; }
.l-sec { padding-block: clamp(44px, 8svh, 88px); scroll-margin-top: 72px; }
.l-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px 18px; max-width: 560px; margin-inline: auto; text-align: center; }   /* заголовки разделов — по центру */
.eyebrow { font-size: 11px; font-weight: 600; color: var(--mint); text-transform: uppercase; letter-spacing: 0.08em; }
.l-head h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.l-head p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

.l-grid { display: grid; gap: 8px; }
.l-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.l-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.l-card { background: var(--fill); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: background-color 0.2s; }
.l-card:hover { background: var(--fill2); }
.l-card b { font-size: 15px; font-weight: 600; }
.l-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; font-size: 11px; font-weight: 700; }

.dist-top { display: flex; align-items: center; gap: 8px; }
.dist-top i { width: 9px; height: 9px; border-radius: 50%; }
.dist-top .mult { margin-left: auto; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--fill2); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.dist-rows { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.dist-rows b { font-size: 11px; font-weight: 600; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.l-card.locked { opacity: 0.6; }
.l-card.locked .mult { background: rgba(242, 193, 78, 0.16); color: var(--gold); }

@keyframes pulse { 50% { opacity: 0.6; } }

.l-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 0 4px 14px; }
.l-flow .pill { height: 30px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--fill2); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.l-flow .pill:first-child { padding: 0 12px; }
.l-flow i { font-style: normal; color: var(--faint); font-size: 13px; }
.ic-md.lg { width: 26px; height: 26px; align-self: flex-start; }
.ic-out { width: 26px; height: 26px; border-radius: 50%; background: var(--fill3); display: grid; place-items: center; }

/* вопросы — узкая колонка по центру страницы */
.l-faq { display: flex; flex-direction: column; gap: 6px; max-width: 720px; margin-inline: auto; }
#faq .l-more { justify-content: center; }
.l-faq .q { background: var(--fill); border-radius: 20px; }
.l-faq button { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 20px; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; text-align: left; }
.l-faq button svg { flex: none; color: var(--muted); transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.2, 1); }
.l-faq button[aria-expanded="true"] svg { transform: rotate(180deg); }
.l-faq .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s cubic-bezier(0.3, 0.8, 0.2, 1); }
.l-faq .a > div { overflow: hidden; }
.l-faq .a p { margin: 0; padding: 0 16px 16px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.l-faq .q.open .a { grid-template-rows: 1fr; }

.l-foot { display: flex; flex-direction: column; gap: 14px; padding-block: 8px 32px; font-size: 11px; color: var(--faint); }

/* ---------- профиль в игре ---------- */
.user-wrap { position: relative; }
.user-btn .ava, .ava.big { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.ava.big { width: 34px; height: 34px; font-size: 13px; flex: none; }
.user-menu { position: absolute; right: 0; top: 44px; width: 240px; border-radius: 22px; padding: 8px; display: flex; flex-direction: column; gap: 2px; z-index: 30; animation: menuIn 0.2s ease-out; transform-origin: top right; }
.user-menu.leaving { animation: menuOut 0.16s ease-in forwards; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
@keyframes menuOut { to { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.um-head { display: flex; align-items: center; gap: 10px; padding: 6px 6px 10px; }
.um-head .grow { display: flex; flex-direction: column; min-width: 0; }
.um-head .grow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-item { height: 36px; border: 0; border-radius: 14px; background: transparent; display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 13px; color: var(--fg); text-align: left; }
.um-item:hover { background: var(--fill); }
.um-item.danger { color: var(--red); }

/* ---------- окно входа ---------- */
.modal.auth { z-index: 60; }
.auth .sheet { width: min(380px, 100%); max-height: calc(100% - 8px); overflow-y: auto; scrollbar-width: none; }
.auth form { display: flex; flex-direction: column; gap: 10px; }
.fgroup { display: flex; flex-direction: column; }
.flabel { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 0 4px 6px; }
.auth .field { transition: background-color 0.2s; }
.auth .field:focus-within { background: var(--fill2); }
.auth .field input { font-size: 13px; font-weight: 500; }
.auth .field input::placeholder { color: var(--faint); font-weight: 400; }
.auth .field.err { background: rgba(255, 122, 122, 0.12); }
.ferr { font-size: 11px; color: var(--red); padding: 0 4px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.25s, opacity 0.25s, padding 0.25s; }
.ferr.on { max-height: 40px; opacity: 1; padding-top: 6px; }
.eye { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; margin-right: -8px; }
.eye.on { color: var(--mint); }
.auth .forgot { align-self: flex-end; padding: 8px 4px 0; }
.strength { display: flex; align-items: center; gap: 4px; padding: 8px 4px 0; }
.strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--fill2); transition: background-color 0.25s; }
.strength span { min-width: 64px; text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 11px; line-height: 1.45; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 6px; background: var(--fill2); flex: none; cursor: pointer; transition: background-color 0.2s; display: grid; place-items: center; }
.check input:checked { background: var(--mint); }
/* галочка — иконка check из спрайта поверх квадратика */
.check { position: relative; }
.check .tick { position: absolute; left: 7px; top: 5px; color: var(--mint-ink); pointer-events: none; transform: scale(0); transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.3, 1.5); }
.check input:checked + .tick { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.note-box { font-size: 11px; line-height: 1.45; color: var(--fg); background: var(--fill); border-radius: 14px; padding: 10px 12px; animation: paneIn 0.2s ease-out; }
#auth-submit .spin { display: none; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--mint-ink)); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); animation: spin 0.7s linear infinite; }
#auth-submit.loading .label { opacity: 0.6; }
#auth-submit.loading .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth .only-login { display: none; }
.auth.mode-login .only-login { display: initial; }
.auth.mode-login .only-reg { display: none; }
.auth.mode-login .fgroup.only-reg, .auth.mode-login label.check.only-reg { display: none; }
.divider { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--faint); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--fill2); }
.socials { display: flex; flex-direction: column; gap: 6px; }
.soc { height: 36px; border: 0; border-radius: 999px; background: var(--fill); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; min-width: 0; }
.soc:hover { background: var(--fill2); }
.soc i { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; font-weight: 700; font-style: normal; color: #fff; flex: none; }
.auth .shake { animation: shake2 0.36s ease; }
@keyframes shake2 { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- адаптив ---------- */
@media (max-width: 1023px) {
  .l-links { display: none; }
  .l-grid.g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .l-hero { padding-block: 0 12svh; }
  .l-hero-text { max-width: none; gap: 14px; }
  .l-grid.g3 { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .l-grid.g4 { grid-template-columns: 1fr; }
  .l-cta { align-self: stretch; } .l-cta .btn { flex: 1 1 100%; }
  .l-nav .glass-btn { display: none; }
  .preview-bar { left: 16px; right: 16px; transform: translateY(16px); justify-content: flex-end; }
  .landing.preview .preview-bar { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #landing { scroll-behavior: auto; }
  .user-menu, .note-box { animation: none; }
}
.l-credit { flex-basis: 100%; }
.l-credit a { color: var(--faint); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- разделы с разной раскладкой: сетка «Что за игра», сравнение доходов, пример, списки ---------- */
.l-ic { width: 38px; height: 38px; border-radius: 14px; background: var(--fill2); color: var(--mint); display: grid; place-items: center; flex: none; }
.l-bento { display: grid; gap: 8px; grid-template-columns: 1.3fr 1fr 1fr; }
.l-bento .big { grid-row: span 2; padding: 20px; gap: 10px; }
.l-bento .big > b { font-size: 18px; }
.l-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; padding-top: 12px; }
.l-kpis > div { background: var(--fill); border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.l-kpis b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.l-kpis span { font-size: 10px; color: var(--muted); line-height: 1.25; }
.l-card.accent, .l-card.accent:hover { background: rgba(25, 230, 140, 0.08); }
.l-card.gold, .l-card.gold:hover { background: rgba(242, 193, 78, 0.08); }
.l-card.row { flex-direction: row; align-items: flex-start; gap: 12px; }
.l-card.row > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.l-sub { padding: 22px 4px 10px; font-size: 13px; font-weight: 600; text-align: center; }
.l-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.l-split .l-card { padding: 20px; gap: 10px; }
.l-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.l-tag { height: 22px; padding: 0 10px; border-radius: 999px; background: var(--fill2); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; color: var(--muted); }
.l-tag.good { background: rgba(25, 230, 140, 0.16); color: var(--mint); }
.l-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.l-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.l-list li svg { flex: none; margin-top: 2px; color: var(--mint); }
.l-card.gold .l-list li svg { color: var(--gold); }
.l-example { margin-top: 8px; flex-direction: row; align-items: center; gap: 24px; padding: 20px; }
.l-example-text { flex: 1.2; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.l-example .dist-rows { flex: 1; font-size: 13px; gap: 8px 16px; }
.l-example .dist-rows b { font-size: 13px; }
.l-example .dist-rows .net { color: var(--mint); }
.l-note { margin: 12px auto 0; font-size: 11px; line-height: 1.5; color: var(--faint); max-width: 720px; text-align: center; }
@media (max-width: 1023px) {
  .l-bento { grid-template-columns: 1fr 1fr; }
  .l-bento .big { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 767px) {
  .l-bento, .l-split { grid-template-columns: 1fr; }
  .l-bento .big { grid-column: auto; }
  .l-example { flex-direction: column; align-items: stretch; gap: 14px; }
}

/* ============================================================
   РАЗДЕЛЫ С РЕНДЕРАМИ ГОРОДА. Картинки — img/landing (снимает
   tools/render-landing.mjs). Загружаются на подходе к ним и
   проявляются, когда готовы: класс .ok ставит landing.js.
   ============================================================ */
.l-pic { margin: 0; position: relative; overflow: hidden; }
.l-pic img, .sp-pic { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.l-pic img.ok, .sp-pic.ok { opacity: 1; }

/* орнамент у заголовка раздела: тонкие линии с точкой по бокам надписи */
.l-head .eyebrow { display: flex; align-items: center; gap: 12px; }
.l-head .eyebrow::before, .l-head .eyebrow::after { content: ''; width: 44px; height: 5px;
  background: radial-gradient(circle at calc(100% - 2.5px) 50%, var(--mint) 2px, transparent 2.6px), linear-gradient(90deg, transparent, var(--fill3)) 0 50% / calc(100% - 9px) 1px no-repeat; }
.l-head .eyebrow::after { transform: scaleX(-1); }

/* широкая полоса между разделами: верх и низ уходят в фон страницы, сама картинка едет чуть медленнее прокрутки
   (сдвиг ставит landing.js, для него у картинки запас по высоте) */
.l-wide { height: clamp(220px, 34vw, 640px); }
.l-wide img { height: 124%; will-change: transform; }
.l-wide::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #0B0C0E 0, rgba(11, 12, 14, 0) 24%, rgba(11, 12, 14, 0) 76%, #0B0C0E 100%); }

/* «Как играть»: строки «картинка — шаг — текст»; ярко горит та, что сейчас у середины экрана (.on ставит landing.js) */
.l-rows { display: flex; flex-direction: column; gap: clamp(24px, 6svh, 64px); padding-top: 14px; }
.l-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1fr); gap: 32px; align-items: center; opacity: 0.3; transition: opacity 0.4s ease; }
.l-row.on { opacity: 1; }
.l-shot { aspect-ratio: 4 / 3; border-radius: 28px; background: var(--fill); }
.l-row-h { display: flex; align-items: center; gap: 12px; }
.l-row-h .n { flex: none; }
.l-row-h b { font-size: 18px; line-height: 1.25; font-weight: 700; }
.l-row p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.sp-pic { width: 76px; height: 76px; flex: none; margin: -4px 0 -4px -4px; object-fit: contain; }

/* призыв между двумя тонкими линиями */
.l-strip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 24px 4px; margin-block: clamp(8px, 3svh, 32px); }
.l-strip::before, .l-strip::after, .l-line { content: ''; display: block; height: 5px;
  background: radial-gradient(circle at 50% 50%, var(--fill3) 2px, transparent 2.6px), linear-gradient(90deg, transparent, var(--fill2) 18%, var(--fill2) 82%, transparent) 0 50% / 100% 1px no-repeat; }
.l-strip::before, .l-strip::after { position: absolute; left: 0; right: 0; }
.l-strip::before { top: 0; }
.l-strip::after { bottom: 0; }
.l-strip b { font-size: 15px; line-height: 1.35; font-weight: 600; text-wrap: balance; }

/* «Здания»: сцена прилипает к экрану, пока под ней едет дорожка .lv-track; уровень ставит landing.js.
   Все уровни сняты одной камерой под самое высокое здание, поэтому низкие показаны крупнее (--z),
   а точка, вокруг которой меняется размер, — участок: здание растёт на месте */
.lv-track { height: 310svh; }
.lv-stage { position: sticky; top: 72px; height: min(100svh - 96px, 600px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(90% 80% at 50% 30%, #2A2D33, #16181C); display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.lv-pics { position: relative; height: 100%; pointer-events: none; transform: scale(var(--z, 1)); transform-origin: 50% 73%; transition: transform 0.6s cubic-bezier(0.3, 0.8, 0.2, 1); }
.lv-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.35s ease; }
.lv-pics img.on.ok { opacity: 1; }
.lv-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; padding: 24px 32px 24px 8px; min-width: 0; }
.lv-info { display: flex; flex-direction: column; gap: 8px; max-width: 320px; transition: opacity 0.2s ease-out; }
.lv-info .tag { font-size: 11px; font-weight: 600; color: var(--mint); text-transform: uppercase; letter-spacing: 0.08em; }
.lv-info > b { font-size: 18px; line-height: 1.25; font-weight: 700; }
.lv-info .dist-rows { font-size: 13px; gap: 8px 16px; padding-top: 4px; }
.lv-info .dist-rows b { font-size: 13px; }
.lv-dots { display: flex; gap: 6px; }
.lv-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--fill3); transition: width 0.3s ease, background-color 0.3s ease; }
.lv-dots button::after { content: ''; position: absolute; inset: -12px -3px; }   /* палец попадает по точке */
.lv-dots button.on { width: 28px; background: var(--mint); }

/* «Районы»: лента карточек, листается пальцем и стрелками; оттенок карточки — цвет района (--d) */
.l-rail { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.l-rail::-webkit-scrollbar { display: none; }
.dcard { flex: 0 0 calc((100% - 16px) / 3); scroll-snap-align: start; padding: 8px 8px 16px; gap: 12px; }
.dcard, .dcard:hover { background: color-mix(in srgb, var(--d) 9%, transparent); }
.dpic { aspect-ratio: 4 / 3; border-radius: 18px; background: color-mix(in srgb, var(--d) 14%, transparent); }
.dcard .dist-top, .dcard .dist-rows { padding-inline: 8px; }
.l-rail-nav { display: flex; align-items: center; gap: 8px; padding: 12px 4px 0; }
.rail-btn { background: var(--fill2); color: var(--fg); transition: background-color 0.2s; }
.rail-btn:hover { background: var(--fill3); }

/* последний экран: призыв, под ним остров целиком; верх и низ картинки растворяются в фоне */
.l-final { padding-top: clamp(44px, 8svh, 88px); }
.l-final .l-head { padding-bottom: 0; }
.l-final .l-head .btn { margin-top: 10px; }
.l-final-pic { height: clamp(210px, 42vw, 760px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 82%, transparent 100%); }

.l-foot .l-logo { color: var(--fg); }
.l-foot-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.l-foot-bot { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* разделы проявляются, когда до них докрутили (.rv и .in ставит landing.js; без скрипта всё видно сразу) */
.rv { opacity: 0; transition: opacity 0.7s ease; }
.rv.in { opacity: 1; }

@media (max-width: 1023px) {
  .l-row { gap: 20px; }
  .dcard { flex-basis: calc((100% - 8px) / 2); }
}
@media (max-width: 767px) {
  .l-row { grid-template-columns: 1fr; gap: 12px; }
  .l-strip { justify-content: center; text-align: center; }
  .lv-track { height: 260svh; }
  .lv-stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; height: min(100svh - 96px, 520px); }
  .lv-side { padding: 0 20px 20px; gap: 14px; }
  .dcard { flex-basis: 80%; }
  .l-foot-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .l-rail { scroll-behavior: auto; }
  .lv-pics { transition: none; }
}
