:root {
    --color-black: #000000;
    --color-navy: #003575;
    --color-navy-dark: #0f2145;
    --color-navy-darker: #0a1836;
    --color-red-light: #FDF3F5;
    --color-red: #E72435;
    --color-red-dark: #c81e2b;
    --color-blue: #1f4e9c;
    --color-bg: #f3f5f9;
    --color-border: #EAECF1;
    --color-card-border: #e6eaf1;
    --color-text: #002E5A;
    --color-gray-light: #F2F7FD;
    --color-muted: #6b7690;
    --color-muted-light: #9aa3b8;
    --font-main: 'Inter', 'PT Sans', 'Segoe UI', Arial, sans-serif;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --header-height: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.45;
    color: var(--color-text);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 1240px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============ Кнопки ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 30px;
    height: 46px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    min-width: 165px;
    transition: all .2s ease;
    text-decoration: none!important;
}

.btn:active {
    transform: translateY(1px);
}

.btn--red {
    background: var(--color-red);
    color: #ffffff;
}

.btn--red:hover {
    background: var(--color-red-dark);
}

.btn--blue {
    background: var(--color-blue);
    color: #ffffff!important;
}

.btn--blue:hover {
    background: #183d7c;
}

.btn--white {
    background: #ffffff!important;
    color: var(--color-navy);
}

.btn--white:hover {
    background: #eef1f7;
}

.btn--gray {
    background: var(--color-gray-light);
    color: var(--color-navy)!important;
}

.btn--gray:hover {
    background: var(--color-navy);
    color: var(--color-gray-light)!important;
}

.btn--outline {
    background: transparent;
    color: var(--color-navy)!important;
    border: 2px solid #a4c9ea;
}

.btn--outline svg path {
    transition: all .2s ease;
}

.btn--outline:hover {
    border-color: var(--color-navy);
}

.btn--outline:hover svg path {
    stroke: var(--color-navy);
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Черный с прозрачностью 40% */
    z-index: 90;
    /* Должен быть выше контента, но ниже выпадающего меню (у меню z-index: 100) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    /* Чтобы клики проходили сквозь него, когда он скрыт */
}

/* Класс, который мы будем добавлять через JS */
.page-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Блокируем клики по сайту, пока открыто меню */
}

/* ============ Логотип ============ */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    height: 90px;
}

.logo img {
    height: 100%;
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
    background: #ffffff;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.header__gov {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header__gov-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    max-width: 230px;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
}

.header__gov-badge {
    flex-shrink: 0;
    display: inline-flex;
    height: 46px;
}

.header__gov-text {
    opacity: 0.5;
}

.header__gov-badge img {
    height: 100%;
}

.header__right {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
}

.header__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header__contact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: var(--color-text);
    transition: color .2s ease;
}

.header__contact:hover {
    color: var(--color-red);
}

.header__contact-icon {
    color: var(--color-muted);
}

.header__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    width: 268px;
}

.socials {
    display: flex;
    align-items: center;
    gap: 11px;
}

.socials__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.socials__item svg {
    width: 100%;
    height: 100%;
}

.socials__item:hover svg path {
    opacity: 1;
}

.header__account {
    padding: 11px 24px;
    font-size: 14px;
}

.header__vision {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: var(--color-navy);
    background: var(--color-gray-light);
    transition: all .2s ease;
    padding: 7px 26px;
    width: 268px;
    border-radius: 8px;
}

.header__vision:hover {
    color: var(--color-bg);
    background: var(--color-navy);
}

/* ============ Навигация ============ */
.nav__burger--mobile {
    display: none;
}

.header__vision-mini {
    display: none!important;
}

.nav__extra {
    display: none;
}

.header__menu {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.header__menu:before {
    position: absolute;
    top: 0;
    left: 50%;
    content: '';
    width: calc(100% - 32px);
    border-top: 1px solid var(--color-card-border);
    transform: translateX(-50%);
}

.nav {
    display: flex;
    width: 100%;
}

.nav__inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--color-navy);
}

.nav__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav__item {
    position: relative;
    z-index: 91;
}

.nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 4px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    color: var(--color-text);
    transition: color .2s ease;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid transparent;
}

.nav__link:hover {
    color: var(--color-red);
}

.nav__item--dropdown>.nav__link::after {
    content: '';
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .2s ease;
}

.nav__item--dropdown:hover>.nav__link {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
}

.nav__item--dropdown:hover>.nav__link::after {
    transform: rotate(225deg) translateY(-1px);
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 560px;
    min-width: max-content;
    max-width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.25s ease;
    pointer-events: none;
}

.nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav__dropdown-list {
    background: #ffffff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav__dropdown-link {
    display: block;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-navy);
    transition: all 0.2s ease;
}

.nav__dropdown-link:hover {
    color: var(--color-red);
}

.nav__list li.active a,
.nav__dropdown-link--active {
    color: var(--color-red) !important;
}

.nav__link--search {
    font-weight: 700;
}

.header__search {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #d4dbe8;
    box-sizing: border-box;
    height: 46px;
    width: 100%;
    max-width: 268px;
    border-radius: 8px;
}

.header__search:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(31, 78, 156, .12);
}

.header__search-input {
    width: 100%;
    padding: 14px 0 14px 18px;
    font-size: 14px;
    color: var(--color-text);
    background: #ffffff;
    border-radius: 8px;
    border: none;
    appearance: none;
    outline: none;
}

.header__search-input::placeholder {
    color: var(--color-muted-light);
}

.header__search-button {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    appearance: none;
}

.header__search-button:hover svg path {
    fill: var(--color-navy);
}

main {
    flex: 1 0 auto;
}

/* ============================================================
   HERO: слайдер + полезная информация
   ============================================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 22px;
    padding-top: 24px;
}

/* --- Слайдер --- */
.slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 430px;
}

.slider__viewport {
    overflow: hidden;
    height: 100%;
}

.slider__track {
    height: 100%;
}

.slider__slide {
    flex: 0 0 100%;
}

.slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 430px;
    padding: 48px 48px 70px;
    background:
        linear-gradient(180deg, rgba(15, 33, 69, 0) 30%, rgba(15, 33, 69, .82) 100%),
        linear-gradient(120deg, #2c4472 0%, #17294f 45%, #3d5687 100%);
}

.slide:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.slide__image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 1;
}

.slide__content {
    position: relative;
    z-index: 2;
}

.slide__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    background: var(--color-red);
    border-radius: 4px;
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
}

.slide__title {
    color: #ffffff;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
}

.slide__link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.special .slide__link {
    background: none!important;
}

.hero__slider .splide__pagination {
    bottom: 26px;
}

.hero__slider .splide__pagination__page {
    width: 8px;
    height: 8px;
    opacity: 1;
    margin: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero__slider .splide__pagination__page.is-active {
    width: 20px;
    opacity: 1;
    background: var(--color-red);
    transform: scale(1);
}

/* --- Полезная информация --- */
.useful {
    background: #ffffff;
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
}

.useful__title {
    color: var(--color-text);
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
}

.useful__item {
    border-bottom: 1px solid var(--color-card-border);
}

.useful__item:last-child {
    border-bottom: none;
}

.useful__link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: var(--color-text);
    transition: color .2s ease, padding-left .2s ease;
}

.useful__link:hover {
    color: var(--color-blue);
    padding-left: 4px;
}

.useful__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.useful__icon img {
    width: 100%;
    height: 100%;
}

.useful__chevron {
    margin-left: auto;
    color: var(--color-red);
    flex-shrink: 0;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
    padding-top: 70px;
    padding-bottom: 70px;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 24px;
}

.stats__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats__value {
    font-weight: 700;
    font-size: 54px;
    line-height: 1;
    color: var(--color-text);
}

.stats__label {
    align-items: center;
    color: var(--color-text);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.stats__label svg {
    vertical-align: middle;
}

.stats__value--red,
.stats__label--red {
    color: var(--color-red);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 24px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 280px;
    padding: 40px 32px;
    background: var(--color-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 388px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.card:hover {
    box-shadow: 0 16px 40px rgba(15, 33, 69, .10);
    transform: translateY(-3px);
}

.card__title {
    line-height: 1.3;
    color: var(--color-navy);
    font-weight: 600;
    font-size: 22px;
}

.card__text {
    line-height: 1.5;
    color: var(--color-navy);
    max-width: 246px;
    font-weight: 500;
    font-size: 16px;
}


.card__btn {
    margin-top: auto;
    align-self: flex-start;
}

/* --- Карточка-заглушка «Приёмная комиссия» --- */
.card--navy {
    background: var(--color-navy);
    border-color: var(--color-navy);
    justify-content: space-between;
    gap: 24px;
}

.card--navy .card__title,
.card--navy .card__text {
    color: #ffffff;
    margin: 0;
}

.card--navy .card__btn {
    margin-top: 0;
}

.card--red {
    background: var(--color-red-light);
}

.card__decor {
    position: absolute;
    right: -50px;
    bottom: 60px;
    width: 200px;
    height: 200px;
}

/* ============================================================
   ГОСУСЛУГИ
   ============================================================ */
.gosuslugi {
    padding-bottom: 90px;
}

.gosuslugi__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-height: 112px;
    padding: 30px 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.gosuslugi__brand {
    width: 240px;
}

.gosuslugi__brand img {
    width: 100%;
}

.gosuslugi__photo {
    position: relative;
    flex: 1;
    max-width: 400px;
    height: 112px;
    background: linear-gradient(120deg, #d8dee9, #b9c3d6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gosuslugi__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 26%;
}

.gosuslugi__photo:before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(217, 217, 217, 0) 0%, rgba(242, 247, 253, 0.3) 100%);
}

/* ============================================================
   SECTION HEAD (заголовки секций)
   ============================================================ */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 38px;
}

.section-head__title {
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    color: var(--color-navy);
    opacity: 0.2;
}

.section-head__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-navy);
    transition: all .2s ease;
    opacity: 0.2;
}

.section-head__all:hover {
    color: var(--color-red);
    opacity: 1;
}

/* ============================================================
   NEWS
   ============================================================ */
.news {
    padding-bottom: 90px;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.news-card__img {
    position: relative;
    height: 220px;
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #dfe5ef 0%, #c3cddd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all .2s ease;
    opacity: 0.6;
}

.news-card__img picture,
.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__title {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.35;
    color: var(--color-navy);
    margin-bottom: 14px;
    transition: all .2s ease;
}

.news-card__date {
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 13px;
    background: var(--color-red);
    border-radius: 20px;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
}

.news-card__link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.news-card:hover .news-card__img {
    opacity: 1;
}

.news-card:hover .news-card__title {
    color: var(--color-red-dark);
}

.news__next-link {
    margin: 0 !important;
    color: #ffffff!important;
}

.news__next-link:hover {
    text-decoration: none!important;
}

.neighbors {
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.news__page {
    flex: 1;
    width: 100%;
}

.news__list {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news__page .news-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 20px;
}

.news__page .news-card__img {
    aspect-ratio: 400 / 237;
    height: auto;
    margin-bottom: 0;
}

.news-card__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news__page .news-card__date,
.news__page .news-card__title {
    margin: inherit;
}

.content__date {
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 13px;
    background: var(--color-red);
    border-radius: 20px;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
}

.aside.aside-news {
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aside-news__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: var(--color-text);
}

.aside-news__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.aside-news__grid .news-card:not(:first-child) .news-card__img {
    display: none;
}

.pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 50px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    color: var(--color-text);
    padding: 14px;
    border-radius: 8px;
}

.page-item.active .page-link,
.page-item a.page-link:hover {
    color: #ffffff;
    background: var(--color-red);
}

.page-item a.page-link:hover svg path {
    stroke: #ffffff;
}

.pagination .disabled {
    opacity: 0.5;
}

.page-nav {
    border: 1px solid #EAECF1;
    border-radius: 8px;
}

/* ============================================================
   DIRECTOR
   ============================================================ */
.director {
    background: var(--color-gray-light);
    margin-bottom: 64px;
}

.director__inner {
    position: relative;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    align-items: center;
    padding: 56px 16px;
}

.director__photo {
    position: relative;
    height: 400px;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 50% 32%, #f0f3f9 0 26%, transparent 27%),
        linear-gradient(180deg, #dfe5ef 0%, #b9c3d6 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.director__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director__name {
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.director__position {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.4;
}

.director__text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 34px;
    max-width: 660px;
}

.director__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.director__actions .btn {
    flex: 1;
}

.director__actions .btn--outline {
    flex: none;
}

.btn--play svg {
    width: 18px;
}

.director__decore {
    position: absolute;
    top: 70px;
    right: 0;
}

/* ============================================================
   CONSULT FORM
   ============================================================ */
.consult {
    padding-bottom: 70px;
}

.consult__card {
    display: grid;
    grid-template-columns: 1fr 624px;
    gap: 40px;
    padding: 40px 30px;
    background: var(--color-gray-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.consult__title {
    position: relative;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 25px;
}

.consult__title:after {
    content: url(../images/arrow-red.svg);
    position: absolute;
    right: 0;
    top: 48px;
}

.consult__text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 45px;
}

.consult__illustration {
    height: 100%;
    max-height: 204px;
    margin: 0 auto;
}

/* --- Форма --- */
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__field {
    margin-bottom: 16px;
}

.form__input {
    width: 100%;
    padding: 15px 18px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid #d4dbe8;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form__input::placeholder {
    color: var(--color-muted-light);
}

.form__input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(31, 78, 156, .12);
}

.form__field--select {
    position: relative;
}

.form__select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 46px;
    cursor: pointer;
    color: var(--color-muted-light);
}

.form__select:valid {
    color: var(--color-text);
}

.form__select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form__textarea {
    resize: vertical;
    min-height: 88px;
}

.form__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 6px;
}

.form__agree {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--color-muted);
    cursor: pointer;
    user-select: none;
}

.form__agree a {
    text-decoration: underline;
}

.form__agree a:hover {
    color: var(--color-red);
}

.form__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form__checkbox-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid #d4dbe8;
    border-radius: 6px;
    background: #ffffff;
    transition: background-color .2s ease, border-color .2s ease;
}

.form__checkbox:checked+.form__checkbox-view {
    background: var(--color-red);
    border-color: var(--color-red);
}

.form__checkbox:focus-visible+.form__checkbox-view {
    box-shadow: 0 0 0 3px rgba(230, 50, 63, .25);
}

.form__submit {
    padding: 15px 34px;
}

.form__success {
    display: none;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #e9f7ee;
    color: #1d7a43;
    font-size: 14px;
    font-weight: 500;
}

.form__success--visible {
    display: block;
}

.form__input--error {
    border-color: var(--color-red);
}

.form__dir-title {
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.form__dir .consult__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form__dir .form__row {
    grid-template-columns: 1fr;
    gap: 14px;
}

.form__dir .form__field {
    margin-bottom: 0;
}

.form__dir .form__bottom {
    margin-top: 0;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners {
    padding-bottom: 70px;
}

.partners-page .content__title {
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

.partners__slider {
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
}

.partners__slide {
    padding: 0 30px;
    box-sizing: border-box;
    flex: none;
    width: 100%;
    max-width: 20%;
}

.partners__slide a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partners__slide img {
    width: 100%;
    max-width: 180px;
    object-fit: contain;
}

.partners__search {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #d4dbe8;
    box-sizing: border-box;
    height: 46px;
    width: 100%;
    max-width: 268px;
    border-radius: 8px;
}

.partners__search .form-control {
    width: 100%;
    padding: 14px 0 14px 18px;
    font-size: 14px;
    color: var(--color-text);
    background: #ffffff;
    border-radius: 8px;
    border: none;
    appearance: none;
    outline: none;
}

.partners__search .form-control::placeholder {
    color: var(--color-muted-light);
}

.partners__search-button {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    appearance: none;
}

.partners-page #pdopage {
    width: 100%;
}

.partners__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.partners__item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 30px;
    padding: 40px 30px;
    border: 1px solid #EAECF1;
    border-radius: 20px;
}

.partners__item-logo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.partners__item-logo a,
.partners__item-logo img {
    width: 100%;
}

.partners__item-content {
    display: flex;
    flex-direction: column;
    grid-column-start: 2;
    gap: 1em;
}

.partners__item-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: var(--color-red);
}

.partners__item-text h2,
.partners__item-text h3,
.partners__item-text h4,
.partners__item-text h5,
.partners__item-text h6 {
    margin-top: 0.5em;
}

.partners__item-text {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0%;
    gap: 0.5em;
}

.partners__btn.btn-more {
    margin-top:40px;
    margin-left:0;
}

/* ============================================================
   MAP
   ============================================================ */
.map {
    padding-bottom: 40px;
}

.map__canvas {
    position: relative;
    background:
        repeating-linear-gradient(0deg, transparent 0 42px, rgba(31, 78, 156, .05) 42px 44px),
        repeating-linear-gradient(90deg, transparent 0 42px, rgba(31, 78, 156, .05) 42px 44px),
        linear-gradient(135deg, #eef2e8 0%, #e3ead9 50%, #eef2e8 100%);
    overflow: hidden;
}

/* ============================================================
   ADDRESSES
   ============================================================ */
.addresses {
    padding-bottom: 72px;
}

.addresses__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.addresses__item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    border: 1px solid transparent;
    padding: 20px;
    box-sizing: border-box;
    border-radius: var(--radius-lg);
}

.addresses__item:hover {
    border: 1px solid var(--color-border);
}

.addresses__item:nth-child(2) {
    order: 4;
}

.addresses__item:nth-child(4) {
    order: 5;
}

.addresses__title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 1em;
    max-width: 345px;
}

.addresses__text {
    max-width: 345px;
}

.addresses__text * {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
}

.addresses__text *:not(:last-child) {
    margin-bottom: 1em;
}

.addresses__text strong {
    color: var(--color-text);
    font-weight: 700;
}

.content__main .addresses {
    padding: 0;
}

.content__main .addresses__grid {
    margin: 0;
    grid-template-columns: 1fr;
    gap: 10px;
}

.content__main .addresses__item {
    order: 0;
}

.content__main .addresses__title,
.content__main .addresses__text {
    max-width: none;
}

/* ============================================================
   CONTENT
   ============================================================ */

.content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
    color: var(--color-black);
    margin-top: 40px;
    margin-bottom: 40px;
}

.content__main {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
}

.content__title {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-right: 440px;
    color: var(--color-text);
}

.content__title.title--full {
    margin-right: 0;
}

.content__title h1 {
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
}

.content__main h2,
.content__optional h2,
.content__main h3,
.content__optional h3,
.content__main h4,
.content__optional h4 {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    color: var(--color-red);
}

.content__main h3,
.content__optional h3 {
    font-size: 18px;
}

.content__main h4,
.content__optional h4,
.content__main h5,
.content__optional h5,
.content__main h6,
.content__optional h6 {
    font-size: 16px;
}

.content__main *:not(:last-child),
.content__optional *:not(:last-child) {
    margin-bottom: 1em;
}

.flexpage .content__main details * {
    margin: 0 !important;
}

.flexpage .content__main .accordion__item {
    margin-bottom: 0;
}

.content__main h1:not(:first-child),
.content__main h2:not(:first-child),
.content__main h3:not(:first-child),
.content__main h4:not(:first-child),
.content__main h5:not(:first-child),
.content__main h6:not(:first-child),
.content__optional h1:not(:first-child),
.content__optional h2:not(:first-child),
.content__optional h3:not(:first-child),
.content__optional h4:not(:first-child),
.content__optional h5:not(:first-child),
.content__optional h6:not(:first-child) {
    margin-top: 2em;
}

.content__main ul,
.content__optional ul {
    list-style: disc;
    margin-left: 20px;
}

.content__main ol,
.content__optional ol {
    list-style: decimal;
    margin-left: 2em;
}

.content__main ul li,
.content__main ol li,
.content__optional ul li,
.content__optional ol li {
    margin-bottom: 0.5em !important;
}

.content__main picture,
.content__main img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.content__main picture img:not(:first-child) {
    margin: 0;
}

.news__cover-item {
    width: 100%;
}

.content__main img:not(:first-child) {
    margin-top: 2em;
    margin-bottom: 2em;
}

.content__main a,
.content__optional a,
.pd-banner a {
    color: var(--color-text);
}

.content__main a:hover,
.content__optional a:hover {
    color: var(--color-red);
    text-decoration: underline;
}

.content__main video,
.content__optional video,
.content__main iframe,
.content__optional iframe {
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

.aside {
    flex: 1;
    width: 100%;
    max-width: 400px;
    min-width: 400px;
    padding: 40px;
    background: var(--color-gray-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}

.gallery__slider,
.flexpage__slider {
    width: 100%;
}

.gallery__slider img,
.flexpage__slider img {
    cursor: pointer;
    border-radius: var(--radius-md);
    font-size: 0;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.aside__menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aside__menu li a {
    display: inline-block;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-text);
}

.aside__menu li.active a,
.aside__menu li a:hover {
    color: var(--color-red);
}

.content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

.content th,
.content td {
    border: 1px solid var(--color-border);
    padding: 12px 10px;
    vertical-align: middle;
}

.content th {
    background: var(--color-gray-light);
    font-weight: 700;
    line-height: 1.5;
}

.content td {
    font-weight: 400;
    line-height: 1.5;
}

.content tr:hover {
    background: var(--color-gray-light);
}

.content__optional {
    width: 100%;
}

.gallery_list img {
    aspect-ratio: 16 / 9;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    object-fit: cover;
    cursor: pointer;
}

/* ============================================================
   DOCUMENTS
   ============================================================ */

.documents {
    flex: 1;
}

.accordion {
    border-top: 1px solid var(--color-border);
}

.accordion__item {
    border-bottom: 1px solid var(--color-border);
}

/* Заголовок секции (Бывший summary) */
.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    transition: color 0.2s;
}

.accordion__header::-webkit-details-marker {
    display: none;
}

.accordion__title {
    color: var(--color-text);
}

.accordion__item[open] .accordion__title,
.accordion__header:hover .accordion__title {
    color: var(--color-red);
}

.accordion__chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    fill: var(--color-text);
    flex-shrink: 0;
}

.accordion__item[open] .accordion__chevron {
    transform: rotate(180deg);
}

.accordion__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.accordion__text {
    padding: 10px 0;
    color: #666;
}

.document {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.document__icon {
    width: 40px;
    height: 50px;
    flex-shrink: 0;
}

.document__info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.document__title {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}

.document__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-grey);
}

.meta__link {
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
    gap: 5px;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
}

.meta__link span,
.meta__item span {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.meta__link:hover span {
    opacity: 1;
}

.meta__link:hover {
    text-decoration: underline;
}

.meta__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
}

.meta__icon {
    width: 16px;
    height: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.graduates .content__title {
    margin-right: 0;
}

.graduates__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
}

.graduates__photo {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.graduates__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    transition: all 0.5s ease;
}

.graduates__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.graduates__name {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: var(--color-red);
}

.graduates__position {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}

.graduates__link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.special .graduates__link {
    background: none!important;
}

.graduates__item:hover {
    transform: scale(1.02);
}

.graduates-page {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
}

.graduates-page .graduates__title {
    margin-bottom: 8px !important;
}

.graduates-page .graduates__title h1 {
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    color: var(--color-text);
}

.graduates-page .graduates__position {
    width: fit-content;
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 13px;
    background: var(--color-red);
    border-radius: 20px;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
}

/* ============================================================
   Search
   ============================================================ */

.site-search-results {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--color-border);
    z-index: 20;
    padding: 14px;
    box-sizing: border-box;
}

.site-search-results .simplesearch-results,
.site-search-results .simplesearch-paging {
    display: none;
}

.site-search-results a:hover {
    color: var(--color-red);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    flex-shrink: 0;
    padding: 48px 0 28px;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer__link {
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition: all .2s ease;
}

.footer__link:hover {
    color: var(--color-red);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--color-card-border);
}

.footer__copy {
    font-weight: 500;
    font-size: 10px;
    line-height: 20px;
}

.footer__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
}

.footer__contact:hover {
    color: var(--color-red);
}

.footer__dev {
    text-align: right;
    font-weight: 500;
    font-size: 10px;
    line-height: 20px;
}

.footer__dev a {
    text-decoration: underline;
}

.footer__dev a:hover {
    color: var(--color-red);
}

/* ============================================================
   Special
   ============================================================ */

.special .nav__burger {
    background: none !important;
}

.special .nav__burger--mobile span {
    background: var(--color-black) !important;
}

.special.special-color-2 .nav__burger--mobile span {
    filter: invert(1);
}

.special .news-card__link,
.special .hero__slider .splide__pagination,
.special .splide__pagination li,
.special input,
.special button {
    background: none !important;
}

.special .hero__slider .splide__pagination__page.is-active {
    background: var(--color-red)!important;
}

.special .form__checkbox:checked+.form__checkbox-view path,
.special.special-color-2 .form__checkbox+.form__checkbox-view path {
    stroke: #000000;
}

.special.special-color-2 .form__checkbox:checked+.form__checkbox-view path {
    stroke: #ffffff;
}

.special form button path {
    fill: #000000;
}

.special.special-color-2 form button path {
    fill: #ffffff;
}

/* ============================================================
   ADAPTIVE
   ============================================================ */
@media (max-width: 1199px) {
    .hero {
        grid-template-columns: 1fr 320px;
    }

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

    .header__gov {
        display: none;
    }

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

    .director__decore {
        display: none;
    }

    .aside {
        padding: 20px;
    }

    .footer__copy {
        flex: 1;
    }
}

@media (max-width: 991px) {
    .hero {
        grid-template-columns: 1fr;
    }

    /* --- Липкая компактная шапка --- */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
    }

    .header--sticky {
        box-shadow: 0 4px 20px rgba(15, 33, 69, .08);
    }

    .header__inner {
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 12px;
    }

    .logo {
        height: 48px;
    }

    /* Прячем «лишнее» в шапке */
    .header__gov,
    .header__contacts,
    .header__buttons {
        display: none !important;
    }

    /* header__menu НЕ скрываем — внутри лежит полноэкранное меню */
    .header__menu {
        display: block;
        padding: 0;
        position: static;
    }

    .header__menu::before {
        display: none;
    }

    .header__search {
        display: none !important;
    }

    /* Кнопки в компактной шапке */
    .header__vision-mini {
        display: inline-flex!important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 8px;
        background: var(--color-gray-light);
        color: var(--color-navy);
        cursor: pointer;
        margin-left: auto;
    }

    .header__vision-mini:hover {
        background: var(--color-navy);
        color: #fff;
    }

    .nav__burger--mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: none;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
    }

    .nav__burger--mobile span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: var(--color-navy);
        transition: transform .3s ease, opacity .3s ease;
    }

    .nav__burger--mobile.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav__burger--mobile.is-active span:nth-child(2) {
        opacity: 0;
    }

    .nav__burger--mobile.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* --- Полноэкранное меню --- */
    .nav {
        position: static;
        width: 100%;
    }

    .nav__inner {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        margin: 0;
        padding: 20px 20px 40px;
        background: #fff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        align-items: stretch;
        z-index: 95;
    }

    .header--menu-open .nav__inner {
        display: block;
    }

    /* Внутри меню — список как обычный поток */
    .nav__list {
        display: block;
        position: static;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav__item {
        position: static;
        z-index: auto;
        border-bottom: 1px solid var(--color-card-border);
    }

    .nav__link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 16px 4px;
        font-size: 15px;
    }

    /* --- Подменю на мобильных --- */
    .nav__dropdown {
        position: static;
        min-width: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: none;
    }

    .nav__item--dropdown.is-open .nav__dropdown {
        display: block;
        margin-bottom: 10px;
    }

    .nav__dropdown-list {
        padding: 0 0 0 12px;
        border: none;
        box-shadow: none;
        gap: 10px;
    }

    .nav__dropdown-link {
        font-size: 13px;
        padding: 6px 0;
    }

    /* --- Дополнительные блоки --- */
    .nav__extra {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        margin-top: 20px;
    }

    .nav__extra-search {
        display: flex;
        align-items: center;
        border: 1px solid #d4dbe8;
        border-radius: 8px;
        width: 100%;
        height: 46px;
        overflow: hidden;
    }

    .nav__extra-search input {
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        padding: 0 16px;
        font-family: inherit;
        font-size: 14px;
        color: var(--color-text);
        background: #fff;
    }

    .nav__extra-search button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        height: 100%;
        border: none;
        background: #fff;
        cursor: pointer;
    }

    .nav__extra-contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .nav__extra-contacts .header__contact {
        font-size: 15px;
    }

    .nav__extra-socials {
        display: flex;
        gap: 10px;
    }

    .nav__extra-socials .socials__item {
        width: 36px;
        height: 36px;
        background: var(--color-gray-light);
        border-radius: 50%;
    }

    .nav__extra-socials .socials__item svg {
        width: 36px;
        height: 36px;
    }

    .nav__extra-account {
        width: 100%;
        height: 50px;
        font-size: 15px;
    }

    .nav__extra-gov {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 16px;
        padding-top: 20px;
        border-top: 1px solid var(--color-card-border);
    }

    .nav__extra-gov .header__gov-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
    }

    .nav__extra-gov .header__gov-badge {
        height: 42px;
    }

    /* Оверлей */
    .page-overlay.active {
        z-index: 90;
    }

    body.menu-open {
        overflow: hidden;
    }

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

    .content__title {
        margin-right: 0;
    }

    .aside {
        order: 2;
        flex: none;
        max-width: 100%;
        min-width: auto;
    }
    
    .graduates__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .graduates-page {
        grid-template-columns: 1fr;
    }
    
    .partners__slide {
        padding: 0 15px;
        max-width: 25%;
    }
    
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 20px;
    }

    .footer__bottom {
        align-items: flex-start;
        gap: 20px;
        padding-top: 20px;
    }

    .footer__contact,
    .socials--footer {
        width: 100%;
    }

    .footer__dev,
    .footer__copy {
        order: 2;
        flex: 1;
    }

}

@media (max-width: 767px) {

    .features,
    .news__grid,
    .addresses__grid,
    .form__row {
        grid-template-columns: 1fr;
    }

    .header__right {
        align-items: flex-start;
    }

    .header__contacts {
        display: none;
    }
    
    .slider,
    .slide {
        min-height: 290px;
    }

    .slide__title {
        font-size: 28px;
    }

    .slide,
    .consult__card,
    .director__inner {
        padding: 28px;
    }
    
    .hero__slider .splide__pagination {
        display: none;
    }

    .section-head__title {
        font-size: 28px;
    }

    .stats__value {
        font-size: 34px;
    }

    .card {
        padding: 20px;
        min-height: 320px;
    }

    .card__decor {
        width: 156px;
        height: 156px;
    }

    .gosuslugi__inner {
        flex-direction: column;
        max-height: none;
        padding: 30px;
        gap: 0;
    }

    .gosuslugi__photo {
        position: relative;
        margin-bottom: -46px;
        z-index: 1;
    }

    .gosuslugi__photo:before {
        position: absolute;
        content: '';
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: linear-gradient(180deg, rgba(217, 217, 217, 0) 50%, rgba(242, 247, 253, 1) 100%);
    }

    .gosuslugi__btn {
        position: relative;
        z-index: 2;
    }

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

    .director__photo {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .director__actions {
        gap: 10px;
    }

    .director__actions .btn {
        flex: none;
        width: 100%;
    }

    .form__row {
        gap: 0;
    }

    .form__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .form__submit {
        width: 100%;
    }

    .addresses__item:nth-child(2),
    .addresses__item:nth-child(4) {
        order: inherit;
    }

    .document {
        gap: 14px;
    }

    .document__meta {
        flex-direction: column;
        gap: 8px;
    }

    .news__page .news-card {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .news__page .news-card__img {
        width: 100%;
    }
    
    .neighbors .news__next-link {
        width: 100%;
    }
    
    .graduates__grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .partners-page .content__title {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .partners__search {
        max-width: none;
    }
    
    .partners__item {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .partners__item-logo {
        height: 100px;
        justify-content: flex-start;
    }
    
    .partners__item-logo a {
        height: 100%;
    }
    
    .partners__item-logo img {
        width: 100%;
        max-width: 160px;
        height: 100%;
        object-fit: contain;
        object-position: left;
    }
    
    .partners__item-content {
        grid-column-start: auto;
    }
    
    .partners__slide {
        padding: 0 15px;
        max-width: 50%;
    }

    .footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer__dev {
        text-align: left;
    }
}

@media (max-width: 469px) {
    
    .partners__slide {
        padding: 0 7px;
        max-width: 100%;
    }
    
}