/* ДИСС — витрина. Подключается после base.css. */

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; color: var(--ink); position: relative; z-index: 0; line-height: 1; padding: 2px 4px; }
.logo-mark::before { content: ''; position: absolute; inset: 52% -5px 1px -3px; background: var(--yellow); border-radius: 3px; transform: skewX(-12deg) rotate(-1.5deg); z-index: -1; transition: inset .35s var(--ease); }
.logo:hover .logo-mark::before { inset: 8% -5px 1px -3px; }
.logo-sub { font-size: 10px; line-height: 1.2; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.logo-light .logo-mark { color: #fff; } .logo-light .logo-sub { color: rgba(255,255,255,.5); }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.78); font-size: 13px; font-weight: 600; }
.topbar-in { display: flex; align-items: center; gap: 22px; height: 38px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tb-item .i { color: var(--yellow); }
.tb-links { margin-left: auto; display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.tb-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.tb-links a:hover { color: #fff; }
.tb-phone { color: #fff; font-weight: 800; }
.topbar .muted { color: rgba(255,255,255,.45); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(251,250,247,.92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgba(20,33,61,.35); }
.header-in { display: flex; align-items: center; gap: 16px; height: 78px; }
.cat-btn { height: 50px; padding: 0 22px 0 18px; border-radius: 15px; font-size: 16px; gap: 12px; }
.burger { width: 18px; height: 14px; position: relative; display: inline-block; }
.burger i { position: absolute; left: 0; height: 2.4px; border-radius: 2px; background: currentColor; transition: .3s var(--ease); }
.burger i:nth-child(1) { top: 0; width: 18px; } .burger i:nth-child(2) { top: 6px; width: 13px; } .burger i:nth-child(3) { top: 12px; width: 18px; }
.cat-btn[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.cat-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.cat-btn[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.search { flex: 1; position: relative; display: flex; align-items: center; height: 50px; border-radius: 15px; background: #fff; border: 2px solid var(--ink); padding: 0 5px 0 16px; gap: 10px; transition: box-shadow .2s; }
.search:focus-within { box-shadow: 0 0 0 5px rgba(255,210,31,.45); }
.search > .i { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-weight: 600; font-size: 15px; height: 100%; }
.search input::placeholder { color: var(--muted-2); }
.search-go { height: 38px; border-radius: 11px; }
.suggest { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #fff; border-radius: 20px; box-shadow: var(--sh-3); border: 1px solid var(--line); overflow: hidden; z-index: 120; max-height: min(640px, calc(100vh - 140px)); overflow-y: auto; }
.sg-sec { padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.sg-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; padding: 4px 10px 6px; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.sg-item:hover, .sg-item.is-hl { background: var(--bg); }
.sg-item img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #F4F5F8; padding: 3px; flex: none; }
.sg-item .t { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-item .m { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sg-item .p { margin-left: auto; font-weight: 800; white-space: nowrap; }
.sg-item mark { background: var(--yellow-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.sg-exact { background: var(--yellow-soft); }
.sg-all { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-weight: 800; color: var(--ink); background: var(--bg-2); }
.sg-all:hover { background: var(--yellow-soft); }
.sg-empty { padding: 26px; text-align: center; color: var(--muted); font-weight: 600; }
.hactions { display: flex; align-items: center; gap: 2px; }
.hact { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 66px; padding: 6px 6px; border-radius: 12px; font-size: 12px; font-weight: 700; color: var(--ink-3); transition: background .15s, color .15s; }
.hact:hover { background: #fff; color: var(--ink); }
.hact .i { width: 22px; height: 22px; }
.hact .avatar.hav { width: 24px; height: 24px; border-radius: 8px; font-size: 10px; }
.hcount { position: absolute; top: 0; right: 10px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg-2); }
.hcount[hidden] { display: none; }
.hcount.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45); } }
.hcart { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px 0 14px; margin-left: 8px; border-radius: 15px; background: var(--ink); color: #fff; transition: transform .15s, box-shadow .2s; }
.hcart:hover { box-shadow: 0 10px 24px -10px rgba(20,33,61,.6); transform: translateY(-1px); }
.hcart .i { width: 22px; height: 22px; color: var(--yellow); }
.hcart-t { display: flex; flex-direction: column; line-height: 1.15; }
.hcart-t b { font-size: 14.5px; white-space: nowrap; } .hcart-t small { font-size: 11.5px; color: rgba(255,255,255,.6); font-weight: 600; }
.hcart .hcount { top: -6px; right: -6px; border-color: var(--bg-2); }

.catstrip { border-top: 1px solid var(--line-2); }
.catstrip-in { display: flex; align-items: center; gap: 4px; height: 46px; overflow-x: auto; scrollbar-width: none; }
.catstrip-in::-webkit-scrollbar { display: none; }
.cs { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; transition: background .15s, color .15s; }
.cs:hover { background: #fff; color: var(--ink); }
.cs-hot { color: var(--red); } .cs-hot:hover { background: var(--red-soft); color: var(--red); }
.cs-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; flex: none; }

/* ---------- Мегаменю ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(20,33,61,.45); max-height: calc(100vh - 140px); overflow: hidden; animation: megaIn .28s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } }
.mega-in { display: grid; grid-template-columns: 330px 1fr; height: min(640px, calc(100vh - 160px)); padding: 0; }
.mega-roots { border-right: 1px solid var(--line-2); overflow-y: auto; padding: 14px 10px 14px 0; }
.mega-root { display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 8px; border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--ink-3); transition: background .12s; }
.mega-root .i { opacity: 0; transition: .15s; }
.mega-root.is-active { background: var(--bg); color: var(--ink); }
.mega-root.is-active .i { opacity: .6; }
.mega-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden; }
.mega-ico img { width: 34px; height: 34px; object-fit: contain; }
.mega-n { font-size: 12px; color: var(--muted-2); font-weight: 700; }
.mega-panes { position: relative; overflow-y: auto; }
.mega-pane { display: none; padding: 22px 28px 28px; position: relative; min-height: 100%; }
.mega-pane.is-active { display: block; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.mega-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; padding-right: 220px; }
.mega-title { font-family: var(--f-display); font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.mega-title:hover { color: var(--blue); }
.mega-cols { columns: 3 220px; column-gap: 28px; padding-right: 200px; }
.mega-group { break-inside: avoid; margin-bottom: 20px; }
.mega-g { display: block; font-weight: 800; font-size: 14.5px; margin-bottom: 6px; }
.mega-g span { color: var(--muted-2); font-size: 12px; font-weight: 700; margin-left: 4px; }
.mega-g:hover, .mega-l:hover { color: var(--blue); }
.mega-l { display: block; font-size: 13.5px; color: var(--ink-3); padding: 3px 0; font-weight: 500; }
.mega-more { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 4px; }
.mega-art { position: absolute; right: 24px; top: 20px; width: 200px; height: 200px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 20px 30px rgba(20,33,61,.18)); }
.tone-cream { background: var(--cream); } .tone-sky { background: var(--sky); } .tone-mint { background: var(--mint); } .tone-lilac { background: var(--lilac); } .tone-peach { background: var(--peach); } .tone-rose { background: var(--rose); }
body.mega-open::after { content: ''; position: fixed; inset: 0; background: rgba(13,22,44,.35); z-index: 90; animation: fadeIn .2s; }

/* ---------- Общие секции ---------- */
main { min-height: 50vh; }
.sec { margin-top: 64px; }
.sec-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.sec-head h2 { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.025em; }
.sec-head p { color: var(--muted); margin-top: 8px; font-weight: 500; }
.sec-head .sec-act { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); padding: 22px 0 10px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .i { width: 14px; height: 14px; opacity: .5; }
.page-title { font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -.025em; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.page-title small { font-family: var(--f-body); font-size: 15px; color: var(--muted); font-weight: 700; letter-spacing: 0; }

/* ---------- Главный экран ---------- */
.hero { margin-top: 18px; position: relative; border-radius: 36px; background: var(--ink); color: #fff; overflow: hidden; min-height: 540px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); z-index: -1; }
.hero::after { content: ''; position: absolute; width: 620px; height: 620px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,31,.28), transparent 65%); z-index: -1; }
.hero-copy { padding: 56px 0 52px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 7px 14px 7px 8px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.85); }
.hero-kicker b { background: var(--yellow); color: var(--ink); border-radius: 99px; padding: 3px 10px; font-size: 12px; }
.hero h1 { font-family: var(--f-display); font-size: clamp(32px, 3.5vw, 54px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--ink); background: var(--yellow); padding: 0 .14em; border-radius: .12em; display: inline-block; transform: rotate(-1.5deg); box-shadow: 0 10px 30px -10px rgba(255,210,31,.6); }
.hero-lead { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.72); margin-top: 20px; max-width: 520px; font-weight: 500; }
.hero-search { margin-top: 30px; display: flex; align-items: center; gap: 8px; height: 62px; padding: 0 7px 0 20px; background: #fff; border-radius: 18px; max-width: 560px; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero-search input { flex: 1; border: 0; outline: 0; font-weight: 600; font-size: 16px; min-width: 0; background: transparent; }
.hero-search .btn { height: 48px; border-radius: 13px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.55); font-weight: 600; align-items: center; }
.hero-tags a { padding: 5px 11px; border-radius: 99px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); transition: .15s; }
.hero-tags a:hover { background: var(--yellow); color: var(--ink); }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--yellow); letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; }
.hero-art { position: relative; z-index: 1; }
.hero-art img { position: absolute; right: -40px; top: 50%; width: 118%; max-width: none; transform: translateY(-50%); filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(calc(-50% - 14px)) rotate(-.6deg); } }
.hero-badge { position: absolute; z-index: 3; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 16px; box-shadow: var(--sh-3); display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13.5px; animation: float2 6s ease-in-out infinite; }
.hero-badge .hb-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); }
.hero-badge small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.hero-badge.b1 { left: 47%; bottom: 7%; } .hero-badge.b2 { right: 6%; top: 10%; animation-delay: -3s; }
@keyframes float2 { 50% { transform: translateY(-8px); } }

/* Преимущества */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.perk { background: #fff; border-radius: 22px; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line-2); transition: transform .2s var(--ease), box-shadow .2s; }
.perk:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.perk-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.perk-ico .i { width: 22px; height: 22px; }
.perk b { display: block; font-size: 15.5px; } .perk > div span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.4; font-weight: 500; }

/* Плитки категорий (бенто) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 14px; }
.tile { position: relative; border-radius: 26px; padding: 20px 22px; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(20,33,61,.45); }
.tile h3 { font-size: 17px; font-weight: 800; line-height: 1.2; max-width: 75%; letter-spacing: -.01em; }
.tile .tile-n { font-size: 13px; font-weight: 700; color: rgba(20,33,61,.55); margin-top: 4px; }
.tile img { position: absolute; right: -6%; bottom: -10%; width: 62%; height: auto; z-index: -1; transition: transform .5s var(--ease); filter: drop-shadow(0 16px 20px rgba(20,33,61,.18)); }
.tile:hover img { transform: scale(1.08) rotate(-2deg) translateY(-4px); }
.tile .tile-subs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; max-width: 62%; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.tile:hover .tile-subs { opacity: 1; transform: none; }
.tile .tile-subs span { font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.75); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.tile .tile-go { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.7); display: grid; place-items: center; transition: .25s var(--ease); }
.tile:hover .tile-go { background: var(--ink); color: var(--yellow); }
.tile.big { grid-column: span 2; grid-row: span 2; padding: 28px; }
.tile.big h3 { font-family: var(--f-display); font-size: 26px; font-weight: 700; }
.tile.big img { width: 78%; right: -4%; bottom: -6%; }
.tile.wide { grid-column: span 2; } .tile.wide img { width: 46%; bottom: -14%; }

/* Баннеры-промо */
.promo-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.promo { position: relative; border-radius: 30px; padding: 36px 40px; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.promo h3 { font-family: var(--f-display); font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; letter-spacing: -.025em; max-width: 60%; line-height: 1.12; }
.promo p { margin-top: 12px; max-width: 52%; color: var(--ink-3); font-weight: 500; }
.promo .btn { margin-top: 22px; align-self: flex-start; }
.promo img { position: absolute; right: -2%; bottom: -8%; width: 50%; z-index: -1; transition: transform .6s var(--ease); }
.promo:hover img { transform: scale(1.04) translateY(-6px); }
.promo-dark { background: var(--ink); color: #fff; } .promo-dark p { color: rgba(255,255,255,.7); }
.promo ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; max-width: 56%; }
.promo li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; }
.promo li .i { color: var(--yellow); flex: none; }

/* Быстрый заказ — лента */
.qo-band { border-radius: 30px; background: var(--yellow); padding: 34px 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.qo-band h3 { font-family: var(--f-display); font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.qo-band p { color: var(--yellow-ink); margin-top: 10px; font-weight: 600; max-width: 440px; }
.qo-demo { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--sh-3); position: relative; z-index: 1; }
.qo-demo textarea { width: 100%; min-height: 120px; border: 0; outline: 0; resize: none; font: 600 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.qo-demo .row { margin-top: 10px; justify-content: space-between; flex-wrap: wrap; }
.qo-band img { position: absolute; left: 32%; bottom: -30px; width: 220px; opacity: .9; pointer-events: none; }

/* Бренды */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand { height: 92px; border-radius: 20px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; padding: 14px; font-weight: 800; font-size: 15px; color: var(--ink-3); transition: .2s; text-align: center; }
.brand img { max-height: 46px; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.brand:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.brand:hover img { filter: none; opacity: 1; }
.brand small { display: block; font-size: 12px; color: var(--muted-2); font-weight: 700; margin-top: 2px; }

/* FAQ / SEO */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-grid h2 { font-family: var(--f-display); font-size: 30px; letter-spacing: -.025em; }
.about-grid p { color: var(--ink-3); margin-top: 14px; line-height: 1.7; }
.faq details { background: #fff; border-radius: 18px; border: 1px solid var(--line-2); margin-bottom: 10px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sh-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; width: 30px; height: 30px; border-radius: 10px; background: var(--line-2); display: grid; place-items: center; font-size: 20px; font-weight: 600; transition: .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq details p { padding: 0 22px 20px; color: var(--ink-3); line-height: 1.65; margin: 0; }

/* ---------- Карточка товара ---------- */
.grid-p { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-p.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pc { position: relative; background: #fff; border-radius: 22px; padding: 12px 12px 14px; display: flex; flex-direction: column; border: 1px solid var(--line-2); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s; }
.pc:hover { box-shadow: 0 24px 50px -28px rgba(20,33,61,.45); border-color: var(--line); transform: translateY(-3px); z-index: 2; }
.pc-media { position: relative; aspect-ratio: 1; border-radius: 16px; background: #F5F6F9; overflow: hidden; display: block; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; transition: opacity .3s, transform .5s var(--ease); }
.pc-media img.alt { opacity: 0; }
.pc:hover .pc-media img.alt { opacity: 1; } .pc:hover .pc-media img.alt ~ img.main, .pc-media img.main:has(+ img.alt) { }
.pc:hover .pc-media.has-alt img.main { opacity: 0; }
.pc:hover .pc-media:not(.has-alt) img.main { transform: scale(1.05); }
.pc-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 4px; opacity: 0; transition: .2s; }
.pc:hover .pc-dots { opacity: 1; }
.pc-dots i { width: 16px; height: 3px; border-radius: 3px; background: rgba(20,33,61,.18); }
.pc-dots i:first-child { background: var(--ink); }
.pc-badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; }
.pc-tools { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.ptool { width: 36px; height: 36px; border-radius: 11px; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--ink-3); box-shadow: var(--sh-1); transition: .2s var(--ease); }
.ptool:hover { color: var(--ink); transform: scale(1.08); }
.ptool .i { width: 18px; height: 18px; }
.ptool.is-on { color: var(--red); } .ptool.is-on .i { fill: currentColor; }
.ptool[data-compare].is-on { color: var(--blue); } .ptool[data-compare].is-on .i { fill: none; stroke-width: 2.6; }
.pc .pc-tools .ptool:not(.is-on) { opacity: 0; transform: translateX(6px); }
.pc:hover .pc-tools .ptool { opacity: 1; transform: none; }
.pc-quick { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 10px); opacity: 0; transition: .25s var(--ease); z-index: 2; height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: rgba(20,33,61,.88); color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(6px); white-space: nowrap; }
.pc:hover .pc-quick { opacity: 1; transform: translate(-50%, 0); }
.pc-body { padding: 12px 4px 0; display: flex; flex-direction: column; flex: 1; }
.pc-brand { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pc-title { font-weight: 700; font-size: 14.5px; line-height: 1.35; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.pc-title:hover { color: var(--blue); }
.pc-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.pc-meta .copy { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }
.pc-foot { margin-top: auto; padding-top: 12px; }
.pc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-price .money { font-family: var(--f-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.pc-price .old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; font-weight: 600; }
.pc-price .per { font-size: 12px; color: var(--muted); font-weight: 600; }
.pc-price .disc { font-size: 11.5px; font-weight: 800; color: var(--green); background: var(--green-soft); padding: 2px 6px; border-radius: 6px; }
.pc-stockrow { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 10px; gap: 8px; }
.pc-pack { font-size: 12px; color: var(--muted); font-weight: 600; }
.buy { display: flex; gap: 6px; }
.buy .btn { flex: 1; height: 44px; }
.buy .qty { flex: 1; height: 44px; justify-content: space-between; background: var(--yellow); }
.buy .qty button:hover { background: rgba(255,255,255,.6); }
.buy .qty input { flex: 1; width: 40px; }
.buy-done { display: none; }
.in-cart .buy-add { display: none; } .in-cart .buy-done { display: flex; }

/* Список (B2B-вид) */
.list-p { display: flex; flex-direction: column; gap: 8px; }
.pr { display: grid; grid-template-columns: 84px minmax(0, 1fr) 150px 140px 200px; gap: 18px; align-items: center; background: #fff; border-radius: 18px; padding: 10px 16px 10px 10px; border: 1px solid var(--line-2); transition: box-shadow .2s, border-color .2s; }
.pr:hover { box-shadow: var(--sh-2); border-color: var(--line); }
.pr-img { width: 84px; height: 84px; border-radius: 14px; background: #F5F6F9; display: grid; place-items: center; }
.pr-img img { width: 76px; height: 76px; object-fit: contain; mix-blend-mode: multiply; }
.pr-title { font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-title:hover { color: var(--blue); }
.pr .pc-meta { margin-top: 6px; }
.pr-price .money { font-family: var(--f-display); font-size: 19px; font-weight: 700; }
.pr-price small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Листинг ---------- */
.listing { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 10px; }
.subcats { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; margin-top: 14px; scrollbar-width: thin; }
.subcat { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; transition: .2s; white-space: nowrap; }
.subcat:hover { border-color: var(--ink); transform: translateY(-1px); }
.subcat img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #F5F6F9; mix-blend-mode: multiply; }
.subcat span { color: var(--muted-2); font-size: 12.5px; }
.filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; background: #fff; border-radius: 22px; border: 1px solid var(--line-2); scrollbar-width: thin; }
.f-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 2; }
.f-head b { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.f-group { border-bottom: 1px solid var(--line-2); }
.f-group:last-child { border-bottom: 0; }
.f-group > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.f-group > summary::-webkit-details-marker { display: none; }
.f-group > summary .i { width: 16px; height: 16px; transition: transform .2s; color: var(--muted); }
.f-group[open] > summary .i { transform: rotate(180deg); }
.f-group > summary .f-sel { margin-left: auto; font-size: 12px; background: var(--yellow); border-radius: 99px; padding: 1px 8px; }
.f-body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 9px; }
.f-body .check { font-size: 14px; font-weight: 600; justify-content: flex-start; }
.f-body .check .n { margin-left: auto; color: var(--muted-2); font-size: 12.5px; font-weight: 700; }
.f-body .check input { width: 18px; height: 18px; border-radius: 5px; }
.f-search { height: 36px !important; font-size: 13.5px !important; border-radius: 10px !important; }
.f-scroll { max-height: 236px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding-right: 4px; scrollbar-width: thin; }
.f-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-price .input { height: 40px; font-size: 14px; }
.range { position: relative; height: 26px; margin: 4px 6px 0; }
.range input { position: absolute; width: 100%; pointer-events: none; appearance: none; background: none; top: 8px; margin: 0; }
.range input::-webkit-slider-thumb { pointer-events: auto; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); cursor: grab; position: relative; z-index: 2; }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); cursor: grab; }
.range .track { position: absolute; left: 0; right: 0; top: 16px; height: 4px; border-radius: 4px; background: var(--line); }
.range .track i { position: absolute; top: 0; bottom: 0; background: var(--ink); border-radius: 4px; }
.f-toggles { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line-2); }
.f-toggles .switch { font-size: 14px; display: flex; }
.f-toggles .switch input { order: 3; margin-left: 10px; } .f-toggles .switch .muted { margin-left: auto; }
.f-apply { position: sticky; bottom: 0; padding: 12px 18px; background: linear-gradient(transparent, #fff 30%); display: none; }
.toolbar-s { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar-s .found { font-weight: 700; color: var(--muted); font-size: 14px; }
.toolbar-s .found b { color: var(--ink); }
.toolbar-s .sp { flex: 1; }
.viewsw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--line-2); }
.viewsw a { width: 36px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.viewsw a.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.active-f { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.active-f .chip { height: 30px; font-size: 13px; padding: 0 10px; background: var(--yellow-soft); border-color: transparent; }
.active-f .chip:hover { border-color: var(--ink); }
.results { position: relative; transition: opacity .2s; }
.results.is-loading { opacity: .45; pointer-events: none; }
.more-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }
.more-wrap .btn { min-width: 260px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pg { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #fff; border: 1.5px solid var(--line); transition: .15s; }
.pg:hover { border-color: var(--ink); } .pg.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pg-gap { color: var(--muted); }
.filter-btn { display: none; }

/* Корень каталога */
.cat-root-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cr { background: #fff; border-radius: 26px; border: 1px solid var(--line-2); padding: 22px; display: grid; grid-template-columns: 1fr 120px; gap: 6px 14px; transition: box-shadow .25s, transform .25s; }
.cr:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.cr-title { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -.015em; line-height: 1.2; }
.cr-title:hover { color: var(--blue); }
.cr-n { font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.cr-img { grid-row: span 2; width: 120px; height: 120px; border-radius: 20px; display: grid; place-items: center; }
.cr-img img { width: 104px; height: 104px; object-fit: contain; }
.cr-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cr-links a { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--bg); color: var(--ink-3); }
.cr-links a:hover { background: var(--ink); color: #fff; }

/* ---------- Страница товара ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 6px; }
.gal { position: sticky; top: 140px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.gal-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; scrollbar-width: none; }
.gal-thumbs button { width: 76px; height: 76px; border-radius: 14px; border: 2px solid transparent; background: #fff; padding: 4px; transition: .15s; }
.gal-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gal-thumbs button.is-active { border-color: var(--ink); }
.gal-main { position: relative; aspect-ratio: 1; background: #fff; border-radius: 28px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--line-2); }
.gal-main img { width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform .2s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gal-main.zoom img { transform: scale(2.1); }
.gal-main .pc-badges { left: 16px; top: 16px; }
.gal-nav { position: absolute; bottom: 14px; right: 14px; display: flex; gap: 6px; }
.gal-nav button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.9); box-shadow: var(--sh-1); display: grid; place-items: center; }
.pp-info h1 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; line-height: 1.22; letter-spacing: -.02em; }
.pp-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); margin-bottom: 10px; }
.pp-ids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pp-id { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); cursor: copy; transition: .15s; }
.pp-id b { color: var(--ink); font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
.pp-id:hover { border-color: var(--ink); }
.pp-id .i { width: 14px; height: 14px; opacity: .5; }
.pp-props { margin-top: 22px; display: grid; gap: 0; }
.pp-props div { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.pp-props dt { color: var(--muted); font-weight: 600; flex: 1; } .pp-props dd { margin: 0; font-weight: 700; text-align: right; }
.pp-props-more { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; font-weight: 800; color: var(--blue); font-size: 14px; }
.pp-series { margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: var(--lilac); display: flex; align-items: center; gap: 14px; font-weight: 600; }
.pp-series b { font-weight: 800; }
.buybox { position: sticky; top: 140px; background: #fff; border-radius: 28px; padding: 24px; border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
.buybox .bb-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buybox .bb-price .money { font-family: var(--f-display); font-size: 36px; font-weight: 700; letter-spacing: -.03em; }
.buybox .bb-price .old { font-size: 16px; color: var(--muted-2); text-decoration: line-through; font-weight: 600; }
.bb-unit { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.bb-b2b { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--green-soft); color: #0E6E48; font-size: 13.5px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.bb-b2b.ad { background: var(--sky); color: #1C3F99; }
.bb-b2b a { text-decoration: underline; text-underline-offset: 3px; }
.bb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.bb-mult { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.bb-mult b { color: var(--ink); }
.bb-buy { display: flex; gap: 8px; margin-top: 16px; }
.bb-buy .qty { background: var(--line-2); }
.bb-buy .btn { flex: 1; }
.bb-sum { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 10px; text-align: center; }
.bb-sum b { color: var(--ink); }
.bb-sec { display: flex; gap: 8px; margin-top: 10px; }
.bb-sec .btn { flex: 1; }
.bb-del { margin-top: 18px; border-top: 1px solid var(--line-2); padding-top: 16px; display: grid; gap: 12px; }
.bb-del > div { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.bb-del .i { color: var(--ink-3); margin-top: 1px; }
.bb-del b { display: block; font-size: 14px; } .bb-del span { color: var(--muted); font-weight: 500; }
.pp-tabs { margin-top: 56px; }
.pp-tabs .tabs { margin-bottom: 22px; }
.props-table { columns: 2; column-gap: 40px; background: #fff; border-radius: 24px; padding: 18px 28px; border: 1px solid var(--line-2); }
.props-table div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); break-inside: avoid; font-size: 14.5px; }
.props-table dt { color: var(--muted); font-weight: 600; flex: 1; } .props-table dd { margin: 0; font-weight: 700; text-align: right; max-width: 55%; }
.desc { background: #fff; border-radius: 24px; padding: 26px 30px; border: 1px solid var(--line-2); line-height: 1.75; font-size: 15.5px; color: var(--ink-3); max-width: 900px; }

/* Быстрый просмотр */
.qv { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px; }
.qv .gal { position: static; }
.qv-close { position: absolute; right: 16px; top: 16px; z-index: 3; }
.qv h2 { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; padding-right: 40px; }

/* ---------- Корзина ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 18px; }
.cart-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.cart-tools .sp { flex: 1; }
.ci { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 130px 40px; gap: 18px; align-items: center; background: #fff; border-radius: 22px; padding: 12px 16px 12px 12px; border: 1px solid var(--line-2); margin-bottom: 10px; transition: opacity .3s, transform .3s; }
.ci.removing { opacity: 0; transform: translateX(30px); }
.ci.na { opacity: .6; }
.ci-img { width: 96px; height: 96px; border-radius: 16px; background: #F5F6F9; display: grid; place-items: center; }
.ci-img img { width: 86px; height: 86px; object-fit: contain; mix-blend-mode: multiply; }
.ci-title { font-weight: 700; line-height: 1.35; }
.ci-title:hover { color: var(--blue); }
.ci-sub { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ci-warn { font-size: 12.5px; font-weight: 700; color: var(--amber); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.ci-total { text-align: right; }
.ci-total b { font-family: var(--f-display); font-size: 18px; font-weight: 700; display: block; }
.ci-total small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ci-del { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.ci-del:hover { background: var(--red-soft); color: var(--red); }
.summary { position: sticky; top: 140px; background: #fff; border-radius: 28px; padding: 24px; border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
.summary h3 { font-family: var(--f-display); font-size: 20px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; color: var(--ink); font-size: 16px; font-weight: 800; align-items: baseline; }
.sum-row.total .money { font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.sum-row .green { color: var(--green); font-weight: 800; }
.free-bar { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.free-bar .track { height: 8px; border-radius: 99px; background: var(--line-2); margin-top: 8px; overflow: hidden; }
.free-bar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), #FFB800); border-radius: 99px; transition: width .5s var(--ease); }
.summary .btn-block + .btn-block { margin-top: 8px; }
.summary .sum-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; font-weight: 500; }

/* ---------- Оформление ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; margin-top: 18px; }
.co-step { background: #fff; border-radius: 26px; padding: 26px 28px; border: 1px solid var(--line-2); margin-bottom: 14px; }
.co-step h2 { font-family: var(--f-display); font-size: 20px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; letter-spacing: -.015em; }
.co-step h2 .n { width: 32px; height: 32px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-size: 15px; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form2 .full { grid-column: 1 / -1; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); cursor: pointer; transition: .15s; background: #fff; }
.opt:hover { border-color: #C4CAD8; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .o-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--line-2); display: grid; place-items: center; flex: none; transition: .15s; }
.opt b { display: block; font-size: 14.5px; } .opt div span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.opt .o-price { margin-left: auto; font-weight: 800; font-size: 14px; white-space: nowrap; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,33,61,.08); background: var(--bg-2); }
.opt:has(input:checked) .o-ico { background: var(--yellow); }
.opt.is-disabled { opacity: .5; pointer-events: none; }
.co-items { max-height: 340px; overflow-y: auto; margin: 0 -6px 12px; padding: 0 6px; }
.co-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.co-item img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #F5F6F9; padding: 3px; flex: none; }
.co-item .t { flex: 1; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-item .q { color: var(--muted); font-weight: 700; white-space: nowrap; }
.co-item .s { font-weight: 800; white-space: nowrap; }
.field .err:empty { display: none; }

/* Спасибо */
.thanks { display: grid; grid-template-columns: 1fr 380px; gap: 28px; margin-top: 24px; align-items: start; }
.thanks-hero { background: var(--ink); color: #fff; border-radius: 32px; padding: 40px; position: relative; overflow: hidden; }
.thanks-hero h1 { font-family: var(--f-display); font-size: 36px; letter-spacing: -.03em; line-height: 1.1; }
.thanks-hero p { color: rgba(255,255,255,.72); margin-top: 12px; max-width: 540px; }
.thanks-hero .num { display: inline-block; margin-top: 18px; font-family: var(--f-display); font-size: 22px; background: var(--yellow); color: var(--ink); padding: 6px 14px; border-radius: 12px; }
.thanks-hero img { position: absolute; right: -20px; bottom: -30px; width: 300px; opacity: .95; }
.check-anim { width: 64px; height: 64px; border-radius: 20px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 20px; color: var(--ink); animation: pop .6s var(--ease); }
.check-anim .i { width: 34px; height: 34px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .3s forwards; }
@keyframes pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.next-steps div { background: #fff; border-radius: 20px; padding: 18px; border: 1px solid var(--line-2); }
.next-steps .n { width: 30px; height: 30px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.next-steps b { display: block; } .next-steps span:not(.n) { font-size: 13.5px; color: var(--muted); }

/* Быстрый заказ */
.qo-page { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; margin-top: 18px; align-items: start; }
.qo-input { background: #fff; border-radius: 26px; padding: 24px; border: 1px solid var(--line-2); position: sticky; top: 140px; }
.qo-input textarea { font: 600 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 260px; }
.drop { margin-top: 12px; border: 2px dashed var(--line); border-radius: 18px; padding: 18px; text-align: center; font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s; display: block; }
.drop:hover, .drop.is-over { border-color: var(--ink); background: var(--yellow-soft); color: var(--ink); }
.drop input { display: none; }
.qo-res { background: #fff; border-radius: 26px; border: 1px solid var(--line-2); overflow: hidden; }
.qo-res .table td { vertical-align: middle; }
.qo-res .thumb { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #F5F6F9; padding: 3px; }
.qo-empty { padding: 40px; display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.qo-empty ol { margin: 10px 0 0; padding-left: 20px; color: var(--ink-3); line-height: 1.9; font-weight: 600; }

/* Сравнение */
.cmp-wrap { overflow-x: auto; background: #fff; border-radius: 24px; border: 1px solid var(--line-2); margin-top: 18px; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 14px; }
.cmp th, .cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; min-width: 220px; text-align: left; }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; background: #fff; min-width: 200px; color: var(--muted); font-weight: 700; z-index: 1; }
.cmp tr.diff td { background: var(--yellow-soft); }
.cmp tr.diff td:first-child { background: #FFF9E0; }
.cmp .cmp-p img { width: 140px; height: 140px; object-fit: contain; margin-bottom: 10px; }
.cmp .cmp-p a { font-weight: 700; line-height: 1.35; display: block; }

/* Инфо-страницы */
.info { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; margin-top: 14px; align-items: start; }
.info-nav { position: sticky; top: 140px; background: #fff; border-radius: 22px; padding: 10px; border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.info-nav a { padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--ink-3); }
.info-nav a:hover { background: var(--bg); } .info-nav a.is-active { background: var(--ink); color: #fff; }
.prose { background: #fff; border-radius: 26px; padding: 36px 40px; border: 1px solid var(--line-2); line-height: 1.75; font-size: 15.5px; color: var(--ink-3); }
.prose h2 { font-family: var(--f-display); font-size: 22px; color: var(--ink); margin: 28px 0 10px; letter-spacing: -.015em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; } .prose li { margin: 6px 0; }
.prose b, .prose strong { color: var(--ink); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.info-cards div { border-radius: 18px; padding: 18px; background: var(--bg); }
.info-cards b { display: block; color: var(--ink); font-size: 15px; } .info-cards span { font-size: 13.5px; }

/* Авторизация */
.auth { padding: 30px 24px 60px; }
.auth-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border-radius: 32px; overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--line-2); max-width: 1080px; margin: 0 auto; }
.auth-narrow { grid-template-columns: 1fr; max-width: 560px; }
.auth-main { padding: 44px 48px; display: flex; flex-direction: column; gap: 18px; }
.auth-main h1 { font-size: 32px; }
.auth-side { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.auth-side-in { padding: 44px 40px; position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.auth-side h2 { font-size: 28px; line-height: 1.15; margin-top: 18px; }
.auth-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.auth-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: rgba(255,255,255,.85); }
.auth-list .i { color: var(--yellow); flex: none; }
.auth-side img { width: 78%; margin: auto -30px -40px auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.4)); }
.pw { position: relative; } .pw .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; background: transparent; border-radius: 9px; color: var(--muted); display: grid; place-items: center; }
.pw-eye:hover { background: var(--line-2); }

/* Ошибки */
.err-page { min-height: 100vh; display: grid; place-items: center; }
.err-in { display: flex; gap: 40px; align-items: center; padding: 40px 24px; }
.err-in h1 { font-size: 40px; margin: 14px 0 10px; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 90px; padding: 0 0 30px; }
.f-cta { transform: translateY(-50%); background: var(--yellow); color: var(--ink); border-radius: 30px; padding: 30px 36px; display: flex; align-items: center; gap: 30px; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 30px 60px -30px rgba(20,33,61,.5); }
.f-cta h3 { font-size: 26px; letter-spacing: -.02em; }
.f-cta p { color: var(--yellow-ink); font-weight: 600; margin-top: 6px; max-width: 560px; }
.f-cta-act { display: flex; gap: 10px; flex-wrap: wrap; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-top: -10px; }
.f-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.f-grid a { display: block; padding: 4px 0; font-size: 14px; font-weight: 500; transition: color .15s; }
.f-grid a:hover { color: var(--yellow); }
.f-brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 320px; }
.f-contacts { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.f-contacts a, .f-contacts span { display: flex; gap: 8px; align-items: center; color: #fff; }
.f-contacts .i { color: var(--yellow); }
.f-bottom { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }
.f-bottom a:hover { color: #fff; } .f-pay { margin-left: auto; }

/* Карусель */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px * 4) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 24px; margin: -4px -2px -24px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btns { display: flex; gap: 6px; }
.rail-btns button { width: 42px; height: 42px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; transition: .15s; }
.rail-btns button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Мобильная навигация */
.m-nav { display: none; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .grid-p, .grid-p.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 14px * 3) / 4); }
  .pp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pp .buybox { grid-column: 2; position: static; }
  .pp .pp-info { grid-row: span 2; } .hact span { display: none; } .hact { min-width: 44px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1080px) {
  .hide-m { display: none !important; }
  .hero { grid-template-columns: 1fr; } .hero-copy { padding: 40px 32px 10px; } .hero-art { height: 340px; } .hero-art img { width: 100%; right: 0; } .hero-badge.b2 { display: none; }
  .perks { grid-template-columns: 1fr 1fr; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); max-height: none; top: 0; border-radius: 0; z-index: 210; transform: translateX(105%); transition: transform .3s var(--ease); }
  .filters.is-open { transform: none; box-shadow: var(--sh-3); }
  .f-apply { display: block; }
  .filter-btn { display: inline-flex; }
  .cart-grid, .co-grid, .thanks, .qo-page { grid-template-columns: 1fr; }
  .summary, .qo-input { position: static; }
  .pr { grid-template-columns: 72px minmax(0, 1fr) 130px; } .pr-img { width: 72px; height: 72px; } .pr-img img { width: 64px; height: 64px; }
  .pr .stock, .pr > .pc-pack { display: none; } .pr .buy { grid-column: 2 / -1; }
  .promo-row, .about-grid, .qo-band { grid-template-columns: 1fr; } .qo-band img { display: none; }
  .cat-root-grid { grid-template-columns: 1fr 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .info { grid-template-columns: 1fr; } .info-nav { position: static; flex-direction: row; overflow-x: auto; }
  .mega-in { grid-template-columns: 260px 1fr; } .mega-cols { padding-right: 0; columns: 2 200px; } .mega-art, .mega-head { padding-right: 0; } .mega-art { display: none; }
}
@media (max-width: 760px) {
  body { padding-bottom: 66px; font-size: 14.5px; }
  .wrap { padding: 0 14px; }
  .topbar { display: none; }
  .header-in { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .header .logo-sub { display: none; }
  .cat-btn { order: 3; height: 46px; padding: 0 14px; } .cat-btn span:last-child { display: none; }
  .search { order: 4; flex: 1 1 100%; min-width: 0; height: 46px; } .header .logo { margin-left: 4px; } .search-go { display: none; }
  .hactions { margin-left: auto; } .hcart-t { display: none; } .hcart { padding: 0 12px; height: 44px; margin-left: 4px; }
  .hactions .hact:not([href="/favorites"]) { display: none; }
  .catstrip { display: none; }
  .mega { position: fixed; top: 0; bottom: 0; max-height: none; z-index: 220; }
  .mega-in { grid-template-columns: 1fr; height: 100%; } .mega-panes { display: none; } .mega.pane-open .mega-roots { display: none; } .mega.pane-open .mega-panes { display: block; }
  .hero { border-radius: 26px; min-height: 0; } .hero-copy { padding: 30px 22px 0; } .hero h1 { font-size: 32px; } .hero-lead { font-size: 15.5px; } .hero-art { height: 250px; } .hero-badge { display: none; } .hero-stats { gap: 20px; } .hero-stats b { font-size: 22px; }
  .hero-search { height: 54px; } .hero-search .btn { height: 42px; padding: 0 14px; }
  .perks { grid-template-columns: 1fr; gap: 8px; } .perk { padding: 14px 16px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; } .tile.big { grid-column: span 2; grid-row: span 1; } .tile h3 { font-size: 15px; } .tile.big h3 { font-size: 20px; } .tile.big img { width: 46%; } .tile-subs { display: none !important; }
  .sec { margin-top: 44px; } .sec-head { flex-wrap: wrap; }
  .grid-p, .grid-p.cols-5 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rail { grid-auto-columns: 46%; gap: 8px; }
  .pc { padding: 8px 8px 10px; border-radius: 18px; } .pc-title { font-size: 13.5px; } .pc-price .money { font-size: 17px; } .pc-tools .ptool { opacity: 1 !important; transform: none !important; width: 32px; height: 32px; } .pc-quick { display: none; } .pc-pack { display: none; } .buy .btn span { display: none; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .promo { padding: 26px 24px; min-height: 0; } .promo h3, .promo p, .promo ul { max-width: 100%; } .promo img { position: static; width: 70%; margin: 10px -10px -30px auto; }
  .pp { grid-template-columns: 1fr; } .pp .buybox { grid-column: auto; } .gal { position: static; grid-template-columns: 1fr; } .gal-thumbs { flex-direction: row; order: 2; overflow-x: auto; } .gal-thumbs button { width: 62px; height: 62px; flex: none; }
  .props-table { columns: 1; padding: 12px 18px; }
  .ci { grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 10px 12px; } .ci-img { width: 72px; height: 72px; } .ci-img img { width: 64px; height: 64px; } .ci .qty { grid-column: 2; } .ci-total { grid-column: 2 / -1; grid-row: 3; text-align: left; } .ci-del { grid-row: 1; grid-column: 3; }
  .opts, .form2, .next-steps, .cat-root-grid, .info-cards { grid-template-columns: 1fr; }
  .co-step { padding: 20px 18px; }
  .qv { grid-template-columns: 1fr; padding: 20px; }
  .auth-card { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 30px 22px; }
  .f-grid { grid-template-columns: 1fr; } .f-cta { transform: translateY(-30%); padding: 24px; } .f-pay { margin-left: 0; }
  .qo-empty { grid-template-columns: 1fr; } .thanks-hero img { display: none; }
  .err-in { flex-direction: column; text-align: center; }
  .m-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .m-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--ink-3); position: relative; }
  .m-nav .hcount { right: calc(50% - 22px); top: -4px; }
  .toasts { left: 12px; right: 12px; bottom: 80px; align-items: stretch; } .toast { min-width: 0; max-width: none; }
}
.g3-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g3-banners .promo h3 { max-width: 70%; }
@media (max-width: 1080px) { .g3-banners { grid-template-columns: 1fr; } }
@media print { .topbar, .header, .footer, .m-nav, .cart-tools, .summary .btn, .ci-del { display: none !important; } .cart-grid { grid-template-columns: 1fr; } }
.promo > *:not(img) { position: relative; z-index: 1; }
.promo-dark ul { max-width: 52%; } .promo-dark img { width: 44%; right: -1%; }
