/* Google Reviews Section - Полные стили */

/* Основные стили секции */
.google-reviews-section {
    background: var(--color-dark);
    padding: 100px 0;
}

/* Заголовок секции */
.google-reviews-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
    gap: 12px;
}

.google-reviews-badge {
    color: var(--color-accent);
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0.48px;
    text-transform: uppercase;
}

.google-reviews-title {
    color: var(--color-primary);
    font-family: 'Dela Gothic One', cursive;
    font-size: 40px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 1.2px;
    margin: 0;
    text-align: center;
}

/* Основной контейнер для отзывов */
.google-reviews-wrapper {
    position: relative;
    margin-bottom: 48px;
    overflow: hidden;
    padding: 0 60px; /* Добавляем отступы для стрелок */
}

/* Слайдер отзывов */
.google-reviews-slider {
    display: flex;
    align-items: flex-start;
    gap: 23px;
    transition: transform 0.4s ease;
}

/* Карточка отзыва */
.review-card {
    flex: 0 0 306px;
    width: 306px;
    height: 320px;
    position: relative;
    background: rgba(250, 250, 250, 0.02);
    border-radius: 20px;
    border: 2px solid var(--color-border-translucent);
    transition: all 0.3s ease;
}

.review-card:hover {
    background: rgba(250, 250, 250, 0.04);
    border-color: rgba(250, 250, 250, 0.12);
}

/* Содержимое отзыва */
.review-content {
    position: absolute;
    top: 24px;
    left: 24px;
    width: calc(100% - 48px);
    max-height: 240px; /* УВЕЛИЧИЛИ с 200px до 240px */
    overflow: hidden;
}

.review-content p {
    color: var(--color-primary);
    font-family: 'Geologica', sans-serif;
    font-size: 15px; /* Увеличиваем текст отзыва */
    font-weight: 400; /* Немного жирнее */
    line-height: 150%; /* Больше межстрочный интервал */
    margin: 0;
}

/* Ссылка "Читать полностью" */
.read-more-link {
    color: var(--color-accent);
    font-size: 12px; /* Уменьшаем размер */
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: block; /* Делаем блочным элементом */
    margin-top: 8px; /* Отступ сверху */
    text-align: left; /* Выравнивание по левому краю */
}

.read-more-link:hover {
    opacity: 0.8;
    color: var(--color-accent);
    text-decoration: none;
}

.read-more-link i {
    font-size: 8px; /* ИСПРАВИЛИ: еще меньше иконка */
    margin-left: 4px;
}

/* Подвал карточки */
.review-footer {
    position: absolute;
    bottom: 20px;
    left: 24px;
    width: calc(100% - 48px);
    display: flex;
    align-items: center;
    gap: 8px; /* УМЕНЬШИЛИ gap для больше места */
}

/* Автор и аватар ПЕРВЫМИ (слева) */
.review-author-block {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 70%;
    min-width: 0;
    max-width: 50%;
}

.review-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: top;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dela Gothic One', cursive;
    font-size: 10px;
    font-weight: 400;
    color: var(--color-dark);
}

.review-author {
    color: var(--color-primary);
    font-family: 'Dela Gothic One', cursive;
    font-size: 11px;
    font-weight: 400;
    line-height: 120%;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Рейтинг посередине */
.review-rating {
    display: flex;
    gap: 2px; /* УМЕНЬШИЛИ gap между звездами */
    flex: 0 0 auto;
    align-items: center;
}

.star {
    width: 11px; /* УМЕНЬШИЛИ размер звезд */
    height: 11px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}

.star::before {
    content: '★';
    color: var(--color-accent); /* Золотой цвет для заполненных звезд */
}

.star.empty::before {
    content: '★';
    color: rgba(250, 250, 250, 0.3); /* Серый цвет для пустых звезд */
}

/* Время публикации справа */
.review-time {
    color: rgba(250, 250, 250, 0.6);
    font-family: 'Geologica', sans-serif;
    font-size: 9px; /* УМЕНЬШИЛИ размер шрифта даты */
    font-weight: 300;
    line-height: 120%;
    white-space: nowrap;
    flex: 0 0 auto;
    text-align: right; /* Выравниваем по правому краю */
    max-width: 60px; /* ОГРАНИЧИВАЕМ максимальную ширину */
}

/* Навигация слайдера - СТРЕЛКИ ПО БОКАМ как в видеоотзывах */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 3;
}

.slider-btn {
    width: 48px;
    height: 48px;
    background: rgba(250, 250, 250, 0.08);
    border: 2px solid var(--color-border-translucent);
    border-radius: 50%; /* Круглые кнопки */
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(12px);
}

.slider-btn:hover {
    background: rgba(250, 250, 250, 0.12);
    border-color: rgba(250, 250, 250, 0.16);
    transform: scale(1.05);
}

.slider-btn:active {
    transform: translateY(1px);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Индикаторы */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px; /* Отступ сверху */
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(250, 250, 250, 0.24);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-accent);
}

.dot:hover {
    background: rgba(250, 250, 250, 0.4);
}

.dot.active:hover {
    background: var(--color-accent);
}

/* Сообщение об отсутствии отзывов */
.reviews-not-available {
    text-align: center;
    padding: 60px 20px;
    background: rgba(250, 250, 250, 0.02);
    border-radius: 20px;
    border: 2px solid var(--color-border-translucent);
}

.reviews-not-available h3 {
    color: var(--color-primary);
    font-family: 'Dela Gothic One', cursive;
    font-size: 24px;
    font-weight: 400;
    line-height: 120%;
    margin: 0 0 16px 0;
}

.reviews-not-available p {
    color: rgba(250, 250, 250, 0.7);
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 140%;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

.btn-secondary-custom {
    display: inline-flex;
    padding: 12px 32px;
    background: rgba(250, 250, 250, 0.08);
    border: 2px solid var(--color-border-translucent);
    border-radius: 60px;
    color: var(--color-primary);
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: rgba(250, 250, 250, 0.12);
    border-color: rgba(250, 250, 250, 0.16);
    color: var(--color-primary);
    text-decoration: none;
}

/* Планшетная версия */
@media (max-width: 991px) {
    .google-reviews-section {
        padding: 80px 0;
    }

    .google-reviews-title {
        font-size: 32px;
        line-height: 38.4px;
    }

    .google-reviews-wrapper {
        padding: 0 50px; /* Меньше отступы для планшетов */
    }

    .review-card {
        flex: 0 0 280px;
        width: 280px;
        height: 300px;
    }

    .review-content {
        max-height: 210px; /* УВЕЛИЧИЛИ для планшетов */
    }

    .review-content p {
        font-size: 14px;
    }

    .review-author {
        font-size: 10px;
    }

    .google-reviews-slider {
        gap: 16px;
    }

    .review-footer {
        gap: 7px;
    }

    .review-author-block {
        gap: 7px;
        flex: 0 0 68%; /* Компромисс для планшетов */
    }

    .review-avatar {
        width: 20px;
        height: 20px;
    }

    .avatar-placeholder {
        font-size: 9px;
    }

    .star {
        width: 11px;
        height: 11px;
        font-size: 11px;
    }

    .review-time {
        font-size: 9px;
        max-width: 55px;
    }
}

/* Мобильная версия - ПРОСТОЕ РЕШЕНИЕ с margin */
@media (max-width: 768px) {
    .google-reviews-section {
        padding: 60px 0;
    }

    .google-reviews-header {
        margin-bottom: 32px;
        gap: 8px;
    }

    .google-reviews-badge {
        font-size: 14px;
        line-height: 14px;
        letter-spacing: 0.42px;
    }

    .google-reviews-title {
        font-size: 24px;
        line-height: 28.8px;
    }

    .google-reviews-wrapper {
        margin-bottom: 40px;
        padding: 0 40px; /* Отступы для стрелок */
    }

    .google-reviews-slider {
        gap: 0;
    }

    .review-card {
        /* Каждая карточка занимает 100% минус margin */
        flex: 0 0 calc(100% - 40px);
        width: calc(100% - 40px);
        height: 300px;
        box-sizing: border-box;
        /* Добавляем горизонтальные margin для отступов */
        margin: 0 20px;
    }

    .review-content {
        width: calc(100% - 48px);
        left: 24px;
        max-height: 220px; /* УВЕЛИЧИЛИ с 180px до 220px */
    }

    .review-content p {
        font-size: 14px; /* На мобильных чуть меньше */
        line-height: 145%;
    }

    .review-footer {
        width: calc(100% - 48px);
        left: 24px;
        bottom: 16px;
        gap: 6px; /* Еще меньше gap на мобильных */
    }

    .review-author-block {
        gap: 6px;
        flex: 0 0 65%; /* Чуть меньше на мобильных но больше чем было */
        max-width: 65%;
    }

    .review-author {
        font-size: 10px;
    }

    .review-avatar {
        width: 18px; /* Еще меньше аватар */
        height: 18px;
    }

    .avatar-placeholder {
        font-size: 8px;
    }

    .star {
        width: 10px; /* Меньше звезды */
        height: 10px;
        font-size: 10px;
    }

    .review-rating {
        gap: 1px; /* Минимальный gap */
    }

    .review-time {
        font-size: 8px; /* Еще меньше на мобильных */
        max-width: 50px;
    }

    .read-more-link {
        font-size: 11px;
        margin-top: 6px;
    }

    .read-more-link i {
        font-size: 7px; /* Еще меньше иконка на мобильных */
    }

    .slider-btn {
        width: 40px; /* Меньше размер на мобильных */
        height: 40px;
        font-size: 14px;
    }

    .slider-dots {
        margin-top: 40px; /* Больше отступ на мобильных */
    }
}

/* Очень маленькие экраны */
@media (max-width: 576px) {
    .google-reviews-section {
        padding: 40px 0;
    }

    .google-reviews-title {
        font-size: 20px;
        line-height: 24px;
    }

    .google-reviews-wrapper {
        padding: 0 30px;
    }

    .review-card {
        flex: 0 0 calc(100% - 30px);
        width: calc(100% - 30px);
        height: 280px;
        margin: 0 15px;
    }

    .review-content {
        width: calc(100% - 40px);
        top: 20px;
        left: 20px;
        max-height: 200px; /* УВЕЛИЧИЛИ с 160px до 200px */
    }

    .review-footer {
        width: calc(100% - 40px);
        bottom: 16px;
        left: 20px;
        gap: 4px; /* Минимальный gap */
    }

    .review-content p {
        font-size: 13px;
        line-height: 140%;
    }

    .review-author-block {
        gap: 5px;
        flex: 0 0 60%; /* Компромисс для очень маленьких экранов */
    }

    .review-author {
        font-size: 9px;
    }

    .review-avatar {
        width: 16px;
        height: 16px;
    }

    .avatar-placeholder {
        font-size: 7px;
    }

    .star {
        width: 9px;
        height: 9px;
        font-size: 9px;
    }

    .review-time {
        font-size: 7px;
        max-width: 40px;
    }

    .read-more-link {
        font-size: 10px;
        margin-top: 5px;
    }

    .read-more-link i {
        font-size: 6px;
    }

    .slider-btn {
        width: 36px; /* Еще меньше для очень маленьких экранов */
        height: 36px;
        font-size: 12px;
    }

    .slider-dots {
        margin-top: 48px; /* Еще больше отступ */
    }
}

/* Большие экраны */
@media (min-width: 1200px) {
    .google-reviews-section {
        padding: 120px 0;
    }

    .google-reviews-title {
        font-size: 48px;
        line-height: 57.6px;
        letter-spacing: 1.44px;
    }

    .google-reviews-header {
        margin-bottom: 64px;
    }

    .google-reviews-wrapper {
        margin-bottom: 56px;
    }

    .slider-dots {
        margin-top: 40px;
    }
}

/* Дополнительные стили для адаптивности */
@media (max-width: 480px) {
    .google-reviews-wrapper {
        padding: 0 20px;
    }

    .review-card {
        flex: 0 0 calc(100% - 20px);
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .reviews-not-available {
        padding: 40px 15px;
    }

    .reviews-not-available h3 {
        font-size: 20px;
    }

    .reviews-not-available p {
        font-size: 14px;
    }
}