/* ── Hero ── */
.rules-hero {
    text-align: center;
    padding: 3.5rem 0 2rem;
    position: relative;
}
.rules-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200,245,69,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.rules-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.rules-hero h1 {
    font-size: 5.5rem;
    line-height: 0.9;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text) 50%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rules-hero p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Format tabs ── */
.format-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2.5rem 0 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem;
}
.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-btn .tab-icon { font-size: 1rem; margin-right: 0.4rem; }

/* ── Content panels ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* ── Format header ── */
.format-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.format-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.format-header.mexicano::before {
    background: linear-gradient(90deg, var(--accent2), transparent);
}
.format-big-icon {
    font-size: 3.5rem;
    line-height: 1;
    flex-shrink: 0;
}
.format-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.format-tagline {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Rules sections ── */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 700px) {
    .rules-grid { grid-template-columns: 1fr; }
    .rules-hero h1 { font-size: 3.5rem; }
    .format-header { flex-direction: column; text-align: center; }
}
.rule-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}
.rule-card:hover { border-color: rgba(200,245,69,0.25); }
.rule-card.mexicano-card:hover { border-color: rgba(69,245,180,0.25); }
.rule-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    position: absolute;
    top: -0.5rem; right: 0.75rem;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.rule-icon { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }
.rule-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    color: var(--accent);
}
.rule-card.mexicano-card .rule-title { color: var(--accent2); }
.rule-text {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ── Scoring visual ── */
.scoring-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.scoring-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.scoring-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.match-example {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
.match-team {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}
.match-team.right { text-align: right; }
.match-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    white-space: nowrap;
}
.pts-breakdown {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.pts-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(200,245,69,0.08);
    border: 1px solid rgba(200,245,69,0.2);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text);
}
.pts-chip .pts-name { color: var(--muted); }
.pts-chip .pts-val { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--accent); }

/* ── Comparison table ── */
.compare-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.compare-table th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
}
.compare-table th:nth-child(2) { color: var(--accent); }
.compare-table th:nth-child(3) { color: var(--accent2); }
.compare-table td {
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid rgba(37,42,53,0.5);
    font-size: 0.87rem;
    vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table td:nth-child(1) { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.check { color: var(--accent); font-size: 1rem; }
.cross { color: var(--danger); font-size: 1rem; }

/* ── Tips ── */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}
@media (max-width: 700px) { .tips-grid { grid-template-columns: 1fr; } }
.tip-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}
.tip-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.3rem;
}
.tip-text {
    font-size: 0.84rem;
    color: var(--text);
    line-height: 1.6;
}

/* ── CTA ── */
.cta-section {
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: 2.5rem;
}
.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.cta-section p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ── Step flow ── */
.step-flow {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.step-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
}
.step-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    min-width: 1.5rem;
}
.mexicano-step .step-num { color: var(--accent2); }
.step-body {}
.step-head { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.step-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* ── Section title ── */
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}




.cta-section {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  margin: 2.5rem auto;
  max-width: 680px;
}

.cta-section h3 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
  line-height: 1.45;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-americano {
  background: var(--accent);
  color: #0a0c0f;
}

.btn-americano:hover {
  background: #d4f85a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 245, 69, 0.25);
}

.btn-mexicano {
  background: #f7b84a;
  color: #0a0c0f;
}

.btn-mexicano:hover {
  background: #f7b84a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.25);
}

/* ──────────────────────────────────────────────
   Мобильная адаптация
─────────────────────────────────────────────── */
@media (max-width: 560px) {
  .cta-section {
    padding: 2rem 1.2rem;
    margin: 2rem 1rem;
  }

  .cta-section h3 {
    font-size: 1.65rem;
  }

  .cta-section p {
    font-size: 0.98rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.9rem;
  }

  .btn {
    min-width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1.02rem;
  }
}