/* Общие стили */
:root {
    --primary: #6C63FF; /* основной цвет - фиолетовый */
    --primary-dark: #5A52D5;
    --light-bg: #f7f7ff;
    --accent-bg: #f0f0ff;
    --text-color: #333;
    --text-light: #666;
    --success: #4CAF50;
    --warning: #FFC107;
    --font-main: 'Poppins', 'Inter', Arial, sans-serif;
    --box-shadow: 0 10px 30px rgba(108, 99, 255, 0.15);
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}

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

/* Главный блок */
.hero {
    text-align: center;
    padding: 10px 0 120px;
    background: linear-gradient(135deg, #f7f7ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.03);
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Верхняя часть шапки */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.logo {
    text-align: left;
    position: relative;
    top: auto;
    left: auto;
    transition: transform 0.3s ease;
}

.header-right {
    display: flex;
    align-items: center;
}

.ask-question-button {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    padding: 12px 25px;
    border: none;
    font-size: 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}

.ask-question-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
}

.logo:hover {
    transform: scale(1.02);
}

.logo h1 {
    font-size: 25px;
    margin: 0;
    color: var(--text-color);
    line-height: 1.3;
    max-width: none;
}

.title {
    font-size: 40px;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-in-out;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    animation: fadeIn 1.2s ease-in-out;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 18px 40px;
    border: none;
    font-size: 19px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 1;
    animation: pulseButton 2s infinite;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

@keyframes pulseButton {
    0% { box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(108, 99, 255, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Плавная прокрутка для якорных ссылок */
html {
    scroll-behavior: smooth;
}

/* Блок автора */
.author {
    padding: 100px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236C63FF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.author h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    color: var(--text-color);
}

.author-subtitle {
    font-size: 22px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
    position: relative;
}

.author-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.author-photo {
    flex: 0 0 400px;
    position: relative;
}

.author-photo::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    z-index: -1;
    opacity: 0.3;
    border-radius: 10px;
}

.author-photo img {
    width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease;
}

.author-photo:hover img {
    transform: scale(1.02);
}

.author-info {
    flex: 1;
    padding-top: 20px;
}

.author-info p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    position: relative;
}

/* Информационные блоки */
.info-blocks {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
}

.block {
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    padding: 40px;
    transition: all 0.4s ease;
    border-top: 5px solid transparent;
}

.block:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.2);
    border-top: 5px solid var(--primary);
}

.block h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-color);
    line-height: 1.4;
    position: relative;
    padding-left: 50px;
    font-weight: 700;
}

.block p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Подвал */
.footer {
    background-color: #f8f9fa;
    padding: 70px 0;
    border-top: 1px solid #eee;
    background-image: linear-gradient(to right, rgba(108, 99, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    position: relative;
}

.footer h4 {
    font-size: 22px;
    margin-bottom: 25px;
    text-align: left;
    color: var(--text-color);
}

.footer-info {
    max-width: 450px;
    margin: 0;
    text-align: left;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.footer-info a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Добавляю сохранение переносов строк в больших абзацах и увеличиваю интервалы */
.block p, .author-info p {
    white-space: pre-line; /* сохраняем \n как перенос строки */
    margin-bottom: 24px; /* интервал под абзацем для лучшей читаемости */
}

/* Небольшое повышение межстрочного интервала на десктопах */
@media (min-width: 1024px) {
    .block p, .author-info p, .subtitle {
        line-height: 1.9;
    }
}

/* Дополнительные настройки шрифта для мобильных */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 19px;
        line-height: 1.3;
    }
    
    .title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .author-photo img {
        width: 300px;
        height: auto;
        border-radius: 10px;
    }
    
    .author-photo {
        flex: 0 0 300px;
    }

    .block p {
        font-size: 16px;
        line-height: 1.8;
    }

    .author-info p {
        font-size: 16px;
        line-height: 1.8;
    }

    .subtitle {
        line-height: 1.6;
    }

    .block h3 {
        padding-left: 40px;
        font-size: 24px;
    }

    .block h3::before {
        font-size: 26px;
        top: -2px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 100px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }

    /* Адаптивность шапки */
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
    }

    .header-right {
        margin-top: 10px;
    }

    .ask-question-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .author {
        padding: 60px 0;
    }
    
    .author-subtitle {
        margin-bottom: 30px;
    }
    
    .author-content {
        flex-direction: column;
        align-items: center;
    }
    
    .author-photo {
        margin: 0 auto 30px;
        width: 100%;
    }
    
    .author-info {
        padding-top: 0;
    }
    
    .author-info p {
        text-align: center;
    }
    
    .info-blocks {
        padding: 60px 0;
    }
    
    .block {
        margin-bottom: 40px;
        padding: 20px;
    }
    
    .block h3 {
        font-size: 22px;
    }
    
    .footer {
        padding: 40px 0;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 16px;
    }
    
    .title {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 15px;
    }

    /* Дополнительные стили для маленьких экранов */
    .ask-question-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .author-photo img {
        width: 100%;
    }
    
    .author-photo {
        flex: none;
        align-self: center;
    }

    .block p {
        font-size: 16px;
        line-height: 1.8;
    }

    .author-info p {
        font-size: 16px;
        line-height: 1.8;
    }

    .subtitle {
        line-height: 1.6;
    }

    .block h3 {
        padding-left: 40px;
        font-size: 24px;
    }

    .block h3::before {
        font-size: 26px;
        top: -2px;
    }
}

/* =============================== */
/* --- Таблица блока программы --- */
/* =============================== */
.table-wrapper {
    overflow-x: auto;
    margin-top: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.program-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 17px;
    border-radius: 10px;
    overflow: hidden;
}

.program-table th {
    background-color: var(--primary);
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
}

.program-table td {
    padding: 14px 20px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    line-height: 1.7;
}

.program-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.program-table tbody tr:hover {
    background-color: #f7f7ff;
}

.note {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
    color: var(--text-light);
    padding: 15px;
    background-color: rgba(108, 99, 255, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
}

/* =============================== */
/* --- Выделение заголовков/текста --- */
/* =============================== */
.block h3 {
    font-weight: 700; /* усиленный вес */
    color: var(--text-color); /* чуть темнее для контраста */
    text-transform: none;
}

.block p {
    text-align: left;
    color: var(--text-light);
}

/* Обновляем на мобильных размеры таблицы */
@media (max-width: 768px) {
    .program-table th, .program-table td {
        font-size: 16px;
        padding: 12px 15px;
    }
}

/* Чередование фоновых блоков */
.info-blocks .block:nth-child(odd) {
    background-color: var(--light-bg);
}

/* Эмодзи для маркированных списков */
.block ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.block ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.block ul li::before {
    content: '🌟';
    position: absolute;
    left: 0;
    top: 1px;
}

/* Стили для нумерованных списков */
.block ol {
    padding-left: 22px;
    margin: 20px 0;
}

.block ol li {
    margin-bottom: 16px;
    padding-left: 10px;
    color: var(--text-light);
}

.block ol li p {
    margin-bottom: 8px;
}

/* =============================== */
/* --- Форма заявки --- */
/* =============================== */
.application {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7f7ff 0%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.application::before {
    content: '';
    position: absolute;
    bottom: -300px;
    right: -300px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.application-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    position: relative;
}

.application-subtitle {
    font-size: 22px;
    margin-bottom: 50px;
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.apply-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: #fff;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    position: relative;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.apply-form:hover {
    transform: translateY(-5px);
}

/* Группа поля */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 18px;
    color: var(--text-color);
    text-align: left;
    font-weight: 500;
}

.apply-form input {
    padding: 18px 20px;
    font-size: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.apply-form button {
    align-self: center;
    margin-top: 10px;
}

.apply-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
    background-color: #fff;
}

.apply-form input:hover {
    border-color: var(--primary);
}

@media (max-width: 480px) {
    .application {
        padding: 70px 0;
    }

    .application-title {
        font-size: 28px;
    }

    .application-subtitle {
        font-size: 18px;
        margin-bottom: 35px;
    }

    .apply-form input {
        font-size: 16px;
        padding: 14px 16px;
    }

    .block h3 {
        padding-left: 36px;
    }

    .block h3::before {
        font-size: 26px;
        top: -2px;
    }
}

/* Анимация появления блоков */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-blocks .block {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

/* Пошаговая задержка для последовательности */
.info-blocks .block:nth-child(1) { animation-delay: 0.1s; }
.info-blocks .block:nth-child(2) { animation-delay: 0.2s; }
.info-blocks .block:nth-child(3) { animation-delay: 0.3s; }
.info-blocks .block:nth-child(4) { animation-delay: 0.4s; }
.info-blocks .block:nth-child(5) { animation-delay: 0.5s; }
.info-blocks .block:nth-child(6) { animation-delay: 0.6s; }
.info-blocks .block:nth-child(7) { animation-delay: 0.7s; }
.info-blocks .block:nth-child(8) { animation-delay: 0.8s; }

/* ===== Эффект выделения текста ===== */
::selection {
    background: var(--primary);
    color: #fff;
}

/* ===== Иконки перед заголовками блоков ===== */
.info-blocks .block h3::before {
    content: '⭐️';
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 30px;
}

.info-blocks .block:nth-child(1) h3::before { content: '🧩'; }
.info-blocks .block:nth-child(2) h3::before { content: '🎯'; }
.info-blocks .block:nth-child(3) h3::before { content: '💡'; }
.info-blocks .block:nth-child(4) h3::before { content: '📋'; }
.info-blocks .block:nth-child(5) h3::before { content: '📚'; }
.info-blocks .block:nth-child(6) h3::before { content: '🔄'; }
.info-blocks .block:nth-child(7) h3::before { content: '📈'; }
.info-blocks .block:nth-child(8) h3::before { content: '🛠️'; }

/* === Тарифная таблица === */
.tariff-table th,
.tariff-table td {
    text-align: center;
}

.tariff-table th:first-child,
.tariff-table td:first-child {
    width: 45%;
}

.tariff-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Адаптивные стили для тарифной таблицы на мобильных устройствах */
@media (max-width: 768px) {
    .tariff-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .tariff-table th, 
    .tariff-table td {
        min-width: 120px;
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .tariff-table th:first-child,
    .tariff-table td:first-child {
        min-width: 150px;
    }
    
    .tariff-table .cta-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tariff-table th, 
    .tariff-table td {
        min-width: 100px;
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .tariff-table th:first-child,
    .tariff-table td:first-child {
        min-width: 130px;
    }
    
    .tariff-table .cta-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Центрируем подписи под таблицей */
.tariff-note {
    list-style: none;
    padding-left: 0;
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.tariff-note li {
    position: relative;
    padding-left: 25px;
}

.tariff-note li:before {
    content: '✅';
    position: absolute;
    left: 0;
}

.author-message {
    max-width: 900px;
    margin: 40px auto 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 35px 30px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
}

.author-message h3 {
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .author-message {
        padding: 25px 20px;
        margin: 30px 10px 0 10px;
    }
    .author-message h3 {
        font-size: 22px;
    }
    
    .tariff-note {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

.author-info .author-message {
    background: linear-gradient(135deg, #f7f7ff 0%, #ffffff 100%);
    padding: 25px 30px;
    margin-top: 25px;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.author-info .author-message::before {
    content: "\201C";
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 100px;
    color: var(--primary);
    opacity: 0.1;
}

.author-info .author-message p {
    margin-bottom: 15px;
    position: relative;
}

/* Эффект волны внизу страницы */
.footer::before {
    content: '';
    position: absolute;
    top: -70px;
    left: 0;
    right: 0;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill:%23f8f9fa;'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    transform: rotate(180deg);
}

/* Добавляем скролл индикатор */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1000;
}

/* Добавляем кнопку наверх */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top::after {
    content: "↑";
    font-size: 24px;
} 