:root {
  --font-family: "Montserrat", sans-serif;
}

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

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    cursor: pointer;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    background: #fff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: currentColor !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    background-color: transparent !important;
    transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 16px 0 rgba(95, 75, 139, 0.12);
    background: #fff;
    padding: 15px 0;
    z-index: 100;
}

.head__items {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.head__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.burger {
    width: 38px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.25s ease;
}

.burger:hover {
    transform: scale(1.08);
}

.burger span {
    border-radius: 2px;
    width: 22px;
    height: 2px;
    background: rgba(95, 75, 139, 0.5);
    transition: background 0.25s ease, width 0.25s ease;
}

.burger:hover span {
    background: #5f4b8b;
}

.burger:hover span:first-child {
    width: 18px;
}

.burger:hover span:last-child {
    width: 26px;
}

.head__logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo__main {
    max-width: 105px;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo__main:hover {
    opacity: 0.8;
    transform: scale(1.03);
}

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

.head__logo--divider {
    width: 1px;
    height: 30px;
    background: #dfe7ef;
}

.head__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.head__lang--switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang__switcher--item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 13px;
    line-height: 150%;
    text-align: center;
    color: #959595;
    transition: color 0.2s ease;
}

.lang__switcher--item.active {
    font-weight: 600;
    color: #000;
}

.lang__switcher--item:hover {
    color: #5f4b8b;
}

.head__btn {
    border: 2px solid #5f4b8b;
    border-radius: 60px;
    padding: 8px 20px;
    background: #5f4b8b;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 13px;
    line-height: 150%;
    letter-spacing: 0.05em;
    text-align: center;
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.head__btn:hover {
    background: #4a3a70;
    border-color: #4a3a70;
    transform: translateY(-2px);
}




/* ===== Меню на весь экран (50/50) ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-menu.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Левая часть — блюр + инфо */
.mobile-menu__left {
    flex: 1;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    background: rgba(41, 32, 79, 0.75);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-menu__left-top,
.mobile-menu__socials {
    max-width: 350px;
}

.mobile-menu__logo img {
    width: 280px;
    height: auto;
}

.mobile-menu__intro {
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.mobile-menu__intro-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 127%;
    color: #fff;
}

.mobile-menu__intro-text {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 139%;
    color: rgba(255, 255, 255, 0.75);
}

.mobile-menu__socials {
    display: flex;
    gap: 12px;
}

.mobile-menu__social {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.mobile-menu__social:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Правая часть — навигация */
.mobile-menu__right {
    flex: 1;
    height: 100%;
    background: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu__close {
    align-self: flex-end;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 28px;
    line-height: 100%;
    text-align: center;
    color: #565656;
    flex-shrink: 0;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid rgba(95, 75, 139, 0.1);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    color: #252525;
    transition: color 0.2s ease;
}

.mobile-menu__link:hover {
    color: #5f4b8b;
}

.mobile-menu__link:hover .mobile-menu__arrow {
    color: #5f4b8b;
}

.mobile-menu__arrow {
    display: flex;
    align-items: center;
    color: #a39ac7;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.mobile-menu__apply {
    width: 100%;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #654fa1;
    color: #fff;
    border-radius: 60px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    margin-top: 24px;
    transition: background 0.2s ease;
}

.mobile-menu__apply:hover {
    background: #543f8c;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu__screens {
    position: relative;
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.mobile-menu__screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
}

.mobile-menu__screen.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.mobile-menu__back {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    color: #5f4b8b;
    padding: 0 0 20px;
    flex-shrink: 0;
}

.mobile-menu__back-arrow {
    display: flex;
    align-items: center;
    color: #5f4b8b;
    flex-shrink: 0;
}

/* Кнопка "О школе" верхнего уровня — сброс стилей button под ссылку */
button.mobile-menu__link {
    width: 100%;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    text-align: left;
    color: #252525;
}



.cta {
    padding: 80px 0;
    position: relative;
}

.cta__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.cta__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 800px;
}

.title.white {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 42px;
    line-height: 110%;
    text-align: center;
    color: #fff;
}

.cta__text p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 160%;
    text-align: center;
    color: #fff;
}

.contact-form {
    max-width: 854px;
    width: 100%;
}

.contact-form__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    isolation: isolate;
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 20px 40px 0 rgba(0, 0, 0, 0.25);
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px) url('#liquid-glass-refract') saturate(110%);
    -webkit-backdrop-filter: blur(3px) saturate(110%);
    z-index: -1;
}

.contact-form__inner:focus-within {
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 24px 44px 0 rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .contact-form__inner::before {
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
    }
}

/* Хроматическая аберрация — тонкая цветная кайма по краям */
.contact-form__inner-fringe {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.contact-form__inner-fringe::before,
.contact-form__inner-fringe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    mix-blend-mode: screen;
}

.contact-form__inner-fringe::before {
    box-shadow: inset 1.5px 0 0 rgba(255, 90, 90, 0.2);
}

.contact-form__inner-fringe::after {
    box-shadow: inset -1.5px 0 0 rgba(90, 160, 255, 0.2);
}

.contact-form__input-1 {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px 38px 38px 99px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.2);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: background 0.25s ease;
}

.contact-form__input-1:focus,
.contact-form__input-2:focus {
    background: rgba(255, 255, 255, 0.3);
}

.contact-form__input-1::placeholder, .contact-form__input-2::placeholder {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.contact-form__input-2 {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.2);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: background 0.25s ease;
}

.contact-form__btn {
    max-width: 190px;
    width: 100%;
    flex: 1;
    border-radius: 38px 99px 99px 38px;
    padding: 18px 48px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
    background: #fff;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    color: #2a1f1a;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form__btn:hover {
    background: #f4f3f8;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.2);
}






.footer {
    padding: 32px 0;
    background: linear-gradient(90deg, #110b42 0%, #492870 100%), radial-gradient(50% 50% at 100% 100%, rgba(78, 30, 153, 0.62) 0%, rgba(76, 29, 149, 0) 100%);
    position: relative;
}

.decor-3 {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

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

.foot__card {
    position: relative;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    isolation: isolate;
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.foot__card::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px) url('#liquid-glass-refract') saturate(110%);
    -webkit-backdrop-filter: blur(3px) saturate(110%);
    z-index: -1;
}

.foot__card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 14px 34px rgba(0, 0, 0, 0.2);
}

.foot__card:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .foot__card::before {
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
    }
    .foot__card {
        transform: none !important;
    }
}

/* Хроматическая аберрация — тонкая цветная кайма по краям */
.foot__card--fringe {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.foot__card--fringe::before,
.foot__card--fringe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    mix-blend-mode: screen;
}

.foot__card--fringe::before {
    box-shadow: inset 1.5px 0 0 rgba(255, 90, 90, 0.2);
}

.foot__card--fringe::after {
    box-shadow: inset -1.5px 0 0 rgba(90, 160, 255, 0.2);
}

.foot__card--img,
.foot__card--text {
    position: relative;
    z-index: 1;
}

.foot__card--img {
    flex-shrink: 0;
}

.foot__card--text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.foot__card--text p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 15px;
    line-height: 150%;
    color: #fff;
}

.foot__card--text span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.55);
}

.footer__mid {
    margin: 48px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 48px;
}

.foot__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.foot__logo {
    width: 210px;
    height: auto;
    display: inline-block;
    transition: opacity 0.25s ease;
}

.foot__logo:hover {
    opacity: 0.85;
}

.foot__title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 13px;
    line-height: 170%;
    color: #fff;
    padding-top: 4px;
}

.foot__desc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.75);
}

.foot__desc a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.25s ease;
}

.foot__desc a:hover {
    color: #fff;
}

.footer__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer__list h3 {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 11px;
    line-height: 150%;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.foot__list--item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.foot__list--link {
    display: inline-block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.25s ease, transform 0.25s ease;
}

.foot__list--link:hover {
    color: #fff;
    transform: translateX(3px);
}

.foot__list--link:hover::after {
    width: 100%;
}

.footer__policy--info {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.footer__policy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.policy__desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    color: #fff;
}

.policy__link {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.5);
}

.policy__link a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.25s ease;
}

.policy__link a:hover {
    color: #fff;
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__social {
    border-radius: 18px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.footer__social:hover {
    background: #5f4b8b;
    transform: translateY(-3px);
}

.footer__social svg path {
    transition: stroke-opacity 0.25s ease;
}

.footer__social:hover svg path {
    stroke-opacity: 1;
}





.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    isolation: isolate;
    overflow: hidden;
    cursor: pointer;
    z-index: 60;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.25s ease, visibility 0.3s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.scroll-top::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px) url('#liquid-glass-refract') saturate(110%);
    -webkit-backdrop-filter: blur(3px) saturate(110%);
    z-index: -1;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 14px 34px rgba(0, 0, 0, 0.2);
}

.scroll-top:active {
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top::before {
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
    }
    .scroll-top {
        transform: none !important;
    }
}

/* Хроматическая аберрация — тонкая цветная кайма по краям */
.scroll-top__fringe {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.scroll-top__fringe::before,
.scroll-top__fringe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    mix-blend-mode: screen;
}

.scroll-top__fringe::before {
    box-shadow: inset 1.5px 0 0 rgba(255, 90, 90, 0.2);
}

.scroll-top__fringe::after {
    box-shadow: inset -1.5px 0 0 rgba(90, 160, 255, 0.2);
}

.scroll-top__icon {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.scroll-top__icon path {
    stroke: #5f4b8b;
    transition: stroke 0.3s ease;
}

.scroll-top.is-on-dark .scroll-top__icon path {
    stroke: #ffffff;
}

@media (max-width: 767px) {
    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }
}








.apply-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.apply-modal.is-active {
    visibility: visible;
    opacity: 1;
}

.apply-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 40, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.apply-modal__box {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.apply-modal.is-active .apply-modal__box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.apply-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f4f3f8;
    color: #565656;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.apply-modal__close:hover {
    background: #eeecf8;
    color: #5f4b8b;
}

.apply-modal__head {
    margin-bottom: 24px;
}

.apply-modal__title {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.apply-modal__desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    color: #565656;
}

.apply-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apply-modal__field input,
.apply-modal__field select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #e5e2ee;
    background: #faf9fc;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.apply-modal__field input::placeholder {
    color: #9a95a8;
}

.apply-modal__field input:focus,
.apply-modal__field select:focus {
    border-color: #5f4b8b;
    background: #fff;
}

.apply-modal__field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239A95A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    color: #1a1a1a;
}

.apply-modal__submit {
    margin-top: 8px;
    width: 100%;
    padding: 15px;
    border-radius: 60px;
    background: #5f4b8b;
    color: #fff;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.apply-modal__submit:hover {
    background: #4a3a70;
    transform: translateY(-1px);
}

.apply-modal__policy {
    text-align: center;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #9a95a8;
    margin-top: 4px;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .apply-modal__box {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .apply-modal__title {
        font-size: 20px;
    }
}






.toast-container {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 380px;
    max-width: calc(100vw - 48px);
    padding: 16px 18px;
    border-radius: 16px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);

    isolation: isolate;
    overflow: hidden;

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.15);

    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Слой преломления фона — жидкое стекло */
.toast::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px) url('#liquid-glass-refract') saturate(110%);
    -webkit-backdrop-filter: blur(3px) saturate(110%);
    z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
    .toast::before {
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
    }
}

/* Хроматическая аберрация — тонкая цветная кайма по краям */
.toast__fringe {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.toast__fringe::before,
.toast__fringe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    mix-blend-mode: screen;
}

.toast__fringe::before {
    box-shadow: inset 1.5px 0 0 rgba(255, 90, 90, 0.2);
}

.toast__fringe::after {
    box-shadow: inset -1.5px 0 0 rgba(90, 160, 255, 0.2);
}

.toast--error::after {
    background: #d64545;
}

.toast__icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.toast__icon svg circle,
.toast__icon svg path {
    stroke: #110b42;
    transition: stroke 0.2s ease;
}

.toast--error .toast__icon svg circle,
.toast--error .toast__icon svg path {
    stroke: #d64545;
}

.toast__text {
    position: relative;
    z-index: 1;
    flex: 1;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    color: #110b42;
    transition: color 0.2s ease;
}

.toast__close {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: none;
    border: none;
    color: #110b42;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.toast__close:hover {
    color: #5f4b8b;
}

/* На тёмных/фиолетовых участках сайта — белый текст */
.toast--on-dark .toast__text,
.toast--on-dark .toast__close {
    color: #fff;
}

.toast--on-dark .toast__icon svg circle,
.toast--on-dark .toast__icon svg path {
    stroke: #fff;
}

.toast--on-dark.toast--error .toast__icon svg circle,
.toast--on-dark.toast--error .toast__icon svg path {
    stroke: #ff8a8a;
}

.toast--on-dark.toast--error::after {
    background: #ff8a8a;
}

@media (max-width: 575px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        transform: none;
    }

    .toast {
        width: 100%;
    }
}

.mobile-menu__right--top {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.mobile-menu__close {
    margin-left: auto;
}

.mobile-menu__lang {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-menu__lang--item {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    color: #959595;
    transition: color 0.2s ease;
}

.mobile-menu__lang--item.active {
    font-weight: 700;
    color: #5f4b8b;
}

.mobile-menu__lang--item:hover {
    color: #5f4b8b;
}

.scroll-top.is-near-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* ===== Адаптив ===== */
@media (max-width: 991px) {
    .mobile-menu__left {
        display: none;
    }

    .mobile-menu__right {
        flex: 1;
        width: 100%;
    }

    .head__lang--switcher {
        gap: 2px;
    }

    .cta {
        padding: 60px 0;
    }

    .cta__info {
        gap: 40px;
    }

    .title.white {
        font-size: 34px;
    }

    .cta__text p {
        font-size: 18px;
    }

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

    .footer__mid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer__list:nth-child(2),
    .footer__list:nth-child(3) {
        display: none;
    }

    .mobile-menu__link {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .footer__policy--info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer__policy {
        align-items: center;
    }

    .policy__desc, .policy__link {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .head__logos img:not(.logo__main img) {
        display: none;
    }

    .head__logo--divider {
        display: none;
    }

    .cta__text {
        gap: 16px;
    }

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

    .cta__text p {
        font-size: 16px;
    }

    .contact-form__inner {
        flex-direction: column;
        border-radius: 24px;
        padding: 12px;
        gap: 10px;
    }

    .contact-form__input-1,
    .contact-form__input-2 {
        width: 100%;
        border-radius: 16px;
        padding: 16px 18px;
    }

    .contact-form__btn {
        max-width: 100%;
        border-radius: 16px;
        padding: 16px 24px;
    }

    .footer {
        padding: 24px 0;
    }

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

    .foot__card {
        padding: 16px 20px;
    }

    .footer__mid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin: 32px 0;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 16px;
    }
    .header {
        padding: 12px 0;
    }

    .head__left {
        gap: 10px;
    }

    .logo__main {
        max-width: 104px;
    }

    .head__right {
        gap: 8px;
    }

    .head__btn {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    .lang__switcher--item {
        width: 22px;
        font-size: 12px;
    }

    .mobile-menu__right {
        padding: 24px 20px;
    }

    .mobile-menu__link {
        padding: 16px 0;
    }

    .cta {
        padding: 48px 0;
    }

    .title.white {
        font-size: 24px;
    }

    .cta__text p br {
        display: none;
    }

    .foot__logo {
        width: 190px;
    }

    .footer__policy--info {
        padding-top: 16px;
    }

    .policy__desc {
        font-size: 15px;
    }

    .policy__link {
        font-size: 13px;
    }

    .footer__social {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 400px) {

    .head__lang--switcher {
        display: none;
    }

    .mobile-menu__lang {
        display: flex;
    }
}







/* ==========================================================
   404 page
   ========================================================== */

.error-page {
    position: relative;
    min-height: 100vh;
    padding: 150px 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #29204f;
}

.error-page__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.error-page__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(23, 15, 61, 0.78) 0%,
            rgba(54, 35, 93, 0.62) 50%,
            rgba(23, 15, 61, 0.76) 100%
        );
}

.error-page__filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.error-page .container {
    position: relative;
    z-index: 2;
}

.error-page__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-page__digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.error-page__digit-card {
    position: relative;
    width: 190px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.12);
    isolation: isolate;
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.error-page__digit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(3px) url('#liquid-glass-refract') saturate(110%);
    -webkit-backdrop-filter: blur(3px) saturate(110%);
}

.error-page__digit-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 1.5px 0 0 rgba(255, 90, 90, 0.2),
        inset -1.5px 0 0 rgba(90, 160, 255, 0.2);
    opacity: 0.9;
}

.error-page__digit-card span {
    position: relative;
    z-index: 2;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 176px;
    line-height: 1;
    color: #fff;
}

.error-page__digit-card--center {
    transform: translateY(20px);
}

.error-page__digit-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.2);
}

.error-page__digit-card--center:hover {
    transform: translateY(14px);
}

.error-page__text {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.error-page__text h1 {
    margin: 0;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 36px;
    line-height: 120%;
    color: #fff;
}

.error-page__text p {
    max-width: 560px;
    margin: 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 165%;
    color: rgba(255, 255, 255, 0.72);
}

.error-page__actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.error-page__btn {
    min-width: 180px;
    min-height: 52px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.error-page__btn--primary {
    border: 1px solid #fff;
    background: #fff;
    color: #29204f;
}

.error-page__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.error-page__btn--glass {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.15);
}

.error-page__btn--glass::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(3px) url('#liquid-glass-refract') saturate(110%);
    -webkit-backdrop-filter: blur(3px) saturate(110%);
}

.error-page__btn--glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 1.5px 0 0 rgba(255, 90, 90, 0.2),
        inset -1.5px 0 0 rgba(90, 160, 255, 0.2);
}

.error-page__btn--glass:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .error-page__digit-card {
        width: 160px;
        height: 215px;
    }

    .error-page__digit-card span {
        font-size: 150px;
    }

    .error-page__text h1 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .error-page {
        padding: 120px 0 60px;
    }

    .error-page__digits {
        gap: 12px;
        margin-bottom: 42px;
    }

    .error-page__digit-card {
        width: 125px;
        height: 170px;
        border-radius: 30px;
    }

    .error-page__digit-card span {
        font-size: 118px;
    }

    .error-page__digit-card--center {
        transform: translateY(14px);
    }

    .error-page__digit-card--center:hover {
        transform: translateY(8px);
    }

    .error-page__text h1 {
        font-size: 28px;
    }

    .error-page__text p {
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .error-page {
        padding: 105px 0 48px;
    }

    .error-page__digits {
        width: 100%;
        gap: 7px;
        margin-bottom: 34px;
    }

    .error-page__digit-card {
        width: calc((100% - 14px) / 3);
        max-width: 105px;
        height: 140px;
        border-radius: 24px;
    }

    .error-page__digit-card span {
        font-size: 94px;
    }

    .error-page__digit-card--center {
        transform: translateY(10px);
    }

    .error-page__actions {
        width: 100%;
        flex-direction: column;
        margin-top: 28px;
    }

    .error-page__btn {
        width: 100%;
    }
}