.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 320px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__inner {
  padding: 14px 16px 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 255, 209, 0.18), transparent 55%),
    radial-gradient(circle at 120% 120%, rgba(0, 255, 209, 0.16), transparent 55%),
    rgba(3, 10, 16, 0.92);
  border: 1px solid rgba(0, 255, 209, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Текст */

.cookie-banner__title {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.cookie-banner__desc {
  margin: 0 0 10px;
  color: rgba(245, 245, 245, 0.86);
}

/* Кнопки */

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-banner__btn {
    border-radius: 5px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 255, 209, 0.6);
    font-size: 13px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    background: transparent;
    color: #e8ffff;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cookie-banner__btn--primary {
  background: linear-gradient(135deg, #00ffd1, #00b8ff);
  color: #02070a;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 255, 209, 0.6);
}

.cookie-banner__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 255, 209, 0.8);
}

.cookie-banner__btn--secondary {
  background: rgba(7, 21, 30, 0.9);
}

.cookie-banner__btn--secondary:hover {
  background: rgba(7, 21, 30, 1);
}


/* БАЗА ДЛЯ МОДАЛКИ */
.modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

/* класс для открытия */
.modal.is-open {
	display: flex;
}

/* затемнение фона */
.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(3px);
}

/* окно */
.modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	padding: 28px 26px 26px;
	background: radial-gradient(circle at top left, #051015 0%, #020509 55%, #020407 100%);
	border-radius: 10px; /* не круг */
	border: 1px solid rgba(34, 254, 254, 0.35);
	box-shadow: 0 20px 55px rgba(0, 0, 0, 0.95);
	color: #fff;
	font-family: var(--exo, system-ui, sans-serif);
}

/* крестик */
.modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 28px;
	height: 28px;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: #ffffffbb;
	font-size: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modal__close:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(34, 254, 254, 0.65);
	transform: translateY(-1px);
}

/* заголовок, текст */
.modal__header {
	margin-bottom: 20px;
}

.modal__title {
	margin: 0 0 8px;
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.modal__subtitle {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

/* формы */
.modal-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.modal-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.modal-form__field label {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
}

.modal-form__field input {
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(5, 10, 14, 0.9);
	color: #fff;
	padding: 10px 12px;
	font-size: 14px;
	outline: none;
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
}

.modal-form__field input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.modal-form__field input:focus {
	border-color: rgba(34, 254, 254, 0.75);
	background: rgba(5, 15, 20, 1);
	box-shadow: 0 0 0 1px rgba(34, 254, 254, 0.35);
}

/* чекбокс */
.modal-form__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	margin-top: 4px;
}

.modal-form__checkbox input[type="checkbox"] {
	margin-top: 2px;
	accent-color: #22fefe;
}

/* ссылка на политику */
.modal-form__checkbox a {
	color: #22fefe;
	text-decoration: none;
	border-bottom: 1px dotted rgba(34, 254, 254, 0.7);
}

.modal-form__checkbox a:hover {
	border-bottom-style: solid;
}

/* кнопка отправки */
.modal-form__submit {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 46px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(90deg, #06d7d7 0%, #00a3a3 100%);
    color: #ffffff;
    font-family: var(--mulish);
    font-size: 16px;
    font-weight: 300;
    line-height: 100%;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-form__submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
}

.modal-form__submit:active {
	transform: translateY(0);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.85);
	opacity: 0.9;
}

@media (max-width: 600px) {
	.modal__dialog {
		max-width: 100%;
		margin: 0 16px;
		padding: 22px 18px 20px;
	}

	.modal__title {
		font-size: 18px;
	}

	.modal__subtitle {
		font-size: 13px;
	}
}
/* Адаптив: на очень маленьких экранах двигаем чуть выше и внутрь */

@media (max-width: 480px) {
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    max-width: 280px;
    font-size: 12px;
  }

  .cookie-banner__inner {
    padding: 12px 12px 10px;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }
}
