/* Cookie consent — Planora glass bar (как шапка сайта) */
.cookie-banner {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: max(48px, calc(28px + env(safe-area-inset-bottom, 0px)));
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(44, 52, 78, 0.14);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  color: #111216;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.cookie-banner-kicker {
  margin: 0 0 4px;
  color: #8257ff;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cookie-banner p {
  margin: 0;
  color: #696b75;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner a {
  color: #111216;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 18, 22, 0.22);
}

.cookie-banner a:hover {
  border-bottom-color: #111216;
}

.cookie-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 15px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #111216;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(44, 52, 78, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn-primary {
  border: 0;
  background: linear-gradient(135deg, #8257ff, #ef6dca);
  color: #fff;
  box-shadow: 0 12px 28px rgba(130, 87, 255, 0.22);
}

.cookie-btn:focus-visible {
  outline: 2px solid #1684ff;
  outline-offset: 2px;
}

.cookie-manage {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: max(48px, calc(28px + env(safe-area-inset-bottom, 0px)));
  min-height: 42px;
  padding: 0 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(44, 52, 78, 0.12);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: #111216;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-manage[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .cookie-banner {
    bottom: max(36px, calc(20px + env(safe-area-inset-bottom, 0px)));
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 22px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1 1 0;
  }
}
