/* Footer CSS - только необходимые стили для footer элементов */

:root {
    --main-dark-clr: #353433;
    --main-red-clr: #E23737;
}

/* Основные стили для footer */
.big_wrapper-footer {
    background: #F8F8F7;
}

.big_wrapper-footer .new-container {
    background: #F8F8F7;
}

.footer {
    padding: 48px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Footer blocks */
.footer-block__first {
    display: flex;
    flex-direction: column;
}

.footer-block___logo {
    margin-bottom: 32px;
    flex: 0 0 auto;
}

.footer-block__policy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-block__policy-text {
    color: #E23737;
    font-family: Inter-Regular, sans-serif;
    font-size: 15px;
    text-decoration: none;
}

.footer-block__policy-text:hover {
    color: #E23737;
}

.footer-block__third {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-block__fourth {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    white-space: nowrap;
    width: auto;
}

.footer-block__fourth a {
    width: 165px;
    max-width: 100%;
    font-family: Inter-Regular, sans-serif;
    color: var(--main-red-clr);
    font-size: 15px;
    text-align: left;
    text-decoration: none;
}

/* Footer contact */
.footer-contact-title {
    font-size: 22px;
    margin-bottom: 23px;
    width: 165px;
    max-width: 100%;
    font-family: Inter-SemiBold, sans-serif;
    white-space: nowrap;
}

.footer-block__phone {
    padding: 20px 0;
    color: #353433;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Inter-Regular, sans-serif;
    font-size: 15px;
}

.footer-block__phone:hover {
    color: #E23737;
}

.footer-block__phone img {
    width: 20px;
    height: 20px;
}

/* Footer app */
.footer-app {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.footer-app span {
    font-family: Inter-Regular, sans-serif;
    font-size: 13px;
    color: #353433;
}

.footer-app img {
    width: 48px;
    height: 48px;
}

/* Footer logo */
.header-menu__logo {
    display: block;
}

.header-menu__logo img {
    max-width: 100%;
    height: auto;
}

.footer_logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer copyright section */
.footer-copi {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 48px;
    width: 100%;
}

.footer-block__cop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
}

.footer-block__cop-text {
    color: #AAA6A1;
    font-family: Inter-Regular, sans-serif;
}

.footer-block__info {
    text-align: center;
    font-size: 15px;
    font-family: Inter-Regular, sans-serif;
}

footer .footer-copi .footer-block__cop {
    text-align: center;
    min-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

footer .footer-copi .footer-block__cop .footer-block__info {
    text-align: center;
}

.big_wrapper-footer .footer-copi {
    width: 100%;
    box-sizing: border-box;
}

/* Payment systems */
.pay_systems {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pay_systems img {
    width: 48px;
    height: auto;
}

/* Link buttons for footer */
.link_btn__light_footer {
    width: 283px;
    max-width: 100%;
    font-size: 15px;
    margin: 0 auto;
}

.footer-support-button span {
    font-size: 14px;
    font-family: Inter-Regular, sans-serif;
}

/* Second title (используется в footer) */
.second-title {
    font-family: Inter-SemiBold, sans-serif;
    font-size: 28px;
    color: #353433;
    margin: 0;
}

/* New container (общий класс, используется в footer) */
.big_wrapper-footer .new-container {
    background: #F8F8F7;
}

.new-container {
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Адаптив как на основном сайте (header.css / blogs footer) */
@media (max-width: 1250px) {
    .footer-block__list .footer-block__items {
        font-weight: 600;
    }
}

@media (max-width: 768px) {
    .footer {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px;
    }
    .footer-block__third {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }
    .footer-block___logo .header-menu__logo {
        max-width: 161px;
    }
}

@media (max-width: 500px) {
    .footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    .footer-block__third {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }
    .footer-block__fourth {
        grid-row: 2 / 3;
        align-items: center;
        gap: 20px;
    }
    .footer-block__fourth a {
        text-align: center;
    }
    .footer-contact-title {
        text-align: center;
        margin-bottom: 2px;
    }
    .footer-block___logo {
        margin-bottom: 0;
        text-align: center;
    }
    .footer-block__policy-text,
    footer .footer-copi .footer-block__cop .footer-block__info {
        text-align: center !important;
    }
    .footer-copi {
        padding-bottom: 0 !important;
    }
    .footer-block__cop {
        gap: 16px;
    }
    .big_wrapper-footer {
        padding-bottom: 32px;
    }
}

/* Стрелка «Наверх» (как на основном сайте; custom.css на AP не грузится) */
.arrow-up {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid #353433;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(53, 52, 51, 0.18);
    transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    box-sizing: border-box;
}
.arrow-up.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.arrow-up:hover {
    background: #F7F7F7;
}
.arrow-up svg {
    transform: rotate(-90deg);
    display: block;
    flex-shrink: 0;
}
.arrow-up svg path {
    stroke: #353433;
}
@media (max-width: 767px) {
    .arrow-up {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
}

