/* consent.css — cookie-банер згоди на аналітику (Ф6 наскрізної аналітики).
   Реюз токенів styles.css (--ink/--ecru/--brown/--wrap/--ease-out); нових hex немає. */

.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--ink); color: var(--ecru);
  border-top: 1px solid rgba(247,243,236,.14);
  padding: 18px 24px;
  box-shadow: 0 -10px 30px -18px rgba(25,26,24,.5);
}
.consent-banner__inner {
  max-width: var(--wrap); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 24px;
}
.consent-banner__text {
  margin: 0; font-size: .88rem; line-height: 1.55; flex: 1 1 320px; min-width: 0;
  color: rgba(247,243,236,.9); max-width: 64ch;
}
.consent-banner__text a { color: var(--ecru); text-decoration: underline; text-underline-offset: 3px }
.consent-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0 }
.consent-banner__actions .btn { padding: 12px 22px; font-size: .72rem }
.consent-banner__decline.btn--ghost {
  color: var(--ecru); background: rgba(247,243,236,.08);
  box-shadow: inset 0 0 0 1.5px rgba(247,243,236,.85);
}
.consent-banner__decline.btn--ghost:hover { background: var(--ecru); color: var(--ink) }
.consent-banner :focus-visible { outline: 2px solid var(--ecru); outline-offset: 3px; border-radius: 2px }

@media (prefers-reduced-motion: no-preference) {
  .consent-banner { animation: consentIn .3s var(--ease-out, ease-out) }
}
@keyframes consentIn { from { transform: translateY(12px); opacity: 0 } to { transform: none; opacity: 1 } }

/* A12: компактніше на десктопі — не дає банеру наростати вище й перекривати H2/CTA першого екрана */
@media (min-width: 901px) {
  .consent-banner { padding: 14px 24px; max-height: 108px; overflow: auto }
  .consent-banner__text { font-size: .84rem }
}

@media (max-width: 600px) {
  .consent-banner { padding: 16px }
  .consent-banner__inner { gap: 12px 0 }
  .consent-banner__actions { flex-direction: column; width: 100% }
  .consent-banner__actions .btn { width: 100%; text-align: center; box-sizing: border-box }
}
