/* ═══════════════════════════════════════════════════════════════
   ESSIBLESS — Cookie Banner & Cookie Policy Page
   Palette: --black #000, --gold #C6A776, --white #FFF
   Font: 'Helvetica Neue', Arial, sans-serif
   ═══════════════════════════════════════════════════════════════ */

/* ── Cookie Banner ────────────────────────────────────────────── */

.ess-cookie-banner {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #000;
    padding: 16px 60px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Скрытое состояние (после нажатия крестика) */
.ess-cookie-banner[hidden] {
    display: none !important;
}

.ess-cookie-banner__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 24px;
}

.ess-cookie-banner__text {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    text-align: center;
    letter-spacing: 0.02em;
}

.ess-cookie-banner__link {
    color: #C6A776;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(198, 167, 118, 0.45);
    padding-bottom: 1px;
    transition: color 0.25s, border-color 0.25s;
    white-space: nowrap;
    margin-left: 4px;
}

.ess-cookie-banner__link:hover {
    color: #e0c898;
    border-color: #e0c898;
}

.ess-cookie-banner__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: 1px solid rgba(198, 167, 118, 0.35);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
    flex-shrink: 0;
}

.ess-cookie-banner__close:hover {
    border-color: #C6A776;
    color: #C6A776;
    background: rgba(198, 167, 118, 0.08);
}

.ess-cookie-banner__close svg {
    pointer-events: none;
}

@media (max-width: 768px) {
    .ess-cookie-banner {
        padding: 14px 16px;
    }

    .ess-cookie-banner__inner {
        justify-content: space-between;
        gap: 12px;
    }

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

    /* На мобильном кнопка в потоке (не absolute) — текст не перекрывается */
    .ess-cookie-banner__close {
        position: static;
        transform: none;
        flex-shrink: 0;
    }
}

/* ── Cookie Policy Page ────────────────────────────────────────── */

/* Hero */
.cookies-hero {
    position: relative;
    background: #fff;
    padding: 120px 5% 48px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.cookies-hero__label {
    display: inline-block;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 16px;
}

.cookies-hero__title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: #000;
    margin: 0 0 12px;
    line-height: 1.15;
}

.cookies-hero__sub {
    font-size: 13px;
    color: #aaa;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Content */
.cookies-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 24px 100px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.75;
}

.cookies-content h2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C6A776;
    margin: 52px 0 16px;
}

.cookies-content h2:first-child {
    margin-top: 0;
}

.cookies-content p {
    margin: 0 0 18px;
    color: #333;
}

.cookies-content ul {
    margin: 0 0 20px;
    padding-left: 20px;
}

.cookies-content ul li {
    margin-bottom: 10px;
    color: #333;
}

.cookies-content a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    padding-bottom: 1px;
    transition: border-color 0.2s;
}

.cookies-content a:hover {
    border-color: #C6A776;
    color: #C6A776;
}

/* Section divider */
.cookies-divider {
    width: 36px;
    height: 1px;
    background: #C6A776;
    margin: 0 0 52px;
}

/* Cookie Table */
.cookies-table-wrap {
    overflow-x: auto;
    margin: 20px 0 36px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cookies-table thead {
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.cookies-table th {
    padding: 11px 14px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
    white-space: nowrap;
}

.cookies-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f2f2f2;
    vertical-align: top;
    color: #444;
    line-height: 1.55;
}

.cookies-table tr:last-child td {
    border-bottom: none;
}

.cookies-table code {
    background: #f4f4f4;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11.5px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    color: #333;
    white-space: nowrap;
}

.cookies-table__badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cookies-table__badge--required {
    background: #f0f0f0;
    color: #555;
}

.cookies-table__badge--functional {
    background: rgba(198, 167, 118, 0.12);
    color: #8a6e3a;
}

/* Updated date */
.cookies-content__updated {
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.03em;
}

@media (max-width: 600px) {
    .cookies-hero {
        padding: 100px 5% 56px;
    }

    .cookies-content {
        padding: 48px 16px 80px;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 9px 10px;
    }
}
