/* Основные стили и сброс */
:root {
    --primary-color: #4a2c82; /* Основной фиолетовый цвет */
    --secondary-color: #ff5c35; /* Акцентный оранжевый цвет */
    --bg-color: #f8f5ff;
    --text-color: #333333;
    --light-text: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(74, 44, 130, 0.15);
    --gradient: linear-gradient(135deg, #4a2c82 0%, #8661c5 100%);
}

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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

/* Кнопка */
.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: var(--light-text);
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(74, 44, 130, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 44, 130, 0.4);
}

/* Хедер и навигация */
header {
    background: var(--gradient);
    color: var(--light-text);
    padding: 25px 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 Z"/></svg>');
    background-size: 100% 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.menu {
    display: flex;
    gap: 25px;
}

.menu li a {
    font-weight: 500;
}

.menu li a:hover {
    opacity: 0.8;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    transition: all 0.3s ease;
}

/* Главный блок */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 55%;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Блок преимуществ */
.features {
    background-color: var(--card-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 44, 130, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Раздел "Как это работает" */
.how-it-works {
    background: linear-gradient(135deg, rgba(74, 44, 130, 0.05) 0%, rgba(74, 44, 130, 0.1) 100%);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.step {
    flex: 1;
    min-width: 250px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 auto 20px;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ раздел */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

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

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 0 20px 20px;
}

/* Футер */
footer {
    background-color: #2a1a48;
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-logo p {
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Медиа запросы для адаптивного дизайна */
@media (max-width: 900px) {
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .steps {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 20px;
        gap: 15px;
        z-index: 100;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
