/* GLOBAL STYLES & VARIABLES */
:root {
    --primary-blue: #007BFF;
    --primary-gradient: linear-gradient(135deg, #007BFF, #00C6FF);
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-hero: linear-gradient(135deg, #f0f9ff, #e0f7ff);
    --text-dark: #212529;
    --text-medium: #495057;
    --text-light: #6c757d;
    --border-color: #e3e8f0;
    --success-green: #28a745;
    --font-family: 'Manrope', sans-serif;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--text-dark); line-height: 1.65; background-color: var(--bg-white); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.3; }
section { padding: 80px 0; }

/* ANIMATION STYLES */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-visible { opacity: 1; transform: translateY(0); }

/* ИСПРАВЛЕНИЕ АНИМАЦИИ ЛОГОТИПА */
.bounce-logo {
    animation: logo-bounce 1s ease-out 0.2s forwards;
    /* Убрали opacity: 0 отсюда, чтобы логотип был видимым по умолчанию */
}
@keyframes logo-bounce {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* GENERIC COMPONENTS */
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; text-align: center; color: var(--text-light); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-button, .cta-button-form, .cta-button-secondary { display: inline-block; padding: 14px 32px; border-radius: 12px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; text-align: center; }
.cta-button { background: var(--primary-gradient); color: white; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0, 123, 255, 0.35); }
.cta-button-secondary { background-color: var(--bg-white); color: var(--primary-blue); border: 1px solid var(--border-color); }
.cta-button-secondary:hover { background-color: var(--bg-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cta-button-form { width: 100%; font-size: 1rem; background: var(--primary-gradient); color: white; }

/* HERO SECTION */
.hero-section { background: var(--bg-hero); text-align: center; overflow: hidden; padding: 60px 0; }
.logo-container { margin: 0 auto 1.5rem; }
.logo-image { width: 120px; height: auto; display: block; margin: 0 auto; }
.logo-text { font-size: 1.5rem; font-weight: 800; margin-top: 0.5rem; display: block; }
.hero-content h1 { font-size: 3.5rem; }
.text-gradient { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content .subtitle { font-size: 1.25rem; color: var(--text-medium); margin: 1rem auto 2.5rem; max-width: 600px; }
.hero-features { margin-top: 2rem; display: flex; justify-content: center; gap: 2rem; color: var(--text-light); }
.hero-features span { display: flex; align-items: center; }
.hero-features .dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.dot.green { background-color: var(--success-green); }
.dot.blue { background-color: var(--primary-blue); }
.dot.light-blue { background-color: #00C6FF; }

/* ====================================================== */
/* TABS (FOR WHOM SECTION) - УЛУЧШЕННАЯ И ИСПРАВЛЕННАЯ ВЕРСИЯ */
/* ====================================================== */

.for-whom-section {
    background: var(--bg-white);
}
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 5px;
    border: 1px solid var(--border-color);
}
.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    color: var(--text-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tab-button.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.tabs-content-wrapper {
    position: relative;
    /* ИСПРАВЛЕНИЕ: Убираем min-height и добавляем плавный переход высоты */
    transition: height 0.4s ease-out; 
}

.tab-panel {
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    pointer-events: none;
    
    background: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.tab-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative; /* Активная панель должна быть в потоке документа */
}

/* ====================================================== */
/* FEATURES (Решатель vs Репетитор) - УЛУЧШЕННАЯ ВЕРСИЯ   */
/* ====================================================== */

.features-section {
    /* 1. Меняем фон на премиальный градиент, как в шапке */
    background: var(--bg-hero);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    /* 2. Добавляем более глубокую, красивую тень с синим оттенком */
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease-out;
}

/* Добавляем эффект "приподнимания" при наведении */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.15);
}

.feature-icon-wrapper {
    font-size: 1.5rem;
    width: 60px; /* Немного увеличим иконки */
    height: 60px;
    border-radius: 16px; /* Сделаем более скругленными */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    /* 3. Делаем фон иконок ярким, с основным градиентом */
    background: var(--primary-gradient);
    color: white; /* Цвет самой иконки-эмодзи это не изменит, но полезно для будущих SVG-иконок */
}

.feature-card h4 {
    font-size: 1.75rem; /* Увеличим заголовки */
    margin-bottom: 1rem;
    /* 4. Применяем эффект градиента к заголовкам */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Обязательно для работы background-clip */
}

.feature-card .feature-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.feature-card ul {
    list-style: none;
    text-align: left;
    padding-left: 0; /* Убираем отступ по умолчанию */
}

.feature-card ul li {
    margin-bottom: 0.75rem; /* Увеличим расстояние между пунктами */
    position: relative;
    padding-left: 30px; /* Добавляем место для галочки */
    font-weight: 600; /* Делаем текст пунктов более жирным */
}

/* Рисуем кастомную галочку */
.feature-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-green);
    font-weight: 800;
    font-size: 1.2rem;
}

/* HOW IT WORKS */
.how-it-works-section { background: var(--bg-white); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.step-number { display: inline-block; background: var(--primary-gradient); color: white; border-radius: 50%; width: 40px; height: 40px; line-height: 40px; font-weight: bold; margin-bottom: 1rem; }
.step-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* TARIFFS */
.tariffs-section { background: var(--bg-light); }
.tariffs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: center; }
.tariff-card { background: var(--bg-white); padding: 2rem; border-radius: 16px; border: 1px solid var(--border-color); text-align: center; transition: all 0.3s ease; }
.tariff-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.tariff-card.popular { border: 2px solid var(--primary-blue); transform: scale(1.05); position: relative; }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary-blue); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.tariff-card h4 { font-size: 1.5rem; }
.price { font-size: 2.5rem; font-weight: 800; margin: 1rem 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.tariff-card ul { list-style: none; margin: 1.5rem 0; text-align: left; }
.tariff-card ul li { margin-bottom: 0.75rem; }

/* REVIEWS */
.reviews-section { background-color: var(--bg-white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.review-card { background: var(--bg-light); padding: 2rem; border-radius: 16px; border: 1px solid var(--border-color); }

/* FAQ SECTION */
.faq-section { background-color: var(--bg-light); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-white); margin-bottom: 1rem; border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.faq-item summary { padding: 1.5rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--primary-blue); transition: transform 0.3s ease; }
.faq-item[open] { border-color: var(--primary-blue); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.5rem; color: var(--text-light); }

/* CTA FORM SECTION */
.cta-section { background-color: #f0f9ff; padding: 60px 0; }
.form-container { max-width: 500px; margin: 0 auto; background: var(--bg-white); padding: 3rem; border-radius: 16px; box-shadow: var(--shadow-md); text-align: center; }
.form-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.form-container h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.form-container p { color: var(--text-light); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-family: var(--font-family); }
.privacy-note { font-size: 0.8rem; color: #aaa; margin-top: 1.5rem; margin-bottom: 0; }

/* TEAM SECTION */
.team-section { background-color: var(--bg-white); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.team-block { text-align: center; padding: 2rem; background-color: var(--bg-light); border-radius: 16px; }
.team-icons { font-size: 2.5rem; margin-bottom: 1rem; }
.team-block h4 { font-size: 1.75rem; margin-bottom: 1rem; }
.tech-stack, .roles-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.5rem 0; }
.tech-stack span, .roles-stack span { background: var(--bg-white); color: var(--text-medium); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; border: 1px solid var(--border-color); }

/* FOOTER */
.footer { background-color: var(--bg-white); padding-top: 60px; color: var(--text-medium); border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 40px; align-items: start; }
.footer-logo { width: 50px; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 250px; }
.footer h4 { margin-bottom: 1rem; color: var(--text-dark); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a { text-decoration: none; color: var(--text-medium); transition: color 0.3s ease; }
.footer a:hover { color: var(--primary-blue); }
.footer-bottom { padding: 20px 0; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; font-size: 0.9rem; }

/* RESPONSIVENESS */
@media (max-width: 992px) {
    .tariffs-grid, .reviews-grid, .steps-grid, .team-grid { grid-template-columns: 1fr; }
    .tariff-card.popular { transform: scale(1); }
}
@media (max-width: 768px) {
    section { padding: 60px 0; }
    h1 { font-size: 2.5rem !important; }
    .section-title { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .tabs-nav { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand p { margin: 1rem auto 0; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}

/* ================================================== */
/* СТИЛИ ДЛЯ ЮРИДИЧЕСКОЙ ИНФОРМАЦИИ И СТРАНИЦЫ ПОЛИТИКИ */
/* ================================================== */

/* --- Стили для футера --- */

/* Делаем нижнюю часть футера более гибкой для длинного текста */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Вертикальное выравнивание по центру */
    flex-wrap: wrap; /* Разрешаем перенос на новую строку на маленьких экранах */
    gap: 1rem; /* Добавляем отступ между элементами при переносе */
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- Стили для страницы privacy-policy.html --- */

.legal-document-container {
    max-width: 800px; /* Ограничиваем ширину для лучшей читаемости */
    margin: 40px auto; /* Центрируем и добавляем отступы сверху/снизу */
    padding: 40px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.legal-document-container h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.legal-document-container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-document-container p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}