/* ============================================
   COOKIE / ANALYTICS CONSENT
   S-Tech Energy
   ============================================ */

.cookie-notice {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  max-width: 1180px;
  margin: 0 auto;

  padding: 18px 22px;

  background: #ffffff;
  color: var(--color-text, #222222);

  border: 1px solid rgba(0, 0, 0, 0.10);
  border-left: 4px solid #E94A2C;
  border-radius: 8px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);

  font-family: var(--font-body, Arial, sans-serif);

  animation: consentSlideUp 1s ease-out;
}

/* Текст */

.cookie-notice__text {
  flex: 1;
  min-width: 0;
}

.cookie-notice__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-notice__text p + p {
  margin-top: 5px;
}

/* Ссылки */

.cookie-notice__text a {
  color: #E94A2C;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.cookie-notice__text a:hover {
  color: #c83d24;
  opacity: 0.9;
}

/* Кнопка */

/* .cookie-notice__button {
  flex: 0 0 auto;

  padding: 10px 22px;

  border: 1px solid #E94A2C;
  border-radius: 5px;

  background: #E94A2C;
  color: #ffffff;

  font-family: var(--font-body, Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;

  line-height: 1;
  white-space: nowrap;

  cursor: pointer;

  /* transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cookie-notice__button:hover {
  background: #d84326;
  border-color: #d84326;

  transform: translateY(-1px);

  box-shadow: 0 4px 12px rgba(233, 74, 44, 0.25);
}

.cookie-notice__button:active {
  transform: translateY(0);
  box-shadow: none;
}

.cookie-notice__button:focus-visible {
  outline: 2px solid #3864AD;
  outline-offset: 3px;
} */

.cookie-notice__button {
  flex: 0 0 auto;

  padding: 10px 22px;

  /* Базовая рамка, как у .btn-primary, чтобы избежать дергания */
  border: 1px solid transparent;
  border-radius: 5px;

  background: #E94A2C; /* Соответствует var(--color-orange) */
  color: #ffffff;

  font-family: var(--font-body, Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;

  line-height: 1;
  white-space: nowrap;

  cursor: pointer;

  /* Плавный переход, полностью скопированный из .btn и .btn-primary */
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

/* Эффект при наведении (инверсия цвета, как у .btn-primary:hover) */
.cookie-notice__button:hover {
  background: #ffffff;
  color: #E94A2C;
  border-color: #E94A2C;

  /* Убираем старый translateY и тени */
  transform: none;
  box-shadow: none;
}

/* Эффект нажатия (как у .btn:active) */
.cookie-notice__button:active {
  transform: scale(0.97);
  box-shadow: none;
}

.cookie-notice__button:focus-visible {
  outline: 2px solid #3864AD;
  outline-offset: 3px;
}

/* Анимация появления */

@keyframes consentSlideUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 700px) {
  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;

    flex-direction: column;
    align-items: stretch;
    gap: 14px;

    padding: 16px 17px;

    border-left-width: 3px;
  }

  .cookie-notice__text p {
    font-size: 13px;
    line-height: 1.45;
  }

  .cookie-notice__text p + p {
    margin-top: 6px;
  }

  .cookie-notice__button {
    width: 100%;
    min-height: 42px;
  }
}

/* Уважение к настройкам пользователя */

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    animation: none;
  }

  .cookie-notice__button,
  .cookie-notice__text a {
    transition: none;
  }
}
