:root {
    --ink: #262626;
    --ink-soft: #444444;
    --muted: #666666;
    --paper: #ffffff;
    --canvas: #f7f7f7;
    --canvas-strong: #eeeeee;
    --line: #dddddd;
    --line-strong: #b9b9b9;
    --brand: #b1040e;
    --brand-dark: #820000;
    --accent: #b1040e;
    --accent-soft: #f7e8e9;
    --focus: #f2a900;
    --shadow: 0 8px 28px rgb(0 0 0 / 12%);
    --shell: 1000px;
    --prose: 760px;
    --header-height: 148px;
}

body {
    background: #ffffff;
    color: var(--ink);
    font-family: Verdana, Tahoma, "DejaVu Sans", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-family: "Open Sans", Arial, "Microsoft YaHei", sans-serif;
    font-weight: 700;
    line-height: 1.35;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
}

.button {
    min-height: 40px;
    padding: 8px 18px;
    border-color: var(--brand);
    border-radius: 2px;
    background: var(--brand);
    font-size: 13px;
}

.button:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #ffffff;
    text-decoration: none;
}

.button--secondary,
.button--light {
    border-color: var(--brand);
    background: #ffffff;
    color: var(--brand-dark);
}

.eyebrow {
    margin-bottom: 7px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Header and navigation */
.site-header {
    position: relative;
    z-index: 100;
    height: auto;
    border-bottom: 1px solid #d6d6d6;
    background: #ffffff;
    backdrop-filter: none;
}

.site-header__identity {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    min-width: 0;
    gap: 14px;
}

.brand__logo {
    width: auto;
    max-width: min(420px, 55vw);
    max-height: 78px;
}

.brand__mark {
    border-radius: 2px;
    background: var(--brand);
}

.brand__text strong {
    font-family: "Open Sans", Arial, sans-serif;
}

.site-nav {
    display: block;
    border-top: 1px solid #eeeeee;
    background: #ffffff;
}

.site-nav__inner {
    display: flex;
    min-height: 53px;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    min-height: 52px;
    color: #202020;
    font-size: 14px;
    font-weight: 600;
}

.site-nav li a::after {
    bottom: 0;
    height: 3px;
    background: var(--brand);
}

.site-nav li a:hover,
.site-nav li a[aria-current="page"] {
    color: var(--brand-dark);
    text-decoration: none;
}

.site-nav__search {
    min-height: 34px !important;
    padding-left: 20px;
    border-left: 1px solid #d7d7d7;
    color: var(--brand-dark) !important;
    font-size: 12px !important;
}

.site-nav-toggle {
    border-color: #bcbcbc;
    border-radius: 2px;
    background: #ffffff;
}

/* Homepage carousel */
.template-homepage main {
    overflow: hidden;
}

.home-carousel {
    position: relative;
    height: calc(100svh - var(--header-height));
    min-height: 540px;
    overflow: hidden;
    background: #202020;
}

.home-carousel__track,
.home-carousel__slide,
.home-carousel__slide picture,
.home-carousel__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-carousel__slide {
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

.home-carousel__slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.home-carousel__slide img {
    object-fit: cover;
    object-position: center;
}

.home-carousel__control {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 50px;
    height: 58px;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / 34%);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 44px;
    line-height: 1;
    place-items: center;
    transform: translateY(-50%);
    transition: background-color 160ms ease;
}

.home-carousel__control:hover {
    background: rgb(130 0 0 / 82%);
}

.home-carousel__control--previous {
    left: 24px;
}

.home-carousel__control--next {
    right: 24px;
}

.home-carousel__dots {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 22px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.home-carousel__dots button {
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    background: rgb(255 255 255 / 58%);
}

.home-carousel__dots button[aria-current="true"] {
    background: var(--brand);
}

/* Shared interior pages */
.page-intro {
    padding: 42px 0 26px;
    border-bottom: 1px solid #dddddd;
    background: #ffffff;
}

.page-intro h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.page-intro__copy {
    max-width: 760px;
    color: #555555;
    font-size: 14px;
}

.page-section {
    padding-top: 38px;
    padding-bottom: 64px;
}

.section-band,
.section-band--muted {
    padding-block: 54px;
    background: #ffffff;
}

.section-heading {
    margin-bottom: 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333333;
}

.section-heading h2 {
    font-size: 24px;
}

.rich-text {
    color: #333333;
}

.rich-text a {
    color: var(--brand-dark);
}

.text-link {
    color: var(--brand-dark);
    font-size: 13px;
}

.text-link:hover {
    color: var(--brand-dark);
}

.media-placeholder {
    background-color: #eeeeee;
    background-image: none;
}

/* People */
.people-group + .people-group {
    margin-top: 56px;
}

.people-group__heading {
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
}

.people-group__heading h2 {
    margin-bottom: 0;
    font-size: 23px;
}

.people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 22px;
}

.person-card {
    padding-bottom: 16px;
    border-bottom: 1px solid #d6d6d6;
}

.person-card__portrait {
    border-radius: 0;
    background: #eeeeee;
}

.person-card__body {
    padding-top: 13px;
}

.person-card h3 {
    color: #222222;
    font-size: 17px;
}

.person-card__english-name,
.person-card__role,
.person-card__affiliation,
.person-card__bio,
.person-card__research {
    color: #555555;
    font-size: 12px;
    line-height: 1.6;
}

.status-label,
.person-card__links a {
    border-radius: 2px;
}

/* Filters and publications */
.filter-bar {
    padding: 18px;
    border: 1px solid #dddddd;
    border-radius: 0;
    background: #f7f7f7;
    box-shadow: none;
}

.field-group label {
    color: #333333;
    font-size: 12px;
}

.field-group input,
.field-group select,
.search-form input {
    border-color: #bcbcbc;
    border-radius: 2px;
    background: #ffffff;
}

.field-group input:focus,
.field-group select:focus,
.search-form input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgb(177 4 14 / 12%);
}

.results-heading {
    margin-top: 38px;
    padding-bottom: 9px;
    border-bottom: 1px solid #333333;
}

.results-heading h2 {
    font-size: 22px;
}

.publication-list {
    border-top: 0;
}

.publication-item {
    padding: 24px 0;
    border-bottom-color: #d7d7d7;
}

.publication-item::marker {
    color: var(--brand);
    font-weight: 700;
}

.publication-item h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.publication-item__meta,
.publication-item__authors,
.publication-item__citation {
    font-size: 12px;
}

.publication-item__meta time {
    color: var(--brand-dark);
}

.publication-item__links a,
.year-tabs a,
.pagination .button {
    border-radius: 2px;
}

/* Research */
.research-list {
    border-top: 1px solid #333333;
}

.research-list__item {
    min-height: 330px;
    border-bottom-color: #d6d6d6;
}

.research-list__media {
    min-height: 330px;
}

.research-list__content {
    padding: 42px 44px;
    background: #ffffff;
}

.research-list__content h2,
.research-list__content h2 a {
    color: #222222;
    font-size: 24px;
}

.detail-hero {
    border-bottom: 1px solid #dddddd;
}

.detail-hero__media,
.content-figure img,
.content-gallery img,
.content-video {
    border-radius: 0;
}

/* Science art */
.year-tabs {
    border-bottom: 1px solid #333333;
}

.year-tabs h2 {
    font-size: 22px;
}

.year-tabs a {
    color: #555555;
}

.year-tabs a:hover,
.year-tabs a[aria-current="page"] {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
    text-decoration: none;
}

.art-grid {
    gap: 36px 24px;
}

.art-card {
    padding-bottom: 18px;
    border-bottom: 1px solid #d5d5d5;
}

.art-card__media {
    border-radius: 0;
}

.art-card__body {
    padding: 16px 0 0;
}

.art-card h3,
.art-card h3 a {
    color: #222222;
    font-size: 17px;
}

.art-card__date,
.art-card__english,
.art-card__summary {
    font-size: 12px;
}

/* News, recruitment and search */
.news-list {
    border-top: 1px solid #333333;
}

.news-item {
    padding: 28px 0;
    border-bottom: 1px solid #d7d7d7;
}

.news-item h2,
.news-item h2 a {
    color: #222222;
    font-size: 20px;
}

.news-item__meta,
.news-item__location {
    font-size: 12px;
}

.recruitment-status,
.recruitment-status--open {
    border-color: #d7d7d7;
    border-radius: 0;
    background: #f7f7f7;
}

.vacancy {
    border-radius: 0;
    box-shadow: none;
}

.search-summary,
.search-results > h2 {
    border-color: #d7d7d7;
}

.search-result h3,
.search-result h3 a {
    color: #222222;
    font-size: 17px;
}

/* Footer */
.site-footer {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #252525;
    background-image: var(--footer-background);
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.site-footer::before {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 68%);
    content: "";
}

.site-footer__grid,
.site-footer__legal {
    position: relative;
    z-index: 1;
}

.site-footer__grid {
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 46px;
    padding-top: 48px;
    padding-bottom: 64px;
}

.site-footer h2 {
    margin-bottom: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgb(255 255 255 / 62%);
    color: #ffffff;
    font-size: 17px;
}

.site-footer p,
.site-footer .rich-text,
.site-footer__contact,
.site-footer__links {
    color: rgb(255 255 255 / 88%);
    font-size: 12px;
    line-height: 1.75;
}

.site-footer a {
    color: #ffffff;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer__news li + li {
    margin-top: 10px;
}

.site-footer__legal {
    min-height: 78px;
    padding: 0;
    border-top: 0;
    background: var(--brand);
}

.site-footer__legal-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer__legal p {
    color: #ffffff;
    font-size: 11px;
}

@media (max-width: 980px) {
    :root {
        --header-height: 78px;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .site-header__identity {
        min-height: 78px;
    }

    .brand__logo {
        max-width: min(300px, 68vw);
        max-height: 58px;
    }

    .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        z-index: 99;
        top: var(--header-height);
        right: 0;
        left: 0;
        max-height: calc(100svh - var(--header-height));
        padding: 0;
        overflow-y: auto;
        border-top: 1px solid #dddddd;
        border-bottom: 1px solid #bbbbbb;
        box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
    }

    .nav-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav__inner {
        display: block;
        padding-top: 8px;
        padding-bottom: 16px;
    }

    .site-nav ul {
        display: grid;
        gap: 0;
    }

    .site-nav li {
        border-bottom: 1px solid #eeeeee;
    }

    .site-nav a {
        width: 100%;
        min-height: 48px;
    }

    .site-nav__search {
        display: flex;
        min-height: 48px !important;
        margin: 0;
        padding-left: 0;
        border-left: 0;
        align-items: center;
    }

    .home-carousel {
        height: calc(100svh - var(--header-height));
        min-height: 520px;
        max-height: 760px;
    }

    .people-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__grid > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 13px;
    }

    .shell {
        width: min(calc(100% - 30px), var(--shell));
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 17px;
    }

    .page-intro {
        padding-top: 32px;
        padding-bottom: 22px;
    }

    .page-intro h1 {
        font-size: 28px;
    }

    .page-section {
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .home-carousel {
        height: min(68svh, 620px);
        min-height: 430px;
    }

    .home-carousel__control {
        width: 40px;
        height: 48px;
        font-size: 36px;
    }

    .home-carousel__control--previous {
        left: 8px;
    }

    .home-carousel__control--next {
        right: 8px;
    }

    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 14px;
    }

    .research-list__item {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .research-list__media {
        min-height: 0;
        aspect-ratio: 3 / 2;
    }

    .research-list__content {
        padding: 25px 4px 38px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .site-footer__grid > :last-child {
        grid-column: auto;
    }

    .site-footer__legal-inner {
        min-height: 70px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .brand__logo {
        max-width: min(245px, 67vw);
    }

    .site-nav-toggle {
        min-width: 44px;
        justify-content: center;
    }

    .site-nav-toggle > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .home-carousel {
        height: 58svh;
        min-height: 390px;
    }

    .home-carousel__slide img {
        object-position: center;
    }

    .people-grid,
    .art-grid,
    .content-gallery__grid {
        grid-template-columns: 1fr;
    }

    .person-card__bio,
    .person-card__research {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-carousel__slide {
        transition: none;
    }
}

/* Legacy global chrome and homepage parity */
:root {
    --header-height: 151px;
}

.site-header {
    position: relative;
    z-index: 100;
    top: auto;
    height: var(--header-height);
    min-height: var(--header-height);
    border: 0;
    background: #ffffff;
    backdrop-filter: none;
}

.site-header__identity {
    display: flex;
    width: min(calc(100% - 26px), 1400px);
    height: 83px;
    min-height: 83px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    color: #262626;
    text-decoration: none;
}

.brand:hover {
    color: #262626;
    text-decoration: none;
}

.brand__logo {
    width: 236px;
    height: 59px;
    max-width: none;
    max-height: none;
    object-fit: fill;
}

.site-header__actions,
.site-language {
    display: flex;
    align-items: center;
}

.site-language {
    gap: 2px;
}

.site-language button {
    height: 27px;
    min-width: 30px;
    padding: 0 6px;
    border: 0;
    border-radius: 3px;
    background: #000000;
    color: #ffffff;
    font-family: Verdana, Tahoma, "Microsoft YaHei", sans-serif;
    font-size: 13px;
    line-height: 27px;
}

.site-language button:hover,
.site-language button:focus-visible {
    background: var(--brand);
}

.site-nav-toggle {
    display: none;
}

.site-nav {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 68px;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    background: #ffffff;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.site-nav__inner {
    position: relative;
    display: block;
    width: min(calc(100% - 26px), 1400px);
    height: 68px;
    min-height: 68px;
    padding: 0;
}

.site-nav__close {
    display: none;
}

.site-nav ul {
    display: flex;
    width: 100%;
    height: auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 20px;
    padding: 5px 0;
    list-style: none;
}

.site-nav li {
    margin: 0 10px;
    border: 0;
}

.site-nav a {
    display: inline-block;
    width: auto;
    min-height: 0;
    padding: 0;
    color: #000000;
    font-family: "Poppins", Verdana, Tahoma, "Microsoft YaHei", sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    text-shadow: 0 0 7px #858585;
    white-space: nowrap;
}

.site-nav li a::after {
    display: none;
}

.site-nav li a:hover,
.site-nav li a:focus-visible {
    color: #ff0000;
    text-decoration: underline;
}

.site-nav li a[aria-current="page"] {
    color: #000000;
}

/* The legacy homepage stretched each complete source image into the banner. */
.template-homepage main {
    overflow: hidden;
}

.home-carousel {
    position: relative;
    height: calc(100svh - 100px);
    min-height: 800px;
    overflow: hidden;
    background: #ffffff;
    outline: 0;
}

.home-carousel__track,
.home-carousel__slide,
.home-carousel__slide picture,
.home-carousel__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-carousel__slide {
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease;
}

.home-carousel__slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.home-carousel__slide img {
    max-width: none;
    object-fit: fill;
    object-position: center;
}

.home-carousel__control {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(0 33 71 / 82%);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 32px;
    line-height: 1;
    opacity: 1;
    place-items: center;
    transform: translateY(-50%);
    transition: left 350ms ease, right 350ms ease, background-color 160ms ease;
}

.home-carousel__control:hover,
.home-carousel__control:focus-visible {
    background: var(--brand);
}

.home-carousel__control--previous {
    right: auto;
    left: -50px;
}

.home-carousel__control--next {
    right: -50px;
    left: auto;
}

.home-carousel:hover .home-carousel__control--previous,
.home-carousel:focus-within .home-carousel__control--previous {
    left: 20px;
}

.home-carousel:hover .home-carousel__control--next,
.home-carousel:focus-within .home-carousel__control--next {
    right: 20px;
}

.home-carousel__dots {
    display: none;
}

/* Homepage footer */
.site-footer--home {
    position: relative;
    padding: 30px 0 0;
    overflow: hidden;
    background-color: var(--brand);
    background-image: var(--footer-background);
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.site-footer--home::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--brand);
    content: "";
}

.site-footer--home .site-footer__grid,
.site-footer--home .site-footer__bottom {
    position: relative;
    z-index: 1;
}

.site-footer--home .site-footer__grid {
    display: grid;
    width: min(calc(100% - 30px), 1170px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0 0 104px;
}

.site-footer--home .site-footer__column {
    min-width: 0;
    padding: 0 30px 0 15px;
}

.site-footer--home .site-footer__column:last-child {
    padding-right: 15px;
}

.site-footer--home h2 {
    margin: 0 0 30px;
    padding: 0 0 5px;
    border-bottom: 1px solid #e2e1e1;
    color: #ffffff;
    font-family: "Poppins", Verdana, Tahoma, "Microsoft YaHei", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.site-footer--home p,
.site-footer--home .rich-text,
.site-footer--home .site-footer__links,
.site-footer--home .site-footer__contact {
    color: #ffffff;
    font-family: "Poppins", Verdana, Tahoma, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.site-footer--home .rich-text,
.site-footer--home .rich-text p {
    margin: 0;
    color: #ffffff;
    line-height: 1.8;
}

.site-footer--home a {
    color: #ffffff;
}

.site-footer--home a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer__news {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.site-footer__news li + li {
    margin-top: 10px;
}

.site-footer__more {
    display: inline-flex;
    min-width: 64px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    padding: 1px 18px;
    border: 0;
    border-radius: 5px;
    background: #ffffff;
    color: #1f1f1f !important;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}

.site-footer__more:hover {
    background: #f2f2f2;
    text-decoration: none !important;
}

.site-footer--home .site-footer__contact {
    display: block;
    font-style: normal;
}

.site-footer--home .site-footer__contact p {
    display: block;
    margin: 0 0 16px;
}

.site-footer--home .site-footer__contact strong {
    display: block;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
}

.site-footer--home .site-footer__contact a,
.site-footer--home .site-footer__contact span {
    display: block;
    color: #ffffff;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.site-footer__bottom {
    min-height: 100px;
    background: var(--brand);
    box-shadow: 3px 0 11px #212121;
}

.site-footer__bottom-inner,
.site-footer__compact-inner {
    display: flex;
    width: min(calc(100% - 40px), 1400px);
    min-height: 100px;
    align-items: center;
    justify-content: space-between;
}

.site-footer__brand {
    display: flex;
    width: 450px;
    flex: 0 0 450px;
    flex-direction: column;
}

.site-footer__brand > a {
    display: block;
    width: fit-content;
    height: 45px;
    overflow: hidden;
}

.site-footer__brand img {
    display: block;
    width: 171px;
    height: 43px;
    max-width: none;
    object-fit: fill;
}

.site-footer--home .site-footer__brand img {
    filter: brightness(0) invert(1);
}

.site-footer__brand p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.site-footer__nav {
    min-width: 0;
    flex: 1;
}

.site-footer__nav ul {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    margin: 0 0 22px;
    padding: 5px 0;
    list-style: none;
}

.site-footer__nav a {
    font-family: "Poppins", Verdana, Tahoma, "Microsoft YaHei", sans-serif;
    font-size: 19px;
    font-weight: 400;
    text-decoration: none;
    text-shadow: 0 0 7px #858585;
    white-space: nowrap;
}

.site-footer__registration {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    margin: 0;
    text-align: center;
    font-size: 12px;
}

/* Compact footer used by the legacy interior pages. */
.site-footer--compact {
    position: relative;
    min-height: 100px;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid #e8e8e8;
    background: #ffffff;
    color: #262626;
}

.site-footer--compact::before {
    content: none;
}

.site-footer--compact .site-footer__brand img {
    width: 177px;
    height: 44px;
    filter: none;
}

.site-footer--compact .site-footer__brand p {
    color: #262626;
}

.site-footer--compact .site-footer__nav a {
    color: #000000;
}

.site-footer--compact .site-footer__nav a:hover {
    color: #ff0000;
    text-decoration: underline;
}

.site-footer--compact .site-footer__registration a {
    color: #262626;
}

@media (max-width: 1080px) {
    .home-carousel {
        height: 693px;
        min-height: 693px;
    }
}

@media (max-width: 999px) {
    :root {
        --header-height: 100px;
    }

    .site-header {
        position: sticky;
        top: 0;
        height: var(--header-height);
        min-height: var(--header-height);
    }

    .site-header__identity {
        width: min(calc(100% - 30px), 1400px);
        height: 100px;
        min-height: 100px;
    }

    .brand__logo {
        width: 180px;
        height: 45px;
    }

    .site-language {
        display: none;
    }

    .site-nav-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #222222;
    }

    .site-nav-toggle__icon {
        width: 24px;
        height: 18px;
    }

    .site-nav-toggle__icon i {
        height: 2px;
        background: currentcolor;
    }

    .site-nav {
        position: fixed;
        z-index: 9999;
        inset: 0;
        display: block;
        width: 100%;
        height: 100svh;
        max-height: none;
        padding: 0;
        overflow: hidden;
        border: 0;
        background: rgb(0 0 0 / 42%);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        transition: opacity 700ms ease, visibility 700ms ease;
    }

    .nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .site-nav__inner {
        position: absolute;
        top: 0;
        right: 0;
        display: block;
        width: 300px;
        height: 100%;
        min-height: 100%;
        margin: 0;
        padding: 70px 20px 20px;
        overflow-y: auto;
        background: #ffffff;
        box-shadow: -1px 0 20px -5px #aaaaaa;
        transform: translateX(calc(100% - 50px));
        transition: transform 700ms ease;
    }

    .nav-open .site-nav__inner {
        transform: translateX(0);
    }

    .site-nav__close {
        position: absolute;
        z-index: 1;
        top: 12px;
        right: 12px;
        display: grid;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #222222;
        font-family: Arial, sans-serif;
        font-size: 40px;
        line-height: 1;
        place-items: center;
    }

    .site-nav ul {
        display: block;
        width: 100%;
        height: auto;
        margin: 30px 0 20px;
        padding: 10px 0 20px;
        border-bottom: 1px solid #efefef;
    }

    .site-nav li {
        margin: 0 0 15px;
        border: 0;
    }

    .site-nav li:last-child {
        margin-bottom: 0;
    }

    .site-nav a {
        display: flex;
        width: 100%;
        min-height: 18px;
        align-items: center;
        padding: 0;
        color: #222222;
        font-size: 14px;
        line-height: 18px;
        text-shadow: none;
    }

    .site-nav li a:hover,
    .site-nav li a:focus-visible,
    .site-nav li a[aria-current="page"] {
        color: var(--brand);
    }

    .home-carousel__control {
        display: none;
    }

    .site-footer--home {
        padding-top: 50px;
    }

    .site-footer--home .site-footer__grid {
        display: block;
        width: min(calc(100% - 30px), 1170px);
        padding-bottom: 104px;
    }

    .site-footer--home .site-footer__column {
        margin-bottom: 50px;
        padding: 0;
    }

    .site-footer--home .site-footer__column:last-child {
        margin-bottom: 0;
        padding-right: 0;
    }

    .site-footer--home h2 {
        margin-bottom: 30px;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .site-footer__bottom {
        min-height: 400px;
    }

    .site-footer__bottom-inner {
        min-height: 400px;
        align-items: flex-start;
        flex-direction: column-reverse;
        justify-content: flex-end;
        gap: 24px;
        padding: 20px 4vw;
    }

    .site-footer__bottom .site-footer__brand {
        width: 100%;
        flex-basis: auto;
    }

    .site-footer__bottom .site-footer__nav {
        width: 100%;
        flex: 0 0 auto;
    }

    .site-footer__bottom .site-footer__nav ul {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin: 0;
    }

    .site-footer--compact {
        min-height: 0;
        padding: 18px 0;
    }

    .site-footer__compact-inner {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .site-footer--compact .site-footer__brand {
        width: 100%;
        flex-basis: auto;
    }

    .site-footer--compact .site-footer__nav {
        width: 100%;
    }

    .site-footer--compact .site-footer__nav ul {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin: 0;
    }

    .site-footer--compact .site-footer__nav a {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .home-carousel {
        height: 606px;
        min-height: 606px;
    }
}

@media (max-width: 900px) {
    .home-carousel {
        height: 561px;
        min-height: 561px;
    }
}

@media (max-width: 800px) {
    .home-carousel {
        height: 550px;
        min-height: 550px;
    }
}

@media (max-width: 736px) {
    .home-carousel {
        height: 503px;
        min-height: 503px;
    }
}

@media (max-width: 640px) {
    .home-carousel {
        height: 458px;
        min-height: 458px;
    }

    .site-footer--home p,
    .site-footer--home .rich-text,
    .site-footer--home .site-footer__links,
    .site-footer--home .site-footer__contact {
        font-size: 16px;
        line-height: 1.65;
    }

    .site-footer--home .rich-text,
    .site-footer--home .rich-text p {
        line-height: 1.65;
    }

    .site-footer--home .site-footer__contact p {
        margin-bottom: 20px;
        padding-left: 10px;
    }
}

@media (max-width: 575px) {
    .site-nav__inner {
        width: 280px;
    }
}

@media (max-width: 414px) {
    .home-carousel {
        height: 455px;
        min-height: 455px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav,
    .site-nav__inner,
    .home-carousel__slide,
    .home-carousel__control {
        transition: none;
    }
}
