/* =========================
   ОСНОВНЫЕ ПЕРЕМЕННЫЕ СТИЛЕЙ
   ========================= */

:root {
    --primary-bg: #3F51B5;
    --accent-coral: #FF6F61;
    --text-light: #F1F1F1;
    --button-gradient-start: #FF6F61;
    --button-gradient-end: #FF3D00;
    --secondary-bg: #E3F2FD;
    --border-radius: 2rem;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* =========================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* =========================
   КОНТЕЙНЕРЫ И СЕТКА
   ========================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--secondary-bg);
    color: #333;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================
   ТИПОГРАФИКА
   ========================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--accent-coral), var(--button-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.lead {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* =========================
   КНОПКИ
   ========================= */

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--button-gradient-start), var(--button-gradient-end));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(-1px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-coral);
    color: var(--accent-coral);
}

.btn-secondary:hover {
    background: var(--accent-coral);
    color: white;
}

/* =========================
   HEADER
   ========================= */

.header {
    background: rgba(63, 81, 181, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(63, 81, 181, 0.98);
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-coral);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* =========================
   HERO СЕКЦИЯ
   ========================= */

.hero {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #2C387E 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/f1WfAi.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    animation: slideInUp 1s ease;
}

.hero-subtitle {
    animation: slideInUp 1s ease 0.2s both;
}

.hero-cta {
    margin-top: 2rem;
    animation: slideInUp 1s ease 0.4s both;
}

/* =========================
   КАРТОЧКИ
   ========================= */

.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: #333;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--button-gradient-start), var(--button-gradient-end));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--button-gradient-start), var(--button-gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.card h3 {
    color: var(--primary-bg);
    text-align: center;
}

.card p {
    text-align: center;
    color: #666;
}

/* =========================
   ФОРМА
   ========================= */

.form-section {
    background: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/bdYyzy.jpg') center/cover;
    opacity: 0.05;
}

.form-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateX(5deg);
    transition: var(--transition);
}

.form-card:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-bg);
    transition: var(--transition);
    transform: translateY(0);
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: #fafafa;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-coral);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
}

.form-input:focus + .form-label,
.form-select:focus + .form-label {
    color: var(--accent-coral);
    transform: translateY(-5px);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    transform: scale(1.2);
    accent-color: var(--accent-coral);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.checkbox-group label a {
    color: var(--accent-coral);
    text-decoration: underline;
}

/* =========================
   ОТЗЫВЫ
   ========================= */

.testimonials {
    background: var(--primary-bg);
}

.testimonial {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    color: #333;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial:hover {
    transform: scale(1.02);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--button-gradient-start), var(--button-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.testimonial-stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #666;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-bg);
}

/* =========================
   FAQ - CSS ONLY (БЕЗ JAVASCRIPT)
   ========================= */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

/* Скрываем радиокнопки визуально */
.faq-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.faq-question {
    padding: 20px 25px;
    background: var(--primary-bg);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    background: #354ca0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-coral);
    transition: transform 0.4s ease;
    display: inline-block;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #333;
    background: white;
}

/* Когда радиокнопка выбрана */
.faq-radio:checked + .faq-question .faq-toggle {
    transform: rotate(45deg);
    color: #fff;
}

.faq-radio:checked + .faq-question {
    background: #354ca0;
}

.faq-radio:checked ~ .faq-answer {
    max-height: 200px;
    padding: 20px 25px;
}

/* =========================
   КОНТАКТЫ
   ========================= */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

/* =========================
   FOOTER
   ========================= */

.footer {
    background: #1a237e;
    padding: 50px 0 20px;
    color: var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--accent-coral);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-coral);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* =========================
   COOKIE POPUP
   ========================= */

.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease;
    color: #333;
}

.cookie-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-popup h4 {
    color: var(--primary-bg);
    margin-bottom: 10px;
}

.cookie-popup p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cookie-accept {
    background: var(--accent-coral);
    color: white;
}

.cookie-accept:hover {
    background: var(--button-gradient-end);
}

.cookie-decline {
    background: #e0e0e0;
    color: #333;
}

.cookie-decline:hover {
    background: #d0d0d0;
}

/* =========================
   АНИМАЦИИ
   ========================= */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

.slide-in-up {
    animation: slideInUp 0.8s ease;
}

/* =========================
   АДАПТИВНОСТЬ
   ========================= */

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 80px;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 25px;
        transform: none;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
} 