:root { --ink:#211c19; --muted:#6f6157; --accent:#963f20; --line:#e7dfd8; --green:#21683c; color-scheme:light; font-synthesis:none; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { margin:0; background:#fff; color:var(--ink); font-family:Arial,Helvetica,sans-serif; -webkit-font-smoothing:antialiased; }
.page button,.page input { font:inherit; }
.page button { border-radius:0; }
.page { width:min(100%,1240px); margin:0 auto; padding:64px 48px 112px; }
.hero { padding:24px 0 104px; }
.label { margin:0 0 22px; color:var(--accent); font-size:13px; font-weight:700; line-height:1; letter-spacing:.18em; text-transform:uppercase; }
.page h1,.page h2,.page h3 { font-family:Georgia,"Times New Roman",serif; font-weight:400; }
.page .hero h1 { margin:0; font-size:64px; line-height:.96; letter-spacing:-.045em; }
.page .hero h1 span { display:block; white-space:nowrap; }
.lead { margin:38px 0 0; color:var(--muted); font-size:20px; line-height:1.55; }
.catalog { display:grid; gap:128px; }
.book { display:grid; grid-template-columns:minmax(360px,48%) minmax(0,1fr); align-items:center; gap:92px; }
.book > img { display:block; width:100%; height:auto; max-height:560px; object-fit:contain; }
.book-copy { max-width:520px; }
.book-copy h2 { margin:0 0 22px; font-size:50px; line-height:1; letter-spacing:-.035em; }
.book-copy > p:not(.label) { margin:0; color:var(--muted); font-size:18px; line-height:1.6; }
.buy-row { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:40px; padding-top:26px; border-top:1px solid var(--line); }
.buy-row strong { font-size:24px; }
.primary,.secondary,.close-map { cursor:pointer; border:1px solid var(--accent); padding:15px 22px; font-size:14px; font-weight:700; line-height:1; }
.primary { background:var(--accent); color:#fff; }
.secondary,.close-map { background:#fff; color:var(--accent); }
.primary:hover { background:#713019; border-color:#713019; }
.checkout { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr); gap:92px; margin-top:144px; padding-top:80px; border-top:1px solid var(--line); }
.checkout > * { min-width:0; }
.checkout h2 { margin:0; font-size:46px; line-height:1.05; letter-spacing:-.03em; }
.checkout-intro > p:last-child { max-width:390px; margin:24px 0 0; color:var(--muted); font-size:16px; line-height:1.55; }
.order-form { display:grid; gap:24px; max-width:620px; }
.order-form label { display:grid; gap:9px; color:var(--muted); font-size:13px; }
.order-form input { width:100%; border:0; border-bottom:1px solid #bfb3aa; outline:0; padding:10px 0 13px; color:var(--ink); background:transparent; font-size:18px; }
.order-form input:focus { border-bottom-color:var(--accent); }
.pickup { display:grid; gap:16px; }
.pickup-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.pickup-head strong { max-width:220px; font-size:14px; line-height:1.35; }
.pickup-result { display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--green); font-size:15px; line-height:1.45; }
.pickup-result button { cursor:pointer; border:0; background:transparent; color:var(--accent); font-size:30px; }
.submit { justify-self:start; min-width:150px; }
.submit:disabled { cursor:not-allowed; border-color:#d8c3b9; background:#d8c3b9; }
#delivery-widget { position:fixed; inset:0; z-index:100; width:100vw; height:100vh; padding:60px 18px 18px; background:#fff; visibility:hidden; pointer-events:none; }
#delivery-widget.open { visibility:visible; pointer-events:auto; }
#delivery-widget.open > * { width:100%!important; height:100%!important; }
.close-map { position:fixed; top:14px; right:18px; z-index:101; }
.success { display:grid; gap:24px; max-width:600px; }
.success .label { margin-bottom:0; }
.success h3 { margin:0; overflow-wrap:anywhere; font-size:38px; line-height:1.08; }
.success > p:not(.label) { margin:0; color:var(--muted); font-size:17px; line-height:1.6; }
.payment-meta { display:flex; justify-content:space-between; gap:24px; width:min(100%,360px); font-size:18px; }
.payment-meta span { white-space:nowrap; font-weight:700; }
.success img { display:block; width:260px; max-width:100%; height:auto; }
.new-order { justify-self:start; margin-top:4px; }
[hidden] { display:none!important; }
@media (max-width:900px) {
  .page { padding:44px 30px 88px; }
  .page .hero h1 { font-size:48px; }
  .book { grid-template-columns:minmax(280px,44%) minmax(0,1fr); gap:48px; }
  .book-copy h2 { font-size:42px; }
  .checkout { grid-template-columns:1fr; gap:48px; }
}
@media (max-width:640px) {
  .page { padding:30px 20px 64px; }
  .hero { padding:18px 0 64px; }
  .page .hero h1 { font-size:36px; }
  .lead { margin-top:28px; font-size:17px; }
  .catalog { gap:88px; }
  .book { grid-template-columns:1fr; gap:24px; }
  .book-copy h2,.checkout h2 { font-size:38px; }
  .buy-row { align-items:stretch; flex-direction:column; }
  .buy-row button,.secondary { width:100%; }
  .checkout { margin-top:96px; padding-top:56px; }
  .pickup-head { align-items:stretch; flex-direction:column; }
  .payment-meta { align-items:flex-start; flex-direction:column; gap:8px; }
  .new-order { width:100%; }
}
