/* ============================================================
   Подвал (footer) — аккуратный единый вид.
   Загружается после style.css/responsive.css, переопределяет их.
   ============================================================ */

.footer-area-five {
    /* Константный тёмный фон: в тёмной теме --tg-heading-font-color
       переопределяется на белый, из-за чего подвал «пропадал». */
    background: var(--tg-black);
}

/* В тёмной теме тема красит .footer-top в синий (#0C192A) — перекрываем,
   чтобы фон подвала был единым тёмным в обоих режимах. */
[tg-theme=dark] .footer-top-four {
    background: var(--tg-black);
}

.footer-top-four {
    padding: 56px 0 36px;
}

.footer-widget {
    margin-bottom: 24px;
}

.footer-widget .fw-logo img {
    max-height: 64px;
    width: auto;
}

.footer-about {
    margin: 16px 0 0;
    max-width: 340px;
    color: var(--tg-gray-two);
    font-size: 15px;
    line-height: 1.6;
}

.footer-title {
    margin: 0 0 18px;
    font-weight: 700;
    font-size: 17px;
    color: var(--tg-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-title::after {
    content: "";
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: var(--tg-primary-color);
    display: block;
}

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

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

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--tg-gray-two);
    text-decoration: none;
    font-size: 15px;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--tg-primary-color);
}

/* Форма подписки */
.footer-newsletter {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.footer-newsletter input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #2b3b4e;
    border-radius: 4px;
    background: #1b2735;
    color: #fff;
    font-size: 15px;
}

.footer-newsletter input[type="email"]::placeholder {
    color: var(--tg-gray-two);
}

.footer-newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--tg-primary-color);
}

.footer-newsletter button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: var(--tg-primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.footer-newsletter button:hover {
    background: #fff;
    color: var(--tg-primary-color);
}

.footer-newsletter-note {
    margin: 0;
    color: var(--tg-gray-two);
    font-size: 13px;
    line-height: 1.5;
}

/* Нижняя полоса */
.footer-bottom-four {
    border-top: 1px solid #202e3f;
    padding: 20px 0;
}

.footer-bottom-four .copyright-text-three p {
    margin: 0;
    text-align: center;
    color: var(--tg-gray-two);
    font-size: 14px;
}

/* Выравнивание колонок: убираем жёсткий сдвиг второй колонки */
.footer-top-four .row > *:nth-child(2) .footer-widget {
    margin-left: 0;
}

@media (max-width: 991px) {
    .footer-top-four {
        padding: 44px 0 28px;
    }
}

@media (max-width: 575px) {
    .footer-newsletter {
        flex-direction: column;
    }

    .footer-newsletter button {
        width: 100%;
    }
}
