/* ---- Згода на cookie: темна картка знизу зліва (на мобільному — над нижньою панеллю) ---- */
.ck { position: fixed; left: 20px; bottom: 20px; z-index: 1200; width: min(440px, calc(100vw - 40px)); color: #fff;
  opacity: 0; transform: translateY(16px); transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.ck.is-in { opacity: 1; transform: none; pointer-events: auto; }
.ck__in { position: relative; overflow: hidden; padding: 20px; background: var(--night, #0b1118); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px -20px rgba(8,12,18,.55); isolation: isolate; }
.ck__in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px 160px at 100% 0%, rgba(0,135,81,.32), transparent 70%); }
.ck__head { display: flex; gap: 14px; align-items: flex-start; }
.ck__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #6fd3a0; }
.ck__title { display: block; font-family: 'Geologica', sans-serif; font-size: 1.05rem; letter-spacing: -.01em; margin: 1px 0 4px; }
.ck__text { margin: 0; font-size: .84rem; line-height: 1.5; color: rgba(255,255,255,.72); }
.ck__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.ck__text a:hover { text-decoration-color: #fff; }
.ck__x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; cursor: pointer; font-size: .9rem; }
.ck__x:hover { background: rgba(255,255,255,.1); }

.ck__set { display: none; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.ck.is-set .ck__set { display: block; }
.ck-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); cursor: pointer; }
.ck-row.is-locked { cursor: default; }
.ck-row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-row__t b { font-size: .88rem; }
.ck-row__t small { font-size: .76rem; color: rgba(255,255,255,.6); line-height: 1.4; }
.ck-row__on { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6fd3a0; }
.ck-sw { position: relative; flex: none; width: 42px; height: 24px; }
.ck-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ck-sw i { position: absolute; inset: 0; background: rgba(255,255,255,.18); transition: background .2s; border-radius: 2px; pointer-events: none; }
.ck-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; transition: transform .25s cubic-bezier(.16,1,.3,1); border-radius: 1px; }
.ck-sw input:checked + i { background: var(--cta, #008751); }
.ck-sw input:checked + i::after { transform: translateX(18px); }
.ck-sw input:focus-visible + i { outline: 2px solid #6fd3a0; outline-offset: 2px; }

.ck__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ck-btn { min-height: 44px; padding: 10px 12px; border: 1px solid transparent; font: 600 .88rem/1.2 inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.ck-btn:active { transform: scale(.98); }
.ck-btn--pri { background: var(--cta, #008751); color: #fff; }
.ck-btn--pri:hover { background: #00a062; }
.ck-btn--sec { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.ck-btn--sec:hover { border-color: #fff; }
.ck-btn--link { grid-column: 1 / -1; min-height: 0; padding: 4px; background: none; color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.ck-btn--link:hover { color: #fff; }
.ck-btn--save { display: none; grid-column: 1 / -1; }
.ck.is-set .ck-btn--save { display: block; }
.ck.is-set .ck-btn--link { display: none; }

/* посилання у футері */
.ftr__cookie { display: inline-flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 6px; font-size: .78rem; }
.ftr__cookie a { color: inherit; opacity: .75; text-decoration: underline; text-underline-offset: 3px; }
.ftr__cookie a:hover { opacity: 1; }

@media (max-width: 760px) {
  .ck { left: 10px; right: 10px; width: auto; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .ck__in { padding: 16px; }
  .ck__ic { width: 38px; height: 38px; }
  .ck__title { font-size: .98rem; }
  .ck__text { font-size: .8rem; }
  .ck-btn { min-height: 42px; font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }
