/**
 * БФ «Ева» — Стили страниц «Отзывы» и «Благодарности»
 */

/* ==========================================================================
   Отзывы подопечных
   ========================================================================== */

/* Благодарности */
.thanks-layout {
    margin-bottom: 80px;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.award-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.award-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}
.award-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(235, 160, 78, 0.2);
}

.award-badge {
    width: 80px; height: 80px;
    background: rgba(235, 160, 78, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--secondary);
    font-size: 32px;
    transition: var(--transition);
}
.award-card:hover .award-badge {
    transform: scale(1.08) rotate(10deg);
    background: var(--secondary);
    color: #fff;
}

.award-card .year {
    font-family: 'Manrope', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 12px;
}
.award-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}
.award-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

        
.thanks-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.thanks-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26,26,36,0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.thanks-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    max-width: 540px;
    width: 90%;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    z-index: 2010;
    animation: scaleUp 0.4s ease;
}
.thanks-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.thanks-modal-close:hover {
    background: var(--primary);
    color: #fff;
}
.thanks-modal-body {
    text-align: center;
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Карточки отзывов и модальное окно
   ========================================================================== */

/* Отзывы и благодарности */
.reviews-tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(197, 78, 112, 0.1);
    padding-bottom: 10px;
    flex-wrap: wrap;
}
.reviews-tab-btn {
    background: none;
    border: none;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    font-family: 'Manrope', sans-serif;
}
.reviews-tab-btn:hover {
    color: var(--primary);
    background: rgba(197, 78, 112, 0.04);
}
.reviews-tab-btn.active {
    color: var(--white);
    background: var(--primary);
}
.reviews-tab-content {
    display: none;
}
.reviews-tab-content.active {
    display: block;
}

/* Карточки отзывов */
.review-card {
    background: var(--white);
    border-radius: 14px;
    border: 1.5px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}
.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.review-card-with-photo {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    align-items: start;
}
@media (max-width: 600px) {
            .review-card-with-photo {
                grid-template-columns: 1fr;
            }
}
.review-photo-box {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.review-photo-box:hover img {
    transform: scale(1.05);
}
.review-quote-icon {
    font-size: 54px;
    line-height: 1;
    color: rgba(197, 78, 112, 0.15);
    font-family: Georgia, serif;
    margin-bottom: -15px;
}
.review-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 14px;
}
.review-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #edf0f5;
    color: #374151;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.review-author-info h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
}
.review-author-info span {
    font-size: 13px;
    color: var(--text-light);
    display: block;
}

/* Модальное окно просмотра */

.thanks-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    padding: 40px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.92);
    cursor: pointer;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}
.thanks-lightbox-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    object-fit: contain;
    border: 3px solid rgba(255,255,255,0.05);
}
.thanks-lightbox-caption {
    margin: 20px auto 0;
    display: block;
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
}
.thanks-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    transition: var(--transition);
}
.thanks-lightbox-close:hover {
    color: var(--primary);
}

/* ==========================================================================
   Дипломы и благодарственные письма
   ========================================================================== */

/* Отзывы и дипломы */
.review-quote-icon--spaced { margin-top: 15px; }
.review-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.review-tag--teal { background: rgba(95,174,177,0.12); color: #2c7c7f; }
.review-tag--pink { background: rgba(197,78,112,0.08); color: var(--primary); }
.diploma-card { background: var(--white); border-radius: 12px; overflow: hidden; border: 1.5px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; transition: var(--transition); }
.diploma-thumb-wrap { height: 350px; background: #fbfbfb; overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(0,0,0,0.04); cursor: pointer; }
.diploma-thumb-img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; transition: var(--transition); }
.diploma-content { padding: 22px; cursor: pointer; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.diploma-badge-sender { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }
.diploma-title { font-size: 15px; color: var(--text-dark); margin: 0 0 8px; font-family: 'Manrope', sans-serif; font-weight: 700; line-height: 1.4; }
.diploma-view-action { font-size: 12px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }

/* ==========================================================================
   Сетки отзывов и благодарностей
   ========================================================================== */
.reviews-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.diplomas-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   Адаптивность раздела «Отзывы» для мобильных устройств
   ========================================================================== */
@media (max-width: 768px) {
    .reviews-cards-grid,
    .diplomas-cards-grid,
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .reviews-tabs-nav {
        gap: 8px;
        margin-bottom: 25px;
    }
    .reviews-tab-btn {
        padding: 10px 18px;
        font-size: 14px;
        flex: 1 1 auto;
        text-align: center;
    }
    .review-card {
        padding: 22px;
    }
    .diploma-thumb-wrap {
        height: 280px;
    }
    .reviews-cta-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px 16px;
    }
    .reviews-cta-banner a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .review-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding: 18px 14px;
    }
    .diploma-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .diploma-thumb-wrap {
        height: 240px;
    }
    .review-photo-box {
        height: 140px;
    }
    .thanks-modal-content {
        padding: 24px 16px;
    }
}
