/* Наше поверх комплекта (10.11.2026): галочка согласия, окно «Нужно ваше согласие», ссылки на документы внизу.
   Размеры — в тех же единицах, что у комплекта (cqw от .page), цвета — его же. */

.form-legal { margin-top: clamp(4px, .5cqw, 8px); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: .6em;
  color: #514031;
  font-size: max(12.5px, 1.08cqw);
  line-height: 1.4;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  margin: .02em 0 0;
  accent-color: #ad3035;
  cursor: pointer;
}

.consent a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #51403166;
  text-underline-offset: 2px;
}

.consent a:hover { color: var(--red); text-decoration-color: currentColor; }

.form-message a { color: inherit; white-space: nowrap; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  padding: 0 var(--gutter) clamp(20px, 2.4cqw, 36px);
  font-size: clamp(12px, .95cqw, 14px);
}

.site-footer a {
  color: #7a6a60;
  text-decoration: none;
}

.site-footer a:hover { color: var(--red); text-decoration: underline; }

/* ---- окно согласия ---- */
.consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #1c1c1c73;
}

.consent-dialog[hidden] { display: none; }

.consent-dialog__window {
  width: min(100%, 420px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 28px 24px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px #2a1a1033;
  text-align: center;
}

.consent-dialog__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.consent-dialog__text {
  margin: 0 0 20px;
  color: #514031;
  font-size: 15px;
  line-height: 1.45;
}

.consent-dialog__text a { color: var(--red); }

.consent-dialog__accept,
.consent-dialog__back {
  display: block;
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.consent-dialog__accept {
  min-height: 52px;
  padding: .55em 1em;
  border: 1px solid #ac6e241c;
  border-radius: 14px;
  background: linear-gradient(105deg, var(--apricot), #ffda9f);
  box-shadow: inset 0 1px #ffffff80, 0 4px 12px #ac6e2424;
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 700;
}

.consent-dialog__back {
  min-height: 44px;
  margin-top: 6px;
  border: 0;
  background: none;
  color: #6b5d55;
  font-size: 15px;
}

.consent-dialog__accept:focus-visible,
.consent-dialog__back:focus-visible {
  outline: 2px solid #89191e;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .form-legal { margin-top: 2.5cqw; }
  .consent { font-size: 13px; }
  .site-footer { padding: 0 5.4cqw 7cqw; font-size: 12.5px; flex-direction: column; align-items: center; }
}
