/* ============================================
   🔥 ГЛОБАЛЬНЫЕ ЦВЕТА (НОВАЯ ГАММА)
   ============================================ */
:root {
    /* ---- Основные фоны ---- */
    --bg-primary: #FBF7F0;
    --bg-secondary: #FFFFFF;
    --bg-dark: #333333;

    /* ---- Акцент (терракотовый) ---- */
    --color-accent: #C87A5A;
    --color-accent-dark: #B56A4A;
    --color-accent-light: #F5E8E0;

    /* ---- Текст ---- */
    --text-primary: #333333;
    --text-secondary: #8C8C8C;
    --text-white: #FFFFFF;
    --text-muted: #A68A7B;

    /* ---- Кнопки ---- */
    --btn-gradient: linear-gradient(135deg, #C87A5A, #B56A4A);
    --btn-shadow: 0 8px 24px rgba(200, 122, 90, 0.25);

    /* ---- Рамки и тени ---- */
    --border-color: rgba(200, 122, 90, 0.2);
    --shadow-sm: 0 2px 8px rgba(80, 50, 30, 0.06);
    --shadow-md: 0 4px 16px rgba(80, 50, 30, 0.08);
    --shadow-lg: 0 12px 48px rgba(200, 122, 90, 0.15);

    /* ---- Скругления ---- */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

/* ============================================
   БАЗОВЫЙ СБРОС
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   ЗАГОЛОВКИ
   ============================================ */
.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 4px;
    margin: 12px auto 0;
}

/* ============================================
   ШАПКА
   ============================================ */
.header {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo__name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.logo__badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-light);
    padding: 0 8px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
    margin-top: 1px;
}

.nav {
    display: none;
}

.nav__list {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav__list a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: 0.2s;
}

.nav__list a:hover {
    color: var(--color-accent);
}

/* ---- Кнопка в шапке (скрыта на мобилках) ---- */
.btn--header {
    display: none;
}

.btn--small {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 40px;
    background: var(--color-accent);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn--small:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

/* ============================================
   БУРГЕР
   ============================================ */
.burger {
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s ease;
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 80px 0 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 999;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.mobile-link {
    display: block;
    padding: 16px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s;
}

.mobile-link:active {
    color: var(--color-accent);
    padding-left: 12px;
}

.mobile-menu__footer {
    margin-top: 20px;
}

.btn--full {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ============================================
   ГЕРОЙ
   ============================================ */
.hero {
    padding: 40px 0 60px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero__bg-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bg-text {
    position: absolute;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: -0.05em;
    color: var(--color-accent);
    opacity: 0.12;
}

.bg-text--math {
    font-size: clamp(80px, 20vw, 200px);
    top: 5%;
    left: -5%;
    transform: rotate(-12deg);
}

.bg-text--info {
    font-size: clamp(70px, 16vw, 160px);
    bottom: 15%;
    right: -8%;
    transform: rotate(8deg);
}

.bg-text--ege {
    font-size: clamp(60px, 14vw, 140px);
    top: 35%;
    left: 20%;
    transform: rotate(-18deg);
}

.bg-text--oge {
    font-size: clamp(50px, 12vw, 120px);
    bottom: 25%;
    left: 2%;
    transform: rotate(12deg);
}

.hero__content {
    text-align: center;
}

.hero__title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hero__title span {
    color: var(--color-accent);
}

.hero__exams {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.exam-tag {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4px 20px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero__subtitle strong {
    color: var(--text-primary);
}

.hero__actions {
    display: flex;
    justify-content: center;
}

.hero__visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.hero__photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-accent);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__extra {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: relative;
}

.hero__extra img,
.hero__extra video {
    width: 100%;
    height: auto;
    display: block;
}

.hero__extra-label {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-weight: 500;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

/* ============================================
   ДВУХСТРОЧНАЯ КНОПКА
   ============================================ */
.btn--primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 40px 16px;
    background: var(--btn-gradient);
    color: var(--text-white);
    box-shadow: var(--btn-shadow);
    border-radius: 60px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    line-height: 1.3;
    text-align: center;
    min-width: 220px;
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(200, 122, 90, 0.4);
}

.btn--primary:active {
    transform: scale(0.97);
}

.btn__line {
    display: block;
}

.btn__line--small {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 2px;
}

/* ============================================
   ПРЕИМУЩЕСТВА
   ============================================ */
.advantages {
    padding: 60px 0;
    background: var(--bg-primary);
}

.advantages__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.advantage-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.advantage-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.advantage-card__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.advantage-card__content {
    flex: 1;
}

.advantage-card__title {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.advantage-card__desc {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1.5;
}

/* ============================================
   ЦЕНА
   ============================================ */
.price {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.price__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.price__card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    text-align: center;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    position: relative;
}

.price__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ---- Карточка "Пробное" ---- */
.price__card--trial {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.price__card--trial .price__amount {
    color: #f59e0b;
}

.price__card--trial .btn--primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.price__card--trial .btn--primary:hover {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}

.price__card--trial .price__badge {
    background: #fef3c7;
    color: #d97706;
}

/* ---- Карточка "Регулярное" ---- */
.price__card--regular {
    border-color: var(--color-accent);
    background: var(--bg-primary);
}

.price__card--regular .price__amount {
    color: var(--color-accent);
}

/* ---- Бейдж ---- */
.price__badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* ---- Заголовок тарифа ---- */
.price__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* ---- Цена ---- */
.price__amount {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin: 8px 0;
}

.price__amount--trial {
    font-size: 32px;
    color: #f59e0b;
}

/* ---- Описание ---- */
.price__desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Список фич ---- */
.price__features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
    text-align: left;
    padding: 0 10px;
}

.price__features span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 48px;
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */
.reviews {
    padding: 60px 0;
    background: var(--bg-primary);
}

.reviews__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.review-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    flex: 1 1 calc(50% - 20px);
    min-width: 200px;
    max-width: 360px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.review-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-accent);
    flex-shrink: 0;
}

.review-card__name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.review-card__subject {
    font-size: 13px;
    color: var(--text-secondary);
}

.review-card__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.review-card__stars {
    color: #f59e0b;
    margin-top: 12px;
    font-size: 16px;
}

.review-card__date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   КНОПКА "ПОКАЗАТЬ ЕЩЁ"
   ============================================ */
.reviews__load-more {
    text-align: center;
    margin-top: 32px;
}

.reviews__load-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.reviews__load-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.reviews__load-btn:active {
    transform: scale(0.97);
}

.reviews__load-btn.hidden {
    display: none;
}

.reviews__load-arrow {
    transition: 0.3s;
    display: inline-block;
}

.reviews__load-btn:hover .reviews__load-arrow {
    transform: translateY(3px);
}

/* ============================================
   КОНТАКТЫ
   ============================================ */
.contacts {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.contacts__inner {
    display: grid;
    gap: 40px;
}

.contacts__info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contacts__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.contact-item:hover {
    color: var(--color-accent);
}

.contacts__form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacts__form input,
.contacts__form textarea,
.contacts__form select {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-primary);
    transition: 0.2s;
    width: 100%;
}

.contacts__form input:focus,
.contacts__form textarea:focus,
.contacts__form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(200, 122, 90, 0.15);
}

.contacts__form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   ФУТЕР
   ============================================ */
.footer {
    padding: 24px 0;
    background: var(--bg-dark);
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
}

/* ============================================
   МОДАЛЬНАЯ ФОРМА
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.modal__window {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    max-width: 440px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal__title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.modal__desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal__window form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__window input,
.modal__window select {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-primary);
    transition: 0.2s;
    width: 100%;
}

.modal__window input:focus,
.modal__window select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(200, 122, 90, 0.15);
}

.btn--header {
    display: none !important;
}

/* ============================================
   СТИЛИ ДЛЯ SELECT (ВЫПАДАЮЩИЙ СПИСОК)
   ============================================ */
.contacts__form select,
.modal__window select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    appearance: none; /* Убираем стандартную стрелку */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238C8C8C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.contacts__form select:focus,
.modal__window select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(200, 122, 90, 0.15);
}

/* ============================================
   АДАПТИВ
   ============================================ */

/* ---- Десктоп (>= 768px) ---- */
@media (min-width: 768px) {
    .nav {
        display: block;
    }
    .btn--header {
        display: inline-flex;
    }
    .burger {
        display: none;
    }
    .mobile-menu {
        display: none;
    }

    .hero {
        padding: 60px 0 80px;
        min-height: 90vh;
        display: flex;
        align-items: center;
    }

    .hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }

    .hero__content {
        text-align: left;
    }

    .hero__title {
        font-size: 56px;
    }

    .hero__exams {
        justify-content: flex-start;
    }

    .hero__subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .hero__actions {
        justify-content: flex-start;
    }

    .hero__photo {
        width: 300px;
        height: 300px;
    }

    .hero__extra {
        max-width: 100%;
    }

    .bg-text {
        opacity: 0.15;
    }

    .bg-text--math {
        font-size: 200px;
        top: 5%;
        left: -30px;
        transform: rotate(-15deg);
    }

    .bg-text--info {
        font-size: 160px;
        bottom: 10%;
        right: -50px;
        transform: rotate(10deg);
    }

    .bg-text--ege {
        font-size: 140px;
        top: 30%;
        left: 35%;
        transform: rotate(-22deg);
    }

    .bg-text--oge {
        font-size: 120px;
        bottom: 20%;
        left: 5%;
        transform: rotate(15deg);
    }

    .advantages__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 1000px;
    }

    .advantage-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        gap: 12px;
    }

    .advantage-card__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 4px;
    }

    .advantage-card__title {
        font-size: 18px;
    }

    .advantage-card__desc {
        font-size: 14px;
    }

    .price__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .price__card {
        padding: 40px 32px;
    }

    .price__amount {
        font-size: 44px;
        font-weight: 900;
        letter-spacing: -2px;
        color: var(--text-primary);
        margin: 8px 0;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .price__amount--trial {
        font-size: 38px;
    }

    .reviews__grid {
        gap: 24px;
    }

    .review-card {
        flex: 1 1 calc(33.333% - 24px);
        max-width: 380px;
    }

    .reviews__load-btn {
        padding: 16px 40px;
        font-size: 18px;
    }

    .contacts__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: start;
        max-width: 1000px;
        margin: 0 auto;
    }

    .contacts__info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contacts__info .section-title {
        text-align: center;
        width: 100%;
    }

    .contacts__info p {
        text-align: center;
        max-width: 400px;
    }

    .contacts__items {
        align-items: center;
        width: 100%;
    }

    .contact-item {
        text-align: center;
    }

    .contacts__form form {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

/* ---- Планшет / Телефон (< 768px) ---- */
@media (max-width: 767px) {
    .price__card {
        padding: 28px 20px;
    }

    .price__amount {
        font-size: 38px;
    }

    .price__amount--trial {
        font-size: 28px;
    }

    .review-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .modal__window {
        padding: 32px 20px;
    }

    .contacts__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contacts__info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contacts__info .section-title {
        text-align: center;
        width: 100%;
    }

    .contacts__info p {
        text-align: center;
        max-width: 400px;
    }

    .contacts__items {
        align-items: center;
        width: 100%;
    }

    .contact-item {
        text-align: center;
    }

    .contacts__form {
        width: 100%;
        max-width: 400px;
    }

    .contacts__form form {
        width: 100%;
    }
}

/* ---- Маленькие телефоны (< 480px) ---- */
@media (max-width: 480px) {
    .bg-text--math {
        font-size: 60px;
        top: 8%;
        left: -2%;
        transform: rotate(-10deg);
    }

    .bg-text--info {
        font-size: 50px;
        bottom: 20%;
        right: -5%;
        transform: rotate(6deg);
    }

    .bg-text--ege {
        font-size: 45px;
        top: 40%;
        left: 15%;
        transform: rotate(-15deg);
    }

    .bg-text--oge {
        font-size: 40px;
        bottom: 30%;
        left: 0%;
        transform: rotate(10deg);
    }

    .advantages__grid {
        gap: 12px;
    }

    .advantage-card {
        padding: 14px 16px;
    }

    .advantage-card__title {
        font-size: 15px;
    }

    .advantage-card__desc {
        font-size: 13px;
    }

    .advantage-card__icon {
        width: 32px;
        height: 32px;
    }
    .contacts__form select,
    .modal__window select {
        font-size: 15px;
        padding: 12px 16px;
    }
}