/* ========================================
   СТРАНИЦА "О КОМПАНИИ"
   ======================================== */

.about-page {
    padding: 120px 5% 80px;
    position: relative;
    z-index: 1;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 60px;
}

.about-title span {
    color: #60a5fa;
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #cbd5e1;
    line-height: 1.7;
    text-align: justify;
}

.about-text strong {
    color: #60a5fa;
}

.about-text-large {
    font-size: 1.8rem;
    text-align: center;
    margin: 60px 0;
    color: #60a5fa;
}

.about-text-center {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 60px;
    color: #cbd5e1;
}

/* Представительства */
.representative-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s;
    margin-top: 40px;
}

.representative-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.representative-card h3 {
    font-size: 1.5rem;
    color: #60a5fa;
    margin-bottom: 25px;
}

.representative-card a {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 14px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.representative-card a:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* ========================================
   КАРУСЕЛЬ ДОКУМЕНТОВ
   ======================================== */

.documents-carousel-section {
    margin: 60px 0 40px;
}

.carousel-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 30px;
}

.carousel-title span {
    color: #60a5fa;
}

.carousel-wrapper {
    position: relative;
    max-width: 100%;
    padding: 0 40px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease-in-out;
    cursor: pointer;
    will-change: transform;
}

.doc-card-carousel {
    flex: 0 0 auto;
    width: 280px;
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #334155;
    cursor: pointer;
    box-sizing: border-box;
}

.doc-card-carousel:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.doc-card-carousel h3 {
    color: #60a5fa;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
    word-break: break-word;
}

.doc-preview {
    width: 100%;
    height: 320px;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
}

.doc-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.doc-preview i {
    font-size: 48px;
    color: #3b82f6;
}

.doc-card-carousel:hover .doc-preview img {
    transform: scale(1.05);
}

.doc-name {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 10px;
    word-break: break-word;
}

/* Кнопки навигации карусели */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

/* Индикаторы */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #3b82f6;
    width: 25px;
    border-radius: 5px;
}

/* ========================================
   МОДАЛЬНОЕ ОКНО
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content iframe {
    width: 80vw;
    height: 85vh;
    border: none;
    border-radius: 12px;
    background: white;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 32px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    border: none;
}

.modal-close:hover {
    color: #f87171;
    transform: scale(1.1);
}

.modal-caption {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ========================================
   АДАПТАЦИЯ
   ======================================== */

@media (max-width: 768px) {
    .about-title {
        font-size: 36px;
    }
    .about-text {
        font-size: 1rem;
    }
    .about-text-large {
        font-size: 1.4rem;
    }
    .carousel-wrapper {
        padding: 0 30px;
    }
    .doc-card-carousel {
        width: 280px;
    }
    .doc-preview {
        height: 320px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .modal-content iframe {
        width: 95vw;
        height: 70vh;
    }
}

@media (max-width: 576px) {
    .carousel-wrapper {
        padding: 0 20px;
    }
    .doc-card-carousel {
        width: 260px;
    }
    .doc-preview {
        height: 300px;
    }
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .doc-card-carousel {
        width: 240px;
    }
    .doc-preview {
        height: 280px;
    }
}

@media (max-width: 1200px) {
    .doc-card-carousel {
        width: 270px;
    }
    .carousel-track {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .carousel-wrapper {
        padding: 0 35px;
    }
    .doc-card-carousel {
        width: 260px;
    }
    .doc-preview {
        height: 300px;
    }
}