/* ============ Ceramtop — світлий преміум ============
   Палітра: порцеляна, камінь, сланець; латунь — лише для знижок і покриттів.
   Шрифт: Commissioner (українська розробка, повна кирилиця).
   Головний акцент: металеві зразки покриттів. Решта — тиха. */

:root {
  --porcelain: #f6f7f6;
  --white: #ffffff;
  --stone: #eceeec;
  --stone-2: #e2e6e4;
  --line: #d9dfdc;
  --slate: #1e2a2f;
  --slate-2: #46545a;
  --muted: #7b878c;
  --brass: #94733c;
  --brass-soft: #f2ebdd;
  --ok: #2e6b4b;
  --r: 6px;
  --r-lg: 10px;
  --wrap: 1320px;
  --font: "Commissioner", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--porcelain); color: var(--slate); font: 400 16px/1.6 var(--font); font-feature-settings: "ss01"; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 99; top: 10px; left: 10px; padding: 10px 14px; background: var(--white); border-radius: var(--r); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r); font-weight: 500; letter-spacing: .005em; cursor: pointer; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn-dark { background: var(--slate); color: var(--white); }
.btn-dark:hover { background: #2d3d44; }
.btn-line { border-color: var(--slate); background: transparent; }
.btn-line:hover { background: var(--slate); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--stone); }

/* ---------- Верхня смуга й шапка ---------- */
.topline { background: var(--slate); color: #d7dfe1; font-size: .82rem; }
.topline-row { display: flex; justify-content: center; gap: 36px; min-height: 36px; align-items: center; }
.topline span { display: inline-flex; align-items: center; gap: 8px; }
.topline .ic { width: 16px; height: 16px; }

.hdr { position: sticky; top: 0; z-index: 40; background: rgba(246, 247, 246, .94); backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; }
.logo .mark { width: 26px; height: 26px; fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-linecap: round; }
.mainnav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.mainnav a, .mainnav-all { padding: 10px 12px; border-radius: var(--r); font-size: .95rem; font-weight: 500; color: var(--slate-2); white-space: nowrap; background: none; border: 0; cursor: pointer; }
.mainnav a:hover, .mainnav-all:hover { color: var(--slate); background: var(--stone); }
.mainnav-all { color: var(--slate); }
.mainnav .nav-sale { color: var(--brass); }
.hdr-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu-btn { display: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brass); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }

.searchbar { border-top: 1px solid var(--line); background: var(--white); }
.searchbar-row { display: flex; align-items: center; gap: 12px; height: 68px; }
.searchbar input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: none; font-size: 1.15rem; }
.searchbar .ic { color: var(--muted); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(30, 42, 47, .3); max-height: calc(100vh - 110px); overflow: auto; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 32px; padding-top: 32px; padding-bottom: 36px; }
.mega-col { display: flex; flex-direction: column; gap: 6px; }
.mega-col a { color: var(--slate-2); font-size: .93rem; display: flex; align-items: center; gap: 10px; }
.mega-col a:hover { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.mega-root { font-weight: 600; color: var(--slate) !important; margin-bottom: 4px; display: flex; gap: 8px; align-items: baseline; }
.mega-root small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.mega-brands { margin-top: 14px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: .84rem; color: var(--muted); }
.crumbs a:hover { color: var(--slate); }
.crumbs .sep { opacity: .5; }

/* ---------- Металеві зразки (головний акцент) ---------- */
.disc, .sw { display: inline-block; border-radius: 50%; flex: none; box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 -2px 5px rgba(0,0,0,.18), 0 0 0 1px rgba(30,42,47,.08); }
.sw { width: 18px; height: 18px; }
.disc { width: 88px; height: 88px; box-shadow: inset 0 2px 3px rgba(255,255,255,.75), inset 0 -6px 14px rgba(0,0,0,.18), 0 14px 26px -14px rgba(30,42,47,.45), 0 0 0 1px rgba(30,42,47,.06); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.sw-chrome { background: linear-gradient(140deg, #fefefe 0%, #c4cbcf 22%, #f8fafb 41%, #8a949a 63%, #e7ebed 81%, #aeb7bc 100%); }
.sw-black { background: radial-gradient(circle at 32% 26%, #575b5f 0%, #26292b 46%, #141516 100%); }
.sw-gold { background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px), linear-gradient(140deg, #f4e2ad 0%, #c79f55 34%, #f0d796 55%, #a7823c 80%, #d7b670 100%); }
.sw-bronze { background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), linear-gradient(140deg, #dcb88e 0%, #8b5f36 40%, #c69a6a 60%, #6a4628 100%); }
.sw-nickel { background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px), linear-gradient(140deg, #f0eee8 0%, #b2aea5 35%, #e4e1da 55%, #8c887f 80%, #cdc9c0 100%); }
.sw-white { background: radial-gradient(circle at 32% 26%, #ffffff 0%, #f1f3f3 55%, #d6dada 100%); }
.sw-graphite { background: linear-gradient(140deg, #8d9399 0%, #3b4045 40%, #6a7076 60%, #2a2e32 100%); }
.sw-none { background: var(--stone-2); }

/* ---------- Головна ---------- */
.hero { padding: 56px 0 8px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; max-width: 16ch; }
.hero-lead { margin: 26px 0 32px; font-size: 1.15rem; color: var(--slate-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stage { position: relative; display: block; justify-self: end; width: min(100%, 470px); }
.arch { display: block; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); background: radial-gradient(120% 70% at 50% 0%, #f9faf9 0%, var(--stone) 55%, var(--stone-2) 100%); overflow: hidden; padding: 16% 12% 8%; display: grid; place-items: center; }
.arch img { mix-blend-mode: multiply; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.hero-stage:hover .arch img { transform: scale(1.03); }
.hero-tag { position: absolute; left: -28px; bottom: 34px; background: var(--white); border-radius: var(--r); padding: 12px 16px; box-shadow: 0 18px 40px -22px rgba(30,42,47,.45); display: flex; flex-direction: column; font-size: .9rem; }
.hero-tag b { font-weight: 600; }

.finishes { padding-top: 64px; padding-bottom: 24px; }
.finishes-title { font-size: 1.05rem; font-weight: 500; color: var(--slate-2); margin-bottom: 26px; }
.finish-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.finish-row a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 6px; border-radius: var(--r-lg); }
.finish-row a:hover .disc { transform: translateY(-6px) rotate(-8deg); box-shadow: inset 0 2px 3px rgba(255,255,255,.75), inset 0 -6px 14px rgba(0,0,0,.18), 0 22px 30px -14px rgba(30,42,47,.5), 0 0 0 1px rgba(30,42,47,.06); }
.fin-name { margin-top: 10px; font-weight: 500; }
.fin-n { font-size: .82rem; color: var(--muted); }

.block { padding: 44px 0 8px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.block-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -.025em; }
.more { font-weight: 500; color: var(--slate-2); border-bottom: 1px solid var(--line); padding-bottom: 2px; white-space: nowrap; }
.more:hover { color: var(--slate); border-color: var(--slate); }

.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--stone); overflow: hidden; transition: background .25s; }
.cat:hover { background: var(--stone-2); }
.cat-lg { grid-column: span 2; flex-direction: row; align-items: center; }
.cat-img { display: block; aspect-ratio: 4 / 3; padding: 9% 14%; }
.cat-lg .cat-img { width: 52%; flex: none; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.04); }
.cat-text { display: flex; flex-direction: column; padding: 0 20px 20px; }
.cat-lg .cat-text { padding: 24px; }
.cat-name { font-size: 1.12rem; font-weight: 500; }
.cat-lg .cat-name { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 300; letter-spacing: -.02em; }
.cat-cnt { font-size: .86rem; color: var(--muted); }

.brand-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 30px; }
.brand-cloud a { font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 300; letter-spacing: -.02em; color: var(--slate-2); transition: color .2s; }
.brand-cloud a:hover { color: var(--slate); }
.brand-cloud sup { font-size: .8rem; color: var(--muted); margin-left: 3px; font-weight: 400; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; counter-reset: s; }
.how h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 300; margin-bottom: 26px; }
.steps li { counter-increment: s; border-top: 1px solid var(--slate); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font-size: 2.4rem; font-weight: 200; line-height: 1; color: var(--brass); margin-bottom: 10px; }
.steps b { font-weight: 500; font-size: 1.08rem; }
.steps span { color: var(--slate-2); }
.steps-v { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }

/* ---------- Гід і FAQ ---------- */
.guide { padding-top: 64px; padding-bottom: 40px; }
.guide-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; border-top: 1px solid var(--line); padding-top: 40px; }
.guide h2 { font-size: 1.5rem; font-weight: 300; margin-bottom: 18px; }
.guide-how { color: var(--slate-2); max-width: 62ch; }
.guide-how ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.guide-how b { color: var(--slate); font-weight: 500; }
.guide-faq details { border-bottom: 1px solid var(--line); }
.guide-faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 500; position: relative; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--slate-2); border-bottom: 1.5px solid var(--slate-2); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.guide-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.guide-faq p { color: var(--slate-2); padding-bottom: 6px; max-width: 64ch; }

.linkcloud { padding-top: 8px; padding-bottom: 8px; }
.linkcloud h2 { font-size: 1rem; font-weight: 500; margin-bottom: 12px; }
.linkcloud div { display: flex; flex-wrap: wrap; gap: 8px; }
.linkcloud a, .hubs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--slate-2); background: var(--white); }
.linkcloud a:hover, .hubs a:hover { border-color: var(--slate); color: var(--slate); }

/* ---------- Списки товарів ---------- */
.seg-head { padding-top: 18px; padding-bottom: 8px; }
.seg-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: -.03em; }
.seg-intro { margin: 14px 0 0; color: var(--slate-2); max-width: 70ch; }
.subnav { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 6px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .92rem; }
.subnav a:hover { border-color: var(--slate); }
.subnav a[aria-current] { background: var(--slate); border-color: var(--slate); color: var(--white); }
.subnav small { color: var(--muted); font-size: .78rem; }
.subnav a[aria-current] small { color: #b8c3c7; }

.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 22px; }
.side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; padding-right: 4px; }
.filters-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--slate); }
.filters-head h2 { flex: 1; font-size: 1.05rem; font-weight: 500; }
.reset { font-size: .86rem; color: var(--brass); font-weight: 500; }
.filters-close { display: none; }
.fset { border: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fset legend, .fset summary { font-weight: 500; font-size: .95rem; padding: 0; cursor: pointer; }
.fset legend { margin-bottom: 12px; }
.fset summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fset summary::-webkit-details-marker { display: none; }
.fset summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.fset[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.opts { display: flex; flex-direction: column; margin-top: 10px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: .93rem; color: var(--slate-2); }
.opt:hover { color: var(--slate); }
.opt input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid #a7b1b5; border-radius: 4px; display: grid; place-items: center; flex: none; cursor: pointer; background: var(--white); }
.opt input:checked { background: var(--slate); border-color: var(--slate); }
.opt input:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.opt span { flex: 1; min-width: 0; }
.opt small { color: var(--muted); font-size: .8rem; }
.opt.more { display: none; }
.opts.all .opt.more { display: flex; }
.more-btn { align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--slate); font-weight: 500; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.range { display: flex; align-items: center; gap: 8px; }
.range input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.filters-apply { padding-top: 16px; }
.js .filters-apply { display: none; }

.toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.found { margin: 0; flex: 1; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.sort select { height: 42px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231e2a2f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 13px center / 11px; appearance: none; color: var(--slate); font-weight: 500; cursor: pointer; }
.filters-open { display: none; min-height: 42px; padding: 0 16px; }
.filters-open .ic { width: 18px; height: 18px; }
.filters-open .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border-radius: 999px; background: var(--slate); color: var(--white); font-size: .86rem; }
.chip .ic { width: 15px; height: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 32px 20px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--stone); overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 11%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.card-img .alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-img img { transform: scale(1.035); }
  .card:hover .has-alt img:first-child { opacity: 0; }
  .card:hover .has-alt .alt { opacity: 1; }
}
.flag { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 999px; background: var(--brass); color: #fff; font-size: .78rem; font-weight: 600; }
.noimg { position: absolute; inset: 0; background: var(--stone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 3c4.5 5.6 7.5 9.7 7.5 13.6A7.5 7.5 0 0 1 6.5 16.6C6.5 12.7 9.5 8.6 14 3z' fill='none' stroke='%23c3cbc8' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / 22%; }
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.card-brand { font-size: .84rem; color: var(--muted); font-weight: 500; }
.card-title { font-size: .98rem; font-weight: 400; line-height: 1.4; margin: 3px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.add { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--slate); border-radius: var(--r); background: transparent; font-weight: 500; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s; }
.add .ic { width: 20px; height: 20px; }
.add span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.add:hover { background: var(--slate); color: var(--white); }
.add.done { background: var(--ok); border-color: var(--ok); color: #fff; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.price-now { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.price-now.sale { color: var(--brass); }
.price s { color: var(--muted); font-size: .88rem; }
.price-ask { font-size: .9rem; color: var(--slate-2); font-weight: 500; }
.price-big .price-now { font-size: 2.1rem; font-weight: 500; }
.price-big s { font-size: 1.05rem; }
.badge-sale { width: 100%; font-size: .86rem; color: var(--brass); font-weight: 500; }

.rail { margin-right: -24px; }
.grid-rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 24px; padding-bottom: 8px; scrollbar-width: thin; }
.grid-rail .card { scroll-snap-align: start; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 44px 0 0; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--r); }
.pager a { border: 1px solid var(--line); background: var(--white); }
.pager a:hover { border-color: var(--slate); }
.pager .cur { background: var(--slate); color: var(--white); }
.pager .gap { color: var(--muted); }
.empty { padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); text-align: center; background: var(--white); }

.brand-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; padding: 24px 0 60px; }
.brand-index a { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.35rem; font-weight: 300; }
.brand-index a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.brand-index small { font-size: .85rem; color: var(--muted); }

/* ---------- Товар ---------- */
.pgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; padding-top: 22px; align-items: start; }
.gallery { position: sticky; top: 92px; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--stone); overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8%; object-fit: contain; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 78px; height: 78px; padding: 6px; border: 1px solid transparent; border-radius: var(--r); background: var(--stone); cursor: pointer; }
.thumbs button.on { border-color: var(--slate); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pbrand { display: inline-block; font-weight: 500; color: var(--slate-2); margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.pbrand:hover { border-color: var(--slate); }
.pinfo h1 { font-size: clamp(1.6rem, 2.7vw, 2.35rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.15; }
.pcodes { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.pcodes b { color: var(--slate); font-weight: 500; }
.pfinish { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.pfinish .disc { width: 36px; height: 36px; }
.pfinish:hover { border-color: var(--slate); }
.buy { margin-top: 26px; padding: 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.avail { margin: 0; font-size: .9rem; color: var(--slate-2); }
.buy-row { display: flex; gap: 10px; }
.btn-buy { flex: 1; }
.qty { display: flex; align-items: center; height: 54px; border: 1px solid var(--line); border-radius: var(--r); background: var(--porcelain); }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--slate-2); }
.qty input { width: 40px; height: 100%; border: 0; background: none; text-align: center; font-weight: 500; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.assure { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: .9rem; color: var(--slate-2); }
.assure li { display: flex; align-items: center; gap: 10px; }
.assure .ic { width: 19px; height: 19px; color: var(--slate); }
.keyfacts { margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.keyfacts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.keyfacts dt { font-size: .8rem; color: var(--muted); }
.keyfacts dd { margin: 2px 0 0; font-weight: 500; }

.pmore { max-width: 980px; margin-top: 64px; border-top: 1px solid var(--slate); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h2 { font-size: 1.45rem; font-weight: 300; }
.acc summary::after { content: ""; width: 11px; height: 11px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); transform: rotate(45deg); transition: transform .25s; margin-right: 6px; }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc-body { padding-bottom: 26px; }
.pdesc { color: var(--slate-2); max-width: 70ch; line-height: 1.7; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--line-2, #e6eae8); font-size: .95rem; }
.specs th { width: 44%; color: var(--muted); font-weight: 400; padding-right: 16px; }
.hubs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.buybar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: none; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.buybar-price { flex: 1; }
.buybar .btn { min-width: 140px; }

/* ---------- Кошик ---------- */
.cart-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: -.03em; padding: 30px 0 20px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 48px; align-items: start; padding-bottom: 64px; }
.citem { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.citem:first-child { border-top: 1px solid var(--slate); }
.citem-img { position: relative; width: 104px; height: 104px; border-radius: var(--r); background: var(--stone); overflow: hidden; }
.citem-img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.citem-name { font-weight: 400; line-height: 1.4; }
.citem-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.citem-meta { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.citem-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.citem-sum { font-weight: 600; }
.citem-del { padding: 0; border: 0; background: none; color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.citem .qty, .dr-item .qty { height: 40px; }
.citem .qty button, .dr-item .qty button { width: 34px; }
.citem .qty input, .dr-item .qty input { width: 34px; }
.checkout { position: sticky; top: 92px; }
.order-form { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.order-form h2 { font-size: 1.4rem; font-weight: 300; }
.sum { padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
.sum div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--slate-2); }
.sum-total { color: var(--slate) !important; font-size: 1.3rem; }
.sum-total b { font-weight: 600; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.fld em { font-style: normal; color: var(--muted); font-weight: 400; }
.fld input, .fld textarea { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--porcelain); font-weight: 400; font-size: 1rem; }
.fld input:focus, .fld textarea:focus { outline: 0; border-color: var(--slate); background: var(--white); }
.fld input.bad { border-color: #b4472f; }
.way { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.way legend { font-size: .9rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.way label { cursor: pointer; }
.way input { position: absolute; opacity: 0; }
.way span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; }
.way input:checked + span { background: var(--slate); color: var(--white); border-color: var(--slate); }
.way input:focus-visible + span { outline: 2px solid var(--slate); outline-offset: 2px; }
.pay { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pay legend { font-size: .9rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.pay-opt { cursor: pointer; position: relative; display: block; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
.pay-opt span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--white); }
.pay-opt b { font-weight: 600; font-size: .95rem; }
.pay-opt em { font-style: normal; font-size: .82rem; color: var(--muted, #6b7378); }
.pay-opt input:checked + span { border-color: var(--slate); box-shadow: 0 0 0 1px var(--slate); }
.pay-opt input:checked + span::before { border: 5px solid var(--slate); }
.pay-opt input:focus-visible + span { outline: 2px solid var(--slate); outline-offset: 2px; }
.pay-opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.pay-result { padding: 48px 16px 72px; }
.pay-result h1 { font-size: 1.7rem; margin: 12px 0 6px; }
.hp { position: absolute !important; left: -9999px; }
.form-msg { margin: 0; color: #b4472f; font-weight: 500; }
.order-done { max-width: 540px; margin: 40px auto 80px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.order-done h2 { font-size: 2rem; font-weight: 300; margin-top: 12px; }
.done-num { font-weight: 500; }

.empty-page { padding-top: 48px; padding-bottom: 80px; }
.empty-page h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; margin-bottom: 14px; }
.search-big { display: flex; align-items: center; gap: 12px; margin: 26px 0; padding: 6px 6px 6px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.search-big input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; font-size: 1.1rem; background: none; }
.popular-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-cats a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

/* ---------- Кошик-панель ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 60; background: rgba(30, 42, 47, .35); }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--white); transform: translateX(100%); transition: transform .35s var(--ease); }
.drawer.open { transform: none; box-shadow: -30px 0 60px -30px rgba(30,42,47,.4); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.35rem; font-weight: 300; }
.drawer-body { flex: 1; overflow: auto; padding: 4px 22px; }
.dr-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dr-item .citem-img { width: 72px; height: 72px; }
.dr-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.dr-empty { padding: 48px 0; text-align: center; color: var(--slate-2); }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 4px; }
.drawer-total b { font-weight: 600; }

.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 20px; border-radius: var(--r); background: var(--slate); color: #fff; font-weight: 500; box-shadow: 0 16px 30px -12px rgba(0,0,0,.4); }

/* ---------- Підвал ---------- */
.ftr { margin-top: 72px; background: var(--slate); color: #b9c4c8; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.ftr .logo { color: #fff; }
.ftr .logo .mark { stroke: #fff; }
.ftr-brand p { margin-top: 16px; max-width: 40ch; font-size: .93rem; }
.ftr h3 { color: #fff; font-size: .98rem; font-weight: 500; margin-bottom: 14px; }
.ftr-grid a:not(.logo) { display: block; padding: 4px 0; font-size: .93rem; }
.ftr-grid a:hover { color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #8d9a9f; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .mainnav a:nth-of-type(n+4) { display: none; }
  .mainnav .nav-sale { display: inline-block; }
}
@media (max-width: 1024px) {
  .mainnav { display: none; }
  .menu-btn { display: inline-grid; }
  .hdr-row { gap: 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stage { justify-self: center; width: min(100%, 380px); }
  .hero-tag { left: 0; }
  .finish-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; padding-bottom: 8px; margin-right: -24px; padding-right: 24px; scrollbar-width: none; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 65; top: 0; left: 0; bottom: 0; width: min(380px, 92vw); max-height: none; padding: 18px 20px 100px; background: var(--white); transform: translateX(-102%); transition: transform .3s var(--ease); }
  .filters-on .side { transform: none; box-shadow: 0 0 0 100vmax rgba(30, 42, 47, .35); }
  .filters-close { display: inline-grid; }
  .filters-open { display: inline-flex; }
  .js .filters-apply { display: block; position: sticky; bottom: 0; background: var(--white); padding-bottom: 8px; }
  .pgrid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .guide-cols { grid-template-columns: 1fr; gap: 36px; }
  .cart-grid { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .page-product .buybar:not([hidden]) { display: flex; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .rail, .finish-row { margin-right: -16px; padding-right: 16px; }
  .topline-row { gap: 18px; font-size: .78rem; }
  .topline-row { justify-content: center; }
  .hero-stage { width: min(78%, 300px); }
  .finishes { padding-top: 40px; }
  .hide-s { display: none !important; }
  .hdr-row { height: 62px; }
  .logo { font-size: 1.3rem; }
  .hero { padding-top: 32px; }
  .hero-lead { font-size: 1.02rem; }
  .hero-cta .btn { flex: 1; }
  .disc { width: 68px; height: 68px; }
  .finish-row { grid-auto-columns: 92px; }
  .cats { gap: 10px; }
  .cat-lg { flex-direction: column; align-items: stretch; }
  .cat-lg .cat-img { width: 100%; }
  .cat-lg .cat-text { padding: 0 20px 20px; }
  .cat-lg .cat-name { font-size: 1.12rem; font-weight: 500; letter-spacing: 0; }
  .cat-text { padding: 0 14px 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .grid-rail { grid-template-columns: none; grid-auto-columns: 46%; }
  .card-title { font-size: .9rem; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .toolbar { flex-wrap: wrap; }
  .sort span { display: none; }
  .found { order: 3; flex-basis: 100%; }
  .keyfacts { grid-template-columns: 1fr; }
  .buy { padding: 20px; }
  .citem { grid-template-columns: 76px minmax(0, 1fr); }
  .citem-img { width: 76px; height: 76px; }
  .citem-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .order-form { padding: 20px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Телефони ---------- */
.topline .phones { gap: 10px; font-weight: 500; color: #fff; }
.topline .phones a { color: #fff; white-space: nowrap; }
.topline .phones a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ph-sep { width: 1px; height: 12px; background: rgba(255,255,255,.35); }
.ftr-phone { color: #fff; font-weight: 500; }

/* ---------- Фото на весь екран ---------- */
.gallery-main img[data-main] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--porcelain); padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; mix-blend-mode: multiply; user-select: none; }
.lb-close { position: absolute; top: 16px; right: 16px; background: var(--white); box-shadow: 0 4px 14px -6px rgba(30,42,47,.35); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 1.8rem; line-height: 1; color: var(--slate); cursor: pointer; }
.lb-nav:hover { border-color: var(--slate); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) {
  .lightbox { padding: 64px 12px 56px; }
  .lb-nav { top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .topline .phones { font-size: .85rem; }
}

.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--slate); }
.card .stock { font-size: .8rem; font-weight: 500; margin: 2px 0 8px; color: #3a6b4b; }
.card .stock.st-low { color: #8a6420; }
.card .stock.st-no { color: var(--muted); }
.avail .stock { margin-right: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f8f5a; }
.stock.st-low::before { background: #c08a2e; }
.stock.st-no::before { background: #9aa3a7; }
