/* CSS переменные */
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #e53935;
    --accent-hover: #c62828;
    --gray-color: #333;
    --light-gray: #666;
    --transition: all 0.5s ease;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --section-padding: 100px 0;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.visually-hidden {
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    white-space: nowrap;
    border: 0;
}

.logo-icon {
    max-width: 220px;
    height: auto;
}

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

.section {
    padding: var(--section-padding);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header__logo {
    display: flex;
}

.header__logo:hover {
    color: var(--light-gray);
}

/* Навигация */
.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav__link:hover {
    color: var(--accent-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

/* Бургер меню для мобильных */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.nav__burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav__burger.active .nav__burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav__burger.active .nav__burger-line:nth-child(2) {
    opacity: 0;
}

.nav__burger.active .nav__burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Герой секция */
.hero {
    padding-top: 160px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero__content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero__text {
    flex: 1;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.hero__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ccc;
}

.hero__features {
    margin-bottom: 40px;
}

.hero__feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.hero__feature svg {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ============== СТИЛИ ДЛЯ ТАЙМЕРА ОБРАТНОГО ОТСЧЕТА ============================ */

.countdown {
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('../img/circle.svg') repeat;
    background-size: 80px;
}

.countdown__wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 50px 20px;
}

.countdown__header {
    margin-bottom: 40px;
}

.countdown__title {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px var(--box-shadow);
}

.countdown__subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
}

/* Таймер */
.countdown__timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.countdown__item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 15px;
    min-width: 120px;
    box-shadow: 0 10px 30px var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--box-shadow);
    background: rgba(229, 57, 53, 0.1);
}

.countdown__number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Raleway', sans-serif;
    text-shadow: 0 2px 5px var(--box-shadow);
}

.countdown__label {
    font-size: 1rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.countdown__separator {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 900;
    margin: 0 5px;
}

/* Дата старта */
.countdown__date {
    background: rgba(229, 57, 53, 0.1);
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 10px;
    padding: 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #fff;
}

.countdown__date i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.countdown__date strong {
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* Кнопка CTA */
.countdown__cta {
    margin-top: 30px;
}

.countdown__btn {
    font-size: 1.2rem;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #c62828 100%);
    border: none;
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
    animation: pulse 2s infinite;
}

.countdown__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.6);
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
}

.countdown__btn svg {
    position: relative;
    top: 5px;
    margin-right: 10px;
}

.countdown__note {
    color: var(--light-gray);
    margin-top: 15px;
    font-size: 0.95rem;
    font-style: italic;
}

/* Сообщение после завершения таймера */
.countdown__message {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown__message-content {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.countdown__message-content svg {
    color: #ffc107;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.countdown__message-content-title {
    color: #ffc107;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.countdown__message-content-text {
    color: var(--light-gray);
    margin: 0;
}

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

.countdown__wrapper {
    animation: fadeInUp 1s ease-out;
}

/* Анимация пульсации для кнопки */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(229, 57, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
    }
}

/* Анимация для предупреждения (последние 24 часа) */
@keyframes warning {
    0%, 100% {
        background-color: rgba(229, 57, 53, 0.1);
        border-color: rgba(229, 57, 53, 0.3);
    }
    50% {
        background-color: rgba(229, 57, 53, 0.3);
        border-color: rgba(229, 57, 53, 0.6);
    }
}

/* Класс для последних 24 часов */
.countdown__item--warning {
    animation: warning 2s infinite;
    background: rgba(229, 57, 53, 0.2) !important;
    border-color: #e53935 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .countdown__title {
        font-size: 2.2rem;
    }
    
    .countdown__timer {
        gap: 10px;
    }
    
    .countdown__item {
        min-width: 80px;
        padding: 20px 10px;
    }
    
    .countdown__number {
        font-size: 2.5rem;
    }
    
    .countdown__separator {
        font-size: 2rem;
        margin: 0 2px;
    }
}

@media (max-width: 576px) {
    .countdown__title {
        font-size: 1.8rem;
    }
    
    .countdown__subtitle {
        font-size: 1.1rem;
    }
    
    .countdown__timer {
        gap: 0;
    }
    
    .countdown__item {
        min-width: 60px;
        padding: 15px 5px;
    }
    
    .countdown__number {
        font-size: 1.6rem;
    }
    
    .countdown__label {
        font-size: 0.6rem;
    }
    
    .countdown__separator {
        font-size: 1.5rem;
    }
    
    .countdown__date {
        font-size: 1rem;
        padding: 15px;
    }

    #start-date {
        display: block;
    }
    
    .countdown__btn {
        font-size: 1rem;
        padding: 15px 30px;
    }
}

/* Секция программы */
.program__content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.program-card__number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
}

.program-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.program-card__description {
    color: #ccc;
}

.program__additional {
    margin-top: 60px;
    background-color: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

.program__additional h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.program__additional-list {
    margin-bottom: 20px;
}

.program__additional-item {
    padding-bottom: 6px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.program__additional-item svg {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Секция для кого этот курс */
.course-for__text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 20px auto 40px;
    color: var(--accent-color);
}

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Карточка категории */
.category-card {
    background-color: var(--gray-color);
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(var(--primary-color), 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    margin-top: -10px;
    margin-bottom: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--accent-hover);
}

/* Иконки для категорий */
.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-color);
}

.category-icon svg {
    opacity: 0.8;
}

/* Разные цвета для иконок */
.icon-smm {
    background-image: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.icon-blogger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.icon-beauty {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.icon-video {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.icon-travel {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.icon-photo {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Заголовок карточки */
.category-card__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Описание карточки */
.category-card__text {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Декоративный элемент на карточке */
.category-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover:after {
    transform: scaleX(1);
}


/* Секция тарифов */
.tariffs {
    background-color: #111;
}

.tariffs__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.tariff-card {
    background-color: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tariff-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.tariff-card--highlighted {
    border-color: var(--accent-color);
}

.tariff-card__badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.tariff-card__title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.tariff-card__subtitle {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.tariff-card__price {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 20px 0;
    color: var(--accent-color);
}

/* Отображение стоимости после истечения скидки */
.tariff-card__price {
    text-align: center;
}

.tariff-card__price span {
    font-size: 1rem;
    color: #ccc;
    text-decoration: line-through;
    margin-left: 10px;
}

.tariff-card__features {
    flex-grow: 1;
    margin-bottom: 30px;
}

.tariff-card__feature {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tariff-card__feature svg {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.tariff-card__feature--excluded {
    color: var(--light-gray);
}

.tariff-card__feature--excluded svg {
    color: var(--light-gray);
}

.tariff-card__btn {
    width: 100%;
    text-align: center;
}

/* Секция сомневаешься */
.doubt {
    text-align: center;
}

.doubt__title {
    font-size: 3rem;
    margin-bottom: 30px;
}

.doubt__subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 50px;
}

.doubt__features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.doubt-feature {
    background-color: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    transition: var(--transition);
}

.doubt-feature:hover {
    transform: translateY(-5px);
    background-color: #444;
}

.doubt-feature svg {
    color: var(--accent-color);
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
}

.doubt-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.doubt__info {
    background-color: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.doubt__info h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.doubt__info p {
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: #111;
    padding: 60px 0 30px;
}

.footer__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 20px;
    margin-bottom: 40px;
}

.footer__about {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer__logo {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer__description {
    color: #ccc;
    max-width: 400px;
}

.footer__links {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer__links-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer__links-list li {
    margin-bottom: 10px;
}

.footer__links-list a {
    transition: var(--transition);
}

.footer__links-list a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer__social {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer__social-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer__social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-color);
    border-radius: 50%;
    transition: var(--transition);
}

.footer__social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer__social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--secondary-color);
}

.footer__copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-color);
    color: #ccc;
    font-size: 0.9rem;
}

.footer__copyright a {
    color: var(--accent-color);
    transition: var(--transition);
}

.footer__copyright a:hover {
    text-decoration: underline;
}

/* Модальное окно */
.modal {
    /* display: none; */
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.active {
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 1;
}

.modal__content {
    background-color: var(--primary-color);
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    border: 2px solid var(--accent-color);
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: -28px;
    right: 6px;
    font-size: 4rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--accent-color);
}

.modal__title {
    font-size: 2rem;
    margin-bottom: 14px;
    text-align: center;
    color: var(--accent-color);
}

.modal__form {
    display: flex;
    flex-direction: column;
}

.modal__form-group {
    margin-bottom: 12px;
}

.modal__label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.modal__input,
.modal__select {
    width: 100%;
    padding: 12px;
    background-color: var(--gray-color);
    border: 1px solid #555;
    border-radius: var(--border-radius);
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.modal__select {
    appearance: none;
    background-image: url(../img/arrow.svg);
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: 95% 50%;
}

.modal__input:hover,
.modal__select:hover {
    border-color: var(--accent-hover);
}

.modal__input:focus,
.modal__select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.modal__small {
    margin-left: 10px;
    color: var(--light-gray);
    font-size: 12px;
}

.modal__checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

/* Скрываем стандартный чекбокс */
.modal__checkbox input[type="checkbox"] {
    position: absolute;
    top: 26px;
    left: 20px;
}

/* Стилизуем лейбл (сам "квадратик") */
.modal__checkbox input[type="checkbox"] + label {
  display: inline-block;
  position: relative;
  padding-left: 36px; /* Место для кастомного чекбокса */
  cursor: pointer;
}

/* Создаем сам "квадратик" через ::before */
.modal__checkbox input[type="checkbox"] + label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px; /* Размер */
  height: 24px; /* Размер */
  border: 1px solid #555;
  border-radius: var(--border-radius);
  background-color: var(--gray-color);
  transition: var(--transition);
}

/* Стиль при наведении */
.modal__checkbox input[type="checkbox"] + label:hover::before {
  border-color: var(--accent-hover);
}

/* Стиль для отмеченного состояния */
.modal__checkbox input[type="checkbox"]:checked + label::before {
  background-color: var(--accent-color); /* Цвет фона при выборе */
  border-color: var(--accent-hover);
}

/* Галочка (можно использовать SVG или псевдоэлемент) */
.modal__checkbox input[type="checkbox"]:checked + label::after {
  content: '✓'; /* Символ галочки */
  position: absolute;
  left: 4px;
  top: -14px;
  font-size: 30px;
  color: var(--secondary-color); /* Цвет галочки */
  transition: var(--transition);
}

.modal__checkbox a {
    color: var(--accent-color);
    text-decoration: underline;
}

.modal__btn {
    width: 100%;
}

/* Страница политики */
.policy-page {
    padding: 150px 0 100px;
    min-height: 100vh;
}

.policy__title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.policy__content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

.policy__section {
    margin-bottom: 30px;
}

.policy__section h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

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

.policy__back {
    text-align: center;
    margin-top: 40px;
}

.modal__message {
    padding: 40px;
    border-radius: 12px;
    margin: 25px auto 0;
    display: none;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(5px);
    position: absolute;
    max-width: 430px;
    transform: translateY(-50%);
}

.modal__message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #cbf6cd;
}
        
.modal__message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ef9a9a;
}

.privacy-note {
            margin-top: 25px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 12px;
            text-align: center;
            line-height: 1.5;
        }
        
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Адаптивность */
@media (min-width: 1160px) {
    .program__additional-item svg {
        width: 40px;
    }
}

@media (max-width: 992px) {
    .nav__list {
        gap: 15px;
    }
    .hero__content {
        flex-direction: column;
        text-align: center;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__feature {
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .tariffs__container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .doubt__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 880px) {
    .nav__list {
        position: fixed;
        left: 0;
        right: 0;
        width: 0;
        height: 0;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav__list.active {
        width: 100%;
        height: 100%;
        transform: translateY(0);
        opacity: 1;
        top: 100px;
    }
    
    .nav__burger {
        display: flex;
    }
}

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

    .section-title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 2.3rem;
    }

    .hero__subtitle {
        font-size: 1.3rem;
    }

    .program__additional-item {
        flex-direction: column;
        align-items: start;
        position: relative;
    }

    .program__additional-item::after {
        content: "";
        width: 100%;
        height: 1px;
        background-color: var(--secondary-color);
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .categories-grid {
        gap: 20px;
    }

    .category-card__text {
        font-size: 1.1rem;
    }

    .modal__content {
        padding: 30px 20px;
    }

    .footer__content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 140px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__features {
        max-width: 406px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0 auto 40px;
    }

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

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

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

    .policy__content {
        padding: 30px 20px;
    }
}
