/* ============================================================
   Баннер о сборе cookie-файлов (152-ФЗ / требования Роскомнадзора).
   Показывается при первом открытии сайта; выбор запоминается в
   localStorage. Слово «согласие» ведёт на pdn.html, «Политика» —
   на politika.html. Держим стиль/скрипт баннера отдельно от
   styles.css-монолита. Переменные (--ink/--muted/--blue) — из styles.css.
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 22px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(20, 33, 58, .22), 0 2px 8px rgba(20, 33, 58, .08);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Плавное появление; до готовности JS баннер скрыт (см. is-hidden). */
  transition: opacity .28s ease, transform .28s ease;
}

/* Скрытое состояние: и до решения JS (нет класса), и после закрытия. */
.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cookie-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cookie-banner__close:hover { background: #f0f2f6; color: var(--ink); }

.cookie-banner__text {
  margin: 0 0 16px;
  padding-right: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.cookie-banner__text a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}
.cookie-banner__text a:hover { text-decoration: underline; }

.cookie-banner__accept {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eef2f6;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease;
}
.cookie-banner__accept:hover { background: #e4e9f0; }

@media (min-width: 560px) {
  .cookie-banner { left: 24px; right: auto; bottom: 24px; margin: 0; }
}
