
/* ========================================================================== */
/* ПЕРЕОПРЕДЕЛЕНИЕ СТИЛЕЙ ХЕДЕРА                                              */
/* ========================================================================== */
.header {
    background-color: #ffffff !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}


.header .logo-white {
    display: none !important;
}

.header .logo-dark {
    display: block !important;
}

.header .logo,
.header .main-nav a,
.header .lang-switcher .lang-btn {
    color: #1a2b4c !important;
}

.header .main-nav a::after,
.header .lang-switcher .lang-btn::after {
    background-color: #1a2b4c !important;
}

.header .burger-btn svg {
    fill: #1a2b4c !important;
}
/* ========================================================================== */
/* АНИМАЦИИ                                                                   */
/* ========================================================================== */

.content-wrapper p,
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3 {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.project-article img {
    animation: zoomIn 1.2s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes zoomIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}


@keyframes drawLineRight {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* ========================================================================== */
/* ЦЕНТРИРОВАНИЕ И ШИРИНА СТАТЬИ                                              */
/* ========================================================================== */
.project-article {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================================================== */
/* ТИПОГРАФИКА: Увеличиваем шрифты                                            */
/* ========================================================================== */
.content-wrapper p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333;
}

.content-wrapper h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 30px;
}

.content-wrapper h2 {
    font-size: 32px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-wrapper h3 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* КАРТИНКИ */
.project-article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    animation: zoomIn 1.2s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

/* ========================================================================== */
/* БЛОКИ СТАТИСТИКИ                                                           */
/* ========================================================================== */
.stat-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 40px 0;
    text-align: center;
}

.stat-container.type-giant h2 {
    font-size: 5rem !important;
    font-weight: bold;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}

.stat-item h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 56px !important;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0;
    color: #1a2b4c;
}

.stat-item h2 .suffix {
    font-size: 48px;
    font-weight: 500;
    margin-left: 4px;
    line-height: 1;
}

/* ========================================================================== */
/* ИСПРАВЛЕННАЯ ЛИНИЯ: С ОСТРЫМИ КОНЦАМИ                                       */
/* ========================================================================== */
.separator-line {
    height: 4px;
    width: 100%;
    margin: 8px auto;


    clip-path: polygon(
            4px 0, /* Верхний левый срез */ calc(100% - 4px) 0, /* Верхний правый срез */ 100% 50%, /* Правый острый кончик (середина высобы) */ calc(100% - 4px) 100%, /* Нижний правый срез */ 4px 100%, /* Нижний левый срез */ 0 50% /* Левый острый кончик (середина высоты) */
    );

    transform-origin: left center;
    animation: drawLineRight 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.stat-item p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 16px;
    line-height: 1.4;
}

/* ========================================================================== */
/* ГАЛЕРЕИ (Два фото и Карусель)                                              */
/* ========================================================================== */

/* Контейнер для двух колонок */
.gallery-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.content-wrapper .gallery-two-columns img {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.content-wrapper .gallery-carousel img {
    margin: 0 !important;
    width: 100%;
    aspect-ratio: 16 / 9; 
    object-fit: cover;
    background-color: #f5f5f5;
}



.gallery-caption {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-top: 10px;
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
}


.gallery-carousel {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    animation: zoomIn 1.2s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}


.gallery-carousel .carousel-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 43, 76, 0.85);
    color: #ffffff;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    z-index: 10;
}

/* ========================================================================== */
/* НАСТРОЙКА ЭЛЕМЕНТОВ УПРАВЛЕНИЯ SWIPER                                       */
/* ========================================================================== */


.gallery-carousel .swiper-button-next,
.gallery-carousel .swiper-button-prev {
    color: #ffffff !important;
    background: rgba(26, 43, 76, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.3s ease;
}


.gallery-carousel .swiper-button-next:hover,
.gallery-carousel .swiper-button-prev:hover {
    background: rgba(26, 43, 76, 0.9);
}


.gallery-carousel .swiper-button-next::after,
.gallery-carousel .swiper-button-prev::after {
    font-size: 20px !important;
}


.gallery-carousel .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.7;
    width: 10px;
    height: 10px;
}


.gallery-carousel .swiper-pagination-bullet-active {
    background: #1a2b4c;
    opacity: 1;
    transform: scale(1.2);
}

/* ========================================================================== */
/* АДАПТИВНОСТЬ (MOBILE & TABLET)                                             */
/* ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 15px 0 !important;
    }

    .header .main-nav,
    .header .lang-switcher {
        display: none !important;
    }

    .header .burger-btn {
        display: block !important;
    }

    .header .logo {
        font-size: 24px;
    }


    .project-article {
        padding: 20px 15px;
    }

    .content-wrapper h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .content-wrapper h2 {
        font-size: 24px;
        margin-top: 30px;
    }

    .content-wrapper h3 {
        font-size: 20px;
    }

    .content-wrapper p {
        font-size: 17px;
        line-height: 1.5;
    }

    .stat-container {
        flex-direction: column;
        gap: 30px;
        margin: 30px 0;
    }

    .stat-item {
        width: 100%;
        padding: 0;
    }

    .stat-item h2 {
        font-size: 42px !important;
    }

    .stat-container.type-giant h2 {
        font-size: 3.5rem !important;
    }

    .gallery-two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-article img {
        margin: 25px auto;
    }

    .gallery-carousel .carousel-caption-overlay {
        font-size: 15px;
        padding: 10px;
    }

    .gallery-carousel .swiper-button-next,
    .gallery-carousel .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-20px);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* Маленькие правки для совсем узких экранов (iPhone SE и т.д.) */
@media (max-width: 480px) {
    .stat-item h2 {
        font-size: 36px !important;
    }

    .stat-item h2 .suffix {
        font-size: 28px;
    }
}
