.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer {
    --footer-navy: #0a2d47;
    --footer-mint: #00f6a9;
    --footer-line: #274b66;
    --footer-muted: #d8d8d8;
    --footer-text: rgba(255, 255, 255, 0.7);

    background: var(--footer-navy);
    color: #fff;
    font-family: var(--font-family);
    font-weight: 300;
}

.site-footer__container {
    width: 100%;
    max-width: calc(var(--content-max-width) + var(--page-inline) * 2);
    margin: 0 auto;
    padding: 0 var(--page-inline);
}

.visually-hidden,
.footer-subscribe-modal .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer__subscribe {
    display: grid;
    grid-template-columns: 340px 1px minmax(0, 1fr);
    align-items: start;
    column-gap: 60px;
    padding: 69px 0 80px;
}

.site-footer__subscribe-title {
    margin: 0;
    max-width: 335px;
    color: #fff;
    font-size: 52px;
    font-weight: 300;
    line-height: 54px;
}

.site-footer__subscribe-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    min-width: 0;
}

.site-footer__subscribe-text {
    margin: 4px 0 0;
    max-width: 406px;
    color: var(--footer-text);
    font-size: 20px;
    font-weight: 300;
    line-height: 24px;
}

.site-footer__subscribe-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 211px;
    height: 38px;
    margin-top: 4px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: var(--footer-mint);
    color: var(--footer-navy);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.site-footer__subscribe-btn:hover {
    opacity: 0.85;
}

.site-footer__subscribe-arrow {
    display: block;
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    object-fit: contain;
}

.site-footer__divider {
    width: 100%;
    height: 1px;
    background: var(--footer-line);
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    column-gap: clamp(48px, 9vw, 121px);
    align-items: start;
    padding: clamp(48px, 5vw, 58px) 0 clamp(56px, 6vw, 70px);
}

.site-footer__brand {
    display: inline-flex;
    align-self: center;
    margin-top: 8px;
}

.site-footer__logo {
    display: block;
    width: 251px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}

.site-footer__vline {
    width: 1px;
    align-self: stretch;
    min-height: 94px;
    background: var(--footer-line);
}

.site-footer__nav {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: clamp(24px, 4vw, 56px);
    min-width: 0;
}

.site-footer__col-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: default;
}

.site-footer__col-chevron {
    display: none;
    width: 10px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer__col-title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.64px;
    text-transform: uppercase;
}

.site-footer__col-panel-inner {
    min-height: 0;
}

.site-footer__col-divider {
    display: none;
}

.site-footer__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__link {
    display: inline-block;
    color: var(--footer-muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 19px;
    transition: color 0.2s ease;
}

.site-footer__col--contacts .site-footer__link {
    max-width: 191px;
    font-weight: 400;
}

.site-footer__link:hover {
    color: #fff;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0 28px;
}

.site-footer__credit {
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.56px;
    text-transform: uppercase;
}

.site-footer__credit a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer__credit a:hover {
    opacity: 0.75;
}

.site-footer__credit p {
    margin: 0;
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 17px;
}

.site-footer__social-link {
    display: inline-flex;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.site-footer__social-link:hover {
    opacity: 0.75;
}

.site-footer__social-link img {
    display: block;
    width: 35px;
    height: 33px;
    object-fit: contain;
}

/* Subscribe modal */
.footer-subscribe-modal {
    --subscribe-navy: #0a2d47;
    --subscribe-mint: #00f6a9;
    --subscribe-muted: #5b7990;
    --subscribe-border: #e7e7e7;
    --subscribe-input-border: #c6c6c6;

    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: var(--page-inline);
}

.footer-subscribe-modal[hidden] {
    display: none;
}

.footer-subscribe-modal.is-open {
    display: grid;
}

.footer-subscribe-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 45, 71, 0.72);
}

.footer-subscribe-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    max-height: min(92vh, 640px);
    overflow: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(10, 45, 71, 0.24);
}

.footer-subscribe-modal__flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 12px 12px 0;
    pointer-events: none;
}

.footer-subscribe-modal__flash:not(:empty) {
    pointer-events: auto;
}

.footer-subscribe-modal__flash .form-flash--dropdown {
    margin: 0;
    box-shadow: 0 14px 36px rgba(10, 45, 71, 0.18);
    animation: form-flash-dropdown 0.4s ease;
}

.footer-subscribe-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.footer-subscribe-modal__close:hover {
    opacity: 0.8;
}

.footer-subscribe-modal__close img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-subscribe-modal__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'media body';
    min-height: 520px;
}

.footer-subscribe-modal__media {
    grid-area: media;
    min-height: 100%;
    background: #d9d9d9;
}

.footer-subscribe-modal__body {
    grid-area: body;
}

.footer-subscribe-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.footer-subscribe-modal__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    color: var(--subscribe-navy);
}

.footer-subscribe-modal__title {
    margin: 0;
    font-size: 35px;
    font-weight: 300;
    line-height: 1.2;
}

.footer-subscribe-modal__text {
    margin: 16px 0 0;
    color: var(--subscribe-muted);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.45;
}

.footer-subscribe-modal__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 32px;
}

.footer-subscribe-modal__input {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 16px 24px;
    border: 1px solid var(--subscribe-input-border);
    border-radius: 10px;
    background: #fff;
    color: var(--subscribe-navy);
    font-family: inherit;
    font-size: 18px;
    font-weight: 250;
    line-height: 1.2;
    outline: none;
}

.footer-subscribe-modal__input::placeholder {
    color: var(--subscribe-navy);
    opacity: 1;
}

.footer-subscribe-modal__input:focus {
    border-color: var(--subscribe-navy);
}

.footer-subscribe-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 50px;
    margin-top: 3px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--subscribe-mint);
    color: var(--subscribe-navy);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.footer-subscribe-modal__submit:hover {
    opacity: 0.88;
}

.footer-subscribe-modal__submit-arrow {
    display: block;
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    object-fit: contain;
}
