/* Sugar Rush 1000 — лендинг */
:root {
  --bg: #F8F2E9;
  --card: #EEE7DD;
  --teal: #248CA6;
  --orange: #F09700;
  --dark: #232B24;
  --text: #2b2b28;
  --muted: #6b6459;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(35, 43, 36, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Шапка ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #e3dacb;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link img { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; }
.logo-text { font-weight: 800; font-size: 1.05rem; color: var(--dark); line-height: 1.2; }
.logo-text span { color: var(--teal); }

.main-nav { display: flex; gap: 22px; }
.main-nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--teal); border-color: var(--teal); }

.header-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 26px;
  font-size: .98rem;
  transition: transform .15s, box-shadow .2s, filter .2s;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(.96); }
.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 5px 18px rgba(240, 151, 0, .35);
}
.btn-orange:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(240, 151, 0, .45); }
.btn-dark {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 5px 16px rgba(35, 43, 36, .28);
}
.btn-dark:hover { filter: brightness(1.25); }
.btn-lg { padding: 15px 34px; font-size: 1.08rem; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 26px; height: 3px; background: var(--dark); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Герой ---------- */
.hero { padding: 48px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 2.35rem;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 18px;
  font-weight: 800;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-sub { color: var(--muted); font-size: 1.06rem; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }

.promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 2px dashed var(--teal);
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 700;
  color: var(--dark);
}
.promo-chip code {
  background: var(--teal);
  color: #fff;
  padding: 3px 12px;
  border-radius: 8px;
  font-size: 1.05rem;
  letter-spacing: 1px;
  font-family: inherit;
}

.hero-badges { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hero-badges img { height: 34px; width: auto; }

/* Рамки-карточки как на референсе: скруглённые, мягкие */
.frame {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #e2d8c6;
}
.frame-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e2d8c6;
  transition: transform .2s ease, box-shadow .25s ease;
}
.frame-img img { width: 100%; height: auto; transition: transform .25s ease; }
/* Эффект вжатия при наведении и клике */
.frame-img:hover { transform: scale(.985); box-shadow: 0 3px 12px rgba(35,43,36,.14); }
.frame-img:active, .frame-img.pressed { transform: scale(.965); box-shadow: inset 0 4px 14px rgba(35,43,36,.18), 0 2px 6px rgba(35,43,36,.1); }

/* ---------- Оглавление ---------- */
.toc {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid #e2d8c6;
  padding: 24px 28px;
  margin: 34px 0;
  box-shadow: var(--shadow);
}
.toc-title { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.toc ol { padding-left: 22px; columns: 2; column-gap: 40px; }
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc a { color: var(--teal); text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* ---------- Секции ---------- */
section { padding: 34px 0; }
h2 {
  font-size: 1.75rem;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.25;
}
h3 { font-size: 1.22rem; color: var(--dark); font-weight: 700; margin: 22px 0 10px; }
section p { margin-bottom: 14px; }
section ul, section ol { margin: 0 0 16px 22px; }
section li { margin-bottom: 8px; }
strong { color: var(--dark); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }

/* Таблица характеристик */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 10px 0 20px;
}
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; }
.spec-table th { background: var(--teal); color: #fff; font-size: .95rem; }
.spec-table tr:nth-child(even) td { background: #e6ddcd; }
.spec-table td:first-child { font-weight: 700; color: var(--dark); width: 45%; }
#vs-bonanza .spec-table td:first-child { width: 30%; }
#vs-bonanza .spec-table { font-size: .95rem; }
@media (max-width: 600px) {
  #vs-bonanza .spec-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Карточки фич */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid #e2d8c6;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .fc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), #4db3cc);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: #fff;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature-card p { margin: 0; font-size: .94rem; color: var(--muted); }

/* Шаги */
.steps { counter-reset: step; margin-top: 8px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  border: 1px solid #e2d8c6;
  box-shadow: var(--shadow);
}
.step-num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Демо-окно ---------- */
.demo-window {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(35,43,36,.22);
  max-width: 880px;
  margin: 24px auto 0;
}
.demo-window img { width: 100%; filter: brightness(.92); }
.demo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 43, 36, .38);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
}
.demo-overlay .demo-note { color: #fff; font-weight: 700; font-size: 1.15rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.play-icon {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(240,151,0,.55);
  transition: transform .2s;
}
.play-icon::after {
  content: '';
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 5px;
}
.demo-overlay:hover .play-icon { transform: scale(1.08); }

/* ---------- Видео ---------- */
.video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(35,43,36,.22);
  max-width: 880px;
  margin: 22px auto 0;
  background: #000;
  border: 3px solid var(--card);
}
.video-wrap video { width: 100%; display: block; }
.video-caption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 12px; }

/* ---------- Страны ---------- */
.geo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.geo-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid #e2d8c6;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.geo-flag { font-size: 2.4rem; margin-bottom: 10px; }
.geo-card h3 { margin: 0 0 8px; }
.geo-card p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Крипто ---------- */
.crypto-section { background: var(--card); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border: 1px solid #e2d8c6; }
.crypto-list { list-style: none; margin-left: 0 !important; }
.crypto-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
}
.crypto-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid #e2d8c6;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--teal);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Футер ---------- */
.site-footer {
  background: var(--dark);
  color: #cfd4cf;
  padding: 40px 0 26px;
  margin-top: 40px;
}
.footer-awards {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 22px;
}
.footer-awards img { height: 44px; width: auto; opacity: .9; transition: transform .2s, opacity .2s; }
.footer-awards img:hover { transform: scale(.94); opacity: 1; }
.footer-bottom { text-align: center; font-size: .85rem; line-height: 1.7; }
.footer-bottom a { color: #7fc6d8; text-decoration: none; }
.footer-18 { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0; }
.footer-18 img { height: 46px; }

/* ---------- Мобильная версия ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 26px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .toc ol { columns: 1; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 18px;
    border-bottom: 1px solid #e3dacb;
    box-shadow: 0 12px 24px rgba(35,43,36,.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid #eee5d6; }
  .burger { display: flex; }
  .header-actions .btn { padding: 10px 16px; font-size: .88rem; }
}

@media (max-width: 600px) {
  .hero { padding: 30px 0 24px; }
  .hero h1 { font-size: 1.65rem; }
  h2 { font-size: 1.4rem; }
  .feature-grid, .geo-grid { grid-template-columns: 1fr; }
  .crypto-section { padding: 24px 20px; }
  .header-actions .btn-dark { display: none; }
  .hero-cta .btn { width: 100%; }
  .spec-table th, .spec-table td { padding: 10px 12px; font-size: .9rem; }
  .demo-overlay .demo-note { font-size: .98rem; }
  .play-icon { width: 60px; height: 60px; }
  .footer-awards { gap: 18px; }
  .footer-awards img { height: 32px; }
}
