:root {
  --paper:#f7f5ef; --white:#fffdf8; --ink:#302d27; --soft:#5f5a50;
  --wine:#611f34; --dark-wine:#491424; --butter:#ffe4a7; --edge:#d4cec1;
  --rule:#bdb39d; --wash:#eee9dc; --focus:#1d6070;
  --serif:Georgia,"Times New Roman",serif; --sans:"Segoe UI",Arial,sans-serif;
  --press:140ms; --ease:cubic-bezier(.2,.75,.2,1); --gut:clamp(16px,4vw,64px);
  color-scheme:light;
}
* { box-sizing:border-box }
[hidden] { display:none!important }
html { scroll-behavior:smooth; scroll-padding-top:16px }
body { margin:0; color:var(--ink); background:var(--paper); font:16px/1.45 var(--sans); -webkit-tap-highlight-color:transparent }
a { color:inherit }
button { font:inherit; cursor:pointer; color:inherit }
button,a { touch-action:manipulation }
button:disabled,[aria-disabled=true] { cursor:default }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px }
.wrap { max-width:1400px; padding-inline:var(--gut); margin-inline:auto }
.skip { position:absolute; transform:translateY(-170%); z-index:9; background:white; padding:12px }
.skip:focus { transform:none }
.masthead { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:78px }
.wordmark { display:flex; align-items:center; gap:9px; color:var(--wine); font:bold 33px/.98 var(--serif); letter-spacing:-.065em }
.wordmark svg,.basket { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
.wordmark svg { width:37px; height:33px; stroke-width:2.3 }
.wordmark .holes { stroke-width:3.5 }
.demo-mark { font-size:13px; color:var(--soft); border-bottom:1px solid var(--rule); padding:3px 0 }
.hero { display:grid; grid-template-columns: .94fr 1.06fr; background:var(--butter); overflow:hidden; border-radius:5px }
.hero-copy { display:flex; align-items:flex-start; flex-direction:column; justify-content:center; padding:clamp(24px,3.7vw,53px); color:var(--wine) }
.edition { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; margin:0 0 15px }
.pin { display:inline-block; width:11px; height:11px; border:2px solid currentColor; border-radius:50% 50% 50% 0; transform:rotate(-45deg); margin-inline:1px 3px }
.edition>span:not(.pin) { opacity:.7 }
h1,h2,h3,p { margin:0 }
h1,h2,h3 { overflow-wrap:break-word }
h1 { font:normal clamp(58px,6.25vw,91px)/.88 var(--serif); letter-spacing:-.065em }
.intro { max-width:34ch; margin:18px 0 22px; color:var(--ink); font-size:clamp(15px,1.3vw,18px) }
.hero-action,.order-action,.mobile-cart { text-decoration:none }
.hero-action { display:inline-flex;align-items:center;justify-content:center;gap:22px;background:var(--wine);color:white;border-radius:30px;padding:10px 18px;min-height:44px;font-size:14px;font-weight:650 }
.hero-action span { font-size:17px }
.hero-photo { position:relative; min-height:100%; background:#dec6a0 }
.hero-photo img { width:100%;height:100%;inset:0;position:absolute;object-fit:cover; object-position:50% 54% }
.market { display:grid;grid-template-columns:minmax(0,1.78fr) minmax(280px,1fr); gap:clamp(26px,5vw,80px);align-items:start;margin:clamp(30px,4vw,56px) 0 40px }
.section-title,.receipt-head { display:flex; align-items:baseline; justify-content:space-between;gap:12px }
h2 { font:normal clamp(35px,3.2vw,48px)/1.05 var(--serif); letter-spacing:-.055em }
#list-count,#order-count { font-size:13px;color:var(--soft) }
.filters { display:flex; gap:7px; margin:20px 0 10px; flex-wrap:wrap }
.filters button,.add,.stepper,.copy { background:transparent; border:1px solid var(--rule);border-radius:24px }
.filters button { min-height:44px;padding:8px 18px;font-size:14px;color:var(--ink) }
.filters button[aria-pressed=true] { background:var(--ink);border-color:var(--ink);color:white;font-weight:650 }
.product { display:grid;grid-template-columns:minmax(0,1fr) auto 146px;gap:18px;align-items:center; min-height:91px;padding:16px 0;border-bottom:1px solid var(--edge) }
.product-name { font:normal 26px/1.12 var(--serif); letter-spacing:-.036em }
.product-detail,.product-price small,.order-quantity,.receipt-note { color:var(--soft);font-size:13px;line-height:1.45 }
.product-detail { margin:5px 0 0; max-width:50ch }
.product-price { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap }
.product-price b,.product-price small { display:block }
.product-price b { font-size:15px;font-weight:650 }
.product-control { display:flex;justify-content:flex-end }
.add { color:var(--wine); min-height:44px; min-width:100px; padding:6px 15px;font-size:14px;font-weight:650;border-color:#8b706c }
.stepper { display:inline-flex;justify-content:center;align-items:center;color:var(--wine);background:#f4e8df;border-color:#b69a8f }
.stepper button { background:none;border:0;border-radius:24px;min-width:44px;min-height:44px;font-size:19px }
.stepper output { min-width:44px;font-size:14px;text-align:center;font-variant-numeric:tabular-nums;font-weight:650;line-height:1.1 }
.receipt { position:sticky;top:16px;background:var(--white);padding:clamp(22px,2.5vw,38px);border:1px solid var(--edge);border-top:4px solid var(--wine);margin-bottom:8px }
.receipt::after { content:"";position:absolute;left:-1px;right:-1px;bottom:-8px;height:8px;background:linear-gradient(135deg,var(--white) 28%,var(--edge) 30%,transparent 40%) 0 0/12px 9px repeat-x,linear-gradient(225deg,var(--white) 28%,var(--edge) 30%,transparent 40%) 0 0/12px 9px repeat-x }
.receipt-head { align-items:center;margin-bottom:12px;color:var(--wine) }
.basket { width:28px;height:28px }
.receipt h2 { font-size:clamp(34px,3vw,45px) }
#order-lines { padding:15px 0; border-bottom:1px dashed var(--rule); margin-bottom:18px }
.order-empty { color:var(--soft);font-size:15px;max-width:34ch }
.order-line { display:flex;align-items:start;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px }
.order-name,.order-quantity { display:block }
.line-total { text-align:right;font-variant-numeric:tabular-nums }
.total-label { color:var(--soft); font-size:13px }
.grand-total { font:normal clamp(28px,2.6vw,39px)/1.2 var(--serif);color:var(--wine);letter-spacing:-.045em;overflow-wrap:anywhere;margin:3px 0 13px;font-variant-numeric:lining-nums tabular-nums }
progress { display:block; width:100%;height:5px; border:0; border-radius:5px;background:var(--wash);appearance:none;overflow:hidden;accent-color:var(--wine) }
progress::-webkit-progress-bar { background:var(--wash);border-radius:5px }
progress::-webkit-progress-value { background:var(--wine);border-radius:5px;transition:width 230ms var(--ease) }
progress::-moz-progress-bar { background:var(--wine) }
#threshold-text { margin:8px 0 17px; font-size:13px }
.order-action,.copy { display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;font-size:14px;font-weight:650;text-align:center }
.order-action { color:white;background:var(--wine);border-radius:6px;padding:10px 12px }
.order-action[aria-disabled=true] { background:#e5e0d7;color:#645b54 }
.copy { margin:7px 0 0;border-radius:6px;color:var(--wine) }
.copy:disabled {color:#6b6761;border-color:var(--edge)}
.receipt-note {margin:13px 0 0}
#copy-status:not(:empty) { margin:8px 0;font-size:13px }
.copy-fallback { width:100%;min-height:100px;resize:vertical }
.foot { border-top:1px solid var(--edge); display:flex;flex-wrap:wrap;gap:8px 20px;padding:18px 0 26px;font-size:12px;color:var(--soft) }
.foot a { text-underline-offset:3px }
.mobile-cart { display:none }
button:not(:disabled),a[href] { transition:transform var(--press) var(--ease),background-color var(--press) var(--ease),color var(--press) var(--ease) }
@media(hover:hover){
 .hero-action:hover,.order-action[href]:hover,.mobile-cart:hover {background:var(--dark-wine)}
 .filters button:not([aria-pressed=true]):hover,.add:hover,.copy:not(:disabled):hover,.stepper button:hover {background:var(--wash)}
}
button:not(:disabled):active,a[href]:active { transform:scale(.96);transition-duration:70ms }
@media(max-width:980px) and (min-width:761px) {
 .product {grid-template-columns:minmax(0,1fr) auto; gap:6px 14px}
 .product-info {grid-row:1/3}
 .product-price {display:flex;align-items:baseline;justify-content:flex-end;gap:5px}
 .market {grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}
}
@media(max-width:760px){
 .masthead {min-height:60px}.wordmark {font-size:28px}.wordmark svg {width:30px;height:27px}
 .hero-copy {padding:24px}.hero {grid-template-columns:1.13fr 1fr}
 h1 {font-size:clamp(43px,8.2vw,62px)} .intro {margin:12px 0 15px;font-size:14px}.edition {font-size:12px;margin-bottom:14px;gap:4px}
 .market {display:block;margin:27px 0 24px}.receipt {position:relative;top:auto;max-width:570px;margin:28px auto 12px}
 .filters {margin-top:13px}.product {grid-template-columns:minmax(0,1fr) auto 140px;gap:10px}
 .foot {padding-bottom:100px}
 .mobile-cart {position:fixed;z-index:3;bottom:max(9px,env(safe-area-inset-bottom));left:var(--gut);right:var(--gut);display:flex;align-items:center;gap:12px;padding:9px 16px;min-height:53px;border-radius:9px;background:var(--wine);color:white;box-shadow:0 3px 14px #34131f26;font-size:15px}
 .mobile-cart>span:first-child {display:grid;line-height:1.13}.mobile-cart small {font-size:11px;color:#f6dfe3}
 .mobile-cart strong {margin-left:auto;font-size:15px;text-align:right;font-variant-numeric:tabular-nums}.mobile-cart>span:last-child {font-size:18px}
 body:has(#telegram[aria-disabled=true]) .mobile-cart,.mobile-cart.is-away {display:none}
}
@media(max-width:520px){
 .hero {grid-template-columns:1.24fr .88fr}.hero-copy {padding:21px 12px 21px 17px}.hero-photo img {object-position:61% center}
 .edition {font-size:11px}.intro {font-size:13px;max-width:25ch}.hero-action {padding:8px 14px;gap:14px;font-size:13px}
 .section-title h2 {font-size:35px}.filters button {padding-inline:16px}
 .product {grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:6px 8px;align-items:start;padding-block:15px}
 .product-info {grid-column:1;grid-row:1}.product-price {grid-column:1;grid-row:2;display:flex;align-items:baseline;gap:5px;text-align:left}
 .product-control {grid-column:2;grid-row:1/3;align-self:center}
 .product-name {font-size:23px}.product-detail {font-size:12px}.add {min-width:86px;padding-inline:10px}.stepper output {min-width:38px}
}
@media(max-width:360px){.hero-copy {padding-inline:12px}.edition{flex-wrap:wrap}.hero {grid-template-columns:1.25fr .75fr}.stepper {border-radius:10px}.product-name {font-size:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after {animation:none!important;transition:none!important}button:not(:disabled):active,a[href]:active {transform:none}}
