/* ==================== БАЗОВЫЕ НАСТРОЙКИ ==================== */
:root {
    --color-primary: #1a3a6b;
    --color-primary-light: #2a5aa0;
    --color-accent: #7ec8a9;
    --color-accent-hover: #5eb392;
    --color-accent-light: #e3f4ec;
    --color-blue-soft: #7cb8e8;
    --color-blue-light: #e8f2fb;
    --color-neon: #00D7FF;
    --color-bg-light: #f4f8fc;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --font-family: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    background-image: linear-gradient(135deg, rgba(124, 184, 232, 0.04) 0%, rgba(126, 200, 169, 0.04) 100%);
    min-height: 100vh;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ==================== КНОПКИ ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-family: inherit;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(126, 200, 169, 0.35);
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ==================== ХЕДЕР ==================== */
.header {
    background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 35%, #7fb0dd 70%, #2a5aa0 100%);
    padding: 14px 0 18px;
    position: relative;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo__img {
    height: 58px;
    width: auto;
}

.logo__text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.header__contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    text-align: center;
}

.header__phone {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 17px;
}

.header__email {
    color: var(--color-primary);
    opacity: 0.85;
}

.header__btn {
    padding: 11px 26px;
    font-size: 15px;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== МЕНЮ (ИДЕАЛЬНО РОВНОЕ) ==================== */
.main-nav {
    background-color: var(--color-primary);
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-nav__list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    width: 100%;
}

.main-nav__item {
    position: relative;
    display: flex;
    flex: 1 1 auto; /* Разрешаем растягиваться, но не сжиматься сильнее текста */
}

.main-nav__item > .main-nav__link {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 15px 10px; /* Вернули нормальные отступы */
}
.main-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    border-right: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.main-nav__link:hover {
    background-color: rgba(255,255,255,0.12);
}

.dropdown-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition);
    opacity: 0.75;
    flex-shrink: 0;
}

.main-nav__item--has-dropdown:hover .dropdown-arrow {
    transform: rotate(225deg) translateY(-2px);
    opacity: 1;
}

/* Обычное выпадающее меню (десктоп) */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 250px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-top: 3px solid var(--color-accent);
    z-index: 1000;
}

.main-nav__item--has-dropdown:hover .dropdown {
    display: block;
}

.dropdown__link {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown__link:hover {
    background-color: var(--color-blue-light);
    color: var(--color-primary);
}

/* Мега-меню (десктоп) */
.dropdown--mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    padding: 26px 30px;
    border-top: 3px solid var(--color-accent);
    z-index: 1000;
    gap: 36px;
    grid-template-columns: 1fr 1fr 1fr;
    min-width: 900px;
}

.main-nav__item--has-dropdown:hover .dropdown--mega {
    display: grid;
}

.mega-col__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-accent-hover);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(124, 184, 232, 0.25);
    line-height: 1.35;
}

.mega-col__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col__list li {
    margin-bottom: 2px;
}
.mega-col__list li:last-child {
    margin-bottom: 0;
}

.mega-col .dropdown__link {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.4;
    transition: var(--transition);
}

.mega-col .dropdown__link:hover {
    background-color: var(--color-blue-light);
    color: var(--color-primary);
}

/* Заголовки групп в «Сведениях об организации» — на десктопе скрыты */
.dropdown-group__title,
.dropdown-group__arrow {
    display: none;
}

.dropdown--grouped .dropdown-group__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==================== МОБИЛЬНОЕ МЕНЮ ==================== */
@media (max-width: 768px) {
    .header {
        padding: 10px 0 14px;
    }
    .header__contacts,
    .header__btn {
        display: none;
    }
    .logo__img {
        height: 44px;
    }
    .mobile-nav-toggle {
        display: flex;
    }

    /* Сброс десктопных растяжений для мобилок */
    .main-nav__item {
        flex: 0 0 auto;
        display: block;
        width: 100%;
    }
    .main-nav__item > .main-nav__link {
        flex: 0 0 auto;
        justify-content: space-between;
        padding: 12px 20px;
        width: 100%;
    }

    .main-nav__list {
        flex-direction: column;
        display: none;
        width: 100%;
        justify-content: flex-start;
    }
    .main-nav__list.active {
        display: flex;
    }
    .main-nav__link {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        white-space: normal;
        display: flex;
    }

    /* Обычное подменю */
    .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background-color: rgba(0,0,0,0.2);
        padding-left: 20px;
        min-width: 0;
    }
    .main-nav__item--open > .dropdown {
        display: block;
    }
    .dropdown__link {
        color: rgba(255,255,255,0.8);
        padding: 8px 20px;
    }
    .dropdown__link:hover {
        background-color: transparent;
        color: var(--color-white);
    }

    /* Мега-меню */
    .dropdown--mega {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background-color: rgba(0,0,0,0.2);
        padding: 10px 20px 16px;
        min-width: 0;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .main-nav__item--open > .dropdown--mega {
        display: grid;
        grid-template-columns: 1fr;
    }
    .mega-col__title {
        color: rgba(255,255,255,0.6);
        border-bottom-color: rgba(255,255,255,0.15);
    }
    .mega-col .dropdown__link {
        color: rgba(255,255,255,0.85);
        padding: 8px 12px;
    }
    .mega-col .dropdown__link:hover {
        background-color: transparent;
        color: var(--color-white);
    }

    /* Группы в «Сведениях об организации» */
    .dropdown--grouped {
        padding: 0;
        background-color: rgba(0, 0, 0, 0.2);
    }
    .dropdown--grouped .dropdown-group {
        list-style: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .dropdown--grouped .dropdown-group:last-child {
        border-bottom: none;
    }

    .dropdown-group__title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        font-size: 14px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        cursor: pointer;
        user-select: none;
        transition: background-color 0.2s ease;
    }
    .dropdown-group__title:hover,
    .dropdown-group__title:focus {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .dropdown-group__arrow {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.25s ease;
        opacity: 0.7;
        flex-shrink: 0;
    }

    .dropdown--grouped .dropdown-group__list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .dropdown-group.is-open .dropdown-group__list {
        max-height: 600px;
    }
    .dropdown-group.is-open .dropdown-group__arrow {
        transform: rotate(225deg) translateY(-2px);
        opacity: 1;
    }

    .dropdown--grouped .dropdown-group__list .dropdown__link {
        padding: 10px 20px 10px 36px;
        font-size: 13.5px;
        color: rgba(255, 255, 255, 0.8);
    }
    .dropdown--grouped .dropdown-group__list .dropdown__link:hover {
        background-color: transparent;
        color: var(--color-white);
    }

    .main-nav__item--open > .main-nav__link .dropdown-arrow {
        transform: rotate(225deg) translateY(-2px);
    }
}

/* ==================== СЛАЙДЕР ==================== */
.slider {
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5aa0 50%, #3d7cc9 100%);
    color: var(--color-white);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.slider__container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 620px;
}

.slide {
    display: none;
    position: relative;
    padding: 70px 40px 90px;
    min-height: 620px;
    animation: fadeIn 0.6s ease;
}

.slide--active {
    display: flex;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.slide__inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

.slide__inner--center {
    text-align: center;
}

.slide__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    color: var(--color-white);
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.slide__text {
    font-size: 19px;
    max-width: 750px;
    margin: 0 auto 35px;
    opacity: 0.95;
    line-height: 1.6;
}

.slide__list--inline {
    list-style: none;
    padding: 0;
    margin: 0 auto 35px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
}

.slide__list--inline li {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 15px;
    backdrop-filter: blur(4px);
}

.slide__compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 45px;
}

.compare__column {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 28px;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.compare__column--theory {
    border-left: 4px solid #8a94a6;
}

.compare__column--practice {
    border-left: 4px solid var(--color-accent);
    background: rgba(126, 200, 169, 0.12);
    border-color: rgba(126, 200, 169, 0.4);
}

.compare__column:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.compare__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0.75;
}

.compare__column--practice .compare__label {
    color: var(--color-accent);
    opacity: 1;
}

.compare__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.compare__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.compare__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.compare__column--practice .compare__list li::before {
    background: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(126, 200, 169, 0.2);
}

.compare__note {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.75;
    font-style: italic;
    margin: 0;
}

.compare__divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare__vs {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.9;
}

.slide__conclusion {
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.slide__conclusion strong {
    color: var(--color-accent);
    font-weight: 700;
}

.slide__cta {
    display: block;
    margin: 0 auto;
    width: fit-content;
    padding: 16px 45px;
    font-size: 16px;
}

.slider__dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider__dot--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.2);
}

.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}

.slider__arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.slider__arrow--prev { left: 15px; }
.slider__arrow--next { right: 15px; }

/* ==================== СЕКЦИИ ==================== */
.section {
    padding: 80px 0;
}

.section__head {
    margin-bottom: 50px;
}

.section__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 10px;
}

.section__title {
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0;
    color: var(--color-primary);
}

.section__title--left {
    text-align: left;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    margin: 14px auto 0;
    border-radius: 2px;
}

.section__title--left::after {
    margin-left: 0;
    margin-right: auto;
}

.section > .container > .section__title {
    margin-bottom: 50px;
}

/* ==================== НАПРАВЛЕНИЯ ==================== */
.directions {
    position: relative;
    background-color: var(--color-blue-light);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(126, 200, 169, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(124, 184, 232, 0.15) 0%, transparent 45%);
    overflow: hidden;
}

.directions::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 1000' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0%25' y1='0%25' x2='0%25' y2='100%25'><stop offset='0%25' stop-color='%2300D7FF' stop-opacity='0'/><stop offset='50%25' stop-color='%2300D7FF' stop-opacity='0.55'/><stop offset='100%25' stop-color='%2300D7FF' stop-opacity='0'/></linearGradient></defs><path d='M100 0 C 300 250, 100 500, 300 750 S 500 900, 300 1000' stroke='url(%23g)' stroke-width='3' fill='none'/><path d='M300 0 C 500 250, 300 500, 500 750 S 700 900, 500 1000' stroke='url(%23g)' stroke-width='2.5' fill='none'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.directions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.direction-card {
    position: relative;
    background: var(--color-white);
    padding: 32px 28px 60px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.06);
    transition: var(--transition);
    border: 1px solid rgba(124, 184, 232, 0.15);
    overflow: hidden;
    display: block;
}

.direction-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    transition: height 0.35s ease;
}

.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(26, 58, 107, 0.12);
    border-color: rgba(126, 200, 169, 0.4);
}

.direction-card:hover::before {
    height: 100%;
}

.direction-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 22px;
    transition: var(--transition);
}

.direction-card:hover .direction-card__icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    transform: scale(1.08) rotate(-3deg);
}

.direction-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.35;
}

.direction-card__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.direction-card__arrow {
    position: absolute;
    right: 28px;
    bottom: 24px;
    font-size: 22px;
    color: var(--color-accent-hover);
    transition: var(--transition);
    opacity: 0.6;
}

.direction-card:hover .direction-card__arrow {
    opacity: 1;
    transform: translateX(6px);
}

/* ==================== ФОРМАТЫ ==================== */
.section__head--formats {
    margin-top: 70px;
    position: relative;
    z-index: 1;
}

.formats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.formats__grid--three {
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    z-index: 1;
}

.format-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 32px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #eaf3fb 100%);
    border: 1px solid rgba(124, 184, 232, 0.25);
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.06);
    transition: var(--transition);
    overflow: hidden;
}

.format-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
}

.format-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 58, 107, 0.12);
    border-color: rgba(126, 200, 169, 0.5);
}

.format-card__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.format-card__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.format-card__arrow {
    flex-shrink: 0;
    font-size: 28px;
    color: var(--color-accent-hover);
    transition: var(--transition);
    opacity: 0.7;
}

.format-card:hover .format-card__arrow {
    opacity: 1;
    transform: translateX(8px);
}

/* ==================== ДОКУМЕНТЫ ==================== */
.documents {
    position: relative;
    overflow: hidden;
}

.documents__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.documents__grid--four {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.document-card__image {
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 184, 232, 0.25);
    padding: 12px;
    transition: var(--transition);
}

.document-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.document-card:hover .document-card__image {
    box-shadow: 0 12px 30px rgba(26, 58, 107, 0.12);
    border-color: rgba(126, 200, 169, 0.4);
}

.document-card p {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 15px;
    line-height: 1.5;
}

/* ==================== ПРЕИМУЩЕСТВА ==================== */
.advantages {
    position: relative;
    overflow: hidden;
    background-color: var(--color-accent-light);
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'><defs><linearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='0%25'><stop offset='0%25' stop-color='%2300D7FF' stop-opacity='0'/><stop offset='50%25' stop-color='%2300D7FF' stop-opacity='0.5'/><stop offset='100%25' stop-color='%2300D7FF' stop-opacity='0'/></linearGradient></defs><path d='M-50 100 C 200 250, 400 400, 650 350 S 1100 200, 1250 400' stroke='url(%23g1)' stroke-width='3' fill='none'/><path d='M-50 300 C 250 450, 500 550, 750 500 S 1150 350, 1250 550' stroke='url(%23g1)' stroke-width='2.5' fill='none'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.advantages::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 1000' preserveAspectRatio='none'><defs><linearGradient id='g2' x1='0%25' y1='0%25' x2='0%25' y2='100%25'><stop offset='0%25' stop-color='%2300D7FF' stop-opacity='0'/><stop offset='50%25' stop-color='%2300D7FF' stop-opacity='0.45'/><stop offset='100%25' stop-color='%2300D7FF' stop-opacity='0'/></linearGradient></defs><path d='M500 0 C 300 250, 500 500, 300 750 S 500 900, 300 1000' stroke='url(%23g2)' stroke-width='3' fill='none'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantages__grid--five {
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    position: relative;
    z-index: 1;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background-color: var(--color-white);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advantage-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(26, 58, 107, 0.1);
}

.advantage-item__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    margin-bottom: 18px;
    transition: var(--transition);
}

.advantage-item:hover .advantage-item__icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 10px 20px rgba(126, 200, 169, 0.35);
}

.advantage-item h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.35;
}

.advantage-item p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* ==================== ДЕКОР ==================== */
.decor {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.decor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.decor--documents {
    top: 50%;
    left: 0;
    right: 0;
    height: 400px;
    transform: translateY(-50%);
    animation: decorFloat 14s ease-in-out infinite;
}

@keyframes decorFloat {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(-50%) translateX(20px); }
}

.directions .container,
.advantages .container,
.documents .container {
    position: relative;
    z-index: 1;
}

/* ==================== ФОРМА ==================== */
.callback {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}

.callback .section__title {
    color: var(--color-white);
    margin-bottom: 20px;
}
.callback .section__title::after {
    background: var(--color-accent);
}

.callback__subtitle {
    text-align: center;
    font-size: 17px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.callback__form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.callback__form input,
.callback__form textarea {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.callback__form .btn {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    padding: 15px;
}

.callback__form .btn:hover {
    background-color: var(--color-accent-hover);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* ==================== ФУТЕР ==================== */
.footer {
    background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 10%, #7fb0dd 35%, #2a5aa0 75%, #1a3a6b 100%);
    color: var(--color-white);
    padding: 60px 0 50px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr;
    gap: 50px;
    align-items: start;
}

.footer__logo {
    display: inline-block;
    align-self: flex-start;
    transition: var(--transition);
    margin-bottom: 16px;
}

.footer__logo:hover {
    transform: translateY(-2px);
}

.footer__logo img {
    display: block;
    height: 56px;
    width: auto;
}

.footer__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer h4,
.footer__map-title {
    color: var(--color-primary);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 4px;
}

.footer p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.footer strong {
    color: var(--color-white);
    font-weight: 700;
}

.footer a {
    color: var(--color-white);
    transition: var(--transition);
    font-weight: 500;
}

.footer a:hover {
    color: var(--color-accent);
}

.footer__map-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__map-title {
    margin-bottom: 0;
}

.footer__map {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background: var(--color-white);
    border: 3px solid var(--color-white);
}

.footer__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==================== ВНУТРЕННЯЯ СТРАНИЦА ==================== */
.main-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.page-title-bar {
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5aa0 50%, #3d7cc9 100%);
    color: var(--color-white);
    padding: 60px 0 50px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.page-title-bar .container {
    position: relative;
    z-index: 1;
}

.page-title-bar__heading {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 900px;
    color: var(--color-white);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-top: 32px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--color-white);
}

.breadcrumbs__sep {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs__current {
    color: var(--color-white);
    font-weight: 600;
}

/* ==================== ИНФОРМАЦИОННЫЕ БЛОКИ ==================== */
.info-page {
    position: relative;
    background: var(--color-white);
    padding: 60px 0 80px;
    flex: 1;
    overflow: hidden;
}

.info-page > .container {
    position: relative;
    z-index: 1;
}

.info-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 215, 255, 0.22) 0%, rgba(0, 215, 255, 0.08) 45%, transparent 72%);
    border: 3px solid rgba(0, 215, 255, 0.45);
    pointer-events: none;
    z-index: 0;
}

.info-page::after {
    content: '';
    position: absolute;
    bottom: -240px;
    left: -200px;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(94, 179, 146, 0.28) 0%, rgba(94, 179, 146, 0.1) 48%, transparent 72%);
    border: 3px solid rgba(94, 179, 146, 0.5);
    pointer-events: none;
    z-index: 0;
}

.info-block {
    position: relative;
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.25);
    border-left: 4px solid var(--color-accent);
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.05);
    transition: var(--transition);
}

.program-cards + .info-block {
    margin-top: 40px;
}

.info-block:hover {
    box-shadow: 0 15px 35px rgba(26, 58, 107, 0.1);
    border-left-color: var(--color-accent-hover);
    transform: translateY(-3px);
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block--accent {
    background: linear-gradient(135deg, #eef7ff 0%, #e3f4ec 100%);
    border-color: rgba(126, 200, 169, 0.35);
}

.info-block--accent .info-block__icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
}

.info-block__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 16px;
    transition: var(--transition);
}

.info-block:hover .info-block__icon {
    transform: scale(1.06) rotate(-4deg);
}

.info-block__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.info-block p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block a {
    color: var(--color-primary);
    transition: var(--transition);
    border-bottom: 1px solid rgba(26, 58, 107, 0.2);
}

.info-block a:hover {
    color: var(--color-accent-hover);
    border-bottom-color: var(--color-accent);
}

/* ==================== СПИСОК С МАРКЕРАМИ ==================== */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.info-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
}

.info-list li:last-child {
    margin-bottom: 0;
}

.main-bottom-stripe {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #1a3a6b 0%, #2a5aa0 30%, #3d7cc9 70%, #7fb0dd 100%);
}

/* ==================== СПИСОК ДОКУМЕНТОВ ==================== */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-list li {
    margin-bottom: 12px;
}

.doc-list li:last-child {
    margin-bottom: 0;
}

.doc-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--color-blue-light);
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: var(--transition);
    border: 1px solid transparent;
}

.doc-list a:hover {
    background: var(--color-white);
    border-color: var(--color-accent);
    color: var(--color-accent-hover);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(26, 58, 107, 0.08);
}

.doc-list__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.doc-list a:hover .doc-list__icon {
    transform: scale(1.08) rotate(-4deg);
}

/* ==================== АККОРДЕОН ПЕДАГОГОВ ==================== */
.teachers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.teacher {
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.25);
    border-left: 4px solid var(--color-accent);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.teacher:hover {
    box-shadow: 0 12px 30px rgba(26, 58, 107, 0.1);
    border-left-color: var(--color-accent-hover);
}

.teacher__header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.teacher__header:hover {
    background: rgba(126, 200, 169, 0.05);
}

.teacher__avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(126, 200, 169, 0.3);
}

.teacher__title {
    flex: 1;
    min-width: 0;
}

.teacher__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.teacher__position {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.4;
}

.teacher__toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-blue-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.teacher__toggle::before,
.teacher__toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

.teacher__toggle::before {
    width: 14px;
    height: 2px;
}

.teacher__toggle::after {
    width: 2px;
    height: 14px;
}

.teacher--open .teacher__toggle {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    transform: rotate(180deg);
}

.teacher--open .teacher__toggle::after {
    transform: scaleY(0);
}

.teacher__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.teacher--open .teacher__body {
    max-height: 5000px;
}

.teacher__content {
    padding: 0 26px 26px 26px;
    border-top: 1px solid rgba(124, 184, 232, 0.2);
    padding-top: 24px;
}

.teacher__section {
    margin-bottom: 22px;
}

.teacher__section:last-child {
    margin-bottom: 0;
}

.teacher__section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-accent-hover);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher__section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

.teacher__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: edu-counter;
}

.teacher__list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-text);
    counter-increment: edu-counter;
}

.teacher__list li::before {
    content: counter(edu-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    color: var(--color-accent-hover);
    font-weight: 700;
    font-size: 14px;
}

.teacher__list li:last-child {
    margin-bottom: 0;
}

.teacher__text {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 10px;
}

.teacher__text:last-child {
    margin-bottom: 0;
}

.teacher__text strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* ==================== СТРАНИЦА НАПРАВЛЕНИЯ ==================== */
.direction-hero {
    position: relative;
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5aa0 50%, #3d7cc9 100%);
    color: var(--color-white);
    padding: 60px 0 50px;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.direction-hero > .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.direction-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.direction-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(126, 200, 169, 0.25);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.direction-hero__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 900px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.direction-hero__subtitle {
    font-size: 17px;
    opacity: 0.9;
    margin-top: 14px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== ПАРАМЕТРЫ ==================== */
.params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.param-card {
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.25);
    border-radius: 14px;
    padding: 24px 22px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.05);
    transition: var(--transition);
}

.param-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(26, 58, 107, 0.1);
    border-color: rgba(126, 200, 169, 0.4);
}

.param-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin: 0 auto 14px;
}

.param-card__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent-hover);
    font-weight: 700;
    margin-bottom: 8px;
}

.param-card__value {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.5;
}

/* ==================== ТАБЛИЦА ==================== */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 15px;
}

.schedule-table th {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-blue-light) 100%);
    color: var(--color-primary);
    font-weight: 700;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(124, 184, 232, 0.3);
}

.schedule-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(124, 184, 232, 0.15);
    color: var(--color-text);
    vertical-align: top;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover td {
    background: rgba(126, 200, 169, 0.05);
}

.schedule-table__num {
    white-space: nowrap;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}

/* ==================== КНОПКА ВОЗВРАТА ==================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    background: var(--color-blue-light);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    margin-top: 30px;
}

.back-link:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateX(-4px);
}

.back-link::before {
    content: '←';
    font-size: 18px;
}

/* ==================== СЕТКА ПРОГРАММ ==================== */
.program-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.program-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 26px;
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.25);
    border-left: 4px solid var(--color-accent);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.05);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 58, 107, 0.12);
    border-left-color: var(--color-accent-hover);
    border-color: rgba(126, 200, 169, 0.4);
}

.program-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: var(--transition);
}

.program-card:hover .program-card__icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    transform: scale(1.08) rotate(-4deg);
}

.program-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
    margin: 0;
}

.program-card__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.program-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent-hover);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    transition: var(--transition);
}

.program-card__link::after {
    content: '→';
    transition: var(--transition);
}

.program-card:hover .program-card__link {
    color: var(--color-primary);
}

.program-card:hover .program-card__link::after {
    transform: translateX(6px);
}

/* ==================== КНОПКА "ЗАПРОС НА ОБУЧЕНИЕ" ==================== */
.cta-block {
    text-align: center;
    padding: 40px 0 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    font-weight: 700;
    font-size: 17px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 10px 25px rgba(126, 200, 169, 0.35);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(126, 200, 169, 0.5);
}

.cta-btn svg {
    flex-shrink: 0;
}

/* ==================== МОДАЛЬНОЕ ОКНО ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 53, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay--open {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal {
    position: relative;
    background: var(--color-white);
    border-radius: 18px;
    padding: 36px 36px 32px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.35s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-blue-light);
    color: var(--color-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: var(--transition);
    font-family: inherit;
}

.modal__close:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: rotate(90deg);
}

.modal__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    padding-right: 40px;
}

.modal__subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.3px;
}

.modal__field input,
.modal__field select,
.modal__field textarea {
    padding: 13px 16px;
    border: 1.5px solid rgba(124, 184, 232, 0.35);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    transition: var(--transition);
    background: var(--color-white);
    width: 100%;
}

.modal__field input:focus,
.modal__field select:focus,
.modal__field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(126, 200, 169, 0.15);
}

.modal__field textarea {
    resize: vertical;
    min-height: 80px;
}

.modal__field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a3a6b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.modal__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    cursor: pointer;
}

.modal__checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-accent);
    width: auto;
    padding: 0;
}

.modal__submit {
    padding: 15px 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    margin-top: 6px;
}

.modal__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(126, 200, 169, 0.4);
}

.stand-photo {
    max-width: 560px;
    margin: 24px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(26, 58, 107, 0.15);
}

.stand-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.stand-photo__caption {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
    padding: 12px 16px;
    background: var(--color-blue-light);
    font-style: italic;
}

/* ==================== ПОЯСНЕНИЯ ПОД ЗАГОЛОВКАМИ ==================== */
.section__lead {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 720px;
    margin-top: 14px;
}

.section__title--left + .section__lead {
    margin-left: 0;
    margin-right: auto;
}

/* ==================== ЗАГОЛОВОК ГРУППЫ ПРОГРАММ ==================== */
.group-head {
    margin: 40px 0 24px;
}

.group-head__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0;
}

.group-head .section__eyebrow {
    margin-bottom: 8px;
}

/* ==================== ПОИСК ПО ПРОГРАММАМ ==================== */
.program-search {
    margin: 0 0 24px;
}

.program-search__inner {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.35);
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.06);
    transition: var(--transition);
}

.program-search__inner:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(126, 200, 169, 0.25);
}

.program-search__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-hover);
    margin-right: 12px;
}

.program-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    color: var(--color-text);
    padding: 14px 10px 14px 0;
}

.program-search__input::placeholder {
    color: var(--color-text-light);
    opacity: 0.85;
    font-style: italic;
    font-size: 15px;
}

.program-search__clear {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-blue-light);
    color: var(--color-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: var(--transition);
    font-family: inherit;
    opacity: 0;
    pointer-events: none;
}

.program-search__clear.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.program-search__clear:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: rotate(90deg);
}

.program-search__result {
    margin-top: 22px;
    padding: 24px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef7ff 0%, #e3f4ec 100%);
    border: 1px solid rgba(126, 200, 169, 0.35);
    text-align: center;
}

.program-search__result-text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 20px;
}

.program-search__result-actions {
    display: flex;
    justify-content: center;
}

.program-card.is-hidden,
.group-head.is-hidden {
    display: none !important;
}

/* ==================== FAQ ==================== */
.faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.faq__item {
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.25);
    border-left: 4px solid var(--color-accent);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.faq__item:hover {
    box-shadow: 0 12px 30px rgba(26, 58, 107, 0.1);
    border-left-color: var(--color-accent-hover);
}

.faq__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.faq__header:hover {
    background: rgba(126, 200, 169, 0.05);
}

.faq__question {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
}

.faq__toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-blue-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.faq__toggle::before,
.faq__toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

.faq__toggle::before {
    width: 14px;
    height: 2px;
}

.faq__toggle::after {
    width: 2px;
    height: 14px;
}

.faq__item--open .faq__toggle {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    transform: rotate(180deg);
}

.faq__item--open .faq__toggle::after {
    transform: scaleY(0);
}

.faq__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq__item--open .faq__body {
    max-height: 5000px;
}

.faq__content {
    padding: 0 26px 26px 26px;
    border-top: 1px solid rgba(124, 184, 232, 0.2);
    padding-top: 24px;
}

.faq__content p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 14px;
}

.faq__content p:last-child {
    margin-bottom: 0;
}

.faq__content .info-list {
    margin-bottom: 14px;
}

.faq__content a {
    color: var(--color-primary);
    border-bottom: 1px solid rgba(26, 58, 107, 0.2);
    transition: var(--transition);
}

.faq__content a:hover {
    color: var(--color-accent-hover);
    border-bottom-color: var(--color-accent);
}

.faq__cta {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

/* ==================== НОВОСТИ ==================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.news-card {
    display: flex;
    gap: 26px;
    padding: 28px 30px;
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.25);
    border-left: 4px solid var(--color-accent);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.05);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(26, 58, 107, 0.1);
    border-left-color: var(--color-accent-hover);
}

.news-card__date {
    flex-shrink: 0;
    width: 90px;
    text-align: center;
    padding-top: 6px;
    border-right: 1px solid rgba(124, 184, 232, 0.2);
    padding-right: 24px;
    align-self: flex-start;
}

.news-card__day {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.news-card__month {
    display: block;
    font-size: 13px;
    color: var(--color-accent-hover);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.news-card__body {
    flex: 1;
    min-width: 0;
}

.news-card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.news-card__title a {
    color: var(--color-primary);
    transition: var(--transition);
}

.news-card__title a:hover {
    color: var(--color-accent-hover);
}

.news-card__excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 14px;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent-hover);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.news-card__link:hover {
    color: var(--color-primary);
}

.news-years {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 24px;
    background: var(--color-blue-light);
    border-radius: 14px;
    margin-bottom: 20px;
}

.news-years__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 4px;
}

.news-years__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.news-years__link:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* ==================== СТРАНИЦА О НАС ==================== */
.about-page {
    position: relative;
    overflow: hidden;
}

.about-page .container {
    position: relative;
    z-index: 1;
}

.about-page::before,
.about-page::after {
    display: none;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 10px 0 40px;
    position: relative;
    z-index: 1;
    align-items: stretch; /* Растягивает все плитки по высоте */
}

.stat-card {
    position: relative;
    text-align: center;
    padding: 34px 22px;
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.25);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.05);
    transition: var(--transition);
    overflow: hidden;
    
    /* Жесткое центрирование контента по вертикали и горизонтали */
    display: grid;
    place-content: center;
    height: 100%; 
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 58, 107, 0.12);
    border-color: rgba(126, 200, 169, 0.4);
}

.stat-card__value {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-primary);
}

.stat-card__label {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.about-formats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

.about-format {
    padding: 28px 24px;
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.25);
    border-left: 4px solid var(--color-accent);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.05);
    transition: var(--transition);
}

.about-format:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(26, 58, 107, 0.1);
    border-left-color: var(--color-accent-hover);
    border-color: rgba(126, 200, 169, 0.4);
}

.about-format__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 16px;
    transition: var(--transition);
}

.about-format:hover .about-format__icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    transform: scale(1.08) rotate(-4deg);
}

.about-format__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.35;
}

.about-format__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.about-cta-section {
    position: relative;
    overflow: hidden;
}

.about-cta-section .container {
    position: relative;
    z-index: 1;
}

/* ==================== КОНТАКТЫ ==================== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

.contacts-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px;
    background: var(--color-white);
    border: 1px solid rgba(124, 184, 232, 0.25);
    border-left: 4px solid var(--color-accent);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(26, 58, 107, 0.05);
    transition: var(--transition);
}

.contacts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(26, 58, 107, 0.1);
    border-left-color: var(--color-accent-hover);
    border-color: rgba(126, 200, 169, 0.4);
}

.contacts-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: var(--transition);
}

.contacts-card:hover .contacts-card__icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    transform: scale(1.08) rotate(-4deg);
}

.contacts-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0;
}

.contacts-card__text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0;
}

.contacts-card__text a {
    color: var(--color-primary);
    border-bottom: 1px solid rgba(26, 58, 107, 0.2);
    transition: var(--transition);
}

.contacts-card__text a:hover {
    color: var(--color-accent-hover);
    border-bottom-color: var(--color-accent);
}

.contacts-map {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(26, 58, 107, 0.15);
    margin-bottom: 24px;
    border: 3px solid var(--color-white);
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==================== АДАПТИВ (не про меню) ==================== */
@media (max-width: 1100px) {
    .main-nav__item > .main-nav__link {
        padding: 15px 8px;
    }
    .main-nav__link {
        font-size: 14px;
    }
    .advantages__grid--five {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .slider__container,
    .slide {
        min-height: auto;
    }
    .documents__grid--four {
        grid-template-columns: repeat(2, 1fr);
    }
    .formats__grid--three {
        grid-template-columns: 1fr 1fr;
    }
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer__map-wrap {
        grid-column: 1 / -1;
    }
    .footer__map {
        height: 340px;
    }
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-formats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .slide { padding: 50px 20px 80px; }
    .slide__title { font-size: 26px; margin-bottom: 35px; }
    .slide__text { font-size: 16px; }
    .slide__conclusion { font-size: 15px; }

    .slide__compare {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .compare__vs { font-size: 32px; }
    .slider__arrow { display: none; }

    .params-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .program-cards {
        grid-template-columns: 1fr;
    }
    .direction-hero__title {
        font-size: 26px;
    }
    .schedule-table {
        font-size: 14px;
    }
    .schedule-table th,
    .schedule-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .section { padding: 55px 0; }
    .section__title { font-size: 24px; }
    .section__head { margin-bottom: 35px; }
    .section__head--formats { margin-top: 50px; }

    .directions__grid { grid-template-columns: 1fr 1fr; }
    .formats__grid,
    .formats__grid--three { grid-template-columns: 1fr; }

    .advantages__grid--five {
        grid-template-columns: repeat(2, 1fr);
    }

    .decor--documents,
    .directions::after,
    .advantages::after {
        display: none;
    }
    .advantages::before {
        opacity: 0.4;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    .footer__logo {
        align-self: center;
    }
    .footer__info,
    .footer__contacts {
        align-items: center;
    }
    .footer__map {
        height: 300px;
    }

    .page-title-bar {
        padding: 40px 0 30px;
    }
    .page-title-bar__heading {
        font-size: 26px;
    }
    .breadcrumbs {
        font-size: 12px;
        margin-top: 20px;
    }
    .info-page {
        padding: 45px 0 55px;
    }
    .info-block {
        padding: 22px 22px;
        margin-bottom: 18px;
    }
    .info-block__icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }
    .info-block__title {
        font-size: 18px;
        margin-bottom: 14px;
    }
    .info-block p,
    .info-list li {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .teacher__header {
        padding: 18px 20px;
        gap: 14px;
    }
    .teacher__avatar {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    .teacher__name {
        font-size: 16px;
    }
    .teacher__position {
        font-size: 13px;
    }
    .teacher__toggle {
        width: 32px;
        height: 32px;
    }
    .teacher__content {
        padding: 0 20px 22px 20px;
        padding-top: 20px;
    }

    .modal {
        padding: 28px 22px 24px;
    }
    .modal__title {
        font-size: 19px;
    }
    .cta-btn {
        padding: 16px 30px;
        font-size: 15px;
    }

    .faq__header {
        padding: 18px 20px;
        gap: 14px;
    }
    .faq__question {
        font-size: 15.5px;
    }
    .faq__toggle {
        width: 32px;
        height: 32px;
    }
    .faq__content {
        padding: 0 20px 22px 20px;
        padding-top: 20px;
    }
    .faq__content p {
        font-size: 14.5px;
    }

    .news-card {
        flex-direction: column;
        gap: 16px;
        padding: 22px 22px;
    }
    .news-card__date {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(124, 184, 232, 0.2);
        padding-right: 0;
        padding-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }
    .news-card__day {
        font-size: 24px;
        margin-bottom: 0;
    }
    .news-card__month {
        font-size: 12px;
    }
    .news-card__title {
        font-size: 17px;
    }
    .news-card__excerpt {
        font-size: 14.5px;
    }

    .program-search__inner {
        padding: 4px 4px 4px 14px;
    }
    .program-search__input {
        font-size: 15px;
        padding: 12px 8px 12px 0;
    }
    .program-search__input::placeholder {
        font-size: 13.5px;
    }
    .program-search__clear {
        width: 36px;
        height: 36px;
    }
    .program-search__result {
        padding: 20px 20px;
        text-align: left;
    }
    .program-search__result-text {
        font-size: 14.5px;
    }

    .group-head {
        margin: 32px 0 18px;
    }
    .group-head__title {
        font-size: 20px;
    }

    .section__lead {
        font-size: 14px;
        max-width: 100%;
    }

    .stat-card__value {
        font-size: 34px;
    }
    .stat-card {
        padding: 26px 18px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contacts-map {
        height: 360px;
    }
}

@media (max-width: 600px) {
    .about-formats {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .stat-card__value {
        font-size: 30px;
    }
    .about-format {
        padding: 22px 20px;
    }
}

@media (max-width: 500px) {
    .slide { padding: 40px 15px 70px; }
    .slide__title { font-size: 20px; }
    .compare__column { padding: 22px 20px; }
    .compare__list li { font-size: 14px; }
    .slide__conclusion { font-size: 14px; }
    .slide__cta { padding: 14px 30px; font-size: 14px; }

    .directions__grid {
        grid-template-columns: 1fr;
    }
    .documents__grid,
    .documents__grid--four {
        grid-template-columns: 1fr;
    }
    .advantages__grid--five {
        grid-template-columns: 1fr;
    }
    .direction-card {
        padding: 26px 22px 56px;
    }
    .format-card {
        padding: 26px 24px;
    }
    .format-card__title {
        font-size: 17px;
    }
    .format-card__arrow {
        font-size: 22px;
    }
    .callback__form input,
    .callback__form textarea {
        font-size: 14px;
        padding: 12px;
    }

    .footer {
        padding: 40px 0 30px;
    }
    .footer__logo img {
        height: 46px;
    }
    .footer__map {
        height: 250px;
    }

    .page-title-bar {
        padding: 32px 0 25px;
    }
    .page-title-bar__heading {
        font-size: 20px;
    }
    .breadcrumbs {
        font-size: 11px;
    }
    .info-page {
        padding: 35px 0 45px;
    }
    .info-block {
        padding: 20px 18px;
        margin-bottom: 16px;
        border-left-width: 3px;
    }
    .info-block__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    .info-block__title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    .info-block p,
    .info-list li {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .info-list {
        padding-left: 14px;
    }
    .info-list li {
        padding-left: 20px;
    }
    .info-list li::before {
        top: 10px;
    }

    .doc-list a {
        padding: 12px 14px;
        font-size: 14px;
        gap: 10px;
    }
    .doc-list__icon {
        width: 32px;
        height: 32px;
    }

    .teacher__header {
        padding: 16px 16px;
    }
    .teacher__avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .teacher__name {
        font-size: 15px;
    }
    .teacher__list li,
    .teacher__text {
        font-size: 13.5px;
    }

    .direction-hero {
        padding: 40px 0 35px;
    }
    .direction-hero__title {
        font-size: 22px;
    }
    .direction-hero__subtitle {
        font-size: 14px;
    }
    .schedule-table__num {
        font-size: 13px;
    }
    .program-card {
        padding: 22px 20px;
    }

    .modal {
        padding: 24px 18px 22px;
    }
    .modal__title {
        font-size: 17px;
    }
    .modal__field input,
    .modal__field select,
    .modal__field textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .faq__header {
        padding: 16px 16px;
    }
    .faq__question {
        font-size: 14.5px;
    }
    .faq__content {
        padding: 0 16px 20px 16px;
        padding-top: 18px;
    }
    .faq__content p,
    .faq__content .info-list li {
        font-size: 13.5px;
    }

    .news-card {
        padding: 20px 18px;
    }
    .news-card__title {
        font-size: 16px;
    }
    .news-card__excerpt {
        font-size: 14px;
    }
    .news-years {
        padding: 14px 16px;
    }
    .news-years__label {
        width: 100%;
        margin-bottom: 4px;
    }
    .news-years__link {
        padding: 6px 14px;
        font-size: 13px;
    }

    .program-search__inner {
        border-radius: 12px;
    }
    .program-search__input {
        font-size: 14px;
        padding: 10px 6px 10px 0;
    }
    .program-search__input::placeholder {
        font-size: 12.5px;
    }
    .program-search__result-text {
        font-size: 13.5px;
    }

    .group-head {
        margin: 26px 0 14px;
    }
    .group-head__title {
        font-size: 18px;
    }

    .contacts-card {
        padding: 22px 20px;
    }
    .contacts-map {
        height: 300px;
        border-radius: 12px;
    }
}
/* ==================== СООБЩЕНИЕ ОБ УСПЕШНОЙ ОТПРАВКЕ ==================== */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    animation: formSuccessFade 0.5s ease;
}

@keyframes formSuccessFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-success__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-blue-soft) 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(126, 200, 169, 0.35);
}

.form-success__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.form-success__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 400px;
    margin: 0 auto;
}

/* Для белой формы на синем фоне (callback на главной) текст белый */
.callback .form-success__title,
.callback .form-success__text {
    color: var(--color-white);
}

.modal__close-form {
    margin-top: 24px;
    padding: 12px 30px;
    border-radius: 50px;
    background: var(--color-blue-light);
    color: var(--color-primary);
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal__close-form:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

@media (max-width: 500px) {
    .form-success__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }
    .form-success__title {
        font-size: 20px;
    }
    .form-success__text {
        font-size: 14.5px;
    }
}

/* ==================== HONEYPOT (защита от спама) ==================== */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* ==================== СООБЩЕНИЕ ОБ ОШИБКЕ ВАЛИДАЦИИ ==================== */
.form-error {
    background: #fdecec;
    color: #b03030;
    border: 1px solid #f3c2c2;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    animation: formErrorFade 0.3s ease;
}

@keyframes formErrorFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal .form-error {
    margin-bottom: 14px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
