/* Cookie banner */
.cookie-banner {
  --cb-border: #ac8d50;
  --cb-bg: rgba(255, 255, 255, 0.95);
  --cb-link: #6b6b6b;
  --cb-link-hover: #000;

  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 100000;

  width: 90%;
  min-width: 280px;
  max-width: 1190px;

  padding: 16px;
  border: 2px solid var(--cb-border);
  border-radius: 12px;
  background: var(--cb-bg);

  font-size: 13px;
  font-family: "NT Somic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .35s ease, transform .35s ease;
  will-change: opacity, transform;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}


@supports (backdrop-filter: blur(10px)) {
  .cookie-banner {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.8);
  }
}

.cookie-banner.show-banner {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text {
  flex: 1;
  line-height: 1.5;
}

.cookie-banner span {
  font-weight: 600;
  font-family: "NT Somic";
}

.cookie-banner a {
  color: var(--cb-link);
  font-weight: 600;
  text-underline-offset: 2px;
}

.cookie-banner a:hover,
.cookie-banner a:focus-visible {
  color: var(--cb-link-hover);
  text-decoration: underline;
}

/* Button */
.cookie-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 32px;
  border: none;
  border-radius: 999px;

  background-color: #ac8d50;
  color: #fff;

  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform .08s ease, background-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 12px rgba(172,141,80,.25);
}

.cookie-button:hover {
  background-color: #967940;
}

.cookie-button:active {
  transform: translateY(1px);
}

.cookie-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(172,141,80,.35), 0 4px 12px rgba(172,141,80,.25);
}

/* Mobile */
@media (max-width: 750px) {
  .cookie-banner-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .cookie-banner-text {
    width: 100%;
  }
}

/* Уважение пользовательских настроек анимации */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
  .cookie-button {
    transition: none;
  }
}
