/* === Ваши основные настройки === */
*, *::before, *::after {
    box-sizing: border-box;
}


@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

/* === Анимации для появления элементов Hero секции === */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Специальная анимация для заднего фона: быстро 3 секунды, медленно 1 секунду */
@keyframes customZoom {
    0% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1.13);
    }
}

/* === Классы для анимации при скролле === */
.scroll-anim-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

.scroll-anim-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-anim-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

.scroll-anim-bottom.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-anim-left {
    opacity: 0;
    will-change: opacity, transform;
}

.card-anim-left.is-visible {
    animation: slideInLeft 0.4s ease-out both;
}

.card-anim-right {
    opacity: 0;
    will-change: opacity, transform;
}

.card-anim-right.is-visible {
    animation: slideInRight 0.4s ease-out both;
}




/* === Стили первого экрана (Hero Section) === */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: transform, opacity;
}

.hero-slide.animate-zoom {
    animation: customZoom 5s linear forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 5;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    color: #ffffff;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    max-width: 1000px;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
}

.hero-footer-wrapper {
    padding-bottom: 50px;
    position: relative;
    z-index: 10;
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.location {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out 0.4s forwards;
}

.location svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    flex-shrink: 0;
}

.contact-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 18px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    opacity: 0;
    animation: slideInRight 0.8s ease-out 0.4s forwards;
    white-space: nowrap;
    text-decoration: none;
}

.contact-btn:hover {
    background-color: #f0f0f0;
}

.contact-btn:active {
    transform: scale(0.98);
}

/* === Стили секции "О холдинге" === */
.about-section {
    background-color: #f9f9f9;
    padding: 120px 0;
    width: 100%;
}

.about-section .container {
    max-width: 1350px;
}

.section-tag {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid #0033a0;
    margin-bottom: 80px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.about-heading {
    width: 40%;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #000000;
    margin: 0;
}

.about-text {
    width: 55%;
    font-size: 21px;
    line-height: 1.6;
    color: #4a4a4a;
}

.about-text p {
    margin-top: 0;
    margin-bottom: 30px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* === Стили блока "О нас в цифрах" === */
.stats-wrapper {
    margin-top: 140px;
}

.stats-wrapper .section-tag {
    margin-bottom: 60px;
}

.stats-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-divider {
    width: 1px;
    height: 130px;
    background-color: #0033a0;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin-bottom: 16px;
}

.stat-number sup {
    font-size: 32px;
    font-weight: 700;
    vertical-align: top;
    position: relative;
    top: -0.2em;
}

.stat-label {
    font-size: 18px;
    color: #4a4a4a;
}

/* === Кнопка "Подробнее" === */
.about-action {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.more-btn {
    background-color: #0033a0;
    color: #ffffff;
    border: none;
    padding: 16px 48px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.more-btn:hover {
    background-color: #002270;
}

.more-btn:active {
    transform: scale(0.98);
}

/* === Стили секции "Наши проекты" === */
.projects-section {
    background-color: #ffffff;
    padding: 120px 0;
    width: 100%;
}

.projects-section .container {
    max-width: 1350px;
    margin: 0 auto;
}

/* --- Вспомогательные классы для анимаций (замена инлайн-стилей) --- */
.scroll-anim-bottom.delay-2 { transition-delay: 0.2s; }
.scroll-anim-bottom.delay-6 { transition-delay: 0.6s; }
.card-anim-left.delay-cycle-0 { animation-delay: 0s; }
.card-anim-left.delay-cycle-1 { animation-delay: 0.3s; }
.card-anim-left.delay-cycle-2 { animation-delay: 0.6s; }

/* --- Табы --- */
.projects-tabs {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 60px;
}

.projects-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 700;
    color: #888888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
}

.projects-tab:hover { color: #000000; }
.projects-tab.active { color: #000000; border-bottom-color: #0033a0; }

/* --- Сетка проектов --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* --- Карточка проекта (Двойная тень + сброс стилей ссылки) --- */
.project-card {
    display: block;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 12px;
    height: 320px;
    position: relative;
    overflow: hidden;
    cursor: pointer;


    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 25px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.08),
        0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card.hidden { display: none; }

/* --- Обертка для логотипа (Замена инлайн-стилей) --- */
.project-logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 40px;
    box-sizing: border-box;
}

.project-logo-wrapper .project-img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.project-logo-wrapper .project-no-img {
    color: #1a2b4c;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(65, 100, 175, 0.5) 0%, rgba(45, 80, 150, 0.85) 50%, rgba(30, 60, 125, 0.95) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.project-card:hover .project-overlay { opacity: 1; }

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.overlay-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.overlay-arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overlay-desc {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}


.projects-action .more-btn {
    text-decoration: none;
    display: inline-block;
}

.projects-action {
    display: flex;
    justify-content: center;
}

/* === Стили секции "Новости" === */
.news-section {
    background-color: #f9f9f9;
    padding: 120px 0;
    width: 100%;
}

.news-section .container {
    max-width: 1350px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

.news-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 24px;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.news-excerpt {
    font-size: 15px;
    color: #666666;
    line-height: 1.5;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.news-date {
    font-size: 13px;
    color: #999999;
    font-weight: 600;
    margin-top: auto;
}

/* === Адаптивность для планшетов и мобильных устройств === */
@media (max-width: 992px) {
    .header .main-nav, .header .lang-switcher {
        display: none;
    }

    .burger-btn {
        display: block;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .location {
        font-size: 20px;
    }

    .contact-btn {
        font-size: 20px;
        padding: 20px 40px;
        width: 100%;

    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-heading, .about-text {
        width: 100%;
    }

    .section-tag {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .about-heading {
        font-size: 46px;
    }

    .about-text {
        font-size: 24px;
    }

    .about-section {
        padding: 80px 0;
    }

    .stats-wrapper {
        margin-top: 80px;
    }

    .stats-card {
        flex-direction: column;
        padding: 60px 0;
        gap: 50px;
    }

    .stat-divider {
        width: 120px;
        height: 1px;
    }

    .stat-number {
        font-size: 60px;
    }

    .stat-number sup {
        font-size: 32px;
    }

    .stat-label {
        font-size: 22px;
    }

    .about-action {
        margin-top: 60px;
    }

    .more-btn {
        font-size: 20px;
        padding: 18px 56px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projects-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .projects-tab {
        flex: 0 0 auto;
        padding: 15px 30px;
        font-size: 18px;
    }

    .news-section {
        padding: 80px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .news-title {
        font-size: 28px;
    }

    .news-excerpt {
        font-size: 20px;
    }

    .news-date {
        font-size: 16px;
    }
}

/* === Адаптация для маленьких экранов (телефоны) === */
@media (max-width: 576px) {
    .hero-title {
        font-size: 40px;
        line-height:1.3;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    .location {
        font-size: 22px;
    }

    .contact-btn {
        font-size: 22px;
        padding: 22px 40px;
    }

    .section-tag {
        font-size: 24px;
    }

    .about-heading {
        font-size: 30px;
    }

    .about-text {
        font-size: 20px;
        line-height: 1.5;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-label {
        font-size: 24px;
    }

    .more-btn {
        font-size: 22px;
        padding: 20px 60px;
    }

    .projects-tab {
        font-size: 20px;
    }

    .news-title {
        font-size: 32px;
    }

    .news-excerpt {
        font-size: 22px;
    }

    .news-date {
        font-size: 18px;
    }

    .mobile-menu {
        padding: 30px 20px;
        width: 60%;
    }

    .mobile-logo {
        font-size: 26px;
    }

    .mobile-nav a {
        font-size: 24px;
    }
}
