/* Custom Premium CSS Reset & Variable Variables */
:root {
    --bg-main: #121417;
    --bg-surface: #1a1e24;
    --bg-card: #22272f;
    --accent-green: #1e4636;
    --accent-gold: #d4af37;
    --text-primary: #f4f4f0;
    --text-secondary: #a0a6b2;
    --border-color: #2e3542;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.compact-width {
    max-width: 800px;
}

.section-padding {
    padding: 80px 0;
}

.bg-surface {
    background-color: var(--bg-surface);
}

.text-center {
    text-align: center;
}

/* Typography elements */
h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 8px; }
h3 { font-size: 1.35rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Header CSS */
.site-header {
    background-color: rgba(18, 20, 23, 0.9);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-gold);
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 16px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--text-primary);
}

/* Button UI */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #121417;
}

.btn-primary:hover {
    background-color: #ebd16e;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Hero Elements layout */
.hero-section {
    padding: 100px 0 80px;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.badge {
    background-color: var(--accent-green);
    color: #a8ffd3;
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.trust-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 16px;
}

.trust-note::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #2ecc71;
    border-radius: 50%;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-img {
    border-radius: 12px;
}

/* Grids and custom blocks */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.rounded-edges {
    border-radius: 12px;
}

.animate-glow {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.note-box {
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--bg-card) 100%);
    border-left: 4px solid var(--accent-gold);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin: 40px 0;
}

.note-box h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.note-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.custom-bullet-list {
    list-style: none;
    margin: 24px 0;
}

.custom-bullet-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.custom-bullet-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.fact-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.fact-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.fact-box h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.fact-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Step list framework */
.bg-dark-accent {
    background-color: #0b0d0f;
}

.ordered-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    text-align: left;
    position: relative;
}

.step-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: var(--accent-green);
    color: #a8ffd3;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.step-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Tables setup and mobile compatibility */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--bg-surface);
}

.premium-table th, .premium-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.premium-table th {
    background-color: #161a20;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.premium-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.premium-table tbody tr:hover {
    background-color: rgba(255,255,255,0.02);
}

.font-weight-bold {
    font-weight: 600;
    color: var(--text-primary) !important;
}

/* Bonus item layouts */
.bonus-checks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.bonus-check-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.bonus-check-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* Accordion Engine Styling */
.faq-accordion {
    margin-top: 32px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-trigger .icon {
    position: relative;
    width: 12px;
    height: 12px;
}

.faq-trigger .icon::before, .faq-trigger .icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-secondary);
    transition: transform 0.25s ease;
}

/* Horizontal line */
.faq-trigger .icon::before {
    top: 5px;
    left: 0;
    width: 12px;
    height: 2px;
}

/* Vertical line */
.faq-trigger .icon::after {
    top: 0;
    left: 5px;
    width: 2px;
    height: 12px;
}

.faq-item.active .faq-trigger .icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content {
    padding: 0 24px 24px 24px;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-panel {
    max-height: 500px; /* high enough fallback value */
}

.faq-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Compliance system styling */
.compliance-section {
    border-top: 1px solid var(--border-color);
    background-color: #0b0d0f;
}

.compliance-shield {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.compliance-disclaimer {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* Footer rules */
.site-footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-subtext {
    font-size: 0.8rem;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Responsive breakdowns (Mobile and Tablet rules) */
@media (max-width: 991px) {
    .hero-grid, .grid-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .reverse-on-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-text-content {
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }

    .header-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section-padding { padding: 48px 0; }
    
    .bonus-checks-grid {
        grid-template-columns: 1fr;
    }

    /* Transform Table into separate Mobile Data Cards */
    .premium-table, .premium-table thead, .premium-table tbody, .premium-table th, .premium-table td, .premium-table tr {
        display: block;
    }

    .premium-table thead {
        display: none;
    }

    .premium-table tr {
        margin-bottom: 16px;
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 8px 0;
    }

    .premium-table td {
        text-align: right;
        padding: 12px 16px;
        position: relative;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    .premium-table td:last-child {
        border-bottom: none;
    }

    .premium-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.85rem;
    }
}

/* Стили для интеграции картинки-логотипа в шапку */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    gap: 12px; /* Отступ между картинкой и текстом */
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.header-logo-img {
    height: 80px; /* Фиксированная высота для сохранения аккуратности шапки */
    width: auto;  /* Пропорциональное изменение ширины */
    object-fit: contain;
    border-radius: 6px; /* Легкое скругление для соответствия премиум-дизайну */
    border: 1px solid var(--border-color);
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-text span {
    color: var(--accent-gold);
}

/* Коррекция для мобильных экранов, чтобы элементы не наезжали друг на друга */
@media (max-width: 480px) {
    .logo-text {
        display: none; /* На совсем маленьких экранах прячем текст, оставляя только иконку/логотип */
    }
}