/* --- НОВЫЕ, УЛУЧШЕННЫЕ СТИЛИ ДЛЯ ФУТЕРА И ВОЛНЫ --- */
.footer {
    position: relative;
    background-color: #18191e;
    color: #f5f5f5;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    /* Создаем пространство для волны с помощью margin-top */
    margin-top: 100px;
}

.footer-wave {
    position: absolute;
    /* Позиционируем волну так, чтобы ее низ был вровень с верхом футера */
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 100px;
    /* Высота волны на десктопе */
    overflow: hidden;
    line-height: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 7% 40px;
    position: relative;
}

/* Брендовая секция */
.footer-section.brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: linear-gradient(45deg, #e0a96d, #f2d0a9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #d0d0d0;
    margin-bottom: 24px;
    font-style: italic;
}

/* Социальные иконки */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e0a96d, #c89356);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icons a:hover:before {
    opacity: 1;
}

.social-icons a i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Общие стили секций */
.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    color: #fff;
    font-weight: 600;
    padding-bottom: 12px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e0a96d, transparent);
    border-radius: 2px;
}

/* Секции ссылок */
.footer-section.categories ul,
.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.categories li,
.footer-section.links li {
    margin-bottom: 14px;
}

.footer-section.categories a,
.footer-section.links a {
    color: #d0d0d0;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    position: relative;
    padding-left: 18px;
}

.footer-section.categories a:before,
.footer-section.links a:before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: #e0a96d;
    opacity: 0.7;
    transition: all 0.3s;
}

.footer-section.categories a:hover,
.footer-section.links a:hover {
    color: #e0a96d;
    transform: translateX(5px);
}

.footer-section.categories a:hover:before,
.footer-section.links a:hover:before {
    opacity: 1;
    transform: translateX(3px);
}

/* Контактная секция */
.footer-section.contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.footer-section.contact .contact-item i {
    color: #e0a96d;
    font-size: 1.1rem;
    margin-right: 15px;
    margin-top: 3px;
}

.footer-section.contact .contact-item span {
    color: #d0d0d0;
    line-height: 1.5;
}

/* Улучшенная секция подписки */
.footer-section.subscribe {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section.subscribe p {
    color: #d0d0d0;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.subscribe-form .form-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    max-width: 320px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.subscribe-form input {
    width: 100%;
    padding: 14px 55px 14px 20px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.subscribe-form input:focus {
    outline: none;
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-form .form-group:focus-within {
    box-shadow: 0 0 0 2px rgba(224, 169, 109, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-form button {
    position: absolute;
    right: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(45deg, #e0a96d, #c89356);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.subscribe-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(224, 169, 109, 0.7);
}

/* Стилизованный чекбокс */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #aaa;
    user-select: none;
    margin-bottom: 10px;
    line-height: 1.4;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.2s;
}

.custom-checkbox:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.2);
}

.custom-checkbox input:checked~.checkmark {
    background: linear-gradient(45deg, #e0a96d, #c89356);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    position: relative;
    top: 2px;
}

/* Средняя секция футера */
.footer-middle {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 7%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payments,
.delivery {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Позволяет иконкам переноситься на новую строку */
}

.payments span,
.delivery span {
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap; /* Предотвращает перенос текста */
}

.payment-icons,
.delivery-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Позволяет иконкам переноситься на новую строку */
}

.payment-icons i,
.delivery-icons i {
    font-size: 1.5rem;
    color: #d0d0d0;
    transition: color 0.3s;
}

.payment-icons i:hover,
.delivery-icons i:hover {
    color: #e0a96d;
}

/* Нижняя часть футера */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px 7%;
    background-color: rgba(0, 0, 0, 0.3);
}

.copyright p {
    margin: 0;
    color: #999;
    font-size: 0.9rem;
}

.age-restriction {
    margin-top: 5px !important;
    font-size: 0.8rem !important;
    color: #777 !important;
}

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

.footer-legal a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.footer-legal a:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #e0a96d;
    transition: width 0.3s;
}

.footer-legal a:hover {
    color: #e0a96d;
}

.footer-legal a:hover:after {
    width: 100%;
}

/* Кнопка скролла наверх */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #e0a96d, #c89356);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Медиа-запросы */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-middle {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .payments,
    .delivery {
        justify-content: center;
        width: 100%; /* Занимает полную ширину */
    }
    
    .payment-icons, 
    .delivery-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Отдельный медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .footer {
        margin-top: 50px;
        /* Уменьшаем отступ */
    }

    .footer-wave {
        height: 29px;
        /* Уменьшаем высоту волны */
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        padding: 40px 5% 30px;
    }

    .footer-section.brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }

    #scroll-to-top {
        bottom: 20px;
        right: 20px;
    }

    .subscribe-form .form-group {
        margin-left: auto;
        margin-right: auto;
    }

    .custom-checkbox {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section.brand {
        grid-column: span 1;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .footer-section.contact .contact-item {
        justify-content: center;
    }

    .footer-section.categories a:before,
    .footer-section.links a:before {
        display: none;
    }

    .footer-section.categories a,
    .footer-section.links a {
        padding-left: 0;
    }
}

.whatsapp-contact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-text {
    color: #d0d0d0;
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-align: center;
}

.whatsapp-tooltip {
    position: relative;
    display: inline-block;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.tooltip-text {
    visibility: hidden;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.whatsapp-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.telegram-contact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0088cc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
}

.telegram-btn i {
    font-size: 1.3rem;
}

.telegram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 136, 204, 0.4);
}

.telegram-tooltip {
    position: relative;
    display: inline-block;
}

.telegram-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}