

.hero-projects {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-projects-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/hero-slide-1.96167e00d50a.JPG");
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-projects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.hero-projects-content {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    position: relative;
    z-index: 10;
}

/* === АНИМАЦИИ === */
@keyframes slideUpFromWhite {
    0% {
        transform: translateY(150px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.projects-page-title {
    color: #ffffff;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1px;
    transform: translateY(150px);
    opacity: 0;
    animation: slideUpFromWhite 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

/* Анимации при скролле */
.scroll-anim-bottom {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

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

/* Специфичная анимация для карточек со сдвигами во времени (слева направо) */
.card-anim-left {
    opacity: 0;
    will-change: opacity, transform;
}

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

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

/* === Стили секции "Наши проекты" === */
.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: 100%;
    max-height: 100%;
    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;
}
.section-title-center {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #000000;
    position: relative;
}

/* Линия под заголовком */
.section-title-center::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    height: 3px;
    background-color: #0033a0;
}
/* --- Кнопка действия (Замена инлайн-стилей) --- */
.projects-action .more-btn {
    text-decoration: none;
    display: inline-block;
}

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

/* === АДАПТИВНОСТЬ === */
@media (max-width: 992px) {
    .header .main-nav, .header .lang-switcher {
        display: none;
    }

    .burger-btn {
        display: block;
    }

    .projects-page-title {
        font-size: 52px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-tabs {
        flex-wrap: wrap;
    }

    .projects-tab {
        flex: 1 1 50%;
    }
}

@media (max-width: 576px) {
    .mobile-menu {
        padding: 30px 20px;
        width: 60%;
    }

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

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

    .projects-page-title {
        font-size: 42px;
    }

    .hero-projects-content {
        padding-bottom: 40px;
    }

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

    .projects-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .projects-tab {
        border-bottom: 1px solid #ebebeb;
    }

    .projects-tab.active {
        border-bottom: 2px solid #0033a0;
    }
}
