:root {
  --bg: #f6efe3; --card: #fcf8f1; --ink: #3a3326; --muted: #7a6f5f; --line: #e3d6bf; --gold: #b8894a; --red: #9b1610; --red-d: #7d100b;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif; --sans: Montserrat, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); }
a { color: var(--red); }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: 0 auto; padding: 18px 16px 0; }
.brand { font-weight: 700; letter-spacing: .22em; font-size: 13px; color: var(--ink); text-decoration: none; }
.lock { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.lock::before { content: ""; width: 10px; height: 12px; border: 2px solid var(--gold); border-radius: 2px 2px 3px 3px; box-shadow: inset 0 -5px 0 var(--gold); }
.wrap { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }

.hero { text-align: center; padding: 28px 8px 20px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .24em; color: var(--gold); }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 6vw, 48px); line-height: 1.15; margin: 10px 0 0; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 10px; }
.rule { width: 72px; height: 2px; background: var(--ink); opacity: .7; margin: 20px auto 16px; }
.sub { margin: 0; color: var(--ink); letter-spacing: .02em; }
.muted { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px clamp(18px, 5vw, 44px); box-shadow: 0 18px 50px -30px rgba(80, 55, 20, .45); }
.card.center { text-align: center; } .card.center h1 { font-size: 32px; } .card.center .btn { margin-top: 12px; }
.test { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #7a1a10; border: 1px dashed #e0a59b; font-size: 13px; }

.sec { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; font-size: 21px; }
.sec:first-of-type { margin-top: 0; }
.sec span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; font: 600 14px/30px var(--sans); text-align: center; }

.f { display: block; margin: 0 0 18px; }
.f > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.f i, .agree i { color: var(--gold); font-style: normal; }
.f input, .f select { width: 100%; font: 16px var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #cdbb9b; padding: 10px 2px; border-radius: 0; outline: none; transition: border-color .15s, background .15s; }
.f select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233a3326' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 26px; }
.f input:focus, .f select:focus { border-bottom-color: var(--gold); background: #fffaf0; }
.f small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.f.bad input, .f.bad select { border-bottom-color: var(--red); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bill { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fffdf8; }
.bill th, .bill td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.bill th { font-size: 12px; font-weight: 600; color: var(--muted); background: #f8f0e2; }
.bill th:nth-child(2), .bill td:nth-child(2) { text-align: center; width: 48px; }
.bill th:last-child, .bill td:last-child { text-align: right; white-space: nowrap; }
.bill tfoot td { border-bottom: 0; } .bill tfoot td:first-child { text-align: right; font-weight: 600; }
.bill tfoot b { font-family: var(--serif); font-size: 22px; color: var(--red); font-weight: 600; }

.terms { max-height: 240px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.6; overscroll-behavior: contain; }
.terms p { margin: 0 0 8px; } .terms ul { margin: 0 0 8px; padding-left: 18px; } .terms li { margin-bottom: 3px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fbf1de; border: 1px solid #ead6ae; cursor: pointer; font-size: 14px; }
.agree input { width: 19px; height: 19px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.agree.bad { border-color: var(--red); }

.err { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #8a1a10; font-size: 14px; }
.logos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 14px; }
.by { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.by img { height: 22px; width: auto; }
.cards { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.cards img { height: 26px; width: auto; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); background: #fff; }

.btn { display: block; width: 100%; max-width: 480px; margin: 0 auto; padding: 17px 24px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: 700 14px var(--sans); letter-spacing: .2em; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 14px 28px -14px rgba(155, 22, 16, .8); transition: background .15s, transform .15s, opacity .15s; }
.btn:hover { background: var(--red-d); } .btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #c9b48d; box-shadow: none; letter-spacing: .14em; }
.btn.ghost:hover { background: #f3e7d2; }
.secure { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

.result { text-align: center; margin-top: 30px; }
.result h1 { font-size: clamp(28px, 5vw, 40px); }
.lead { font-size: 16px; margin: 12px 0 18px; }
.mark { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; font: 700 30px var(--sans); color: #fff; }
.mark.ok { background: #4a7c3a; } .mark.fail { background: var(--red); } .mark.wait { background: var(--gold); }
.spin { width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.info { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; max-width: 480px; margin: 0 auto 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; font-size: 14px; }
.info dt { color: var(--muted); } .info dd { margin: 0; font-weight: 500; word-break: break-word; }
.next { text-align: left; max-width: 520px; margin: 0 auto 20px; padding-top: 6px; border-top: 1px dashed var(--line); }
.next h2 { margin-top: 16px; font-size: 20px; } .next p { margin: 0 0 8px; }
.row { margin-top: 8px; }

.foot { border-top: 1px solid var(--line); background: #efe5d4; padding: 20px 16px 26px; font-size: 12.5px; color: var(--muted); }
.foot-in { max-width: 760px; margin: 0 auto; display: grid; gap: 4px; text-align: center; }
.foot b { color: var(--ink); font-weight: 600; }
.foot-op { display: inline-flex; justify-content: center; align-items: center; gap: 6px; margin-top: 6px; }
.foot-op img { height: 18px; width: auto; }
@media (max-width: 520px) {
  .bill th:first-child, .bill td:first-child { padding-right: 6px; }
  .logos { justify-content: flex-start; }
}
