/* ============ Переменные ============ */
:root {
    --accent: #013874;      /* заголовки, фон footer */
    --bg: #FCFCFD;          /* основной фон */
    --text: #1c2430;        /* базовый цвет текста */
    --container: 1200px;    /* ширина контента */
}

/* ============ Сброс ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    /* Прижимаем подвал к низу экрана при небольшом объёме контента */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ Шапка ============ */
.header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding-top: 24px;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { display: block; width: 69px; height: 62px; }
/* Внутреннее лого (тёмная шапка) может быть любого размера */
.header--dark .header__logo img { width: 300px; height: auto; }

.header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header__link {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #fff;
    transition: opacity .2s ease;
}
.header__link:hover { opacity: .75; }

/* Бургер (виден только в мобилке) */
.burger { display: none; }

/* Тёмная версия шапки (внутренние страницы): акцентный логотип и меню
   на светлом фоне, фиксируется при скролле */
.header--dark {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 18px 0;
}
.header--dark .header__link { color: var(--accent); }
.header--dark .header__link:hover { opacity: .6; }

/* Выпадающее меню в шапке */
.header__item { position: relative; display: flex; align-items: center; }
.header__link--parent { display: inline-flex; align-items: center; gap: 6px; }
.header__caret { width: 14px; height: 14px; flex: none; transition: transform .25s ease; }
.header__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    margin-top: 12px;
    padding: 8px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(1, 56, 116, .18);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
    z-index: 30;
}
/* невидимый «мост», чтобы меню не пропадало при переводе курсора */
.header__item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
}
.header__item:hover .header__submenu,
.header__item:focus-within .header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.header__item:hover .header__caret { transform: rotate(180deg); }
.header__sublink {
    padding: 11px 22px;
    font-size: 15px;
    letter-spacing: .5px;
    color: var(--accent);
    white-space: nowrap;
    transition: background .15s ease;
}
.header__sublink:hover { background: var(--bg); }

/* ============ Первый экран ============ */
.hero {
    position: relative;
    min-height: clamp(560px, 63.3vw, 912px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background:
        linear-gradient(to bottom, #050c13 0%, rgba(5, 12, 19, 0) 21%),
        linear-gradient(to top, #050c13 0%, rgba(5, 12, 19, 0) 28%),
        url("../img/bg.jpg") center / cover no-repeat;
}
.hero__content {
    padding-bottom: 80px;
}
.hero__title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 2.6px;
    line-height: 1.2;
    margin-bottom: 18px;
}
/* Перенос «ПРОЕКТ» в заголовке — только на мобильных */
.hero__br { display: none; }
.hero__subtitle {
    max-width: 568px;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* ============ Блок с цифрами ============ */
.stats {
    background: var(--bg);
    padding: 48px 0;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.stat {
    min-height: 180px;
    padding: 20px 32px;
    background: #fff;
    border: 1px solid #cad5e2;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.stat:hover {
    border-color: var(--accent);
    box-shadow: 0 1px 3.5px rgba(25, 33, 61, .08);
}
.stat__number {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--accent);
}
.stat__label {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #484848;
}

/* ============ Компетенции ============ */
.directions {
    background: var(--bg);
    padding: 80px 0;
}
.directions__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 64px;
}
.directions__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 16px;
}
.directions__text {
    max-width: 560px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #484848;
}
.directions__more {
    flex: 0 0 auto;
    padding: 16px 4px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--accent);
    transition: opacity .2s ease;
}
.directions__more:hover { opacity: .7; }

.directions__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.direction-card {
    position: relative;
    height: 480px;
    padding: 12px 12px 24px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #050c13;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.direction-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #050c13 0%, rgba(5, 12, 19, 0) 48%);
    pointer-events: none;
}
.direction-card > * { position: relative; z-index: 1; }

/* Размытая плашка с иконкой */
.direction-card__badge {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}
.direction-card__badge img {
    width: 40px;
    height: 40px;
}

.direction-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.direction-card__title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #fff;
}
.direction-card__text {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #fcfcfd;
    opacity: .75;
}

/* ============ Проекты ============ */
.projects {
    background: var(--bg);
    padding: 60px 0;
}
.projects__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 64px;
}
.projects__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
}
.projects__all {
    flex: 0 0 auto;
    padding: 16px 4px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--accent);
    transition: opacity .2s ease;
}
.projects__all:hover { opacity: .7; }

.projects__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.projects__row {
    display: flex;
    gap: 12px;
    height: 300px;
}
.projects__row .project-card { flex: 1 1 0; }
.projects__row--bottom .project-card:first-child { flex: 0 0 300px; }

/* Карточка проекта */
.project-card {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-color: #050c13;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: block;
}
.project-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(5, 12, 19, .85) 0%, rgba(5, 12, 19, 0) 50%),
        linear-gradient(to top, rgba(5, 12, 19, .9) 0%, rgba(5, 12, 19, 0) 40%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__content {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
}
.project-card:hover .project-card__content {
    opacity: 1;
    transform: none;
}

.project-card__top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.project-card__tag {
    padding: 8px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}
.project-card__tag--status { border-color: rgba(234, 255, 45, .35); }
.project-card__name {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
}
.project-card__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
}
.project-card__btn svg { width: 16px; height: 8px; }

/* ============ Новости ============ */
.news {
    background: var(--bg);
    padding: 80px 0;
}
.news__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 64px;
}
.news__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
}
.news__all {
    flex: 0 0 auto;
    padding: 16px 4px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--accent);
    transition: opacity .2s ease;
}
.news__all:hover { opacity: .7; }

.news__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(72, 72, 72, .6);
    color: #484848;
}
.news-item__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 720px;
}
.news-item__title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: #484848;
    transition: color .2s ease;
}
.news-item:hover .news-item__title { color: var(--accent); }
.news-item__text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #484848;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item__date {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--accent);
}
.news-item__month {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}
.news-item__day {
    font-size: 100px;
    font-weight: 400;
    line-height: 1.1;
}

/* ============ Партнёры ============ */
.partners {
    background: var(--bg);
    padding: 60px 0 100px;
}
.partners__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

/* Карточка-заголовок */
.partners__card {
    flex: 0 0 594px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
}
.partners__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 16px;
}
.partners__text {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #484848;
}

/* Слайдер */
.partners__slider {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.partners__row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}
.partners__swiper {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}
.partners__swiper .swiper-slide {
    width: auto;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Логотип: приглушён прозрачностью, при наведении — полностью виден.
   Ограничиваем и по высоте, и по ширине, чтобы широкие лого вписывались. */
.partners__logo {
    display: block;
    max-height: 88px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    opacity: .3;
    transition: opacity .3s ease;
}
.partners__logo:hover { opacity: 1; }

/* Стрелки */
.partners__arrow {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fcfcfd;
    border: none;
    border-radius: 4px;
    color: #cad5e2;
    cursor: pointer;
    transition: color .2s ease;
}
.partners__arrow:hover { color: var(--accent); }
.partners__arrow svg { width: 12px; height: 12px; }
.partners__arrow.swiper-button-disabled { opacity: .4; cursor: default; }

/* Пагинация */
.partners__pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.partners__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0;
    border-radius: 50%;
    background: #cad5e2;
    opacity: 1;
    transition: background .2s ease;
}
.partners__pagination .swiper-pagination-bullet-active {
    background: var(--accent);
}

/* ============ Подвал ============ */
.footer {
    background: var(--accent);
    color: #fff;
    padding-top: 60px;
    /* забирает свободное место, прижимаясь к низу экрана */
    margin-top: auto;
}
.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px 40px;
}
.footer__divider,
.footer__top,
.footer__middle {
    border-bottom: 1px solid rgba(168, 169, 173, .3);
}

/* Верхняя строка */
.footer__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
}
.footer__logo img { height: 66px; width: auto; }
.footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.footer__contact {
    font-family: "Manrope", "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    transition: opacity .2s ease;
}
.footer__contact:hover { opacity: .8; }

/* Средняя строка */
.footer__middle {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 0 40px;
}
.footer__brand {
    display: block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.32px;
    margin-bottom: 32px;
}
.footer__desc {
    max-width: 490px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #fff;
}
.footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}
.footer__nav-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
}
.footer__nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    text-align: right;
}
.footer__nav-link {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #fff;
    transition: opacity .2s ease;
}
.footer__nav-link:hover { opacity: .7; }

/* Нижняя строка */
.footer__legal {
    display: flex;
    justify-content: space-between;
    gap: 26px;
    padding-top: 24px;
}
.footer__legal-link {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: #fff;
    opacity: .7;
    transition: opacity .2s ease;
}
.footer__legal-link:hover { opacity: 1; }

/* ============ Партнёры (страница) ============ */
.partners-page {
    background: var(--bg);
    padding: 24px 0 100px;
}
.partners-page__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 40px;
}
.partners-page__section-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
}
.pkey { margin-bottom: 80px; }
.pkey__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}
.pkey__nav { display: flex; gap: 12px; flex: 0 0 auto; }
.pkey__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cad5e2;
    background: none;
    color: var(--accent);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.pkey__arrow:hover { border-color: var(--accent); background: #eef4ff; }
.pkey__arrow svg { width: 18px; height: 18px; }
.pkey__swiper { width: 100%; }
.pkey__swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
}
.pkey__logo {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    object-fit: contain;
}
.pall__title { margin-bottom: 40px; }
.pall__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 24px;
    align-items: center;
}
.pall__logo {
    justify-self: center;
    max-width: 100%;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* ============ Проекты ============ */
.projects-page {
    background: var(--bg);
    padding: 24px 0 100px;
}
.projects-page__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 40px;
}
.projects__section-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 24px;
}

/* Карточка проекта (тёмное фото) */
.pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: #050c13 center / cover no-repeat;
    color: #fff;
    text-decoration: none;
}
.pcard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 12, 19, .55) 0%, rgba(5, 12, 19, .05) 35%, rgba(5, 12, 19, .05) 60%, rgba(5, 12, 19, .85) 100%);
    pointer-events: none;
}
.pcard > * { position: relative; z-index: 1; }
.pcard__top {
    display: flex;
    flex-direction: column;
}
.pcard--featured { min-height: 300px; }
.pcard--grid { min-height: 460px; }
.pcard__tag {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 12px;
    letter-spacing: .5px;
}
.pcard__title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .5px;
    line-height: 1.3;
}
.pcard__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}
.pcard__more svg { width: 20px; height: 20px; }

.projects__featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 64px;
}

/* Фильтр */
.projects__filter {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
}
.projects__years {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 1 auto;
}
.projects__years::-webkit-scrollbar { display: none; }
.projects__year {
    flex: 0 0 auto;
    min-width: 92px;
    height: 45px;
    padding: 14px 20px;
    border-radius: 27px;
    border: 1px solid #cad5e2;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #5a6472;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.projects__year:hover { border-color: var(--accent); }
.projects__year.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.projects__dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    height: 45px;
    padding: 14px 20px;
    border-radius: 27px;
    border: 1px solid #cad5e2;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #5a6472;
    cursor: pointer;
}
.projects__dropdown svg { width: 16px; height: 16px; color: var(--accent); transition: transform .2s ease; }

/* Выпадающий фильтр по направлениям */
.projects__dropdown-wrap { position: relative; flex: 0 0 auto; }
.projects__dropdown-wrap .projects__dropdown { width: 100%; justify-content: space-between; }
.projects__dropdown-wrap.is-open .projects__dropdown svg { transform: rotate(180deg); }
.projects__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #cad5e2;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(1, 56, 116, .16);
    display: none;
    z-index: 30;
}
.projects__dropdown-wrap.is-open .projects__dropdown-menu { display: block; }
.projects__dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: .5px;
    color: #5a6472;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.projects__dropdown-item:hover { background: var(--bg); }
.projects__dropdown-item.is-active { color: var(--accent); font-weight: 700; }

/* Сетка проектов */
.projects__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 64px;
}
.pcard[hidden] { display: none; }

/* Все проекты — таблица (архив) */
.projects-table__head,
.projects-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 220px);
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #cad5e2;
}
.projects-table__head {
    padding-bottom: 12px;
    font-size: 12px;
    letter-spacing: .5px;
    color: #5a6472;
}
.projects-row {
    padding: 16px 0;
    text-decoration: none;
    transition: background .15s ease;
}
.projects-row[hidden] { display: none; }
.projects-row:hover { background: rgba(1, 56, 116, .03); }
.projects-row__name {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    color: #5a6472;
}
.projects-row__year,
.projects-row__cat {
    font-size: 12px;
    letter-spacing: .5px;
    color: #5a6472;
}

/* ============ Новости (лента) ============ */
.news-page {
    background: var(--bg);
    padding: 24px 0 100px;
}
.news-page__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 64px;
}
.news-page__years {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 40px;
}
.news-page__years::-webkit-scrollbar { display: none; }
.news-page__year {
    flex: 0 0 auto;
    min-width: 106px;
    height: 45px;
    padding: 14px 20px;
    border-radius: 27px;
    border: 1px solid #cad5e2;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #5a6472;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.news-page__year:hover { border-color: var(--accent); }
.news-page__year.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.news-page__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.news-card {
    display: grid;
    grid-template-columns: 275px minmax(0, 1fr);
    padding: 8px;
    background: #fff;
    border: 1px solid #a8a9ad;
    border-radius: 24px;
    text-decoration: none;
    transition: box-shadow .2s ease;
}
.news-card[hidden] { display: none; }
.news-card:hover { box-shadow: 0 8px 24px rgba(1, 56, 116, .1); }
.news-card__img {
    width: 275px;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
}
.news-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 12px 16px;
}
.news-card__title {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #24282e;
    margin-bottom: 10px;
}
.news-card__excerpt {
    font-size: 12px;
    letter-spacing: .5px;
    line-height: 1.4;
    color: #5a6472;
}
.news-card__date {
    align-self: flex-start;
    padding: 4px 8px;
    border: 1px solid #a8a9ad;
    border-radius: 12px;
    font-size: 12px;
    letter-spacing: .5px;
    color: #a8a9ad;
}

/* ============ Страница новости (статья) ============ */
.article-page {
    background: var(--bg);
    padding: 24px 0 80px;
}
.article__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 24px;
}
.article__crumbs {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
}
.article__crumbs span { opacity: .5; }
.article__back {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #006aff;
    background: var(--bg);
    color: #006aff;
    transition: background .2s ease;
}
.article__back:hover { background: #eef4ff; }
.article__back svg { width: 18px; height: 18px; }

.article {
    --article-pad: 120px;
    --article-pad-y: 60px;
    background: #fff;
    border: 1px solid #cad5e2;
    border-radius: 32px;
    padding: var(--article-pad-y) var(--article-pad);
    overflow: hidden;
}
/* Обложка — во всю ширину карточки (края обрезаются радиусом карточки).
   Остальные картинки/видео остаются в текстовой колонке. */
.article__hero {
    width: calc(100% + 2 * var(--article-pad));
    max-width: none;
    margin-left: calc(-1 * var(--article-pad));
    height: auto;
    display: block;
    margin-top: calc(-1 * var(--article-pad-y));
    margin-bottom: 20px;
}
.article__date {
    font-size: 12px;
    letter-spacing: .5px;
    color: #484848;
}
.article__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin: 4px 0 12px;
}
.article__tag {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #cad5e2;
    border-radius: 43px;
    font-size: 12px;
    letter-spacing: .5px;
    color: var(--accent);
    margin-bottom: 40px;
}
.article__body > * + * { margin-top: 24px; }
.article__body h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #484848;
}
.article__lead {
    font-size: 12px;
    letter-spacing: .5px;
    color: #a8a9ad;
    margin-top: 9px !important;
}
.article__body h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #484848;
    margin-bottom: 20px;
}
.article__body p {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #484848;
}
.article__body ul,
.article__body ol {
    padding-left: 22px;
}
.article__body li {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #484848;
    margin-bottom: 8px;
}
.article__list-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    color: #484848;
    margin-bottom: 12px;
}
.article__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: #484848;
}
.article__table th,
.article__table td {
    padding: 12px 16px;
    border: 1px solid #cad5e2;
    text-align: left;
}
.article__table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--accent);
}
.article__quote,
.article__callout {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
}
.article__callout { border-top: 2px solid var(--accent); }
.article__quote-text,
.article__callout-text {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #484848;
}
.article__quote-author,
.article__callout-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.32px;
    color: #484848;
    margin-bottom: 12px;
}
.article__quote-author { margin-top: 16px; margin-bottom: 0; }
.article__figure { margin: 0; }
.article__figure img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    margin-bottom: 15px;
}
.article__caption {
    font-size: 12px;
    letter-spacing: .5px;
    color: #a8a9ad;
}
.article__body a.article__link {
    color: #006aff;
    text-decoration: underline;
}
.article__video { position: relative; }
.article__video img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}
.article__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: none;
    cursor: pointer;
    color: #fff;
}
.article__play svg { width: 28px; height: 28px; }

/* --- Контент из редактора WordPress внутри .article__body --- */
.article__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: #484848;
}
.article__body table th,
.article__body table td {
    padding: 12px 16px;
    border: 1px solid #cad5e2;
    text-align: left;
}
.article__body table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--accent);
}
.article__body figure.wp-block-table { margin: 0; }
.article__body blockquote {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
}
.article__body blockquote p {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #484848;
}
.article__body blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.32px;
    color: #484848;
}
.article__body figure.wp-block-image { margin: 0; }
.article__body figure.wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    margin-bottom: 15px;
}
.article__body figcaption {
    font-size: 12px;
    letter-spacing: .5px;
    color: #a8a9ad;
}
.article__body p a,
.article__body li a {
    color: #006aff;
    text-decoration: underline;
}

/* ============ Компетенции (страница) ============ */
.competences {
    background: var(--bg);
    padding: 24px 0 100px;
}
.comp-block + .comp-block { margin-top: 80px; }
.comp-block__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 40px;
}

/* Карточки компетенций / ценностей (тёмное фото + иконка) */
.comp-grid { display: grid; gap: 12px; }
.comp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.comp-grid--3 { grid-template-columns: repeat(3, 1fr); }

.photo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 12px 24px;
    border-radius: 20px;
    overflow: hidden;
    background: #050c13 center / cover no-repeat;
    color: #fff;
}
.photo-card--comp { min-height: 280px; }
.photo-card--value { min-height: 360px; }
.photo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 12, 19, .85) 0%, rgba(5, 12, 19, .15) 70%, rgba(5, 12, 19, .3) 100%);
    pointer-events: none;
}
.photo-card > * { position: relative; z-index: 1; }
.photo-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.photo-card--comp .photo-card__badge { width: 40px; height: 40px; border-radius: 6px; }
.photo-card--comp .photo-card__badge img { width: 22px; height: 22px; }
.photo-card--value .photo-card__badge { width: 60px; height: 60px; border-radius: 8px; }
.photo-card--value .photo-card__badge img { width: 32px; height: 32px; }
.photo-card__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    overflow-wrap: break-word;
}
.photo-card__text {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.4;
    opacity: .75;
}

/* Основные направления деятельности */
.activity-card {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 20px;
    background: #fff;
    border: 1px solid #cad5e2;
    border-radius: 30px;
    padding: 10px;
}
.activity-card__img {
    width: 100%;
    height: 100%;
    min-height: 384px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}
.activity-card__content { padding: 20px; }
.activity-card__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}
.activity-card__text {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #484848;
}

/* ============ О компании ============ */
.about {
    background: var(--bg);
    padding: 24px 0 100px;
}
.about__block-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 64px;
}

/* Этапы развития — таймлайн */
.roadmap { margin-bottom: 80px; }
.roadmap__tabs {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 30px;
}
.roadmap__years {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.roadmap__years::-webkit-scrollbar { display: none; }
.roadmap__year {
    flex: 0 0 auto;
    min-width: 106px;
    height: 45px;
    padding: 14px 20px;
    border-radius: 27px;
    border: 1px solid #cad5e2;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #5a6472;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.roadmap__year:hover { border-color: var(--accent); }
.roadmap__year.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.roadmap__nav {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}
.roadmap__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cad5e2;
    background: none;
    color: #5a6472;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.roadmap__nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.roadmap__nav-btn svg { width: 18px; height: 18px; }

.roadmap__card {
    display: grid;
    grid-template-columns: 582px minmax(0, 1fr);
    gap: 12px;
    background: #fff;
    border: 1px solid #cad5e2;
    border-radius: 24px;
    padding: 12px;
}
.roadmap__img {
    width: 100%;
    height: 100%;
    min-height: 384px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}
.roadmap__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}
.roadmap__year-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}
.roadmap__text {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #5a6472;
}
.roadmap__next {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    align-self: flex-start;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.roadmap__next svg { width: 22px; height: 22px; }

/* Наши проекты — карта */
.projects-map__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}
.projects-map__tab {
    height: 45px;
    padding: 14px 20px;
    border-radius: 27px;
    border: 1px solid #cad5e2;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #5a6472;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.projects-map__tab:hover { border-color: var(--accent); }
.projects-map__tab.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.projects-map__card {
    background: #fff;
    border: 1px solid #cad5e2;
    border-radius: 24px;
    padding: 40px;
}
.projects-map__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============ Руководство ============ */
.leaders {
    background: var(--bg);
    padding: 24px 0 100px;
}
.leaders__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 64px;
}
.leaders__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 40px;
}
.leaders__pill {
    padding: 12px;
    border-radius: 300px;
    border: 1px solid var(--accent);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--accent);
    background: none;
    cursor: pointer;
    opacity: .5;
    transition: opacity .2s ease;
}
.leaders__pill:hover { opacity: .8; }
.leaders__pill.is-active { opacity: 1; }

.leaders__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.leader-card {
    position: relative;
    aspect-ratio: 392 / 480;
    border-radius: 20px;
    overflow: hidden;
}
.leader-card[hidden] { display: none; }
.leader-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.leader-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 20, 43, .75) 0%, rgba(1, 20, 43, 0) 55%);
    pointer-events: none;
}
.leader-card__info {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    padding: 24px;
    color: #fff;
}
.leader-card__name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.3;
    margin-bottom: 6px;
}
.leader-card__position {
    font-size: 14px;
    letter-spacing: .5px;
    opacity: .85;
}
.leader-card__arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s ease;
}
.leader-card__arrow:hover { opacity: .8; }
.leader-card__arrow img { width: 32px; height: 32px; display: block; }

/* Попап руководителя */
.leader-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.leader-modal.is-open { display: flex; }
.leader-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 56, 116, .18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.leader-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 32px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
}
.leader-modal__photo {
    flex: 0 0 auto;
    width: 220px;
    height: 341px;
    object-fit: cover;
    border-radius: 12px;
}
.leader-modal__body {
    min-width: 0;
    overflow-y: auto;
}
.leader-modal__name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #484848;
}
.leader-modal__position {
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--accent);
    opacity: .75;
    margin: 8px 0 24px;
}
.leader-modal__bio {
    font-size: 16px;
    line-height: 1.6;
    color: #484848;
}
.leader-modal__close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(1, 56, 116, .15);
}
.leader-modal__close svg { width: 18px; height: 18px; }

/* ============ Контакты ============ */
.contacts {
    background: var(--bg);
    padding: 24px 0 100px;
}
.contacts__head { margin-bottom: 64px; }
.contacts__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 16px;
}
.contacts__subtitle {
    font-size: 16px;
    letter-spacing: 1px;
    color: #484848;
}

/* Карточка с контактами */
.contacts__card {
    display: grid;
    grid-template-columns: minmax(0, 482px) minmax(0, 1fr);
    gap: 80px;
    background: #fff;
    border: 1px solid #cad5e2;
    border-radius: 24px;
    padding: 40px;
}
.contacts__col { min-width: 0; }
.contacts__logo { margin-bottom: 24px; }
.contacts__logo img { width: 280px; max-width: 100%; height: auto; }
.contacts__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contacts__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contacts__label {
    font-size: 12px;
    letter-spacing: .5px;
    color: #6c7789;
}
.contacts__value {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.4;
    color: var(--accent);
}
a.contacts__value { transition: opacity .2s ease; }
a.contacts__value:hover { opacity: .6; }

.contacts__branches-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    color: #484848;
    margin-bottom: 24px;
}
.contacts__branches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Форма заявки */
.contacts__form-block { padding-top: 64px; }
.contacts__form-head {
    text-align: center;
    margin-bottom: 40px;
}
.contacts__form-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 16px;
}
.contacts__form-subtitle {
    font-size: 16px;
    letter-spacing: 1px;
    color: #484848;
}
.contacts-form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}
.contacts-form__grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.contacts-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.contacts-form__field {
    width: 100%;
    padding: 16px;
    border: 1px solid #cad5e2;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: .5px;
    color: #24282e;
    background: var(--bg);
    transition: border-color .2s ease;
}
.contacts-form__field::placeholder { color: #8a94a3; }
.contacts-form__field:focus {
    outline: none;
    border-color: var(--accent);
}
.contacts-form__file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #cad5e2;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: .5px;
    color: #484848;
    background: var(--bg);
    cursor: pointer;
    transition: border-color .2s ease;
}
.contacts-form__file:hover { border-color: var(--accent); }
.contacts-form__file svg { width: 16px; height: 16px; flex: 0 0 auto; }
.contacts-form__file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.contacts-form__submit {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contacts-form__btn {
    flex: 0 0 auto;
    padding: 14px 20px;
    min-width: 260px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity .2s ease;
}
.contacts-form__btn:hover { opacity: .9; }
.contacts-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .5px;
    line-height: 1.4;
    color: #484848;
    cursor: pointer;
}
.contacts-form__consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--accent);
}
.contacts-form__consent a { color: var(--accent); text-decoration: underline; }
.contacts-form__success {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    background: #e8f0f8;
    color: var(--accent);
    font-size: 15px;
    text-align: center;
}

/* ============ Сертификаты ============ */
.certs {
    background: var(--bg);
    padding: 24px 0 100px;
}
.certs__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 64px;
}
.certs__layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* Фильтр */
.certs__filter {
    flex: 0 0 291px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.certs__tab {
    height: 45px;
    padding: 12px 16px;
    border-radius: 27px;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: .5px;
    color: #5a6472;
    background: transparent;
    border: 1px solid #cad5e2;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.certs__tab:hover { border-color: var(--accent); color: var(--accent); }
.certs__tab.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Список */
.certs__list { flex: 1 1 auto; min-width: 0; }
.certs__head,
.cert-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 72px;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #cad5e2;
}
.certs__head {
    padding-bottom: 12px;
    font-size: 12px;
    letter-spacing: .5px;
    color: #5a6472;
}
.cert-row { padding: 16px 0; }
.cert-row[hidden] { display: none; }
.cert-row__name {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.36px;
    line-height: 1.4;
    color: #5a6472;
}
.cert-row__year {
    font-size: 16px;
    letter-spacing: 1px;
    color: #5a6472;
}
.cert-row__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.cert-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s ease;
}
.cert-row__icon:hover { opacity: .6; }
.cert-row__icon img { width: 24px; height: 24px; display: block; }

.certs__empty {
    padding: 24px 0;
    font-size: 16px;
    color: #5a6472;
}

/* Модальное окно просмотра */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.cert-modal.is-open { display: flex; }
.cert-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 56, 116, .12);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.cert-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 1071px;
    width: 100%;
}
.cert-modal__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(1, 56, 116, .25);
}
.cert-modal__close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
    border: none;
    color: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(1, 56, 116, .15);
}
.cert-modal__close svg { width: 20px; height: 20px; }

/* ============ Инфо-страница (юридический текст) ============ */
.legal {
    background: var(--bg);
    padding: 24px 0 80px;
}
.legal__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 40px;
}
.legal__lead {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.6;
    color: var(--accent);
    margin-bottom: 32px;
}
.legal__body h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1.4;
    color: var(--accent);
    margin: 36px 0 14px;
}
.legal__body p {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #484848;
    margin-bottom: 12px;
}
.legal__body ul {
    margin: 0 0 12px;
    padding-left: 22px;
}
.legal__body li {
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: #484848;
    margin-bottom: 6px;
}

/* ============ Страница 404 ============ */
.page-404 {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
main.error404 {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background: var(--bg);
    padding: 24px 0 80px;
}
.error404__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    width: 100%;
}
.error404__img {
    width: 100%;
    max-width: 861px;
    height: auto;
}
.error404__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.error404__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    color: var(--accent);
    text-align: center;
}
.error404__btn {
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    transition: opacity .2s ease;
}
.error404__btn:hover { opacity: .9; }

/* ============ Адаптив ============ */
@media (max-width: 768px) {
    /* Header + Hero */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    .header__logo img { width: 56px; height: 50px; }
    /* Внутреннее лого на мобильных: ширина 300px, но не шире экрана */
    .header--dark .header__logo img { width: 300px; height: auto; max-width: 100%; }

    /* Бургер: 3 линии по 1×32px, промежуток 9px */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 21px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
    }
    .burger span {
        display: block;
        width: 32px;
        height: 1px;
        background: #fff;
        transition: transform .3s ease, opacity .3s ease, background .2s ease;
    }
    .header--dark .burger span { background: var(--accent); }

    /* Анимация в крестик */
    .burger.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .burger.is-active span:nth-child(2) { opacity: 0; }
    .burger.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    /* Выпадающее меню */
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--accent);
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }
    .header__nav.is-open { max-height: 560px; }
    .header__link {
        padding: 14px 0;
        font-size: 16px;
        letter-spacing: 1px;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }
    .header__link:last-child { border-bottom: none; }
    /* В выпадающем меню ссылки всегда белые (фон меню — акцентный) */
    .header--dark .header__link { color: #fff; }

    /* Выпадающий пункт в бургере: раскрытый список без наведения */
    .header__item { display: block; }
    .header__link--parent { justify-content: space-between; }
    .header__caret { display: none; }
    .header__item::after { display: none; }
    .header__submenu {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0 0 0 16px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    .header__sublink {
        padding: 13px 0;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }
    .header__sublink:hover { background: transparent; opacity: .8; }
    .hero__title { font-size: 50px; letter-spacing: 1.5px; }
    .hero__br { display: block; }
    .hero__subtitle { font-size: 18px; }
    .hero__content { padding-bottom: 96px; }

    /* Блок с цифрами */
    .stats__grid { grid-template-columns: 1fr; }
    .stat { min-height: 150px; padding: 18px 24px; }
    .stat__number { font-size: 44px; }

    /* Страница 404 */
    .error404__inner { gap: 40px; }
    .error404__title { font-size: 18px; }

    /* Партнёры */
    .partners-page { padding: 16px 0 56px; }
    .partners-page__title { font-size: 28px; margin-bottom: 28px; }
    .partners-page__section-title { font-size: 20px; }
    .pkey { margin-bottom: 56px; }
    .pkey__head { margin-bottom: 28px; }
    .pkey__logo { max-height: 80px; }
    .pall__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .pall__logo { max-height: 60px; }

    /* Проекты */
    .projects-page { padding: 16px 0 56px; }
    .projects-page__title { font-size: 28px; margin-bottom: 28px; }
    .projects__section-title { font-size: 20px; }
    .projects__featured { grid-template-columns: 1fr; margin-bottom: 40px; }
    .projects__cards { grid-template-columns: 1fr; margin-bottom: 40px; }
    .pcard--grid { min-height: 360px; }
    .projects__filter { flex-wrap: wrap; }
    .projects__years { flex: 1 1 100%; order: 2; }
    .projects__dropdown,
    .projects__dropdown-wrap { order: 1; }
    .projects__dropdown-wrap { flex: 1 1 100%; }
    .projects__dropdown-menu { left: 0; right: auto; width: 100%; }
    .projects-table__head { display: none; }
    .projects-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "name year" "cat year";
        gap: 4px 16px;
    }
    .projects-row__name { grid-area: name; font-size: 15px; }
    .projects-row__cat { grid-area: cat; }
    .projects-row__year { grid-area: year; align-self: center; }

    /* Новости (лента) */
    .news-page { padding: 16px 0 56px; }
    .news-page__title { font-size: 28px; margin-bottom: 28px; }
    .news-page__grid { grid-template-columns: 1fr; }
    .news-card { grid-template-columns: 120px minmax(0, 1fr); }
    .news-card__img { width: 120px; height: 100%; min-height: 120px; }
    .news-card__body { gap: 12px; padding: 8px; }
    .news-card__title { font-size: 14px; margin-bottom: 6px; }

    /* Статья */
    .article-page { padding: 16px 0 56px; }
    .article { --article-pad: 16px; --article-pad-y: 20px; padding: var(--article-pad-y) var(--article-pad); border-radius: 20px; }
    .article__title { font-size: 26px; }
    .article__tag { margin-bottom: 28px; }

    /* Компетенции */
    .competences { padding: 16px 0 56px; }
    .comp-block + .comp-block { margin-top: 56px; }
    .comp-block__title { font-size: 28px; margin-bottom: 28px; }
    .comp-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .comp-grid--3 { grid-template-columns: 1fr; }
    .photo-card { padding: 10px 10px 18px; }
    .photo-card--comp { min-height: 240px; }
    .photo-card__title { font-size: 17px; margin-bottom: 8px; }
    .photo-card__text { font-size: 13px; }
    .photo-card--value .photo-card__title { font-size: 22px; }
    .photo-card--value .photo-card__text { font-size: 15px; }
    .activity-card {
        grid-template-columns: 1fr;
    }
    .activity-card__img { min-height: 220px; max-height: 260px; }
    .activity-card__content { padding: 12px; }

    /* О компании */
    .about { padding: 16px 0 56px; }
    .about__block-title { font-size: 28px; margin-bottom: 28px; }
    .roadmap { margin-bottom: 56px; }
    .roadmap__card {
        grid-template-columns: 1fr;
    }
    .roadmap__img { min-height: 220px; max-height: 260px; }
    .roadmap__content { padding: 8px; }
    .roadmap__nav { display: none; }
    .projects-map__tabs { flex-wrap: wrap; }
    .projects-map__card { padding: 16px; border-radius: 16px; }

    /* Руководство */
    .leaders { padding: 16px 0 56px; }
    .leaders__title { font-size: 28px; margin-bottom: 28px; }
    .leaders__filter { margin-bottom: 28px; }
    .leaders__pill { font-size: 14px; padding: 10px 14px; }
    .leaders__grid { grid-template-columns: 1fr; }
    .leader-modal__dialog {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
        overflow-y: auto;
    }
    .leader-modal__photo { width: 100%; height: 260px; }
    .leader-modal__close { top: 8px; right: 8px; background: #fff; }

    /* Контакты */
    .contacts { padding: 16px 0 56px; }
    .contacts__head { margin-bottom: 32px; }
    .contacts__title { font-size: 28px; }
    .contacts__card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 24px;
        border-radius: 16px;
    }
    .contacts__logo img { width: 220px; }
    .contacts__form-block { padding-top: 40px; }
    .contacts__form-title { font-size: 28px; }
    .contacts-form__row { grid-template-columns: 1fr; }
    .contacts-form__submit { flex-direction: column; align-items: stretch; }
    .contacts-form__btn { width: 100%; min-width: 0; }

    /* Сертификаты */
    .certs { padding: 16px 0 56px; }
    .certs__title { font-size: 28px; margin-bottom: 32px; }
    .certs__layout { flex-direction: column; gap: 24px; }
    .certs__filter { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; width: 100%; }
    .certs__tab { flex: 0 0 auto; }
    .certs__head { display: none; }
    .cert-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "name actions" "year actions";
        gap: 4px 16px;
        padding: 14px 0;
    }
    .cert-row__name { grid-area: name; font-size: 15px; }
    .cert-row__year { grid-area: year; font-size: 14px; }
    .cert-row__actions { grid-area: actions; align-self: center; }

    /* Инфо-страница */
    .legal { padding: 16px 0 56px; }
    .legal__title { font-size: 28px; margin-bottom: 28px; }
    .legal__body h2 { font-size: 18px; }

    /* Компетенции */
    .directions { padding: 48px 0; }
    .directions__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 36px;
    }
    .directions__title { font-size: 30px; }
    .directions__more { font-size: 16px; }
    .directions__cards { grid-template-columns: 1fr; }
    .direction-card { height: 420px; }

    /* Проекты */
    .projects { padding: 48px 0; }
    .projects__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 36px;
    }
    .projects__title { font-size: 30px; }
    .projects__all { font-size: 16px; }
    .projects__row { flex-direction: column; height: auto; }
    .projects__row .project-card,
    .projects__row--bottom .project-card:first-child { flex: 0 0 auto; }
    .project-card { height: 270px; }
    /* На мобильных контент показываем сразу (без hover) */
    .project-card__overlay,
    .project-card__content { opacity: 1; transform: none; }

    /* Новости */
    .news { padding: 48px 0; }
    .news__head { gap: 20px; margin-bottom: 36px; }
    .news__title { font-size: 30px; }
    .news__all { font-size: 16px; }
    .news-item {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .news-item__title { font-size: 20px; }
    .news-item__text { display: none; }
    .news-item__date {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .news-item__month { font-size: 24px; }
    .news-item__day { font-size: 24px; line-height: 1.2; }

    /* Партнёры */
    .partners { padding: 48px 0 64px; }
    .partners__inner { flex-direction: column; gap: 32px; align-items: stretch; }
    .partners__card { flex: 0 0 auto; padding: 40px 12px; }
    .partners__title { font-size: 30px; }

    /* Footer */
    .footer { padding-top: 60px; }

    /* Логотип + контакты в столбик, по левому краю */
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding-bottom: 60px;
    }
    .footer__logo img { height: 62px; }
    .footer__contacts { align-items: flex-start; gap: 6px; }
    .footer__contact { font-size: 24px; }

    /* Описание на всю ширину, навигация в мобилке скрыта */
    .footer__middle {
        flex-direction: column;
        gap: 32px;
        padding: 30px 0 40px;
    }
    .footer__nav { display: none; }
    .footer__brand { margin-bottom: 32px; }

    /* Правовая строка остаётся в строку */
    .footer__legal {
        gap: 16px;
        padding-top: 24px;
    }
    .footer__legal-link { font-size: 10px; }
}
