/* Лендинг «Углей». Палитра — из карты лояльности, раскладка плотная:
   страница читается за один проход, главное на ней — меню. */
:root {
  --bg: #16110e;
  --bg2: #1f1713;
  --card: #241a15;
  --card2: #2d2019;
  --line: #3a2a20;
  --ember: #e8590c;
  --gold: #ffb703;
  --text: #f5efe9;
  --muted: #a89a90;
  --grad: linear-gradient(135deg, #e8590c 0%, #c92a2a 100%);
  --shell: min(1060px, 100% - 36px);
  --head-h: 58px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Russo One', Impact, sans-serif; font-weight: 400; }
/* Без этого браузер красит ссылки в свой синий — и логотип в шапке уезжает в синий */
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
.shell { width: var(--shell); margin: 0 auto; }
.hidden { display: none !important; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 60; height: var(--head-h);
  background: rgba(22, 17, 14, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 16px; height: var(--head-h); }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo .nm { font-family: 'Russo One', sans-serif; font-size: 14.5px; }
.top nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
@media (max-width: 760px) { .top nav { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--grad); color: #fff; border: 0; border-radius: 11px;
  padding: 11px 19px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--card2); border: 1px solid var(--line); color: var(--text); }
.btn.sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .top nav a:focus-visible, .logo:focus-visible,
.mnav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.top .btn { margin-left: auto; }
.top nav + .btn { margin-left: 0; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 58px 0 52px;
  background:
    radial-gradient(760px 320px at 22% -10%, rgba(232, 89, 12, .30) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero.has-photo { background-size: cover; background-position: center; }
.hero.has-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22,17,14,.94) 0%, rgba(22,17,14,.72) 55%, rgba(22,17,14,.5) 100%);
}
.hero .shell { position: relative; }
.hero h1 {
  font-size: clamp(30px, 5.4vw, 48px); line-height: 1.05; text-wrap: balance; max-width: 15ch;
}
.hero h1 .fire { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 12px; color: var(--muted); max-width: 44ch; font-size: 16px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-hint {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  font-size: 11px; color: var(--muted); background: rgba(22,17,14,.7);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- Полоса лояльности ---------- */
.loyalty { padding: 34px 0; border-bottom: 1px solid var(--line); }
.loy-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 820px) { .loy-in { grid-template-columns: 1fr; gap: 20px; } }
.eyebrow { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
h2 { font-size: clamp(20px, 3.2vw, 28px); line-height: 1.15; margin-top: 8px; text-wrap: balance; }
.loyalty p.lead { margin-top: 10px; color: var(--muted); }
.loy-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.perks { display: flex; flex-direction: column; gap: 10px; }
.perk {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px;
}
.perk .pi { font-size: 19px; line-height: 1.25; }
.perk b { display: block; font-size: 14.5px; }
.perk span { font-size: 13.5px; color: var(--muted); }

/* ---------- Меню: навигация слева, список справа ---------- */
.menu-sec { padding: 34px 0 44px; border-bottom: 1px solid var(--line); }
.menu-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.menu-head .note { color: var(--muted); font-size: 13.5px; margin-left: auto; }

.menu-grid { display: grid; grid-template-columns: 190px 1fr; gap: 30px; margin-top: 20px; align-items: start; }
.mnav { position: sticky; top: calc(var(--head-h) + 14px); display: flex; flex-direction: column; gap: 2px; }
.mnav button {
  text-align: left; background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: 8px 11px; border-radius: 9px; font-size: 14px; font-family: inherit;
  display: flex; align-items: center; gap: 9px; width: 100%;
}
.mnav button:hover { color: var(--text); background: var(--card); }
.mnav button[aria-current="true"] { background: var(--card2); color: var(--text); }
.mnav button[aria-current="true"] .dot { background: var(--ember); }
.mnav .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex: none; }
.mnav .cnt { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* На узком экране навигация превращается в липкую ленту над списком */
@media (max-width: 780px) {
  .menu-grid { grid-template-columns: 1fr; gap: 0; }
  .mnav {
    flex-direction: row; gap: 7px; overflow-x: auto; scrollbar-width: none;
    top: var(--head-h); background: var(--bg); padding: 11px 0 10px;
    margin-bottom: 6px; border-bottom: 1px solid var(--line); z-index: 40;
  }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav button {
    width: auto; white-space: nowrap; background: var(--card); border: 1px solid var(--line);
    border-radius: 999px; padding: 7px 13px; font-size: 13.5px;
  }
  .mnav button[aria-current="true"] { background: var(--grad); border-color: transparent; color: #fff; }
  .mnav .dot, .mnav .cnt { display: none; }
}

.mgroup { scroll-margin-top: calc(var(--head-h) + 62px); }
.mgroup + .mgroup { margin-top: 26px; }
.mgroup h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.mrows { margin-top: 8px; }
.mrow {
  display: flex; gap: 14px; align-items: baseline; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.mrow { flex-direction: column; align-items: stretch; gap: 7px; }
.mline { display: flex; gap: 14px; align-items: baseline; justify-content: space-between; }
.mrow .mn { font-size: 15px; }
.mrow .mv { color: var(--muted); font-size: 13px; }
.mrow .mp {
  font-family: 'Russo One', sans-serif; font-size: 15px; color: var(--gold);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mrow .mp .from { font-family: inherit; font-size: 12px; color: var(--muted); margin-right: 3px; }
.mrow.out { opacity: .45; }
.mrow .out-tag { font-size: 11px; color: var(--muted); }

/* Размеры — как плитки в шторке приложения, только развёрнутые */
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 10px; font-size: 12.5px; color: var(--muted);
}
.size b { font-family: 'Russo One', sans-serif; font-size: 13px; color: var(--gold); font-weight: 400; }
.size.out { opacity: .45; }
.size.out b { color: var(--muted); text-decoration: line-through; }

/* ---------- Фото и контакты ---------- */
.bottom { padding: 34px 0 40px; }
.bottom-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: start; }
@media (max-width: 820px) { .bottom-in { grid-template-columns: 1fr; gap: 22px; } }

.facts { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.fact { display: flex; gap: 11px; }
.fact .fi { font-size: 17px; line-height: 1.3; }
.fact .fk { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; display: block; }
.fact .fv { font-size: 15.5px; }
.fact .fv.todo { color: var(--muted); font-style: italic; }
.fact .fv a { color: var(--gold); }
.fact .fv a:hover { color: var(--gold); text-decoration: underline; }

/* Карта организации и бейдж с оценкой — оба виджеты Яндекса, грузятся лениво */
.map-box { display: flex; flex-direction: column; gap: 8px; }
.map-box iframe {
  width: 100%; height: clamp(240px, 34vw, 330px); border: 1px solid var(--line);
  border-radius: 14px; display: block; background: var(--card);
}
.map-link { font-size: 13px; color: var(--gold); align-self: flex-start; }
.map-link:hover { color: var(--gold); text-decoration: underline; }

.rating { margin-top: 16px; }
.rating iframe {
  width: 100%; max-width: 260px; height: 50px; border: 0; display: block;
  border-radius: 10px; overflow: hidden;
}

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 26px; }
.shot {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--card) center/cover no-repeat; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center; padding: 10px;
}
.shot.filled > * { display: none; }
.shot .si { font-size: 17px; opacity: .55; }
.shot .st { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.shot .sf { font-size: 10px; color: var(--line); font-family: ui-monospace, Menlo, Consolas, monospace; }
.shots-note { margin-top: 9px; font-size: 12px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 20px 0 34px; color: var(--muted); font-size: 13px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* Согласие на обработку данных — обязательная галочка при регистрации */
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ember); flex: none; }
.consent span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.consent a { color: var(--gold); }
.consent a:hover { text-decoration: underline; }

/* Плашка про куки */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150;
  background: var(--card2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: 720px; margin: 0 auto;
}
.cookie p { font-size: 13.5px; color: var(--muted); flex: 1; min-width: 240px; }
.cookie a { color: var(--gold); }
.cookie button {
  background: var(--grad); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.cookie button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- Модалка ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .74); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; max-width: 380px; width: 100%;
}
.modal h3 { font-size: 19px; }
.modal .sub { color: var(--muted); font-size: 13.5px; margin-top: 7px; }
.tabs { display: flex; gap: 5px; margin: 16px 0 4px; background: var(--bg2); padding: 4px; border-radius: 11px; }
.tabs button {
  flex: 1; background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 8px;
  font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.tabs button[aria-pressed="true"] { background: var(--card2); color: var(--text); }
.field { margin-top: 11px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-size: 15px; font-family: inherit;
}
.field input:focus { outline: 2px solid var(--ember); border-color: transparent; }
.modal .btn { width: 100%; margin-top: 16px; }
.modal .alt { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.modal .alt button { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 13px; text-decoration: underline; font-family: inherit; }
.notice {
  background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--ember);
  border-radius: 11px; padding: 14px 15px; margin-top: 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.notice b { font-size: 14px; }
.notice span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.notice .btn { margin-top: 4px; width: auto; align-self: flex-start; }

/* Шаг после регистрации: предложение привязать Telegram */
.linked-head { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.linked-ico { font-size: 26px; }
.linked-head b { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 18px; }
.linked-text { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
#form-linked .btn { width: 100%; margin-top: 12px; }
.link-code {
  margin-top: 12px; padding: 12px 14px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 11px; text-align: center;
}
.lc-hint { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.lc-code {
  display: block; margin-top: 6px; font-family: 'Russo One', monospace; font-weight: 400;
  font-size: 26px; letter-spacing: .22em; color: var(--gold); user-select: all;
}

.err { color: #ff6b6b; font-size: 13px; margin-top: 11px; }

#toast-stack {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 300;
  display: flex; flex-direction: column; gap: 7px; align-items: center; max-width: 92%;
}
.toast {
  background: var(--card2); border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 16px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.toast.ok { border-color: #74c69d; } .toast.err { border-color: #ff6b6b; }
