/* style.css */

/* ДОБАВЛЕНО: Импорт шрифтов Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Roboto:wght@400;700&display=swap');


/* Общие стили */
:root {
    --primary-color: #007bff; /* Основной цвет для кнопок, ссылок */
    --primary-color-darker: #0069d9; /* Более темный оттенок для hover */
    --primary-color-darkest: #005cbf; /* Еще темнее */
    --primary-color-light-bg: #e6f2ff; /* Светлый фон для иконок */
    --secondary-color: #6c757d; /* Второстепенный цвет */
    --accent-color: #28a745; /* Акцентный цвет */
    --accent-color-light-bg: #e6f9e6; /* Светлый фон для иконок */
    --text-color-dark: #343a40; /* Темный текст */
    --text-color-light: #f8f9fa; /* Светлый текст */
    --background-light: #ffffff; /* Светлый фон */
    --background-dark: #343a40; /* Темный фон */
    --border-color: #dee2e6;
    
    /* ИЗМЕНЕНО: Обновлены семейства шрифтов */
    --font-family-sans: 'Roboto', 'Arial', sans-serif;
    --font-family-serif: 'Merriweather', 'Georgia', serif;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color-dark);
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    color: var(--text-color-dark);
    margin-top: 0;
    margin-bottom: 0.5em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Навигация */
.navbar {
    background-color: var(--background-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky; /* Добавим "липкость" шапке */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Легкая тень */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-family-serif);
}

.lang-switcher a {
    margin-left: 10px;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color-dark);
    transition: all 0.3s ease; /* Плавный переход */
}

.lang-switcher a.active,
.lang-switcher a:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
    text-decoration: none;
}

/* Секции */
section {
    padding: 80px 0;
    text-align: center;
}

section:nth-child(even) { /* Чередование фонов для лучшей читаемости */
    background-color: #f8f9fa; /* Чуть светлее, чем #f2f2f2 */
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1em;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/hero-background.jpg') no-repeat center center / cover;
    color: var(--text-color-light);
    padding: 150px 0;
}

#hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

#hero p {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: rgba(255,255,255,0.9); /* Чуть ярче */
}

/* УЛУЧШЕНО: Кнопка */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    /* ДОБАВЛЕНО: Градиент */
    background-image: linear-gradient(to bottom, var(--primary-color), var(--primary-color-darker));
    color: var(--text-color-light);
    padding: 15px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none; /* Убираем рамку */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover {
    /* ИСПРАВЛЕНО: Ошибка SCSS */
    /* background-color: darken(var(--primary-color), 10%); */
    
    /* УЛУЧШЕНО: Эффект при наведении */
    background-image: linear-gradient(to bottom, var(--primary-color-darker), var(--primary-color-darkest));
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Блок Проблема и Решение */
.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.problem-item, .solution-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    /* УЛУЧШЕНО: Тень */
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: left;
}

.problem-item h3, .solution-item h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.problem-item p, .solution-item p {
    color: var(--text-color-dark);
}

.problem-solution-image {
    margin-top: 50px;
    max-width: 70%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Блок Видео */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-description ul {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 20px auto 0 auto;
    text-align: left;
}

.video-description li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.video-description li::before {
    content: '✓'; /* Иконка-галочка */
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Блок Функции */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    /* УЛУЧШЕНО: Тень */
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: left;
}

/* УЛУЧШЕНО: Иконки */
.feature-item .icon {
    font-size: 2.5em; /* Немного уменьшим */
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    /* ДОБАВЛЕНО: Фон */
    width: 80px;
    height: 80px;
    line-height: 80px; /* Вертикальное выравнивание иконки */
    border-radius: 50%;
    background-color: var(--primary-color-light-bg);
    margin-left: auto;
    margin-right: auto;
}

.feature-item img { /* Если иконка - изображение */
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
}

.feature-item h3 {
    font-size: 1.5em;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--secondary-color);
}

/* Блок Целевая Аудитория */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.audience-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    /* УЛУЧШЕНО: Тень */
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: left;
}

/* УЛУЧШЕНО: Иконки */
.audience-item .icon {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
    /* ДОБАВЛЕНО: Фон */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: var(--accent-color-light-bg);
    margin-left: auto;
    margin-right: auto;
}

.audience-item h3 {
    font-size: 1.4em;
    color: var(--text-color-dark);
    text-align: center;
    margin-bottom: 10px;
}

.audience-item p {
    color: var(--secondary-color);
}

/* Блок Регистрации */
#registration {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 100px 0;
}

#registration h2 {
    color: var(--text-color-light);
}

#registration p {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.registration-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-align: left;
}

.registration-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color-dark);
}

/* ИСПРАВЛЕНО: Поля ввода */
.registration-form input[type="email"],
.registration-form input[type="text"] {
    width: 100%; /* Было: calc(100% - 20px) */
    box-sizing: border-box; /* ДОБАВЛЕНО: для корректного расчета ширины */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
}

.registration-form button.btn {
    width: 100%;
    cursor: pointer;
    font-size: 1.1em;
    padding: 15px;
    margin-bottom: 15px;
}

.registration-form .small-text {
    font-size: 0.9em;
    color: var(--secondary-color);
    text-align: center;
}

/* Футер */
.footer {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 40px 0;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: var(--primary-color);
}

.footer a:hover {
    color: var(--text-color-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .navbar-brand {
        margin-bottom: 15px;
    }

    #hero h1 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1.1em;
    }

    .section-header h2 {
        font-size: 2em;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .lang-switcher a {
        padding: 3px 8px;
        font-size: 0.9em;
    }
    .lang-switcher {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .lang-switcher a:first-child {
        margin-left: 0;
    }
    .lang-switcher a {
        margin: 5px;
    }

    #hero h1 {
        font-size: 2em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .registration-form {
        padding: 25px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-40 {
    margin-bottom: 40px;
}

.icon i {
    font-size: inherit; /* Используем размер родительского элемента .icon */
    line-height: inherit; /* Наследуем line-height для выравнивания */
}