/* ==========================================
   Подвал (Footer)
   ========================================== */
.footer {
    background-color: var(--color-accent);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
    margin-top: 60px;
    /* Отступ от контента выше */
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Колонка 1: Лого и текст */
.footer__logo {
    display: block;
    margin-bottom: 24px;
}

.footer__logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer__sitename {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer__desc {
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 400px;
}

/* Заголовки колонок */
.footer__heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Меню навигации */
.footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__menu li {
    margin-bottom: 12px;
}

.footer__menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__menu a:hover {
    color: var(--color-gold);
}

/* Контакты */
.footer__contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.footer__link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--color-gold);
}

.footer__link--large {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

/* Иконки соцсетей */
.footer__socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer__social-link:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1);
}

.footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.footer__social-icon svg,
.footer__social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer__social-link--tg .footer__social-icon {
    color: #2AABEE;
}

.footer__social-link--maks .footer__social-icon {
    background-color: #0077FF;
    border-radius: 50%;
}

/* Нижняя часть (Копирайт и политика) */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__legal a:hover {
    color: #ffffff;
}

.footer__disclaimer {
    margin-top: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* ==========================================================================
   СТИЛИ АНИМАЦИИ КОПИРАЙТА РАЗРАБОТЧИКА
   ========================================================================== */
.footer__credits {
    text-align: right;
}

.footer__copyright-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;

    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.5) 40%,
            var(--color-gold, #C59B27) 50%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0.5) 100%);
    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    animation: shine 4s linear infinite;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer__copyright-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(197, 155, 39, 0.3);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ==========================================
   Чекбокс согласия в формах
   ========================================== */
.form-agreement {
    margin: 16px 0 24px;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    /* Жестко выстраиваем в одну линию */
    flex-wrap: nowrap !important;
    /* Строго запрещаем перенос текста под чекбокс */
    align-items: flex-start !important;
    cursor: pointer;
    gap: 12px !important;
}

/* Прячем системный чекбокс */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Наш кастомный квадратик */
.checkbox-custom {
    flex: 0 0 20px !important;
    /* Жестко фиксируем размер */
    min-width: 20px !important;
    min-height: 20px !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    border: 1px solid rgba(197, 155, 39, 0.4);
    border-radius: 4px;
    background-color: #fff;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

/* Галочка */
.checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-gold, #C59B27);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Состояние нажатия */
.checkbox-label input[type="checkbox"]:checked~.checkbox-custom::after {
    display: block;
}

/* Фокус для клавиатуры */
.checkbox-label input[type="checkbox"]:focus-visible~.checkbox-custom {
    outline: 2px solid var(--color-gold, #C59B27);
    outline-offset: 2px;
}

/* Текст */
.checkbox-text {
    font-size: 12px;
    color: var(--color-text-muted, #666);
    line-height: 1.4;
    display: block !important;
}

.checkbox-text a {
    color: var(--color-gold, #C59B27);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-text a:hover {
    text-decoration: none;
    color: #000;
}

/* ==========================================
   Адаптив (Мобильные)
   ========================================== */
@media (max-width: 991px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer__credits {
        text-align: center;
    }
}