/* ═══════════════════════════════════════════════════
   LOT-CLICK 2.0 — style.css
   Mobile-first. Single file. Zero conflicts.
   April 2026
   ═══════════════════════════════════════════════════ */

/* ─── RESET ─── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

/* ─── VARIABLES (Dark theme default) ─── */
:root, [data-theme="dark"] {
  --bg: #0E0E0E;
  --bg2: #1A1F2B;
  --card: #1A1F2B;
  --text: #F5F3EE;
  --text2: #8B8680;
  --border: rgba(255,255,255,.08);
  --red: #D6001C;
  --red-hover: #B00016;
  --gold: #C8A850;
  --gold-dim: rgba(200,168,80,.08);
  --success: #22C55E;
  --warning: #F59E0B;
  --font-h: 'Manrope', sans-serif;
  --font-b: 'Inter', sans-serif;
  --radius: 4px;
  --tr: .2s ease;
}

[data-theme="light"] {
  --bg: #F5F3EE;
  --bg2: #FFFFFF;
  --card: #FFFFFF;
  --text: #1a1a1a;
  --text2: #666;
  --border: #E0DDD8;
  --gold-dim: rgba(200,168,80,.06);
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 {
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(24px, 6vw, 48px); margin-bottom: 12px; }
h2 { font-size: clamp(18px, 4vw, 32px); margin-bottom: 8px; }
h3 { font-size: clamp(16px, 3vw, 22px); }
h1 em, h2 em { color: var(--red); font-style: normal; }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 24px 0; border-top: 1px solid var(--border); }
.section-label {
  font-family: var(--font-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.section-title { margin-bottom: 8px; }

/* ─── LOGO WITH ANIMATION ─── */
.nav-logo {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 1px;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
.nav-logo .logo-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  animation: logoPulse 2s ease-in-out infinite;
  box-shadow: 0 0 4px var(--red);
  vertical-align: middle;
  margin: 0 1px;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 3px var(--red); }
  50% { box-shadow: 0 0 10px var(--red), 0 0 20px rgba(214,0,28,.3); }
}
.nav-logo small {
  display: block;
  font-family: var(--font-b);
  font-size: 8px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .5px;
  line-height: 1;
  margin-top: 2px;
}

/* ─── SOVA WIDGET (floating) ─── */
.sova-fab {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 56px;
  height: 56px;
  z-index: 200;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(200,168,80,.4));
  animation: sovaFloat 3s ease-in-out infinite;
  transition: transform .2s;
}
.sova-fab:hover { transform: scale(1.1); }
@keyframes sovaFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.sova-window {
  position: fixed;
  bottom: 84px;
  right: 16px;
  width: calc(100vw - 32px);
  max-width: 380px;
  max-height: 70vh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 201;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.sova-window.open { display: flex; }
.sova-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sova-header h3 { font-size: 14px; }
.sova-close { background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; }
.sova-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  max-height: 50vh;
}
.sova-msg {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.sova-msg.bot { background: var(--bg2); border-left: 3px solid var(--gold); }
.sova-msg.user { background: rgba(214,0,28,.08); text-align: right; }
.sova-input {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}
.sova-input input {
  flex: 1;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}
.sova-input button {
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* ─── TOP TICKER (red live bar) ─── */
.top-ticker {
  background: var(--red);
  color: #fff;
  height: 36px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}
.top-ticker-inner {
  display: inline-block;
  padding-left: 100%;
  animation: tickerSlide 30s linear infinite;
}
.top-ticker-inner span {
  display: inline;
  padding: 0 40px 0 0;
}
.top-ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerSlide { 0%{transform:translateX(0)} 100%{transform:translateX(-100%)} }

/* ─── NAV (sticky) ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo small {
  font-size: 9px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .5px;
  font-family: var(--font-b);
}

/* CSS-only burger */
#nav-toggle { display: none; }
.burger {
  width: 48px; height: 48px;
  display: flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 1px; transition: var(--tr);
}
#nav-toggle:checked ~ .nav .burger span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
#nav-toggle:checked ~ .nav .burger span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .nav .burger span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-menu {
  max-height: 0; overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: max-height .3s ease;
}
#nav-toggle:checked ~ .nav-menu { max-height: 500px; }
.nav-menu a {
  display: block; padding: 12px 16px;
  font-size: 15px; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.nav-menu a:active { background: var(--bg2); }

/* ─── BUTTONS ─── */
.btn {
  display: block; text-align: center;
  padding: 14px 24px; min-height: 48px;
  font-size: 15px; font-weight: 700;
  border: none; border-radius: var(--radius);
  cursor: pointer; transition: var(--tr);
  text-decoration: none;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover, .btn-red:active { background: var(--red-hover); color: #fff; }
.btn-outline { border: 1px solid var(--border); color: var(--text2); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--text); }
.btn + .btn { margin-top: 8px; }

/* ─── HERO ─── */
.hero { padding: 16px 0 12px; }
.hero-live {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(214,0,28,.06); border: 1px solid rgba(214,0,28,.15);
  padding: 4px 12px; font-size: 12px; font-weight: 600;
  border-radius: var(--radius); margin-bottom: 12px;
}
.hero-live .dot {
  width: 6px; height: 6px; background: var(--success);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-desc { font-size: 14px; color: var(--text2); margin-bottom: 12px; }
.hero .scarcity { font-size: 12px; color: var(--text2); margin-top: 8px; }
.hero .scarcity strong { color: var(--red); }

/* ─── STATS ─── */
.stats { display: flex; gap: 3px; margin: 12px 0; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 70px;
  background: var(--card); border: 1px solid var(--border);
  padding: 8px 6px; text-align: center; border-radius: var(--radius);
}
.stat-num { font-family: var(--font-h); font-size: 14px; font-weight: 800; }
.stat-num.red { color: var(--red); }
.stat-label { font-size: 9px; color: var(--text2); margin-top: 1px; }

/* ─── CARDS ─── */
.card {
  background: var(--card); border: 1px solid var(--border);
  padding: 12px; margin-bottom: 4px; border-radius: var(--radius);
}
.card-row { display: flex; justify-content: space-between; align-items: center; }

/* ─── CASES (Было/Стало) ─── */
.case { position: relative; }
.case-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2);
  color: var(--success); padding: 2px 8px;
  font-size: 10px; font-weight: 700; border-radius: var(--radius);
}
.case-cat { font-size: 12px; color: var(--gold); font-weight: 600; margin-bottom: 3px; }
.case-old { font-size: 12px; color: var(--text2); }
.case-old s { color: var(--text2); }
.case-price { font-family: var(--font-h); font-size: 18px; font-weight: 800; }
.case-save { font-size: 11px; color: var(--success); font-weight: 600; margin-top: 2px; }

/* ─── STEPS ─── */
.step { display: flex; gap: 10px; align-items: flex-start; }
.step-num { font-family: var(--font-h); font-size: 22px; font-weight: 800; color: var(--red); width: 28px; flex-shrink: 0; }
.step-title { font-weight: 700; font-size: 14px; }
.step-desc { font-size: 12px; color: var(--text2); }

/* ─── FAQ ─── */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  padding: 12px 0; font-weight: 600; font-size: 14px;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; font-size: 18px; color: var(--gold); }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 0 12px; font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ─── ABOUT ─── */
.about-card { margin-bottom: 4px; }
.about-name { font-family: var(--font-h); font-size: 16px; font-weight: 800; }
.about-role { font-size: 11px; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.about-text { font-size: 13px; color: var(--text2); }

/* ─── REVIEWS ─── */
.review { border-left: 3px solid var(--gold); margin-bottom: 4px; }
.review-author { font-size: 11px; color: var(--gold); font-weight: 600; margin-bottom: 2px; }
.review-text { font-size: 13px; line-height: 1.5; }
.review-meta { font-size: 10px; color: var(--text2); margin-top: 2px; }

/* ─── TEAM PHOTO ─── */
.team-photo { width: 100%; border-radius: 8px; margin: 8px 0; }

/* ─── MASCOT ─── */
.mascot { display: block; margin: 0 auto 12px; max-width: 200px; transition: transform .3s; }
.mascot:hover { transform: scale(1.03) rotate(-2deg); }

/* ─── TICKER ─── */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 6px 0; font-size: 12px; color: var(--text2);
}
.ticker-inner { display: inline-block; animation: tickerScroll 60s linear infinite; }
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item { display: inline; margin-right: 32px; }
.ticker-item b { color: var(--gold); margin-right: 4px; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 12px 16px; font-size: 12px; color: var(--text2);
  display: flex; gap: 12px; align-items: center; justify-content: center;
  z-index: 200;
}
.cookie-banner[hidden] { display: none; }

/* ─── FOOTER ─── */
.footer {
  padding: 20px 0; border-top: 1px solid var(--border);
  text-align: center; font-size: 11px; color: var(--text2);
}
.footer a { color: var(--gold); }
.footer-links { margin-top: 6px; }
.footer-links a { margin: 0 4px; }

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-green { color: var(--success); }
.text-gray { color: var(--text2); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 10px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════
   TABLET (768px+)
   ═══════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 40px 0; }
  .hero { padding: 32px 0 24px; }
  .nav { height: 64px; padding: 0 24px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 11px; }
  .cases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .cases-grid .card { margin-bottom: 0; }
  .steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
  .steps-grid .card { margin-bottom: 0; }
  .reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .reviews-grid .card { margin-bottom: 0; }
  .btn { display: inline-block; width: auto; }
  .btn + .btn { margin-top: 0; margin-left: 8px; }
}

/* ═══════════════════════════════════════════════════
   DESKTOP (1200px+)
   ═══════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .container { padding: 0 40px; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 32px; }
  .nav { height: 64px; padding: 0 32px; gap: 24px; }
  .nav-logo { font-size: 18px; }

  /* Desktop nav: no burger, inline links */
  #nav-toggle, .burger { display: none; }
  .nav-menu {
    max-height: none; overflow: visible;
    display: flex; gap: 16px;
    background: none; border: none;
    align-items: center;
  }
  .nav-menu a {
    padding: 0; border: none;
    font-size: 12px; color: var(--text2);
    white-space: nowrap;
  }
  .nav-menu a:hover { color: var(--text); }

  .hero-desc { font-size: 18px; }
  .card { padding: 20px; }
  .steps-grid { grid-template-columns: repeat(4,1fr); }
  .case-price { font-size: 22px; }
  .footer { padding: 40px 0; }
}

/* ─── FOCUS (accessibility) ─── */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── LEAD FORMS ─── */
.lead-form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  margin: 12px 0;
}
.lead-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
}
.lead-form input::placeholder { color: var(--text2); }
.lead-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.lead-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  font-size: 11px;
  color: var(--text2);
}
.lead-form .consent input[type="checkbox"] { margin-top: 2px; accent-color: var(--red); }
.lead-result { font-size: 13px; margin-top: 8px; }
.lead-result.ok { color: var(--success); }
.lead-result.err { color: var(--red); }

/* ─── iOS input zoom prevention ─── */
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px; }
}
