/* Стили шаблона footer.php. Порядок правил и подключения сохранён; файл кэшируется браузером. */
.age-verification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.age-verification.active {
    display: block;
}

.age-verification__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.age-verification__modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #141414 0%, #333 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.age-verification__content {
    text-align: center;
}

.age-verification__title {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.age-verification__text {
    color: #ccc;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.age-verification__buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.age-verification__button {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.age-verification__button--confirm {
    background: #c4455c;
    color: white;
}

.age-verification__button--confirm:hover {
    background: #b45d6d;
}

.age-verification__button--decline {
    background: transparent;
    color: #999;
    border: 2px solid #555;
}

.age-verification__button--decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.age-verification__note {
    color: #777;
    font-size: 12px;
    margin-top: 20px;
    line-height: 1.4;
}

/* ============================================================
   КРАСИВЫЕ COOKIES ПОД СТИЛЬ MIRACLE
============================================================ */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -180px;
    z-index: 9999;
    padding: 0 20px 22px;
    opacity: 0;
    pointer-events: none;
    transition: bottom 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.active {
    bottom: 0;
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner__content {
    position: relative;
    width: min(1350px, 100%);
    margin: 0 auto;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(196, 69, 92, 0.16), transparent 320px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        rgba(35, 34, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cookie-banner__content::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c4455c, transparent);
    opacity: 0.9;
}

.cookie-banner__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d75970;
    background: rgba(196, 69, 92, 0.13);
    border: 1px solid rgba(196, 69, 92, 0.32);
    flex: 0 0 auto;
}

.cookie-banner__icon svg {
    width: 25px;
    height: 25px;
    display: block;
}

.cookie-banner__body {
    min-width: 0;
}

.cookie-banner__title {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.cookie-banner__text {
    margin: 0;
    max-width: 88ch;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.cookie-banner__link {
    color: #d75970;
    text-decoration: none;
    font-weight: 750;
    border-bottom: 1px solid rgba(215, 89, 112, 0.45);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.cookie-banner__link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.cookie-banner__button {
    min-width: 138px;
    min-height: 44px;
    padding: 12px 22px;
    border: 1px solid #c4455c;
    border-radius: 999px;
    background: #c4455c;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 850;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.cookie-banner__button:hover {
    background: #d75970;
    border-color: #d75970;
}

/* Стили для кнопки техподдержки */
.footer__support-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    background: #c4455c;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.footer__support-btn:hover {
    background: transparent;
    border-color: #c4455c;
    color: #c4455c;
}

/* Адаптивность для кнопки */
@media (max-width: 900px) {
    .footer__support-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .age-verification__modal {
        padding: 30px 20px;
        width: 95%;
    }
    
    .age-verification__title {
        font-size: 24px;
    }
    
    .age-verification__text {
        font-size: 14px;
    }
    
    .age-verification__button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .cookie-banner {
        padding: 0 12px 14px;
        bottom: -240px;
    }

    .cookie-banner.active {
        bottom: 0;
    }
    
    .cookie-banner__content {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
        border-radius: 18px;
    }

    .cookie-banner__icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .cookie-banner__body {
        padding-right: 0;
    }

    .cookie-banner__title {
        font-size: 14px;
    }
    
    .cookie-banner__text {
        font-size: 12px;
        line-height: 1.45;
    }
    
    .cookie-banner__button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 42px;
        padding: 11px 18px;
        font-size: 13px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .age-verification__title {
        font-size: 22px;
    }
    
    .age-verification__text {
        font-size: 13px;
    }
    
    .cookie-banner {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 12px;
    }

    .cookie-banner__content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 16px 14px;
    }

    .cookie-banner__icon {
        margin: 0 auto;
    }

    .cookie-banner__text {
        text-align: center;
        font-size: 12px;
    }

    .cookie-banner__button {
        max-width: 100%;
    }
}

#cookie-banner {
    display: none;
}

/* ============================================================
   ПОДБОР АНКЕТ В FOOTER
============================================================ */

.footer__column--anketa-pick {
    position: relative;
    width: min(560px, 42vw);
    min-width: 460px;
}

.footer-pick {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 8px;
    padding-bottom: 6px;
}

.footer-pick__item {
    position: static;
    min-width: 0;
}

.footer-pick__item > summary {
    list-style: none;
}

.footer-pick__item > summary::-webkit-details-marker {
    display: none;
}

.footer-pick__trigger {
    min-height: 34px;
    padding: 0 0 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, 0.70);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-pick__trigger:hover,
.footer-pick__item[open] > .footer-pick__trigger {
    color: #ffffff;
    border-color: rgba(196, 69, 92, 0.72);
}

.footer-pick__name {
    position: relative;
    min-width: 0;
    padding-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-pick__name::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: rgba(196, 69, 92, 0.62);
    transition: background 0.18s ease;
}

.footer-pick__trigger:hover .footer-pick__name::before,
.footer-pick__item[open] .footer-pick__name::before {
    background: #c4455c;
}

.footer-pick__arrow {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.18s ease, rotate 0.18s ease;
}

.footer-pick__trigger:hover .footer-pick__arrow,
.footer-pick__item[open] .footer-pick__arrow {
    color: #c4455c;
}

.footer-pick__item[open] .footer-pick__arrow {
    rotate: 90deg;
}

.footer-pick__dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    z-index: 100;
    width: 700px;
    max-height: 340px;
    padding: 16px 18px 18px;
    display: none;
    overflow-y: auto;
    background: #242321;
    border: 1px solid #44413f;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.footer-pick__item[open] > .footer-pick__dropdown,
.footer-pick__item:hover > .footer-pick__dropdown,
.footer-pick__item:focus-within > .footer-pick__dropdown {
    display: block;
}

.footer-pick__dropdown-title {
    margin-bottom: 12px;
    padding-bottom: 11px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.footer-pick__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
}

.footer-pick__links a {
    min-width: 0;
    padding: 8px 9px;
    display: block;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.35;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.footer-pick__links a:hover {
    color: #ffffff;
    background: rgba(196, 69, 92, 0.12);
    border-color: rgba(196, 69, 92, 0.28);
}

@media (max-width: 1250px) {
    .footer__column--anketa-pick {
        width: min(500px, 44vw);
        min-width: 420px;
    }

    .footer-pick {
        column-gap: 18px;
    }
}

@media (max-width: 1000px) {
    .footer__column--anketa-pick {
        width: 100%;
        min-width: 0;
    }

    .footer-pick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-pick__dropdown {
        width: min(100%, 680px);
    }
}

@media (max-width: 768px) {
    .footer-pick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 8px;
    }

    .footer-pick__item {
        position: relative;
    }

    .footer-pick__dropdown {
        position: static;
        width: 100%;
        max-height: 280px;
        margin-top: 8px;
        padding: 12px;
        border-top-width: 1px;
        box-shadow: none;
    }

    .footer-pick__item:hover:not([open]) > .footer-pick__dropdown {
        display: none;
    }

    .footer-pick__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .footer-pick__links {
        grid-template-columns: 1fr;
    }

    .footer-pick__trigger {
        min-height: 38px;
    }
}



/* ============================================================
   FOOTER: 4 КОЛОНКИ В ОДНУ СТРОКУ
   Лого | Меню | Подбор анкет | Информация
============================================================ */

@media (min-width: 1101px) {
    .footer__inner {
        display: grid;
        grid-template-columns:
            minmax(280px, 1.15fr)
            minmax(125px, 0.48fr)
            minmax(430px, 1.70fr)
            minmax(145px, 0.58fr);
        align-items: start;
        column-gap: 36px;
        row-gap: 0;
    }

    .footer__left,
    .footer__column,
    .footer__column--anketa-pick {
        min-width: 0;
        width: auto;
    }

    .footer__column--anketa-pick {
        position: relative;
    }

    .footer-pick {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 8px;
    }

    .footer-pick__dropdown {
        left: 0;
        right: auto;
        width: 100%;
        min-width: 0;
        border: 1px solid rgba(255,255,255,0.16);
        border-radius: 8px;
        background: #242321;
        box-shadow: 0 14px 34px rgba(0,0,0,0.34);
    }
}

@media (min-width: 1101px) and (max-width: 1280px) {
    .footer__inner {
        grid-template-columns:
            minmax(245px, 1fr)
            minmax(110px, 0.42fr)
            minmax(390px, 1.55fr)
            minmax(130px, 0.52fr);
        column-gap: 26px;
    }

    .footer-pick {
        column-gap: 14px;
    }

    .footer-pick__trigger {
        font-size: 13px;
    }
}

@media (max-width: 1100px) {
    .footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__column--anketa-pick {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .footer__inner {
        grid-template-columns: 1fr;
    }
}
