/* public/site/site.css — публичная витрина (лендинг). Тёмный лофт-бренд, только theme.css токены. */
html, body { height: 100%; }
body { min-height: 100%; display: flex; flex-direction: column; }

/* ── Шапка ── */
.s-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; padding-top: max(12px, env(safe-area-inset-top));
}
.s-logo { height: 46px; flex: 0 0 auto; }
.s-titles { display: flex; flex-direction: column; min-width: 0; }
.s-title { font-weight: 800; font-size: clamp(15px, 4.4vw, 22px); letter-spacing: .03em; }
.s-subtitle { color: var(--muted, #9a8f80); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.s-nav-link {
  margin-left: auto; flex: 0 0 auto; text-decoration: none;
  font-weight: 700; font-size: 14px; color: var(--text, #e8ddc9);
  background: rgba(60, 45, 34, .35); border: 1px solid var(--line, #3c2d22);
  border-radius: 999px; padding: 8px 14px;
}

/* ── Главная ── */
.s-main { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 18px; max-width: 720px; width: 100%; margin: 0 auto; box-sizing: border-box; }

.s-hero { text-align: center; padding: 18px 6px 4px; }

/* «Флайт» нарисованных бокалов — живой ассортимент бара (по типу пива) */
.s-hero-art { display: flex; justify-content: center; align-items: flex-end; gap: clamp(3px, 1.8vw, 12px); margin: 2px 0 18px; min-height: 56px; }
.s-hero-art .beer-art { width: clamp(34px, 11vw, 50px); height: auto; filter: drop-shadow(0 7px 14px rgba(0, 0, 0, .5)); opacity: 0; animation: s-glass-in .5s var(--ease-out, ease) forwards; animation-delay: calc(var(--i, 0) * .07s); }
.s-hero-art .beer-art:nth-child(2), .s-hero-art .beer-art:nth-child(5) { margin-bottom: 7px; }
.s-hero-art .beer-art:nth-child(3) { margin-bottom: 12px; }
@keyframes s-glass-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .s-hero-art .beer-art { animation: none; opacity: 1; } }
.s-hero-title { font-size: clamp(28px, 8vw, 46px); font-weight: 900; line-height: 1.05; margin: 0 0 14px; }
.s-hero-text { color: var(--muted, #9a8f80); font-size: clamp(14px, 3.6vw, 17px); line-height: 1.55; margin: 0 auto 22px; max-width: 540px; }
.s-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 16px; font-weight: 800; padding: 14px 22px; border-radius: 14px; text-decoration: none; }
.s-btn-ic { display: inline-flex; }
.s-btn-ic .ic { width: 1.2em; height: 1.2em; }
.s-hero-note { color: var(--muted2, #6e6456); font-size: 12.5px; margin: 16px 0 0; }

/* ── Тренды ── */
.s-trends { padding: 14px 16px; }
.s-trends-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.s-trends-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; }
.s-ttl-ic { display: inline-flex; }
.s-ttl-ic .ic { color: var(--orange-soft, #ffb877); }
.s-live { display: inline-flex; align-items: center; gap: 6px; color: var(--up, #3ad98a); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.s-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up, #3ad98a); box-shadow: 0 0 8px var(--up, #3ad98a); animation: s-pulse 1.6s infinite; }
@keyframes s-pulse { 50% { opacity: .35; } }

.s-movers { display: flex; flex-direction: column; gap: 2px; }
.s-mover { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line, #3c2d22); }
.s-mover:last-child { border-bottom: none; }
.s-mover-tick { color: var(--orange-soft, #ffb877); font-weight: 700; width: 4.2em; flex: 0 0 auto; }
.s-mover-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-mover-price { font-weight: 700; }
.s-mover-chg { font-weight: 800; width: 4.4em; text-align: right; flex: 0 0 auto; }
.s-mover-chg.up { color: var(--up, #3ad98a); }
.s-mover-chg.down { color: var(--down, #e2484a); }
.s-loading { color: var(--muted2, #6e6456); text-align: center; padding: 18px; font-size: 14px; }

/* ── Бегущая строка ── */
.s-ticker-wrap { overflow: hidden; border-top: 1px solid var(--line, #3c2d22); padding: 10px 0; }
.s-ticker { display: inline-flex; white-space: nowrap; will-change: transform; animation: s-marquee 40s linear infinite; }
@keyframes s-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.s-tk { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 14px; color: var(--muted, #9a8f80); }
.s-tk-sym { color: var(--orange-soft, #ffb877); font-weight: 700; }
.s-tk.up { color: var(--up, #3ad98a); }
.s-tk.down { color: var(--down, #e2484a); }
.s-tk-sep { color: var(--line2, #4a3a2a); }

@media (prefers-reduced-motion: reduce) {
  .s-ticker { animation: none; }
  .s-live-dot { animation: none; }
}

/* ── Бронирование столов (DEV-29) ── */
.s-muted, .muted { color: var(--muted, #9a8f80); }
.s-myres { padding: 14px 16px; margin: 0 auto; max-width: 720px; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
.s-myres[hidden] { display: none; }
.s-myres-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-myres-title { font-weight: 800; font-size: 15px; }
.s-myres-badge { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); }
.s-myres-badge.st-pending { color: var(--orange-soft); border-color: var(--orange-dim); background: rgba(255,122,24,.1); }
.s-myres-badge.st-confirmed { color: var(--up); border-color: var(--up-dim); background: rgba(58,217,138,.12); }
.s-myres-badge.st-seated { color: var(--up); border-color: var(--up-dim); }
.s-myres-info { font-size: 13px; color: var(--muted); }
.s-myres-pay { font-size: 13px; color: var(--orange-soft); font-weight: 700; }
.s-myres-note { font-size: 12.5px; color: var(--muted2); }
.s-myres-cancel { align-self: flex-start; margin-top: 4px; }

.s-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.s-modal[hidden] { display: none; }
.s-modal-backdrop { position: absolute; inset: 0; background: rgba(4,3,2,.68); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.s-modal-card { position: relative; width: 100%; max-width: 480px; margin: 0 10px; margin-bottom: max(10px, env(safe-area-inset-bottom)); padding: 20px 20px 22px; box-shadow: var(--shadow-3), var(--glow-soft); max-height: 92vh; overflow-y: auto; animation: s-modal-in .28s var(--ease-out, ease) both; }
@keyframes s-modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 560px) { .s-modal { align-items: center; } }
.s-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.s-modal-title { font-size: 19px; font-weight: 800; color: var(--orange-soft); }
.s-modal-x { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; cursor: pointer; background: rgba(0,0,0,.25); border: 1px solid var(--line2); position: relative; }
.s-modal-x::before, .s-modal-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; background: var(--muted); transform: translate(-50%,-50%) rotate(45deg); }
.s-modal-x::after { transform: translate(-50%,-50%) rotate(-45deg); }
.s-modal-go { width: 100%; margin-top: 6px; padding: 13px 18px; font-size: 16px; font-weight: 800; }

.s-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; text-align: left; }
.s-field > span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.s-field input { width: 100%; font: inherit; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; box-sizing: border-box; }
.s-field input:focus { outline: none; border-color: var(--orange-dim); }
.s-field-row { display: flex; gap: 12px; }
.s-field-row .s-field { flex: 1; min-width: 0; }
.s-book-deposit { font-size: 13px; line-height: 1.5; color: var(--muted); background: rgba(255,122,24,.07); border: 1px solid var(--orange-dim); border-radius: 12px; padding: 11px 13px; margin: 4px 0 12px; }
.s-book-deposit b { color: var(--orange-soft); }
.s-book-code-wrap { text-align: center; margin-bottom: 14px; }
.s-book-code-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.s-book-code { font-size: 40px; font-weight: 900; letter-spacing: .12em; color: var(--orange-soft); }
.s-book-deposit-info { font-size: 14px; line-height: 1.5; margin-bottom: 6px; text-align: left; }
.s-book-deposit-info p { margin: 0 0 8px; }
.s-book-pay { color: var(--text); }
.s-book-pay b { color: var(--orange-soft); }
