/* Согласие на cookie (public/js/consent.js): окно, настройки, список cookie, кнопка повторного открытия. Цвета и шрифты — из UI Kit. */
.dxc { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 24px;
  font-family: var(--font, "Manrope", Arial, sans-serif); color: var(--ink, #0B1B2B); -webkit-text-size-adjust: 100%; }
.dxc[hidden], .dxc [hidden] { display: none !important; }
.dxc *, .dxc *::before, .dxc *::after { box-sizing: border-box; }
.dxc__veil { position: absolute; inset: 0; background: rgba(11,27,43,0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
html.dxc-lock, html.dxc-lock body { overflow: hidden !important; }

.dxc__box { position: relative; width: 100%; background: #fff; box-shadow: var(--shadow-lg, 0 34px 76px -28px rgba(11,27,43,0.32));
  display: flex; flex-direction: column; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); outline: none; animation: dxcIn .2s ease; }
.dxc__box--first { max-width: 640px; padding: 28px 32px 30px; overflow-y: auto; overscroll-behavior: contain; }
.dxc__box--set { max-width: 720px; height: 720px; }
@keyframes dxcIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dxcUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.dxc__lead { display: flex; align-items: center; gap: 14px; }
.dxc__ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--brand-tint, #E7EAEF); color: var(--brand-ink, #15293D); }
.dxc__ico svg, .dxc-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dxc__title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink, #0B1B2B); text-wrap: balance; }
.dxc__text { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft, #46586E); }
.dxc__text--sm { margin: 0; font-size: 14px; line-height: 1.55; }
.dxc__more, .dxc-svc__pol { color: var(--brand-ink, #15293D); font-weight: 650; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.dxc__more:hover, .dxc-svc__pol:hover { color: var(--ink, #0B1B2B); }
.dxc__gpc { margin: 12px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--ink-soft, #46586E); background: var(--paper, #EDF1F7); border-left: 3px solid var(--brand, #0B1B2B); }
.dxc__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.dxc__btns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 18px; }
.dxc__btns .btn { width: 100%; min-width: 0; padding-left: 12px; padding-right: 12px; }
.dxc .btn:focus-visible, .dxc__more:focus-visible, .dxc-svc__pol:focus-visible, .dxc__x:focus-visible, .dxc__tab:focus-visible, .dxc-svc__btn:focus-visible,
.dxc-sw:focus-visible, .dxc__pane:focus-visible, .dxc-fab:focus-visible { outline: 2px solid var(--brand, #0B1B2B); outline-offset: 2px; }

/* настройки */
.dxc__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px 0; }
.dxc__x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(11,27,43,0.05); color: var(--ink, #0B1B2B); border: 0; cursor: pointer; }
.dxc__x:hover { background: rgba(11,27,43,0.1); }
.dxc__x svg, .dxc-svc__btn svg, .dxc-svc__pol svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dxc__x svg { width: 18px; height: 18px; }
.dxc__tabs { display: flex; gap: 2px; margin: 14px 28px 0; border-bottom: 1px solid var(--line, rgba(13,33,64,0.145)); }
.dxc__tab { position: relative; padding: 11px 14px; font: 600 14.5px/1.2 var(--font, "Manrope", Arial, sans-serif); color: var(--muted, #6A7A90); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.dxc__tab:hover { color: var(--ink, #0B1B2B); }
.dxc__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand, #0B1B2B); opacity: 0; }
.dxc__tab[aria-selected="true"] { color: var(--ink, #0B1B2B); }
.dxc__tab[aria-selected="true"]::after { opacity: 1; }
.dxc__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 28px 24px; }
.dxc__pane { outline: none; }
.dxc__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 28px 18px; background: #fff; border-top: 1px solid var(--line-2, rgba(13,33,64,0.08)); }
.dxc__note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted, #6A7A90); max-width: 46ch; }
.dxc__foot .btn { flex: none; }

/* категории */
.dxc-cats, .dxc-svcs, .dxc-chips, .dxc-cks { list-style: none; margin: 0; padding: 0; }
.dxc-cats { display: grid; gap: 10px; }
.dxc-cat { padding: 16px 18px; background: #fff; border: 1px solid var(--line, rgba(13,33,64,0.145)); }
.dxc-cat__head { display: flex; align-items: center; gap: 12px; }
.dxc-cat__name { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink, #0B1B2B); }
.dxc-cat__always { flex: none; padding: 5px 8px; font: 600 10.5px/1 var(--mono, "JetBrains Mono", monospace); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--brand-ink, #15293D); background: var(--brand-tint, #E7EAEF); }
.dxc-cat__desc, .dxc-svcs, .dxc-cat > .dxc-cat__empty { margin-left: 52px; }
.dxc-cat__desc { margin-top: 6px; margin-bottom: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft, #46586E); }
.dxc-cat__empty { margin-top: 10px; margin-bottom: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted, #6A7A90); display: flex; gap: 8px; }
.dxc-cat__empty::before { content: ""; flex: none; width: 10px; height: 1.5px; margin-top: .72em; background: currentColor; opacity: .7; }

.dxc-sw { position: relative; flex: none; width: 40px; height: 22px; padding: 0; border: 0; cursor: pointer; background: var(--paper-2, #E2E8F1);
  box-shadow: inset 0 0 0 1px var(--line-2, rgba(13,33,64,0.08)); transition: background .18s ease; }
.dxc-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; box-shadow: 0 1px 3px rgba(11,27,43,0.3); transition: transform .18s ease; }
.dxc-sw[aria-checked="true"] { background: var(--brand, #0B1B2B); box-shadow: none; }
.dxc-sw[aria-checked="true"]::after { transform: translateX(18px); }
.dxc-sw:disabled { cursor: not-allowed; opacity: .5; }

.dxc-svcs { margin-top: 10px; border-top: 1px dashed var(--line, rgba(13,33,64,0.145)); }
.dxc-svc { border-bottom: 1px dashed var(--line-2, rgba(13,33,64,0.08)); }
.dxc-svc:last-child { border-bottom: 0; }
.dxc-svc__btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 0 9px; border: 0; background: none; cursor: pointer; text-align: left;
  font: 650 14px/1.3 var(--font, "Manrope", Arial, sans-serif); color: var(--ink, #0B1B2B); }
.dxc-svc__btn:hover .dxc-svc__nm { text-decoration: underline; text-underline-offset: 3px; }
.dxc-svc__btn svg { flex: none; width: 14px; height: 14px; color: var(--muted, #6A7A90); transition: transform .18s ease; }
.dxc-svc__btn[aria-expanded="true"] svg { transform: rotate(90deg); }
.dxc-svc__nm { min-width: 0; overflow-wrap: anywhere; }
.dxc-svc__n { flex: none; min-width: 20px; padding: 2px 6px; font: 600 11px/1.2 var(--mono, "JetBrains Mono", monospace); text-align: center; color: var(--ink-soft, #46586E); background: var(--paper, #EDF1F7); }
.dxc-svc__body { padding: 0 0 14px 22px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft, #46586E); }
.dxc-svc__body > p { margin: 0 0 8px; }
.dxc-svc__pol { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; white-space: normal; }
.dxc-svc__pol svg { width: 13px; height: 13px; flex: none; }
.dxc-svc__none { margin-top: 8px !important; font-size: 12.5px; color: var(--muted, #6A7A90); }
.dxc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dxc-chip { padding: 4px 8px; font: 500 12px/1.3 var(--mono, "JetBrains Mono", monospace); color: var(--ink, #0B1B2B); background: var(--paper, #EDF1F7); overflow-wrap: anywhere; }

/* список cookie */
.dxc-grp + .dxc-grp { margin-top: 24px; }
.dxc-grp__h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink, #0B1B2B); }
.dxc-grp__n { padding: 2px 6px; font: 600 11px/1.2 var(--mono, "JetBrains Mono", monospace); color: var(--ink-soft, #46586E); background: var(--paper, #EDF1F7); }
.dxc-grp > .dxc-cat__empty { margin-top: 0; }
.dxc-ck__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 13px; line-height: 1.45; color: var(--ink-soft, #46586E); }
.dxc-ck__row--head { padding: 6px 0; font: 600 10.5px/1.3 var(--mono, "JetBrains Mono", monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6A7A90); border-bottom: 1px solid var(--line, rgba(13,33,64,0.145)); }
.dxc-ck { padding: 10px 0 11px; border-bottom: 1px solid var(--line-2, rgba(13,33,64,0.08)); }
.dxc-ck__n code { font: 600 13px/1.35 var(--mono, "JetBrains Mono", monospace); color: var(--ink, #0B1B2B); overflow-wrap: anywhere; background: none; padding: 0; }
.dxc-ck__tag { display: inline-block; margin-left: 6px; padding: 1px 5px; font: 600 9.5px/1.4 var(--mono, "JetBrains Mono", monospace); letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #6A7A90); border: 1px solid var(--line, rgba(13,33,64,0.145)); vertical-align: 1px; white-space: nowrap; }
.dxc-ck__d, .dxc-ck__s, .dxc-ck__e { overflow-wrap: anywhere; }
.dxc-ck__p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted, #6A7A90); }
.dxc-grp__note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted, #6A7A90); }
.dxc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* кнопка повторного открытия */
.dxc-fab { position: fixed; left: 16px; bottom: 16px; z-index: 55; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  background: #fff; color: var(--brand-ink, #15293D); border: 1px solid var(--line, rgba(13,33,64,0.145)); box-shadow: var(--shadow-sm, 0 8px 22px -14px rgba(11,27,43,0.30));
  cursor: pointer; transition: opacity .2s ease, transform .2s ease, visibility .2s, border-color .15s ease; }
.dxc-fab svg { width: 21px; height: 21px; }
.dxc-fab:hover { border-color: var(--brand, #0B1B2B); transform: translateY(-1px); }
.dxc-fab.is-away { opacity: 0; visibility: hidden; transform: none; pointer-events: none; }

@media (max-width: 600px) {
  .dxc { align-items: flex-end; padding: 0; }
  .dxc__box { max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); animation: dxcUp .22s ease; }
  .dxc__box--first { padding: 22px 16px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .dxc__box--set { height: calc(100vh - 12px); height: calc(100dvh - 12px); }
  .dxc__lead { gap: 12px; }
  .dxc__ico { width: 36px; height: 36px; }
  .dxc__title { font-size: 19px; }
  .dxc__text { margin-top: 12px; font-size: 14.5px; line-height: 1.55; }
  .dxc__btns { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .dxc__btns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 16px; }
  .dxc__head { padding: 16px 16px 0; }
  .dxc__tabs { margin: 10px 16px 0; }
  .dxc__tab { padding: 10px 10px; font-size: 14px; }
  .dxc__scroll { padding: 16px 16px 20px; }
  .dxc__foot { flex-direction: column-reverse; align-items: stretch; gap: 10px; padding: 12px 16px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .dxc__foot .btn { width: 100%; }
  .dxc__note { max-width: none; text-align: center; }
  .dxc-cat { padding: 14px; }
  .dxc-cat__desc, .dxc-svcs, .dxc-cat > .dxc-cat__empty { margin-left: 0; }
  .dxc-cat__desc { margin-top: 10px; }
  .dxc-ck__row { display: block; }
  .dxc-ck__row.dxc-ck__row--head { display: none; }
  .dxc-ck__n { display: block; margin-bottom: 2px; }
  .dxc-ck__d, .dxc-ck__s, .dxc-ck__e { display: inline; }
  .dxc-ck__s::before, .dxc-ck__e::before { content: " · "; }
  .dxc-fab { left: 12px; bottom: 12px; width: 38px; height: 38px; }
  .dxc-fab svg { width: 19px; height: 19px; }
  body:has(.toasts .toast) .dxc-fab { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 400px) {
  .dxc-cat__head { flex-wrap: wrap; row-gap: 8px; }
  .dxc-cat__name { flex-basis: calc(100% - 52px); }
  .dxc-cat__always { margin-left: 52px; }
}
@media (max-width: 359px) {
  .dxc__btns--2 { grid-template-columns: 1fr; }
  .dxc-cat__always { padding: 4px 6px; font-size: 9.5px; }
}
@media (max-height: 520px) and (min-width: 601px) {
  .dxc__box { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .dxc { padding: 12px 24px; }
}
@media (prefers-reduced-motion: reduce) { .dxc__box, .dxc-fab, .dxc-sw, .dxc-sw::after, .dxc-svc__btn svg { animation: none; transition: none; } }
@media print { .dxc, .dxc-fab { display: none !important; } }
