/* Тема 3dmarket.by: перенесена из prototype/index.html (цвета, шрифты, сетка, карточки). */
/* Шрифты с сайта (Google Fonts, только кириллица и латиница): без блокирующего
   запроса к fonts.googleapis.com. Вес — одним вариативным файлом на семейство и набор. */
/* Golos Text 400 cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 400 latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Golos Text 500 cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 500 latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Golos Text 600 cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 600 latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono 400 cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono 400 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono 500 cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono 500 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded 500 cyrillic */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded 500 latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded 700 cyrillic */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded 700 latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{
  --bg:#f3f5f6; --surface:#ffffff; --ink:#14212b; --muted:#5b6b77; --line:#d9e0e5;
  --accent:#b8450a; --accent-hi:#e8590c; --accent-ink:#ffffff; --steel:#2f4858; --ok:#237032; --tag:#e9eef1; --plate:#e3e8eb;
  --f-display:"Unbounded","Arial Black",system-ui,sans-serif;
  --f-body:"Golos Text",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;
  --r:10px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0f161b; --surface:#172129; --ink:#e6edf1; --muted:#93a4b0; --line:#2a3842;
  --accent:#ff7a2e; --accent-ink:#1a0d04; --steel:#9fc0d4; --ok:#5fcf75; --tag:#22303a; --plate:#1d2a33; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0f161b; --surface:#172129; --ink:#e6edf1; --muted:#93a4b0; --line:#2a3842;
  --accent:#ff7a2e; --accent-ink:#1a0d04; --steel:#9fc0d4; --ok:#5fcf75; --tag:#22303a; --plate:#1d2a33; color-scheme:dark}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.5}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--surface)}
.wrap{max-width:1240px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* top bar */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--surface);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:16px;padding-block:12px;flex-wrap:wrap}
.logo{font-family:var(--f-display);font-weight:700;font-size:20px;letter-spacing:-.02em;display:flex;align-items:baseline;gap:2px;white-space:nowrap}
.logo img{width:34px;height:34px;align-self:center;margin-right:8px;flex:none}
.logo b{color:var(--accent)}
.logo small{font-family:var(--f-mono);font-size:12px;color:var(--muted);font-weight:400;margin-left:4px}
.search{flex:1 1 260px;min-width:0;position:relative}
.search input{width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg)}
.cartbtn{display:flex;align-items:center;gap:8px;padding:9px 14px;border:0;border-radius:var(--r);background:var(--ink);color:var(--bg);font-weight:600}
.cartbtn .n{font-family:var(--f-mono);background:var(--accent);color:var(--accent-ink);border-radius:20px;padding:0 7px;font-size:12px}
.contacts{font-family:var(--f-mono);font-size:12px;color:var(--muted);white-space:nowrap}

/* hero strip */
.hero{padding-block:20px 8px}
.banner{position:relative;overflow:hidden;border-radius:calc(var(--r) + 4px);background:#141f27 url("/images/3dmarket/header.jpg") 70% center/cover no-repeat;color:#fff;padding:clamp(24px,5vw,56px) clamp(18px,4vw,48px);min-height:clamp(260px,30vw,380px);display:flex;flex-direction:column;justify-content:center}
.banner::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,24,31,.92) 0%,rgba(15,24,31,.7) 45%,rgba(15,24,31,0) 75%)}
.banner>*{position:relative}
@media (max-width:700px){.banner::before{background:rgba(15,24,31,.72)}}
.hero h1{font-family:var(--f-display);font-weight:700;font-size:clamp(24px,4vw,40px);line-height:1.1;margin:0 0 10px;letter-spacing:-.02em;text-wrap:balance;max-width:20ch}
.hero h1 b{color:#ff7a2e}
.hero p{margin:0;color:#c9d5dd;max-width:52ch}
.perks{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.perks span{font-size:13px;padding:6px 10px;border:1px solid rgba(255,255,255,.22);border-radius:30px;background:rgba(255,255,255,.08);color:#fff;backdrop-filter:blur(4px)}

/* layout */
.shop{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;padding-block:20px 48px}
@media (max-width:820px){.shop{grid-template-columns:minmax(0,1fr)}}
aside{display:flex;flex-direction:column;gap:22px}
@media (max-width:820px){aside{gap:14px}}
.grp h3{font-family:var(--f-mono);font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0 0 8px;font-weight:500}
.cats{display:flex;flex-direction:column;gap:2px}
@media (max-width:820px){.cats{flex-direction:row;flex-wrap:wrap;gap:6px}}
.cat{display:flex;justify-content:space-between;gap:8px;text-align:left;border:0;background:none;padding:7px 10px;border-radius:8px}
@media (max-width:820px){.cat{border:1px solid var(--line);background:var(--surface)}}
.cat.sub{padding-left:22px;font-size:14px}
@media (max-width:820px){.cat.sub{padding-left:10px}}
.cat:hover{background:var(--tag)}
.cat[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.cat .c{font-family:var(--f-mono);font-size:12px;opacity:.85}
.brands{display:flex;flex-wrap:wrap;gap:6px}
.chip{border:1px solid var(--line);background:var(--surface);padding:5px 10px;border-radius:20px;font-size:13px}
.chip[aria-pressed="true"]{border-color:var(--accent);background:var(--accent);color:var(--accent-ink)}
.range{display:flex;gap:8px}
.range input{width:100%;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-family:var(--f-mono);font-size:13px}
label.chk{display:flex;gap:8px;align-items:center;font-size:14px}

.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.bar h2{font-family:var(--f-display);font-weight:500;font-size:20px;margin:0}
.bar .meta{color:var(--muted);font-size:13px;font-family:var(--f-mono)}
.bar select{padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);display:flex;flex-direction:column;overflow:hidden;min-width:0}
.pic{aspect-ratio:4/3;max-width:100%;background:var(--plate);display:grid;place-items:center;position:relative;cursor:pointer;border:0;padding:0;width:100%}
.pic svg{width:72%;height:auto}
.pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.badge{position:absolute;top:10px;left:10px;font-family:var(--f-mono);font-size:11px;padding:2px 7px;border-radius:5px;background:var(--accent);color:var(--accent-ink)}
.badge.alt{background:var(--steel);color:var(--bg)}
.body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
.brand{font-family:var(--f-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.name{font-weight:600;line-height:1.3;margin:0;font-size:15px;cursor:pointer}
.name:hover{color:var(--accent)}
.specs{display:flex;flex-wrap:wrap;gap:4px}
.specs span{font-family:var(--f-mono);font-size:11px;background:var(--tag);padding:2px 6px;border-radius:4px;color:var(--steel)}
.foot{margin-top:auto;display:flex;align-items:end;justify-content:space-between;gap:8px;padding-top:4px}
.price{font-family:var(--f-display);font-weight:500;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}
.price small{font-size:12px;font-family:var(--f-body);color:var(--muted);margin-left:2px}
.old{display:block;font-family:var(--f-mono);font-size:12px;color:var(--muted);text-decoration:line-through}
.stock{font-size:12px;color:var(--ok)}
.stock.no{color:var(--muted)}
.add{border:0;background:var(--accent);color:var(--accent-ink);border-radius:8px;padding:8px 12px;font-weight:600;white-space:nowrap}
.add.in{background:var(--tag);color:var(--ink)}
.empty{padding:40px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:var(--r)}

/* drawer + modal */
[hidden]{display:none!important}
.scrim{position:fixed;inset:0;background:rgb(10 16 20 / .5);z-index:20}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,100%);background:var(--surface);z-index:21;display:flex;flex-direction:column;
  padding:calc(env(safe-area-inset-top,0px) + 18px) max(18px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 18px) 18px;gap:14px;overflow:auto}
.drawer h2,.modal h2{font-family:var(--f-display);font-weight:500;font-size:20px;margin:0}
.x{border:0;background:var(--tag);border-radius:8px;width:34px;height:34px;font-size:18px;line-height:1}
.dhead{display:flex;justify-content:space-between;align-items:center}
.xs{display:flex;flex-direction:column;gap:8px}
.xs h3{font-size:14px;margin:6px 0 0;font-weight:600}
.xrow{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--bg);border-radius:10px;padding:6px 8px 6px 6px}
.xrow .ph-i{width:52px;height:52px;border-radius:8px;overflow:hidden;background:var(--surface);cursor:pointer;border:0;padding:0}
.xrow .ph-i img,.xrow .ph-i svg{width:100%;height:100%;object-fit:cover;display:block}
.xrow .n{font-size:13px;line-height:1.3;min-width:0}
.xrow .n a{color:inherit;text-decoration:none}
.xrow .n b{display:block;font-size:14px;margin-top:2px}
.xrow .add{padding:8px 10px}
.xgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.sbuy{display:none}
@media (max-width:700px){.sbuy{position:fixed;left:0;right:0;bottom:0;z-index:15;display:flex;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 20px rgb(0 0 0 / .08);transform:translateY(110%);transition:transform .2s}
 #pp:not([hidden]) ~ footer{padding-bottom:96px}
 .sbuy.on{transform:none}.sbuy .price{font-size:20px;flex:1}.sbuy .add{padding:12px 18px;font-size:15px}}
@media (prefers-reduced-motion:reduce){.sbuy{transition:none}}
.line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px 0;border-bottom:1px solid var(--line)}
.line .t{font-size:14px;font-weight:500}
.qty{display:flex;align-items:center;gap:6px;font-family:var(--f-mono)}
.qty button{width:26px;height:26px;border:1px solid var(--line);background:var(--surface);border-radius:6px}
.total{display:flex;justify-content:space-between;font-family:var(--f-display);font-size:18px}
form{display:flex;flex-direction:column;gap:8px}
form input{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.primary{border:0;background:var(--accent);color:var(--accent-ink);border-radius:var(--r);padding:12px;font-weight:600}
.note{font-size:13px;color:var(--muted)}
.ok{padding:12px;border-radius:8px;background:var(--tag);font-size:14px}
dialog.qo{border:0;border-radius:14px;padding:22px;width:min(440px,calc(100% - 32px));background:var(--surface);color:var(--ink);box-shadow:0 20px 50px rgb(0 0 0 / .3)}
dialog.qo::backdrop{background:rgb(10 16 20 / .5)}
dialog.qo h2{font-family:var(--f-display);font-weight:500;font-size:20px;margin:0 32px 6px 0}
dialog.qo form{display:flex;flex-direction:column;gap:12px}
dialog.qo .x{position:absolute;top:12px;right:12px}
dialog.qo .qp{display:flex;gap:12px;align-items:center;font-size:14px}
dialog.qo .qp .ph-i{width:64px;height:64px;flex:none;border-radius:8px;overflow:hidden;background:var(--bg)}
dialog.qo .qp .ph-i img,dialog.qo .qp .ph-i svg{width:100%;height:100%;object-fit:cover;display:block}
dialog.qo label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
dialog.qo input[type=tel]{padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font:inherit;font-size:16px}
dialog.qo label.agree{flex-direction:row;align-items:flex-start;gap:10px;font-size:13px;color:var(--ink);line-height:1.45}
dialog.qo label.agree input{margin-top:2px;width:18px;height:18px;flex:none;accent-color:var(--accent)}
dialog.qo a{color:var(--accent)}
.oneclick{border:1px solid var(--accent);background:transparent;color:var(--accent);border-radius:var(--r);padding:11px 18px;font:inherit;font-weight:600;cursor:pointer}
.oneclick:hover{background:var(--tag)}
.modal{position:fixed;z-index:21;left:50%;top:50%;transform:translate(-50%,-50%);width:min(820px,calc(100% - 32px));max-height:calc(100% - 48px);overflow:auto;background:var(--surface);border-radius:14px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
@media (max-width:680px){.modal{grid-template-columns:minmax(0,1fr)}}

/* product page */
.crumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--muted);padding-block:18px 14px}
.crumbs a{color:inherit;text-decoration:none}.crumbs a:hover{color:var(--accent)}
.crumbs span[aria-current]{color:var(--ink)}
.pp-top{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;align-items:start}
@media (max-width:820px){.pp-top{grid-template-columns:minmax(0,1fr);gap:18px}}
.pp-top .pic{border-radius:14px;overflow:hidden;cursor:default}
.buy{display:flex;flex-direction:column;gap:12px}
.buy h1{font-family:var(--f-display);font-weight:700;font-size:clamp(22px,3vw,32px);line-height:1.15;letter-spacing:-.02em;margin:0;text-wrap:balance}
.buy .lead{margin:0;color:var(--muted)}
.buy .specs span{font-size:12px;padding:3px 8px}
.pricebox{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:10px}
.pricebox .price{font-size:28px}
.pricebox .add{padding:13px 18px;font-size:16px}
.pricebox ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.pricebox li::before{content:"✓ ";color:var(--ok)}
.pp-sec{margin-top:36px}
.pp-sec h2{font-family:var(--f-display);font-weight:500;font-size:20px;margin:0 0 12px}
.pp-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}
@media (max-width:820px){.pp-cols{grid-template-columns:minmax(0,1fr);gap:0}}
.pp-cols p{margin:0;max-width:60ch}
.pp{padding-bottom:48px}

/* nav + views */
a.logo{color:inherit;text-decoration:none}
.nav{display:flex;gap:2px}
@media (max-width:700px){.top .wrap{gap:10px}.contacts{display:none}.search{order:5;flex-basis:100%}.cartbtn{margin-left:auto}}
.nav a{padding:8px 10px;border-radius:8px;text-decoration:none;color:inherit;font-weight:500;font-size:15px}
.nav a:hover{background:var(--tag)}
.nav a[aria-current="page"]{background:var(--tag);color:var(--accent)}
.btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.btn{display:inline-block;text-decoration:none;font-weight:600;border-radius:var(--r);padding:12px 18px;background:var(--accent);color:#fff}
.btn.ghost{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3)}
.sec{margin-top:40px}
.sec-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}
.sec-h h2{font-family:var(--f-display);font-weight:500;font-size:clamp(20px,2.4vw,26px);margin:0}
.sec-h a{color:var(--accent);text-decoration:none;font-weight:500;white-space:nowrap}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media (max-width:820px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tile{position:relative;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--surface);text-decoration:none;color:inherit}
.tile img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.tile span{padding:10px 12px;font-weight:600;display:flex;justify-content:space-between;gap:8px}
.tile small{font-family:var(--f-mono);color:var(--muted);font-weight:400}
.tile:hover{border-color:var(--accent)}
.why{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media (max-width:820px){.why{grid-template-columns:minmax(0,1fr)}}
.why div{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px}
.why b{display:block;font-family:var(--f-display);font-weight:500;font-size:16px;margin-bottom:4px}
.why p{margin:0;color:var(--muted);font-size:14px}
.credit{margin-top:40px;border-radius:14px;background:var(--accent);color:#fff;padding:22px 24px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px}
.credit h2{font-family:var(--f-display);font-weight:700;font-size:clamp(18px,2.4vw,24px);margin:0 0 4px}
.credit p{margin:0;opacity:.9}
.credit .btn{background:#14212b}
.posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:820px){.posts{grid-template-columns:minmax(0,1fr)}}
.post{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--surface);text-decoration:none;color:inherit}
.post img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.post div{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px}
.post h3{margin:0;font-size:17px;line-height:1.3}
.post:hover h3{color:var(--accent)}
.post p{margin:0;color:var(--muted);font-size:14px}
.post .meta,.art .meta{font-family:var(--f-mono);font-size:12px;color:var(--muted)}
.art{margin:0 auto}
.art h1{font-family:var(--f-display);font-weight:700;font-size:clamp(24px,3.6vw,36px);line-height:1.15;letter-spacing:-.02em;margin:0 0 8px;text-wrap:balance}
.art .cover{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;margin:18px 0 8px;display:block}
.art h2{font-family:var(--f-display);font-weight:500;font-size:20px;margin:28px 0 8px}
.art p,.art li{font-size:16px;line-height:1.65}
.art ul{padding-left:20px}
.art a{color:var(--accent)}
.art a.btn{color:#fff}
.top .contacts{display:none}
.cb-i{display:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:700px){.top{position:static}.logo small{display:none}.cb-t{display:none}.cb-i{display:block}.cartbtn{padding:8px 10px}.top .nav{order:4;flex-basis:100%}.logo{font-size:17px}.logo img{width:28px;height:28px;margin-right:6px}.hbtn{width:36px;height:36px}.hacts{gap:2px}}
@media (max-width:1100px){.search{order:5;flex-basis:100%}.hacts{margin-left:auto}}
.search{flex-basis:200px}
.art table.sp{margin:14px 0}
.blogwrap h1{font-family:var(--f-display);font-weight:700;font-size:clamp(24px,3.6vw,36px);margin:0 0 18px}
.view{padding-bottom:48px}

/* quiz, faq */
.quiz{max-width:680px;margin:0 auto}
.quiz.wide{max-width:none}
.qbar{height:6px;background:var(--tag);border-radius:6px;margin:8px 0 22px;overflow:hidden}
.qbar i{display:block;height:100%;background:var(--accent);transition:width .2s}
.qopts{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.qopt{text-align:left;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);font-size:16px;font-weight:500}
.qopt:hover{border-color:var(--accent);background:var(--tag)}
.qres{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
@media (max-width:820px){.qres{grid-template-columns:minmax(0,1fr)}}
.qr{position:relative;display:flex;flex-direction:column;gap:8px}
.qr>.badge{position:static;align-self:flex-start}
.qr.best .card{border-color:var(--accent);border-width:2px}
.qr ul{margin:0;padding:0;list-style:none;font-size:14px;color:var(--muted);display:flex;flex-direction:column;gap:3px}
.qr li::before{content:"✓ ";color:var(--ok)}
.ghost-d{background:var(--tag);color:var(--ink)}
button.btn{border:0}
.quizcta{margin-top:40px;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:22px 24px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px}
.quizcta h2{font-family:var(--f-display);font-weight:700;font-size:clamp(18px,2.4vw,24px);margin:0 0 4px}
.quizcta p{margin:0;color:var(--muted)}
.faq{display:flex;flex-direction:column;gap:8px}
.faq details{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);padding:0 16px}
.faq summary{cursor:pointer;padding:14px 0;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--accent);font-size:20px;line-height:1}
.faq details[open] summary::after{content:"−"}
.faq p{margin:0 0 14px;color:var(--muted);max-width:70ch}
.faq a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.faq a:focus-visible,.faq summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px;background:var(--tag)}

/* favourites, compare, search suggestions */
.card{position:relative}
.tools{position:absolute;top:8px;right:8px;display:flex;gap:6px;z-index:1}
.ic{width:34px;height:34px;border-radius:50%;border:0;background:rgb(255 255 255 / .9);display:grid;place-items:center;padding:0;color:#14212b;box-shadow:0 1px 3px rgb(0 0 0 / .15)}
.ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ic[data-fav][aria-pressed="true"]{color:#e03131}.ic[data-fav][aria-pressed="true"] svg{fill:currentColor}
.ic[data-cmp][aria-pressed="true"]{background:var(--accent);color:#fff}
.hbtn{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r);color:var(--ink);text-decoration:none}
.hbtn:hover{background:var(--tag)}
.hbtn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hbtn .n{position:absolute;top:2px;right:0;font-family:var(--f-mono);font-size:11px;background:var(--accent);color:var(--accent-ink);border-radius:20px;padding:0 5px;line-height:16px}
.hacts{display:flex;align-items:center;gap:4px}
@media (max-width:700px){.hacts{margin-left:auto}.cartbtn{margin-left:0}}
.pp-tools{display:flex;gap:8px;flex-wrap:wrap}
.pp-tools .ic{width:auto;border-radius:8px;padding:0 12px;gap:6px;display:flex;align-items:center;background:var(--tag);color:var(--ink);box-shadow:none;font-size:14px}
.cmp-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.linkbtn{border:0;background:none;color:var(--accent);padding:0;font-weight:500}
.cmp-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
table.cmp{border-collapse:collapse;min-width:100%;font-size:14px}
.cmp th,.cmp td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;min-width:180px}
.cmp td:first-child,.cmp th:first-child{min-width:130px;color:var(--muted);position:sticky;left:0;background:var(--surface);z-index:1}
.cmp tbody td:not(:first-child){font-family:var(--f-mono);font-size:13px}
.cmp-card{width:200px;display:flex;flex-direction:column;gap:8px;position:relative;font-weight:600}
.cmp-card .pic{border-radius:8px;overflow:hidden}
.cmp-name{color:inherit;text-decoration:none;font-size:14px;line-height:1.3}
.cmp-x{position:absolute;top:6px;right:6px;z-index:1}
.search{position:relative}
.sugg{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 10px 30px rgb(0 0 0 / .15);z-index:6;overflow:hidden}
.sg{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;border:0;background:none;padding:8px 12px;text-align:left}
.sg:hover,.sg:focus-visible,.sg.on{background:var(--tag)}
a.sg,a.sg-all{display:grid;color:inherit;text-decoration:none}a.sg-all{display:block;color:var(--accent)}
.sg-pic{width:44px;height:33px;border-radius:5px;overflow:hidden;position:relative;background:var(--plate)}
.sg-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.sg-pic svg{width:100%;height:100%}
.sg-t{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-t small{display:block;color:var(--muted);font-size:12px}
.sg b{font-family:var(--f-mono);font-size:13px;white-space:nowrap}
.sg-all{width:100%;border:0;border-top:1px solid var(--line);background:none;padding:10px 12px;color:var(--accent);font-weight:600;text-align:left}
.sg-none{padding:12px;color:var(--muted);font-size:14px}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:#14212b;color:#fff;padding:10px 16px;border-radius:10px;z-index:30;font-size:14px;box-shadow:0 8px 24px rgb(0 0 0 / .25);max-width:calc(100% - 32px)}
.toast a{color:#ff9a5c;font-weight:600}

/* checkout + info pages */
.ph{font-family:var(--f-display);font-weight:700;font-size:clamp(24px,3.4vw,34px);margin:0 0 18px;letter-spacing:-.02em}
.co{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
@media (max-width:860px){.co{grid-template-columns:minmax(0,1fr)}}
.co-main{display:flex;flex-direction:column;gap:16px}
.co fieldset{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);padding:16px;margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.co legend{font-family:var(--f-display);font-weight:500;font-size:17px;padding:0 6px}
.co label,.calc label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted);min-width:0}
.co input:not([type=radio]),.co select,.co textarea,.calc input,.calc select{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font:inherit;font-size:15px;width:100%}
.f2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
@media (max-width:560px){.f2{grid-template-columns:minmax(0,1fr)}}
label.opt{flex-direction:row;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer;color:var(--ink)}
label.opt:has(input:checked){border-color:var(--accent);background:var(--tag)}
label.opt input{margin-top:4px;accent-color:var(--accent)}
label.opt span{display:flex;flex-direction:column}
label.opt small{color:var(--muted);font-size:13px}
.co-side{position:sticky;top:90px}
.co-side h2,.calc h2{font-family:var(--f-display);font-weight:500;font-size:18px;margin:0}
.row{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.row span:last-child{text-align:right}
.done{max-width:620px;padding-block:20px}
.lead{font-size:17px;color:var(--muted)}
.calc{margin:22px 0}
.steps{padding-left:22px}
.contact{margin:12px 0}
.site-foot{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:14px}
@media (max-width:900px){.site-foot{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.site-foot{grid-template-columns:minmax(0,1fr)}}
.seller{line-height:1.6}
.cookie{position:fixed;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));max-width:720px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgb(0 0 0 / .18);padding:14px 16px;z-index:25;display:flex;gap:12px 16px;align-items:center;flex-wrap:wrap;font-size:14px;line-height:1.5}
.cookie p{margin:0;flex:1 1 320px;min-width:0}
.cookie a{color:var(--accent)}
.cookie .b{display:flex;gap:8px;flex-wrap:wrap}
.cookie button{font:inherit;font-weight:600;border-radius:8px;padding:9px 14px;cursor:pointer;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.cookie button.acc{background:var(--accent);border-color:var(--accent);color:#fff}
.co label.agree{flex-direction:row;padding:4px 2px;align-items:flex-start;gap:10px;font-size:14px;color:var(--ink);line-height:1.5}
.co label.agree input{margin-top:3px;accent-color:var(--accent);flex:none;width:18px;height:18px;padding:0}
label.agree a{color:var(--accent)}
.art .ph-note{background:var(--tag);border-radius:10px;padding:10px 14px;font-size:14px}
.art ol.legal{padding-left:20px}
.site-foot b{display:block;color:var(--ink);margin-bottom:4px}
.site-foot a{display:block;color:inherit;text-decoration:none;padding:5px 0}
.site-foot a:hover{color:var(--accent)}
.mbody{padding:22px;display:flex;flex-direction:column;gap:12px;position:relative}
.mbody .x{position:absolute;top:14px;right:14px}
.mbody p{margin:0;color:var(--muted)}
table.sp{width:100%;border-collapse:collapse;font-size:14px}
table.sp th,table.sp td{padding:6px 0;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
table.sp th{color:var(--muted);width:48%;padding-right:10px;font-weight:400}
table.sp td{font-family:var(--f-mono);font-size:13px}
footer{border-top:1px solid var(--line);padding-block:22px;color:var(--muted);font-size:13px}
footer .wrap{display:flex;flex-direction:column;gap:6px}
@media (prefers-reduced-motion:no-preference){.card{transition:border-color .15s}.card:hover{border-color:var(--steel)}}

/* ---------- Дополнения для страниц PurpleCMS ---------- */
body{margin:0}
img{max-width:100%}
a{color:inherit}
.top .search{display:block}
.search input{font-size:15px}
/* Телефон с часами в шапке не помещается в 1240px: кнопки избранного, сравнения
   и корзины уходили во вторую строку. Телефон — в подвале и на /contacts/. */
.hacts{margin-left:auto}
.pic{display:block;text-decoration:none}
.name a{color:inherit;text-decoration:none}
.name a:hover{color:var(--accent)}
.add.in{background:var(--tag);color:var(--ink)}
/* хлебные крошки — список schema.org */
.crumbs ol{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.crumbs li{display:flex;gap:6px}
.crumbs li+li::before{content:"›"}
.crumbs span[aria-current]{color:var(--ink)}
/* боковое меню каталога: ссылки вместо кнопок */
a.cat{color:inherit;text-decoration:none}
a.cat[aria-current="page"]{background:var(--ink);color:var(--bg)}
.shop .bar h1{font-family:var(--f-display);font-weight:500;font-size:20px;margin:0}
.cat-text{margin-top:28px;color:var(--muted)}
.cat-text h2{font-family:var(--f-display);font-weight:500;font-size:18px;color:var(--ink)}
/* страница товара */
.pp-top .pic{position:relative;aspect-ratio:4/3}
.pp-top .pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.buy .stock{font-size:14px}
.pp-cols .txt p{margin:0 0 10px;max-width:60ch}
.reviews{display:flex;flex-direction:column;gap:10px}
.review{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.review .stars{color:var(--accent);letter-spacing:2px}
.review p{margin:6px 0 0}
.review .meta{font-family:var(--f-mono);font-size:12px;color:var(--muted)}
/* статьи и текстовые страницы */
.art table{width:100%;border-collapse:collapse;font-size:14px}
.art table td{padding:6px 0;border-bottom:1px solid var(--line);vertical-align:top}
.art img{max-width:100%;height:auto}
.art .btns a.btn{color:#fff}
.pagehead{padding-block:0 6px}
/* контакты */
.contact-request{margin-top:28px}
.contact-request form{max-width:560px;display:flex;flex-direction:column;gap:12px}
.contact-request label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.contact-request input,.contact-request textarea{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px}
.contact-request .primary{align-self:flex-start;padding:12px 22px}
.status{padding:12px 14px;border-radius:8px;font-size:14px;margin-bottom:12px}
.status.success{background:color-mix(in srgb,var(--ok) 15%,var(--surface));color:var(--ink)}
.status.error{background:color-mix(in srgb,#e03131 15%,var(--surface));color:var(--ink)}
.skip{position:absolute;left:16px;top:-48px;z-index:20;padding:10px 14px;border-radius:var(--r);background:var(--ink);color:var(--surface);font-weight:600;text-decoration:none;transition:top .15s}
.skip:focus{top:8px}
#content:focus{outline:none}
.blog-intro{max-width:none;margin:-6px 0 22px;color:var(--muted);font-size:16px;line-height:1.6}
.blog-intro a{color:var(--accent)}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* карта сайта */
.sitemap{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.sitemap h2{font-family:var(--f-display);font-weight:500;font-size:17px;margin:0 0 8px}
.sitemap ul{margin:0;padding-left:18px}
.sitemap a{color:inherit}
.sitemap a:hover{color:var(--accent)}
/* оформление заказа */
.co .err{color:#e03131}
.co textarea{resize:vertical}
.done .btns .btn{color:#fff}
.home-seen:empty{display:none}

/* ---------- Телефон: меню, каталог, кнопка чата ---------- */
.flt{display:flex;flex-direction:column;gap:22px}
.flt-btn{display:none}
@media (max-width:820px){
  .flt{gap:14px;display:none}.flt.on{display:flex}
  .flt-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:11px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);color:var(--ink);font-weight:600;font-size:15px}
  .flt-btn::after{content:"▾";color:var(--accent)}
  .flt-btn[aria-expanded="true"]::after{content:"▴"}
}
@media (max-width:700px){
  /* Пять пунктов меню в одну строку; если не влезут — прокрутка, а не обрезка. */
  .top .nav{justify-content:space-between;overflow-x:auto;scrollbar-width:none;margin-inline:-6px}
  .top .nav::-webkit-scrollbar{display:none}
  .nav a{padding:7px 6px;font-size:14px;white-space:nowrap}
  /* Кнопка чата webchatix: меньше, над системной панелью и над панелью «В корзину». */
  .rp-btn{width:52px!important;height:52px!important;right:12px!important;bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
  body:has(.sbuy.on) .rp-btn{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
  footer{padding-bottom:72px}
}
/* Кнопки баннера главной на телефоне: каталог на всю ширину, принтер и филамент — рядом. */
@media (max-width:700px){
  .hero-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hero-btns .btn{text-align:center;padding:12px 10px;font-size:15px;display:flex;align-items:center;justify-content:center}
  .hero-btns .btn:first-child{grid-column:1/-1}
}
.pp-top .sku{display:block;margin:-4px 0 10px;font-family:var(--f-mono);font-size:12px;color:var(--muted)}
