/* Согласие на cookie и юридические ссылки (public/polish/legal.js, src/legal.ts) — в палитре слоя «Дубай». */

/* ── окно при первом входе: карточка слева внизу; на телефоне — во всю ширину над нижними кнопками ── */
.bh-ck { position: fixed; left: 24px; bottom: 24px; z-index: 2147482000; width: min(440px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 22px 22px 16px; background: #1c1b1e; color: #f8f7f4; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); font: 300 14px/1.55 Geist, system-ui, sans-serif; animation: bh-ck-in .3s cubic-bezier(.16, .84, .24, 1); }
@keyframes bh-ck-in { from { opacity: 0; transform: translateY(14px); } }
.bh-ck p { margin: 0; }
.bh-ck-t { font: 400 22px/1.2 var(--bh-font-display, "Playfair Display", serif) !important; color: #f8f7f4; margin-bottom: 8px !important; }
.bh-ck-s { color: rgba(248, 247, 244, .78); }
.bh-ck-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 16px; font-size: 13px; }
.bh-ck-links a { color: #c9b99a !important; text-decoration: underline; text-underline-offset: 3px; }
.bh-ck-links a:hover { color: #f8f7f4 !important; }
/* «Только необходимые» и «Принять все» — одного вида и размера: отказ не сложнее согласия */
.bh-ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bh-ck-btn { min-height: 46px; padding: 10px 14px; border: 1px solid #f8f7f4; border-radius: 999px; background: #f8f7f4; color: #222124; font: 500 13px/1.2 Geist, system-ui, sans-serif; letter-spacing: .3px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.bh-ck-btn:hover { background: #e8e5dd; border-color: #e8e5dd; }
.bh-ck-btn:focus-visible, .bh-ck-more:focus-visible, .bh-ck-x:focus-visible, .bh-ck a:focus-visible, .bh-ck-dlg a:focus-visible { outline: 2px solid #c9b99a; outline-offset: 2px; }
.bh-ck-more { display: block; width: 100%; min-height: 40px; margin-top: 6px; border: 0; background: none; color: rgba(248, 247, 244, .78); font: 400 13px/1.2 Geist, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bh-ck-more:hover { color: #f8f7f4; }
@media (max-width: 599px) {
  .bh-ck { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 18px 16px 10px; border-radius: 16px; }
  .bh-ck-t { font-size: 20px !important; }
  .bh-ck-s { font-size: 13px; }
  /* пока окно открыто, нижние плавающие кнопки сайта прячем: они легли бы поверх кнопок окна */
  html.bh-ck-on #bh-agent-btn, html.bh-ck-on #bh-goback, html.bh-ck-on #bh-agent-hint { visibility: hidden; }
}

/* ── настройки ── */
.bh-ck-ov { position: fixed; inset: 0; z-index: 2147482001; background: rgba(21, 20, 22, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: bh-ck-fade .2s ease-out; }
@keyframes bh-ck-fade { from { opacity: 0; } }
html.bh-ck-lock, html.bh-ck-lock body { overflow: hidden !important; }
.bh-ck-dlg { position: fixed; left: 50%; top: 50%; z-index: 2147482002; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-sizing: border-box; background: #f8f7f4; color: #222124; border-radius: 20px; box-shadow: 0 30px 80px rgba(21, 20, 22, .5); font: 300 14px/1.55 Geist, system-ui, sans-serif; animation: bh-ck-fade .2s ease-out; }
.bh-ck-dlg p { margin: 0; }
.bh-ck-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; border-bottom: 1px solid #dcd6ca; }
.bh-ck-head p { font: 400 24px/1.2 var(--bh-font-display, "Playfair Display", serif); color: #151416; }
.bh-ck-x { width: 40px; height: 40px; flex: none; border: 1px solid #dcd6ca; border-radius: 50%; background: none; color: #222124; font-size: 14px; cursor: pointer; }
.bh-ck-x:hover { background: #e8e5dd; }
.bh-ck-body { padding: 16px 22px 8px; overflow: auto; overscroll-behavior: contain; }
.bh-ck-body .bh-ck-s { color: #4b4a4e; }
.bh-ck-dlg .bh-ck-links a { color: #7a6753 !important; }
.bh-ck-dlg .bh-ck-links a:hover { color: #151416 !important; }
.bh-ck-cat { padding: 14px 0; border-top: 1px solid #dcd6ca; }
.bh-ck-cat-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; font: 500 15px/1.3 Geist, system-ui, sans-serif; color: #151416; cursor: pointer; }
.bh-ck-cat-h em { font: 400 12px/1.2 Geist, system-ui, sans-serif; font-style: normal; color: #7a6753; letter-spacing: .3px; }
.bh-ck-cat p { color: #6b6566; font-size: 13px; }
.bh-ck-sw { position: relative; flex: none; width: 46px; height: 28px; }
.bh-ck-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.bh-ck-sw i { position: absolute; inset: 0; border-radius: 999px; background: #cfc7b6; transition: background-color .2s; }
.bh-ck-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.bh-ck-sw input:checked + i { background: #222124; }
.bh-ck-sw input:checked + i::after { transform: translateX(18px); }
.bh-ck-sw input:focus-visible + i { outline: 2px solid #aea089; outline-offset: 2px; }
.bh-ck-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 22px 20px; border-top: 1px solid #dcd6ca; }
.bh-ck-dlg .bh-ck-btn { background: #222124; border-color: #222124; color: #f8f7f4; }
.bh-ck-dlg .bh-ck-btn:hover { background: #3a393d; border-color: #3a393d; }
.bh-ck-dlg .bh-ck-btn.bh-ck-line { background: transparent; color: #222124; }
.bh-ck-dlg .bh-ck-btn.bh-ck-line:hover { background: #e8e5dd; }
@media (max-width: 599px) {
  .bh-ck-dlg { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .bh-ck-foot { grid-template-columns: 1fr 1fr; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .bh-ck-foot .bh-ck-line { grid-column: 1 / -1; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .bh-ck, .bh-ck-ov, .bh-ck-dlg { animation: none; } }

/* ── подвал: строка юридических ссылок (их ячейка внизу подвала; на телефоне — в подвале слоя «Дубай») ── */
.bh-legal-links { flex-wrap: wrap; justify-content: center; gap: 6px 18px !important; }
/* их нижняя строка: копирайт стоит абсолютно по центру — ссылки уходят отдельной строкой под неё, копирайт — в поток */
footer .relative:has(.bh-legal-links) { flex-wrap: wrap; row-gap: 14px; }
footer .relative:has(.bh-legal-links) > p { position: static !important; transform: none !important; }
footer .relative:has(.bh-legal-links) > div:has(> .bh-legal-links) { width: 100%; justify-content: center; order: 10; }
.bh-legal-links a { color: inherit; opacity: .72; }
.bh-legal-links a:hover { opacity: 1; }
.bh-legal-row { display: flex; padding: 16px 20px 0; font: 400 12px/1.5 Geist, sans-serif; color: #f8f7f4; }
.bh-pf-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 18px 0 4px; border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 18px; font: 300 13px/1.4 Geist, sans-serif; }
.bh-pf-legal a { color: rgba(255, 255, 255, .72) !important; }

/* ── формы: необязательная отметка явного согласия под обязательной ── */
[data-bh-consent-row] { margin-top: 14px; }

/* ── страница документа: остальные документы внизу и места, которые заполняет владелец ── */
.bh-legal-related { background: #f8f7f4; padding: 0 20px 80px; }
.bh-legal-related > div { max-width: 800px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 28px; border-top: 1px solid #dcd6ca; font: 400 14px/1.5 Geist, sans-serif; }
.bh-legal-related span { width: 100%; font: 500 11px/1.3 Geist, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #7a6753; }
.bh-legal-related a { color: #222124; text-decoration: underline; text-underline-offset: 3px; }
.KVKK-Content a[data-bh-cookie-settings] { text-decoration: underline; }
mark.bh-todo { background: #fff1b8; color: #6b4e00; padding: 1px 4px; border-radius: 4px; font-weight: 500; }
