/* ===== Шрифты: Geologica (текст) — файлами, без Google Fonts. Вес 400 — свой файл.
   Букву ʻ (U+02BB, узбекские oʻ и gʻ) в Geologica рисовать нечем — её берёт Onest (последний face). ===== */
@font-face{font-family:Geologica;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/geologica-cyrillic-400.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Geologica;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/geologica-latin-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+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}
@font-face{font-family:Geologica;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geologica-cyrillic-500.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Geologica;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geologica-latin-500.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+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}
@font-face{font-family:Geologica;font-style:normal;font-weight:600;font-display:swap;src:url(fonts/geologica-cyrillic-600.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Geologica;font-style:normal;font-weight:600;font-display:swap;src:url(fonts/geologica-latin-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+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}
@font-face{font-family:Geologica;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/geologica-cyrillic-700.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Geologica;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/geologica-latin-700.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+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}
@font-face{font-family:Onest;font-style:normal;font-weight:400 500;font-display:swap;src:url(fonts/onest-latin-500-normal.woff2) format('woff2');unicode-range:U+02BB}
@font-face{font-family:Onest;font-style:normal;font-weight:600;font-display:swap;src:url(fonts/onest-latin-600-normal.woff2) format('woff2');unicode-range:U+02BB}
@font-face{font-family:Onest;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/onest-latin-700-normal.woff2) format('woff2');unicode-range:U+02BB}

/* ===== Микс: настройки вида (как в телефонном макете) ===== */
:root{
  --font:Geologica,Onest,system-ui,sans-serif;
  --bg:#0b0d10; --surface:#14171c; --surface2:#1f242c; --text:#f2f4f7; --muted:#8b94a3; --line:#262b33; --line-hover:#3a4250;
  --lime:#c8f53b; --on-lime:#0b0d10; --acc:#c8f53b; --acc-bg:rgba(200,245,59,.12); --stroke-num:#6f7886; --hover-row:#171b21; --tg:#18212b; --on-tg:#8fd3ff; --tg-border:#24323f;
  --danger:#ff6b6b; --ok:#7fe0a6; --ok-bg:rgba(127,224,166,.12); --ok-strong:#2fb36b;
  --toast-bg:#f2f4f7; --toast-fg:#0b0d10;
  --tile:radial-gradient(circle at 50% 38%,#36404d 0%,#1d222a 62%,#171a20 100%);
  --r-card:18px; --r-btn:14px; --r-icon:12px; --r-chip:10px; --r-small:16px; --r-field:12px; --r-big:24px;
  --spring:cubic-bezier(.34,1.56,.64,1); --ease:cubic-bezier(.22,1,.36,1);
  --dur-press:.35s; --dur-move:.5s;
  --gut:32px; --wrap:1440px; --hdr-h:72px; --gap:16px;
  color-scheme:dark;
}

/* ===== Светлая тема Микса ===== */
:root[data-theme="light"]{
  --bg:#e3e6e0; --surface:#f6f7f3; --surface2:#e9ece5; --text:#0e1013; --muted:#566070; --line:#cfd4c8; --line-hover:#b3baab;
  --acc:#4a6400; --acc-bg:#e6f3c2; --stroke-num:#a3aa9b; --hover-row:#eef0ea;
  --tg:#e3eef8; --on-tg:#0b5fb3; --tg-border:#c9dcef;
  --danger:#c62828; --ok:#17733a; --ok-bg:#dcefe1; --ok-strong:#2fb36b;
  --toast-bg:#0e1013; --toast-fg:#f2f3ef;
  --tile:radial-gradient(circle at 50% 38%,#fbfbf8 0%,#eef0ea 60%,#e4e7df 100%);
  color-scheme:light;
}
:root[data-theme="light"] .bt.lime span.n,:root[data-theme="light"] .chip[aria-current="page"] em{color:#3f4d0c}
:root[data-theme="light"] .card,:root[data-theme="light"] .bt,:root[data-theme="light"] .top1,:root[data-theme="light"] .rows{box-shadow:0 1px 2px rgba(20,24,16,.04)}
.theme-btn i{transition:transform .5s var(--spring)}
.theme-btn:active i{transform:rotate(-30deg) scale(.9)}

@media (max-width:1023px){ :root{ --gut:24px } }
@media (max-width:859px){ :root{ --gut:16px; --hdr-h:60px; --gap:10px } }

*{box-sizing:border-box}
html{scrollbar-gutter:stable;background:var(--bg)}
html,body{margin:0}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
body{background:var(--bg);color:var(--text);font:400 15px/1.45 var(--font);-webkit-font-smoothing:antialiased;overflow-x:hidden}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}
input{font:inherit}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.wrap{width:min(var(--wrap),calc(100% - 2*var(--gut)));margin-inline:auto}
.num{font-variant-numeric:tabular-nums}
i[class*="ph-"]{line-height:1}

/* ---------- кнопки ---------- */
.btn{position:relative;overflow:hidden;height:52px;padding:0 22px;border-radius:var(--r-btn);font-weight:600;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;flex-shrink:0;transition:transform var(--dur-press) var(--spring),background-color .3s,border-color .2s}
.btn i{font-size:20px}
.btn:active{transform:scale(.96)}
.btn-buy{background:var(--lime);color:var(--on-lime)}
.btn-buy::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent);transform:skewX(-18deg);pointer-events:none}
.btn-buy.shine::after{animation:shine 1s var(--ease)}
@keyframes shine{to{left:130%}}
.btn-buy.added{background:var(--ok-strong);color:var(--on-lime)}
.btn-tg{background:var(--tg);color:var(--on-tg);border:1px solid var(--tg-border)}
.btn-tg:hover{border-color:var(--line-hover)}
.btn-sec{background:var(--surface);border:1px solid var(--line);color:var(--text)}
.btn-sec:hover{border-color:var(--line-hover)}
.btn-sec i{color:var(--acc)}
.btn-sm{height:38px;padding:0 14px;font-size:14px;border-radius:var(--r-chip)}
.btn-sm i{font-size:17px}
.icon-btn{position:relative;flex:none;width:46px;height:46px;border-radius:var(--r-icon);display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--text);font-size:22px;transition:transform var(--dur-press) var(--spring),border-color .2s}
.icon-btn:hover{border-color:var(--line-hover)}
.icon-btn:active{transform:scale(.88)}
.icon-btn[aria-pressed="true"] i{color:var(--acc)}
.badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--lime);color:var(--on-lime);font:700 11px/20px var(--font);text-align:center;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--bg)}
.badge[hidden]{display:none}

/* ---------- верхняя полоса ---------- */
.strip{border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.strip .wrap{height:44px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.strip-l{display:flex;align-items:center;gap:18px;min-width:0}
.strip-l span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.strip-l i{font-size:17px;color:var(--acc)}
.strip .btn{height:32px;padding:0 12px;font-size:13px;border-radius:9px}
.strip .btn i{font-size:16px}

/* ---------- шапка ---------- */
.top{position:sticky;top:0;z-index:30;background:var(--bg);border-bottom:1px solid var(--line)}
.hdr{position:relative;height:var(--hdr-h);display:flex;align-items:center;gap:12px}
.logo{display:flex;align-items:center;gap:10px;font-weight:600;font-size:24px;letter-spacing:-.02em;white-space:nowrap;height:46px;padding-right:12px;border-radius:var(--r-icon)}
.logo .mark{width:10px;height:10px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 4px rgba(200,245,59,.18)}
.search{flex:1;min-width:0;height:46px;border-radius:var(--r-field);background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 6px 0 14px;color:var(--muted);transition:border-color .2s}
.search:focus-within{border-color:var(--acc)}
.search i{font-size:20px}
.search input{flex:1;min-width:0;height:100%;border:0;background:none;color:var(--text);font-size:15px;outline:none}
.search input::placeholder{color:var(--muted)}
.search .clr{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:var(--muted);font-size:18px}
.search .clr:hover{background:var(--surface2);color:var(--text)}
.search .clr[hidden]{display:none}
.cart-btn{position:relative;flex:none;height:46px;padding:0 16px 0 14px;border-radius:var(--r-icon);background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px;white-space:nowrap;transition:transform var(--dur-press) var(--spring),border-color .2s}
.cart-btn:hover{border-color:var(--line-hover)}
.cart-btn:active{transform:scale(.95)}
.cart-btn .ic{position:relative;font-size:22px;display:grid}
.cart-btn .ic .badge{top:-9px;right:-10px}
.cart-btn .sum{color:var(--acc);font-variant-numeric:tabular-nums}
.cart-btn .sum[hidden]{display:none}
.only-phone{display:none!important}

/* каталог */
.cat-pop{position:absolute;z-index:5;top:calc(100% - 4px);left:0;width:min(460px,100%);padding:10px;border-radius:var(--r-small);background:var(--surface);border:1px solid var(--line);box-shadow:0 24px 50px -20px rgba(0,0,0,.7);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;visibility:hidden;transform:translateY(-10px);transition:transform .45s var(--spring),visibility 0s .45s}
.cat-pop.open{visibility:visible;transform:none;transition:transform .45s var(--spring),visibility 0s}
.cat-pop button,.cat-pop a{height:54px;border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 12px;text-align:left;font-weight:500;transition:background-color .2s}
.cat-pop button:hover,.cat-pop a:hover{background:var(--surface2)}
.cat-pop button i,.cat-pop a i{font-size:22px;color:var(--acc)}
.cat-pop button span,.cat-pop a span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cat-pop button em,.cat-pop a em{font-style:normal;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}

/* категории */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0 0 14px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;height:40px;padding:0 14px;border-radius:var(--r-chip);background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;gap:7px;font-size:14px;font-weight:500;white-space:nowrap;transition:transform .3s var(--spring),background-color .25s,color .25s,border-color .2s}
.chip:hover{border-color:var(--line-hover)}
.chip i{font-size:18px}
.chip em{font-style:normal;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.chip[aria-current="page"]{background:var(--lime);color:var(--on-lime);border-color:transparent}
.chip[aria-current="page"] em{color:#3f4d0c}
.chip:active{transform:scale(.94)}

/* ---------- общие блоки ---------- */
main{display:block;min-height:60vh;overflow-x:clip}
.sec{margin-top:64px}
.sec-h{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}
.sec-h h2{margin:0;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em}
.sec-h p{margin:6px 0 0;color:var(--muted);font-size:14px}
.sec-h .btn{flex:none}

/* спотлайт за курсором */
.spot{position:relative}
.spot::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(180px circle at var(--mx,-300px) var(--my,-300px),var(--acc-bg),transparent 70%);border-radius:inherit}

/* ---------- первый экран ---------- */
.hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:32px;align-items:stretch;margin-top:32px}
.hero-t{display:flex;flex-direction:column;justify-content:center;gap:0;padding:8px 0}
.hero-t h1{margin:0;font-size:clamp(40px,4.6vw,68px);line-height:1.02;letter-spacing:-.035em;font-weight:600}
.hero-t h1 em{font-style:normal;color:var(--acc)}
.hero-t h1 .ln{display:block}
.hero-t p{margin:18px 0 0;color:var(--muted);font-size:17px;max-width:30em}
.hero-btns{display:flex;gap:10px;margin-top:28px;flex-wrap:wrap}
.hero-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:28px}
.fact{display:flex;align-items:center;gap:8px;padding:12px;border-radius:var(--r-small);background:var(--surface);border:1px solid var(--line);font-size:13px;line-height:1.25;color:var(--muted);min-width:0}
.fact i{font-size:22px;color:var(--text);flex:none}

.bento{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(176px,1fr));gap:12px}
.bt{position:relative;border-radius:22px;background:var(--surface);border:1px solid var(--line);padding:18px;overflow:hidden;text-align:left;display:flex;flex-direction:column;justify-content:flex-start;gap:4px;color:var(--text);transition:transform .45s var(--spring),border-color .2s}
.bt:hover{border-color:var(--line-hover)}
.bt:active{transform:scale(.97)}
.bt b{font-size:18px;letter-spacing:-.01em;position:relative;z-index:1;font-weight:600;line-height:1.2;padding-right:36px}
.bt span.n{font-size:13px;color:var(--muted);position:relative;z-index:1;font-variant-numeric:tabular-nums}
.bt svg{position:absolute;right:-6px;bottom:-10px;width:118px;height:118px;transition:transform .5s var(--ease)}
.bt:hover svg{transform:scale(1.06) translateY(-3px)}
.bt .arr{position:absolute;z-index:1;top:14px;right:14px;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.07);display:grid;place-items:center;font-size:16px}
.bt.tall{grid-row:span 2}
.bt.lime{background:var(--lime);color:var(--on-lime);border-color:transparent}
.bt.lime span.n{color:#3f4d0c}
.bt.lime .arr{background:rgba(0,0,0,.1)}
.bt.lime.spot::before{background:radial-gradient(180px circle at var(--mx,-300px) var(--my,-300px),rgba(255,255,255,.28),transparent 70%)}
.bt.tall svg{width:min(250px,118%);height:auto;aspect-ratio:1;right:-18px;bottom:-8px}
.bt.wide{grid-column:span 2}
.bt.wide svg{right:16px;bottom:-14px;width:150px;height:150px}
.bt.km svg.a2{right:auto;left:-10px;bottom:-16px;width:110px;height:110px}

/* ---------- хиты: рейтинг ---------- */
.hits{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--gap);align-items:stretch}
@property --ang{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes spinb{to{--ang:360deg}}
.top1w{padding:1.5px;border-radius:var(--r-big);background:conic-gradient(from var(--ang),var(--line) 0deg,var(--line) 230deg,var(--lime) 315deg,var(--line) 360deg);animation:spinb 4.5s linear infinite;display:flex}
.top1{flex:1;position:relative;display:grid;grid-template-rows:minmax(220px,1fr) auto;gap:16px;padding:16px;border-radius:22.5px;background:var(--surface);cursor:pointer;overflow:hidden;transition:transform .4s var(--spring)}
.top1:active{transform:scale(.99)}
.t1-art{position:relative;border-radius:18px;background:var(--tile);overflow:hidden;min-height:0}
.t1-art svg{position:absolute;inset:0;margin:auto;width:auto;height:88%;max-width:88%;aspect-ratio:1;transition:transform .5s var(--ease)}
.top1:hover .t1-art svg{transform:scale(1.05) translateY(-3px)}
.t1-info{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:end}
.t1-l{display:flex;flex-direction:column;gap:6px;min-width:0}
.t1-lbl{align-self:flex-start;height:26px;padding:0 10px;border-radius:8px;background:var(--acc-bg);color:var(--acc);font-size:12px;font-weight:600;display:flex;align-items:center;gap:5px}
.t1-lbl i{font-size:15px}
.t1-l b{font-size:20px;font-weight:600;line-height:1.25;letter-spacing:-.01em}
.t1-price{color:var(--acc);font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.t1-price small,.c-price small,.r-price small{font-size:.62em;font-weight:600;margin-left:4px}
.t1-r{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.t1-rk{font:700 112px/0.78 var(--font);color:transparent;-webkit-text-stroke:2px var(--acc);letter-spacing:-.05em;user-select:none}
.ctl{width:116px;height:42px;display:flex;justify-content:flex-end;flex:none}
.plus{width:42px;height:42px;border-radius:12px;background:var(--lime);color:var(--on-lime);display:grid;place-items:center;font-size:19px;flex:none;transition:transform .3s var(--spring)}
.plus:active{transform:scale(.85)}
.plus.in{background:var(--ok-strong)}
.step{width:116px;height:42px;display:flex;align-items:center;justify-content:space-between;background:var(--surface2);border-radius:12px;padding:0 3px;flex:none}
.step button{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;font-size:16px;color:var(--acc);transition:background-color .2s,transform .3s var(--spring)}
.step button:hover{background:var(--surface2)}
.step button:active{transform:scale(.85)}
.step span{min-width:24px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums}

.list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-big);overflow:hidden}
.row{flex:1;display:flex;align-items:center;gap:16px;padding:12px 18px 12px 12px;border-bottom:1px solid var(--line);cursor:pointer;text-align:left;transition:background-color .2s;min-height:92px}
.row:hover{background:var(--hover-row)}
.row:last-child{border-bottom:0}
.rnum{width:52px;flex:none;font:700 34px/1 var(--font);color:transparent;-webkit-text-stroke:1.2px var(--stroke-num);text-align:center;letter-spacing:-.04em;user-select:none;transition:-webkit-text-stroke-color .2s}
.row:hover .rnum{-webkit-text-stroke-color:var(--acc)}
.mini{width:68px;height:68px;border-radius:14px;background:var(--tile);display:grid;place-items:center;flex:none}
.mini svg{width:86%;height:86%}
.row .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.row .t span{font-size:15px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.row .t em{font-style:normal;font-size:13px;color:var(--muted)}
.r-ph{display:none;color:var(--acc);font-weight:600;font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap}
.r-price{color:var(--acc);font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;width:150px;text-align:right;flex:none}

/* ---------- карточки ---------- */
.grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:var(--gap)}
.grid{--cols:5}
@media (max-width:1359px){ .grid{--cols:4} }
@media (max-width:1023px){ .grid{--cols:3} }
@media (max-width:859px){ .grid{--cols:2} }
.card{position:relative;display:flex;flex-direction:column;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;cursor:pointer;transition:transform .4s var(--spring),border-color .2s}
.card:hover{border-color:var(--line-hover)}
.card:active{transform:scale(.97)}
.tile{position:relative;aspect-ratio:1/1;background:var(--tile);display:grid;place-items:center;overflow:hidden}
.tile svg{width:78%;height:78%;transition:transform .5s var(--ease)}
.tile img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.tile img.ph{object-fit:contain;width:62%;height:62%}
.card:hover .tile svg,.card:hover .tile img{transform:scale(1.05) translateY(-3px)}
.quick{position:absolute;z-index:3;right:10px;bottom:10px;width:42px;height:42px;border-radius:12px;background:var(--lime);color:var(--on-lime);display:grid;place-items:center;font-size:19px;transition:transform var(--dur-press) var(--spring)}
.quick:active{transform:scale(.85)}
.quick.in{background:var(--ok-strong);color:var(--on-lime)}
.disc{position:absolute;z-index:1;top:10px;left:10px;height:24px;padding:0 8px;border-radius:7px;background:var(--acc-bg);color:var(--acc);font-size:12px;font-weight:600;display:flex;align-items:center;font-variant-numeric:tabular-nums}
.c-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.c-name{font-size:14px;line-height:1.32;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.64em}
.c-pr{display:flex;align-items:baseline;gap:8px;margin-top:auto;min-width:0}
.c-price{color:var(--acc);font-weight:600;font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
.c-old{font-size:13px;color:var(--muted);text-decoration:line-through;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.filler{grid-column:span var(--span,1);border-radius:var(--r-card);border:1px dashed var(--line-hover);background:var(--surface);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;padding:24px;min-height:200px}
.filler b{font-size:18px;font-weight:600;letter-spacing:-.01em}
.filler p{margin:0;color:var(--muted);font-size:14px;max-width:26em}
.empty{grid-column:1/-1;border-radius:var(--r-card);border:1px solid var(--line);background:var(--surface);padding:40px 24px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.empty i.big{font-size:40px;color:var(--muted)}
.empty b{font-size:18px;font-weight:600}
.empty p{margin:0;color:var(--muted)}
.more-btn{margin:var(--gap) auto 0;display:flex;width:100%;height:52px}

/* ---------- подвал ---------- */
footer{margin-top:80px;border-top:1px solid var(--line);padding:40px 0 32px}
.foot{display:grid;grid-template-columns:repeat(var(--fcols,4),minmax(0,1fr));gap:var(--gap)}
.fcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-small);padding:20px;display:flex;flex-direction:column;gap:10px;min-width:0}
.fcard h3{margin:0;font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}
.fcard h3 i{font-size:20px;color:var(--acc)}
.fcard p{margin:0;color:var(--muted);font-size:14px}
.fcard .logo{font-size:22px;height:auto}
.fbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}
.fbtns .btn{width:100%;padding:0 10px}
.btn-ig{background:var(--surface2);border:1px solid var(--line);color:var(--text)}
.btn-ig i{color:#ff8fb1}
.fnote{display:flex;justify-content:space-between;gap:16px;margin-top:24px;color:var(--muted);font-size:13px;flex-wrap:wrap}

/* ---------- страница товара ---------- */
.crumbs{display:flex;align-items:center;gap:12px;margin-top:24px;min-width:0}
.crumbs nav{display:flex;align-items:center;gap:4px;min-width:0;flex:1}
.crumbs nav button,.crumbs nav a{display:inline-flex;align-items:center;height:34px;padding:0 10px;border-radius:9px;color:var(--muted);font-size:14px;white-space:nowrap;transition:background-color .2s,color .2s}
.crumbs nav button:hover,.crumbs nav a:hover{background:var(--surface);color:var(--text)}
.crumbs nav i.sep{color:var(--muted);font-size:14px;flex:none}
.crumbs nav span{padding:0 10px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pv{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:32px;align-items:start;margin-top:20px}
.gal-main{position:relative;aspect-ratio:4/3;border-radius:var(--r-big);background:var(--tile);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden}
.gal-main .gv{width:100%;height:100%;display:grid;place-items:center}
.gal-main svg{width:auto;height:78%;aspect-ratio:1}
.gal-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.thumb{height:120px;border-radius:var(--r-small);background:var(--tile);border:1.5px solid var(--line);display:grid;place-items:center;overflow:hidden;transition:border-color .2s,transform .35s var(--spring)}
.thumb:hover{border-color:var(--line-hover)}
.thumb:active{transform:scale(.96)}
.thumb[aria-pressed="true"]{border-color:var(--acc)}
.thumb svg{height:84%;width:auto;aspect-ratio:1}
.v1 svg{transform:scale(1.55) translate(4%,6%)}
.v2 svg{transform:scaleX(-1) rotate(-8deg)}
.pinfo{position:sticky;top:calc(var(--hdr-h) + 70px);display:flex;flex-direction:column;gap:16px}
.p-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.p-cat{font-size:14px;color:var(--muted);font-weight:500;margin-bottom:6px}
.p-name{margin:0;font-size:32px;line-height:1.15;letter-spacing:-.02em;font-weight:600}
.p-price-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.p-price{font-weight:600;font-size:36px;color:var(--acc);font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap}
.p-price small{font-size:18px;font-weight:600;margin-left:5px}
.p-old{font-size:16px;color:var(--muted);text-decoration:line-through;font-variant-numeric:tabular-nums;white-space:nowrap}
.stock{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;background:var(--ok-bg);color:var(--ok);font-size:13px;font-weight:600;white-space:nowrap}
.stock i{width:7px;height:7px;border-radius:50%;background:currentColor}
.perks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.perk{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-small);padding:14px 10px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:13px;line-height:1.25;color:var(--muted)}
.perk i{font-size:24px;color:var(--text)}
.p-acts{display:flex;flex-direction:column;gap:8px}
.p-acts .btn{width:100%;height:56px}
.specs{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-small);padding:4px 18px}
.specs h3{margin:12px 0 4px;font-size:15px;font-weight:600}
.specs div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}
.specs div:last-child{border-bottom:0}
.specs span{color:var(--muted)}
.specs b{font-weight:500;text-align:right}
.sim .grid > .card:nth-child(n+6){display:none}
@media (max-width:1359px){ .sim .grid > .card:nth-child(n+5){display:none} }
@media (max-width:1023px){ .sim .grid > .card:nth-child(n+4){display:none} }

/* ---------- уведомление ---------- */
.toast{position:fixed;z-index:70;left:0;right:0;bottom:24px;width:min(460px,calc(100% - 32px));margin-inline:auto;border-radius:14px;background:var(--toast-bg);color:var(--toast-fg);padding:12px 12px 12px 14px;display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.35;box-shadow:0 16px 40px -12px rgba(0,0,0,.6);transform:translateY(calc(100% + 40px));visibility:hidden;transition:transform .5s var(--spring),visibility 0s .5s}
.toast.show{transform:none;visibility:visible;transition:transform .5s var(--spring),visibility 0s}
.toast i.lead{font-size:24px;flex:none}
.toast .t-txt{flex:1;min-width:0}
.toast .t-btn{flex:none;height:36px;padding:0 14px;border-radius:9px;background:rgba(11,13,16,.08);color:inherit;font-weight:600;font-size:14px;transition:background-color .2s}
.toast .t-btn:hover{background:rgba(11,13,16,.14)}

/* ---------- летящий товар ---------- */
.flyer{position:fixed;z-index:80;left:0;top:0;pointer-events:none;width:120px;height:120px;border-radius:24px;background:var(--tile);border:1px solid var(--line);display:grid;place-items:center;box-shadow:0 14px 34px -8px rgba(0,0,0,.6)}
.flyer svg{width:84%;height:84%}
.flyer img{width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* ---------- окно оформления ---------- */
.modal{position:fixed;z-index:60;inset:0;display:grid;place-items:center;padding:24px;visibility:hidden;transition:visibility 0s .45s}
.modal.open{visibility:visible;transition:visibility 0s}
.scrim{position:absolute;inset:0;background:rgba(0,0,0,0);transition:background-color .35s}
.modal.open .scrim{background:rgba(0,0,0,.62)}
.dialog{position:relative;width:min(540px,100%);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto;scrollbar-width:thin;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-big);padding:22px 24px 24px;transform:translateY(40px) scale(.94);transition:transform .5s var(--spring);box-shadow:0 40px 80px -30px rgba(0,0,0,.8)}
.modal.open .dialog{transform:none}
.d-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}
.d-h h3{margin:0;font-size:22px;font-weight:600;letter-spacing:-.01em}
.d-items{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.d-item{display:flex;align-items:center;gap:12px;background:var(--bg);border:1px solid var(--line);border-radius:var(--r-small);padding:8px 10px 8px 8px}
.d-item .mini{width:56px;height:56px;border-radius:11px}
.d-item .t{flex:1;min-width:0;font-size:14px;line-height:1.3}
.d-item .t span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.d-item .t b{display:block;font-weight:600;color:var(--acc);font-variant-numeric:tabular-nums;margin-top:2px}
.fld{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.fld label{font-size:13px;font-weight:600;color:var(--muted)}
.fld label b{color:var(--danger)}
.fld input{height:50px;border-radius:var(--r-field);border:1.5px solid var(--line);background:var(--bg);color:var(--text);font:500 16px var(--font);padding:0 14px;outline:none;transition:border-color .2s;font-variant-numeric:tabular-nums}
.fld input::placeholder{color:var(--muted)}
.fld input:focus{border-color:var(--acc)}
.fld.err input{border-color:var(--danger)}
.fld .msg{font-size:13px;color:var(--danger)}
.fld .msg:empty{display:none}
.fld[hidden]{display:none}
.seg{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:3px;border-radius:var(--r-field);background:var(--bg);border:1px solid var(--line);margin-bottom:14px}
.seg button{position:relative;z-index:1;height:42px;font-size:15px;font-weight:600;color:var(--muted);transition:color .25s;display:flex;align-items:center;justify-content:center;gap:7px}
.seg button i{font-size:18px}
.seg button[aria-pressed="true"]{color:var(--on-lime)}
.seg .knob{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:9px;background:var(--lime);transition:transform .45s var(--spring)}
.seg.right .knob{transform:translateX(100%)}
.total{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0 16px;font-size:15px;color:var(--muted)}
.total b{font-weight:600;font-size:24px;color:var(--text);font-variant-numeric:tabular-nums}
.pay-note{font-size:13px;color:var(--muted);text-align:center;margin-top:12px}
.done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:8px 0 0}
.done svg.ck{width:88px;height:88px}
.done svg.ck circle{fill:none;stroke:var(--ok-strong);stroke-width:5;stroke-dasharray:240;stroke-dashoffset:240;animation:draw .7s var(--ease) forwards}
.done svg.ck path{fill:none;stroke:var(--ok-strong);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:60;stroke-dashoffset:60;animation:draw .45s .5s var(--ease) forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.done h3{margin:8px 0 0;font-size:24px;font-weight:600}
.done p{margin:0;color:var(--muted)}
.botpv{width:100%;margin-top:18px;text-align:left}
.botpv .cap{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:8px;display:flex;align-items:center;gap:6px}
.bubble{background:#ffffff;color:#0f1419;border-radius:14px 14px 14px 4px;padding:10px 12px;font:13px/1.45 -apple-system,system-ui,sans-serif;border:1px solid #e3e6ea}
.bubble b{font-weight:700}
.bubble .who{color:#1f74bd;font-weight:600;font-size:12px;margin-bottom:2px}
.bkeys{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;margin-top:4px}
.bkeys span{background:#eef1f4;color:#1b67a8;border-radius:8px;height:36px;display:grid;place-items:center;font:600 12px -apple-system,system-ui,sans-serif;text-align:center;padding:0 4px}

/* нижняя кнопка корзины (телефон) */
.mainbtn{display:none}

/* ---------- ширины ---------- */
@media (max-width:1279px){
  .hero{grid-template-columns:1fr;gap:28px}
  .hero-t{padding:0}
  .hero-t p{max-width:40em}
  .bento{grid-template-rows:repeat(2,minmax(170px,1fr))}
}
@media (min-width:860px) and (max-width:1279px){
  .hero-t{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:32px;align-items:start;align-content:center}
  .hero-t h1{grid-column:1;grid-row:1 / span 3;align-self:center}
  .hero-t p,.hero-btns,.hero-facts{grid-column:2}
  .hero-t p{margin-top:0}
  .hero-btns,.hero-facts{margin-top:20px}
  .hero-btns{display:grid;grid-template-columns:1fr 1fr}
  .hero-btns .btn{min-width:0;padding:0 8px;font-size:14px;gap:5px}
}
@media (max-width:1023px){
  .hits{grid-template-columns:1fr}
  .top1{grid-template-rows:280px auto}
  .pv{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
  .p-name{font-size:26px}
  .foot{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cart-btn .lbl{display:none}
}
@media (max-width:859px){
  body{font-size:14px}
  .only-desk{display:none!important}
  .only-phone{display:grid!important}
  .strip .wrap{height:36px;justify-content:center}
  .strip-l{gap:12px;font-size:12px}
  .hdr{gap:8px}
  .logo{font-size:21px;flex:1}
  .hdr .search{display:none}
  .hdr.searching .logo{display:none}
  .hdr.searching .search{display:flex}
  .icon-btn{width:42px;height:42px;font-size:21px}
  .cart-btn{width:42px;height:42px;padding:0;justify-content:center}
  .cart-btn .sum{display:none}
  .chips{padding-bottom:12px}
  .chip{height:38px;font-size:13px}
  .chip em{display:none}
  .sec{margin-top:36px}
  .sec-h{margin-bottom:14px}
  .sec-h h2{font-size:21px}
  .sec-h p{font-size:13px}
  .hero{margin-top:18px;gap:18px}
  .hero-t h1{font-size:34px}
  .hero-t p{font-size:14px;margin-top:10px}
  .hero-btns{display:grid;grid-template-columns:1fr;margin-top:18px;gap:8px}
  .hero-btns .btn{height:48px;font-size:15px;padding:0 10px;min-width:0}
  .hero-facts{display:none}
  .bento{grid-template-columns:1fr 1fr;grid-template-rows:none;grid-auto-rows:120px;gap:10px}
  .bt{padding:14px;border-radius:20px}
  .bt b{font-size:16px}
  .bt span.n{font-size:12px}
  .bt svg{width:92px;height:92px}
  .bt.tall svg{width:150px;right:-14px}
  .bt.wide svg{width:118px;height:118px;right:10px}
  .bt.km{grid-column:span 2;grid-row:auto;order:5}
  .bt.wide{order:4}
  .bt.km svg.a1{width:140px;height:140px;right:8px;bottom:-26px}
  .bt.km svg.a2{display:none}
  .top1{grid-template-rows:200px auto;padding:12px}
  .t1-rk{font-size:64px;-webkit-text-stroke-width:1.5px}
  .t1-l b{font-size:16px}
  .t1-price{font-size:19px}
  .row{gap:10px;padding:10px 12px 10px 6px;min-height:84px;flex-wrap:nowrap}
  .rnum{width:30px;font-size:22px;-webkit-text-stroke-width:1px}
  .mini{width:60px;height:60px}
  .row .t span{font-size:14px}
  .row .t em{display:none}
  .row .r-price{display:none}
  .row .t .r-ph{display:block}
  .ctl,.step{width:100px}
  .step button{width:32px;height:32px}
  .plus,.quick{width:38px;height:38px}
  .quick{right:8px;bottom:8px}
  .c-body{padding:10px 12px 12px}
  .c-name{font-size:13px}
  .c-price{font-size:15px}
  .c-old{display:none}
  .filler{padding:16px;min-height:0}
  .filler b{font-size:15px}
  .filler p{font-size:13px}
  .filler .btn{height:42px;font-size:13px;padding:0 12px}
  footer{margin-top:48px;padding:28px 0 110px}
  .foot{grid-template-columns:1fr}
  .crumbs{margin-top:14px}
  .crumbs nav{display:none}
  .pv{grid-template-columns:1fr;gap:16px;margin-top:12px}
  .gal-main{aspect-ratio:1/1}
  .thumb{height:84px}
  .pinfo{position:static}
  .p-name{font-size:22px}
  .p-price{font-size:28px}
  .perk{font-size:11px;padding:10px 6px}
  .perk i{font-size:20px}
  .p-acts{position:sticky;bottom:0;z-index:20;margin:0 calc(-1*var(--gut));padding:12px var(--gut) calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}
  .p-acts .btn{height:52px}
  .sim .grid{display:flex;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--gut));padding:0 var(--gut) 4px;gap:10px}
  .sim .grid::-webkit-scrollbar{display:none}
  .sim .grid > .card{flex:none;width:150px;display:flex!important}
  .dialog{position:absolute;left:0;right:0;bottom:0;width:100%;max-height:90vh;max-height:90dvh;border-radius:24px 24px 0 0;padding:12px 16px calc(24px + env(safe-area-inset-bottom));transform:translateY(105%)}
  .modal{padding:0;place-items:end}
  .dialog::before{content:"";display:block;width:38px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 12px}
  .toast{bottom:16px}
  .toast.raise{bottom:92px}
  .mainbtn{display:block;position:fixed;z-index:25;left:0;right:0;bottom:0;padding:10px 16px calc(14px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);transform:translateY(110%);transition:transform .5s var(--spring)}
  .mainbtn.show{transform:none}
  .mainbtn .btn{width:100%}
}
@media (max-width:420px){
  .strip-l span.s2{display:none}
}

/* =====================================================================
   Добавлено для серверной витрины (в макете этого нет — там было на JS/SVG)
   ===================================================================== */
/* переключатель темы: оба значка в разметке, нужный показывает тема — без мигания */
.theme-btn .i-moon{display:none}
:root[data-theme="light"] .theme-btn .i-sun{display:none}
:root[data-theme="light"] .theme-btn .i-moon{display:inline}
/* язык: «UZ» / «RU» — ссылка на ту же страницу на другом языке */
.lang-btn{font:700 13px/1 var(--font);letter-spacing:.04em}
@media (max-width:859px){ .lang-btn{font-size:12px} }
/* шапка: каталог, поиск-форма, корзина-ссылка */
.btn-cat{height:46px;border-radius:var(--r-icon)}
.search input::-webkit-search-cancel-button,.search input::-webkit-search-decoration{display:none;-webkit-appearance:none}
.cart-btn .sum:empty{display:none}
/* переход — ссылкой, как кнопка */
.bt,.row,.top1{text-decoration:none}
.mini img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.mini img.ph{object-fit:contain;width:70%;height:70%}
.t1-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.t1-art img.ph{object-fit:contain;inset:0;margin:auto;width:60%;height:60%}
.top1:hover .t1-art img{transform:scale(1.05) translateY(-3px)}
.bt img{position:absolute;right:-6px;bottom:-10px;width:118px;height:118px;object-fit:contain;transition:transform .5s var(--ease)}
.bt:hover img{transform:scale(1.06) translateY(-3px)}
.gal-main img{width:100%;height:100%;object-fit:contain}
.thumb{padding:0}
.thumb img{width:100%;height:100%;object-fit:cover}
@media (max-width:859px){
  .bt img{width:92px;height:92px}
}
/* карточка товара: вся карточка — ссылка на название, «в корзину» лежит поверх */
.c-name a{color:inherit}
.c-name a::after{content:"";position:absolute;inset:0;z-index:1;border-radius:var(--r-card)}
.c-name a:focus-visible{outline:0}
.c-name a:focus-visible::after{outline:2px solid var(--acc);outline-offset:-2px}
.oos{position:absolute;z-index:1;top:10px;left:10px;height:24px;padding:0 8px;border-radius:7px;background:var(--surface2);border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:600;display:flex;align-items:center;white-space:nowrap}
/* подвал: у одной кнопки Telegram — на всю ширину */
.fbtns.one{grid-template-columns:1fr}
/* страница «Не найдено» */
.nf{margin-top:64px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:56px 24px;border-radius:var(--r-big);background:var(--surface);border:1px solid var(--line)}
.nf-code{font:700 clamp(88px,16vw,160px)/.8 var(--font);color:transparent;-webkit-text-stroke:2px var(--acc);letter-spacing:-.05em;user-select:none}
.nf h1{margin:14px 0 0;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em}
.nf p{margin:0;color:var(--muted);max-width:30em}
.nf-btns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:12px}
@media (max-width:859px){
  .nf{margin-top:24px;padding:36px 16px}
  .nf h1{font-size:22px}
  .nf-btns{width:100%;flex-direction:column}
  .nf-btns .btn{width:100%}
}

/* =====================================================================
   Страницы: главная, раздел, поиск, товар (задача 4)
   ===================================================================== */
[hidden]{display:none!important}
.sec-h h1{margin:0;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em}
.page-sec{margin-top:28px}
@media (max-width:859px){ .sec-h h1{font-size:21px} .page-sec{margin-top:18px} }

/* Фото товаров — квадрат на белом поле. В тёмной теме это не «дырка», а светлая витрина:
   подложка-градиент той же светлоты, фото смешивается с ней (multiply) и края не видны. */
:root{--tile-photo:radial-gradient(circle at 50% 38%,#ffffff 0%,#f5f6f2 62%,#e8eae4 100%)}
.tile.photo,.t1-art.photo,.mini.photo,.gal-main.photo,.thumb,.flyer:has(img){background:var(--tile-photo)}
.tile.photo,.t1-art.photo,.mini.photo,.gal-main.photo,.thumb{isolation:isolate}
.tile.photo img,.t1-art.photo img,.mini.photo img,.gal-main.photo img,.thumb img{object-fit:contain;mix-blend-mode:multiply}
:root:not([data-theme="light"]) .tile.photo .disc{background:#0b0d10;color:var(--lime)}
.tile.photo .quick{box-shadow:0 0 0 1px rgba(11,13,16,.14),0 6px 14px -6px rgba(11,13,16,.5)}
.oos-note{align-self:center;font-size:13px;font-weight:600;color:var(--muted);text-align:right;line-height:1.25}

/* плитки разделов: длинные названия — в два ряда с многоточием; фото — светлая плашка внутри плитки */
.bt b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bt.has-photo img{right:10px;bottom:10px;width:88px;height:88px;object-fit:contain;background:var(--tile-photo);border-radius:14px;mix-blend-mode:normal}
.bt:hover.has-photo img{transform:scale(1.06) translateY(-3px)}
.bt.tall.has-photo img{width:min(calc(100% - 20px),200px);height:auto;aspect-ratio:1;border-radius:16px}
.bt.wide.has-photo img{width:128px;height:128px}
.hero.no-bento{grid-template-columns:minmax(0,1fr)}
.bento.b3{grid-template-columns:repeat(3,minmax(0,1fr))}
.bento.b2{grid-template-columns:repeat(2,minmax(0,1fr))}
.bento.b1{grid-template-columns:minmax(0,1fr)}
@media (max-width:859px){
  .bento .bt{grid-column:auto;grid-row:auto}
  .bento .bt.pt{grid-row:span 2}
  .bento .bt.pw{grid-column:span 2}
  .bt b{font-size:15px}
  .bt.has-photo img{right:8px;bottom:8px;width:62px;height:62px;border-radius:11px}
  .bt.tall.has-photo img{width:min(calc(100% - 16px),150px);border-radius:14px}
  .bt.wide.has-photo img,.bt.pw.has-photo img{width:66px;height:66px}
}

/* хиты: одна строка рейтинга, ссылка растянута на всю строку, «+» лежит поверх */
.row{position:relative}
.row .t a::after,.t1-l b a::after{content:"";position:absolute;inset:0;z-index:1}
.top1{text-decoration:none}
.row a:focus-visible,.t1-l a:focus-visible{outline:0}
.row:has(a:focus-visible),.top1:has(a:focus-visible){outline:2px solid var(--acc);outline-offset:-2px}
.row .ctl,.top1 .ctl{position:relative;z-index:2}
.hits.solo{grid-template-columns:minmax(0,1fr)}
.hits.solo .top1{grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:minmax(260px,auto)}
.hits.solo .t1-info{align-self:end}
@media (max-width:1023px){ .hits.solo .top1{grid-template-columns:minmax(0,1fr);grid-template-rows:280px auto} }
@media (max-width:859px){ .hits.solo .top1{grid-template-rows:200px auto} }

/* товар: кружки цвета, «нет в наличии», описание */
.colors{display:flex;flex-direction:column;gap:10px}
.colors-l{font-size:14px;color:var(--muted)}
.colors-l b{color:var(--text);font-weight:600}
.sw-row{display:flex;gap:10px;flex-wrap:wrap}
.sw{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;transition:border-color .2s,transform .35s var(--spring)}
.sw span{width:28px;height:28px;border-radius:50%;background:var(--c,#8a8a8a);box-shadow:inset 0 0 0 1px rgba(128,128,128,.4)}
.sw:hover{border-color:var(--line-hover)}
.sw:active{transform:scale(.88)}
.sw[aria-pressed="true"]{border-color:var(--acc);border-width:2px}
.stock.off{background:var(--surface2);color:var(--muted)}
.btn:disabled{opacity:.55;cursor:default}
.specs.desc p{margin:0 0 12px;color:var(--muted);font-size:14px;white-space:pre-line}
.gal-main .gv{position:absolute;inset:0;width:auto;height:auto;display:block}
.gal-main .gv img:not(.ph){position:absolute;inset:0;width:100%;height:100%}
.gal-main .gv img.ph{position:absolute;inset:0;margin:auto}
.gal-main img.ph{width:34%;height:auto}
.gal-thumbs.many{grid-template-columns:repeat(4,minmax(0,1fr))}
.gal-thumbs.many .thumb{height:92px}
@media (max-width:859px){ .gal-thumbs.many .thumb{height:70px} .gal-thumbs.many{gap:8px} }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* ---------- корзина и оформление (задача 5) ---------- */
.hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.d-items:empty,.d-notes:empty{display:none}
.d-notes{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.d-note{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--r-small);border:1px solid var(--danger);color:var(--text);font-size:14px;line-height:1.35}
.d-note i{font-size:20px;color:var(--danger);flex:none}
.d-note span{flex:1;min-width:0}
.d-note.plain{border-color:var(--line);color:var(--muted)}
.d-item.off{opacity:.9}
.d-item.off .mini{filter:grayscale(1);opacity:.6}
.d-item .t b.why{color:var(--danger)}
.d-item .t .chg{display:block;margin-top:3px;font-style:normal;font-size:12.5px;line-height:1.3;color:var(--muted)}
.d-item .rm,.d-note .rm{flex:none;height:36px;padding:0 12px;border-radius:9px;background:var(--surface2);color:var(--text);font-weight:600;font-size:14px;transition:background-color .2s,transform .3s var(--spring)}
.d-item .rm:active,.d-note .rm:active{transform:scale(.94)}
.d-item .ctl{width:auto}
.d-item.skel .mini,.d-item.skel .t span,.d-item.skel .t b{background:var(--surface2);border-radius:8px;animation:pulse 1.1s ease-in-out infinite alternate}
.d-item.skel .t span{display:block;height:14px;width:70%}
.d-item.skel .t b{display:block;height:14px;width:35%;margin-top:8px}
@keyframes pulse{to{opacity:.45}}
.sub{display:flex;justify-content:space-between;font-size:14px;color:var(--muted);margin:4px 0 0}
.form-err{font-size:14px;color:var(--danger);margin:0 0 10px;text-align:center}
.form-err:empty{display:none}
.fld.err{animation:none}
/* страница /cart и «Заказ принят» */
.cpage{display:flex;justify-content:center;padding:32px 0 8px}
.cpanel{width:min(560px,100%);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-big);padding:24px}
.cp-h{margin:0 0 16px;font-size:24px;font-weight:600;letter-spacing:-.01em}
.cp-empty{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:24px 0 8px;color:var(--muted)}
.cp-empty>i{font-size:48px;color:var(--acc)}
.cp-empty p{margin:0}
.cpanel.done{align-items:center;padding:40px 24px 32px}
.cpanel.done h1{margin:8px 0 0;font-size:26px;font-weight:600;letter-spacing:-.01em}
.done-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px}
@media (max-width:859px){
  .cpage{padding:16px 0 0}
  .cpanel{padding:18px 16px}
  .cpanel.done{padding:32px 16px 24px}
  .done-btns{flex-direction:column;align-items:stretch;width:100%}
}
@media (max-width:859px){
  .seg button{font-size:14px;gap:5px;padding:0 4px;white-space:nowrap}
  .seg button i{font-size:17px}
}
@media (max-width:389px){
  .seg button{font-size:13px;gap:4px}
  .seg button i{font-size:16px}
}
