.container,
.site-header__inner,
.site-footer__inner {
    width: min(calc(100% - (2 * var(--container-gutter))), var(--container-width));
    margin-inline: auto;
}

.site-main {
    width: 100%;
    min-height: 60vh;
    flex: 1 0 auto;
}

.site-header,
.site-footer {
    width: 100%;
}

.section {
    padding-block: var(--section-space);
}

.section--muted {
    background: var(--color-surface-muted);
}

.section--primary {
    color: var(--color-surface);
    background: var(--color-primary-600);
}

.section__header {
    max-width: 48rem;
    margin-block-end: var(--space-8);
}

.section__title {
    margin-block-end: var(--space-3);
}

.section__description {
    margin: 0;
    color: var(--color-text-muted);
}

.section--primary .section__title,
.section--primary .section__description {
    color: inherit;
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
}

@media (min-width: 40rem) {
    .grid--2,
    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-header {
    box-sizing: border-box;
    height: 86px;
    padding: 21px 79px 19px 81px;
    background: #fff;
    border: 1px solid #eaebf0;
}

.home-header__inner {
    display: flex;
    width: 100%;
    max-width: 1280px;
    min-height: 44px;
    margin-inline: auto;
    gap: 32px;
}

.home-header__brand {
    flex: 0 0 328px;
    gap: 8px;
}

.home-header__brand .site-header__logo-img {
    width: auto;
    height: 40px;
}

.home-header__nav {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-inline: auto;
}

.home-header__nav-list {
    display: flex;
    padding: 0;
    margin: 0;
    gap: 36px;
    align-items: center;
    list-style: none;
}

.home-header__nav-item {
    position: relative;
}

.home-header__nav-item--has-children::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    content: "";
}

.home-header__nav-link-row {
    display: flex;
    align-items: center;
}

.home-header__nav a {
    color: #a5acba;
    font-family: "Geist", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
}

.home-header__nav a:hover,
.home-header__nav a[aria-current="page"],
.home-header__nav-item.is-active > .home-header__nav-link-row > a {
    color: var(--color-primary-700);
}

.home-header__submenu-toggle {
    display: inline-flex;
    width: 28px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #a5acba;
    background: transparent;
    border: 0;
}

.home-header__submenu-toggle span {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 160ms ease;
}

.home-header__submenu-toggle:hover,
.home-header__submenu-toggle[aria-expanded="true"] {
    color: var(--color-primary-700);
}

.home-header__submenu-toggle[aria-expanded="true"] span {
    transform: translateY(2px) rotate(225deg);
}

.home-header__submenu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    left: -16px;
    display: flex;
    width: max-content;
    min-width: 250px;
    max-width: 340px;
    padding: 8px;
    margin: 0;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgb(16 24 40 / 14%);
    list-style: none;
}

.mobile-menu-ready .home-header__submenu {
    display: none;
}

.mobile-menu-ready .home-header__submenu.is-open {
    display: flex;
}

.home-header__submenu .home-header__submenu-link {
    display: flex;
    min-height: 42px;
    padding: 10px 12px;
    align-items: center;
    color: var(--color-text);
    border-radius: 8px;
    font-size: 15px;
    line-height: 22px;
    white-space: normal;
}

.home-header__submenu .home-header__submenu-link:hover,
.home-header__submenu .home-header__submenu-link:focus-visible,
.home-header__submenu .home-header__submenu-link[aria-current="page"] {
    color: var(--color-primary-700);
    background: var(--color-primary-50);
}

.home-header__actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.home-header__menu-toggle,
.home-header__nav .home-header__nav-cta {
    display: none;
}

.home-header__menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 44px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
}

.home-header__menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: opacity 160ms ease, transform 160ms ease;
}

.home-header__menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.home-header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.home-header__menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.language-select {
    position: relative;
    width: 80px;
    height: 40px;
    flex: 0 0 80px;
}

.language-select__toggle {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0 14px 0 16px;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    color: #7a8494;
    background: #f7f8fa;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: "Inter", "Geist", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    list-style: none;
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.language-select__toggle::-webkit-details-marker {
    display: none;
}

.language-select__toggle i {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition-fast);
}

.language-select__toggle:hover,
.language-select__toggle:focus-visible,
.language-select[open] .language-select__toggle {
    color: var(--color-primary-700);
    background: #fff;
    border-color: var(--color-primary-200);
    outline: none;
    box-shadow: 0 0 0 3px rgb(43 99 217 / 10%);
}

.language-select[open] .language-select__toggle i {
    transform: translateY(3px) rotate(225deg);
}

.language-select__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    width: 176px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgb(23 32 51 / 16%), 0 4px 12px rgb(23 32 51 / 8%);
}

.language-select__option {
    display: grid;
    width: 100%;
    min-height: 44px;
    padding: 10px 10px 10px 12px;
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    gap: 8px;
    align-items: center;
    color: var(--color-text-muted);
    border-radius: 9px;
    font-family: "Inter", "Geist", Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.language-select__option > span {
    color: #919ba7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.language-select__option > strong {
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-select__option:hover,
.language-select__option:focus-visible {
    color: var(--color-primary-700);
    background: var(--color-primary-50);
    outline: none;
}

.language-select__option[aria-current="page"] {
    color: var(--color-primary-700);
    background: var(--color-primary-50);
    font-weight: 600;
}

.language-select__option[aria-current="page"]::after {
    width: 8px;
    height: 4px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    transform: translateY(-1px) rotate(-45deg);
}

.home-footer {
    height: 203px;
    padding: 32px 0;
    margin-block-start: 52px;
    background: var(--color-background);
    border: 0;
    border-top: 1px solid #eaebf0;
}

.home-footer__inner {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.home-footer__brand {
    flex: 0 0 275px;
}

.home-footer__nav {
    display: grid;
    width: 100%;
    min-height: 138px;
    grid-template-columns: 205fr 224fr 150fr 150fr;
    gap: clamp(24px, 3vw, 56px);
}

.home-footer__column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.home-footer__column > strong {
    color: #919ba7;
    font-family: "Inter", "Geist", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.home-footer__column > a {
    display: inline-flex;
    align-items: center;
    color: #2250c3;
    font-family: "Geist", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    text-decoration: none;
}

.home-footer__column > a:hover {
    color: #174dba;
    text-decoration: underline;
}

.home-footer__column--more .site-footer__copyright {
    margin-block-start: 20px;
    color: #919ba7;
    font-family: "Geist", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

@media (max-width: 75rem) {
    .home-header {
        height: auto;
        padding: var(--space-4) var(--container-gutter);
    }

    .home-header__inner {
        flex-wrap: wrap;
        padding: 0;
        gap: 16px 24px;
    }

    .home-header__brand {
        margin-inline-end: auto;
    }

    .home-header__nav {
        order: 3;
        width: 100%;
        padding-block-start: var(--space-3);
        gap: clamp(var(--space-4), 5vw, 36px);
        justify-content: center;
        border-top: 1px solid var(--color-border);
    }

    .home-header__nav-list {
        gap: clamp(var(--space-4), 5vw, 36px);
        justify-content: center;
    }

    .home-footer {
        height: auto;
    }

    .home-footer__inner {
        grid-template-columns: 275px minmax(0, 1fr);
    }

    .home-footer__nav {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-8);
    }
}

@media (max-width: 48rem) {
    .home-header__inner {
        align-items: center;
    }

    .home-header__actions > .button {
        display: none;
    }

    .mobile-menu-ready .home-header__menu-toggle {
        display: inline-flex;
    }

    .home-header__nav {
        order: 3;
        width: 100%;
        margin: 0;
        padding: 12px 0 0;
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
        justify-content: flex-start;
        border-top: 1px solid var(--color-border);
    }

    .home-header__nav-list {
        width: 100%;
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }

    .home-header__nav-link-row {
        width: 100%;
    }

    .home-header__nav-item--has-children::after {
        display: none;
    }

    .home-header__nav-link-row .home-header__nav-link {
        flex: 1 1 auto;
    }

    .mobile-menu-ready .home-header__nav {
        display: none;
    }

    .mobile-menu-ready .home-header__nav.is-open {
        display: flex;
        animation: mobile-menu-reveal 180ms ease-out;
    }

    .home-header__nav a {
        display: flex;
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        align-items: center;
        color: var(--color-text);
        border-radius: 10px;
        white-space: normal;
    }

    .home-header__nav a:not(.home-header__nav-cta):hover,
    .home-header__nav a:not(.home-header__nav-cta):focus-visible {
        color: var(--color-primary-700);
        background: var(--color-primary-50);
    }

    .home-header__submenu-toggle {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        color: var(--color-text-muted);
        border-radius: 10px;
    }

    .home-header__submenu-toggle:hover,
    .home-header__submenu-toggle:focus-visible {
        color: var(--color-primary-700);
        background: var(--color-primary-50);
    }

    .home-header__submenu {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 2px 0 4px 20px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .home-header__submenu .home-header__submenu-link {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 15px;
    }

    .home-header__nav .home-header__nav-cta {
        display: inline-flex;
        margin-block-start: 4px;
        justify-content: center;
        color: #fff;
        background: linear-gradient(109deg, #d11524 8.4%, #e0411b 79.95%);
    }

    .home-header__nav .home-header__nav-cta:hover,
    .home-header__nav .home-header__nav-cta:focus-visible {
        color: #fff;
        background: linear-gradient(109deg, #b90f1d 8.4%, #c93615 79.95%);
    }

    .home-footer__inner {
        grid-template-columns: 1fr;
    }

    .home-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-footer__column > a {
        min-height: 44px;
    }
}

@keyframes mobile-menu-reveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-ready .home-header__nav.is-open {
        animation: none;
    }

    .home-header__menu-toggle span {
        transition: none;
    }
}

@media (max-width: 36rem) {
    .home-header {
        padding: 12px var(--container-gutter);
    }

    .home-header__inner {
        gap: 12px;
    }

    .home-header__brand {
        width: 40px;
        height: 40px;
        flex-basis: auto;
    }

    .home-header__brand .site-header__logo-img {
        height: 40px;
    }

    .home-header__brand .brand-lockup__text {
        display: none;
    }

    .home-header__brand .brand-lockup__university,
    .home-header__brand .brand-lockup__divider {
        display: none;
    }

    .home-header__actions {
        margin-inline-start: auto;
        gap: 8px;
    }

    .language-select {
        height: 44px;
    }

    .home-footer__nav {
        grid-template-columns: 1fr;
    }

    .home-footer__brand {
        width: 100%;
    }

    .home-footer__brand .brand-lockup__university {
        display: none;
    }

    .home-footer__brand .brand-lockup__text {
        min-width: 0;
        flex: 1 1 auto;
    }
}
