/* Баннер согласия на cookies — фиксированная панель снизу */
.cookie-banner {
  position: fixed;
  z-index: 10000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  pointer-events: none;
}

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

.cookie-banner__inner {
  pointer-events: auto;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid rgba(100, 180, 255, 0.35);
  background: rgba(12, 13, 22, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-banner__text a {
  color: #64b4ff;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: #9dceff;
}

.cookie-banner__btn {
  flex-shrink: 0;
  min-width: 132px;
  min-height: 46px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #047efe;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cookie-banner__btn:hover {
  background: #0561c1;
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid #9dceff;
  outline-offset: 2px;
}

.cookie-banner__btn:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.28);
  }

  .cookie-banner__text {
    font-size: 12px;
    line-height: 1.45;
    flex: 1 1 auto;
  }

  .cookie-banner__btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .cookie-banner__inner {
    padding: 10px 12px;
  }

  .cookie-banner__text {
    font-size: 11px;
    line-height: 1.42;
  }

  .cookie-banner__btn {
    min-height: 40px;
    font-size: 13px;
  }
}
