/* ===== COOKIE CONSENT (152-ФЗ: активное согласие до загрузки аналитики) ===== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  padding: 14px clamp(16px, 5vw, 32px);
  background: rgba(250, 248, 245, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(var(--c-brand-rgb), 0.12);
  box-shadow: 0 -6px 30px rgba(var(--c-brand-rgb), 0.10);
  animation: cookie-rise 0.35s ease;
}

@keyframes cookie-rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent { animation: none; }
}

.cookie-consent-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
}

.cookie-consent-text {
  margin: 0;
  flex: 1 1 320px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(var(--c-brand-deep-rgb), 0.82);
}

.cookie-consent-text a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cookie-consent-btn--accept {
  background: var(--c-brand);
  color: var(--c-bg);
  border: 1px solid var(--c-brand);
}
.cookie-consent-btn--accept:hover {
  background: var(--c-brand-wine);
  border-color: var(--c-brand-wine);
}

.cookie-consent-btn--decline {
  background: transparent;
  color: rgba(var(--c-brand-deep-rgb), 0.70);
  border: 1px solid rgba(var(--c-brand-rgb), 0.25);
}
.cookie-consent-btn--decline:hover {
  color: var(--c-brand);
  border-color: rgba(var(--c-brand-rgb), 0.50);
}

/* Мобилка: баннер и плавающий соцблок оба прижаты вниз — прячем соцблок,
   пока висит баннер (первый визит, до выбора). Кнопки — на всю ширину. */
@media (max-width: 767px) {
  body.cookie-pending .social-float { display: none; }
  .cookie-consent-inner { gap: 12px; }
  /* Кнопки в столбик — «Только необходимые» длинная, в строку не влезает */
  .cookie-consent-actions { width: 100%; flex-direction: column; }
  .cookie-consent-btn { width: 100%; }
}
