/* P.ukrderevo — верстка за макетом: білий фон, чорний текст, тонкі рамки */
:root {
  --bg: #fff;
  --fg: #111;
  --muted: #6b6b6b;
  --line: #2a2a2a;
  --hair: #e3e3e3;
  --soft: #f3f2f0;
  --blue: #4a8fe2;
  --green: #2f8a4c;
  --wrap: 1320px;
  --gut: 16px;
  --hdr: 56px;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gut: 28px; --hdr: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 15px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 .5em; } p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--fg); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.h1 { font-size: clamp(26px, 2.8vw, 34px); }
.h2 { font-size: clamp(21px, 2vw, 26px); }
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); margin-top: 10px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  background: var(--fg); color: #fff; border: 1px solid var(--fg);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: #fff; color: var(--fg); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: #fff; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; }
.iconbtn .ico { width: 24px; height: 24px; }
.linkbtn { text-align: left; }

/* ---------- верхня смуга: телефон, місто, доставка ---------- */
.topbar { border-bottom: 1px solid var(--hair); font-size: 13px; position: relative; z-index: 45; background: #fff; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 40px; }
@media (min-width: 700px) { .topbar__in { justify-content: flex-end; gap: 30px; height: 42px; } }
.tb { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer; font-weight: 500; }
.tb .ico { width: 17px; height: 17px; }
.tb .ico--chev { width: 14px; height: 14px; transition: transform .2s; }
a.tb:hover span { text-decoration: underline; text-underline-offset: 3px; }
.tb--loc { cursor: default; display: none; }
.tb__sep { width: 1px; height: 18px; background: #bdbdbd; display: none; }
@media (min-width: 700px) { .tb--loc { display: inline-flex; } .tb__sep { display: block; } }
.dd { position: relative; }
.dd summary { list-style: none; }
.dd summary::-webkit-details-marker { display: none; }
.dd[open] .ico--chev { transform: rotate(180deg); }
.dd__panel { position: absolute; right: 0; top: calc(100% + 11px); width: min(340px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); padding: 16px 18px; font-size: 13px; line-height: 1.55; box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.dd__panel ul { margin: 4px 0 8px; padding-left: 18px; }

/* ---------- хедер ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--hair); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo__mark { width: 32px; height: auto; flex: none; }
@media (min-width: 700px) { .logo { font-size: 22px; gap: 11px; } .logo__mark { width: 40px; } }
.nav { display: none; align-items: center; gap: clamp(18px, 2.2vw, 38px); font-size: 14px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; white-space: nowrap; }
.nav a:not(.nav__ig)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav__ig { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; }
.nav__ig .ico { width: 23px; height: 23px; }
.hdr__m { display: flex; align-items: center; gap: 2px; margin-right: -10px; }
@media (min-width: 1150px) { .nav { display: flex; } .hdr__m { display: none; } }

/* мобільне меню */
.mnav { position: fixed; inset: 0; z-index: 60; background: #fff; padding: 0 var(--gut) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; }
.mnav__top { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; margin-right: -10px; flex: none; }
.mnav__links { display: flex; flex-direction: column; padding: 10px 0 18px; border-bottom: 1px solid var(--hair); }
.mnav__links a { font-size: 21px; font-weight: 500; letter-spacing: -.02em; padding: 7px 0; }
.mnav__sub { display: flex; flex-direction: column; padding: 14px 0; font-size: 16px; }
.mnav__sub a { padding: 7px 0; }
.mnav__phone { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; padding: 14px 0; }

/* ---------- банер ---------- */
.hero { position: relative; height: clamp(280px, 44vw, 640px); overflow: hidden; background: var(--soft); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero__title { position: absolute; left: 0; right: 0; bottom: 7%; padding: 0 var(--gut); text-align: center; font-size: clamp(34px, 5.4vw, 80px); font-weight: 500; letter-spacing: -.035em; line-height: 1; text-shadow: 0 0 34px rgba(255,255,255,.75), 0 0 3px rgba(255,255,255,.5); }

/* ---------- секції ---------- */
.sec { padding: 28px 0; }
@media (min-width: 700px) { .sec { padding: 36px 0; } }
.sec__h { font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 18px; }
@media (min-width: 700px) { .sec__h { margin-bottom: 22px; } }

/* ---------- категорії (рядок карток) ---------- */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 34%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scroll-padding: 0 var(--gut); }
.cats::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .cats { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 22px 14px; } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.cat { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cat__media { position: relative; display: block; aspect-ratio: 9 / 10; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--soft); }
.cat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.04); }
.cat__name { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; padding-left: 2px; }
.cat__name .ico { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; transition: transform .25s var(--ease); }
.cat:hover .cat__name .ico { transform: translateX(4px); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: #a29d97; }
.ph .ico { width: 46px; height: 46px; stroke-width: 1; }
.tag { position: absolute; top: 8px; left: 8px; background: #fff; border: 1px solid var(--line); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; }

/* ---------- смуга: контакти / доставка / заміри ---------- */
.strip__in { display: grid; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.strip__i { display: flex; align-items: flex-start; gap: 16px; padding: 20px 4px; font-size: 13px; color: #333; position: relative; text-align: left; }
.strip__i + .strip__i { border-top: 1px solid var(--hair); }
.strip__i > .ico { width: 30px; height: 30px; stroke-width: 1.3; color: var(--fg); margin-top: 2px; }
.strip__h { display: block; font-size: 16px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; margin-bottom: 6px; }
.strip__phone { display: block; font-size: 14px; font-weight: 500; color: var(--fg); margin-bottom: 2px; }
.strip__phone:hover, .strip__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.strip__link { display: inline-block; margin-top: 4px; font-weight: 500; color: var(--fg); }
.strip__p { display: block; }
.strip__i--btn:hover .strip__h { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .strip__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip__i { padding: 26px 32px; }
  .strip__i:first-child { padding-left: 22px; }
  .strip__i + .strip__i { border-top: 0; }
  .strip__i + .strip__i::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 1px; background: #cfcfcf; }
}

/* ---------- картки товарів ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.card__img--alt { opacity: 0; }
@media (hover: hover) {
  .card__media:hover .card__img--alt { opacity: 1; }
  .card__media:hover .card__img { transform: scale(1.03); }
}
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--blue); color: #fff; font-size: 11px; font-weight: 500; line-height: 1; padding: 5px 8px; border-radius: 3px; }
.card__dots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; }
.card__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.card__dots i:first-child { background: var(--fg); box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 11px 14px 13px; }
.card__title { font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.card__size { font-size: 13px; color: #333; margin: 2px 0 0; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card__price { font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.card__buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.card__buy .ico { width: 18px; height: 18px; }
.card__buy:hover { background: var(--fg); color: #fff; }
@media (max-width: 559px) { .card__buy { flex: 1 1 100%; } .card__body { padding: 10px 11px 11px; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; font-weight: 500; line-height: 1.2; padding: 5px 9px; border: 1px solid #cfcfcf; border-radius: 999px; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--fg); }
.chip[aria-checked="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b3b3b3; }
.st--in { color: var(--green); }
.st--in::before { background: var(--green); }

/* ---------- промо: палітра + індивідуальні заміри ---------- */
.sec--promo { padding-bottom: 56px; }
.promo { display: grid; gap: 14px; }
@media (min-width: 900px) { .promo { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; } }
.promo__pal { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 140px; padding: 22px 0 22px 22px; background: #f1f1f0; border-radius: 10px; overflow: hidden; }
@media (min-width: 700px) { .promo__pal { padding: 26px 0 26px 30px; min-height: 150px; } }
.promo__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.promo__h { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.promo__p { font-size: 13px; color: #444; }
.promo__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.promo__link .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.promo__pal:hover .promo__link .ico { transform: translateX(4px); }
.promo__dots { display: flex; flex: none; padding-right: 22px; }
.promo__dots i { width: clamp(52px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: -3px 0 8px rgba(0,0,0,.1); }
.promo__dots i + i { margin-left: calc(clamp(52px, 8vw, 104px) * -0.55); }
@media (max-width: 559px) { .promo__dots i:nth-child(n+4) { display: none; } }
.promo__custom { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 120px; padding: 24px 26px; background: #111; color: #fff; border-radius: 10px; font-size: clamp(20px, 2vw, 25px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; transition: background .2s; }
.promo__custom .ico { width: 26px; height: 26px; transition: transform .25s var(--ease); }
.promo__custom:hover { background: #000; }
.promo__custom:hover .ico { transform: translateX(6px); }
@media (min-width: 900px) { .promo__custom { padding: 26px 34px; justify-content: flex-start; } }

/* ---------- палітра (сторінка) ---------- */
.pal { display: grid; gap: 28px; }
@media (min-width: 900px) { .pal { grid-template-columns: minmax(280px, 360px) 1fr; gap: 64px; align-items: start; } }
.pal__intro .h1 { margin-bottom: 10px; }
.pal__pick { display: flex; align-items: center; gap: 16px; margin: 22px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.pal__big { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--c, #fff); border: 1px solid rgba(0,0,0,.14); transition: background .25s; }
.pal__big:not([style]) { background: repeating-linear-gradient(45deg, #fff 0 5px, #eee 5px 10px); }
.pal__name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.pal__code { font-size: 13px; margin-top: 2px; }
.sw { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 440px; }
@media (min-width: 900px) { .sw { grid-template-columns: repeat(5, 84px); gap: 26px 30px; max-width: none; padding-top: 6px; } }
.sw__i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; }
.sw__dot { width: 100%; height: 100%; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.14); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.sw__i:hover .sw__dot { transform: scale(1.06); }
.sw__i[aria-checked="true"] .sw__dot { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--fg); transform: scale(.94); }

/* ---------- футер ---------- */
.ftr { border-top: 1px solid var(--hair); padding: 36px 0 22px; font-size: 14px; }
.ftr__in { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.ftr__brand { grid-column: 1 / -1; }
.ftr__brand .logo { margin-bottom: 12px; }
@media (min-width: 900px) { .ftr__in { grid-template-columns: 2fr 1fr 1fr 1fr; } .ftr__brand { grid-column: auto; } }
.ftr__col { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.ftr__col a:hover, .ftr__col .linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr__h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ftr__bottom { margin-top: 32px; font-size: 12px; }

/* ---------- кнопка індивідуального замовлення (правий нижній кут) ---------- */
.fab {
  position: fixed; z-index: 30; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; height: 52px; max-width: 360px; padding: 0 20px 0 16px;
  background: var(--fg); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden;
  border-radius: 999px; box-shadow: 0 8px 26px rgba(0,0,0,.2);
  transition: max-width .35s var(--ease), padding .35s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.fab .ico { width: 20px; height: 20px; }
.fab span { transition: opacity .2s; }
.fab.is-mini { max-width: 52px; padding: 0 16px; }
.fab.is-mini span { opacity: 0; }
@media (hover: hover) {
  .fab:hover { background: #fff; color: var(--fg); box-shadow: 0 0 0 1px var(--fg), 0 8px 26px rgba(0,0,0,.18); }
  .fab.is-mini:hover { max-width: 360px; padding: 0 20px 0 16px; }
  .fab.is-mini:hover span { opacity: 1; }
}
@media (min-width: 900px) { .fab { right: 24px; bottom: 24px; height: 54px; font-size: 14px; } .fab.is-mini { max-width: 54px; padding: 0 17px; } }

/* ---------- внутрішні сторінки ---------- */
.page { padding-top: 16px; padding-bottom: 64px; }
@media (min-width: 700px) { .page { padding-top: 20px; padding-bottom: 88px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--fg); }
.phead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.note { border-left: 2px solid var(--fg); padding: 2px 0 2px 14px; margin-bottom: 22px; font-size: 13px; line-height: 1.55; color: #333; max-width: 820px; }
@media (min-width: 700px) { .note { margin-bottom: 28px; } }
.note p { margin: 0; }
.empty { border: 1px solid var(--line); border-radius: var(--r); padding: 52px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.empty__ico .ico { width: 52px; height: 52px; stroke-width: 1; color: #a29d97; }
.empty .muted { max-width: 440px; }
.empty .btn { margin-top: 8px; }
.msg { max-width: 640px; padding-top: 48px; }
.msg .h1 { margin-bottom: 12px; }
.msg .btn { margin-top: 24px; }

/* ---------- заявка ---------- */
.order { display: grid; gap: 36px; }
@media (min-width: 900px) { .order { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } .order__prod { position: sticky; top: calc(var(--hdr) + 20px); } }
.order__prod { display: grid; gap: 18px; }
@media (min-width: 560px) and (max-width: 899px) { .order__prod { grid-template-columns: 240px 1fr; align-items: start; } }
@media (min-width: 1100px) { .order__prod { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; } }
.order__media { position: relative; display: block; width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.order__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.order__size { font-size: 17px; font-weight: 600; margin: 6px 0 0; }
.order__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.order__row .st { margin: 0; }
.order__price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.order__desc { font-size: 14px; margin-top: 4px; }
.order__desc + .order__desc { margin-top: 12px; }
.order__form .h2 { margin-bottom: 8px; }
.order__form > div > .muted { margin-bottom: 22px; }

/* ---------- форми ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld__l { font-size: 13px; font-weight: 600; padding: 0; }
.fld__l i { font-style: normal; font-weight: 400; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  font-size: 16px; outline: none; transition: box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.fld textarea { resize: vertical; min-height: 88px; }
.fld select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; padding-right: 40px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { box-shadow: inset 0 0 0 1px var(--fg); }
.fld input[aria-invalid="true"], .seg[aria-invalid="true"] span { border-color: #c62828; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid #cfcfcf; border-radius: var(--r); font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s, color .15s; }
.seg label:hover span { border-color: var(--fg); }
.seg input:checked + span { background: var(--fg); border-color: var(--fg); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.form__err { color: #c62828; font-size: 14px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; outline: none; }
.done__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--fg); color: #fff; margin-bottom: 6px; }
.done__ico .ico { width: 26px; height: 26px; stroke-width: 2; }
.done .btn { margin-top: 12px; }

/* ---------- модальне вікно ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .modal { align-items: center; padding: 24px; } }
.modal__back { position: absolute; inset: 0; background: rgba(0,0,0,.4); animation: fadeIn .2s var(--ease); }
.modal__box { position: relative; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 12px 12px 0 0; padding: 28px var(--gut) calc(24px + env(safe-area-inset-bottom)); animation: up .3s var(--ease); }
@media (min-width: 700px) { .modal__box { border-radius: 12px; padding: 36px 40px; } }
.modal__box .h2 { padding-right: 40px; margin-bottom: 12px; }
.modal__x { position: absolute; top: 12px; right: 8px; }
@media (min-width: 700px) { .modal__x { top: 18px; right: 18px; } }
.modal__text { font-size: 14px; color: #333; margin-bottom: 22px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.lock { overflow: hidden; }

/* ---------- лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 80; background: #fff; overflow: hidden; touch-action: pan-y; }
.lb__track { display: flex; height: 100%; will-change: transform; transition: transform .35s var(--ease); }
.lb__track.is-drag { transition: none; }
.lb__slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 12px; }
@media (min-width: 700px) { .lb__slide { padding: 72px 96px; } }
.lb__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--fg); transition: background .2s, color .2s; }
.lb__btn:hover { background: var(--fg); color: #fff; }
.lb__btn .ico { width: 22px; height: 22px; }
.lb__x { top: 12px; right: 12px; }
.lb__prev, .lb__next { top: 50%; margin-top: -24px; }
.lb__prev { left: 16px; } .lb__next { right: 16px; }
@media (max-width: 699px) { .lb__prev, .lb__next { top: auto; bottom: 10px; margin: 0; width: 44px; height: 44px; } .lb__prev { left: 12px; } .lb__next { right: 12px; } }
.lb__count { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.lb.is-single .lb__prev, .lb.is-single .lb__next, .lb.is-single .lb__count { display: none; }

/* ---------- сторінка товару ---------- */
.card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp { display: grid; gap: 26px; margin-top: 4px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; } .pdp__info { position: sticky; top: calc(var(--hdr) + 20px); } }
.pdp__stage { position: relative; display: block; width: 100%; aspect-ratio: 5 / 4; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--soft); cursor: zoom-in; isolation: isolate; }
.pdp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
.pdp__img.is-on { opacity: 1; }
.pdp__frame { position: relative; }
.pdp__frame > .badge { z-index: 3; pointer-events: none; }
.pdp__3d { position: absolute; inset: 0; z-index: 2; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: grab; transition: opacity .5s var(--ease);
  background: #EAD8CA url(/img/backdrop.webp) center / cover no-repeat; }
.pdp__3d:active { cursor: grabbing; }
.pdp__3d.is-loading { opacity: 0; pointer-events: none; } /* поки вантажиться 3D — видно перше фото (той самий кадр) */
.pdp__3d canvas { display: block; width: 100%; height: 100%; }
.pdp__3dbtn { position: absolute; left: 12px; bottom: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; background: rgba(255,255,255,.94); border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.pdp__3dbtn .ico { width: 18px; height: 18px; }
.pdp__3dbtn:hover, .pdp__3dbtn[aria-pressed="true"] { background: var(--fg); color: #fff; }
.pdp__thumbs { position: relative; display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px; }
.pdp__thumbs::-webkit-scrollbar { display: none; }
.pdp__th { position: relative; flex: 0 0 auto; scroll-snap-align: start; width: 80px; aspect-ratio: 5 / 4; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; opacity: .7; transition: opacity .2s, border-color .2s; }
.pdp__th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .pdp__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); overflow: visible; } .pdp__th { width: auto; } }
.pdp__th:hover { opacity: 1; }
.pdp__th[aria-selected="true"] { border-color: var(--fg); opacity: 1; }
.pdp__cat { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pdp__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; }
.pdp__size { font-size: 18px; font-weight: 600; margin: 4px 0 0; }
.pdp__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; }
.pdp__row .st { margin: 0; }
.pdp__price { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.pdp__colors { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--hair); }
.pdp__clabel { font-size: 13px; margin-bottom: 10px; color: #333; }
.pdp__clabel b { font-weight: 600; color: var(--fg); }
.pdp__sw { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; max-width: 400px; }
.pdp__dot { aspect-ratio: 1; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.15); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.pdp__dot:hover { transform: scale(1.08); }
.pdp__dot[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--fg); }
.pdp__buy { margin-top: 20px; min-height: 52px; font-size: 15px; }
.pdp__buy .ico { width: 20px; height: 20px; }
.pdp__custom { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pdp__custom .ico { width: 18px; height: 18px; flex: none; }
.pdp__specs { margin: 22px 0 0; border-top: 1px solid var(--hair); }
.pdp__specs > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.pdp__specs dt { font-weight: 600; }
.pdp__specs dd { margin: 0; color: #333; }
.related { margin-top: 56px; }

/* ---------- «Наші роботи» та текстові сторінки ---------- */
.works { margin-top: 56px; }
.works__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.works__head .sec__h { margin: 0; }
.works__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .works__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.works__i { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.works__i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.works__i:hover img { transform: scale(1.04); }
.dd__more { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose { max-width: 720px; margin-top: 18px; font-size: 15px; line-height: 1.65; color: #222; }
.prose .h3 { margin: 28px 0 8px; }
.prose .h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 10px; padding-left: 20px; }
.prose li { margin-bottom: 4px; }
.prose__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }

/* Фото іншої форми, ніж рамка: цілком, поверх розмитої копії (lib/views.js → img({fit})) */
.pic { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--soft); }
.pic > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pic > .pic__bg { object-fit: cover; filter: blur(22px) saturate(1.05); transform: scale(1.25); opacity: .9; }
.pic > .pic__main { object-fit: contain; object-position: 50% 50%; transform: none; }
/* відео в галереї товару (Reels клієнта): цілком поверх розмитого постера */
.pic > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pdp__th--video::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  background: rgba(20,16,12,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") 55% 50% / 14px no-repeat; }
.lb__slide video { max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; background: #000; }
.cat:hover .cat__media .pic__bg, .works__i:hover .pic__bg, .card__media:hover .pic__bg { transform: scale(1.25); }

/* ---------- конструктор розмірів ---------- */
.tb--bld { display: none; }
@media (min-width: 700px) { .tb--bld { display: inline-flex; } }
.p-bld .fab { display: none; }
.bld { display: grid; gap: 22px; margin-top: 4px; }
@media (min-width: 900px) { .bld { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; } .bld__view { position: sticky; top: calc(var(--hdr) + 20px); } }
@media (max-width: 899px) { .bld__view { position: sticky; top: var(--hdr); z-index: 5; background: #fff; padding: 8px 0 10px; margin-top: -8px; } .bld__note { display: none; } }
.bld__stage { position: relative; width: 100%; aspect-ratio: 5 / 4; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: grab; background: #EAD8CA url(/img/backdrop.webp) center / cover no-repeat; }
@media (max-width: 899px) { .bld__stage { aspect-ratio: 16 / 10; } }
.bld__stage:active { cursor: grabbing; }
.bld__stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.bld__stage.is-loading canvas { opacity: 0; }
.bld__dims { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.94); border: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: -.01em; pointer-events: none; }
.bld__wait { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 8px; padding: 0 24px; text-align: center; font-size: 13px; color: #6b5a4c; }
.bld__stage.is-loading .bld__wait, .bld__stage.is-off .bld__wait { display: grid; }
.bld__wait .ico { width: 28px; height: 28px; }
.bld__note { margin-top: 10px; }
.bld__h { margin-bottom: 8px; }
.bld__pre .chips { margin-top: 8px; }
.bpre { font-size: 12px; font-weight: 500; line-height: 1.2; padding: 6px 10px; border: 1px solid #cfcfcf; border-radius: 999px; transition: border-color .15s, background .15s, color .15s; }
.bpre:hover { border-color: var(--fg); }
.bpre[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.bld__group { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.bld__group > legend { margin-bottom: 6px; }
.rng { display: grid; grid-template-columns: 112px minmax(0, 1fr) 100px; align-items: center; gap: 14px; }
.rng[hidden] { display: none; }
@media (max-width: 559px) { .rng { grid-template-columns: minmax(0, 1fr) 100px; grid-template-areas: "l n" "r r"; row-gap: 2px; } .rng__l { grid-area: l; } .rng__n { grid-area: n; } .rng__r { grid-area: r; } }
.rng__l { font-size: 14px; font-weight: 500; }
.rng__n { position: relative; display: block; }
.rng__n input { width: 100%; min-height: 44px; padding: 10px 36px 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 16px; font-weight: 600; outline: none; -moz-appearance: textfield; appearance: textfield; transition: box-shadow .15s; }
.rng__n input::-webkit-outer-spin-button, .rng__n input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rng__n input:focus { box-shadow: inset 0 0 0 1px var(--fg); }
.rng__n i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--muted); pointer-events: none; }
.rng__r { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.rng__r::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: var(--fg); }
.rng__r::-moz-range-track { height: 2px; border-radius: 2px; background: var(--fg); }
.rng__r::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: #fff; border: 2px solid var(--fg); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.rng__r::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--fg); }
.bld__sum { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.bld__sum span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bld__sum b { font-size: 16px; font-weight: 600; }
.bld__h2 { margin-top: 8px; }

/* ---------- декор у 3D ---------- */
.decor { display: flex; align-items: center; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 1px 0 2px; }
.decor::-webkit-scrollbar { display: none; }
.decor__l { flex: none; font-size: 12px; font-weight: 600; margin-right: 2px; }
.dchip { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1.2; padding: 6px 11px 6px 9px; border: 1px solid #cfcfcf; border-radius: 999px; background: #fff; transition: border-color .15s, background .15s, color .15s; }
.dchip::before { content: '+'; font-size: 14px; line-height: 1; width: 10px; text-align: center; }
.dchip:hover { border-color: var(--fg); }
.dchip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.dchip[aria-pressed="true"]::before { content: '\2713'; font-size: 12px; }
.pdp__3d.is-drag, .bld__stage.is-drag { cursor: grabbing; }
.pdp__3d:focus-visible, .bld__stage:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (max-width: 899px) { .pdp, .bld { grid-template-columns: minmax(0, 1fr); } }
.pdp > *, .bld > * { min-width: 0; }
.ftr__ico { display: inline-flex; align-items: center; gap: 9px; }
.ftr__ico .ico { width: 20px; height: 20px; flex: none; }
.ftr__ico:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ftr__col a.ftr__ico:hover { text-decoration: none; }

/* Viber у контактах */
.strip__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.strip__ico { display: inline-flex; align-items: center; gap: 6px; margin-top: 0; }
.strip__ico .ico { width: 17px; height: 17px; }
.mnav__viber { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; padding: 0 0 14px; }
.mnav__viber .ico { width: 22px; height: 22px; }
.mnav__phone + .mnav__viber { margin-top: -6px; }

/* колеса як опція: акцент на прихованих */
.chip--star::before { content: '\2605'; margin-right: 4px; font-size: 10px; color: #C98A2B; }
.chip--star[aria-checked="true"]::before { color: #F2C47A; }
.wnote { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #F6EFE6; font-size: 13px; line-height: 1.45; color: #3A2A20; }
.wnote .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #A86F2A; stroke-width: 2; }
.wnote b { font-weight: 600; }

/* банер: на компʼютері — у власних пропорціях фото (нічого не обрізається), на дуже широких екранах — до 1800 px */
@media (min-width: 700px) { .hero { height: auto; aspect-ratio: var(--hero-ar, 2.33); } }
@media (min-width: 1800px) {
  .hero { max-width: 1800px; margin-inline: auto; }
  /* широкий кадр банера: на всю ширину екрана, без обрізання виробів */
  .hero--wide { max-width: none; aspect-ratio: var(--hero-war, 2.357); max-height: calc(100vh - 120px); }
  .hero--wide .hero__img { object-position: 50% 50%; }
}

/* ---------- власні списки: колір, Нова пошта ---------- */
.xsel, .xcb { position: relative; }
.xsel__btn { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.xsel__btn:focus-visible, .xcb__in:focus { outline: none; box-shadow: inset 0 0 0 1px var(--fg); }
.xsel.is-open .xsel__btn { box-shadow: inset 0 0 0 1px var(--fg); }
.xsel__val { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.xsel__val > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xsel__val i, .xopt__m { font-style: normal; color: var(--muted); font-size: 13px; }
.xsel__chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; transition: transform .2s var(--ease); }
.xsel.is-open .xsel__chev { transform: rotate(180deg); }
.xsw { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); flex: none; }
.xsw--none { background: repeating-linear-gradient(135deg, #fff 0 4px, #ececec 4px 8px); }
.xpop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.14); overflow: hidden; animation: xin .16s var(--ease); }
@keyframes xin { from { opacity: 0; transform: translateY(-4px); } }
.xpop__h { display: none; }
.xlist { list-style: none; margin: 0; padding: 6px; max-height: 336px; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.xlist--sw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.xlist--sw .xopt:first-child { grid-column: 1 / -1; }
.xopt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 10px; border-radius: 8px; cursor: pointer; line-height: 1.25; }
.xopt.is-active { background: var(--soft); }
.xopt[aria-selected="true"] { background: #efeee9; font-weight: 600; }
.xopt[aria-selected="true"] .xsw { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--fg); }
.xopt__t { flex: 1; min-width: 0; }
.xopt__s { display: block; width: 100%; color: var(--muted); font-size: 12px; }
.xcb .xopt { flex-wrap: wrap; row-gap: 0; }
.xcb .xopt__t { flex: 1 1 60%; }
.xopt--wh { align-items: flex-start; }
.xopt__n { flex: none; min-width: 42px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--soft); display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.xopt--wh .xopt__s { padding-left: 52px; }
.xmsg { padding: 12px 10px; color: var(--muted); font-size: 13px; }
.np { display: grid; gap: 10px; }
@media (min-width: 640px) { .np { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.fld .xcb__in, .xcb__in { width: 100%; min-height: 48px; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: inherit; }
.xcb__in:disabled { background: var(--soft); border-color: var(--hair); color: var(--muted); }
.xcb__ico { position: absolute; left: 12px; top: 14px; width: 20px; height: 20px; pointer-events: none; }
.xcb__ico .ico { width: 20px; height: 20px; }
.fld [data-np-wh] .xcb__in { padding-left: 14px; }
.xtabs { display: flex; gap: 6px; padding: 8px 8px 2px; border-bottom: 1px solid var(--hair); overflow-x: auto; }
.xtabs button { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-bottom: 6px; }
.xtabs button[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.xtabs button small { font-weight: 500; opacity: .6; }
.xtabs button:disabled { opacity: .35; cursor: default; }
.xback { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.32); animation: xfade .2s; }
@keyframes xfade { from { opacity: 0; } }
html.x-lock, html.x-lock body { overflow: hidden; }
@media (max-width: 640px) {
  .xpop.xpop--sheet { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 91; border: 0; border-radius: 18px 18px 0 0; max-height: 78vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); animation: xup .24s var(--ease); }
  @keyframes xup { from { transform: translateY(100%); } }
  .xpop--sheet .xpop__h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 8px; font-size: 16px; }
  .xpop__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); font-size: 15px; cursor: pointer; }
  .xpop--sheet .xlist { max-height: none; flex: 1; padding: 4px 10px 16px; }
  .xcb .xpop { position: absolute; z-index: 91; }
  .xcb .xlist { max-height: 46vh; }
}

/* ---------- замовлення: 3D у вибраному кольорі ---------- */
.order__mw { position: relative; display: grid; gap: 8px; align-content: start; }
.order__3d { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; z-index: 2; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--soft); cursor: grab; transition: opacity .4s var(--ease); }
.order__3d.is-loading { opacity: 0; }
.order__3d canvas { display: block; width: 100%; height: 100%; }
.order__cap { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.order__cap .linkbtn { margin-left: auto; }
.order__capsw { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* ---------- категорії на телефоні: індикатор прокрутки ---------- */
.cats-w { position: relative; }
.cats__bar, .cats__next { display: none; }
@media (max-width: 699px) {
  .cats { grid-auto-columns: 40%; }
  .cats-w.is-scroll .cats__bar { display: block; height: 3px; margin: 14px auto 0; width: 92px; border-radius: 3px; background: var(--hair); overflow: hidden; }
  .cats__bar i { display: block; height: 100%; border-radius: 3px; background: var(--fg); transition: transform .08s linear; }
  .cats-w.is-scroll .cats__next { display: grid; place-items: center; position: absolute; right: calc(-1 * var(--gut) + 8px); top: calc(20% + 10px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.94); box-shadow: 0 6px 18px rgba(0,0,0,.12); cursor: pointer; transition: opacity .2s, transform .2s; }
  .cats__next .ico { width: 18px; height: 18px; }
  .cats-w.is-end .cats__next { opacity: 0; pointer-events: none; transform: scale(.8); }
}
/* список Нової пошти — на всю ширину блоку доставки (довгі адреси не ламаються в стовпчик) */
.np { position: relative; }
.np .xcb { position: static; }
.np .xpop { left: 0; right: 0; top: calc(100% + 6px); }
.xopt__t small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* телефон: фіксований префікс +38 */
.tel { position: relative; display: block; }
.tel__cc { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; pointer-events: none; font-variant-numeric: tabular-nums; }
.fld .tel input { padding-left: 50px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
