.cookie-consent {
    --cc-bg: var(--color-dark-1, #181D24);
    --cc-accent: var(--color-accent-1, #C29F7B);
    --cc-text: #FFFFFF;
    --cc-muted: rgba(255, 255, 255, 0.74);
    --cc-faint: rgba(255, 255, 255, 0.55);
    --cc-line: rgba(255, 255, 255, 0.14);
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9000;
    padding: 0 40px;
    background: var(--cc-bg);
    border-top: 1px solid rgba(194, 159, 123, 0.5);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.3);
    font-family: var(--font-primary, "Jost", sans-serif);
    color: var(--cc-text);
}

.cookie-consent[hidden],
.cookie-consent [hidden] {
    display: none !important;
}

.cookie-consent:focus {
    outline: none;
}

html.cookie-consent-open,
html.cookie-consent-open body {
    overflow: hidden;
}

.cookie-consent__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px 48px;
    padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
}

.cookie-consent__body {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent__title {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--cc-text);
}

.cookie-consent__text {
    max-width: 760px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cc-muted);
}

.cookie-consent__text p {
    margin: 0;
}

.cookie-consent__text a {
    color: var(--cc-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__text strong {
    font-weight: 600;
    color: var(--cc-text);
}

.cookie-consent__text ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cookie-consent__text li {
    position: relative;
    padding-left: 18px;
}

.cookie-consent__text li::before {
    content: '';
    position: absolute;
    top: 0.72em;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cc-accent);
}

.cookie-consent__settings-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.cookie-consent__settings-head .cookie-consent__title:focus {
    outline: none;
}

.cookie-consent__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -6px 0 0 -8px;
    padding: 6px 8px;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    color: var(--cc-faint);
    cursor: pointer;
}

.cookie-consent__back svg {
    transform: rotate(180deg);
}

.cookie-consent__back:hover {
    color: var(--cc-text);
}

.cookie-consent__settings {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    border-top: 1px solid var(--cc-line);
}

.cookie-consent__option {
    border-bottom: 1px solid var(--cc-line);
    font-size: 15px;
    line-height: 1.55;
    color: var(--cc-muted);
}

.cookie-consent__option p {
    margin: 0;
}

.cookie-consent__expand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: var(--cc-text);
    cursor: pointer;
}

.cookie-consent__expand svg {
    color: var(--cc-accent);
    transition: transform 0.2s ease;
}

.cookie-consent__expand[aria-expanded='true'] svg {
    transform: rotate(180deg);
}

.cookie-consent__detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 16px;
}

.cookie-consent__list {
    font-size: 13px;
    color: var(--cc-faint);
}

.cookie-consent__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 6px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--cc-line);
    font-weight: 500;
    color: var(--cc-text);
    cursor: pointer;
}

.cookie-consent__switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.cookie-consent__switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: inherit;
}

.cookie-consent__switch input:disabled {
    cursor: not-allowed;
}

.cookie-consent__slider {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: background 0.2s ease;
}

.cookie-consent__slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cc-text);
    transition: transform 0.2s ease;
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
    background: var(--cc-accent);
}

.cookie-consent__switch input:checked + .cookie-consent__slider::after {
    transform: translateX(20px);
}

.cookie-consent__switch input:disabled + .cookie-consent__slider {
    opacity: 0.55;
}

.cookie-consent__switch input:focus-visible + .cookie-consent__slider {
    outline: 2px solid var(--cc-accent);
    outline-offset: 3px;
}

.cookie-consent__actions {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-consent .cookie-consent__btn {
    min-height: 50px;
    padding: 0 24px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.cookie-consent .cookie-consent__btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--cc-text);
}

.cookie-consent .cookie-consent__btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cc-text);
}

.cookie-consent .cookie-consent__btn--primary {
    background: var(--cc-accent);
    border-color: var(--cc-accent);
    color: var(--color-dark-1, #181D24);
    font-weight: 500;
}

.cookie-consent .cookie-consent__btn--primary:hover {
    background: #D2B596;
    border-color: #D2B596;
}

.cookie-consent .cookie-consent__btn:focus-visible,
.cookie-consent__expand:focus-visible,
.cookie-consent__back:focus-visible,
.cookie-consent__reject:focus-visible,
.cookie-consent__text a:focus-visible {
    outline: 2px solid var(--cc-accent);
    outline-offset: 3px;
}

.cookie-consent--modal {
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 14, 18, 0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-top: 0;
    box-shadow: none;
    overflow-y: auto;
}

.cookie-consent--modal .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 28px;
    width: 100%;
    max-width: 580px;
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 40px;
    background: var(--cc-bg);
    border: 1px solid rgba(194, 159, 123, 0.5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.cookie-consent--modal .cookie-consent__body {
    flex: 0 1 auto;
    min-height: 0;
    gap: 14px;
    margin-right: -14px;
    padding-right: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cookie-consent--modal .cookie-consent__title {
    font-size: 26px;
}

.cookie-consent--modal .cookie-consent__inner--settings .cookie-consent__body {
    flex-grow: 1;
}

.cookie-consent--modal .cookie-consent__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent--modal .cookie-consent__actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cookie-consent__note {
    margin: -12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: var(--cc-faint);
}

.cookie-consent__reject {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -20px 0 -10px;
    padding: 6px 8px;
    text-align: center;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    color: var(--cc-faint);
    cursor: pointer;
}

.cookie-consent__reject:hover {
    color: var(--cc-text);
}

.cookie-consent--card {
    top: auto;
    right: 24px;
    bottom: 24px;
    left: auto;
    width: calc(100% - 48px);
    max-width: 480px;
    padding: 0;
    background: var(--cc-bg);
    border: 1px solid rgba(194, 159, 123, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.cookie-consent--card .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 24px;
    max-height: calc(100dvh - 48px);
    padding: 32px;
}

.cookie-consent--card .cookie-consent__body {
    flex: 0 1 auto;
    min-height: 0;
    gap: 12px;
    margin-right: -14px;
    padding-right: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cookie-consent--card .cookie-consent__actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cookie-consent--card .cookie-consent__note {
    margin-top: -10px;
}

.cookie-consent--card .cookie-consent__reject {
    margin: -18px 0 -10px;
}

.cookie-consent__collapse {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--cc-accent);
    cursor: pointer;
}

.cookie-consent__collapse svg {
    transition: transform 0.2s ease;
}

.cookie-consent__collapse:hover {
    color: var(--cc-text);
}

.cookie-consent__collapse:focus-visible {
    outline: 2px solid var(--cc-accent);
    outline-offset: 2px;
}

.cookie-consent--card .cookie-consent__inner {
    position: relative;
}

#cookies {
    scroll-margin-top: 160px;
}

.footer__cookies {
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

@media (max-width: 767px) {
    .cookie-consent {
        padding: 0 16px;
        max-height: 100dvh;
        overflow-y: auto;
    }

    .cookie-consent__inner {
        gap: 16px;
        padding: 20px 0 calc(16px + env(safe-area-inset-bottom));
    }

    .cookie-consent__body {
        flex-basis: 100%;
    }

    .cookie-consent__title {
        font-size: 19px;
    }

    .cookie-consent__text,
    .cookie-consent__option {
        font-size: 14px;
    }

    .cookie-consent__actions {
        flex-basis: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .cookie-consent__actions .cookie-consent__btn:first-child,
    .cookie-consent__actions .cookie-consent__btn:nth-child(2) {
        grid-column: 1 / -1;
    }

    .cookie-consent .cookie-consent__btn {
        padding: 0 10px;
    }

    .cookie-consent--modal {
        padding: 0;
        overscroll-behavior: contain;
    }

    .cookie-consent--modal .cookie-consent__inner {
        gap: 18px;
        max-height: none;
        padding: 40px 38px 34px;
        border: 0;
        box-shadow: none;
    }

    .cookie-consent--modal .cookie-consent__body {
        margin-right: 0;
        padding-right: 0;
        overflow-y: visible;
    }

    .cookie-consent--modal .cookie-consent__title {
        font-size: 22px;
    }

    .cookie-consent--modal .cookie-consent__actions {
        position: sticky;
        bottom: 0;
        z-index: 1;
        gap: 8px;
        margin: -12px -38px 0;
        padding: 12px 38px calc(12px + env(safe-area-inset-bottom));
        background: var(--cc-bg);
        box-shadow: 0 -18px 18px -6px var(--cc-bg);
    }

    .cookie-consent--modal .cookie-consent__actions .cookie-consent__btn:first-child,
    .cookie-consent--modal .cookie-consent__actions .cookie-consent__btn:nth-child(2) {
        grid-column: auto;
    }

    .cookie-consent--card {
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        max-height: 85dvh;
        padding: 0;
        border-width: 1px 0 0;
        overscroll-behavior: contain;
    }

    .cookie-consent--card .cookie-consent__inner {
        gap: 12px;
        max-height: none;
        padding: 18px 20px calc(10px + env(safe-area-inset-bottom));
    }

    .cookie-consent--card .cookie-consent__title {
        font-size: 17px;
    }

    .cookie-consent--card .cookie-consent__body {
        gap: 6px;
    }

    .cookie-consent--card .cookie-consent__text {
        font-size: 14px;
        line-height: 1.5;
    }

    .cookie-consent--card .cookie-consent__btn {
        min-height: 44px;
    }

    .cookie-consent--card .cookie-consent__note {
        display: none;
    }

    .cookie-consent--card .cookie-consent__reject {
        margin: -8px 0 -4px;
    }

    .cookie-consent__collapse {
        display: flex;
    }

    .cookie-consent--card .cookie-consent__title {
        padding-right: 32px;
    }

    .cookie-consent--card .cookie-consent__body {
        transition: max-height 0.3s ease;
    }

    .cookie-consent--card.cookie-consent--collapsed .cookie-consent__body {
        max-height: 72px;
        overflow: hidden;
        cursor: pointer;
        -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    }

    .cookie-consent--collapsed .cookie-consent__collapse svg {
        transform: rotate(180deg);
    }

    .cookie-consent--card .cookie-consent__body {
        margin-right: 0;
        padding-right: 0;
        overflow-y: visible;
    }

    .cookie-consent--card .cookie-consent__actions .cookie-consent__btn:first-child,
    .cookie-consent--card .cookie-consent__actions .cookie-consent__btn:nth-child(2) {
        grid-column: auto;
    }

    .cookie-consent--card .cookie-consent__actions {
        position: sticky;
        bottom: 0;
        z-index: 1;
        gap: 8px;
        margin: 0 -20px;
        padding: 4px 20px 8px;
        background: var(--cc-bg);
        box-shadow: 0 -18px 18px -6px var(--cc-bg);
    }

    .cookie-consent__note {
        margin-top: -18px;
    }

    .cookie-consent__reject {
        margin: -14px 0 -6px;
    }
}

@media (max-width: 379px) {
    .cookie-consent--modal .cookie-consent__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-consent--modal .cookie-consent__actions .cookie-consent__btn--primary {
        order: -1;
    }
}
