/* ═══════════════════════════════════════════════════════
   1. CSS VARIABLES
   ═══════════════════════════════════════════════════════ */
:root {
    /* Theme Colors — Brutalism Monochrome */
    --ink-black: #111111;
    --paper-white: #ffffff;
    --raw-red: #e60000;
    --steel-gray: #555555;
    --light-gray: #f0f0f0;
    --mid-gray: #cccccc;
    --border-black: #000000;

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-hero: #f0f0f0;

    /* Text */
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius — brutalism = none or minimal */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;

    /* Shadows — brutalism offset */
    --shadow-sm: 3px 3px 0 var(--border-black);
    --shadow-md: 5px 5px 0 var(--border-black);
    --shadow-lg: 8px 8px 0 var(--border-black);

    /* Header */
    --header-height: 70px;

    /* Fonts */
    --font-heading: 'Space Mono', monospace;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* ═══════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

/* ═══════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   4. CONTAINER
   ═══════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ═══════════════════════════════════════════════════════
   5. HEADER
   ═══════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    z-index: 1000;
    border-bottom: 3px solid var(--border-black);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.logo:hover {
    color: var(--raw-red);
}

/* ═══════════════════════════════════════════════════════
   6. NAVIGATION
   ═══════════════════════════════════════════════════════ */
.nav-desktop {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm) 0;
    position: relative;
    color: var(--ink-black);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--raw-red);
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--raw-red);
}

@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════
   7. BURGER MENU
   ═══════════════════════════════════════════════════════ */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 3px solid var(--border-black);
    cursor: pointer;
    padding: var(--space-sm);
}

.burger-menu span {
    width: 24px;
    height: 3px;
    background: var(--ink-black);
    transition: var(--transition-normal);
}

@media (max-width: 992px) {
    .burger-menu {
        display: flex;
    }
}

.burger-menu.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.burger-menu.is-open span:nth-child(2) {
    opacity: 0;
}
.burger-menu.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ═══════════════════════════════════════════════════════
   8. MOBILE NAVIGATION
   ═══════════════════════════════════════════════════════ */
.nav-mobile {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: var(--paper-white);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    z-index: 999;
    transition: right var(--transition-normal);
    overflow-y: auto;
    border-left: 3px solid var(--border-black);
}

.nav-mobile.is-open {
    right: 0;
}

.nav-mobile__link {
    padding: var(--space-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 3px solid var(--border-black);
    color: var(--ink-black);
}

.nav-mobile__link:hover {
    background: var(--ink-black);
    color: var(--paper-white);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: var(--transition-normal);
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════════════════
   9. MAIN CONTENT
   ═══════════════════════════════════════════════════════ */
.main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ═══════════════════════════════════════════════════════
   10. HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
    background: var(--bg-hero);
    border-bottom: 3px solid var(--border-black);
    color: white;
}

.hero__title {
    margin-bottom: var(--space-md);
    color: var(--ink-black);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════
   11. SECTIONS
   ═══════════════════════════════════════════════════════ */
.section {
    padding: var(--space-3xl) 0;
}

.section--alt {
    background: var(--bg-hero);
    border-top: 3px solid var(--border-black);
    border-bottom: 3px solid var(--border-black);
}

.section__title {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--raw-red);
    margin: var(--space-sm) auto 0;
}

/* ═══════════════════════════════════════════════════════
   12. BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 3px solid var(--border-black);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn--primary {
    background: var(--ink-black);
    color: var(--paper-white);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.btn--primary:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.btn--secondary {
    background: var(--paper-white);
    color: var(--ink-black);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    background: var(--ink-black);
    color: var(--paper-white);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.btn--danger {
    background: var(--raw-red);
    color: var(--paper-white);
    border-color: var(--raw-red);
    box-shadow: 3px 3px 0 var(--raw-red);
}

.btn--danger:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--raw-red);
}

/* ═══════════════════════════════════════════════════════
   13. CARDS
   ═══════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 3px solid var(--border-black);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-fast);
}

.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.card h3 {
    margin-bottom: var(--space-sm);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════
   14. OFFER CARDS (opérateurs)
   ═══════════════════════════════════════════════════════ */
.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.offer-card {
    background: var(--bg-card);
    border: 3px solid var(--border-black);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-fast);
}

.offer-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.offer-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.offer-card__logo {
    width: 100px;
    height: 70px;
    object-fit: contain;
    border: 2px solid var(--mid-gray);
    padding: var(--space-sm);
    background: var(--paper-white);
}

.offer-card__rating {
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.offer-card__bonus {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--raw-red);
    padding: var(--space-md);
    border: 2px dashed var(--raw-red);
    background: #fff5f5;
    text-align: center;
}

.offer-card__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.offer-card__feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

.offer-card__feature::before {
    content: '✓';
    color: var(--ink-black);
    font-weight: 700;
    font-size: 1.1rem;
}

.offer-card__buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
    flex-wrap: wrap;
}

/* Stars */
.stars {
    color: #ffc107;
}

/* ═══════════════════════════════════════════════════════
   15. FAQ SECTION
   ═══════════════════════════════════════════════════════ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border: 3px solid var(--border-black);
    margin-bottom: -3px;
}

.faq__question {
    width: 100%;
    padding: var(--space-lg);
    background: var(--paper-white);
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.faq__question:hover {
    background: var(--light-gray);
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq__item.is-open .faq__question {
    background: var(--ink-black);
    color: var(--paper-white);
}

.faq__item.is-open .faq__question::after {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq__item.is-open .faq__answer {
    max-height: 500px;
}

.faq__answer p {
    padding: var(--space-lg);
    color: var(--text-secondary);
    border-top: 2px solid var(--mid-gray);
}

.faq__answer a {
    color: var(--raw-red);
    text-decoration: underline;
    font-weight: 600;
}

.faq__answer a:hover {
    color: var(--ink-black);
}

/* ═══════════════════════════════════════════════════════
   16. FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
    background: var(--ink-black);
    color: var(--paper-white);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 5px solid var(--raw-red);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer__section h4 {
    margin-bottom: var(--space-md);
    color: var(--raw-red);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__section p {
    color: var(--mid-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__section ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__section a {
    color: var(--mid-gray);
    font-size: 0.9rem;
}

.footer__section a:hover {
    color: var(--paper-white);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.15);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Compliance Logos Grid */
.footer__compliance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md) var(--space-lg);
    margin-top: var(--space-lg);
    align-items: center;
    justify-items: start;
    max-width: 320px;
}

@media (max-width: 768px) {
    .footer__compliance {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
        max-width: 100%;
    }
}

.footer__compliance-logo {
    height: 50px;
    width: auto;
    max-width: 90px;
    opacity: 0.85;
    transition: var(--transition-fast);
    object-fit: contain;
}

.footer__compliance-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Светлая подложка для тёмных логотипов */
.footer__compliance-logo--light-bg {
    background-color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════
   17. DISCLAIMER
   ═══════════════════════════════════════════════════════ */
.disclaimer {
    background: var(--light-gray);
    padding: var(--space-md) 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 3px solid var(--border-black);
}

.disclaimer strong {
    color: var(--raw-red);
}

/* ═══════════════════════════════════════════════════════
   18. MODALS
   ═══════════════════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background: var(--paper-white);
    padding: var(--space-2xl);
    border: 3px solid var(--border-black);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal__content h2 {
    margin-bottom: var(--space-md);
    color: var(--ink-black);
}

.modal__content p {
    color: var(--text-secondary);
}

.modal__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

/* ═══════════════════════════════════════════════════════
   19. COOKIE BANNER
   ═══════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--paper-white);
    border-top: 3px solid var(--border-black);
    padding: var(--space-lg) 0;
    z-index: 1500;
    transform: translateY(100%);
    transition: var(--transition-normal);
    box-shadow: 0 -5px 0 var(--border-black);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-banner p {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.cookie-banner a {
    color: var(--raw-red);
    text-decoration: underline;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   20. ARTICLE CARDS (blog)
   ═══════════════════════════════════════════════════════ */
.article-card {
    background: var(--bg-card);
    border: 3px solid var(--border-black);
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
    position: relative;
}

.article-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.article-card__content {
    padding: var(--space-lg);
}

.article-card__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--paper-white);
    background: var(--ink-black);
    padding: var(--space-xs) var(--space-sm);
    margin-bottom: var(--space-sm);
}

.article-card__title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.article-card__excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   21. UTILITY CLASSES
   ═══════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* ═══════════════════════════════════════════════════════
   22. SCROLLBAR
   ═══════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-left: 3px solid var(--border-black);
}

::-webkit-scrollbar-thumb {
    background: var(--ink-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--raw-red);
}

/* ═══════════════════════════════════════════════════════
   23. RESPONSIVE TWEAKS
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-2xl) 0;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .offer-card__header {
        flex-direction: column;
        text-align: center;
    }

    .offer-card__buttons {
        flex-direction: column;
    }

    .offer-card__buttons .btn {
        width: 100%;
    }

    .modal__buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
}