/* ================= checkout, thank-you, legal ================= */
[hidden] { display: none !important; }
.co { padding: 120px clamp(16px, 6vw, 110px) 96px; min-height: 100vh; }
.co-wrap, .co-done, .legal { margin-inline: auto; }
.co-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: 'head head' 'form sum' 'empty empty'; column-gap: clamp(32px, 5vw, 96px); max-width: 1240px; align-items: start; }
.co-head { grid-area: head; margin-bottom: 36px; }
.co-head .kick { margin-bottom: 14px; }
.co-empty { grid-area: empty; }
.co-empty p { font-size: 18px; color: var(--body); margin-bottom: 20px; }

.co-form { grid-area: form; }
.co-form fieldset { border: 0; padding: 0 0 36px; margin: 0 0 36px; border-bottom: 1px solid var(--line); }
.co-form fieldset:last-child { border-bottom: 0; }
.co-form legend { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .14em; color: #B5B1A9; margin-bottom: 20px; padding: 0; }
.co-form legend .idx { color: var(--accent); font-weight: 500; margin-right: 12px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fld { display: flex; flex-direction: column; margin-bottom: 18px; }
.fld-l { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.fld-l i { font-style: normal; color: #6E6A63; margin-left: 4px; }
.fld input, .fld textarea { width: 100%; min-height: 52px; padding: 14px 16px; background: #111; border: 1px solid #2C2C2C; color: var(--text);
  font: 500 16px/1.4 'Manrope', sans-serif; transition: border-color .2s ease, background-color .2s ease; }
.fld textarea { resize: vertical; min-height: 96px; }
.fld input::placeholder, .fld textarea::placeholder { color: #5E5A54; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--text); background: #141414; }
.fld-h { font-size: 12px; color: #77736C; margin-top: 7px; line-height: 1.45; }
.fld-e { font-size: 13px; color: #FF7A6B; margin-top: 7px; }
.fld-e:empty { display: none; }
.bad input, .bad textarea { border-color: #FF7A6B; }

.opts { display: grid; gap: 10px; margin-bottom: 22px; }
.opt { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #2C2C2C; background: #101010; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.opt:hover { border-color: #4A4A4A; }
.opt input { appearance: none; width: 20px; height: 20px; border: 1px solid #555; border-radius: 50%; margin: 0; display: grid; place-items: center; }
.opt input::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s cubic-bezier(.23,1,.32,1); }
.opt input:checked { border-color: var(--accent); }
.opt input:checked::after { transform: scale(1); }
.opt:has(input:checked) { border-color: #4B5612; background: #12140A; }
.opt input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt-b { display: flex; flex-direction: column; gap: 3px; }
.opt-b b { font-weight: 600; font-size: 16px; }
.opt-b span { font-size: 13px; color: var(--muted); }
.opt-p { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; color: var(--body); text-transform: uppercase; white-space: nowrap; }

/* the order, pinned beside the form */
.co-sum { grid-area: sum; position: sticky; top: 100px; padding: 28px 26px; background: #0F0F0F; border: 1px solid #222; }
.co-sum-h { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 24px; text-transform: uppercase; margin-bottom: 8px; }
.co-lines { list-style: none; margin-bottom: 18px; }
.co-lines li { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1E1E1E; }
.co-lines li > i { width: 8px; height: 8px; border-radius: 50%; }
.co-lines a { font-weight: 600; font-size: 15px; }
.co-lines b { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; white-space: nowrap; min-width: 72px; text-align: right; }
.co-lines .stepper { margin: 0; }
.co-lines .stepper button { width: 34px; height: 36px; font-size: 16px; }
.co-promo { margin-top: 18px; }
.co-promo .fld-e { display: block; }
.co-promo .fld-e:empty { display: none; }
.co-money { margin-top: 18px; }
.co-money div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; color: var(--body); }
.co-money dd { color: var(--text); }
.co-money .co-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid #2A2A2A; align-items: baseline; }
.co-total dt { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.co-total dd { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 32px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 20px 0 18px; font-size: 13px; line-height: 1.5; color: var(--body); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.consent a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.consent .fld-e { grid-column: 2; margin-top: 0; }
.consent .fld-e:empty { display: none; }
/* three in a row: the two required ones, then the optional mailing */
.consents { margin: 20px 0 18px; display: grid; gap: 12px; }
.consents .consent { margin: 0; }
.consent i { font-style: normal; color: var(--muted); }
.co-pay { min-height: 58px; font-size: 13px; }
.co-pay.busy { opacity: .7; cursor: progress; }
.co-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.co-err { font-size: 14px; color: #FF7A6B; margin-top: 12px; }
.co-help { display: inline-block; margin-top: 18px; font-size: 11px; }

/* thank-you */
.co-done { max-width: 720px; }
.co-done .kick { margin-bottom: 18px; }
.co-done .h-s { margin-bottom: 24px; }
.co-done .lead { margin-top: 18px; }
.co-done .co-lines li { grid-template-columns: 1fr auto; }
.co-done-a { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.co-demo { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; line-height: 1.6; color: var(--d3); border: 1px solid #4A3A10; padding: 10px 14px; margin-bottom: 22px; }

/* legal */
.legal { max-width: 820px; }
.legal .p-back { display: inline-block; margin-bottom: 28px; }
.legal .h-s { margin-bottom: 24px; }
.legal-parts { margin: 8px 0 28px 20px; font-size: 17px; line-height: 1.9; color: var(--body); }
/* a finished text (оферта): reads as a document — numbered clauses, quiet headings */
.legal-doc .h-s { margin-bottom: 10px; }
.legal-sub { font-size: 17px; line-height: 1.5; color: var(--body); margin-bottom: 18px; }
.legal-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 28px; }
.legal-doc p, .legal-doc li, .legal-doc dd { font-size: 16px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.legal-doc p { margin-bottom: 10px; }
.legal-doc .legal-pre { margin-bottom: 8px; }
.legal-doc .n { color: var(--text); font-weight: 600; }
.legal-doc section { margin-top: 34px; scroll-margin-top: 90px; }
.legal-doc h2 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.legal-doc ul { margin: 0 0 10px 22px; }
.legal-doc li { margin-bottom: 4px; }
.legal-doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.legal-doc a:hover { text-decoration-color: var(--text); }
.legal-req div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.legal-req .who { display: block; font-weight: 600; color: var(--text); font-size: 16px; border-top: 0; padding-top: 0; }
.legal-req dt { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.legal-req dd { overflow-wrap: anywhere; }
.legal-tbl { margin: 6px 0 16px; overflow-x: auto; }
.legal-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; color: var(--body); }
.legal-tbl th { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.legal-tbl td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-tbl td:first-child { color: var(--text); }
/* /legal/: the list of documents */
.legal-doc .legal-list { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.legal-doc .legal-list li { margin: 0; }
.legal-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.legal-doc .legal-list a { color: var(--text); }
.legal-list b { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; }
.legal-list span { grid-column: 1; font-size: 15px; color: var(--body); }
.legal-list i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--muted); transition: color .2s, transform .2s; }
.legal-list a:hover i { color: var(--accent); transform: translateX(4px); }
@media (max-width: 560px) {
  .legal-req div { grid-template-columns: 1fr; gap: 0; }
  /* the table becomes cards: each row a block, each cell with its column name */
  .legal-tbl thead { display: none; }
  .legal-tbl tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal-tbl td { display: block; border: 0; padding: 2px 0; }
  .legal-tbl td:not(:first-child)::before { content: attr(data-h) ': '; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .legal-tbl td:first-child { font-weight: 600; margin-bottom: 4px; }
}

@media (max-width: 860px) {
  .co { padding: 96px 16px 64px; }
  /* phones: fill in first, then the order with the pay button at the end — never a pay button above empty fields */
  .co-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'form' 'sum' 'empty'; }
  .co-head { margin-bottom: 24px; }
  .co-form fieldset:last-child { margin-bottom: 0; padding-bottom: 28px; }
  .co-sum { position: static; padding: 20px 18px; }
  .fld-row { grid-template-columns: 1fr; }
  .co-lines li { grid-template-columns: 10px 1fr auto; row-gap: 8px; }
  .co-lines li .stepper { grid-column: 2; justify-self: start; }
  .co-lines li b { grid-column: 3; grid-row: 1; }
}

/* the bots' field (api/orders.js): off screen, not display:none — some bots skip hidden fields */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* thank-you: the channel while the jars travel */
.co-tg { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s; }
.co-tg:hover { border-color: var(--muted); }
.co-tg img { width: 44px; height: 44px; border-radius: 50%; }
.co-tg span { font-size: 14px; line-height: 1.5; color: var(--body); }
.co-tg b { display: block; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.co-tg i { font-style: normal; color: var(--muted); }