:root {
  --brand: #0f7b3f; --brand-d: #0a5c2f; --ink: #1b211e; --muted: #67716b; --line: #e6e8e3; --bg: #f7f6f2; --card: #fff;
  --red: #d0182f; --amber: #a65f00; --r: 16px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(20,30,25,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
[hidden] { display: none !important; }

/* header */
.top { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; flex: none; max-width: 40%; }
.brand-t { min-width: 0; }
.logo { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; background: #f1f2ef; border: 1px solid transparent; border-radius: 12px; padding: 0 12px; height: 44px; }
.search-box:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,123,63,.12); }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; outline: none; min-width: 0; }
.top-act { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.icon-btn, .lang { border: 1px solid var(--line); background: #fff; border-radius: 12px; height: 42px; min-width: 42px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.icon-btn svg { width: 20px; height: 20px; }
.basket-btn { display: flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 12px; height: 42px; padding: 0 14px 0 12px; font-weight: 700; }
.basket-btn svg { width: 20px; height: 20px; }
.basket-btn .count { background: #fff; color: var(--brand); border-radius: 999px; padding: 0 7px; font-size: 12.5px; min-width: 22px; text-align: center; }
.basket-btn.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.08); } }
.mob-search { display: none; padding-bottom: 10px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cats button.offers { border-color: #f3c4cb; color: var(--red); background: #fff6f7; }
.cats button.offers.on { background: var(--red); color: #fff; border-color: var(--red); }

/* hero */
.hero { margin: 18px 0 8px; border-radius: 22px; padding: 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(1200px 400px at 110% -40%, rgba(255,255,255,.18), transparent), linear-gradient(120deg, var(--brand-d), var(--brand)); }
.hero h2 { font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.5px; max-width: 680px; }
.hero p { margin: 8px 0 16px; opacity: .92; max-width: 620px; font-size: 16px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .facts span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; }
.assist { margin-top: 18px; display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 6px; max-width: 640px; }
.assist input { flex: 1; border: 0; font: inherit; font-size: 15.5px; padding: 8px 10px; outline: none; color: var(--ink); min-width: 0; }
.assist button { border: 0; background: var(--ink); color: #fff; border-radius: 10px; padding: 0 16px; font-weight: 700; white-space: nowrap; }
.assist-reply { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 16px 0 4px; box-shadow: var(--shadow); display: flex; gap: 10px; }
.assist-reply .av { width: 34px; height: 34px; border-radius: 50%; background: #eaf5ee; color: var(--brand); display: grid; place-items: center; flex: none; font-weight: 800; }

/* sections */
.sec { margin: 26px 0 8px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-h h3 { font-size: 20px; letter-spacing: -.3px; }
.sec-h button { border: 0; background: none; color: var(--brand); font-weight: 700; }
.row { display: grid; align-items: start; grid-auto-flow: column; grid-auto-columns: minmax(168px, 190px); gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; padding-bottom: 30px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

/* card */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.pic { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; padding: 10%; overflow: hidden; }
.pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ph { width: 62px; height: 62px; border-radius: 50%; background: #eef4f0; color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 24px; }
.badge { position: absolute; left: 8px; top: 8px; background: var(--red); color: #fff; font-weight: 700; font-size: 11.5px; border-radius: 7px; padding: 3px 7px; max-width: calc(100% - 16px); line-height: 1.2; }
.card .body { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card .name { font-weight: 600; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; font-size: 14.5px; }
.card .size { color: var(--muted); font-size: 12.5px; min-height: 1.4em; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 8px; }
.price { font-weight: 800; font-size: 17px; }
.price.off { color: var(--red); }
.was { color: var(--muted); text-decoration: line-through; font-size: 12.5px; margin-left: 4px; font-weight: 400; }
.add { border: 0; background: var(--brand); color: #fff; border-radius: 10px; height: 36px; padding: 0 14px; font-weight: 700; }
.add:active { transform: scale(.96); }
.step-q { display: inline-flex; align-items: center; background: var(--brand); color: #fff; border-radius: 10px; overflow: hidden; height: 36px; }
.step-q button { border: 0; background: transparent; color: #fff; width: 34px; height: 36px; font-size: 18px; font-weight: 700; }
.step-q span { min-width: 22px; text-align: center; font-weight: 800; }
.out { color: var(--muted); font-size: 12.5px; }
.card.is-out .pic { opacity: .5; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(12,18,15,.45); animation: fade .2s; }
.sheet-card { position: relative; background: var(--card); width: 100%; max-width: 620px; max-height: 94vh; overflow: auto; border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
.sheet-card.wide-card { max-width: 720px; }
.sheet.right { justify-content: flex-end; }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 800px) {
  .sheet { align-items: center; }
  .sheet-card { border-radius: 22px; }
  .sheet.right { align-items: stretch; }
  .sheet.right .sheet-card { max-height: none; height: 100%; border-radius: 0; max-width: 440px; animation: left .22s ease-out; }
  @keyframes left { from { transform: translateX(40px); } }
}
.x { position: absolute; right: 12px; top: 10px; border: 0; background: #f1f2ef; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; color: var(--muted); z-index: 2; }
.sheet h2 { font-size: 21px; margin-bottom: 14px; }
.pbig { display: grid; place-items: center; background: #fff; height: 300px; margin: -6px 0 10px; padding: 20px; }
.pbig img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-grid { display: grid; gap: 4px; }
.desc { color: #39413c; margin: 10px 0; white-space: pre-line; }
.opts { display: grid; gap: 8px; margin: 12px 0; }
.opt { display: flex; justify-content: space-between; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.opt.on { border-color: var(--brand); background: #f1f8f3; }
.opt small { color: var(--muted); display: block; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.badges span { background: #fff0f2; color: var(--red); border-radius: 8px; padding: 3px 9px; font-size: 13px; font-weight: 700; }
.primary { border: 0; background: var(--brand); color: #fff; border-radius: 12px; padding: 13px 18px; font-weight: 750; font-size: 16px; }
.primary:disabled { opacity: .5; cursor: default; }
.primary.big { padding: 15px; font-size: 17px; }
.ghost { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 16px; font-weight: 700; }
.wide { width: 100%; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addrow { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.addrow .primary { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; height: 48px; }
.qty button { border: 0; background: #fff; width: 44px; height: 48px; font-size: 20px; font-weight: 700; }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }

/* basket */
.bl { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bl .t { flex: 1; min-width: 0; }
.bl .t div:first-child { font-weight: 600; font-size: 14.5px; }
.bl .t small { color: var(--muted); }
.bl img.thumb, .bl .mini { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); flex: none; padding: 3px; }
.bl .mini { display: grid; place-items: center; background: #eef4f0; color: var(--brand); font-weight: 800; }
.bl .amt { font-weight: 700; min-width: 56px; text-align: right; }
.bl .step-q { height: 32px; } .bl .step-q button { width: 30px; height: 32px; }
.nudge { background: #fff6e6; color: #7a4b00; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0; display: flex; gap: 8px; align-items: center; }
.nudge button { margin-left: auto; border: 0; background: #7a4b00; color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 700; white-space: nowrap; }
.prog { margin: 12px 0; }
.prog .bar { height: 8px; background: #eef0ec; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.prog .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.sum { margin: 14px 0; display: grid; gap: 5px; }
.sum .save { color: var(--red); }
.sum .tot { font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 4px; }
.warn { background: #fff6e5; color: var(--amber); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 8px 0; }

/* checkout */
.step { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.step h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.step h3 span { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
form label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0; }
form input, form textarea { display: block; width: 100%; margin-top: 4px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink); }
form input:focus, form textarea:focus { outline: none; border-color: var(--brand); }
form input.short { max-width: 200px; text-transform: uppercase; }
form label.check { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14.5px; }
form label.check input { width: auto; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radios { display: grid; gap: 8px; }
.radios.two { grid-template-columns: 1fr 1fr; }
.radio { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; color: var(--ink) !important; font-size: 15px !important; margin: 0 !important; }
.radio:has(input:checked) { border-color: var(--brand); background: #f1f8f3; }
.radio input { width: auto; margin: 3px 0 0; accent-color: var(--brand); }
.radio small { color: var(--muted); display: block; font-size: 13px; }
.days { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 8px; padding-bottom: 4px; }
.days button, .times button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px; white-space: nowrap; font-weight: 600; }
.days button.on, .times button.on { border-color: var(--brand); background: #f1f8f3; color: var(--brand-d); }
.days button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.times button:disabled { opacity: .4; text-decoration: line-through; }
.hint { font-size: 13px; margin-top: 4px; }
.hint.ok { color: var(--brand); } .hint.bad { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { color: var(--red); min-height: 1em; font-weight: 600; }
.small { font-size: 12.5px; color: var(--muted); }

/* done / tracking */
.done { text-align: center; padding: 10px 6px; }
.done .ok { width: 70px; height: 70px; border-radius: 50%; background: #e6f4ea; color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; font-size: 36px; }
.timeline { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.timeline li { position: relative; padding: 0 0 18px 34px; color: var(--muted); }
.timeline li:before { content: ""; position: absolute; left: 8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #dfe3dd; }
.timeline li:after { content: ""; position: absolute; left: 14px; top: 20px; bottom: 0; width: 2px; background: #e6e8e3; }
.timeline li:last-child:after { display: none; }
.timeline li.on { color: var(--ink); font-weight: 700; }
.timeline li.on:before { background: var(--brand); box-shadow: 0 0 0 4px #d7efdf; }
.timeline li small { display: block; font-weight: 400; color: var(--muted); }

/* bottom bar on phones */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(247,246,242,.96) 30%); z-index: 20; }
.mbar .primary { display: flex; justify-content: space-between; align-items: center; box-shadow: 0 8px 24px rgba(15,123,63,.35); }

.foot { background: var(--card); border-top: 1px solid var(--line); padding: 28px 0 90px; margin-top: 30px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot p { white-space: pre-line; color: var(--muted); margin: 6px 0 0; }
.foot-b { margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; z-index: 40; font-weight: 600; box-shadow: var(--shadow); }
.closed { padding: 80px 10px; text-align: center; color: var(--muted); }
.skel { background: linear-gradient(90deg, #eceee9, #f6f7f4, #eceee9); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); height: 260px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 760px) {
  .desk { display: none; }
  .mob-search { display: block; }
  .top-in { height: 60px; gap: 10px; }
  .brand { max-width: none; flex: 1; }
  .basket-btn .btotal { display: none; }
  .hero { padding: 20px; border-radius: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .row { grid-auto-columns: 46%; }
  .foot-in { grid-template-columns: 1fr; }
  .row2, .radios.two { grid-template-columns: 1fr; }
}
@media (min-width: 761px) { .mbar { display: none !important; } }
.closed h2{font-size:24px;color:var(--ink,#141414)}
.closed .btn{display:inline-block;padding:12px 18px;border-radius:12px;font-weight:700;text-decoration:none;border:1.5px solid #0f7b3f;color:#0f7b3f}
.closed .btn:first-child{background:#0f7b3f;color:#fff}
