html {
  box-sizing: border-box;
  overflow-x: hidden; /* Применяем здесь, а не на body */
}

*, *:before, *:after {
  box-sizing: inherit;
}



:root {
    --bg-color: #F5F5F7;
    --text-color: #1d1d1f;
    --accent-color: #4B0082; /* Indigo */
    --accent-light-color: #eadaff;
    --card-bg-color: #FFFFFF;
    --border-color: #d2d2d7;
}

body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.main-container {
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}

/* УЛУЧШЕННЫЕ ПЕРЕНОСЫ СЛОВ */
.hero-title, .section-title, .section-title-left, h3 {
    text-wrap: balance;
}
p, .hero-subtitle, .stat-desc {
    text-wrap: pretty;
}

/* --- Стили секций --- */
section {
    margin-bottom: 120px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

.section-title-left {
    font-size: 3rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 30px;
}

/* --- Кнопка Оплаты --- */
.pay-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 999px; /* Pill shape */
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: inline-block;
    margin-top: 20px;
}

.pay-button:hover {
    transform: scale(1.05);
    background-color: #3A006A;
}

.pay-button.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}


/* --- Первый экран (Hero) --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 80vh;
    margin-bottom: 120px;
}

.hero-content {
    flex-basis: 50%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 500px;
    line-height: 1.6;
}

.hero-image-container {
    flex-basis: 45%;
    border-radius: 30px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.answers-grid {
    display: flex; /* Вместо grid используем flexbox */
    flex-wrap: wrap; /* Разрешаем перенос карточек на новую строку */
    justify-content: center; /* Центрируем карточки по горизонтали */
    gap: 20px; /* Немного уменьшили расстояние */
}

.answer-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    flex-basis: 300px; /* Задаем базовую ширину для карточки */
    flex-grow: 1; /* Разрешаем карточкам расти, чтобы заполнить пространство */
    
    /* Добавляем это, чтобы контент внутри карточек тоже красиво растягивался */
    display: flex;
    flex-direction: column;
}

.answer-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Добавим этот стиль, чтобы текст занимал всё доступное место, 
   и заголовок всегда был наверху */
.answer-card p {
    flex-grow: 1; 
}}

/* --- Третий экран (About) --- */
.about-section {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: var(--card-bg-color);
    padding: 60px;
    border-radius: 30px;
}

.about-image-container {
    flex-basis: 40%;
    border-radius: 20px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex-basis: 60%;
}
.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.stats {
    margin: 30px 0;
}
.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.tag {
    background-color: var(--bg-color);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* --- НОВЫЕ СТИЛИ: Секция Отзывов --- */


/* --- НОВЫЕ СТИЛИ: Секция Отзывов со Слайдером --- */
.reviews-section {
        /* Этот padding мы убрали ранее, и это было правильно */
        overflow: hidden; /* <-- Вот ключ к успеху! Секция сама обрежет лишнее */
        margin-bottom: 120px; /* Вернем стандартный отступ секции */
    }


.swiper.testimonials-slider {
    padding: 20px 0 20px 0;
    overflow: visible; /* Позволяем боковым слайдам выходить за пределы контейнера */
}
.slider-container {
    overflow: hidden;
    margin-left: -20px;  /* Компенсирует padding у .main-container на десктопе */
    margin-right: -20px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 320px; 
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease; /* Добавляем плавный переход */
}

/* Стили для НЕактивных слайдов */
.swiper-slide:not(.swiper-slide-active) {
    filter: blur(4px) brightness(0.8); /* Размытие + затемнение */
    opacity: 0.7; /* Легкая прозрачность */
    transform: scale(0.9); /* Немного уменьшаем */

}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Стили для стрелок и точек */
.swiper-button-next, .swiper-button-prev {
    color: var(--accent-color);
    top: 50%;
    transform: translateY(-150%); /* Поднимаем стрелки выше */
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
}

.swiper-pagination {
    position: relative; /* Меняем позиционирование для управления через margin */
    margin-top: 15px;   /* Добавляем небольшой отступ сверху от картинок */
    bottom: auto;       /* Сбрасываем привязку к низу */
}

/* --- Четвертый экран (Result) --- */
.result-section {
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.result-card {
    background-color: var(--accent-light-color);
    padding: 40px 30px;
    border-radius: 20px;
}

.result-icon {
    font-size: 2.5rem;
}

/* --- НОВЫЕ СТИЛИ: Футер и иконка Telegram --- */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-link svg {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    color: var(--accent-color);
}

/* --- Стили для модального окна --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--border-color);
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: var(--text-color);
}

.modal-content h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 30px 0;
    padding: 5px;
}
.input-group input {
    border: none;
    outline: none;
    padding: 15px;
    font-size: 1.2rem;
    width: 100%;
    background: transparent;
    font-family: 'Manrope', sans-serif;
}
.input-group span {
    padding: 0 20px;
    font-weight: 600;
    color: #888;
}

.modal-error {
    color: #d93025;
    margin-top: 15px;
    min-height: 20px;
}

/* Для корректной работы placeholder в number input */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}



/* --- Адаптивность --- */
@media (max-width: 992px) {
    .hero-section, .about-section {
        flex-direction: column;
    }
    
    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .section-title-left { text-align: center; }
    
    .about-section { padding: 40px 30px; }
    
    .result-grid {
        grid-template-columns: 1fr;
    }

    /* Уменьшаем вертикальные отступы между секциями на мобильных */
    section {
        margin-bottom: 60px;
    }
    .hero-section {
        margin-bottom: 80px;
    }
    .section-title {
        margin-bottom: 40px;
    } 
    .main-container {
        padding: 30px 15px; /* Уменьшаем отступы по бокам */
    }
}

@media (max-width: 768px) {
    .section-title, .section-title-left { font-size: 2.2rem; }
    .hero-title { font-size: 2.8rem; }
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}


@media (max-width: 992px) {
    .slider-container {
        margin-left: -15px; /* Компенсирует padding у .main-container на мобильных */
        margin-right: -15px;
    }
}
