/* ============================================
   БАЗОВЫЕ СТИЛИ И RESET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   БЛОК №1: HERO (Главный экран)
   ============================================ */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh; /* Поддержка новых единиц для мобильных */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero__banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__button {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center;
    /* Мобильная позиция: фиксированная снизу по центру, всегда видна при скролле */
    margin: 0;
}

/* Мобильная версия - кнопка еще ниже */
@media (max-width: 767px) {
    .hero__button {
        bottom: -10px;
    }
}

.hero__button-img {
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
    transition: filter 0.3s ease;
}

/* Мобильная версия - большая кнопка */
@media (max-width: 767px) {
    .hero__button-img {
        width: 500px;
        max-width: 90vw; /* Не больше 90% ширины экрана, чтобы не выходила за края */
    }
}

/* Пульсация кнопки для мобильной версии */
@keyframes pulse-mobile {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.03);
    }
}

.hero__button {
    animation: pulse-mobile 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero__button {
        animation: none;
    }
}

/* Hover эффекты для ПК */
@media (hover: hover) and (pointer: fine) {
    .hero__button:hover {
        transform: translateX(-50%) scale(1.05);
    }
    
    .hero__button:hover .hero__button-img {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) drop-shadow(0 0 35px rgba(255, 255, 255, 0.8));
    }
    
    .hero__button:active {
        transform: translateX(-50%) scale(0.98);
    }
}

.hero__button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ПК: кнопка в левом нижнем углу (absolute, зафиксирована в первом блоке) */
@media (min-width: 768px) {
    .hero {
        align-items: flex-end;
        justify-content: flex-start;
        position: relative;
    }
    
    .hero__button {
        position: absolute;
        bottom: -20px;
        left: 80px;
        right: auto;
        transform: none;
        margin: 0;
        z-index: 1000;
    }
    
    .hero__button-img {
        width: 500px;
        max-width: none;
    }
    
    /* Пульсация для ПК */
    @keyframes pulse-desktop {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.03);
        }
    }
    
    .hero__button {
        animation: pulse-desktop 1.5s ease-in-out infinite;
    }
    
    .hero__button:hover {
        transform: scale(1.05);
    }
    
    .hero__button:active {
        transform: scale(0.98);
    }
}

@media (min-width: 1024px) {
    .hero__button {
        bottom: -20px;
        left: 100px;
    }
    
    .hero__button-img {
        width: 550px;
        max-width: none;
    }
}

/* Мобильная версия - кнопка остается fixed */
@media (max-width: 767px) {
    .hero__button {
        position: fixed;
    }
}

/* ============================================
   БЛОК №2: REVIEWS (Отзывы)
   ============================================ */

.reviews {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    background-image: url('images/block_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (min-width: 768px) {
    .reviews {
        background-image: url('images/block_banner_pc.jpg');
        padding: 80px 20px;
    }
}

.reviews__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.reviews__title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
}

@media (min-width: 768px) {
    .reviews__title {
        font-size: 36px;
        margin-bottom: 50px;
    }
}

.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
}

@media (min-width: 768px) {
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .review-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-card__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

.review-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-card__name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.review-card__rating {
    display: flex;
    gap: 2px;
    font-size: 18px;
    line-height: 1;
}

.star {
    color: #ddd;
    transition: color 0.2s ease;
}

.star--filled {
    color: #ffc107;
}

.review-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    flex: 1;
}

/* Выигрыш в правом верхнем углу */
.review-card__amount {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .review-card__amount {
        top: 20px;
        right: 20px;
        font-size: 20px;
        padding: 8px 14px;
    }
}

/* Кнопка "Хочу так же" */
.review-card__button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    text-align: center;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-top: auto;
    font-family: inherit;
}

.review-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.review-card__button:active {
    transform: translateY(0);
}

.review-card__button:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .review-card__button {
        transition: none;
    }
    
    .review-card__button:hover {
        transform: none;
    }
}

/* ============================================
   БЛОК №3: ABOUT (Главный персонаж)
   ============================================ */

.about {
    width: 100%;
    padding: 60px 20px;
    background: #f8f9fa;
}

@media (min-width: 768px) {
    .about {
        padding: 80px 40px;
    }
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .about__container {
        flex-direction: row;
        gap: 60px;
        align-items: flex-start;
    }
}

.about__image-wrapper {
    width: 100%;
    max-width: 500px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .about__image-wrapper {
        width: 45%;
        max-width: 500px;
    }
}

/* Кнопка в третьем блоке - только для ПК */
.about__button {
    display: none;
}

@media (min-width: 768px) {
    .about__button {
        display: inline-block;
        cursor: pointer;
        transition: transform 0.3s ease, filter 0.3s ease;
        transform-origin: center;
        align-self: flex-start;
        margin-left: 30px;
    }
    
    .about__button-img {
        width: 100%;
        height: auto;
        max-width: 400px;
        display: block;
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
        transition: filter 0.3s ease;
    }
    
    .about__button:hover {
        transform: scale(1.05);
    }
    
    .about__button:hover .about__button-img {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) drop-shadow(0 0 35px rgba(255, 255, 255, 0.8));
    }
    
    .about__button:active {
        transform: scale(0.98);
    }
    
    .about__button:focus {
        outline: 2px solid rgba(255, 255, 255, 0.8);
        outline-offset: 4px;
        border-radius: 4px;
    }
}

@media (min-width: 1024px) {
    .about__button-img {
        max-width: 450px;
    }
}

.about__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .about__image {
        border-radius: 16px;
    }
}

.about__content {
    width: 100%;
    flex: 1;
}

@media (min-width: 768px) {
    .about__content {
        width: 55%;
    }
}

.about__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

@media (min-width: 768px) {
    .about__title {
        font-size: 40px;
        margin-bottom: 30px;
    }
}

.about__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__text p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

@media (min-width: 768px) {
    .about__text p {
        font-size: 17px;
    }
}

/* Альтернативный порядок на ПК (фото справа) */
@media (min-width: 768px) {
    .about__container {
        flex-direction: row-reverse;
    }
}

/* Футер третьего блока */
.about__footer {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .about__footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 50px 40px;
    }
}

.about__footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about__footer-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (min-width: 768px) {
    .about__footer-text {
        font-size: 15px;
    }
}

.about__footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.about__social-icon {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.about__social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.about__social-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .about__social-img {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ
   ============================================ */

/* Заглушки для изображений, если они не загружены */
img[src*="review-"],
img[src*="person"] {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

img[src*="review-"] {
    min-height: 60px;
    width: 60px;
    height: 60px;
}

/* Улучшение производительности */
.hero__banner-img,
.about__image,
.review-card__photo {
    will-change: transform;
}

/* Плавные переходы для всех интерактивных элементов */
a, button {
    transition: all 0.3s ease;
}

