/* Плашка согласия на cookie */
.cookie-card {
  position: fixed;
  right: 56px;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(380px, calc(100vw - 48px));
  padding: 24px;
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-cookie);
}

.cookie-card[hidden] {
  display: none;
}

.cookie-card__icon {
  flex: none;
  width: 44px;
  height: 44px;
}

.cookie-card__dough {
  fill: var(--warm-accent);
  stroke: var(--warm-ink-strong);
  stroke-width: 2;
  stroke-linejoin: round;
}

.cookie-card__chip {
  fill: var(--warm-ink-strong);
}

.cookie-card__heading {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.cookie-card__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-muted);
}

.cookie-card__text a {
  text-decoration: underline;
}

.cookie-card__btn {
  padding: 10px 20px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--warm-ink-strong);
  background: var(--warm-accent);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-card__btn:hover {
  color: var(--warm-accent);
  background: var(--warm-ink-strong);
}

/* С 1180px hero становится одной колонкой: айфон уходит вниз, плашку центрируем */
@media (max-width: 1180px) {
  .cookie-card {
    left: 50%;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(380px, calc(100vw - 64px));
    padding: 20px;
    transform: translateX(-50%);
  }
}

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