/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
    background: linear-gradient(120deg, #0f0f0f, #2b2b2b);
    color: #fff;
    padding: clamp(40px, 8vw, 60px) 0 clamp(30px, 5vw, 40px);
    font-family: inherit;
    margin-top: auto;
}

.footer .container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(15px, 4vw, 20px);
}

/* ============================= */
/* LOGO */
/* ============================= */

.footer__logo {
    margin-bottom: clamp(30px, 5vw, 40px);
    display: inline-block;
}

.footer__logo img {
    display: block;
    max-width: min(160px, 40vw);
    height: auto;
    transition: opacity 0.2s ease;
}

.footer__logo:hover img {
    opacity: 0.8;
}

/* ============================= */
/* NAVIGATION */


/* ============================= */

.footer__nav {
    margin-bottom: clamp(40px, 6vw, 50px);
}

.footer__title {
    font-size: clamp(18px, 3vw, 20px);
    font-weight: 600;
    margin-bottom: clamp(15px, 3vw, 20px);
    color: #ffffff;
    position: relative;
    padding-bottom: 8px;
}

/* Декоративная линия под заголовком (опционально) */
/* .footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
} */

/* Основное меню - БЕЗ точек */
.footer__menu {
    list-style: none;  
    padding: 0;
    margin: 0;
}

.footer__menu li {
    margin-bottom: clamp(8px, 1.5vw, 10px);
    list-style: none;  /* Дополнительная защита */
}

.footer__menu > li {
    list-style: none;  /* Для прямых потомков */
}

.footer__menu a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
    font-size: clamp(14px, 2vw, 16px);
}

.footer__menu a:hover {
    opacity: 0.7;
    transform: translateX(5px);
}

.footer__menu a:visited {
    color: #ffffff;
}

/* SUBMENU - ТОЛЬКО ЗДЕСЬ ЕСТЬ ТОЧКИ */
.footer__sublist {
    list-style: disc;  /* Точки ТОЛЬКО здесь */
    padding-left: 20px;
    margin-top: 8px;
}

.footer__sublist li {
    margin-bottom: 4px;
    list-style: disc;  /* Наследуем точки от родителя */
}

.footer__sublist a {
    font-size: clamp(13px, 1.8vw, 14px);
    opacity: 0.9;
}

/* Убираем трансформацию для touch устройств */
@media (hover: none) {
    .footer__menu a:hover {
        transform: none;
    }
}

@media (hover:hover) {
    .footer__menu a:hover {
        opacity: .7;
        transform: translateX(5px);
    }

    .footer__contacts a:hover {
        opacity: .7;
        transform: translateX(5px);
    }
}

/* ============================= */
/* INFO ROW */
/* ============================= */

.footer__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 40px);
    margin-bottom: clamp(30px, 4vw, 40px);
}

/* ============================= */
/* WORK HOURS */
/* ============================= */

.footer__hours p {
    margin: 4px 0;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.5;
    opacity: 0.9;
}

/* ============================= */
/* CONTACTS */
/* ============================= */

.footer__contacts a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: clamp(14px, 2vw, 16px);
    width: fit-content;
}

.footer__contacts a:hover {
    opacity: 0.7;
    transform: translateX(5px);
}

@media (hover: none) {
    .footer__contacts a:hover {
        transform: none;
    }
}

/* ============================= */
/* SOCIAL */
/* ============================= */

.footer__social {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    margin-top: clamp(10px, 2vw, 15px);
    flex-wrap: wrap;
}

/* Стили для иконок соцсетей (без точек) */
.footer__social a {
    width: clamp(40px, 7vw, 44px);
    height: clamp(40px, 7vw, 44px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    list-style: none;  /* Убираем точки */
}

.footer__social a.wa {
    background: #25D366;
}

.footer__social a.tg {
    background: #2AABEE;
}

.footer__social a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* ============================= */
/* COPYRIGHT */
/* ============================= */

.footer__bottom {
    text-align: center;
    opacity: 0.8;
    padding-top: clamp(20px, 4vw, 30px);
    margin-top: clamp(20px, 4vw, 30px);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .footer__info {
        gap: 30px;
    }
}

/* Планшеты и мобильные (до 768px) */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 25px;
    }

    .footer__info {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer__logo {
        margin-bottom: 25px;
        text-align: center;
    }

    .footer__logo img {
        margin: 0 auto;
    }

    .footer__nav {
        margin-bottom: 30px;
        text-align: left;
    }

    .footer__title {
        text-align: left;
    }

    .footer__title::after {
        left: 0;
        transform: none; 
        width: 40px;
    }

    .footer__menu {
        text-align: left;
    }

    .footer__menu a:hover {
        transform: none;
    }

    .footer__contacts a {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    .footer__hours {
        text-align: left;
    }

    .footer__social {
        justify-content: flex-start;
    }

    .footer__sublist {
        text-align: left;
        padding-left: 20px;
    }
}

/* Очень маленькие устройства (до 480px) */
@media (max-width: 480px) {
    .footer {
        padding: 30px 0 20px;
    }

    .footer__logo img {
        max-width: 140px;
    }

    .footer__title {
        font-size: 18px;
    }

    .footer__menu a {
        font-size: 14px;
    }

    .footer__hours p,
    .footer__contacts a {
        font-size: 14px;
    }

    .footer__social a {
        width: 40px;
        height: 40px;
    }

    .footer__bottom {
        font-size: 14px;
    }
}

/* Для лучшей читаемости на больших экранах */
@media (min-width: 1600px) {
    .footer .container {
        max-width: 1400px;
    }

    .footer__title {
        font-size: 22px;
    }

    .footer__menu a {
        font-size: 18px;
    }
}



.footer {
    animation: fadeInFooter 0.5s ease-out;
}

/* Фокус для доступности */
.footer a:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Страховка от точек везде */
.footer ul,
.footer li,
.footer div,
.footer nav,
.footer .footer__menu,
.footer .footer__nav {
    list-style: none;
}

/* Только подменю имеет точки */
.footer .footer__sublist,
.footer .footer__sublist li {
    list-style: disc;
}

/* ============================= */
/* FOOTER LAYOUT - 4 COLUMNS */
/* ============================= */

.footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* Логотип - первая колонка */
.footer__logo {
    grid-column: 1;
}

/* Навигация - вторая колонка */
.footer__nav {
    grid-column: 2;
    margin-bottom: 0;
}

/* Режим работы + Контакты - 3 и 4 колонки */
.footer__info {
    grid-column: 3 / 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 0;
}

.footer__hours {
    grid-column: 1;
}

.footer__contacts {
    grid-column: 2;
}

/* Копирайт - на всю ширину */
.footer__bottom {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* ============================= */
/* SOCIAL ICONS FIX */
/* ============================= */

.footer__social a.wa,
.footer__social a.tg {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp иконка */
.footer__social a.wa::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Telegram иконка */
.footer__social a.tg::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ============================= */
/* RESPONSIVE - 4 COL TO 2 COL TO 1 COL */
/* ============================= */

@media (max-width: 1024px) {
    .footer .container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer__logo {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer__nav {
        grid-column: 1;
    }
    
    .footer__info {
        grid-column: 2;
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer__logo,
    .footer__nav,
    .footer__info {
        grid-column: 1;
    }
    
    .footer__info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer__info {
        grid-template-columns: 1fr;
    }
}