/* Стили для блока благодарностей */
.thanks-section {
    background: #f9f9f9;
    padding: 80px 0;
}

.thanks-slider-container {
    position: relative;
    margin-top: 50px;
}

.thanks-slider {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0 -16px;
}

.thanks-slide {
    flex: 0 0 calc(33.333% - 32px);
    margin: 0 16px;
}

.thanks-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.thanks-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.thanks-content h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.thanks-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.thanks-image {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.thanks-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.thanks-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thanks-image:hover .thanks-overlay {
    opacity: 1;
}

.thanks-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
}

.thanks-overlay span {
    font-size: 14px;
    text-align: center;
}

/* Кнопки навигации (как в основном слайдере) */
.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slider-btn {
    background: var(--dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
}

.slider-btn:hover {
    background: var(--accent);
    color: white;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .thanks-slide {
        flex: 0 0 calc(50% - 32px);
    }
}

@media (max-width: 768px) {
    .thanks-slide {
        flex: 0 0 calc(100% - 32px);
    }
    
    .thanks-content h3 {
        font-size: 16px;
    }
    
    .thanks-content p {
        font-size: 13px;
    }
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    padding: 40px 20px;
    box-sizing: border-box;
}

.modal-content {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

#thanksCaption {
    color: #fff;
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
}