/* R1 — reference "Євромедика" (medical centre): airy white/blue, teal→sky gradient, big rounded cards,
   flowing ribbon, service grid with "+", price cards, numbered list, step form. Font: Onest. */
:root {
  --bg: #f3f6f9; --card: #ffffff; --soft: #eef3f7;
  --ink: #13202e; --ink-2: #3b4856; --mut: #5d6977; --line: #e3e9ef;
  --g1: #4fb2ee; --g2: #3fd3a2; --grad: linear-gradient(110deg, var(--g1), var(--g2));
  --blue: #1a70bd; --r: 26px; --gut: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: "Onest", system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
body.no-tab { padding-bottom: 0; }
main { max-width: 480px; margin: 0 auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.muted { color: var(--mut); font-size: 12.5px; line-height: 1.45; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px var(--gut); padding-top: calc(8px + env(safe-area-inset-top)); background: rgba(243,246,249,.92); backdrop-filter: blur(12px); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; line-height: 1; min-height: 44px; }
.logo small { display: block; font-size: 9.5px; font-weight: 500; color: var(--mut); margin-top: 3px; }
.logo__m { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.logo__m svg { width: 18px; height: 18px; stroke-width: 2.4; }
.logo__m--w { background: rgba(255,255,255,.25); }
.call { margin-left: auto; text-align: right; font-size: 13px; font-weight: 700; line-height: 1.1; min-height: 44px; display: flex; flex-direction: column; justify-content: center; padding: 0 4px; }
.call small { display: block; font-size: 10px; font-weight: 500; color: var(--mut); }
.ib { position: relative; width: 42px; height: 42px; border-radius: 14px; background: var(--card); display: grid; place-items: center; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

.qnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gut) 10px; max-width: 480px; margin: 0 auto; }
.qnav::-webkit-scrollbar { display: none; }
.qnav a { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 6px; border-radius: 23px; background: var(--card); font-size: 12.5px; font-weight: 600; }
.qnav i { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-style: normal; }
.qnav i img { width: 26px; height: 26px; object-fit: contain; }
.qnav small { display: block; font-size: 10.5px; color: var(--mut); font-weight: 500; }

/* hero slider */
.hero { padding: 0 8px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: none; width: 100%; scroll-snap-align: center; position: relative; border-radius: var(--r); overflow: hidden; background: var(--card); min-height: 540px; padding: 22px 18px; display: flex; flex-direction: column; }
.slide__bg { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; }
.slide__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.slide__bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 40%); z-index: 1; }
.slide__rib { position: absolute; left: -10%; right: -10%; top: 40%; height: 120px; z-index: 2; }
.slide__rib path { stroke-width: 34; stroke-linecap: round; fill: none; opacity: .9; }
.new { align-self: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--grad); padding: 4px 10px; border-radius: 10px; }
.slide h1 { text-align: center; font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; margin-top: 10px; position: relative; z-index: 3; }
.slide__sub { text-align: center; color: var(--mut); font-size: 13.5px; margin-top: 8px; position: relative; z-index: 3; }
.slide__cta { align-self: center; margin-top: 16px; position: relative; z-index: 3; }
.slide__prod { position: absolute; z-index: 3; right: 16px; bottom: 18px; width: 108px; height: 132px; border-radius: 22px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); display: grid; place-items: center; box-shadow: 0 10px 30px -12px rgba(19,32,46,.35); }
.slide__prod img { width: 84%; height: 84%; object-fit: contain; }
.chip-f { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); font-size: 11.5px; font-weight: 600; line-height: 1.2; max-width: 150px; box-shadow: 0 8px 24px -14px rgba(19,32,46,.4); }
.chip-f i { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-style: normal; color: var(--blue); }
.chip-f i svg { width: 16px; height: 16px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #c9d4de; transition: .2s; }
.dots i.is-on { width: 18px; background: var(--blue); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 8px 0 22px; border-radius: 24px; background: var(--grad); color: #fff; font-size: 14.5px; font-weight: 600; }
.btn::after { content: "→"; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 16px; }
.btn--full { width: 100%; margin-top: 12px; }
.btn--plain::after { display: none; }
.btn--plain { padding: 0 22px; }

/* quick tiles */
.duo2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 8px 0; }
.qt { background: var(--card); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.qt__i { width: 40px; height: 40px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.qt b { font-size: 14px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.qt small { font-size: 11.5px; color: var(--blue); font-weight: 600; }

/* sections */
.sec { padding: 30px 8px 0; }
.sec__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 8px 14px; }
.sec h2 { font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.hint { font-size: 11.5px; color: var(--mut); display: inline-flex; align-items: center; gap: 6px; flex: none; }
.hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gi { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 58px; padding: 10px 12px; border-radius: 16px; background: var(--card); font-size: 13px; font-weight: 600; line-height: 1.2; }
.gi i { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); font-style: normal; color: var(--blue); display: grid; place-items: center; flex: none; font-size: 16px; }
.gi small { display: block; font-size: 11px; color: var(--mut); font-weight: 500; margin-top: 2px; }
.gi--go { background: var(--grad); color: #fff; }
.gi--go i { background: rgba(255,255,255,.25); color: #fff; }
.gi--go small { color: rgba(255,255,255,.85); }

.ccards { display: grid; gap: 8px; }
.cc { background: var(--card); border-radius: 22px; padding: 16px; position: relative; }
.cc__h { display: flex; justify-content: space-between; gap: 10px; }
.cc__h b { font-size: 16px; font-weight: 600; }
.cc__h span { font-size: 13px; color: var(--mut); white-space: nowrap; }
.cc__h span em { font-style: normal; color: var(--ink); font-weight: 700; }
.cc ul { list-style: none; margin-top: 10px; }
.cc li { font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.cc li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; min-height: 44px; align-items: center; }
.cc li em { font-style: normal; color: var(--mut); white-space: nowrap; }
.cc__f { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.cc__f a { font-size: 12.5px; font-weight: 600; color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; }
.cc__go { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; }
.cc__go svg { width: 18px; height: 18px; }

.promo { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; background: var(--card); border-radius: 22px; padding: 10px; }
.promo img { width: 112px; height: 112px; border-radius: 16px; object-fit: cover; }
.promo .new { align-self: flex-start; display: inline-block; }
.promo b { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; margin-top: 6px; }
.promo span { display: block; font-size: 12px; color: var(--mut); margin-top: 4px; line-height: 1.35; }
.promo em { font-style: normal; display: block; font-size: 14px; font-weight: 700; margin-top: 6px; }
.promo em s { font-weight: 400; color: var(--mut); font-size: 12px; margin-left: 6px; }

.nlist { list-style: none; background: var(--card); border-radius: 22px; padding: 4px 16px; }
.nlist li { border-bottom: 1px solid var(--line); }
.nlist li > a { display: grid; grid-template-columns: 30px 1fr 22px; gap: 8px; padding: 14px 0; align-items: center; min-height: 44px; }
.nlist li:last-child { border-bottom: 0; }
.nlist i { font-style: normal; font-size: 12px; color: #9fb0c0; padding-top: 2px; }
.nlist b { display: block; font-size: 14.5px; font-weight: 600; }
.nlist span { display: block; font-size: 12px; color: var(--mut); margin-top: 3px; line-height: 1.4; }
.nlist em { font-style: normal; color: var(--blue); display: grid; place-items: center; }
.nlist em svg { width: 18px; height: 18px; }

/* form */
.form { background: var(--card); border-radius: var(--r); padding: 20px 16px; }
.form h2 { font-size: 21px; }
.form .muted { margin-top: 6px; }
.steps { display: flex; gap: 6px; margin: 14px 0 12px; }
.steps span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--mut); padding: 8px 4px; border-radius: 10px; background: var(--soft); }
.steps span.is-on { background: var(--grad); color: #fff; }
.opts { display: grid; gap: 6px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 13.5px; font-weight: 600; text-align: left; width: 100%; }
.opt small { display: block; font-size: 11.5px; color: var(--mut); font-weight: 500; margin-top: 2px; }
.opt i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #b9c6d3; flex: none; }
.opt.is-on { background: #e7f3fc; box-shadow: inset 0 0 0 1.5px var(--blue); }
.opt.is-on i { border: 6px solid var(--blue); }
.inp { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); padding: 0 14px; font: inherit; font-size: 15px; margin-top: 6px; }
.back { font-size: 12.5px; color: var(--mut); margin-top: 10px; }

.hs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hs::-webkit-scrollbar { display: none; }
.edu { flex: none; width: 76%; scroll-snap-align: start; background: var(--card); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; }
.edu__t { display: flex; justify-content: space-between; gap: 8px; }
.edu__t b { font-size: 15px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edu__t i { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; display: grid; place-items: center; flex: none; }
.edu p { font-size: 12.5px; color: var(--mut); line-height: 1.45; margin-top: 8px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.edu__a { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; }
.edu__a span { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; color: var(--blue); font-size: 12px; }
.edu__a small { display: block; color: var(--mut); }

.band { position: relative; overflow: hidden; border-radius: var(--r); background: linear-gradient(120deg, #6cc3f3, #49d3a9); color: #fff; padding: 24px 18px; min-height: 150px; }
.band__rib { position: absolute; right: -60px; top: -10px; width: 120%; height: 180px; }
.band__rib path { stroke: rgba(255,255,255,.35); stroke-width: 30; fill: none; stroke-linecap: round; }
.band p { position: relative; font-size: 20px; font-weight: 500; line-height: 1.25; margin-top: 14px; max-width: 80%; }

.foot { padding: 30px 8px 0; }
.foot__c { background: var(--card); border-radius: var(--r); padding: 20px 16px; }
.foot__c p { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 12px; }
.foot__ph { display: flex; align-items: center; min-height: 44px; font-size: 22px; font-weight: 700; margin-top: 6px; }
.msg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.msg a { height: 42px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; }

/* cart */
.cartbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; height: 54px; border-radius: 27px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 14px; box-shadow: 0 12px 30px -12px rgba(46,143,216,.6); }
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__bg { position: absolute; inset: 0; background: rgba(19,32,46,.4); }
.sheet__p { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet__h { display: flex; justify-content: space-between; align-items: center; }
.sheet__h h2 { font-size: 21px; font-weight: 600; }
.cart { list-style: none; }
.cart li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart img { width: 52px; height: 52px; object-fit: contain; background: var(--soft); border-radius: 14px; }
.cart b { display: block; font-size: 13.5px; font-weight: 600; }
.cart span { font-size: 12px; color: var(--mut); }
.cart em { font-style: normal; font-weight: 700; }
.cart__sum { display: flex; justify-content: space-between; padding: 14px 0 4px; font-weight: 600; }
.cart__sum b { font-size: 20px; }
.toast { position: fixed; left: 14px; right: 14px; bottom: calc(136px + env(safe-area-inset-bottom)); z-index: 40; background: var(--ink); color: #fff; border-radius: 16px; padding: 13px 16px; font-size: 13.5px; font-weight: 500; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; }
.toast.is-on { opacity: 1; transform: none; }
.promo .new { display: inline-block; }
.slide__rib { width: 120%; left: -10%; }


/* =====================================================================
   R1 shop — new components (15.10). Tokens and existing blocks above are untouched.
   ===================================================================== */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.center { text-align: center; }
.pad { padding: 0 8px; }
img { display: block; }
.hit { display: inline-block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 2px 7px; border-radius: 8px; vertical-align: 2px; }
.hit--new { background: var(--ink); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--mut); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c9d4de; flex: none; }
.st--ok { color: #167556; } .st--ok::before { background: #2fbf8a; }
.st--no { color: #b55b3c; } .st--no::before { background: #e08a6a; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.stars svg { width: 14px; height: 14px; fill: #f5b942; stroke: #f5b942; }
.ib--ghost { background: none; visibility: hidden; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* заголовок для пошуковиків і читалок, якого немає в макеті */   /* порожнє місце для симетрії шапки, без рамки */
.ib.is-on { color: #e0557a; } .ib.is-on svg { fill: #e0557a; stroke: #e0557a; }
.ib:active { transform: scale(.94); }

/* tab bar — Threads/Instagram style */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(60px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; color: #5d6977; font-size: 10px; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; }
.tabbar a svg { width: 26px; height: 26px; stroke-width: 1.8; transition: transform .15s; }
.tabbar a.is-on { color: var(--ink); }
.tabbar a.is-on svg { stroke-width: 2.2; }
.tabbar a:active svg { transform: scale(.9); }
.tabbar .badge { top: 4px; right: calc(50% - 22px); }

/* inner page header */
.ph { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 6px var(--gut); padding-top: calc(6px + env(safe-area-inset-top)); background: rgba(243,246,249,.92); backdrop-filter: blur(12px); max-width: 480px; margin: 0 auto; }
.ph__t { flex: 1; min-width: 0; text-align: center; }
.ph__t h1, .ph__t .ph__h { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph__t small { display: block; font-size: 11px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .ib { flex: none; }
.ph--search { gap: 6px; }

/* search bar (home/catalog) and input (search page) */
.sbar { display: flex; align-items: center; gap: 10px; height: 46px; margin: 4px var(--gut) 10px; padding: 0 14px; border-radius: 16px; background: var(--card); color: var(--mut); font-size: 14px; }
.sbar svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.sinp { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; border-radius: 16px; background: var(--card); }
.sinp svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.sinp input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.sinp input::-webkit-search-cancel-button { display: none; }
.sinp__x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--mut); }
.sinp__x svg { width: 18px; height: 18px; }
.cnt { font-size: 12px; color: var(--mut); padding: 4px 8px 8px; }

/* hero cards (two hits) */
.hero { padding: 0 8px; }
.hc { flex: none; width: 100%; scroll-snap-align: center; position: relative; border-radius: var(--r); background: var(--card); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.hc__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hc__top .new { align-self: auto; }
.hc__brand { font-size: 11.5px; font-weight: 600; color: var(--mut); }
.hc__img { display: grid; place-items: center; height: 200px; border-radius: 20px; background: radial-gradient(60% 60% at 50% 55%, #e9f3fb, var(--soft) 80%); }
.hc__img img { width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(19,32,46,.18)); }
.hc__t h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hc__t p { font-size: 13px; color: var(--mut); line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc__buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 2px; }
.hc__buy em { font-style: normal; display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hc__buy small { display: block; font-size: 11.5px; color: var(--mut); margin-top: 4px; }
.hc .st { margin-top: -2px; }

/* segmented control (variant) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); }
.seg > * { min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--mut); text-align: center; }
.seg > .is-on { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(19,32,46,.3); }
.seg--v { grid-template-columns: 1fr; gap: 6px; padding: 0; background: none; }
.seg--v > * { justify-content: space-between; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 10px 14px; border-radius: 14px; background: var(--soft); text-align: left; color: var(--ink); position: relative; }
.seg--v > *::after { content: ""; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid #b9c6d3; }
.seg--v > .is-on { background: #e7f3fc; box-shadow: inset 0 0 0 1.5px var(--blue); }
.seg--v > .is-on::after { border: 6px solid var(--blue); }
.seg--v b { font-size: 14px; font-weight: 600; padding-right: 32px; }
.seg--v small { font-size: 11.5px; color: var(--mut); font-weight: 500; padding-right: 32px; }

/* key params */
.prm { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.prm li { font-size: 12.5px; font-weight: 600; padding: 7px 10px; border-radius: 10px; background: var(--soft); line-height: 1.1; }
.prm small { display: block; font-size: 10px; color: var(--mut); font-weight: 500; margin-bottom: 2px; }

/* trust strip */
.trust { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px 8px 0; }
.trust li { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--card); font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--blue); }

/* repeat strip */
.hs--rep { padding: 0 8px; }
.rep { flex: none; width: 128px; background: var(--card); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.rep img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto; }
.rep b { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; height: 2.5em; overflow: hidden; }
.rep em { display: block; font-style: normal; font-size: 13px; font-weight: 700; }
.rep .add, .rep .stp { align-self: stretch; width: 100%; justify-content: center; }

/* add / stepper */
.add { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 600; font-size: 14px; padding: 0 12px; }
.add svg { width: 20px; height: 20px; stroke-width: 2.2; }
.add--big { height: 48px; padding: 0 18px; border-radius: 16px; }
.add--ghost { background: var(--soft); color: var(--blue); }
.add:active { transform: scale(.96); }
.stp { display: inline-flex; align-items: center; height: 44px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--blue); }
.stp button { width: 40px; height: 44px; display: grid; place-items: center; color: var(--blue); }
.stp button svg { width: 18px; height: 18px; stroke-width: 2.2; }
.stp b { min-width: 24px; text-align: center; font-size: 15px; font-weight: 700; }
.stp--big { height: 48px; } .stp--big button { height: 48px; width: 44px; }

/* product rows */
.plist { padding: 0 8px; display: grid; gap: 6px; }
.plist--flat { padding: 0; }
.prow { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--card); min-height: 84px; }
.prow__img { width: 64px; height: 64px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; flex: none; overflow: hidden; }
.prow__img img { width: 56px; height: 56px; object-fit: contain; }
.prow__img--x { font-style: normal; font-size: 22px; color: var(--mut); }
.prow__b { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prow__b b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.prow__b > span { font-size: 12px; color: var(--mut); line-height: 1.35; }
.prow__r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.prow__r em { font-style: normal; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.prow__r em small { display: block; font-size: 10.5px; color: #167556; font-weight: 700; text-align: right; }
.prow__r svg { color: var(--blue); }
.prow.is-out .prow__img img { opacity: .5; }
.prow--note { background: var(--soft); min-height: 64px; }
.prow--set .prow__r { align-items: center; flex-direction: row; gap: 6px; }

/* chips / filters */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gut) 10px; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; padding: 0 0 6px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip small { font-size: 11px; color: var(--mut); font-weight: 600; }
.chip svg { width: 16px; height: 16px; }
.chip.is-on { background: var(--ink); color: #fff; } .chip.is-on small { color: rgba(255,255,255,.7); }
.chip--f { background: var(--soft); }
[data-fbody] h3 { font-size: 12px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 8px; }

/* category list rows */
.clist { display: grid; gap: 6px; padding: 0 8px; }
.cli { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 18px; background: var(--card); }
.cli img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: var(--soft); padding: 4px; flex: none; }
.cli__i { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--blue); flex: none; }
.cli div { flex: 1; min-width: 0; }
.cli b { display: block; font-size: 14.5px; font-weight: 600; }
.cli span { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; line-height: 1.35; }
.cli small { font-size: 12px; font-weight: 700; color: var(--mut); }
.cli > svg { width: 18px; height: 18px; color: #9fb0c0; flex: none; }
.cli--o div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pill { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--soft); color: var(--ink-2); }
.pill--1 { background: #e7f3fc; color: var(--blue); } .pill--2 { background: #fff2e0; color: #b7691f; } .pill--3 { background: #e5f7ef; color: #167556; }

/* product page */
.pp { padding: 0 8px; }
.pp__img { position: relative; height: 280px; border-radius: var(--r); background: var(--card); display: grid; place-items: center; }
.pp__img img { width: 240px; height: 240px; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(19,32,46,.2)); }
.pp__img .hit { position: absolute; left: 14px; top: 14px; font-size: 11px; padding: 5px 10px; }
.pp__img--set img { width: 200px; height: 200px; }
.pp h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; padding: 16px 8px 0; }
.pp__sub { font-size: 13.5px; color: var(--mut); line-height: 1.45; padding: 6px 8px 0; }
.pp__meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--mut); padding: 10px 8px 12px; }
.pp .seg { margin: 0 0 10px; }
.pp .prm { padding: 0; }
.pp__price { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 8px 0; }
.pp__price em { font-style: normal; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.tiers { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.tiers span { font-size: 11.5px; color: var(--mut); white-space: nowrap; } .tiers b { color: #167556; }
.facts { list-style: none; margin: 14px 0 0; background: var(--card); border-radius: 20px; padding: 6px 14px; }
.facts li { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.facts li:last-child { border: 0; }
.facts svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.sec--tight { padding-top: 22px; }
.acc { background: var(--card); border-radius: 18px; margin-bottom: 6px; }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 18px; height: 18px; color: var(--mut); transition: transform .2s; flex: none; margin-left: 10px; }
.acc[open] summary svg { transform: rotate(90deg); }
.acc > div { padding: 0 16px 16px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.acc > div p + p, .acc > div p + ul { margin-top: 8px; }
.dl { padding-left: 18px; } .dl li { margin-top: 4px; }
.hs--mini { padding: 0; }
.mini { flex: none; width: 128px; background: var(--card); border-radius: 18px; padding: 10px; scroll-snap-align: start; }
.mini img { width: 88px; height: 88px; object-fit: contain; margin: 0 auto 6px; }
.mini b { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; height: 2.5em; overflow: hidden; }
.mini span { display: block; font-size: 11px; color: var(--mut); margin-top: 2px; }
.mini em { display: block; font-style: normal; font-size: 13px; font-weight: 700; margin-top: 4px; }
.rev { flex: none; width: 78%; scroll-snap-align: start; background: var(--card); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rev p { font-size: 13px; line-height: 1.5; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rev b { font-size: 12.5px; font-weight: 600; } .rev small { font-size: 11px; color: var(--mut); margin-top: -4px; }

/* sticky buy bar */
.buybar { position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 8px; align-items: center; margin: 16px 0 0; padding: 10px var(--gut) 10px; background: rgba(243,246,249,.94); backdrop-filter: blur(12px); max-width: 480px; }
.no-tab .buybar { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.buybar .btn { flex: 1; margin: 0; }
.buybar__q { display: flex; flex-direction: column; gap: 3px; }
.buybar__q small { font-size: 11px; color: var(--mut); font-weight: 600; white-space: nowrap; }
.oc { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border-radius: 24px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--blue); }
.oc svg { width: 18px; height: 18px; }
.btn--soft { background: var(--card); color: var(--blue); }
.btn svg { width: 18px; height: 18px; }

/* cart lines */
.clines { list-style: none; padding: 0 8px; display: grid; gap: 6px; }
.cl { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 44px 10px 10px; border-radius: 18px; background: var(--card); }
.cl__img { width: 64px; height: 64px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.cl__img img { width: 56px; height: 56px; object-fit: contain; }
.cl__b { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl__b > a { display: block; padding: 2px 0; }
.cl__b b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.cl__b > span { font-size: 12px; color: var(--mut); }
.cl__f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.cl__f em { font-style: normal; font-size: 15px; font-weight: 700; text-align: right; }
.cl__f em s { display: block; font-size: 11px; color: var(--mut); font-weight: 500; }
.cl__x { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; color: #9fb0c0; }
.cl__x svg { width: 18px; height: 18px; }
.sum { margin: 14px 8px 0; background: var(--card); border-radius: 20px; padding: 8px 16px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.sum > div > a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); }
.sum > div > span:last-child { white-space: nowrap; text-align: right; }
.sum > div > span:first-child { min-width: 0; }
.sum em { font-style: normal; color: #167556; font-weight: 600; }
.sum s { color: var(--mut); }
.sum__t { border-bottom: 0 !important; font-weight: 600; color: var(--ink) !important; padding-top: 12px !important; }
.sum__t b { font-size: 20px; }
.sum--co { margin-top: 0; }
.free { position: relative; flex-direction: column; align-items: stretch !important; gap: 6px !important; }
.free i { display: block; height: 6px; border-radius: 3px; background: var(--grad); min-width: 6px; }
.free::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 3px; background: var(--soft); z-index: -1; }
.free span { font-size: 12px; color: var(--mut); }
.muted.center { padding: 12px 24px 0; }

/* checkout */
.co { padding: 0 8px; display: grid; gap: 8px; }
.co__l, .co__r { display: grid; gap: 8px; }
.co__s { background: var(--card); border-radius: var(--r); padding: 16px; }
.co__s h2 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.co__more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 24px; }
.co__more summary::-webkit-details-marker { display: none; }
.co__more summary svg { width: 18px; height: 18px; color: var(--mut); }
.co__more[open] summary { margin-bottom: 8px; }
.fld { display: block; margin-top: 8px; }
.fld > span { display: block; font-size: 12px; font-weight: 600; color: var(--mut); margin: 0 0 4px 2px; }
.fld .inp { margin: 0; font-size: 16px; }
.fld .inp--ta { height: auto; padding: 12px 14px; resize: none; }
.fld small { display: block; font-size: 11.5px; color: var(--mut); margin: 4px 2px 0; }
.fld .err { display: none; font-style: normal; font-size: 12px; color: #c0392b; margin: 4px 2px 0; }
.fld.is-err .inp, .inp[aria-invalid="true"] { border-color: #e08a6a; background: #fff6f3; }
.fld.is-err .err, .err:not(:empty) { display: block; }
.inp:focus { outline: none; border-color: var(--blue); background: #fff; }
.cb .fld { margin-top: 12px; }
.ok { text-align: center; padding: 16px 8px 4px; }
.ok i { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; }
.ok i svg { width: 28px; height: 28px; stroke-width: 2.4; }
.ok b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ok p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-top: 8px; }
.ok--page { padding: 28px 24px 10px; }
.acts { display: grid; gap: 8px; padding: 16px 8px 0; }
.acts .btn { margin: 0; }
.acts .back { padding: 10px; min-height: 44px; display: flex; align-items: center; justify-content: center; }

/* order timeline */
.tl { list-style: none; margin: 8px 8px 0; background: var(--card); border-radius: var(--r); padding: 16px 16px 10px; }
.tl li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 18px 34px; color: var(--mut); }
.tl li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: -2px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl i { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; }
.tl i svg { width: 14px; height: 14px; stroke-width: 2.6; color: #fff; }
.tl b { font-size: 14px; font-weight: 600; }
.tl span { font-size: 12px; }
.tl .is-done { color: var(--ink-2); } .tl .is-done i { background: var(--blue); border-color: var(--blue); } .tl .is-done::before { background: var(--blue); }
.tl .is-now { color: var(--ink); } .tl .is-now i { border-color: var(--blue); box-shadow: 0 0 0 4px #e7f3fc; }

/* empty / skeleton / offline */
.empty { text-align: center; padding: 48px 28px 24px; }
.empty i { width: 60px; height: 60px; border-radius: 20px; background: var(--card); color: var(--blue); display: grid; place-items: center; margin: 0 auto 14px; }
.empty i svg { width: 28px; height: 28px; }
.empty b { display: block; font-size: 18px; font-weight: 600; }
.empty p { font-size: 13.5px; color: var(--mut); line-height: 1.5; margin: 8px 0 16px; }
.empty .btn { margin: 0; }
.empty--page { padding-top: 30vh; }
.skl s { display: block; text-decoration: none; background: linear-gradient(90deg, var(--soft) 25%, #e6edf3 50%, var(--soft) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 14px; }
@keyframes sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skl--home { padding: 0 var(--gut); }
.skl__bar { height: 46px; margin: 4px 0 10px; border-radius: 16px !important; }
.skl__hero { height: 520px; border-radius: var(--r) !important; }
.skl__line { height: 22px; width: 60%; margin: 30px 0 0; } .skl__line--s { height: 14px; width: 35%; margin-top: 8px; }
.skl__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; } .skl__grid s { height: 58px; }
/* заготовка сторінки з першої секунди: справжнє фото товару (у блоках готової сторінки — .hc__img, .pp__img, .d-prod__img) і заголовок, поки вантажиться каталог */
.skl__hero { height: auto !important; background: var(--card); padding: 14px 16px 22px; border-radius: var(--r); }
.skl--prod, .skl--pg { padding: 0 var(--gut); }
.skl__d { display: none !important; }
.skl__h1 { display: block; font-weight: 800; font-size: 22px; line-height: 1.2; margin: 16px 0 4px; }
.skl__p { margin: 8px 0 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.skl__btn { height: 52px; margin-top: 22px; }
.skl--pg .skl__grid s { height: 120px; }
@media (min-width: 1024px) {
  .skl { max-width: 1240px; margin: 24px auto 0; padding: 0 24px; }
  .skl--prod { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 36px; align-items: start; }
  .skl__m { display: none !important; } .skl__d { display: grid !important; }
  .skl__h1 { font-size: 30px; margin-top: 8px; }
  .skl--pg .skl__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } .skl--pg .skl__grid s { height: 260px; }
}
.offline { position: fixed; left: 10px; right: 10px; top: calc(8px + env(safe-area-inset-top)); z-index: 70; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; }
.offline svg { width: 18px; height: 18px; flex: none; }
.hint--a { color: var(--blue); font-weight: 600; min-height: 44px; margin: -14px -8px -14px 0; padding: 0 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* desktop-only shell parts (desktop.css turns them on from 1024px) */
.dh, .skip { display: none; }

/* акції: стара ціна і знижка */
.was { display: block; font-size: 11.5px; font-weight: 500; color: var(--mut); text-decoration: line-through; white-space: nowrap; }
.hit--off { background: #cf3541; }
.rep { position: relative; } .rep em .was { display: inline; margin-left: 5px; }
.rep__off { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; color: #fff; background: #cf3541; padding: 2px 6px; border-radius: 8px; }
.mini em .was { display: inline; margin-left: 5px; }
.pp__price em .was { font-size: 14px; margin-top: 6px; letter-spacing: 0; }

/* характеристики товару */
.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; } .spec th { text-align: left; font-weight: 500; color: var(--mut); padding: 7px 10px 7px 0; vertical-align: top; width: 44%; } .spec td { padding: 7px 0; } .spec tr + tr > * { border-top: 1px solid var(--line, #e8edf2); }
.pp__meta a { color: var(--blue); font-weight: 600; }

/* вміст сторінки до запуску застосунку (його бачать пошукові роботи) */
/* текст для пошукових роботів і читалок: є в розмітці, але не миготить перед появою сторінки (без JS — видно, див. noscript у index.html) */
.pre { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-size: 15px; line-height: 1.55; }
.pre:empty { display: none; }
.pre h1 { font-size: 26px; line-height: 1.2; margin: 10px 0; } .pre h2 { font-size: 18px; margin: 22px 0 8px; } .pre p { margin: 8px 0; } .pre a { color: var(--blue); }
.pre__bc { font-size: 13px; color: var(--mut); } .pre__prod { display: grid; gap: 20px; } .pre__prod img { width: 100%; max-width: 320px; height: auto; }
.pre__price b { font-size: 24px; } .pre__spec { border-collapse: collapse; margin: 10px 0; } .pre__spec th { text-align: left; font-weight: 500; color: var(--mut); padding: 5px 16px 5px 0; vertical-align: top; }
.pre__list { padding-left: 18px; columns: 2; column-gap: 28px; } .pre__list li { margin: 3px 0; break-inside: avoid; }
@media (min-width: 760px) { .pre__prod { grid-template-columns: 320px 1fr; } }
