/*
 * Footer CSS
 * ──────────────────────────────────────────────────────────
 * .site-footer       — основна обгортка (dark bg)
 * .footer-main       — grid: 3 колонки (меню / допомога / контакти)
 * .footer-col        — колонка з меню (footer-menu, footer-help)
 * .footer-contacts   — колонка контактів + соціальні мережі
 * .footer-bottom     — нижній рядок: рік / платіжки / конфіденційність
 */

/* CSS variable fallbacks */
:root {
    --font-body:      'Inter', sans-serif;
    --font-ui:        'Rubik', sans-serif;
    --color-text:     #111111;
    --color-accent:   #e00000;
    --color-muted:    #909090;
    --color-border:   #eaeaea;
    --color-bg:       #ffffff;
    --radius:         5px;
    --transition:     0.2s ease;
}


/* ═══════════════════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════════════════ */

.site-footer {
    background-color: #111;
    color: #fff;
}

.site-footer .container {
    padding-block: 60px 30px;
}


/* ═══════════════════════════════════════════════════════
   FOOTER MAIN — 3-колонкова сітка
═══════════════════════════════════════════════════════ */

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* ── Footer Column (меню) ────────────────────────────── */

.footer-col__title,
.footer-contacts__title {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: #fff;
    margin: 0 0 20px;
}

/* Список посилань меню */
.footer-col__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col__nav li {
    margin: 0;
    padding: 0;
}

.footer-col__nav a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col__nav a:hover {
    color: #fff;
}


/* ── Footer Contacts ─────────────────────────────────── */

/* Телефон / email */
.footer-contacts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contacts__link {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contacts__link:hover {
    color: #fff;
}

/* Соціальні іконки */
.footer-contacts__socials {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-contacts__social {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    transition: color var(--transition);
}

.footer-contacts__social:hover {
    color: #fff;
}

/* SVG icon size (40×40 згідно дизайну) */
.footer-contacts__social svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: block;
}


/* ═══════════════════════════════════════════════════════
   FOOTER BOTTOM — нижній рядок
═══════════════════════════════════════════════════════ */

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
}

/* Рік / копірайт */
.footer-bottom__copy {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-muted);
    white-space: nowrap;
}

/* Платіжні іконки — світлий контейнер */
.footer-bottom__payments {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.footer-bottom__pay-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
}

.footer-bottom__pay-icon {
    display: block;
    height: 28px;
    width: auto;
    flex-shrink: 0;
}

/* Посилання Конфіденційність */
.footer-bottom__privacy ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom__privacy li {
    margin: 0;
    padding: 0;
}

.footer-bottom__privacy a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.footer-bottom__privacy a:hover {
    color: #fff;
}


@media (max-width: 1023px) {
    .footer-main {
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .site-footer .container {
        padding-block: 40px 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 16px;
        padding-top: 16px;
    }

    .footer-bottom__payments {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .footer-bottom__pay-wrap {
        gap: 12px;
    }
}
