@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

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

a {
    text-decoration: none;
}


html, body {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: antiquewhite;
    margin: 0;
    padding: 0;
    height: 100%;
}

.wrapper {
    background: linear-gradient(173deg, rgba(0, 0, 0, 1) 0%, rgba(69, 40, 87, 1) 64%, rgba(170, 103, 200, 1) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    margin-top: 20px;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav {
    width: 50%;
     margin-top: 20px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    font-size: 15px;
    text-transform: uppercase;
    color: antiquewhite;
    transition: .3s;
    padding: 5px 15px;
}

header nav ul li.active a {
    background: antiquewhite;
    color: #020024;
    border-radius: 20px;
}

header nav ul li:not(.active) a:hover {
    background: antiquewhite;
    color: #020024;
    border-radius: 20px;
}

.content-area {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero--info {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

.text-content {
    flex: 1;
}

.image-content {
    flex-shrink: 0;
}

.image-content img {
    border-radius: 10px;
}

button.btn, .btn a {
    font-family: 'Playfair Display', serif;
    font-style: bold;
    background: antiquewhite;
    color: #020024;
    border-radius: 20px;
    padding: 12px 30px;
    transition: .3s;
    text-transform: uppercase;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: antiquewhite;
    background: black;
}



.footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Стили для спойлеров */
.spoiler {
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spoiler-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.spoiler-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.spoiler-title {
    font-weight: bold;
    font-size: 18px;
    color: antiquewhite;
}

.spoiler-icon {
    color: antiquewhite;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.spoiler-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

/* Класс для открытого спойлера */
.spoiler.active .spoiler-content {
    padding: 20px;
    max-height: 1000px;
    opacity: 1;
}

.spoiler.active .spoiler-icon {
    transform: rotate(180deg);
}

/* Анимация для плавного раскрытия */
.spoiler-content p {
    margin: 0;
    line-height: 1.6;
}

/* Адаптивность для мобильных устройств */
        @media (max-width: 768px) {
            .hero--info {
                flex-direction: column;
                text-align: center;
            }
            
            header {
                flex-direction: column;
                gap: 20px;
                padding: 15px;
            }
            
            header nav {
                width: 100%;
            }
            
            header nav ul {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
                padding: 0;
            }
            
            .image-content img {
                width: 100%;
                max-width: 300px;
                height: auto;
                margin-top: 20px;
            }
            
            .help-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .spoiler-header {
                padding: 12px 15px;
            }
            
            .spoiler-title {
                font-size: 16px;
                line-height: 1.4;
            }
            
            .spoiler-content {
                padding: 0 15px;
            }
            
            .spoiler.active .spoiler-content {
                padding: 15px;
            }
            
            h1 {
                font-size: 24px;
            }
            
            h2 {
                font-size: 20px;
            }
            
            .example-box {
                padding: 12px;
                font-size: 14px;
                overflow-x: auto;
            }
            
            pre, code {
                font-size: 12px;
                overflow-x: auto;
                white-space: pre-wrap;
                word-wrap: break-word;
            }
            
            .container {
                padding: 0 15px;
            }
            
            .text-content {
                width: 100%;
            }
            
            .tip-box {
                padding: 15px;
            }
            
            .btn {
                width: 100%;
                padding: 12px;
            }
            
            /* Улучшение отображения таблиц на мобильных */
            table {
                font-size: 12px;
            }
            
            th, td {
                padding: 6px 4px;
            }
        }

        /* Дополнительные улучшения для очень маленьких экранов */
        @media (max-width: 480px) {
            .logo {
                font-size: 18px;
            }
            
            header nav ul li a {
                padding: 8px 12px;
                font-size: 14px;
            }
            
            .spoiler-header {
                padding: 10px 12px;
            }
            
            .spoiler-title {
                font-size: 15px;
            }
            
            h1 {
                font-size: 22px;
            }
            
            h2 {
                font-size: 18px;
            }
        }