.home2-cookie__banner[hidden],
.home2-cookie__backdrop[hidden],
.home2-cookie__manage[hidden] {
    display: none !important;
}

body.home2-cookie-locked {
    overflow: hidden;
    overscroll-behavior: none;
}

.home2-cookie__banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 980;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 28px;
    width: min(1120px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 102, 92, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(17, 19, 24, 0.96) 0%, rgba(10, 11, 14, 0.98) 100%);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    backdrop-filter: blur(22px);
    transform: translateX(-50%);
}

.home2-cookie__banner-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home2-cookie__kicker {
    margin: 0;
    color: var(--home2-accent-soft);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home2-cookie__banner h2,
.home2-cookie__panel h2 {
    margin: 0;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    line-height: 1.06;
    color: var(--home2-text);
}

.home2-cookie__banner p,
.home2-cookie__panel p,
.home2-cookie__list {
    margin: 0;
    color: var(--home2-muted);
    line-height: 1.65;
}

.home2-cookie__policy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home2-stone);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 102, 92, 0.55);
    text-underline-offset: 4px;
}

.home2-cookie__banner-actions,
.home2-cookie__panel-actions {
    display: grid;
    gap: 12px;
}

.home2-cookie__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(29, 31, 38, 0.92), rgba(18, 20, 26, 0.96));
    color: var(--home2-text);
    font-family: "Manrope", sans-serif;
    font-size: 0.99rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 28px rgba(0, 0, 0, 0.22);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.home2-cookie__action--primary {
    border-color: rgba(255, 91, 81, 0.7);
    background: linear-gradient(135deg, #ff4343 0%, #cf1111 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 16px 36px rgba(208, 17, 17, 0.24);
    color: #fff;
}

.home2-cookie__action--secondary {
    border-color: rgba(255, 102, 92, 0.34);
    background: linear-gradient(180deg, rgba(26, 24, 29, 0.9), rgba(16, 18, 24, 0.96));
}

.home2-cookie__action--ghost {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(245, 239, 232, 0.94);
}

.home2-cookie__action:hover,
.home2-cookie__action:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 102, 92, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 36px rgba(0, 0, 0, 0.26);
}

.home2-cookie__action--primary:hover,
.home2-cookie__action--primary:focus-visible {
    background: linear-gradient(135deg, #ff5750 0%, #df1717 100%);
}

.home2-cookie__action--secondary:hover,
.home2-cookie__action--secondary:focus-visible,
.home2-cookie__action--ghost:hover,
.home2-cookie__action--ghost:focus-visible {
    background: linear-gradient(180deg, rgba(38, 33, 38, 0.95), rgba(18, 20, 26, 0.98));
}

.home2-cookie__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    align-items: center;
    justify-items: center;
    overflow-y: auto;
    padding:
        max(24px, env(safe-area-inset-top))
        max(24px, env(safe-area-inset-right))
        max(24px, env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));
    background:
        linear-gradient(180deg, rgba(6, 7, 10, 0.76) 0%, rgba(6, 7, 10, 0.92) 100%);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(14px);
}

.home2-cookie__panel {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 34px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(255, 102, 92, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(17, 19, 24, 0.98) 0%, rgba(9, 10, 13, 0.99) 100%);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.home2-cookie__close {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(52, 42, 47, 0.92), rgba(33, 27, 31, 0.98));
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.22);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.home2-cookie__close:hover,
.home2-cookie__close:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 102, 92, 0.4);
    background: linear-gradient(180deg, rgba(66, 48, 53, 0.96), rgba(42, 30, 36, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.28);
}

.home2-cookie__close::before,
.home2-cookie__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2.5px;
    border-radius: 999px;
    background: rgba(245, 239, 232, 0.94);
}

.home2-cookie__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.home2-cookie__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.home2-cookie__panel-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 680px;
}

.home2-cookie__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.home2-cookie__card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
}

.home2-cookie__card--locked {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.home2-cookie__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.home2-cookie__card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--home2-text);
}

.home2-cookie__status {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--home2-stone-soft);
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

.home2-cookie__list {
    padding-left: 18px;
}

.home2-cookie__list li + li {
    margin-top: 10px;
}

.home2-cookie__toggle {
    position: relative;
    flex: 0 0 auto;
    width: 62px;
    height: 34px;
    cursor: pointer;
}

.home2-cookie__toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.home2-cookie__toggle span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 180ms ease, border-color 180ms ease;
}

.home2-cookie__toggle span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    transition: transform 180ms ease;
}

.home2-cookie__toggle input:checked + span {
    border-color: rgba(255, 102, 92, 0.5);
    background: linear-gradient(135deg, #ff4343 0%, #cf1111 100%);
}

.home2-cookie__toggle input:checked + span::after {
    transform: translate(28px, -50%);
}

.home2-cookie__panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home2-cookie__panel-actions {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    width: min(640px, 100%);
}

.home2-cookie__manage {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 995;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(29, 31, 38, 0.92), rgba(18, 20, 26, 0.96));
    color: var(--home2-text);
    font-family: "Manrope", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 32px rgba(0, 0, 0, 0.24);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.home2-cookie__manage:hover,
.home2-cookie__manage:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 102, 92, 0.4);
    background: linear-gradient(180deg, rgba(38, 33, 38, 0.95), rgba(18, 20, 26, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 36px rgba(0, 0, 0, 0.26);
}

@media (max-width: 980px) {
    .home2-cookie__banner {
        grid-template-columns: 1fr;
    }

    .home2-cookie__grid {
        grid-template-columns: 1fr;
    }

    .home2-cookie__panel-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .home2-cookie__panel-actions {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .home2-cookie__backdrop {
        align-items: end;
        padding:
            max(12px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            max(12px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));
    }

    .home2-cookie__banner,
    .home2-cookie__panel {
        padding: 22px;
        border-radius: 26px;
    }

    .home2-cookie__banner {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: auto;
        transform: none;
    }

    .home2-cookie__panel {
        width: 100%;
        max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        padding: 20px 18px;
    }

    .home2-cookie__panel-header {
        max-width: none;
        padding-right: 52px;
    }

    .home2-cookie__banner-actions,
    .home2-cookie__panel-actions {
        width: 100%;
    }

    .home2-cookie__banner-actions > *,
    .home2-cookie__panel-actions > * {
        width: 100%;
    }

    .home2-cookie__card-head {
        flex-direction: column;
    }

    .home2-cookie__card {
        gap: 14px;
        padding: 18px;
    }

    .home2-cookie__grid {
        gap: 14px;
        margin-top: 22px;
    }

    .home2-cookie__panel-footer {
        gap: 18px;
        margin-top: 22px;
        padding-top: 18px;
    }

    .home2-cookie__manage {
        right: calc(12px + env(safe-area-inset-right));
        bottom: calc(12px + env(safe-area-inset-bottom));
        min-height: 40px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .home2-cookie__close {
        top: 16px;
        right: 16px;
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home2-cookie__action,
    .home2-cookie__manage,
    .home2-cookie__close,
    .home2-cookie__toggle span,
    .home2-cookie__toggle span::after {
        transition: none;
    }
}
