/* ==========================================================================
   bezdep-spin.top — Dynamic Card Theme (v2, после финального аудита)
   ========================================================================== */

:root {
  --c-bg: #0f1215;
  --c-surface: #1a1f26;
  --c-surface-hover: #222932;
  --c-card: #242b36;
  --c-text: #e8ebef;
  --c-muted: #a8b1bc;               /* осветлено для контраста */
  --c-accent: #8b7cf0;              /* осветлено для контраста на тёмном */
  --c-accent-hover: #a295f5;
  --c-accent-bg: rgba(108, 92, 231, .16);
  --c-green: #00d09c;
  --c-green-dark: #00a87d;
  --c-gold: #f5c542;
  --c-danger: #ff6b6b;
  --c-line: #323b47;
  --max: 1180px;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--c-bg); color: var(--c-text); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--c-accent); color: #fff; padding: 10px 20px; font-weight: 700; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .btn:hover, .code:hover { transform: none; }
}

/* Header */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.logo { font-size: 20px; font-weight: 800; color: #fff; }
.logo .d1 { color: var(--c-accent); } .logo .d2 { color: var(--c-green); }
.nav ul { display: flex; gap: 24px; list-style: none; }
.nav a { font-size: 14px; font-weight: 600; color: var(--c-muted); }
.nav a:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--c-line); border-radius: 10px; padding: 9px 12px; cursor: pointer; color: var(--c-text); font-size: 15px; line-height: 1; }
.nav-toggle:hover { border-color: var(--c-accent); color: var(--c-accent-hover); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: -20px; right: -20px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); display: none; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 6px 20px 14px; }
  .nav a { display: block; padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--c-line); }
  .nav li:last-child a { border-bottom: none; }
}

/* Hero */
.hero { background: radial-gradient(1200px 400px at 50% -10%, rgba(108,92,231,.25), transparent 70%), var(--c-bg); padding: 56px 0 40px; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; line-height: 1.18; }
.hero h1 .g { background: linear-gradient(90deg, var(--c-accent), var(--c-green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .lead { font-size: 16px; color: var(--c-muted); max-width: 680px; margin-bottom: 26px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; font-size: 14px; font-weight: 700; border-radius: 10px; border: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 6px 20px rgba(108,92,231,.35); }
.btn-primary:hover { background: var(--c-accent-hover); box-shadow: 0 8px 26px rgba(108,92,231,.45); }
.btn-gold { background: var(--c-gold); color: #1a1200; box-shadow: 0 6px 20px rgba(245,197,66,.3); }
.btn-green { background: var(--c-green); color: #002a1d; box-shadow: 0 6px 20px rgba(0,208,156,.35); }

/* Promo */
.promo { background: linear-gradient(135deg, #2a2640, #1f3a30); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; text-align: center; margin: 26px auto; max-width: 760px; }
.promo h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.promo p { color: var(--c-muted); font-size: 14px; margin-bottom: 14px; }
.code { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #0f1215; border: 2px solid var(--c-line); border-radius: 10px; padding: 10px 22px; font-family: "JetBrains Mono", monospace; font-size: 18px; font-weight: 800; color: var(--c-gold); letter-spacing: 1.5px; cursor: pointer; }
.code:hover { border-color: var(--c-gold); }
.code span { color: inherit; }
.promo-note { font-size: 12px; color: var(--c-muted); margin-top: 12px; }

/* Card grid */
.section { padding: 52px 0; border-bottom: 1px solid var(--c-line); }
.section:last-child { border-bottom: none; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.section-head h2 { font-size: 24px; font-weight: 700; }
.section-head .tag { background: var(--c-accent-bg); color: var(--c-accent-hover); padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--c-accent); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.card h3 { font-size: 17px; font-weight: 700; margin: 10px 0 8px; }
.card p { font-size: 13.5px; color: var(--c-muted); line-height: 1.6; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-gold); }
.link { color: var(--c-accent-hover); font-weight: 700; font-size: 13px; }
.link:hover { color: var(--c-green); }

/* Steps (методология проверки) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c-accent-bg); color: var(--c-accent-hover); font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.step h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--c-muted); }

/* Article */
.article h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: #fff; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 16px; font-weight: 700; margin: 26px 0 10px; color: var(--c-green); }
.article p { color: var(--c-muted); font-size: 15px; margin-bottom: 14px; }
.article ul, .article ol { margin: 14px 0 14px 22px; color: var(--c-muted); }
.article li { margin-bottom: 8px; }
.article a { color: var(--c-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--c-green); }

/* Breadcrumbs */
.breadcrumbs { padding: 18px 0; font-size: 13px; color: var(--c-muted); }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-accent-hover); }

/* FAQ */
.faq-list { max-width: 860px; }
.faq-item { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-h { margin: 0; font-size: 15.5px; }
.faq-q { width: 100%; background: none; border: none; font: inherit; font-weight: 700; text-align: left; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--c-text); }
.faq-q:hover { color: var(--c-accent-hover); }
.faq-q .faq-icon { color: var(--c-accent-hover); font-weight: 800; transition: transform .2s ease; flex-shrink: 0; }
.faq-item.active .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--c-muted); font-size: 14px; }
.faq-item.active .faq-a { padding: 0 20px 16px; max-height: 480px; }

/* Footer */
.site-footer { background: #0b0d10; border-top: 1px solid var(--c-line); padding: 44px 0 24px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: #fff; margin-bottom: 16px; text-transform: uppercase; }
.footer-col a { display: block; font-size: 14px; color: var(--c-muted); margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--c-line); margin-top: 32px; padding-top: 20px; font-size: 12.5px; color: var(--c-muted); text-align: center; }

/* Responsive */
@media (max-width: 920px) {
  .grid, .grid.two { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid, .grid.two, .steps { grid-template-columns: 1fr; }
  .actions { justify-content: center; }
  .hero h1 { font-size: 28px; }
  .hero { padding: 40px 0 28px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}

/* ===== v3: офферы GIZBO/IRWIN/LEX, медиа-инструкция ===== */

/* Лид секции */
.section-lead { max-width: 780px; color: var(--c-muted); font-size: 15px; margin: -6px 0 22px; }
.section-lead a { color: var(--c-accent-hover); }

/* Сетка карточек офферов */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.offer-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s ease, transform .2s ease; }
.offer-card:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.offer-top { display: flex; justify-content: space-between; align-items: center; }
.offer-brand { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 17px; letter-spacing: .06em; color: #fff; }
.offer-main { font-size: 16px; margin: 0; }
.offer-main strong { color: var(--c-green); font-size: 19px; }
.offer-slots { font-size: 13px; color: var(--c-muted); margin: 0; flex-grow: 1; }
.offer-card .btn { margin-top: auto; }
.offers-note { font-size: 13px; color: var(--c-muted); }
.offers-note a { color: var(--c-accent-hover); }

/* Hero с промо-креативом */
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; }
.hero-media { width: 100%; max-width: 230px; height: auto; border-radius: var(--radius); border: 1px solid var(--c-line); justify-self: center; display: block; }

/* Пошаговая инструкция со скриншотами */
.steps-media { counter-reset: step; list-style: none; padding: 0; }
.steps-media > li { position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--c-line); counter-increment: step; }
.steps-media > li:last-child { border-bottom: none; }
.steps-media > li::before { content: counter(step); position: absolute; left: 0; top: 18px; width: 38px; height: 38px; border-radius: 10px; background: rgba(139,124,240,.15); color: var(--c-accent-hover); font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.steps-media h3 { font-size: 16px; margin: 0 0 8px; color: #fff; }
.steps-media p { font-size: 14px; color: var(--c-muted); margin: 0 0 8px; }
.step-fig { margin: 14px 0 0; }
.step-fig img { max-width: 320px; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--c-line); display: block; }
.step-fig figcaption { font-size: 12.5px; color: var(--c-muted); margin-top: 8px; max-width: 320px; }
.step-pair { display: flex; gap: 18px; flex-wrap: wrap; }
.slot-links { padding-left: 20px; }
.slot-links li { margin-bottom: 8px; }

@media (max-width: 920px) {
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .offers-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 180px; }
}

/* Сравнительные таблицы (фрибет vs фриспин) */
.rating-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.rating-table th { text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--c-muted); padding: 10px 12px; border-bottom: 2px solid rgba(139,124,240,.35); }
.rating-table td { padding: 12px; border-bottom: 1px solid var(--c-line); color: var(--c-muted); }
.rating-table td:first-child { color: var(--c-text); font-weight: 700; }
@media (max-width: 640px) {
  .rating-table { font-size: 12.5px; }
  .rating-table th, .rating-table td { padding: 8px 6px; }
}
