:root {
  --ink: #0E1116;
  --ink-2: #171B22;
  --ink-3: #232833;
  --paper: #F3F0E8;
  --paper-2: #EAE6DB;
  --card: #FBFAF6;
  --line: #DAD5C8;
  --muted: #6B6A64;
  --yellow: #FFCE1F;
  --blue: #1F4FE0;
  --green: #2E6B3E;
  --red: #C9381E;
  --viber: #7360F2;
  --r: 18px;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -18px rgba(14,17,22,.35);
  --display: 'Unbounded', 'Manrope', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hide-sm { }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 0; font-weight: 800; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; position: relative; overflow: hidden; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(255,206,31,.8); }
.btn--yellow::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--yellow:hover::after { transform: translateX(120%); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--yellow); color: var(--yellow); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--blue { background: #2AABEE; color: #fff; }
.btn--violet { background: var(--viber); color: #fff; }
.btn--block { width: 100%; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- topbar & header ---------- */
.topbar { background: var(--ink); color: #bfc3cc; font-size: 13px; }
.topbar__in { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 8px 0; }
.topbar__links { display: flex; gap: 18px; align-items: center; }
.topbar__links a:hover { color: var(--yellow); }
.topbar__phone { color: #fff; font-family: var(--mono); font-weight: 700; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(243,240,232,.97); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(0,0,0,.4); }
.header__in { display: flex; align-items: center; gap: 24px; height: 74px; transition: height .3s var(--ease); }
.header.is-scrolled .header__in { height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-10deg) scale(1.06); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .02em; line-height: 1; display: flex; flex-direction: column; }
.brand__name small { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .28em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 14.5px; position: relative; transition: background .2s; }
.nav a:hover { background: var(--paper-2); }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; height: 44px; transition: border-color .2s, box-shadow .2s; color: var(--muted); min-width: 0; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,206,31,.35); }
.search input { border: 0; outline: 0; background: none; width: 100%; font-weight: 600; color: var(--ink); }
.cart-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: transform .25s var(--ease); }
.cart-btn:hover { transform: scale(1.06); }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94); } }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 800 12px/22px var(--mono); border: 2px solid var(--paper); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, #1b2436 0%, transparent 60%), var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero__scope { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; background-position: center; }
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__in { padding: 96px 0 64px; }
.hero__text { max-width: 820px; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #9aa3b5; display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); animation: ping 1.8s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.4vw, 86px); line-height: .98; letter-spacing: -.02em; margin: 0 0 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.accent { color: var(--yellow); position: relative; display: inline-block; clip-path: inset(-50% 0 -50% 0); }
.accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4 T30 4 T40 4' fill='none' stroke='%231F4FE0' stroke-width='2.4'/%3E%3C/svg%3E") repeat-x 0 0 / .8em 100%; left: -.8em; animation: waveMove 1.2s linear infinite; will-change: transform; }
@keyframes waveMove { to { transform: translateX(.8em); } }
.hero__lead { font-size: 18px; color: #c4c9d4; max-width: 560px; margin: 0 0 32px; opacity: 0; animation: fadeUp .8s .45s var(--ease) forwards; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s .6s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__stats { display: flex; gap: 36px; margin: 48px 0 0; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s .75s var(--ease) forwards; }
.hero__stats dt { font: 800 32px/1 var(--mono); color: #fff; }
.hero__stats dt small { color: var(--yellow); font-size: 20px; margin-left: 4px; }
.hero__stats dd { margin: 6px 0 0; font-size: 13px; color: #8e96a6; }
.hero__readout { display: flex; gap: 28px; justify-content: flex-end; padding-bottom: 18px; font: 500 11px var(--mono); color: #5d6576; letter-spacing: .1em; }

@keyframes blink { 50% { opacity: .2; } }
@keyframes spotIn { from { opacity: 0; transform: translateY(20px) scale(.92) rotate(-3deg); } }
@keyframes bar { to { width: 100%; } }

/* ---------- marquee ---------- */
.marquee { background: var(--yellow); overflow: hidden; border-block: 2px solid var(--ink); }
.marquee__track { display: flex; gap: 28px; width: max-content; padding: 14px 0; animation: marq 32s linear infinite; font-family: var(--display); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; align-items: center; }
.marquee i { font-style: normal; color: var(--blue); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.wrap { padding-inline: 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--paper { background: var(--paper-2); }
.sec-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.02em; margin: 0; line-height: 1.05; }
.sec-num { font: 700 13px var(--mono); color: var(--blue); margin: 0; padding: 4px 10px; border: 1.5px solid currentColor; border-radius: 999px; align-self: center; }
.section--dark .sec-num { color: var(--yellow); }
.sec-sub { margin: 0 0 0 auto; color: var(--muted); font-weight: 600; }
.section--dark .sec-sub { color: #8e96a6; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; text-align: left; display: flex; flex-direction: column; gap: 8px; min-height: 230px; overflow: hidden; transition: transform .4s var(--ease), border-color .3s, background .3s; color: var(--ink); }
.cat:hover { transform: translateY(-6px); border-color: var(--ink); }
.cat__img { height: 130px; margin: -4px 0 6px; display: grid; place-items: center; background: #fff; border-radius: 12px; overflow: hidden; }
.cat__img img, .cat__img .art { max-height: 130px; width: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.cat:hover .cat__img img, .cat:hover .cat__img .art { transform: scale(1.08) rotate(-3deg); }
.cat__name { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.cat__count { font: 700 12px var(--mono); color: var(--muted); margin-top: auto; }
.cat__count b { position: absolute; top: 26px; right: 26px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; transition: transform .3s var(--ease); }
.cat:hover .cat__count b { transform: rotate(-45deg); }

/* ---------- product card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.card.pre { opacity: 0; transform: translateY(22px); }
.card.pre.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .card__media img, .js .cat__img img { opacity: 0; transition: opacity .4s ease, transform .6s var(--ease); }
.js .card__media img.ld, .js .cat__img img.ld { opacity: 1; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #bdb6a4; }
.card__media { position: relative; aspect-ratio: 4/3; background: #fff; overflow: hidden; cursor: pointer; display: grid; place-items: center; }
.card__media .art, .card__media img { position: relative; width: 86%; height: 88%; object-fit: contain; transition: transform .6s var(--ease); }
.card:hover .card__media .art, .card:hover .card__media img { transform: scale(1.07); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.badge { font: 800 12px var(--mono); padding: 5px 9px; border-radius: 8px; background: var(--red); color: #fff; }
.badge--gift { background: var(--ink); color: var(--yellow); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__code { font: 500 11.5px var(--mono); color: var(--muted); letter-spacing: .06em; }
.card__name { font-weight: 700; font-size: 15px; line-height: 1.35; margin: 0; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__name:hover { color: var(--blue); }
.card__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 700; margin-top: 2px; }
.tag { padding: 3px 8px; border-radius: 6px; background: #e3efe5; color: var(--green); }
.tag--ink { background: var(--paper-2); color: var(--ink); }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font: 800 22px/1 var(--mono); letter-spacing: -.02em; }
.price s { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
.price--sale { color: var(--red); }
.buy { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; transition: background .25s, color .25s, transform .25s var(--ease); }
.buy:hover { background: var(--ink-3); transform: translateY(-2px); }
.buy.added { background: var(--green); color: #fff; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; min-width: 0; }
.toolbar > * { min-width: 0; max-width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.chip { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: all .25s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip sup { font: 700 10px var(--mono); margin-left: 4px; opacity: .6; }
.sort { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.sort select { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px; font-weight: 700; }
.empty { text-align: center; padding: 60px 0; }
.empty p:first-child { font-family: var(--display); font-size: 22px; margin: 0; }

/* ---------- sale rail ---------- */
.rail { position: relative; overflow: hidden; padding: 14px 0 18px; touch-action: pan-y; cursor: grab; user-select: none; }
.rail::before, .rail::after { content: ''; position: absolute; top: 0; bottom: 0; width: 6%; z-index: 2; pointer-events: none; }
.rail::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.rail::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.rail.dragging { cursor: grabbing; }
.rail.dragging .card { pointer-events: none; }
.rail img { -webkit-user-drag: none; }
.rail__track { display: flex; width: max-content; will-change: transform; animation: railMove 60s linear infinite; }
@keyframes railMove { to { transform: translate3d(-50%, 0, 0); } }
.rail.off .rail__track { animation-play-state: paused; }
@media (hover: hover) { .rail:hover .rail__track, .rail:focus-within .rail__track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .rail__track { animation: none; } }
.rail__set { display: flex; gap: 16px; padding-right: 16px; flex-shrink: 0; }
.rail .card { flex: 0 0 272px; background: var(--ink-2); border-color: #2c3240; color: #fff; animation: none; }
.rail .card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,.55); box-shadow: 0 24px 50px -28px rgba(0,0,0,.8); }
.rail .card__code, .rail .price s { color: #7d8596; }
.rail .price--sale { color: var(--yellow); }
.rail .buy { background: var(--yellow); color: var(--ink); }
.rail .buy:hover { background: #fff; }
.rail .tag--ink { background: #2c3240; color: #d8dce4; }
.rail .tag { background: #1e3325; color: #8fd4a0; }
.rail-nav { margin-left: auto; display: flex; gap: 8px; }
.rail-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #3a4150; background: none; color: #fff; font-size: 18px; transition: all .25s; }
.rail-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 0; }
.feat { border-top: 2px solid var(--ink); padding-top: 20px; }
.feat__ico { font-size: 22px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--yellow); border-radius: 14px; margin-bottom: 14px; transition: transform .4s var(--ease); }
.feat:hover .feat__ico { transform: rotate(-10deg) scale(1.1); }
.feat h3 { font-family: var(--display); font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feat:nth-child(2) { transition-delay: .08s; } .feat:nth-child(3) { transition-delay: .16s; } .feat:nth-child(4) { transition-delay: .24s; }

/* ---------- reviews ---------- */
.reviews { columns: 3 300px; column-gap: 16px; }
.review { break-inside: avoid; background: var(--card); border-radius: var(--r); padding: 22px; margin-bottom: 16px; border: 1.5px solid var(--line); }
.review__top { display: flex; align-items: center; gap: 12px; }
.ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; font-family: var(--display); }
.review__who b { display: block; }
.review__who span { font: 500 12px var(--mono); color: var(--muted); }
.stars { margin-left: auto; color: #F5A524; letter-spacing: 2px; }
.review__text { margin: 14px 0 0; font-size: 15px; }
.review__prod { margin: 12px 0 0; font-size: 13.5px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-weight: 600; }
.review__prod::before { content: '🛒 '; }
.review__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.review__tags span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); }
.review__reply { margin-top: 12px; padding-left: 12px; border-left: 3px solid var(--yellow); font-size: 13.5px; color: var(--muted); }

/* ---------- info ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 28px; }
.info--wide { grid-column: 1 / -1; }
.info h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230E1116' stroke-width='2'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks--cols { grid-template-columns: 1fr 1fr; margin: 16px 0; }
.note { margin: 16px 0 0; display: inline-block; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 8px; background: #fde6e1; color: var(--red); }

/* ---------- about ---------- */
.about__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 48px); margin: 16px 0 20px; }
.about p { color: #c4c9d4; font-size: 17px; }
.about .sec-num { display: inline-block; }
.about__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2c3240; border: 1px solid #2c3240; border-radius: var(--r); overflow: hidden; }
.about__facts div { background: var(--ink-2); padding: 22px; }
.about__facts dt { font: 500 11.5px var(--mono); color: #7d8596; text-transform: uppercase; letter-spacing: .1em; }
.about__facts dd { margin: 8px 0 0; font-weight: 700; font-size: 17px; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.contacts__card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; }
.c-row { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.c-row span { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.c-row a, .c-row b { font-weight: 800; font-size: 18px; margin-top: 2px; }
.c-row a:hover { color: var(--blue); }
.c-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.map { border-radius: var(--r); overflow: hidden; min-height: 380px; border: 1.5px solid var(--line); background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #9aa3b5; padding: 48px 0; }
.footer__in { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { background: var(--paper); border-radius: 14px; padding: 4px; }
.footer__brand b { color: #fff; }
.footer__brand p { margin: 0; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; }
.footer__nav a:hover { color: var(--yellow); }
.footer__copy { width: 100%; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid #232833; font-size: 13px; }

/* ---------- overlay / drawer / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(14,17,22,.6); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 100; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .45s var(--ease); box-shadow: -30px 0 60px -30px rgba(0,0,0,.4); }
.drawer:not(.open) { visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1.5px solid var(--line); }
.drawer__head h3 { margin: 0; font-family: var(--display); font-size: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.drawer__foot { padding: 20px 22px; border-top: 1.5px solid var(--line); background: var(--card); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 700; }
.total b { font: 800 26px var(--mono); }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); font-size: 24px; line-height: 1; display: grid; place-items: center; transition: transform .3s var(--ease), background .2s; }
.x:hover { transform: rotate(90deg); background: var(--yellow); }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); animation: fadeUp .4s var(--ease); }
.ci__img { width: 64px; height: 64px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.ci__img .art, .ci__img img { width: 90%; height: 90%; object-fit: contain; }
.ci__name { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci__price { font: 700 13px var(--mono); color: var(--muted); margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-weight: 800; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font: 700 14px var(--mono); }
.ci__rm { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 6px; padding: 0; text-decoration: underline; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.cart-empty svg { width: 120px; margin: 0 auto 16px; color: var(--line); }

.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.modal.open { pointer-events: auto; opacity: 1; }
.modal__box { position: relative; background: var(--paper); border-radius: 24px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; transform: translateY(30px) scale(.97); transition: transform .45s var(--ease); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.modal.open .modal__box { transform: none; }
.modal__box > .x { position: absolute; top: 14px; right: 14px; z-index: 3; }
.modal__box--product { width: min(980px, 100%); padding: 0; }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; }
.pd__media { background: linear-gradient(#f5f2ea, #e4dfd2); position: relative; display: grid; place-items: center; min-height: 420px; border-radius: 24px 0 0 24px; overflow: hidden; }
.pd__media::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(14,17,22,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(14,17,22,.06) 1px, transparent 1px); background-size: 26px 26px; }
.pd__media { display: flex; flex-direction: column; padding: 24px; gap: 14px; }
.pd__main { position: relative; flex: 1; width: 100%; display: grid; place-items: center; }
.pd__main .art, .pd__main img { width: 90%; max-height: 400px; object-fit: contain; animation: spotIn .6s var(--ease); }
.pd__thumbs { position: relative; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pd__thumbs button { width: 60px; height: 60px; border-radius: 12px; border: 2px solid transparent; background: #fff; padding: 4px; transition: border-color .2s, transform .2s; }
.pd__thumbs button:hover { transform: translateY(-2px); }
.pd__thumbs button.on { border-color: var(--ink); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd__desc { white-space: pre-line; font-size: 14.5px; }
.pd__desc.clamp { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.pd__more { align-self: flex-start; border: 0; background: none; padding: 0; font-weight: 800; color: var(--blue); }
.more { display: flex; justify-content: center; margin-top: 28px; }
.fb-text { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card); font: 500 13px/1.5 var(--mono); resize: vertical; margin: 8px 0 4px; }
.fb-btns { justify-content: center; }
.pd__info { padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.pd__info h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; margin: 0; }
.pd__desc { color: #3c3d42; margin: 0; }
.pd__desc { overflow-wrap: anywhere; }
.pd__price { display: flex; align-items: baseline; gap: 12px; }
.pd__price .price { font-size: 34px; }
.pd__price .price s { display: inline; margin-right: 8px; }
.pd__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.pd__actions .qty button { width: 40px; height: 44px; }
.pd__list { list-style: none; padding: 14px 0 0; margin: auto 0 0; border-top: 1px dashed var(--line); font-size: 13.5px; display: grid; gap: 6px; color: var(--muted); }
.pd__list b { color: var(--ink); }

.checkout h3 { font-family: var(--display); font-size: 22px; margin: 0 0 16px; }
.checkout__sum { background: var(--card); border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; border: 1.5px solid var(--line); }
.checkout__sum div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.checkout__sum div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout__sum .tot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-weight: 800; }
.checkout__sum .tot span:last-child { font-family: var(--mono); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.f input, .f textarea { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 600; outline: 0; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.f input:focus, .f textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,206,31,.35); }
.f.err input { border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.seg { border: 0; padding: 0; margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255,206,31,.5); }
.hp { position: absolute; left: -9999px; }
.form-err { color: var(--red); font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.success { text-align: center; padding: 20px 0; }
.success__wave { width: 140px; margin: 0 auto 10px; color: var(--yellow); stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-family: var(--display); font-size: 24px; margin: 0 0 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 700; z-index: 200; transition: transform .45s var(--ease); display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast::before { content: '✓'; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 20px; z-index: 40; opacity: 0; transform: translateY(20px); transition: all .35s var(--ease); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--yellow); color: var(--ink); }

.fly { position: fixed; z-index: 300; width: 60px; height: 60px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; pointer-events: none; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); transition: transform .75s cubic-bezier(.5,-0.4,.7,1), opacity .75s; }
.fly .art, .fly img { width: 44px; height: 44px; object-fit: contain; }

.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, #f6f3ec 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); height: 380px; }
@keyframes sk { to { background-position: -200% 0; } }

/* art micro-animations */
.art .led { animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { opacity: .25; } }
.art .sig { animation: sig 1.6s ease-in-out infinite; }
@keyframes sig { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.card:hover .art .cone { animation: cone .35s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes cone { 50% { transform: scale(1.08); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: 8px 8px; }
}
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 56px; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: var(--ink); flex-direction: column; padding: 90px 24px 24px; gap: 4px; transform: translateX(105%); transition: transform .45s var(--ease); z-index: 60; }
  .nav.open { transform: none; }
  .nav a { color: #fff; font-family: var(--display); font-size: 22px; padding: 12px 0; border-bottom: 1px solid #232833; border-radius: 0; }
  .nav a:hover { background: none; color: var(--yellow); }
  .burger { display: flex; position: relative; z-index: 70; }
  .burger.open span { background: #fff; }
  .features { grid-template-columns: 1fr 1fr; }
  .about__in, .contacts, .pd { grid-template-columns: 1fr; }
  .pd__media { min-height: 280px; border-radius: 24px 24px 0 0; }
  .hide-sm { display: none; }
}
@media (max-width: 680px) {
  .header__in { gap: 10px; flex-wrap: wrap; height: auto; padding: 10px 0; }
  .header.is-scrolled .header__in { height: auto; }
  .search { order: 5; flex-basis: 100%; }
  .brand { margin-right: auto; }
  .topbar__item:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .cats { grid-template-columns: 1fr 1fr; }
  .cat { min-height: 200px; }
  .cat .art { height: 90px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__body { padding: 12px; }
  .card__name { font-size: 13.5px; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .buy { justify-content: center; }
  .price { font-size: 19px; }
  .section { padding: 64px 0; }
  .sec-sub { margin-left: 0; flex-basis: 100%; }
  .info-grid, .ticks--cols, .f-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .hero__readout { display: none; }
  .features { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { white-space: nowrap; }
  .about__facts { grid-template-columns: 1fr; }
  .modal__box { padding: 22px; }
  .pd__info { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* на телефонах ефекти наведення не залипають після дотику */
@media (hover: none) {
  .card:hover, .cat:hover, .rail .card:hover { transform: none; box-shadow: none; }
  .rail .card:hover { border-color: #2c3240; }
  .card:hover { border-color: var(--line); }
  .cat:hover { border-color: var(--line); }
  .card:hover .card__media img, .card:hover .card__media .art, .cat:hover .cat__img img, .cat:hover .cat__img .art, .cat:hover .cat__count b { transform: none; }
}
@media (max-width: 680px) {
  .cat { padding: 12px; }
  .cat__name { font-size: 13.5px; }
  .cat__count b { top: 18px; right: 18px; width: 28px; height: 28px; font-size: 12px; }
}

/* сторінка ніколи не гортається вбік (iOS ігнорує overflow лише на body) */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (max-width: 960px) { .nav:not(.open) { visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; } .chips { scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; } .chips::-webkit-scrollbar { display: none; } }

/* нижні розділи малюються лише при наближенні (помітно легший скрол на телефонах) */
#reviews, #delivery, .about, #contacts { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ================= сторінки товару / категорії ================= */
.page { padding: 28px 0 80px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink); font-weight: 700; }
.crumbs a:hover { color: var(--blue); }
.crumbs b { font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.4vw, 48px); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.05; }
.page-head__lead { font-size: 17px; max-width: 760px; margin: 0 0 6px; color: #3c3d42; }
a.chip { display: inline-flex; align-items: baseline; }
.page--404 { text-align: center; padding: 100px 0; }
.page--404 h1 { font-family: var(--display); font-size: 40px; margin: 0 0 10px; }

.prod { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
.prod__gallery { position: sticky; top: 90px; }
.prod__main { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 24px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.prod__main img { width: 88%; height: 88%; object-fit: contain; }
.prod__noimg { color: var(--muted); font-weight: 700; }
.prod__gallery .pd__thumbs { justify-content: flex-start; margin-top: 12px; }
.prod__gallery .pd__thumbs button { border-color: var(--line); }
.prod__gallery .pd__thumbs button.on { border-color: var(--ink); }
.prod__info { display: flex; flex-direction: column; gap: 14px; }
.prod__title { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.prod__info .pd__price .price { font-size: 38px; }
.prod__info .pd__list { margin: 6px 0 0; }
.prod__info .pd__list a { color: var(--ink); font-weight: 700; }
.prod__cats { font-size: 14px; color: var(--muted); margin: 0; }
.prod__cats a { color: var(--blue); font-weight: 700; }
.out-note { font-weight: 800; color: var(--red); }
.prod__sections { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 48px; align-items: start; }
.prod__sect { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 26px; }
.prod__sect h2 { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.prod__desc { white-space: pre-line; font-size: 15px; color: #2c2d31; overflow-wrap: anywhere; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 50%; padding-right: 14px; }
.specs td { font-weight: 700; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.prod__similar { margin-top: 56px; }
.prod__similar .sec-head { margin-bottom: 20px; }
.prod__similar h2 { font-size: clamp(24px, 3vw, 34px); }
.sec-link { margin-left: auto; font-weight: 800; color: var(--blue); }

.tag--out { background: #fde6e1; color: var(--red); }
.buy--off { background: var(--paper-2); color: var(--muted); cursor: default; pointer-events: none; }
.card__media { display: grid; }
.card__name a { color: inherit; }
.card__name a:hover { color: var(--blue); }
a.cat { text-decoration: none; }
.ci__name { color: inherit; }

.footer__cats { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; padding: 18px 0; border-top: 1px solid #232833; }
.footer__cats a:hover { color: var(--yellow); }
.footer__brand a { color: #c4c9d4; }

@media (max-width: 960px) {
  .prod, .prod__sections { grid-template-columns: 1fr; }
  .prod__gallery { position: static; }
}
@media (max-width: 680px) {
  .page { padding-top: 18px; }
  .prod { gap: 20px; }
  .prod__info .pd__price .price { font-size: 30px; }
  .prod__sect { padding: 18px; }
  .specs th { width: 45%; }
  .crumbs b { max-width: 28ch; }
}

/* лише для скрінрідерів */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================= мобільна версія ================= */
.search-toggle, .nav__cats, .nav__contacts, .buybar { display: none; }
.prod__desc--clamp { max-height: 14em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.pd__more { margin-top: 10px; }
.checkout__sum div span:last-child { white-space: nowrap; }

@media (max-width: 960px) {
  /* меню: категорії й контакти прямо в ньому */
  .nav { overflow-y: auto; padding-bottom: 32px; }
  .nav__cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 6px; }
  .nav .nav__cats a { font-family: var(--body); font-size: 14px; font-weight: 700; padding: 8px 12px; border: 1px solid #2c3240; border-radius: 999px; }
  .nav__contacts { display: grid; gap: 8px; margin-top: 14px; }
  .nav .nav__contacts a { font-family: var(--body); font-size: 15px; padding: 13px; border-radius: 999px; border: 0; justify-content: center; color: var(--ink); }
  .nav .nav__contacts .btn--blue { color: #fff; }
  /* панель «В кошик» */
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,250,246,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(0,0,0,.35); transform: translateY(110%); transition: transform .3s var(--ease); }
  .buybar.show { transform: none; }
  .buybar__price { display: flex; flex-direction: column; font-family: var(--mono); line-height: 1.1; }
  .buybar__price s { font-size: 12px; color: var(--muted); }
  .buybar__price b { font-size: 22px; }
  .buybar .btn { padding: 13px 26px; }
  body[data-page="product"] .to-top { display: none; }
}

@media (max-width: 680px) {
  /* компактна шапка: логотип + кошик + меню; пошук — під лупою */
  .header__in { padding: 8px 0; gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand__name { font-size: 17px; }
  .brand__name small { font-size: 9px; letter-spacing: .22em; }
  .cart-btn { width: 42px; height: 42px; }
  .cart-btn svg { width: 19px; height: 19px; }
  .cart-btn__count { min-width: 20px; height: 20px; line-height: 20px; font-size: 11px; top: -5px; right: -5px; }
  .burger { width: 40px; height: 40px; padding: 9px; }
  .search-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); margin-left: auto; }
  .brand { margin-right: 0; }
  .search { order: 5; flex-basis: 100%; height: 42px; }
  .header.is-scrolled .search { display: none; }
  .header.is-scrolled.search-open .search { display: flex; }
  .header:not(.is-scrolled) .search-toggle { display: none; }
  .header:not(.is-scrolled) .brand { margin-right: auto; }
  .topbar { font-size: 12px; }
  .topbar__in { padding: 6px 0; gap: 14px; }

  /* поля — 16px, щоб iPhone не збільшував сторінку при введенні */
  input, select, textarea, .search input, .f input, .f textarea, .sort select { font-size: 16px !important; }

  /* відступи й заголовки */
  .section { padding: 48px 0; }
  .sec-head { margin-bottom: 22px; gap: 10px; }
  .sec-head h2 { font-size: 27px; }
  .hero__in { padding: 36px 0 36px; }
  .hero__title { font-size: 44px; margin-bottom: 18px; }
  .hero__lead { font-size: 16px; margin-bottom: 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
  .hero__stats dt { font-size: 24px; }
  .hero__stats dd { font-size: 11.5px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .06em; margin-bottom: 16px; }
  .marquee__track { padding: 10px 0; font-size: 13px; }

  /* картки товарів: без зайвого */
  .card__code { display: none; }
  .card__meta .tag--ink { display: none; }
  .card__meta .tag { font-size: 11px; padding: 2px 7px; }
  .card__body { gap: 5px; }
  .card__name { font-size: 13.5px; -webkit-line-clamp: 3; }
  .card__foot { padding-top: 8px; gap: 8px; }
  .buy { height: 40px; font-size: 13.5px; }
  .badge { font-size: 11px; padding: 4px 7px; }
  .badges { top: 8px; left: 8px; }
  .rail .card { flex-basis: 236px; }
  .rail-nav { display: none; }

  /* відгуки — гортаються вбік */
  .reviews { columns: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 84%; scroll-snap-align: center; margin: 0; padding: 18px; }
  .review__tags { display: none; }

  .info, .contacts__card { padding: 20px; }
  .map, .map iframe { min-height: 260px; }
  .footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
  .footer__nav { gap: 14px; font-size: 14px; }

  /* кнопка «нагору» не закриває «Купити» */
  .to-top { width: 40px; height: 40px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); font-size: 16px; opacity: .9; }

  /* сповіщення зверху, щоб не закривати кнопки кошика */
  .toast { top: calc(12px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -160%); font-size: 14px; padding: 12px 16px; width: max-content; max-width: calc(100% - 24px); }
  .toast.show { transform: translate(-50%, 0); }

  /* кошик і оформлення на весь екран */
  .drawer { width: 100%; }
  .drawer__foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .modal { padding: 0; align-items: end; }
  .modal__box { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
  .checkout h3 { font-size: 20px; padding-right: 44px; }
  .seg span { padding: 11px 6px; font-size: 13.5px; }

  /* сторінка товару */
  .prod__title { font-size: 21px; }
  .prod__main { border-radius: 18px; }
  .prod__info .pd__price { flex-wrap: wrap; }
  .prod .pd__actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
  .prod .pd__actions .btn--ink { grid-column: 1 / -1; }
  .prod .pd__actions .btn { width: 100%; }
  .pd__list { font-size: 14px; }
  .prod__sections { margin-top: 28px; gap: 14px; }
  .prod__similar { margin-top: 36px; }
  .sec-link { margin-left: 0; font-size: 14px; }
  .page-head h1 { font-size: 30px; }
  .page-head__lead { font-size: 15px; }
}

/* відкрите меню — над затемненням */
.header.menu-open { z-index: 100; }


/* ===== телефон: нічого не з'їжджає і не обрізається ===== */
@media (max-width: 680px) {
  /* заголовок підлаштовується під ширину екрана (360–430px) */
  .hero__title { font-size: clamp(31px, 10.4vw, 46px); }
  .hero__title .line { padding-bottom: .14em; margin-bottom: -.08em; }
  .accent { clip-path: inset(-50% -.12em -50% -.12em); }
  .sec-head h2, .page-head h1 { overflow-wrap: anywhere; }

  /* шапка закріплена поверх сторінки: коли вона стискається при прокрутці, контент не стрибає */
  .topbar { display: none; }
  .header { position: fixed; top: 0; left: 0; right: 0; }
  body:not(.adm) { padding-top: 109px; }
  html { scroll-padding-top: 70px; }
  .header__in { min-height: 58px; }
}
