
/* =========================================================
   footer.css — Footer Elitautocolor
   Desktop + адаптивная мобильная версия
   ========================================================= */

.footer {
    background: var(--color-bg-dark, #252D36);
    color: var(--color-text-invert, #F5F7FA);
    font-size: var(--fs-sm, 14px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* =========================================================
   ОСНОВНАЯ СЕТКА — DESKTOP
   ========================================================= */

.footer__inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(190px, 0.9fr)
        minmax(250px, 1.15fr);
    gap: 42px;
    padding-block: 56px;
}

.footer__col {
    min-width: 0;
}

.footer__col--navigation,
.footer__col--contacts {
    border-left: 1px solid rgba(210, 220, 230, 0.2);
    padding-left: 40px;
}

/* =========================================================
   1. БРЕНД И ЛОГОТИП
   ========================================================= */

.footer__brand-head {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.footer__emblem {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    background: transparent !important;
    text-decoration: none;
}

.footer__logo-image {
    display: block;
    width: 145px;
    height: 205px;
    object-fit: contain;
    object-position: center top;
    background: transparent;
    border: none;
    box-shadow: none;
}

.footer__brand-content {
    min-width: 0;
    padding-top: 2px;
}

.footer__logo {
    display: inline-block;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.footer__desc {
    color: rgba(245, 247, 250, 0.7);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.footer__accent-line {
    width: 42px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-accent, #E6324B);
}

/* =========================================================
   ПРЕИМУЩЕСТВА
   ========================================================= */

.footer__features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.footer__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: rgba(245, 247, 250, 0.76);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.footer__feature-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.62);
}

/* =========================================================
   2. НАВИГАЦИЯ И КАТЕГОРИИ
   ========================================================= */

.footer__title {
    margin: 2px 0 24px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__link,
.footer__text {
    display: inline-flex;
    align-items: flex-start;
    gap: 11px;
    color: rgba(245, 247, 250, 0.76) !important;
    text-decoration: none;
    line-height: 1.5;
    transition: color var(--transition, 150ms ease);
}

.footer__link:hover,
.footer__social:hover {
    color: var(--color-accent, #E6324B) !important;
}

.footer__list--nav .footer__link {
    display: inline-flex;
    width: fit-content;
}

.footer__separator {
    height: 1px;
    width: 100%;
    margin: 25px 0 21px;
    background: rgba(210, 220, 230, 0.2);
}

.footer__list--categories {
    gap: 13px;
}

.footer__list--categories .footer__link {
    font-size: 13px;
}

/* =========================================================
   3. КОНТАКТЫ
   ========================================================= */

.footer__list--contacts {
    gap: 17px;
}

.footer__list--contacts .footer__link,
.footer__text {
    font-size: 13px;
}

.footer__list--contacts svg,
.footer__text svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: rgba(245, 247, 250, 0.62);
}

/* =========================================================
   СОЦИАЛЬНЫЕ СЕТИ
   ========================================================= */

.footer__socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin: 25px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(210, 220, 230, 0.2);
    list-style: none;
}

.footer__social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 247, 250, 0.76) !important;
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition, 150ms ease);
}

.footer__social-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* =========================================================
   НИЖНЯЯ СТРОКА
   ========================================================= */

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.13);
}

.footer__bottom-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-block: 17px;
    color: rgba(245, 247, 250, 0.48);
    font-size: 11px;
}

.footer__copy,
.footer__dev {
    margin: 0;
}

.footer__dev-link {
    color: var(--color-text-invert, #FFFFFF);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.footer__dev-link:hover,
.footer__dev-link:focus-visible {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =========================================================
   ПЛАНШЕТЫ
   ========================================================= */

@media (max-width: 1100px) and (min-width: 768px) {

    .footer__inner {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(180px, 0.8fr)
            minmax(230px, 1fr);
        gap: 26px;
    }

    .footer__col--navigation,
    .footer__col--contacts {
        padding-left: 25px;
    }

    .footer__brand-head {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 14px;
    }

    .footer__logo-image {
        width: 120px;
        height: 180px;
    }

    .footer__features {
        gap: 14px;
    }
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 767px) {

    /* Общая структура */

    .footer {
        margin-top: 0;
        overflow: hidden;
    }

    .footer__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .footer__col {
        min-width: 0;
        width: 100%;
    }

    /* Убираем боковые разделители */

    .footer__col--navigation,
    .footer__col--contacts {
        border-left: 0;
        border-top: 1px solid rgba(210, 220, 230, 0.2);
        padding: 22px 0 0;
    }

    /* БРЕНД */

    .footer__brand-head {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        max-width: 100%;
    }

    .footer__emblem {
        width: 100%;
        justify-content: center;
    }

    .footer__logo-image {
        width: 100px;
        height: 145px;
        object-fit: contain;
        object-position: center top;
    }

    .footer__brand-content {
        min-width: 0;
        padding-top: 4px;
    }

    .footer__logo {
        font-size: 21px;
        line-height: 1.2;
        margin-bottom: 9px;
    }

    .footer__desc {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .footer__accent-line {
        width: 40px;
        height: 3px;
    }

    /* ПРЕИМУЩЕСТВА — СЕТКА 2x2 */

    .footer__features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
        margin-top: 22px;
        padding: 0;
    }

    .footer__feature {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
        font-size: 13px;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .footer__feature-icon {
        flex: 0 0 19px;
        width: 19px;
        height: 19px;
    }

    /* ЗАГОЛОВКИ */

    .footer__title {
        font-size: 12px;
        margin: 0 0 17px;
    }

    /* НАВИГАЦИЯ */

    .footer__list--nav {
        gap: 13px;
    }

    .footer__list--nav .footer__link {
        font-size: 13px;
    }

    /* РАЗДЕЛИТЕЛЬ */

    .footer__separator {
        margin: 19px 0 17px;
    }

    /* КАТЕГОРИИ — ДВЕ КОЛОНКИ */

    .footer__list--categories {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
    }

    .footer__list--categories li {
        min-width: 0;
    }

    .footer__list--categories .footer__link {
        display: inline-flex;
        font-size: 12px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    /* КОНТАКТЫ */

    .footer__list--contacts {
        gap: 13px;
    }

    .footer__list--contacts .footer__link,
    .footer__list--contacts .footer__text,
    .footer__text {
        font-size: 12px;
        line-height: 1.45;
    }

    .footer__list--contacts svg,
    .footer__text svg {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
    }

    /* СОЦИАЛЬНЫЕ СЕТИ */

    .footer__socials {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px 18px;
        margin-top: 19px;
        padding-top: 16px;
    }

    .footer__social {
        gap: 6px;
        font-size: 12px;
    }

    .footer__social-icon {
        width: 19px;
        height: 19px;
    }

    /* НИЖНЯЯ СТРОКА */

    .footer__bottom-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 6px;
        padding-top: 14px;
        padding-bottom: 14px;
        font-size: 10px;
    }

    .footer__copy,
    .footer__dev {
        line-height: 1.4;
    }

    .footer__dev-link {
        font-size: 12px;
    }
}

/* =========================================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ — ДО 420 PX
   ========================================================= */

@media (max-width: 420px) {

    .footer__inner {
        gap: 23px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .footer__brand-head {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
    }

    .footer__logo-image {
        width: 92px;
        height: 135px;
    }

    .footer__logo {
        font-size: 19px;
    }

    .footer__desc {
        font-size: 11px;
    }

    .footer__features {
        gap: 14px 9px;
        margin-top: 19px;
    }

    .footer__feature {
        font-size: 12px;
        gap: 7px;
    }

    .footer__feature-icon {
        flex-basis: 17px;
        width: 17px;
        height: 17px;
    }

    .footer__col--navigation,
    .footer__col--contacts {
        padding-top: 19px;
    }
}

/* =========================================================
   СОВСЕМ УЗКИЕ ЭКРАНЫ — ДО 359 PX
   ========================================================= */

@media (max-width: 359px) {

    .footer__brand-head {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
    }

    .footer__logo-image {
        width: 82px;
        height: 125px;
    }

    .footer__logo {
        font-size: 17px;
    }

    .footer__desc {
        font-size: 10px;
    }

    .footer__feature {
        font-size: 11px;
    }

    .footer__features {
        gap: 12px 7px;
    }

    .footer__list--categories {
        gap: 11px 12px;
    }

    .footer__list--categories .footer__link {
        font-size: 11px;
    }
}
