/* ============================================================
   CMS «Артлекс» — стили служебных элементов сайта ОНЕГО
   (заявки, согласие, cookie, 404, кнопка «Наверх»)
   ============================================================ */

/* ---------- Галочка согласия (подставляется JS во все .js-form) ---------- */
.checkbox--consent { margin-top: 4px; cursor: pointer; }
.checkbox--consent input { margin-top: 2px; accent-color: var(--orange); }
.checkbox--consent a { color: inherit; text-decoration: underline; }
.checkbox--consent.is-error { color: #d33; }
.checkbox--consent.is-error input { outline: 2px solid #d33; outline-offset: 1px; }

/* ---------- Ошибки валидации ---------- */
.js-form .is-error,
input.is-error, textarea.is-error, select.is-error {
  border-color: #d33 !important;
  box-shadow: 0 0 0 3px rgba(221, 51, 51, .12);
}

/* ---------- Блок «Заявка отправлена» в секционных формах ---------- */
.form-success { text-align: center; padding: 28px 16px; }
.form-success__icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: #18a058; background: rgba(24, 160, 88, .12); border-radius: 50%;
}
.form-success h4 { margin: 0 0 8px; font-size: 20px; }
.form-success p { margin: 0; color: var(--gray); }

/* ---------- Cookie-уведомление ---------- */
.cookie-pop {
  position: fixed; left: 16px; bottom: 16px; z-index: 900;
  max-width: 380px; padding: 16px 18px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 35, 65, .18);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13.5px; line-height: 1.45; color: var(--ink);
}
.cookie-pop p { margin: 0; }
.cookie-pop .btn { align-self: flex-start; }
.cookie-pop.hidden { display: none; }
.footer__cookie {
  padding: 10px 0; font-size: 12.5px; color: rgba(255, 255, 255, .65);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- Кнопка «Наверх» ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 800;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--orange); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 122, 26, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255, 122, 26, .5); }
.to-top[hidden] { display: none; }

/* ---------- Служебная шапка страницы (404, авто-H1) ---------- */
.page-head { padding: 60px 0 24px; }
.page-head__title { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.page-head__sub { color: var(--gray); max-width: 640px; }
.page-head .btn { display: inline-block; }

@media (max-width: 640px) {
  .cookie-pop { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .to-top { right: 12px; bottom: 12px; width: 42px; height: 42px; }
}
