/* Черный фон футера при леттербоксинге (внутреннему диву надо назначить класс footer-content): */
/* .footer {
    background-color: var(--black-1000);
    position: relative;
}

.footer-content {
    padding-top: clamp(5rem, 4.167rem + 1.74vw, 6.25rem);
    padding-bottom: 18px;
}

.footer::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: var(--black-1000);
    z-index: -1;
} */

.footer {
    padding-top: clamp(5rem, 4.167rem + 1.74vw, 6.25rem);
    padding-bottom: 18px;
    background-color: var(--black-1000);
}

.footer .grid-container {
    row-gap: 0;
}

.footer__logo-icons {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer__logo {
    max-width: 220px;
}

.footer__icons {
    display: flex;
    gap: 16px;
}

.footer__icon {
    width: 41px;
    height: 41px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__icons svg {
    fill: var(--sun-yellow);
    transition: all 300ms ease;
}

.footer__menu {
    grid-column: span 8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.footer__menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__menu ul:last-of-type {
    grid-column-start: 3;
    margin-top: -24px;
}

.footer__menu .item-title {
    font-weight: 500;
    font-size: clamp(1.25rem, 1.167rem + 0.17vw, 1.375rem);
    line-height: 130%;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__menu .item {
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -0.02em;
    color: var(--grey-600);
    text-decoration: none;
    /*text-underline-offset: 0;*/
    transition: text-underline-offset 0.3s ease;
}

.footer__cities {
    color: var(--white);
    grid-column: span 6;
    display: flex;
    gap: 92px;
    margin-top: 85px;
}

.footer__city-title {
    font-family: "Nochlezhka", "Nunito Sans", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 110.00000000000001%;
    letter-spacing: 0;
    vertical-align: bottom;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.footer__city-address, .footer__city-tel {
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -0.02em;
}

.footer__city-address {
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.footer__subscribe {
    grid-column: span 6;
    justify-self: end;
    margin-top: 81px;
    margin-bottom: 77px;
    width: 100%;
    background-color: var(--sun-yellow);
    border-radius: 10px;
    padding: 40px 30px;
    padding-top: 36px;
}

.footer__subscribe-title {
    font-family: "Nochlezhka", "Nunito Sans", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 110%;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 26px;
    text-align: left;
}

.footer__subscribe-form {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    row-gap: 16px;
}

.footer__subscribe-form input {
    border: 1px solid var(--grey-300);
    border-radius: 10px;
    padding: 17px 24px;
    width: 100%;
    background: var(--grey-100);
}

.footer__subscribe-form input::placeholder {
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -0.02em;
    color: var(--grey-900);
    transition: all 300ms ease;
}

.footer__subscribe-form input:focus {
    outline: none;
    border-color: var(--black-1000);
}

.footer__subscribe-button {
    width: 100%;
    max-width: 188px;
    border-radius: 100px;
    padding: 14px 40px;
    background: var(--black-1000);
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -0.02em;
    color: var(--white);
    cursor: pointer;
    transition: all 300ms ease;
    border: none;
}

.footer__subscribe-button:disabled {
    background-color: var(--grey-300);
    color: var(--grey-900);
    cursor: not-allowed;
}

.footer__subscribe-offer {
    font-weight: 400;
    font-size: clamp(0.875rem, 0.792rem + 0.17vw, 1rem);
    line-height: 120%;
    letter-spacing: -0.03em;
    color: var(--black-1000);
    opacity: 0.5;
    flex: 1 0 100%;

    cursor: pointer;
    display: grid;
    align-items: start;
    grid-template-columns: 12px 1fr;
    gap: 4px;
}

.footer__subscribe-offer input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 12px;
    height: 12px;
    background: var(--yellow-dark);
    border-radius: 2px;
    padding: 0;
    border: none;
}

.footer__subscribe-offer label {
    margin-top: -3px;
    font-size: 12px;
    letter-spacing: 0;
    cursor: pointer;
}

.footer__subscribe-offer input::after {
    content: "";
    left: 0;
    bottom: 0;
    position: absolute;
    background-image: url("../img/icons/footer-check-icon.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70%;
}

.footer__subscribe-offer input:checked::after {
    width: 12px;
    height: 12px;
}

.footer__subscribe-offer a {
    display: inline;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.footer__bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: end;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -0.02em;
    font-weight: 300;
    color: var(--grey-300);
}

.footer__bottom-years, .footer__bottom-oferta, .footer__bottom-pers, .footer__bottom-make {
    opacity: 0.6;
    letter-spacing: -0.01em;
}

.footer__bottom-pers, .footer__bottom-make {
    letter-spacing: 0;
}

.lang-dropdown {
    margin-top: -6px;
}

.footer__bottom-make a {
    display: inline;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-offset: 2px;
}

.footer__bottom-lang {
    border: 1px solid var(--grey-1000);
    border-radius: 100px;
    padding: 8px;
    font-weight: 500;
    font-size: clamp(0.75rem, 0.583rem + 0.35vw, 1rem);
    line-height: 110%;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--white);
    background: none;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.footer__bottom-lang:focus {
    outline: none;
}

.footer__bottom-lang {
    transition: all 300ms ease;
}

.lang-dropdown .dropdown-menu.show {
    transform: translate3d(0px, -48px, 0px) !important;
    padding: 8px;
    max-width: 161px;
    background: var(--white);
    border: 1px solid #AFAFAF;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lang-dropdown .dropdown-item {
    padding: 17px;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    transition: all 300ms ease;
}

.lang-dropdown .dropdown-item.active {
    color: inherit;
    background-color: var(--grey-300);
    position: relative;
}

.lang-dropdown .dropdown-toggle svg.lang-arrow {
    transition: all 300ms ease;
    max-width: 6px;
    max-height: 6px;
}

.lang-dropdown .dropdown-toggle::after {
    display: none;
}

.lang-dropdown .dropdown-toggle svg.lang-arrow {
    fill: var(--grey-1000);
}

.lang-dropdown .dropdown-toggle:hover svg.lang-arrow {
    fill: var(--sun-yellow);
}

.lang-dropdown .dropdown-toggle.show svg.lang-arrow {
    transform: rotate(-180deg);
}

/* MEDIA */

@media (hover: hover) {
    .lang-dropdown .dropdown-item:hover:not(.active) {
        background-color: var(--grey-100);
    }

    .footer__icons svg:hover {
        fill: var(--white);
    }

    .footer__menu .item:hover {
        text-decoration: underline;
        /*text-underline-offset: 3px;*/
    }

    .footer__subscribe-button:hover {
        background-color: var(--green);
        color: var(--black-1000);
    }

    .footer__bottom-lang:hover.dropdown-toggle {
        transition: all 300ms ease;
    }

    .footer__bottom-lang:hover.dropdown-toggle::after {
        color: var(--sun-yellow);
    }
}

@media screen and (max-width: 1440px) {
    .footer__bottom {
        font-size: 16px;
    }
}

@media screen and (max-width: 1024px) {
    .footer__logo-icons {
        grid-column: 1 / -1;
        margin-bottom: clamp(3.5rem, 3.023rem + 2.04vw, 4rem);
        order: -2;
        /*gap: clamp(1rem, -0.431rem + 6.11vw, 2.5rem);*/
        gap: 41px;
    }

    .footer__menu {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 43px 11px;
    }

    .footer__menu ul:first-of-type {
        order: -5;
    }

    .footer__menu ul:nth-child(4) {
        order: -4;
    }

    .footer__menu ul:last-of-type {
        grid-column-start: 1;
        margin-top: 1px;
    }

    .footer__menu .item {
        font-size: 20px;
    }

    .footer__cities {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 0;
        margin-bottom: 65px;
        order: -1;
    }

    .footer {
        padding-bottom: 80px;
    }

    .footer__city-address, .footer__city-tel {
        font-size: 20px;
    }

    .footer__city-address {
        margin-bottom: 20px;
    }

    .footer__subscribe {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .footer__bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 16px;
        font-size: 20px;
        padding: 6px 8px;
    }

    .footer__bottom-lang svg {
        width: 15px;
        height: 15px;
    }

    .footer__bottom-oferta {
        order: -3;
        margin-left: -8px;
    }

    .footer__bottom-pers {
        max-width: 233px;
        margin-left: -8px;
        letter-spacing: -0.01em;
    }

    .footer__bottom-make {
        letter-spacing: -0.01em;
        margin-right: -8px;
    }

    .lang-dropdown {
        margin-top: 22px;
        margin-left: -8px;
    }

    .lang-dropdown .dropdown-menu.show {
        max-height: 126px;
    }

    .lang-dropdown .dropdown-item {
        padding: 12px;
    }
}

@media screen and (max-width: 768px) {
    .footer__city-title {
        font-size: clamp(1.375rem, 1.256rem + 0.51vw, 1.5rem);
        /*margin-bottom: clamp(1rem, 0.046rem + 4.07vw, 2rem);*/
        margin-bottom: 29px;
        letter-spacing: -0.001em;
    }

    .footer__city-address, .footer__city-tel {
        font-size: clamp(1rem, 0.761rem + 1.02vw, 1.25rem);
    }

    .footer__city-address {
        margin-bottom: clamp(0.5rem, 0.023rem + 2.04vw, 1rem);
        letter-spacing: -0.02em;
    }

    .footer__menu .item-title {
        font-size: clamp(1.125rem, 1.006rem + 0.51vw, 1.25rem);
    }

    .footer__menu .item-title {
        margin-bottom: clamp(0.5rem, 0.023rem + 2.04vw, 1rem);
    }

    .footer__menu .item {
        font-size: clamp(1rem, 0.761rem + 1.02vw, 1.25rem);
    }

    .footer__subscribe-title {
        font-size: clamp(1.375rem, 1.256rem + 0.51vw, 1.5rem);
        /*margin-bottom: clamp(1.5rem, 1.142rem + 1.53vw, 1.875rem);*/
        margin-bottom: 27px;
        letter-spacing: -0.01em;
        line-height: 105%;
    }

    .footer__subscribe {
        padding: clamp(2rem, 1.523rem + 2.04vw, 2.5rem) clamp(1rem, 0.165rem + 3.56vw, 1.875rem);
        /*margin-bottom: clamp(3.5rem, 3.023rem + 2.04vw, 4rem);*/
        margin-bottom: 58px;
        margin-top: 67px;
        padding-top: 35px;
    }

    .footer__subscribe-form input {
        padding: 19px 24px;
    }

    .footer__subscribe-button {
        font-size: clamp(1rem, 0.881rem + 0.51vw, 1.125rem);
    }

    .footer__subscribe-form {
        margin-bottom: 17px;
    }

    .footer__subscribe-offer {
        font-size: clamp(0.75rem, 0.631rem + 0.51vw, 0.875rem);
    }

    .footer__subscribe-offer input {
        padding: 0;
    }

    .footer {
        padding-bottom: clamp(2.5rem, 0.115rem + 10.18vw, 5rem);
    }

    .footer__bottom {
        font-size: clamp(1rem, 0.761rem + 1.02vw, 1.25rem);
        column-gap: 8px;
    }

    .footer__bottom-years {
        letter-spacing: -0.012em;
    }
}

@media screen and (max-width: 576px) {
    .footer__subscribe-form {
        flex-direction: column;
    }

    .footer__subscribe-button {
        max-width: 100%;
        padding: 14px 0;
        letter-spacing: 0;
    }

    .footer__logo-icons {
        justify-self: center;
        gap: 22px;
        margin-bottom: 52px;
    }

    .footer__logo-icons a {
        text-align: center;
    }

    .footer__cities {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
        margin-bottom: 54px;
    }

    .footer__bottom {
        grid-template-columns: 1fr;
        row-gap: 25px;
        padding: 6px 0;
    }

    .footer__bottom-pers {
        order: -2;
        max-width: 100%;
        margin-left: 0;
        letter-spacing: 0.015em;
    }

    .footer__bottom-make {
        order: -1;
        letter-spacing: 0.014em;
        line-height: 135%;
    }

    .footer__city-title {
        margin-bottom: 13px;
    }

    .footer__city-address {
        letter-spacing: 0;
    }

    .footer__menu .item-title {
        letter-spacing: -0.01em;
    }

    .footer__menu ul {
        gap: 15px;
    }

    .footer__menu .item {
        letter-spacing: 0;
    }

    .footer__menu {
        gap: 44px 21px;
    }

    .footer__menu ul:nth-child(4) {
        max-width: 100%;
    }

    .footer__subscribe {
        margin-top: 54px;
        padding-top: 29px;
        text-align: center;
        margin-bottom: 52px;
    }

    .footer__subscribe-title {
        letter-spacing: 0;
        line-height: 117%;
        margin-bottom: 17px;
        text-align: center;
    }

    .footer__subscribe-form input::placeholder {
        font-size: 14px;
    }

    .footer__subscribe-offer label {
        text-align: left;
        max-width: 100%;
        line-height: 105%;
    }

    .footer__subscribe-offer {
        margin-left: -3px;
    }

    .footer__bottom-oferta {
        letter-spacing: 0.02em;
        margin-left: 0;
    }

    .footer__bottom-years {
        letter-spacing: 0.005em;
    }

    .lang-dropdown {
        margin-left: 0;
    }

}

@media screen and (max-width: 375px) {

    .footer__menu ul {
        max-width: 155px;
    }

    .footer__menu ul:last-of-type {
        grid-column: span 2;
        max-width: 100%;
    }

    .footer__subscribe-form {
        flex-direction: column;
    }

    .footer__subscribe-button {
        max-width: 100%;
        padding: 14px 0;
    }

    .lang-dropdown {
        margin-top: 4px;
    }

    .footer__subscribe-form input {
        padding: 12px 24px;
    }

    .footer__subscribe-offer input {
        padding: 0;
    }

    .lang-dropdown .dropdown-item {
        padding: 8px;
    }
}