:root{
    --overlay: rgba(0,0,0,.45);
    --radius: 6px;
    --shadow: 0 3px 6px rgba(0, 0, 0, .25);
    --text: #111;
    --muted: #000000;
    --link: #6b6b6b;
    --linkb: #1e66d0;
    --accent: #1e66d0;
}

/* ===== Bottom-left bar (показывается при загрузке, если нет куки) ===== */

.cookie-bar {
    position: fixed;
    left: 24px;
    bottom: 54px;
    width: min(354px, calc(100vw - 32px));
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    box-sizing: border-box;
    z-index: 999999;
}

.cookie-bar[hidden] { display: none; }

.cookie-bar__title{
    color: var(--text);
    margin: 0;
    grid-column: 1/2;
    font-weight: bold;
    font-size: 14px;
}

.cookie-bar__link{
    grid-column: 1/2;
    color: #757575;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    font-size: 12px;
    justify-self: start;
}

.cookie-bar__ok{
    grid-column: 2/3;
    grid-row: 1 / span 2;
    align-self: center;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--accent);
    font-size: 14px;
}

/* ===== Detailed modal (показывается только по "Узнать подробнее") ===== */

/* Overlay */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 999999;
}

.cookie-overlay[hidden] {
    display: none;
}

/* Modal */

.cookie-modal {
    width: min(640px, 92vw);
    max-height: min(84vh, 760px);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    overflow: hidden;
    position: relative;
    max-width: 440px;
}

.cookie-modal__inner {
    padding: 22px 22px 18px;
    overflow: auto;
    max-height: inherit;
}

.cookie-modal__title {
    font-size: 24px;
    line-height: 1.1;
    color: var(--text);
    margin: 6px 40px 14px 0;
    font-weight: bold;
}

.cookie-modal__text {
    font-size: 14px;
    line-height: 24px;
    color: var(--muted);
    margin: 0 0 14px;
    font-weight: bold;
    text-align: left;
    font-family: roboto_ltregular, serif;
}

.cookie-modal__text a {
    color: var(--linkb);
    text-decoration: underline;
}

.cookie-modal__close{
    position:absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border:0;
    background:transparent;
    cursor:pointer;
    border-radius:6px;
}
.cookie-modal__close:hover{ background: rgba(0,0,0,.06); }
.cookie-modal__close::before,
.cookie-modal__close::after{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:18px;
    height:2px;
    background:#333;
    transform-origin:center;
}
.cookie-modal__close::before{ transform:translate(-50%,-50%) rotate(45deg); }
.cookie-modal__close::after{ transform:translate(-50%,-50%) rotate(-45deg); }


.cookie-modal__footer {
    padding: 16px 22px 22px;
    background: #fff;
}

.cookie-modal__btn{
    width:100%;
    height:52px;
    border:0;
    border-radius:6px;
    background: var(--accent);
    color:#fff;
    font-size:16px;
    cursor:pointer;
    box-sizing: border-box;
}
.cookie-modal__btn:hover{ filter: brightness(.95); }

/* Small screens tweak */

@media (max-width: 620px) {
    .cookie-modal__title { font-size: 26px; }
    .cookie-modal__inner { padding: 18px 18px 10px 18px; }
    .cookie-modal__footer { padding: 12px 18px 18px; }

    .cookie-bar {
        left: 11px;
        width: min(640px, calc(100vw - 22px));
    }
}