
/* ============================================================
   FOOTER STYLES
   ============================================================ */

.site-footer {
    background: var(--color-secondary-dark, #0B0B0C);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .site-footer {
    background: #f5f3ef;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
    text-decoration: none;
    line-height: 1.2;
}

.logo-img {
    max-height: 140px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-gold, #C89A5B);
    line-height: 1;
}

.logo-text .gold {
    color: var(--color-gold, #C89A5B);
}

.logo-subtitle {
    font-family: var(--font-sans, 'Manrope', sans-serif);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary, #A6A3A0);
    opacity: 0.5;
    margin-top: 4px;
    line-height: 1;
}

/* ============================================================
   FOOTER TOP — сетка
   ============================================================ */

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-text-secondary, #A6A3A0);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(200, 154, 91, 0.15);
    border-radius: 50%;
    color: var(--color-text-secondary, #A6A3A0);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: rgba(200, 154, 91, 0.1);
    border-color: var(--color-gold, #C89A5B);
    color: var(--color-gold, #C89A5B);
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER COLUMNS — 3 колонки
   ============================================================ */

.footer-columns {
    display: grid;
    grid-template-columns: 0.6fr 1fr 1.4fr;   /* ← «Контакты» шире */
    gap: 40px;
}

.footer-title {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 18px;
    color: var(--color-text-primary, #F5F3EF);
    margin-bottom: 20px;
}

[data-theme="light"] .footer-title {
    color: #111111;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-secondary, #A6A3A0);
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--color-gold, #C89A5B);
}

.footer-links a i {
    width: 18px;
    color: var(--color-gold, #C89A5B);
    font-size: 14px;
}

/* ============================================================
   FOOTER BOTTOM — copyright
   ============================================================ */

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom .copyright {
    font-size: 13px;
    color: var(--color-text-secondary, #A6A3A0);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--color-text-secondary, #A6A3A0);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--color-gold, #C89A5B);
}

/* ============================================================
   ЛОГО-КАРТИНКА В ФУТЕРЕ (themed-image)
   ============================================================ */

.footer-brand .logo-link.logo-link--image {
    flex-direction: row;
    align-items: center;
}

.footer-brand .logo-image-wrapper {
    position: relative;
    display: block;
    width: auto;
    height: 60px;
    max-width: 220px;
    overflow: hidden;
}

.footer-brand .logo-image-wrapper .themed-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.footer-brand .logo-image-wrapper .themed-img.ti-light {
    opacity: 0;
}
.footer-brand .logo-image-wrapper .themed-img.ti-dark {
    opacity: 0;
}
html[data-theme="light"] .footer-brand .logo-image-wrapper .themed-img.ti-light {
    opacity: 1;
}
html[data-theme="dark"] .footer-brand .logo-image-wrapper .themed-img.ti-dark {
    opacity: 1;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-brand {
        text-align: center;
    }
    .footer-brand .logo-link {
        align-items: center;
    }
    .footer-brand .logo-image-wrapper .themed-img {
        object-position: center;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-column {
        text-align: center;
    }
    .footer-links a {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        flex-direction: column;
        gap: 4px;
    }
    .footer-socials a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .logo-img {
        max-height: 100px;
    }
    .logo-text {
        font-size: 24px;
    }
    .footer-brand .logo-image-wrapper {
        height: 50px;
        max-width: 180px;
    }
}
/* ============================================================
   FOOTER — БЛОК ОПЛАТЫ
   ============================================================ */

.footer-payment-links {
    margin-bottom: 16px;
}

.footer-payment-links li a {
    align-items: center;
}

.footer-payment-note {
    font-size: 12px;
    color: var(--color-text-muted, #A6A3A0);
    opacity: 0.7;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .footer-payment-note {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.footer-payment-webpay {
    color: var(--color-gold, #C89A5B) !important;
    font-weight: 500;
}

.footer-payment-webpay:hover {
    color: var(--color-gold-light, #D8B477) !important;
}

/* ---------- Логотипы платёжных систем в футере ---------- */

.footer-payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    align-items: center;
}

[data-theme="light"] .footer-payment-logos {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.footer-payment-logos img {
    height: 24px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 3px;
}

.footer-payment-logos img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* На мобильных — центрируем */
@media (max-width: 992px) {
    .footer-payment-logos {
        justify-content: center;
    }
    .footer-payment-note {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-payment-logos img {
        height: 20px;
    }
}

/* ============================================================
   FOOTER — КОНТАКТЫ (адрес, телефон, УНП, режим работы)
   ============================================================ */

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

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary, #A6A3A0);
    line-height: 1.5;
    margin-bottom: 0;
}

.footer-contacts li i {
    width: 18px;
    color: var(--color-gold, #C89A5B);
    font-size: 14px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contacts li a {
    color: var(--color-text-secondary, #A6A3A0);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-contacts li a:hover {
    color: var(--color-gold, #C89A5B);
}

.footer-contacts li a i {
    margin-top: 0;
}

/* Специальные классы для адреса / часов / УНП */
.footer-address span,
.footer-hours span,
.footer-unp span {
    color: var(--color-text-secondary, #A6A3A0);
}

/* ============================================================
   FOOTER — ИКОНКИ СОЦСЕТЕЙ
   ============================================================ */

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(200, 154, 91, 0.2);
    color: var(--color-text-secondary, #A6A3A0);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: rgba(200, 154, 91, 0.1);
    border-color: var(--color-gold, #C89A5B);
    color: var(--color-gold, #C89A5B);
    transform: translateY(-3px);
}

[data-theme="light"] .footer-socials a {
    border-color: rgba(184, 115, 79, 0.2);
}

[data-theme="light"] .footer-socials a:hover {
    background: rgba(184, 115, 79, 0.08);
    border-color: var(--color-gold, #B8734F);
    color: var(--color-gold, #B8734F);
}

/* Мобильные — центрируем */
@media (max-width: 992px) {
    .footer-socials {
        justify-content: center;
    }
    .footer-contacts li {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-socials a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .footer-contacts li {
        font-size: 13px;
    }
}
