/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Цветовая палитра */
    --primary-violet: #4B0082;
    --accent-mint: #98FF98;
    --accent-azure: #00CED1;
    --text-light: #F8F8F8;
    --white: #ffffff;
    
    /* Градиенты */
    --gradient-button: linear-gradient(135deg, var(--accent-mint), var(--accent-azure));
    --gradient-hover: linear-gradient(135deg, var(--accent-azure), var(--accent-mint));
    
    /* Тени */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Переходы */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-violet);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ТИПОГРАФИЯ ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--accent-mint);
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-azure);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===== КОНТЕЙНЕРЫ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-button);
    color: var(--primary-violet);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-mint);
    color: var(--accent-mint);
}

.btn-secondary:hover {
    background: var(--accent-mint);
    color: var(--primary-violet);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(75, 0, 130, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo svg {
    margin-right: 10px;
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-mint);
}

/* ===== HERO СЕКЦИЯ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-violet) 0%, #6B0FA9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(152,255,152,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ===== КАРТОЧКИ ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-button);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Remove background for star ratings in testimonials */
.card-icon.stars {
    background: none;
    border-radius: 0;
    font-size: 1.5rem;
    color: var(--accent-mint);
}

.card h3 {
    color: var(--accent-mint);
    margin-bottom: 15px;
}

.card-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-azure);
    margin: 15px 0;
}

/* ===== ФОРМА ===== */
.form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-mint);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-mint);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(152, 255, 152, 0.2);
}

.form-input::placeholder {
    color: rgba(248, 248, 248, 0.6);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.radio-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radio-item input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.3);
    accent-color: var(--accent-mint);
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 4px;
    transform: scale(1.3);
    accent-color: var(--accent-mint);
}

/* ===== FAQ ===== */
.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-toggle {
    display: none;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    user-select: none;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
}

.faq-icon {
    transition: transform var(--transition-fast);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-toggle:checked + .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 200px;
    opacity: 1;
    padding: 0 20px 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-mint);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-azure);
}

/* Make phone and email links white in footer */
.contact-info a[href^="tel:"],
.contact-info a[href^="mailto:"] {
    color: var(--white) !important;
    text-decoration: none;
}

.contact-info a[href^="tel:"]:hover,
.contact-info a[href^="mailto:"]:hover {
    color: var(--accent-azure) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(248, 248, 248, 0.7);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    color: var(--text-light);
}

.cookie-actions {
    display: flex;
    gap: 15px;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cards-grid {
        margin-top: 30px;
    }
    
    .card {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .radio-group {
        gap: 10px;
    }
    
    .radio-item {
        padding: 12px;
    }
}

/* ===== ДОСТУПНОСТЬ ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== УТИЛИТЫ ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden { display: none; }
.visible { display: block; } 