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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --accent-color: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0 30px;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 0;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .sidebar {
        left: auto;
        right: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 14px 20px;
    margin: 4px 12px;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-link.active {
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-block {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Top Header */
.top-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 15px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Intro Section */
.intro-section {
    padding: 40px 0;
    background-color: var(--bg-white);
}

.intro-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 40px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.intro-text {
    font-size: 1.2em;
    color: var(--text-secondary);
    line-height: 1.9;
    margin: 0;
}

/* Sections */
.section {
    padding: 50px 0;
    background-color: var(--bg-main);
}

.section-alt {
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.section-intro {
    font-size: 1.1em;
    margin-bottom: 35px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 24px;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background-color: var(--bg-white);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
}

.info-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.info-table tr:first-child td {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-dark);
}

.info-table tr:first-child td strong {
    color: var(--bg-white);
}

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

.info-table tr:nth-child(even):not(:first-child) {
    background-color: var(--bg-light);
}

.info-table strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Lists */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
    margin: 30px 0;
    padding-left: 0;
}

.steps-list li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
    color: var(--text-secondary);
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.features-list {
    list-style: none;
    margin: 30px 0;
    padding-left: 0;
}

.features-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.3em;
    width: 24px;
    height: 24px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bonus Grid */
.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.bonus-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s;
}

.bonus-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.bonus-card:hover::before {
    transform: scaleY(1);
}

.bonus-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.bonus-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* FAQ */
.faq-list {
    margin: 40px 0;
}

.faq-item {
    background-color: var(--bg-white);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--bg-white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
    padding: 5px 0;
}

.footer-section a:hover {
    color: var(--bg-white);
    padding-left: 8px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block !important;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        border: none;
        padding: 14px 18px;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: var(--shadow-lg);
        font-size: 24px;
        line-height: 1;
        transition: all 0.3s;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    /* Overlay для закрытия меню */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8em;
        padding-left: 15px;
    }

    .section-intro {
        padding-left: 19px;
    }

    .page-title {
        font-size: 1.8em;
    }

    .intro-card {
        padding: 25px;
    }

    .intro-text {
        font-size: 1em;
    }

    .bonus-grid {
        grid-template-columns: 1fr;
    }

    .info-table {
        font-size: 0.85em;
    }

    .info-table td {
        padding: 10px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5em;
    }

    .page-title {
        font-size: 1.5em;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .bonus-card {
        padding: 20px;
    }

    .sidebar {
        width: 100%;
    }
}

.mobile-menu-toggle {
    display: none;
}

.sidebar-overlay {
    display: none;
}

