/* Подвал с реквизитами и окно оформления заказа. Тот же светлый стиль, что и у страницы. */

/* ---------- Подвал ---------- */
.legal-foot { margin-top: 30px; padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; }
.legal-foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 80px; align-items: start; }
.legal-req p { max-width: 520px; margin: 0; }
.legal-name { margin-bottom: 8px !important; color: var(--fg); font-size: 15px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; }
.legal-links { display: grid; gap: 4px; }
.legal-links a, .legal-req a { text-decoration-color: #bdbdb3; text-underline-offset: 4px; transition: color .2s; }
.legal-links a { display: inline-block; padding: 4px 0; }
.legal-links a:hover, .legal-req a:hover { color: var(--fg); }
.legal-note { max-width: 760px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: #85857d; }

/* ---------- Окно оформления заказа ---------- */
.order-dialog {
  position: fixed; inset: 0; width: min(480px, calc(100% - 28px)); max-width: none; max-height: min(94dvh, 820px); margin: auto; padding: 0;
  border: 1px solid #d4d4ca; border-radius: 16px; background: #fafaf8; color: #252522; overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px #2a28212e; font-family: Manrope, -apple-system, 'Segoe UI', sans-serif;
}
.order-dialog::backdrop { background: #2a2a248c; }
.order-open { overflow: hidden; }
.order-in { position: relative; padding: 30px 28px 26px; }
.order-close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #55514d; cursor: pointer; transition: background .2s;
}
.order-close:hover { background: #ecece6; }
.order-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.order-title { margin: 0 40px 14px 0; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.045em; }

.order-sum { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #dcdcd5; border-radius: 10px; background: #f0f0ed; }
.order-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.order-sum-name { font-size: 15px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.order-sum-price { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.order-sum-price s { color: #8a8a82; font-size: 13px; }
.order-sum-price b { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.order-sum p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: #60605a; }
.order-sum a { text-decoration-color: #bdbdb3; text-underline-offset: 3px; }

.order-form { display: grid; gap: 12px; }
.of { display: grid; gap: 5px; }
.of > span { font-size: 12.5px; font-weight: 700; color: #3d3d38; }
.of input {
  display: block; width: 100%; height: 50px; padding: 0 14px; appearance: none; background: #fff; color: #252522;
  border: 1px solid #d4d2ca; border-radius: 8px; font: 500 15px Manrope, -apple-system, sans-serif; transition: border-color .2s, box-shadow .2s;
}
.of input::placeholder { color: #8a8a82; font-weight: 400; }
.of input:focus { outline: none; border-color: #252522; box-shadow: 0 0 0 3px #ee4b1730; }
.of input[aria-invalid="true"] { border-color: #b3260b; box-shadow: 0 0 0 1px #b3260b; }
.of input:disabled { opacity: .6; }
.of-hint { margin: -4px 0 0; font-size: 12.5px; line-height: 1.5; color: #676761; }

.order-consents { display: grid; gap: 12px; margin-top: 4px; }
.chk { position: relative; display: flex; align-items: flex-start; gap: 11px; font-size: 13px; line-height: 1.5; color: #55514d; }
.chk input { position: absolute; z-index: 1; left: -4px; top: -3px; width: 28px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.chk-box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #8a8a82; border-radius: 5px; background: #fff; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.chk input:checked + .chk-box {
  background: #ee4b17 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: #ee4b17;
}
.chk input:focus-visible + .chk-box { outline: 2px solid #a83d27; outline-offset: 2px; }
.chk input[aria-invalid="true"] + .chk-box { border-color: #b3260b; box-shadow: 0 0 0 3px #b3260b26; }
.chk a { text-decoration-color: #bdbdb3; text-underline-offset: 3px; }
.chk a:hover { text-decoration-color: currentColor; }
.chk .opt { color: #85857d; }

.order-err { margin: 2px 0 0; font-size: 14px; line-height: 1.45; font-weight: 700; color: #b3260b; }
.order-dialog .order-pay.cta { position: relative; overflow: hidden; width: 100%; margin-top: 6px; padding: 17px 22px; border-radius: 8px; background: #ee4b17; color: #fff; font-size: 16px; }
.order-dialog .order-pay.cta:hover { background: #d94112; }
.order-dialog .order-pay.cta:disabled { opacity: .85; cursor: default; }
@keyframes order-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.order-form.is-sending .order-pay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff55, transparent); animation: order-sweep 1s linear infinite; }
.order-note { margin: 2px 0 0; font-size: 12px; line-height: 1.55; color: #676761; text-align: center; }

.order-demo h2 { margin: 0 40px 12px 0; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.045em; }
.order-demo p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: #60605a; }
.order-demo .cta { margin-top: 8px; width: 100%; }

@media (max-width: 760px) {
  .legal-foot { padding: 36px 0 44px; }
  .legal-foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .order-in { padding: 26px 20px 22px; }
  .order-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .order-form.is-sending .order-pay::after { animation: none; } }
