/* =========================================================
   NAEKK FOOTER

   Architecture:
   - 1024px and wider: one desktop footer based on the 1920px layout;
   - below 1024px: responsive tablet/mobile footer;
   - no 100vw or viewport-margin tricks inside .naekk-site-scale;
   - no intermediate compact-desktop rebuilds and no FINAL FIX layers.
   ========================================================= */

.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer {
    --footer-container-width: 1440px;
    --footer-brand-width: 292px;
    --footer-navigation-width: 710px;
    --footer-utility-width: 292px;
    --footer-column-gap: 73px;

    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;

    color: #ffffff;
    background-color: #1c2331;
    font-family: var(--font-main, "Inter", Arial, sans-serif);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer p,
.site-footer h2 {
    margin: 0;
    padding: 0;
}

.site-footer button,
.site-footer input {
    font: inherit;
}

.site-footer__container {
    width: min(var(--footer-container-width), calc(100% - 48px));
    min-width: 0;
    margin: 0 auto;
    padding: 56px 0 44px;
}

/* =========================================================
   DESKTOP LAYOUT — 1024px+

   At 1024–1919px this layout remains logically 1440px wide
   and is reduced together with the global desktop scale.
   ========================================================= */

.site-footer__main {
    display: grid;
    grid-template-columns:
        var(--footer-brand-width)
        var(--footer-navigation-width)
        var(--footer-utility-width);
    column-gap: var(--footer-column-gap);
    align-items: start;

    width: 100%;
    min-width: 0;
    margin-bottom: 36px;
}

.site-footer__brand,
.site-footer__identity,
.site-footer__nav-column,
.site-footer__utility,
.site-footer__contacts,
.site-footer__subscribe,
.site-footer__subscribe-fields {
    min-width: 0;
}

/* Brand */

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 29px;
    padding-top: 2px;
}

.site-footer__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.site-footer__logo {
    display: block;
    line-height: 0;
}

.site-footer__logo img {
    display: block;
    width: 272px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.site-footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 17px;
    font-weight: 400;
    line-height: 27px;
}

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

.site-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;
    flex: 0 0 39px;

    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer__social img {
    display: block;
    width: 39px;
    height: 39px;
}

.site-footer__social:hover {
    opacity: 0.78;
    transform: translateY(-1px);
}

.site-footer__join {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 51px;
    padding: 12px 32px;
    border-radius: 10px;

    color: #ffffff;
    background-color: #d2232a;

    font-size: 15px;
    font-weight: 900;
    line-height: 27px;
    text-align: center;
    white-space: nowrap;

    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.site-footer__join:hover {
    background-color: #b91f26;
}

.site-footer__join--disabled {
    cursor: default;
    opacity: 0.6;
    pointer-events: none;
}

/* Navigation */

.site-footer__navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
    align-items: start;

    width: 100%;
    min-width: 0;
}

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

.site-footer__title {
    color: #ffffff;
    font-family: var(--font-main, "Inter", Arial, sans-serif);
    font-size: 17px;
    font-style: normal;
    font-weight: 800;
    line-height: 22px;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

.site-footer__links li {
    margin: 0;
    padding: 0;
}

.site-footer__links a,
.site-footer__link-disabled {
    display: inline-block;

    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-main, "Inter", Arial, sans-serif);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0;
    text-transform: none;

    transition: color 0.2s ease;
}

.site-footer__links a:hover {
    color: #ffffff;
}

.site-footer__link-disabled {
    cursor: default;
    pointer-events: none;
}

.site-footer__link-disabled--lines {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    white-space: normal;
}

.site-footer__link-disabled--lines > span {
    display: block;
    white-space: nowrap;
}

/* Contacts and subscribe */

.site-footer__utility {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    padding-top: 2px;
}

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

.site-footer__contact {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 27px;

    transition: opacity 0.2s ease;
}

.site-footer__contact:hover {
    opacity: 0.75;
}

.site-footer__contact img {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.site-footer__subscribe {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;

    width: 100%;
    margin: 0;
    padding: 20px 0 0;
}

.site-footer__subscribe-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.site-footer__email {
    display: block;
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 8px 20px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;

    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.04);

    font-size: 15px;
    font-weight: 400;
    line-height: 26px;

    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-footer__email::placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.site-footer__email:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.065);
}

.site-footer__subscribe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;

    color: #ffffff;
    background-color: #d2232a;

    font-family: var(--font-main, "Inter", Arial, sans-serif);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;

    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.site-footer__subscribe-button:hover {
    background-color: #e52a31;
    transform: translateY(-1px);
}

.site-footer__subscribe-button:active {
    transform: translateY(0);
}

.site-footer__subscribe-button:disabled {
    cursor: default;
    opacity: 0.65;
    transform: none;
}

.site-footer__consent {
    position: relative;

    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;

    width: 100%;
    cursor: pointer;
}

.site-footer__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.site-footer__checkbox-mark {
    display: block;
    width: 15px;
    height: 15px;
    margin-top: 3px;

    border: 1px solid transparent;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.site-footer__checkbox:checked + .site-footer__checkbox-mark::after {
    content: "";
    display: block;

    width: 7px;
    height: 4px;
    margin: 4px 0 0 4px;

    border-left: 1.5px solid #ffffff;
    border-bottom: 1.5px solid #ffffff;
    transform: rotate(-45deg);
}

.site-footer__checkbox:focus-visible + .site-footer__checkbox-mark {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.site-footer__consent-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
}

.site-footer__legal-inline {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__email.is-error,
.site-footer__consent.is-error .site-footer__checkbox-mark {
    border-color: #d2232a;
}

.site-footer__subscribe-message {
    min-height: 18px;
    margin: 0;

    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.site-footer__subscribe.is-error .site-footer__subscribe-message {
    color: #ff6b6b;
}

.site-footer__subscribe.is-success .site-footer__subscribe-message {
    color: #ffffff;
}

.site-footer__honeypot {
    position: absolute;
    left: -10000px;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

/* Divider and legal */

.site-footer__divider {
    width: 100%;
    height: 1px;
    margin-bottom: 36px;
    background-color: rgba(255, 255, 255, 0.1);
}

.site-footer__legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 48px;
}

.site-footer__legal-item {
    display: inline-flex;
    align-items: center;

    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-main, "Inter", Arial, sans-serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;

    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.site-footer__legal-item::after {
    content: "→";
    margin-left: 8px;
    opacity: 0.75;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.site-footer__legal-item:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.site-footer__legal-item:hover::after {
    transform: translate(3px, -1px);
}

.site-footer__legal-item:active {
    opacity: 0.7;
}

.site-footer__legal-item--disabled {
    cursor: default;
    opacity: 0.55;
    pointer-events: none;
}

.site-footer__visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;

    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* =========================================================
   TABLET — below global desktop scale
   ========================================================= */

@media (max-width: 1023px) {
    .site-footer__container {
        width: calc(100% - 40px);
        padding: 40px 0 30px;
    }

    .site-footer__main {
        grid-template-columns: minmax(0, 1fr) 320px;
        column-gap: 48px;
        row-gap: 38px;
        margin-bottom: 30px;
    }

    .site-footer__brand {
        grid-column: 1;
        grid-row: 1;
        gap: 22px;
        padding-top: 0;
    }

    .site-footer__identity {
        gap: 18px;
    }

    .site-footer__logo img {
        width: 246px;
    }

    .site-footer__copyright {
        font-size: 13px;
        font-weight: 500;
        line-height: 20px;
    }

    .site-footer__socials {
        gap: 10px;
    }

    .site-footer__social,
    .site-footer__social img {
        width: 32px;
        height: 32px;
    }

    .site-footer__social {
        flex-basis: 32px;
    }

    .site-footer__navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        column-gap: 32px;
    }

    .site-footer__nav-column {
        gap: 10px;
    }

    .site-footer__title {
        font-size: 14px;
        line-height: 20px;
    }

    .site-footer__links {
        gap: 4px;
    }

    .site-footer__links a,
    .site-footer__link-disabled {
        font-size: 13px;
        line-height: 21px;
    }

    .site-footer__utility {
        grid-column: 2;
        grid-row: 1;
        gap: 20px;
        padding-top: 0;
    }

    .site-footer__contacts {
        gap: 12px;
    }

    .site-footer__contact {
        gap: 10px;
        font-size: 14px;
        line-height: 22px;
    }

    .site-footer__contact img {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .site-footer__subscribe {
        gap: 14px;
        padding-top: 8px;
    }

    .site-footer__subscribe-fields {
        gap: 12px;
    }

    .site-footer__email {
        height: 40px;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 21px;
    }

    .site-footer__subscribe-button {
        min-height: 42px;
        font-size: 13px;
    }

    .site-footer__consent-text {
        font-size: 10px;
        line-height: 14px;
    }

    .site-footer__divider {
        margin-bottom: 26px;
    }

    .site-footer__legal {
        gap: 14px 28px;
    }

    .site-footer__legal-item {
        font-size: 12px;
        line-height: 18px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .site-footer__container {
        padding: 34px 0 24px;
    }

    .site-footer__main {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        margin-bottom: 22px;
    }

    .site-footer__brand,
    .site-footer__identity,
    .site-footer__navigation,
    .site-footer__utility,
    .site-footer__subscribe,
    .site-footer__subscribe-fields {
        width: 100%;
    }

    .site-footer__brand,
    .site-footer__identity {
        gap: 16px;
    }

    .site-footer__logo img {
        width: min(246px, 100%);
    }

    .site-footer__copyright {
        font-size: 11px;
        line-height: 16px;
    }

    .site-footer__socials {
        gap: 8px;
    }

    .site-footer__social,
    .site-footer__social img {
        width: 28px;
        height: 28px;
    }

    .site-footer__social {
        flex-basis: 28px;
    }

    .site-footer__navigation {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .site-footer__nav-column {
        gap: 6px;
    }

    .site-footer__title {
        font-size: 13px;
        line-height: 20px;
    }

    .site-footer__links {
        gap: 4px;
    }

    .site-footer__links a,
    .site-footer__link-disabled {
        font-size: 11px;
        font-weight: 500;
        line-height: 16px;
    }

    .site-footer__utility {
        gap: 20px;
    }

    .site-footer__contacts {
        gap: 10px;
    }

    .site-footer__contact {
        gap: 10px;
        font-size: 12px;
        line-height: 18px;
    }

    .site-footer__contact img {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .site-footer__subscribe {
        gap: 12px;
        padding-top: 12px;
    }

    .site-footer__subscribe-button {
        min-height: 44px;
        font-size: 14px;
    }

    .site-footer__subscribe-message {
        font-size: 11px;
    }

    .site-footer__divider {
        margin-bottom: 20px;
    }

    .site-footer__legal {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .site-footer__legal-item {
        font-size: 11px;
        line-height: 16px;
        text-align: center;
    }
}

@media (max-width: 374px) {
    .site-footer__container {
        width: calc(100% - 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}
