/* «Макіяж для себе» · the buy dialog and the /thanks page */
.buy-dlg { width: min(100vw - 24px, 440px); max-height: calc(100svh - 24px); margin: auto; padding: 0; border: 0; border-radius: 18px; background: #FBF8F4; color: var(--ink, #171311);
  box-shadow: 0 40px 80px -30px rgb(20 12 8 / 0.5); overflow: auto; }
.buy-dlg::backdrop { background: rgb(20 14 12 / 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.buy-dlg[open] { animation: buyIn 380ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes buyIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.buy-open { overflow: hidden; }
.buy-dlg__in { position: relative; padding: 28px 24px 24px; display: grid; gap: 16px; }
.buy-dlg__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink-soft, #4E4640); font-size: 26px; line-height: 1; }
.buy-dlg__close:hover { background: rgb(23 19 17 / 0.06); }
.buy-dlg__kicker { margin: 0; font-family: var(--f-text, "Manrope"), sans-serif; font-size: 0.8125rem; color: var(--ink-soft, #4E4640); }
.buy-dlg__kicker::before { content: "[ "; opacity: 0.55; }
.buy-dlg__kicker::after { content: " ]"; opacity: 0.55; }
.buy-dlg__h { margin: 0; font-family: var(--f-display, "Inter Tight"), sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: -0.05em; padding-right: 36px; }
.buy-dlg__h em { font-style: italic; color: var(--burgundy, #862631); }
.buy-dlg__price { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.buy-dlg__price s { color: #8C847C; font-size: 1rem; }
.buy-dlg__price b { font-family: var(--f-display, "Inter Tight"), sans-serif; font-weight: 500; font-size: 1.6rem; letter-spacing: -0.04em; color: var(--burgundy, #862631); }
.buy-dlg form { display: grid; gap: 12px; }
.buy-dlg label { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 500; }
.buy-dlg label small { font-weight: 400; color: var(--ink-soft, #4E4640); }
.buy-dlg input[type=text], .buy-dlg input[type=email], .buy-dlg input[type=tel] { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid rgb(23 19 17 / 0.18); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: inherit; }
.buy-dlg input:focus-visible { outline: 2px solid var(--burgundy, #862631); outline-offset: 1px; border-color: transparent; }
.buy-dlg .buy-dlg__check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-soft, #4E4640); }
.buy-dlg__check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--burgundy, #862631); }
.buy-dlg__check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.buy-dlg__note { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-soft, #4E4640); }
.buy-dlg__err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FBE9EB; color: #7A1F2B; font-size: 0.875rem; line-height: 1.4; }
.buy-dlg [type=submit] { width: 100%; min-height: 56px; border-radius: 999px; justify-content: center; }
.buy-dlg [type=submit]:disabled { opacity: 0.7; cursor: progress; }
.buy-dlg__safe { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.75rem; color: var(--ink-soft, #4E4640); }
.buy-dlg__safe .card-mark { width: 36px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .buy-dlg[open] { animation: none; } }

/* /thanks */
.thanks { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 96px); }
.thanks__h { margin: 12px 0 16px; font-family: var(--f-display, "Inter Tight"), sans-serif; font-weight: 400; font-size: clamp(2.4rem, 1.6rem + 4vw, 4rem); line-height: 1; letter-spacing: -0.05em; }
.thanks__h em { font-style: italic; color: var(--burgundy, #862631); }
.thanks__p { margin: 0 0 16px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink, #171311); max-width: 34em; }
.thanks__soft { color: var(--ink-soft, #4E4640); font-size: 0.9375rem; }
.thanks__spin { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgb(134 38 49 / 0.2); border-top-color: var(--burgundy, #862631); animation: spin 900ms linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.thanks .btn { margin-top: 8px; }
.thanks [hidden] { display: none !important; }

/* round 32 · email-only dialog: compact, top-aligned on phones so the field and
   the button stay visible above the keyboard */
.buy-dlg form { gap: 10px; }
.buy-dlg form > label { display: block; font-size: 0.875rem; font-weight: 500; }
.buy-dlg form > label small { font-size: inherit; font-weight: 400; color: var(--ink-soft, #4E4640); }
.buy-dlg input[aria-invalid="true"] { border-color: #B3263A; background: #FFF7F8; }
.buy-dlg__hint { margin: -2px 0 0; font-size: 0.8125rem; color: #9B1F31; }
.buy-dlg__consent { margin: 0; text-align: center; font-size: 0.6875rem; line-height: 1.45; color: var(--ink-soft, #4E4640); }
.buy-dlg__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.buy-dlg__spin { display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.35); border-top-color: #fff; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .buy-dlg { margin: 10px auto auto; max-height: calc(100dvh - 20px); }
  .buy-dlg__in { padding: 18px 18px 16px; gap: 10px; }
  .buy-dlg__h { font-size: 1.6rem; }
  .buy-dlg__price b { font-size: 1.35rem; }
  .buy-dlg [type=submit] { min-height: 52px; }
  .buy-dlg input[type=email] { min-height: 48px; }
  .buy-dlg__safe { display: none; }
}
