/* ========== FOOTER ========== */
.footer {
    background-color: #1A1A1A;
    color: #B0B0B0;
    padding: 60px 0 30px;
    font-size: var(--fs-small);
}

.footer a {
    color: #B0B0B0;
    transition: color var(--transition-normal);
}

.footer a:hover {
    color: var(--color-text-light);
}

/* Верхняя часть футера */
.footer__top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__column {
    display: flex;
    flex-direction: column;
}

/* Логотип */
.footer__logo {
    margin-bottom: 20px;
}

.footer__logo img {
    width: 150px;
    height: auto;
}

.footer__description {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #888;
}

/* Социальные сети */
.footer__social {
    display: flex;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 50px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.footer__social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

/* Заголовки колонок */
.footer__title {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Меню */
.footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__menu-item {
    margin-bottom: 12px;
}

.footer__menu-item:last-child {
    margin-bottom: 0;
}

.footer__menu-link {
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer__menu-link:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* Контакты */
.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__contact {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.footer__contact svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.footer__phone {
    display: block;
    font-size: var(--fs-medium);
    font-weight: var(--fw-bold);
    color: var(--color-text-light);
    text-decoration: none;
    margin-bottom: 4px;
}

.footer__phone-label {
    font-size: var(--fs-tiny);
    color: #888;
    display: block;
}

.footer__callback-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
}

/* Средняя часть: Подписка */
.footer__middle {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__subscribe {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.footer__subscribe-title {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.footer__subscribe-text {
    color: #888;
    margin-bottom: 20px;
}

.footer__subscribe-form {
    display: flex;
    gap: 10px;
}

.footer__subscribe-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text-light);
    font-family: var(--font-family);
    font-size: var(--fs-body);
    transition: all var(--transition-normal);
}

.footer__subscribe-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.15);
}

.footer__subscribe-input::placeholder {
    color: #888;
}

.footer__subscribe-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    white-space: nowrap;
}

/* Нижняя часть */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-tiny);
    color: #888;
}

.footer__copyright {
    flex-shrink: 0;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__bottom-link {
    text-decoration: none;
    color: #888;
    transition: color var(--transition-normal);
}

.footer__bottom-link:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

.footer__developer {
    flex-shrink: 0;
}

.footer__developer svg {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    vertical-align: middle;
}






/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ FOOTER ========== */
@media (max-width: 640px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer__top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    /* Первая колонка с логотипом и соцсетями - на всю ширину */
    .footer__column:first-child {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Логотип и соцсети в одной строке */
    .footer__column:first-child .footer__logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 0;
    }

    .footer__column:first-child .footer__logo img {
        width: 130px;
    }

    .footer__column:first-child .footer__social {
        display: flex;
        gap: 10px;
        margin: 0;
    }

    .footer__social-link {
        width: 32px;
        height: 32px;
    }

    .footer__social-link svg {
        width: 16px;
        height: 16px;
    }

    /* Текст описания */
    .footer__description {
        font-size: 14px;
        margin-bottom: 0;
        text-align: left;
    }

    /* Вторая и третья колонки - каждая по 1fr */
    .footer__column:nth-child(2),
    .footer__column:nth-child(3) {
        grid-column: span 1;
    }

    /* ПОСЛЕДНЯЯ КОЛОНКА (4-я) - НА ВСЮ ШИРИНУ */
    .footer__column:last-child {
        grid-column: 1 / -1; /* Растягиваем на всю ширину */
        width: 100%;
    }

    /* Заголовки колонок */
    .footer__title {
        font-size: 18px;
        margin-bottom: 16px;
        text-align: left;
    }

    /* Меню во 2 и 3 колонках */
    .footer__menu {
        text-align: left;
    }

    .footer__menu-item {
        margin-bottom: 10px;
    }

    .footer__menu-link {
        font-size: 14px;
    }

    /* Контакты в последней колонке — две колонки НА ВСЮ ШИРИНУ */
    .footer__column:last-child .footer__contact-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Две равные колонки */
        gap: 20px 16px;
        width: 100%;
    }

    .footer__contact {
        display: flex;
        gap: 10px;
        font-size: 14px;
        align-items: flex-start;
        text-align: left;
    }

    .footer__contact svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .footer__phone {
        font-size: 15px;
        line-height: 1.3;
    }

    .footer__phone-label {
        font-size: 11px;
    }

    /* Кнопка в последней колонке */
    .footer__column:last-child .footer__callback-btn {
        width: 100%;
        margin-top: 20px;
        padding: 12px;
        height: 44px;
        font-size: 15px;
    }

    /* Нижняя часть */
    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer__copyright {
        font-size: 12px;
    }

    .footer__links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ========== ЭКРАНЫ 360px И МЕНЬШЕ ========== */
@media (max-width: 360px) {
    .footer__top {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Все колонки на всю ширину */
    .footer__column {
        grid-column: 1 / -1 !important;
    }

    /* Первая колонка */
    .footer__column:first-child .footer__logo {
        flex-direction: column;
        gap: 12px;
    }

    .footer__column:first-child .footer__social {
        justify-content: center;
    }

    .footer__description {
        text-align: center;
    }

    /* Контакты в одну колонку */
    .footer__column:last-child .footer__contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer__links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========== ОБЩИЕ ПРАВКИ ========== */
.footer p {
    text-align: left;
}