.site_footer {
    background-color: #efefef;
    color: #474f55;
    font-family: var(--site-font-family, "Comfortaa", sans-serif);
    /*margin-top: 50px;*/
}

.site_footer_wrapper {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1240px;
    padding: 0 20px;
    width: 100%;
}

/* Верх: логотип — меню — CTA */

.site_footer_top_band {
    background-color: #efefef;
}

.site_footer_nav_container {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 50px 0 45px;
}

.site_footer_logo {
    display: block;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    margin-right: 40px;
    max-width: 140px;
}

.site_footer_logo > img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.site_footer_nav {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    min-width: 0;
}

.site_footer_menu {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.site_footer_menu_item {
    margin: 4px 28px 4px 0;
}

.site_footer_menu_link {
    color: #474f55;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.site_footer_menu_link:hover {
    color: var(--button-bg-color, #287ef5);
}

.site_footer_menu_label {
    cursor: default;
    user-select: none;
}

.site_footer_menu_link.site_footer_menu_label:hover {
    color: #474f55;
}

.site_footer_cta_wrap {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    margin-left: 24px;
}

.site_footer_cta {
    border: none;
    border-radius: 32px;
    box-shadow: 0 9px 56px 0 rgba(0, 0, 0, 0.06);
    color: var(--button-text-color);
    cursor: pointer;
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    font-weight: 700;
    height: 64px;
    line-height: 64px;
    max-width: 100%;
    padding: 0 28px;
    text-align: center;
    transition: box-shadow 0.3s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    width: 200px;
}

.site_footer_cta_gradient {
    background: var(--button-bg-color);
}

.site_footer_cta:hover {
    background: var(--button-hover-bg-color);
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.26);
    color: var(--button-hover-text-color);
}

.site_footer_line {
    background-color: #d8d8d8;
    height: 2px;
    opacity: 0.35;
    width: 100%;
}

/* Контакты: телефоны+адрес | курсы+соцсети */

.site_footer_contacts_band {
    background-color: #efefef;
}

.site_footer_contacts {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    justify-content: space-between;
    padding: 40px 0;
}

.site_footer_info_col {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    gap: 20px;
    min-width: 0;
}

.site_footer_phones_widget ul {
    display: flex;
    gap: 10px 20px;
    flex-wrap: wrap;
}

.site_footer_phones_col > a,
.site_footer_phones_widget a {
    color: #474f55;
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.site_footer_phones_widget p {
    margin: 0;
}

.site_footer_phones_widget br + a,
.site_footer_phones_widget p + a,
.site_footer_phones_widget a + a {
    margin-top: 2px;
}

.site_footer_address_col {
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
}

.site_footer_address_col p {
    margin: 0 0 4px;
}

.site_footer_address_widget p {
    margin: 0 0 4px;
}

.site_footer_aside_col {
    align-items: center;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    flex-wrap: wrap;
    gap: 20px 28px;
    justify-content: flex-end;
    margin-left: auto;
}

.site_footer_social_col {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    gap: 10px;
    margin-top: -6px;
}

/* Логотипы оплаты под соцсетями */
.site_footer_payment_col {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    justify-content: flex-end;
    width: 100%;
}

.site_footer_payment_list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site_footer_payment_item {
    margin: 0;
}

.site_footer_payment_link {
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    height: 40px;
    justify-content: center;
    line-height: 0;
    min-width: 60px;
    padding: 4px 8px;
    text-decoration: none;
}

.site_footer_payment_img {
    display: block;
    height: 35px;
    max-height: 37px;
    max-width: 72px;
    object-fit: contain;
    width: auto;
}

.site_footer_rates_col {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    gap: 8px;
    min-width: 210px;
    max-width: 300px;
    padding: 14px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.site_footer_rates_title {
    color: #474f55;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
}

.site_footer_rates_content {
    color: #474f55;
    font-size: 14px;
    line-height: 1.4;
}

.site_footer_rates_content p {
    margin: 0;
}

.site_footer_rates_content table.rates {
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

.site_footer_rates_content table.rates td {
    padding: 3px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.site_footer_rates_content table.rates td:first-child {
    padding-right: 10px;
    color: #5b646b;
    font-weight: 500;
}

.site_footer_rates_content table.rates td:last-child {
    color: #2f363b;
}

.site_footer_rates_content table.rates td.rates_date {
    color: #8a9199;
    font-size: 12px;
    font-weight: 500;
    padding-bottom: 6px;
    text-align: left;
}

.site_footer_social_link {
    align-items: center;
    background-color: #1e241e;
    border-radius: 8px;
    display: flex;
    height: 40px;
    justify-content: center;
    transition: opacity 0.2s ease;
    width: 40px;
}

.site_footer_social_link:hover {
    opacity: 0.85;
}

.site_footer_social_link img {
    display: block;
    filter: brightness(0) invert(1);
    height: 20px;
    width: 20px;
}

.site_footer_social_widget ul {
    display: flex;
    gap: 15px;
}

.site_footer_social_widget a {
    align-items: center;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    height: 40px;
    justify-content: center;
    margin-bottom: 0;
    width: 40px;
}

.site_footer_social_widget img {
    filter: brightness(0) invert(1);
    height: 20px;
    width: 20px;
}

/* Низ: язык, ссылки, копирайт */

.site_footer_bottom_band {
    background-color: #efefef;
}

.site_footer_bottom {
    align-items: center;
    padding: 30px 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.site_footer_policy_links {
    align-items: center;
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: space-around;
    min-width: 0;
}

.site_footer_policy_links a {
    color: #474f55;
    font-size: 13px;
    line-height: 1.54;
    text-decoration: none;
    white-space: nowrap;
}

.site_footer_policy_links a:hover {
    color: var(--primary-color, #287ef5);
}

.site_footer_lang {
    position: relative;
}

.site_footer_lang_toggle {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    gap: 8px;
    padding: 5px 0;
    user-select: none;
}

.site_footer_lang_toggle::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23474f55' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    content: "";
    display: block;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 18px;
    height: 18px;
    width: 18px;
}

.site_footer_lang_toggle_arrow {
    display: inline-flex;
}

.site_footer_lang_dropdown {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    bottom: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: none;
    left: 0;
    min-width: 180px;
    padding: 6px 0;
    position: absolute;
    z-index: 2;
}

.site_footer_lang:hover .site_footer_lang_dropdown,
.site_footer_lang:focus-within .site_footer_lang_dropdown {
    display: block;
}

.site_footer_lang_dropdown ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.site_footer_lang_dropdown a {
    color: inherit;
    display: block;
    font-size: 13px;
    line-height: 2;
    padding: 0 12px;
    text-decoration: none;
    white-space: nowrap;
}

.site_footer_lang_dropdown a:hover {
    background-color: #f5f5f5;
}

.site_footer_lang_dropdown li.is_current {
    display: none;
}

.site_footer_links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
    gap: 16px 0;
}

.site_footer_links a {
    box-sizing: border-box;
    color: #474f55;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 16.666%;
    font-size: 13px;
    line-height: 1.54;
    min-width: 150px;
    padding-right: 16px;
    text-decoration: none;
}

.site_footer_links a:hover {
    color: var(--primary-color, #287ef5);
}

.site_footer_legal {
    color: #8a9199;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    margin-left: auto;
}

.site_footer_legal p {
    margin: 0;
}

.site_footer_rights {
    color: #8a9199;
}

.site_footer_copyright {
    color: #8a9199;
}

.site_footer_copyright_widget,
.site_footer_description {
    color: #8a9199;
    font-size: 12px;
    line-height: 1.6;
}

.site_footer_copyright_widget p,
.site_footer_description p {
    margin: 0 0 8px;
}

@media all and (max-width: 1200px) {
    .site_footer_menu_item {
        margin-right: 20px;
    }

    .site_footer_links a {
        flex-basis: 25%;
    }

    .site_footer_nav_container {
        flex-wrap: wrap;
        gap: 24px;
    }

    .site_footer_nav {
        flex-basis: 100%;
        order: 3;
    }

    .site_footer_menu {
        justify-content: flex-start;
    }

    .site_footer_cta_wrap {
        margin-left: auto;
    }
}

@media all and (max-width: 768px) {
    .site_footer {
        margin-top: 40px;
    }

    .site_footer_top_band .site_footer_logo {
        display: none;
    }

    .site_footer_nav {
        display: none;
    }

    .site_footer_nav_container {
        justify-content: center;
        padding: 40px 0 34px;
    }

    .site_footer_cta_wrap {
        margin-left: 0;
        width: 100%;
    }

    .site_footer_cta {
        height: 56px;
        line-height: 56px;
        width: 100%;
    }

    .site_footer_contacts {
        align-items: center;
        flex-direction: column;
        gap: 24px;
    }

    .site_footer_info_col {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .site_footer_phones_col,
    .site_footer_phones_widget {
        align-items: center;
        min-width: 0;
        text-align: center;
        width: 100%;
    }

    .site_footer_address_col {
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .site_footer_aside_col {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }

    .site_footer_rates_col {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .site_footer_rates_content table.rates {
        width: auto;
        margin: 0 auto;
    }

    .site_footer_rates_col {
        align-items: center;
    }

    .site_footer_social_col {
        align-items: center;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0;
        width: 100%;
    }

    .site_footer_social_widget {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .site_footer_payment_col {
        justify-content: center;
    }

    .site_footer_payment_list {
        justify-content: center;
    }

    .site_footer_bottom {
        justify-content: center;
        padding: 24px 0;
    }

    .site_footer_lang {
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }

    .site_footer_lang_toggle {
        justify-content: center;
    }

    .site_footer_policy_links,
    .site_footer_links {
        justify-content: center;
        margin-top: 24px;
        text-align: center;
        width: 100%;
    }

    .site_footer_policy_links a,
    .site_footer_links a {
        flex-basis: 100%;
        min-width: 0;
        padding-right: 0;
        white-space: normal;
    }

    .site_footer_legal {
        margin-left: 0;
        margin-top: 24px;
        text-align: center;
        width: 100%;
    }
}
