@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --bg: #fbf7f4;
    --card: #ffffff;
    --accent: #f15b2a;
    --accent-dark: #c34720;
    --primary: #5f30ff;
    --primary-dark: #3a1db3;
    --text: #1f1f24;
    --muted: #6b6b76;
    --border: #e6e1db;
    --shadow: 0 25px 60px rgba(18, 10, 40, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* Добавляем в base.css */

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cookie-table th,
.cookie-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cookie-table th {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 600;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:hover {
    background: rgba(95, 48, 255, 0.05);
}

.cookie-controls {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    background: var(--card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.cookie-option {
    background: rgba(95, 48, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-option p {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Добавляем в base.css */

.legal-info {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.legal-info h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.legal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.legal-item {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.legal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(95, 48, 255, 0.1);
}

.legal-item h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-item p {
    color: var(--text);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .legal-details {
        grid-template-columns: 1fr;
    }
    
    .legal-info {
        padding: 0 1rem;
    }
    
    .legal-item {
        padding: 1.2rem;
    }
}
/* Заменяем стиль баннера в base.css */

.huge-banner {
    background: linear-gradient(135deg, #d32f2f 0%, #ff6b6b 100%);
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1001;
    border-bottom: 3px solid #c62828;
    width: 100%;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.banner-content strong {
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

/* Для мобильных устройств */
@media (max-width: 640px) {
    .banner-content strong {
        font-size: 1rem;
        line-height: 1.3;
        padding: 0.4rem 0.8rem;
        letter-spacing: 0.3px;
    }
    
    .huge-banner {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* Для очень маленьких устройств */
@media (max-width: 420px) {
    .banner-content strong {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
        letter-spacing: 0.2px;
    }
    
    .huge-banner {
        padding: 0.8rem 0.3rem;
    }
}

/* Добавим альтернативный вариант с более ярким фоном */
.huge-banner.alternative {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3f51b5 100%);
}

.huge-banner.alternative .banner-content strong {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.top-alert {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.site-header {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.brand-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.brand h1 {
    margin: 0;
    font-size: 1.5rem;
}

.brand p {
    margin: 0;
    color: var(--muted);
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    color: var(--text);
}

.main-nav a:hover {
    border-color: var(--border);
}

.main-nav a.active {
    background: var(--primary);
    color: #fff;
}

.hero {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.hero-compact {
    grid-template-columns: 1fr;
}

.hero-content {
    background: var(--card);
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 2.5rem;
}

.hero-card {
    background: linear-gradient(135deg, #fff, #f2ebff);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(95, 48, 255, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h2 {
    margin: 0 0 1rem;
    font-size: 2rem;
}

.hero p {
    margin-top: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.primary-btn,
.ghost-btn {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 15px 30px rgba(95, 48, 255, 0.25);
}

.primary-btn:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.ghost-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.compliance-card {
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.95rem;
    background: #fff9f6;
}

.grid-info {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.grid-info article {
    background: var(--card);
    border-radius: 18px;
    padding: 1.8rem;
    border: 1px solid var(--border);
}

.feature-split {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-split > div {
    background: var(--card);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

.eyebrow {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.checklist li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
}

.checklist li::before {
    content: "✔";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.demo-section {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 2rem 1.5rem;
}

.demo-game {
    background: #1c1c28;
    color: #fff;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.game-panel {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
}

.reels {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.reel {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    border-radius: 12px;
}

.game-status {
    margin-top: 1rem;
    color: #fce4b3;
}

.legal-highlight {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 1.8rem;
    border-radius: 20px;
    background: #fff7eb;
    border: 1px solid #ffe1ba;
}

.site-footer {
    background: #101014;
    color: #cfcfd5;
    padding: 2.5rem 1.5rem;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.site-footer a {
    color: #fff;
    display: block;
    margin-top: 0.3rem;
}

.footer-note {
    text-align: center;
    font-size: 0.9rem;
    color: #9c9cab;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 15, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1rem 0;
}

.contact-grid,
.contact-card,
.form-section,
.contact-form,
.support-panel,
.policy-section,
.policy-table,
.responsible-grid,
.support-links,
.help-cards,
.educational {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-card,
.support-panel {
    background: var(--card);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin: 2rem auto;
}

.contact-form {
    background: var(--card);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    font-size: 1rem;
    background: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.form-status {
    font-size: 0.95rem;
    color: var(--muted);
}

.policy-section {
    margin: 1.5rem auto;
    background: var(--card);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: var(--shadow);
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.policy-table th,
.policy-table td {
    border: 1px solid var(--border);
    padding: 0.85rem;
    text-align: left;
}

.responsible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 2rem auto;
}

.support-links {
    margin: 2rem auto;
}

.help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.educational {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .form-section {
        grid-template-columns: 1fr;
    }
}

/* ---------- Responsive tweaks ---------- */

/* Лэптопы ≤ 1200px */
@media (max-width: 1200px) {
  .site-header,
  .hero,
  .feature-split,
  .grid-info,
  .form-section,
  .contact-grid,
  .responsible-grid,
  .support-links,
  .help-cards,
  .policy-section,
  .demo-section,
  .legal-highlight,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .feature-split {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* Планшеты ≤ 900px */
@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .form-section {
    grid-template-columns: 1fr;
  }

  .game-panel {
    flex-wrap: wrap;
  }

  .hero-card ul {
    padding-left: 1.2rem;
  }

  .contact-grid,
  .responsible-grid,
  .help-cards,
  .grid-info {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Смартфоны ≤ 640px */
@media (max-width: 640px) {
  body {
    font-size: 0.95rem;
  }

  .brand h1 {
    font-size: 1.25rem;
  }

  .hero-content,
  .hero-card,
  .contact-card,
  .contact-form,
  .support-panel,
  .policy-section,
  .demo-game,
  .legal-highlight,
  .responsible-grid article {
    border-radius: 16px;
    padding: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
    text-align: center;
  }

  .grid-info article {
    padding: 1.3rem;
  }

  .reels {
    font-size: 2.2rem;
    gap: 0.6rem;
  }

  .site-footer {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Компактные устройства ≤ 420px */
@media (max-width: 420px) {
  .top-alert {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
  }

  .main-nav a {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero-card h3 {
    font-size: 1.2rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 0.95rem;
  }

  .game-panel {
    flex-direction: column;
    gap: 0.8rem;
  }
}