/* ══════════════════════════════════════════════════════════════
   VARIANT 7 — «Основной» (финальный микс v1/v2/v3)
   Тёплая тёмная премиум-палитра под пастель лого.
   Hero: чёткий вордмарк + верблюд-наклейка, IP живёт в шапке/подвале.
   Порядок: hero → магазин → рубины → предметы → как начать → фичи → низ.
   ══════════════════════════════════════════════════════════════ */
@import url('/css/main.css?v=9');

:root {
  --bg: #141117;
  --bg-alt: #1a161f;
  --card: #201b26;
  --card-2: #262030;
  --line: #322a3c;
  --text: #efe9e0;
  --muted: #a89ead;
  --accent: #f2ca4b;       /* золото лого */
  --accent-2: #f0824b;     /* тёплый оранж */
  --accent-soft: rgba(242, 202, 75, 0.14);
  --mint: #57c9a5;
  --lav: #b78ae0;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.theme-light {
  --bg: #f7f4ee;
  --bg-alt: #f0ebe2;
  --card: #ffffff;
  --card-2: #fbf8f2;
  --line: #e4dccd;
  --text: #241d2b;
  --muted: #6f6579;
  --accent: #d9a616;
  --accent-2: #e06a2e;
  --accent-soft: rgba(217, 166, 22, 0.14);
  --shadow: 0 14px 36px rgba(60, 45, 20, 0.12);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Перестановка секций: магазин сразу после hero ── */
main {
  display: flex;
  flex-direction: column;
}
main > * { order: 50; }
main > .hero { order: 0; }
main > #shop { order: 10; }
main > .section:has(.ranks) { order: 11; }
main > #rubies { order: 12; }
main > .section:has(.items) { order: 13; }
main > #start { order: 20; }
main > .section--alt { order: 21; }

/* ── Шапка: пилюля-меню ── */
.site-header {
  background: rgba(20, 17, 23, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.theme-light .site-header { background: rgba(247, 244, 238, 0.85); }

@media (min-width: 900px) {
  .nav {
    margin-inline: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
  }
  .nav__link {
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
  }
  .nav__link.is-active {
    background: var(--accent-soft);
    color: var(--accent);
  }
}

.tool--ip {
  border-color: var(--accent);
  color: var(--accent);
}
.tool--ip:hover { background: var(--accent-soft); }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 12% -8%, rgba(242, 202, 75, 0.09), transparent 60%),
    radial-gradient(44rem 28rem at 92% 8%, rgba(183, 138, 224, 0.10), transparent 60%),
    var(--bg);
  padding: 4.2rem 0 4.6rem;
}
.theme-light .hero {
  background:
    radial-gradient(52rem 30rem at 12% -8%, rgba(217, 166, 22, 0.10), transparent 60%),
    radial-gradient(44rem 28rem at 92% 8%, rgba(183, 138, 224, 0.12), transparent 60%),
    var(--bg);
}
.hero::before,
.hero::after { content: none; }

.hero__inner {
  display: grid;
  grid-template-areas: 'meta' 'title' 'lead' 'cta';
  justify-items: center;
  text-align: center;
  max-width: 860px;
}

.hero__badge {
  grid-area: meta;
  margin: 0 0 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
}

.hero__title {
  grid-area: title;
  margin: 0;
}
.hero__logo {
  width: min(520px, 92vw);
  animation: v7-bob 5s ease-in-out infinite;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4));
}
.theme-light .hero__logo { filter: drop-shadow(0 10px 22px rgba(60, 45, 20, 0.22)); }

.hero__lead {
  grid-area: lead;
  margin: 1.3rem 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero .ip { display: none; }

.hero__cta {
  grid-area: cta;
  justify-content: center;
  margin-top: 1.8rem;
}

@keyframes v7-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; }
}

@media (max-width: 860px) {
  .hero { padding: 2.6rem 0 3rem; }
}

/* ── Кнопки ── */
.btn {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--card-2); }
.btn--primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #241505;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(242, 160, 60, 0.28);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #ffd75e, var(--accent-2));
  color: #241505;
}
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--card); }
.skip { background: var(--accent); color: #241505; }

/* ── Секции ── */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}
.section__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}


/* ── Карточки магазина ── */
.rank, .item, .card, .rubies__pack {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.rank:hover, .item:hover, .rubies__pack:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.rank__price, .item__price { color: var(--accent); }
.rubies__bonus { background: var(--accent); color: #241505; }

/* ── Шаги ── */
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  position: relative;
}
.step__num {
  position: absolute;
  top: -0.9rem;
  left: 1.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #241505;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--bg-alt);
}

/* ── Фичи в 4 цветах лого ── */
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.features .feature:nth-child(1) .feature__title { color: var(--mint); }
.features .feature:nth-child(2) .feature__title { color: var(--lav); }
.features .feature:nth-child(3) .feature__title { color: var(--accent); }
.features .feature:nth-child(4) .feature__title { color: var(--accent-2); }

/* ── Подвал ── */
.site-footer {
  background: #100d13;
  border-top: 1px solid var(--line);
}
.theme-light .site-footer { background: #ece6da; }

.cart-fab__count { background: var(--accent); color: #241505; }
.ip__value.is-copied, .tool--ip.is-copied { color: var(--mint); border-color: var(--mint); }
