/* Стили для блока reviews - точная копия из старой версии */

h1, h2, h3, h4, .section-title, .mega-title, .modules-title-fixed h2, .service-content h3, .module-card h3, .pricing-card h3, .site-header h1, .section-header h2, .contact-info h3 {
    font-family: 'Calypso', serif !important;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.2rem;
    position: relative;
    margin-bottom: 4rem;
    z-index: 10;
}

.review-grid-item {
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.review-box {
    background: #f0e8c0;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(16, 40, 61, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #0f273c;
    word-break: break-word;
    min-width: 420px;
    max-width: 600px;
    width: 100%;
    min-height: 220px;
    margin-bottom: 0;
    overflow: visible;
    z-index: 1002;
    isolation: isolate;
}

.review-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(16, 40, 61, 0.25);
    background: #f5edc8;
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .review-box {
        min-width: 0;
        max-width: 100%;
    }
}

.review-content h3,
.review-number,
.review-author {
    color: #0f273c !important;
    position: relative;
    z-index: 1003;
}

#reviewModalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(16,40,61,0.7);
    z-index: 99999999 !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}
#reviewModalOverlay.modal-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
#reviewModalOverlay.modal-close {
    display: none;
    opacity: 0;
    pointer-events: none;
}
#reviewModal {
    background: rgba(243, 242, 234, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    max-width: 800px;
    width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px 32px 32px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999999 !important;
}

@media (max-width: 768px) {
    #reviewModal {
        padding: 30px 20px 20px 20px;
        max-width: 95vw;
    }
}
#reviewModalOverlay.modal-open #reviewModal {
    opacity: 1;
    margin: 10vh 0;    
}
#reviewModalOverlay.modal-close #reviewModal {
    opacity: 0;
}

.review-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #0f273c;
    line-height: 1.4;
    margin: 10px 0;
    position: relative;
    z-index: 1003;
}

.review-content .review-author {
    display: block;
    margin-top: 15px;
    font-style: italic;
    color: rgba(243, 242, 234, 0.6);
    font-size: 0.9em;
    position: relative;
    z-index: 1003;
}

.review-number {
    color: #0f273c !important;
    font-family: 'DRUZHOK', serif;
    font-weight: bold;
    font-size: 1.5em;
    position: relative;
    z-index: 1003;
}

.review-author {
    color: #0f273c !important;
    font-family: 'Calypso', serif;
    font-style: italic;
    font-size: 1em;
    display: block !important;
    margin-top: 1em;
    position: relative;
    z-index: 1003;
}

/* Синий цвет только в модальных окнах */
#reviewModal .review-number {
    color: #0f273c !important;
}

#reviewModal .review-author {
    color: #0f273c !important;
}

#reviewModal .modal-content {
    color: #333;
}

#reviewModalOverlay,
#reviewModal {
    transition: none !important;
}

/* Стили для modules-title-fixed - точная копия из старой версии */
.modules-title-fixed {
    position: sticky;
    top: 50px;
    width: 350px;
    padding: 40px 40px 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    background: #f3f2ea;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(74, 144, 184, 0.1);
    height: fit-content;
}

.modules-title-fixed h2 {
    font-family: 'DRUZHOK', serif;
    font-size: 48px;
    color: var(--accent-green);
    line-height: 0.9;
    margin: 0 0 20px -10px;
    text-transform: uppercase;
}

.modules-title-fixed h2 {
    color: #0f273c;
}

/* Переменные цветов */
:root {
    --accent-green: #4A90B8;
    --light-green: #81C3D7;
    --craft-brown: #B5A97A;
}

/* Шрифты */
@font-face {
    font-family: 'DRUZHOK';
    src: url('../fonts/DRUZHOK.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Calypso';
    src: url('../fonts/Calypso.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Стили для контейнера reviews */
.reviews {
    background: transparent;
    min-height: 100vh;
    padding: 12vw 0;
    position: relative;
    z-index: 100;
    margin-top: 20px;
    overflow: hidden;
}

.reviews-container {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 11;
    margin-top: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-sidebar {
    position: relative;
    top: 0;
    width: 350px;
    padding: 40px 40px 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    background: rgba(243, 242, 234, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    height: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 12;
}

/* Hover эффект для sidebar */
.reviews-sidebar:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25); /* Усиленная тень */
}

/* Параллакс эффект для sidebar отключен */

.reviews-title {
    font-family: 'DRUZHOK', serif;
    font-size: 48px;
    color: #0f273c;
    line-height: 0.9;
    margin: 0 0 20px -10px;
    text-transform: uppercase;
    position: relative;
    z-index: 1003;
}

.reviews-decoration {
    width: 80px;
    height: 4px;
    background: #0f273c;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1003;
}

.reviews-description {
    font-family: 'Calypso', serif;
    font-size: 24px;
    color: #555;
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
    position: relative;
    z-index: 1003;
}

.reviews-privacy {
    font-family: 'Calypso', serif;
    font-size: 20px;
    color: var(--craft-brown);
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1003;
}

.reviews-hint {
    font-family: 'Calypso', serif;
    font-size: 20px;
    color: #888;
    display: block;
    margin-top: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1003;
}

.reviews-content {
    flex: 1;
    z-index: 1001;
}

/* Модальное окно */
.review-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(16,40,61,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}

.review-modal-overlay.modal-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.review-modal-overlay.modal-close {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.review-modal {
    background: #f3f2ea;
    border-radius: 24px;
    max-width: 800px;
    width: 90vw;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    padding: 40px 32px 32px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1);
}

.review-modal-overlay.modal-open .review-modal {
    opacity: 1;
}

.review-modal-overlay.modal-close .review-modal {
    opacity: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #10283d;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(16, 40, 61, 0.1);
    transform: scale(1.1);
}

.modal-content {
    color: #10283d;
}

.modal-content .review-number {
    color: #0f273c !important;
}

.modal-content .review-author {
    color: #0f273c !important;
}

.modal-content .review-content p {
    color: #555 !important;
    -webkit-line-clamp: unset;
    display: block;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .reviews-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .reviews-sidebar {
        position: static;
        width: 100%;
        padding: 30px;
    }
    
    .reviews-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .reviews {
        padding: 40px 0;
        margin-top: 0;
    }
    
    .reviews-container {
        padding: 0 15px;
        z-index: 1001;
    }
    
    .reviews-sidebar {
        padding: 25px 20px;
        z-index: 1002;
    }
    
    .reviews-title {
        font-size: 28px;
        margin: 0 0 15px -5px;
        z-index: 1003;
    }
    
    .reviews-description {
        font-size: 18px;
        z-index: 1003;
    }
    
    .reviews-privacy,
    .reviews-hint {
        font-size: 16px;
        z-index: 1003;
    }
    
    .review-modal {
        padding: 30px 20px 20px 20px;
        max-width: 95vw;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
    
    .review-box {
        z-index: 1002;
        isolation: isolate;
    }
    
    .review-grid-item {
        z-index: 1001;
    }
}

@media (max-width: 480px) {
    .reviews-sidebar {
        padding: 20px 15px;
        z-index: 1002;
    }
    
    .reviews-title {
        font-size: 24px;
        z-index: 1003;
    }
    
    .reviews-description {
        font-size: 16px;
        z-index: 1003;
    }
    
    .review-box {
        padding: 1.5rem;
        min-height: 180px;
        z-index: 1002;
        isolation: isolate;
    }
    
    .review-content h3 {
        font-size: 1.1rem;
        z-index: 1003;
    }
    
    .review-content p {
        font-size: 0.9rem;
        z-index: 1003;
    }
    
    .review-grid-item {
        z-index: 1001;
    }
} 