/* ============================================ */
/* ИМПОРТ ШРИФТОВ                               */
/* ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================ */
/* ГЛОБАЛЬНЫЕ СТИЛИ                             */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================ */
/* CSS ПЕРЕМЕННЫЕ (Цветовая палитра)            */
/* ============================================ */
:root {
    /* Синие цвета как на Quizlet */
    --primary-blue: #4255FF;
    --light-blue: #586AFF;
    --dark-blue: #3A46CC;

    /* Цвета карточек */
    --blue-light-card: #7DD5F7;
    --yellow-card: #FFCD1F;
    --pink-card: #FFB3BA;
    --purple-light: #EEF0FF;

    /* Цвета текста */
    --text-dark: #282E3E;
    --text-gray: #586380;
    --text-light: #939BB4;

    /* Цвета фона */
    --bg-white: #FFFFFF;
    --bg-light: #F6F7FB;
    --bg-gray: #E8E9EE;
}

/* ============================================ */
/* БАЗОВЫЕ СТИЛИ BODY                           */
/* ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

/* ============================================ */
/* КОНТЕЙНЕР                                    */
/* ============================================ */
.container {
    max-width: 1400px;
    /* Расширили с 1200px до 1400px */
    margin: 0 auto;
    padding: 0 40px;
    /* Увеличили padding с 20px до 40px */
}

/* ============================================ */
/* HEADER - Шапка сайта                         */
/* ============================================ */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--bg-gray);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Логотип */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-right: 16px;
    cursor: pointer;
}

/* ============================================ */
/* НАВИГАЦИОННОЕ МЕНЮ                           */
/* ============================================ */
.nav-menu {
    display: flex;
    gap: 8px;
}

/* Dropdown меню */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-btn:hover {
    background-color: var(--bg-light);
}

/* Стрелка dropdown */
.dropdown-arrow {
    transition: transform 0.2s;
    opacity: 0.6;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Содержимое dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Секция dropdown */
.dropdown-section {
    padding: 4px 0;
}

.dropdown-content h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-gray);
    margin: 8px 12px 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Пункт dropdown */
.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
}

/* ============================================ */
/* ПОИСК                                        */
/* ============================================ */
.search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
    transition: transform 0.3s;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--bg-gray);
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

/* ============================================ */
/* КНОПКИ В HEADER                              */
/* ============================================ */
.nav-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.btn-create {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.btn-create:hover {
    background-color: var(--bg-light);
}

.btn-login {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    /* Убирает подчеркивание текста */
    display: inline-block;
    /* Позволяет задавать отступы как у блока */
    text-align: center;
}

.btn-login:hover {
    background-color: var(--light-blue);
}

/* ============================================ */
/* HERO SECTION - Главный экран                 */
/* ============================================ */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Основная кнопка */
.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(66, 85, 255, 0.3);
}

.btn-primary.large {
    font-size: 18px;
    padding: 18px 40px;
}

/* Ссылка для учителей */
.teacher-link {
    display: block;
    margin-top: 20px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.teacher-link:hover {
    color: var(--light-blue);
}

/* ============================================ */
/* LEARNING METHODS - Способы обучения          */
/* ============================================ */
.learning-methods {
    padding: 60px 0 80px 0;
    position: relative;
    background-color: var(--bg-light);
}

/* Ссылка "Я учитель" над каруселью */
.teacher-link-top {
    text-align: right;
    margin-bottom: 30px;
}

.teacher-link-small {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.teacher-link-small:hover {
    color: var(--light-blue);
}

/* Обертка карусели */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Контейнер карусели */
.cards-carousel {
    overflow: hidden;
    width: 100%;
}

.cards-track {
    display: flex;
    gap: 20px;
    /* Увеличили с 16px до 20px */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Карточка метода */
.method-card {
    min-width: calc(25% - 12px);
    max-width: calc(25% - 12px);
    /* Добавили max-width для фиксации */
    width: calc(25% - 12px);
    /* Добавили width для фиксации */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 380px;
    /* Фиксированная высота */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: white;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Убираем цветные фоны - больше не нужны */
.card-yellow,
.card-pink,
.card-green,
.card-blue-light,
.card-purple {
    background-color: white;
}

/* Заголовок карточки */
.method-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 20px 20px 16px 20px;
    margin: 0;
    text-align: left;
    flex-shrink: 0;
    /* Заголовок не сжимается */
}

/* Контейнер изображения - теперь с фиксированными размерами */
.card-image-container {
    flex: 1;
    background-color: transparent;
    margin: 0 20px 20px 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    /* Важно для правильного flex */
}

/* Изображение карточки - фиксированные размеры */
.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Обрезает картинку по контейнеру */
    object-position: center;
    /* Центрирует картинку */
    border-radius: 12px;
    display: block;
    /* Убирает лишние отступы */
}

/* Кнопки карусели */
.carousel-btn {
    background-color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s;
    flex-shrink: 0;
    color: var(--text-dark);
    opacity: 1;
}

.carousel-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================ */
/* APP SECTION - Мобильное приложение           */
/* ============================================ */
.app-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.app-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.app-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.app-buttons {
    display: flex;
    gap: 16px;
}

.app-store-btn img,
.google-play-btn img {
    height: 48px;
}

/* Макет телефона */
.phone-mockup {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(66, 85, 255, 0.3);
}

.phone-screen {
    background-color: white;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
}

.app-screenshot p {
    font-size: 24px;
    font-weight: 600;
}

/* ============================================ */
/* STUDY MODE - Режим обучения                  */
/* ============================================ */
.study-mode {
    padding: 100px 0;
}

.study-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Демо карточка */
.demo-card {
    background-color: var(--blue-light-card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.demo-icon {
    font-size: 24px;
}

.demo-header h4 {
    font-size: 20px;
    font-weight: 600;
}

.demo-body {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.demo-word {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.demo-status {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.demo-status.success {
    color: #4CAF50;
}

/* Варианты ответов */
.demo-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.demo-option {
    padding: 12px;
    border: 2px solid var(--bg-gray);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-option:hover {
    border-color: var(--primary-blue);
    background-color: var(--bg-light);
}

.demo-option.correct {
    border-color: #4CAF50;
    background-color: #E8F5E9;
}

/* Настройки */
.demo-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
}

/* Переключатель */
.toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle input[type="checkbox"] {
    width: 44px;
    height: 24px;
    appearance: none;
    background-color: var(--bg-gray);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.toggle input[type="checkbox"]:checked {
    background-color: var(--primary-blue);
}

.toggle input[type="checkbox"]:checked::before {
    left: 22px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
}

/* Текст справа */
.study-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.study-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ============================================ */
/* TEST PREP - Подготовка к тестам              */
/* ============================================ */
.test-prep {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.test-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.test-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.test-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Макет теста */
.test-image {
    position: relative;
}

.test-mockup {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.test-card {
    background-color: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.test-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.test-icon {
    font-size: 24px;
}

.test-header h4 {
    font-size: 20px;
    font-weight: 600;
}

.test-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.test-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.test-option {
    padding: 16px;
    border: 2px solid var(--bg-gray);
    border-radius: 8px;
    background-color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.test-option:hover {
    border-color: var(--primary-blue);
    background-color: var(--bg-light);
}

/* Бейджи - убираем или делаем нормальными */
.stability-badge,
.muscle-badge,
.send-badge {
    display: none;
    /* Временно убираем кривые бейджи */
}

/* ============================================ */
/* TEACHERS SECTION - Секция для учителей       */
/* ============================================ */
.teachers-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--purple-light) 0%, #E8EBFF 100%);
}

.teachers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.teachers-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.teachers-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.link-blue {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.link-blue:hover {
    color: var(--light-blue);
}

.teacher-photo {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.photo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================ */
/* POPULAR MODULES - Популярные модули          */
/* ============================================ */
.popular-modules {
    padding: 100px 0;
}

.popular-modules h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Карточка модуля */
.module-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.module-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.module-info {
    padding: 24px;
}

.module-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.module-terms {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 16px;
}

.module-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.author-name {
    font-size: 14px;
    color: var(--text-gray);
}

/* ============================================ */
/* FOOTER - Подвал сайта                        */
/* ============================================ */
.footer {
    padding: 60px 0 40px;
    background-color: var(--bg-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

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

/* Выбор языка */
.language-select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--bg-gray);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    cursor: pointer;
}

/* QR код */
.qr-code {
    text-align: center;
    margin-top: 20px;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background-color: white;
    border: 2px solid var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.qr-code p {
    font-size: 12px;
    color: var(--text-gray);
}

/* ============================================ */
/* RESPONSIVE - Адаптивность                    */
/* ============================================ */
@media (max-width: 1024px) {
    .method-card {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
        /* Фиксация ширины */
        width: calc(50% - 10px);
        /* Фиксация ширины */
        height: 340px;
        /* Фиксированная высота */
    }

    .method-card h3 {
        font-size: 18px;
        padding: 14px 16px;
        flex-shrink: 0;
        /* Не сжимается */
    }

    .card-image-container {
        margin: 0 10px 10px 10px;
        min-height: 0;
        /* Важно для правильного flex */
    }

    .app-content,
    .study-content,
    .test-content,
    .teachers-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .method-card {
        min-width: 100%;
        max-width: 100%;
        /* Фиксация ширины */
        width: 100%;
        /* Фиксация ширины */
        height: 320px;
        /* Фиксированная высота */
    }

    .method-card h3 {
        font-size: 18px;
        padding: 12px 14px;
        flex-shrink: 0;
        /* Не сжимается */
    }

    .card-image-container {
        margin: 0 10px 10px 10px;
        min-height: 0;
        /* Важно для правильного flex */
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel-wrapper {
        gap: 12px;
    }

    .cards-track {
        gap: 12px;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }


}