/* ============================================================
   AptFire Chat — лендинг и чат
   Тема: тёмный «emory/огонь» интерфейс
   ============================================================ */

:root {
  --bg:        #0b0908;
  --bg-2:      #100d0b;
  --panel:     #151110;
  --panel-2:   #1c1715;
  --line:      rgba(255, 255, 255, .08);
  --line-hot:  rgba(255, 122, 69, .35);
  --text:      #f6f1ed;
  --muted:     #a39991;
  --muted-2:   #6f665f;
  --fire:      #ff6b2c;
  --fire-2:    #ff9a3c;
  --gold:      #ffc46b;
  --grad:      linear-gradient(135deg, #ff5722 0%, #ff8f3f 55%, #ffc46b 100%);
  --shadow:    0 24px 70px rgba(0, 0, 0, .55);
  --radius:    18px;
  --mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:      'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(255, 107, 44, .35); color: #fff; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ── Фоновые угольки ── */
.embers { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ember {
  position: absolute; bottom: -20px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--fire-2); box-shadow: 0 0 10px 2px rgba(255, 140, 60, .7);
  opacity: 0; animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .8; }
  70%  { opacity: .45; }
  100% { transform: translate3d(30px, -105vh, 0) scale(.2); opacity: 0; }
}

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 12px; padding: 12px 22px;
  font-weight: 700; font-size: 14px; letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad); color: #1a0c05;
  box-shadow: 0 8px 26px rgba(255, 94, 34, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(255, 94, 34, .42), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .035); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); }
.btn-light { background: #fff5ea; color: #1a0c05; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.btn-light:hover { box-shadow: 0 22px 50px rgba(255, 107, 44, .25); }
.btn-lg { padding: 16px 28px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 6px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(26, 12, 5, .3); border-top-color: #1a0c05;
  animation: spin .7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.arrow { font-size: 18px; line-height: 1; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Шапка ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 8, .78); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 76px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 0 24px rgba(255, 107, 44, .4);
}
.brand-mark svg { width: 22px; height: 22px; fill: #1c0c04; }
.brand-mark.small { width: 30px; height: 30px; border-radius: 9px; }
.brand-mark.small svg { width: 19px; height: 19px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.05em; }
.brand-name span { color: var(--fire-2); }
.brand-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px;
  transform: translateY(-6px);
}
.main-nav { display: flex; gap: 28px; margin-left: 12px; }
.main-nav a { font-size: 14px; color: var(--muted); font-weight: 600; transition: color .2s ease; }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 10px; margin-left: auto; }
.burger { display: none; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 11px 9px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 4px 0; }

/* ── Hero ── */
.hero { position: relative; padding: 100px 0 110px; isolation: isolate; z-index: 1; }
.hero-glow {
  position: absolute; z-index: -1; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 92, 30, .16) 0%, rgba(255, 92, 30, .05) 40%, transparent 70%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
  border: 1px solid var(--line-hot); border-radius: 99px; background: rgba(255, 107, 44, .07);
  font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .01em;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 4px rgba(255, 107, 44, .15); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 107, 44, 0); } }

.hero h1 {
  margin: 26px 0 22px; font-size: clamp(46px, 5.4vw, 76px); line-height: 1.04;
  font-weight: 800; letter-spacing: -.055em;
}
.hero h1 em {
  font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; position: relative;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  background: var(--grad); border-radius: 3px; filter: blur(6px); opacity: .6;
}
.hero-lead { color: var(--muted); font-size: 17px; max-width: 510px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-social { display: flex; align-items: center; gap: 16px; margin-top: 44px; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--bg); background: var(--c); color: #fff; font-size: 13px; font-weight: 800;
  margin-left: -11px;
}
.avatars span:first-child { margin-left: 0; }
.hero-social p { margin: 0; font-size: 13px; line-height: 1.4; }
.hero-social strong { color: var(--text); }
.hero-social p span { color: var(--muted-2); }

/* ── Мок чата ── */
.hero-visual { position: relative; }
.visual-halo {
  position: absolute; inset: -60px -40px; z-index: -1;
  background: radial-gradient(circle at 60% 50%, rgba(255, 107, 44, .22), transparent 62%);
  filter: blur(30px);
}
.chat-mock {
  background: linear-gradient(160deg, rgba(30, 24, 20, .96), rgba(17, 14, 12, .98));
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; box-shadow: var(--shadow);
  overflow: hidden; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 50% { transform: perspective(1200px) rotateY(-1deg) rotateX(1deg) translateY(-8px); } }
.mock-topbar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #4a4039; }
.mock-dots i:first-child { background: #ff6b2c; }
.mock-title { font-family: var(--mono); font-size: 12px; color: var(--text); }
.mock-online { margin-left: auto; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mock-online i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc9b; box-shadow: 0 0 8px #2ecc9b; }
.mock-body { padding: 20px 18px 8px; min-height: 350px; }
.mock-day { text-align: center; font-family: var(--mono); font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 22px; }
.mock-msg { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.mock-avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 12px; font-weight: 800; }
.mock-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mock-meta b { font-size: 12px; }
.mock-meta time { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.mock-bubble { font-size: 13.5px; color: #ded6cf; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 14px; max-width: 320px; line-height: 1.5; }
.mock-me { justify-content: flex-end; }
.mock-me .mock-meta { justify-content: flex-end; }
.mock-me .mock-bubble { background: linear-gradient(135deg, rgba(255, 107, 44, .22), rgba(255, 154, 60, .12)); border-color: var(--line-hot); border-radius: 14px 4px 14px 14px; color: #ffe9db; }
.typing { display: flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: 11px; margin: 4px 0 12px 44px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--fire-2); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.typing span { margin-left: 6px; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.mock-input { display: flex; align-items: center; gap: 10px; margin: 10px 18px 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted-2); font-size: 12px; background: rgba(255,255,255,.02); }
.mock-input button { margin-left: auto; background: var(--grad); color: #1a0c05; border: 0; border-radius: 8px; width: 28px; height: 28px; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(23, 19, 16, .92); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.4); backdrop-filter: blur(10px);
  animation: floatCard 6s ease-in-out infinite;
}
.float-card-1 { left: -36px; top: 90px; }
.float-card-2 { right: -28px; bottom: 70px; animation-delay: -3s; }
@keyframes floatCard { 50% { transform: translateY(-10px); } }
.float-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,107,44,.14); font-size: 15px; }
.float-card b { display: block; font-size: 12px; }
.float-card small { color: var(--muted-2); font-size: 10px; }

/* ── Бегущая строка каналов ── */
.ticker { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; padding: 14px 0; position: relative; z-index: 1; }
.ticker-track { display: flex; gap: 26px; width: max-content; animation: ticker 32s linear infinite; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ticker-track span:not(.sep) { color: #c4b8ae; }
.ticker-track .sep { color: var(--fire); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Секции ── */
.section { padding: 110px 0; position: relative; z-index: 1; }
.section-head { max-width: 620px; margin-bottom: 54px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--fire-2); font-weight: 700; }
.section-head h2 { margin: 14px 0 16px; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -.045em; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { border-color: var(--line-hot); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,107,44,.12); border: 1px solid var(--line-hot); color: var(--fire-2); font-size: 20px; font-weight: 700; margin-bottom: 22px; }
.feature-card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.03em; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 460px; }
.feature-stat { margin-top: 26px; display: flex; align-items: baseline; gap: 10px; }
.feature-stat b { font-family: var(--mono); font-size: 22px; color: var(--gold); }
.feature-stat span { color: var(--muted-2); font-size: 12px; }
.mini-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mini-channels span { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: rgba(0,0,0,.2); }
.feature-accent { background: linear-gradient(135deg, rgba(255,107,44,.1), rgba(255,255,255,.012)); border-color: var(--line-hot); }
.reaction-row { display: flex; gap: 10px; margin-top: 24px; }
.reaction-row button { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--text); font-size: 15px; transition: transform .2s ease, border-color .2s ease; }
.reaction-row button:hover { transform: translateY(-3px) scale(1.05); border-color: var(--line-hot); }
.reaction-row small { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 4px; }

/* ── Шаги ── */
.how { background: linear-gradient(to bottom, transparent, rgba(255,107,44,.035), transparent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 24px; position: relative; }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 46px; height: 2px; background: var(--grad); }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--fire-2); }
.step h3 { margin: 14px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ── CTA ── */
.cta-section { padding: 40px 0 120px; position: relative; z-index: 1; }
.cta-box { position: relative; overflow: hidden; text-align: center; border: 1px solid var(--line-hot); border-radius: 26px; padding: 76px 24px; background: radial-gradient(ellipse at 50% 120%, rgba(255,107,44,.26), transparent 60%), linear-gradient(160deg, #1b1411, #100d0b); }
.cta-flare { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 500px; height: 260px; background: radial-gradient(ellipse, rgba(255,140,60,.22), transparent 70%); filter: blur(20px); pointer-events: none; }
.cta-box h2 { position: relative; margin: 14px 0 16px; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.05em; }
.cta-box p { position: relative; color: var(--muted); margin: 0 auto 30px; max-width: 520px; }
.cta-box small { display: block; margin-top: 18px; color: var(--muted-2); font-size: 12px; }

/* ── Подвал ── */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; position: relative; z-index: 1; background: rgba(0,0,0,.25); }
.footer-inner { display: flex; align-items: center; gap: 28px; }
.footer-inner p { color: var(--muted-2); font-size: 12px; margin: 0 auto 0 0; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner nav a { font-size: 12px; color: var(--muted); }
.footer-inner nav a:hover { color: var(--fire-2); }

/* ── Модальное окно ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 4, 3, .78); backdrop-filter: blur(10px);
  animation: fadeIn .2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  position: relative; width: min(420px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: linear-gradient(165deg, #1b1512, #100d0b);
  border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 36px 34px 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7); animation: modalIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-glow { position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 280px; height: 180px; background: radial-gradient(ellipse, rgba(255,107,44,.22), transparent 70%); pointer-events: none; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); font-size: 20px; line-height: 1; }
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.1); }
.modal-head { position: relative; text-align: center; margin-bottom: 24px; }
.modal-head .brand-mark { margin: 0 auto 16px; }
.modal-head h2 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.04em; }
.modal-head p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.25); margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; transition: all .2s ease; }
.auth-tab.active { background: var(--grad); color: #1a0c05; box-shadow: 0 4px 14px rgba(255,107,44,.3); }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: block; font-size: 12px; font-weight: 700; color: #d8cfc8; }
.input-wrap { position: relative; margin-top: 7px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.input-wrap input {
  width: 100%; padding: 12px 14px 12px 38px; border-radius: 11px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); color: var(--text); font-size: 13.5px;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.input-wrap input::placeholder { color: var(--muted-2); }
.input-wrap input:focus { border-color: var(--line-hot); box-shadow: 0 0 0 3px rgba(255,107,44,.1); }
.input-wrap input.invalid { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkbox { display: flex !important; align-items: center; gap: 8px; font-size: 12px !important; font-weight: 500 !important; color: var(--muted) !important; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox span { width: 15px; height: 15px; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.3); flex-shrink: 0; position: relative; }
.checkbox input:checked + span { background: var(--grad); border-color: transparent; }
.checkbox input:checked + span::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #1a0c05; font-size: 11px; font-weight: 800; }
.checkbox.terms { margin-top: 2px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--fire-2); font-size: 12px; font-weight: 700; }
.link-btn:hover { text-decoration: underline; }
.form-foot { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.invite-note {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 13px 14px;
  border: 1px solid var(--line-hot); border-radius: 12px; background: rgba(255, 107, 44, .06);
}
.invite-icon { font-size: 15px; line-height: 1.3; }
.invite-note b { display: block; font-size: 12px; color: var(--gold); }
.invite-note p { margin: 4px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.invite-note a { margin-left: auto; align-self: center; white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--fire-2); }
.invite-note a:hover { text-decoration: underline; }
.modal-note { text-align: center; font-size: 10.5px; color: var(--muted-2); margin: 14px 0 0; }
.field-error { color: #ff6b6b; font-size: 11px; margin-top: 5px; display: none; }
.field-error.show { display: block; }
.form-error {
  border: 1px solid rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .09);
  color: #ffb3b3; border-radius: 11px; padding: 10px 13px; font-size: 12px;
  margin-bottom: 16px; animation: msgIn .25s ease;
}
.form-error[hidden] { display: none; }
.captcha-box {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px dashed rgba(255, 196, 107, .5); border-radius: 11px;
  background: rgba(255, 196, 107, .06); font-size: 12px; color: var(--gold);
}
.captcha-box button { margin-left: auto; width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line); background: rgba(0,0,0,.3); }
.toast.error { border-color: rgba(229, 72, 77, .5); color: #ffb3b3; }
.app-shell.glitch { animation: glitch .28s steps(2) 4; }
@keyframes glitch {
  0%, 100% { transform: translateX(0); filter: none; }
  33% { transform: translateX(4px); filter: hue-rotate(30deg); }
  66% { transform: translateX(-3px); filter: saturate(1.8); }
}
.broken-status { color: #ff8f8f !important; }

/* ── Чат после входа ── */
.app-shell { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 260px 1fr; background: var(--bg); animation: fadeIn .25s ease; }
.app-shell[hidden] { display: none; }
.app-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-2); padding: 22px 14px; }
.app-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; font-weight: 800; font-size: 18px; letter-spacing: -.04em; }
.app-brand span span { color: var(--fire-2); }
.app-brand small { font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .1em; margin-left: 5px; text-transform: uppercase; }
.side-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted-2); padding: 0 12px; margin: 0 0 10px; }
.channel-list { display: flex; flex-direction: column; gap: 3px; }
.channel { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 13px; transition: all .2s ease; }
.channel:hover { background: rgba(255,255,255,.05); color: var(--text); }
.channel.active { background: rgba(255,107,44,.12); color: var(--gold); }
.channel i { margin-left: auto; font-style: normal; font-size: 10px; background: var(--fire); color: #1a0c05; border-radius: 99px; padding: 1px 6px; font-weight: 700; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.user-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #1a0c05; font-weight: 800; font-size: 13px; }
.side-user b { display: block; font-size: 12.5px; }
.side-user small { display: block; font-size: 10px; color: var(--muted-2); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.logout { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 17px; padding: 4px; }
.logout:hover { color: var(--fire-2); }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 26px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.app-topbar h3 { margin: 0; font-family: var(--mono); font-size: 15px; }
.app-topbar p { margin: 4px 0 0; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.app-top-actions { display: flex; gap: 8px; }
.app-top-actions button { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); font-size: 17px; }
.messages { flex: 1; overflow-y: auto; padding: 26px; scroll-behavior: smooth; }
.msg { display: flex; gap: 12px; margin-bottom: 18px; animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg .msg-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c, var(--grad)); color: #fff; font-size: 12px; font-weight: 800; }
.msg-body b { font-size: 13px; }
.msg-body time { font-family: var(--mono); font-size: 10px; color: var(--muted-2); margin-left: 8px; }
.msg-body p { margin: 4px 0 0; font-size: 14px; color: #ddd4cd; max-width: 640px; }
.msg.me { flex-direction: row-reverse; }
.msg.me .msg-body { text-align: right; }
.msg.me .msg-body p { display: inline-block; text-align: left; background: linear-gradient(135deg, rgba(255,107,44,.2), rgba(255,154,60,.1)); border: 1px solid var(--line-hot); border-radius: 4px 12px 12px 12px; padding: 9px 13px; }
.msg.system { justify-content: center; }
.msg.system span { font-family: var(--mono); font-size: 11px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; }
.composer { display: flex; gap: 10px; padding: 16px 26px 22px; border-top: 1px solid var(--line); }
.composer input { flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); outline: none; font-size: 14px; }
.composer input:focus { border-color: var(--line-hot); box-shadow: 0 0 0 3px rgba(255,107,44,.1); }
.composer button { width: 44px; height: 44px; border-radius: 12px; border: 0; flex-shrink: 0; }
.composer .attach { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); font-size: 20px; }
.composer .send { background: var(--grad); color: #1a0c05; font-size: 17px; }

/* ── Тосты ── */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px);
  z-index: 200; padding: 13px 22px; border-radius: 12px; background: #1e1815;
  border: 1px solid var(--line-hot); box-shadow: 0 16px 40px rgba(0,0,0,.5);
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Полоса последних боёв ── */
.matches { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.matches-grid { display: grid; grid-template-columns: 150px repeat(3, 1fr); gap: 14px; align-items: center; padding: 12px 0; }
.matches-label {
  display: flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 10px; letter-spacing: .14em; color: var(--muted);
}
.match-card { display: flex; align-items: center; gap: 12px; margin: 0; min-width: 0; }
.match-card img { width: 110px; height: 62px; flex: 0 0 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.match-card figcaption { font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-card figcaption span { display: block; font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted-2); }

/* ── Компактные блоки для одного экрана ── */
.mini-features { display: flex; gap: 22px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.mini-features > div { display: flex; align-items: center; gap: 10px; }
.mini-features span {
  width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center;
  border-radius: 9px; background: rgba(255, 107, 44, .1); border: 1px solid var(--line-hot);
  color: var(--fire-2); font-size: 14px; font-weight: 700;
}
.mini-features b { display: block; font-size: 12px; line-height: 1.3; }
.mini-features small { display: block; color: var(--muted-2); font-size: 10.5px; line-height: 1.3; }

.band { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.band-item { display: flex; align-items: center; gap: 13px; padding: 18px 22px; border-right: 1px solid var(--line); }
.band-item:last-child { border-right: 0; }
.band-icon {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border-radius: 11px; background: rgba(255, 107, 44, .1); border: 1px solid var(--line-hot);
  color: var(--fire-2); font-size: 17px; font-weight: 700;
}
.band-item b { display: block; font-size: 13px; line-height: 1.35; }
.band-item small { display: block; color: var(--muted-2); font-size: 11px; line-height: 1.35; }
.band-item-cta .btn { margin-left: auto; }
.site-footer { padding: 16px 0; }
.footer-inner .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.footer-inner .brand-mark svg { width: 18px; height: 18px; }
.footer-inner .brand-name { font-size: 17px; }

/* ── Full HD: всё помещается в один экран без прокрутки ── */
@media (min-width: 1200px) and (min-height: 700px) {
  html, body { height: 100%; overflow: hidden; }
  body { display: flex; flex-direction: column; }
  .site-header { flex: 0 0 auto; }
  .screen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .hero { flex: 1 1 auto; min-height: 0; padding: 26px 0; display: flex; align-items: center; }
  .hero-grid { align-items: center; }
  .hero h1 { margin: 18px 0 14px; font-size: clamp(50px, 4.6vw, 72px); }
  .hero-lead { font-size: 16px; margin-bottom: 24px; }
  .hero-social { margin-top: 24px; }
  .mini-features { margin-top: 22px; padding-top: 16px; }
  .mock-body { min-height: 310px; padding: 16px 18px 4px; }
  .mock-msg { margin-bottom: 14px; }
  .mock-day { margin-bottom: 14px; }
  .matches { flex: 0 0 auto; }
  .matches-grid { padding: 10px 0; }
  .band { flex: 0 0 auto; }
  .band-item { padding: 15px 22px; }
  .site-footer { flex: 0 0 auto; }
}

/* ── Адаптив ── */
@media (max-width: 1000px) {
  .hero { padding: 70px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px 24px 20px; background: rgba(11,9,8,.97); border-bottom: 1px solid var(--line); margin: 0; }
  .main-nav.open a { padding: 10px 0; }
  .burger { display: block; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-features { flex-wrap: wrap; }
  .matches-grid { grid-template-columns: 1fr 1fr; }
  .matches-label { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header-inner { height: 68px; gap: 12px; }
  .brand-tag { display: none; }
  .header-actions .btn-ghost { display: none; }
  .main-nav.open { top: 68px; }
  .hero { padding: 54px 0 70px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .float-card { display: none; }
  .chat-mock { transform: none; animation: none; }
  .section { padding: 76px 0; }
  .feature-card { padding: 24px; }
  .cta-box { padding: 56px 20px; }
  .band-grid { grid-template-columns: 1fr; }
  .band-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .band-item:last-child { border-bottom: 0; }
  .band-item-cta { flex-wrap: wrap; }
  .band-item-cta .btn { margin-left: 0; }
  .matches-grid { grid-template-columns: 1fr; }
  .match-card img { width: 96px; flex-basis: 96px; height: 54px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { margin-right: 0; }
  .footer-inner nav { width: 100%; flex-wrap: wrap; }
  .modal { padding: 30px 22px 24px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .messages { padding: 18px; }
  .composer { padding: 14px; }
  .app-topbar { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
