/* ========== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ========== */
:root {
    --light-gray: #e8e8e8;
    --medium-gray: #d8d8d8;
    --dark-bg: #2a2a2a;
    --orange: #f7a11a;
    --dark-gray: #333333;
    --gray: #666666;
}

/* ========== БАЗОВЫЕ СТИЛИ ========== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.main-content {
    padding: 60px 0;
    background: var(--light-gray);
    width: 100%;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
    width: 100%;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-gray);
    font-size: 36px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--orange);
    margin: 15px auto;
    border-radius: 2px;
}

/* ========== СТИЛИ ДЛЯ УСЛУГ (4 В РЯД) ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопе */
    gap: 30px;
    width: 100%;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
/*        height: fit-content;*/
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-top: 4px solid var(--orange);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
/* Контейнер для текста с возможностью сворачивания */
.service-text {
    position: relative;
    max-height: 150px; /* Показываем примерно 5-6 строк */
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-bottom: 10px;
}
.service-text.expanded {
    max-height: 1000px; /* Достаточно для всего текста */
}
/* Градиент внизу текста, указывающий на возможность развернуть */
.service-text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

/* Кнопка для разворачивания */
.service-expand-btn {
    background: none;
    border: none;
    color: var(--orange);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 15px;
    margin-top: 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
    align-self: center;
    display: inline-block;
}

.service-expand-btn:hover {
    background: var(--orange);
    color: white;
}
.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 22px;
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0 0 10px 0;
    text-align: left;
}
.service-card ul {
    text-align: left;
    margin: 10px 0;
    padding-left: 20px;
    color: var(--gray);
}

.service-card li {
    margin-bottom: 5px;
}
/* Адаптивность */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
    }
    
    /* На мобильных текст не сворачиваем */
    .service-text {
        max-height: none !important;
    }
    
    .service-text:not(.expanded)::after {
        display: none;
    }
    
    .service-expand-btn {
        display: none; /* Прячем кнопку на мобильных */
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
}

/* ========== СТИЛИ ДЛЯ ПРОЕКТОВ ========== */
.projects-section {
    background: white;
    width: 100%;
    overflow: hidden;
}

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

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    user-select: none;
    width: 100%;
}

.project-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.carousel-inner:active {
    cursor: grabbing;
}

.carousel-inner img,
.carousel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carousel-inner img.active,
.carousel-video.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    opacity: 0.8;
    transition: opacity 0.3s;
    pointer-events: auto;
}

.video-play-btn:hover {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.project-image-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--orange);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.carousel-dots .dot.active {
    background: var(--orange);
    transform: scale(1.2);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

/* НОВЫЙ СТИЛЬ: описание проекта */
.project-description {
    padding: 20px;
    background: var(--light-gray);
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

.project-description p {
    margin: 0 0 10px 0;
}

.video-badge-small {
    background: #f7a11a;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== СТИЛИ ДЛЯ ПОЛНОЭКРАННОГО МОДАЛЬНОГО ОКНА ========== */
.modal.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal.fullscreen-modal.active {
    display: flex;
}

.modal-content.fullscreen {
    background: transparent;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    color: white;
}

.modal.fullscreen-modal .modal-header {
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.modal.fullscreen-modal .modal-header h2 {
    color: white;
    font-size: 32px;
    margin: 0;
}

.modal.fullscreen-modal .modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    transition: all 0.3s ease;
}

.modal.fullscreen-modal .modal-close:hover {
    background: var(--orange);
    transform: rotate(90deg);
}

.modal.fullscreen-modal .modal-close svg {
    width: 30px;
    height: 30px;
}

.modal-carousel.fullscreen-carousel {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 0;
}

.modal.fullscreen-modal .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.modal.fullscreen-modal .carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.modal.fullscreen-modal .carousel-slide.active {
    display: flex;
}

.modal.fullscreen-modal .carousel-slide img,
.modal.fullscreen-modal .carousel-video-container {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal.fullscreen-modal .carousel-video-container {
    width: auto;
    height: auto;
    background: transparent;
}

.modal.fullscreen-modal .carousel-video-player {
    max-width: 90vw;
    max-height: 70vh;
    width: auto;
    height: auto;
}

.modal.fullscreen-modal .carousel-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10020;
    transition: all 0.3s ease;
}

.modal.fullscreen-modal .carousel-nav:hover {
    background: var(--orange);
}

.modal.fullscreen-modal .carousel-nav.prev {
    left: 30px;
}

.modal.fullscreen-modal .carousel-nav.next {
    right: 30px;
}

.modal.fullscreen-modal .carousel-nav svg {
    width: 40px;
    height: 40px;
}

.modal.fullscreen-modal .carousel-dots {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10020;
}

.modal.fullscreen-modal .carousel-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.modal.fullscreen-modal .carousel-dot.active {
    background: var(--orange);
    transform: scale(1.2);
    border-color: white;
}

.modal.fullscreen-modal .modal-description {
    padding: 20px 40px 40px;
    text-align: center;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto;
}

/* ========== СТИЛИ ДЛЯ ОТЗЫВОВ ========== */
.reviews-section {
    background: var(--light-gray);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: var(--orange);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 18px;
}

.review-rating {
    color: var(--orange);
    font-size: 18px;
}

.review-text {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
    padding-left: 20px;
}

.review-date {
    color: var(--gray);
    font-size: 14px;
    text-align: right;
    opacity: 0.7;
}

/* ========== СТИЛИ ДЛЯ КОНТАКТОВ ========== */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-details a,
.contact-details p {
    color: var(--gray);
    text-decoration: none;
    line-height: 1.5;
}

.contact-details a:hover {
    color: var(--orange);
}

.contact-form h3 {
    color: var(--dark-gray);
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

/* Чекбокс с согласием */
.checkbox-group {
    margin: 15px 0;
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #4a4a4a;
}

.form-group input.privacy-checkbox,
.checkbox-group input[type="checkbox"] {
    width: auto !important;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #f7a11a;
    flex-shrink: 0;
    padding: 0;
    border: none;
}

.checkbox-text {
    flex: 1;
    word-break: break-word;
}

.checkbox-text a {
    color: #f7a11a;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

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

.submit-btn {
    background: var(--orange);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.submit-btn:hover:not(:disabled) {
    background: #ff9c40;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 122, 28, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #cccccc;
    color: #666666;
    border: 1px solid #999999;
}

/* ========== СТИЛИ ДЛЯ ФУТЕРА ========== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 30px;
    width: 100%;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-logo img {
    margin-bottom: 15px;
    max-width: 100%;
}

.footer-logo p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

.footer-nav h3,
.footer-contacts h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--orange);
}

.footer-contacts p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.privacy-link a {
    color: #f7a11a;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.privacy-link a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.vk-link a {
    color: #f7a11a;
    text-decoration: none;
}

.vk-link a:hover {
    text-decoration: underline;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .modal.fullscreen-modal .modal-header h2 {
        font-size: 28px;
    }
    
    .modal.fullscreen-modal .carousel-nav {
        width: 50px;
        height: 50px;
    }
    
    .modal.fullscreen-modal .carousel-nav.prev {
        left: 15px;
    }
    
    .modal.fullscreen-modal .carousel-nav.next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    html, body {
        width: 100vw;
        overflow-x: hidden;
    }
    
    .section {
        padding: 60px 0;
        width: 100%;
        overflow: hidden;
    }
    
    .section-title {
        font-size: 28px;
        padding: 0 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .project-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .project-image-wrapper {
        height: 220px;
        width: 100%;
    }
    
    .carousel-btn {
        opacity: 1;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contacts-wrapper {
        padding: 20px;
        margin: 0 10px;
    }
    
    .modal.fullscreen-modal .modal-header {
        padding: 15px 20px;
    }
    
    .modal.fullscreen-modal .modal-header h2 {
        font-size: 24px;
    }
    
    .modal.fullscreen-modal .modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .modal.fullscreen-modal .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .modal.fullscreen-modal .carousel-nav svg {
        width: 30px;
        height: 30px;
    }
    
    .modal.fullscreen-modal .carousel-dots {
        bottom: 20px;
        gap: 10px;
    }
    
    .modal.fullscreen-modal .modal-description {
        padding: 15px 20px 30px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    body {
        min-width: 320px;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .section {
        padding: 40px 0;
        width: 100%;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .service-card,
    .review-card {
        padding: 20px;
        width: 100%;
    }
    
    .contacts-wrapper {
        padding: 20px;
        width: 100%;
        margin: 0;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 100%;
    }
    
    .project-image-wrapper {
        height: 200px;
    }
    
    .project-overlay {
        padding: 15px;
    }
    
    .project-overlay h3 {
        font-size: 16px;
    }
    
    .project-description {
        padding: 15px;
    }
    
    .modal.fullscreen-modal .modal-header h2 {
        font-size: 20px;
    }
    
    .modal.fullscreen-modal .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .modal.fullscreen-modal .carousel-nav svg {
        width: 25px;
        height: 25px;
    }
    
    .modal.fullscreen-modal .carousel-dot {
        width: 12px;
        height: 12px;
    }
    
    .modal.fullscreen-modal .modal-description {
        font-size: 14px;
        padding: 10px 15px 20px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        gap: 20px;
        padding: 0 10px;
    }
    
    .project-image-wrapper {
        height: 180px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .checkbox-label {
        font-size: 13px;
        gap: 8px;
    }
    
    .form-group input.privacy-checkbox,
    .checkbox-group input[type="checkbox"] {
        min-width: 16px;
        max-width: 16px;
        height: 16px;
        margin-top: 1px;
    }
    
    .checkbox-text a {
        white-space: normal;
    }
}

@media (max-width: 360px) {
    .project-image-wrapper {
        height: 160px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .project-overlay h3 {
        font-size: 15px;
    }
}

/* Индикатор загрузки видео */
.carousel-video.loading .video-play-btn {
    opacity: 0.5;
    pointer-events: none;
}

.carousel-video.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}



/*REVIEW*/
/* ========== СТИЛИ ДЛЯ ОТЗЫВОВ С ИЗОБРАЖЕНИЯМИ ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 колонок в ряд */
    gap: 20px;
    width: 100%;
}

.review-image-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    height: fit-content;
}

.review-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.review-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 140%; /* Соотношение сторон для вертикальных изображений */
    overflow: hidden;
    background: #f5f5f5;
}

.review-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Изменено с cover на contain */
    object-position: center;
    transition: transform 0.5s ease;
    background: #f0f0f0;
}

.review-image-card:hover .review-image-wrapper img {
    transform: scale(1.02);
}

/* Модальное окно для просмотра изображения отзыва */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-modal.active {
    display: flex;
}

.review-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-modal-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.review-modal-close {
    position: absolute;
    top: -45px;
    right: -45px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10010;
}

.review-modal-close:hover {
    background: var(--orange);
    transform: rotate(90deg);
}

.review-modal-close svg {
    width: 28px;
    height: 28px;
}

/* ========== АДАПТИВНОСТЬ ДЛЯ ОТЗЫВОВ ========== */
@media (min-width: 1800px) {
    .reviews-grid {
        gap: 25px;
    }
}

@media (max-width: 1400px) {
    .reviews-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 колонок */
        gap: 18px;
    }
}

@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 колонки */
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на планшетах */
        gap: 12px;
    }
    
    .review-image-wrapper {
        padding-bottom: 130%; /* Немного уменьшаем высоту на планшетах */
    }
}

@media (max-width: 576px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на телефонах */
        gap: 10px;
        padding: 0 5px;
    }
    
    .review-image-wrapper {
        padding-bottom: 125%; /* Еще немного уменьшаем высоту */
    }
    
    .review-image-card {
        border-radius: 6px;
    }
    
    .review-modal-close {
        top: -40px;
        right: 0;
        width: 40px;
        height: 40px;
    }
    
    .review-modal-close svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 400px) {
    .reviews-grid {
        gap: 8px;
    }
    
    .review-image-wrapper {
        padding-bottom: 120%; /* Минимальная высота */
    }
}