@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --ink: #1d1713;
  --ink-soft: #665b52;
  --paper: #f6f0e7;
  --cream: #fffaf2;
  --terracotta: #b84a2b;
  --saffron: #f2b63f;
  --green: #536247;
  --line: rgba(53, 40, 29, .14);
  --shadow: 0 30px 80px rgba(19, 12, 7, .18);
  --shell: 1160px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body::selection { color: var(--ink); background: var(--saffron); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
input { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.skip-link { position: fixed; z-index: 20; top: 12px; left: 16px; padding: 10px 14px; color: var(--ink); background: white; border-radius: 8px; transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }

.checkout-header { color: white; background: #17120f; border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { color: var(--saffron); font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: -1.5px; }
.brand-copy { font-size: 10px; line-height: 1.15; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.secure-label { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.67); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.secure-label svg { width: 17px; fill: none; stroke: var(--saffron); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.checkout-main { min-height: calc(100vh - 82px); padding: 38px 0 64px; background: radial-gradient(circle at 12% 12%, rgba(242,182,63,.11), transparent 27%), var(--paper); }
.checkout-steps { max-width: 570px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 13px; margin: 0 auto 34px; color: #9a8e84; font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.checkout-steps span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.checkout-steps b { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.5); font-size: 10px; }
.checkout-steps .is-current { color: var(--ink); }
.checkout-steps .is-current b { color: var(--ink); border-color: var(--saffron); background: var(--saffron); }
.checkout-steps i { height: 1px; background: var(--line); }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(360px, .68fr); align-items: start; gap: 28px; }
.product-panel, .order-card { border: 1px solid rgba(53,40,29,.09); background: var(--cream); box-shadow: var(--shadow); }
.product-panel { min-height: 610px; display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border-radius: 24px; }
.product-visual { min-height: 610px; display: grid; place-items: center; padding: 34px; background: radial-gradient(circle at 50% 45%, rgba(242,182,63,.16), transparent 46%), #17120f; }
.product-visual img { max-height: 520px; width: auto; object-fit: contain; filter: drop-shadow(0 28px 30px rgba(0,0,0,.38)); }
.product-copy { align-self: center; padding: 48px 44px; }
.section-label { margin: 0 0 15px; color: var(--terracotta); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: -.04em; }
h1 { max-width: 520px; font-size: clamp(36px, 4vw, 55px); line-height: 1.02; }
h2 { font-size: 27px; }
.product-lead { max-width: 560px; margin: 20px 0 25px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.included-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.included-list li { position: relative; padding-left: 28px; }
.included-list li::before { content: ""; position: absolute; left: 0; top: .18em; width: 16px; height: 16px; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 5px var(--cream); border: 1px solid var(--green); }
.included-list span { color: var(--ink); font-weight: 800; }
.back-link { display: inline-block; margin-top: 30px; color: var(--terracotta); font-size: 12px; font-weight: 750; text-underline-offset: 5px; }

.order-card { position: sticky; top: 22px; padding: 34px; border-radius: 20px; }
.order-product { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 17px 0; border-block: 1px solid var(--line); }
.order-product > div { display: grid; gap: 4px; }
.order-product span { color: var(--ink-soft); font-size: 11px; }
.order-product > strong { color: var(--ink-soft); font-size: 14px; text-decoration: line-through; text-decoration-color: var(--terracotta); }
.price-breakdown { display: grid; gap: 13px; margin: 20px 0 22px; }
.price-breakdown div { display: flex; justify-content: space-between; gap: 20px; color: var(--ink-soft); font-size: 12px; }
.price-breakdown dt, .price-breakdown dd { margin: 0; }
.price-breakdown dd { font-variant-numeric: tabular-nums; font-weight: 750; }
.price-breakdown .discount { color: var(--green); }
.price-breakdown .total { align-items: baseline; padding-top: 17px; color: var(--ink); border-top: 1px solid var(--line); font-size: 15px; font-weight: 800; }
.price-breakdown .total dd { color: var(--terracotta); font-size: 30px; letter-spacing: -.04em; }
.delivery-note { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px; border-radius: 12px; background: #f2eadf; }
.delivery-note svg { width: 23px; margin: 3px auto 0; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.delivery-note div { display: grid; gap: 3px; }
.delivery-note strong { font-size: 12px; }
.delivery-note span { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.checkout-form { display: grid; margin-top: 20px; }
.checkout-form label { margin-bottom: 8px; font-size: 11px; font-weight: 800; }
.email-control { min-width: 0; min-height: 50px; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid rgba(53,40,29,.23); border-radius: 11px; background: white; transition: border-color 160ms ease, box-shadow 160ms ease; }
.email-control:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(184,74,43,.11); }
.email-control.has-error { border-color: #a3352a; box-shadow: 0 0 0 3px rgba(163,53,42,.1); }
.email-control svg { width: 19px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.email-control input { min-width: 0; width: 100%; height: 48px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.email-control input::placeholder { color: #9a8e84; }
.email-help, .field-error { margin: 7px 1px 0; font-size: 9px; line-height: 1.5; }
.email-help { color: var(--ink-soft); }
.field-error { color: #8f291f; font-weight: 700; }
.pay-button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; border: 0; border-radius: 12px; color: var(--ink); background: var(--saffron); box-shadow: 0 12px 32px rgba(242,182,63,.24); font-size: 14px; font-weight: 800; text-decoration: none; transition: transform 160ms cubic-bezier(.23,1,.32,1), background-color 180ms ease, box-shadow 180ms ease; }
.pay-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pay-button:hover { transform: translateY(-2px); background: #ffc755; box-shadow: 0 17px 38px rgba(242,182,63,.31); }
.pay-button:active { transform: scale(.98); }
.pay-button:disabled { color: rgba(29,23,19,.55); background: #dfd6c8; box-shadow: none; cursor: wait; transform: none; }
.gateway-note { margin: 9px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.45; text-align: center; }
.payment-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 20px; }
.payment-methods span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); background: white; font-size: 9px; font-weight: 800; }
.privacy-note { display: grid; grid-template-columns: 20px 1fr; gap: 9px; margin: 18px 0 0; color: #877a70; font-size: 9px; line-height: 1.5; }
.privacy-note svg { width: 18px; fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.purchase-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.purchase-help article { min-height: 94px; display: grid; align-content: center; gap: 5px; padding: 22px; background: rgba(255,250,242,.86); }
.purchase-help strong { font-size: 12px; }
.purchase-help span { color: var(--ink-soft); font-size: 10px; }

footer { padding: 28px 0; color: rgba(255,255,255,.53); background: #17120f; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }

@media (max-width: 940px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-card { position: static; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .checkout-header { position: static; }
  .header-inner { min-height: 70px; }
  .secure-label { font-size: 0; }
  .secure-label svg { width: 20px; }
  .checkout-main { padding: 25px 0 45px; }
  .checkout-steps { gap: 7px; margin-bottom: 22px; font-size: 0; }
  .checkout-steps span { gap: 0; }
  .checkout-steps b { width: 27px; height: 27px; font-size: 10px; }
  .product-panel { min-height: 0; grid-template-columns: 1fr; }
  .product-visual { min-height: 350px; padding: 25px; }
  .product-visual img { max-height: 315px; }
  .product-copy { padding: 32px 25px 36px; }
  h1 { font-size: 38px; }
  .order-card { padding: 28px 23px; }
  .purchase-help { grid-template-columns: 1fr; }
  .purchase-help article { min-height: 78px; }
  .footer-inner { display: grid; text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
