/* MEDJIK — тёмная тема с золотом по референсу. Manrope. */
:root {
  --bg: #08080a;
  --bg2: #111114;
  --card: #141417;
  --card2: #1b1b1f;
  --line: #2a2620;
  --line2: #3a3327;
  --gold: #e3b456;
  --gold2: #f6d488;
  --gold3: #a8782b;
  --goldg: linear-gradient(180deg, #f8dc95 0%, #e2b14f 48%, #b8862f 100%);
  --text: #f3efe6;
  --text2: #b9b2a3;
  --muted: #7c766b;
  --red: #e5544b;
  --green: #4fbf7a;
  --r: 16px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: 20px; }
.gold { background: var(--goldg); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--goldg); color: #1a1408; font-weight: 700; font-size: 15px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 24px rgba(227,180,86,.18); transition: filter .2s, transform .2s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--gold2); box-shadow: inset 0 0 0 1px var(--line2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); filter: none; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ШАПКА */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(8,8,10,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hd__top { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text2); }
.hd__top-in { display: flex; align-items: center; gap: 24px; height: 36px; }
.hd__city { display: inline-flex; align-items: center; gap: 6px; }
.hd__city svg { width: 15px; height: 15px; color: var(--gold); }
.hd__links { display: flex; gap: 22px; margin-left: auto; }
.hd__links a:hover, .hd__mail:hover { color: var(--gold2); }
.hd__main { display: flex; align-items: center; gap: 18px; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img, .logo .mark { width: 44px; height: 44px; flex: none; }
.logo b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.01em; line-height: 1; background: var(--goldg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--text2); letter-spacing: .02em; }
.hd__cat { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--goldg); color: #1a1408; font-weight: 700; }
.burger { display: grid; gap: 3px; width: 17px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.hd__cat[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hd__cat[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.hd__cat[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.search { position: relative; flex: 1; min-width: 0; }
.search input { width: 100%; height: 46px; padding: 0 52px 0 18px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); outline: none; transition: border-color .2s; }
.search input:focus { border-color: var(--gold3); }
.search input::placeholder { color: var(--muted); }
.search__go { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--gold); display: grid; place-items: center; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; overflow: hidden; border: 1px solid var(--line2); border-radius: 14px; background: var(--bg2); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.suggest a { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; }
.suggest a:hover { background: var(--card2); }
.suggest img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; }
.suggest b { color: var(--gold2); white-space: nowrap; font-size: 14px; }
.suggest p { padding: 14px; color: var(--muted); }
.hd__icons { display: flex; gap: 4px; }
.ico { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 10px; border: 0; background: none; color: var(--text2); font-size: 11.5px; transition: color .2s; }
.ico:hover { color: var(--gold2); }
.ico svg { width: 23px; height: 23px; }
.badge { position: absolute; top: 0; right: 6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--goldg); color: #1a1408; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.badge.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.35); } }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg2); border-bottom: 1px solid var(--line2); box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.mega__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-block: 22px; }
.mcat { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid transparent; }
.mcat:hover { border-color: var(--line2); background: var(--card); }
.mcat img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.mcat b { display: block; font-size: 14.5px; }
.mcat small { color: var(--muted); font-size: 12.5px; }

/* общее */
main { min-height: 60vh; }
.sec { padding: 34px 0 6px; }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold2); font-size: 14px; font-weight: 600; }
.more svg { width: 16px; height: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--gold2); }

/* HERO-слайдер */
.hero { position: relative; margin-top: 16px; border: 1px solid var(--line2); border-radius: 22px; overflow: hidden; background: #000; }
.slides { display: flex; transition: transform .7s cubic-bezier(.2,.7,.1,1); }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 2400 / 928; min-height: 380px; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.slide__copy { position: absolute; z-index: 2; left: clamp(22px, 4vw, 64px); top: 50%; transform: translateY(-50%); max-width: 46%; }
.slide__kick { display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.slide__kick svg { width: 20px; height: 20px; color: var(--text); fill: currentColor; stroke: none; }
.slide h2 { margin-top: 12px; font-size: clamp(38px, 5vw, 76px); font-weight: 800; line-height: .98; letter-spacing: -.02em; }
.slide p { margin-top: 14px; font-size: clamp(15px, 1.4vw, 20px); color: #ddd5c4; max-width: 440px; }
.slide__price { margin-top: 16px; font-size: 15px; color: var(--text2); }
.slide__price b { font-size: 24px; color: var(--gold2); margin-left: 6px; }
.slide .btn { margin-top: 22px; }
.hero__arr { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 50%; background: rgba(8,8,10,.6); color: var(--text); display: grid; place-items: center; backdrop-filter: blur(8px); }
.hero__arr:hover { border-color: var(--gold); color: var(--gold2); }
.hero__arr--l { left: 14px; } .hero__arr--r { right: 14px; }
.dots { position: absolute; z-index: 3; right: 28px; bottom: 96px; display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); transition: width .3s, background .3s; }
.dots button.is-on { width: 26px; background: var(--gold); }
.perks { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line2); background: rgba(8,8,10,.85); }
.perk { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk i { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 1px solid var(--gold3); border-radius: 50%; color: var(--gold); font-style: normal; }
.perk b { display: block; font-size: 14.5px; }
.perk span { font-size: 12.5px; color: var(--text2); }

/* разделы */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cat { position: relative; display: block; overflow: hidden; border: 1px solid var(--line2); border-radius: 18px; aspect-ratio: 1 / 1; background: #000; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat:hover img { transform: scale(1.06); }
.cat:hover { border-color: var(--gold3); }
.cat span { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; padding: 18px 20px; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0)); }
.cat span b { font-size: 20px; font-weight: 800; }
.cat span small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--text2); }
.cat span svg { width: 20px; height: 20px; }
.cat span svg { width: 16px; height: 16px; color: var(--gold); }

/* промо */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo { position: relative; display: block; overflow: hidden; border: 1px solid var(--line2); border-radius: 18px; aspect-ratio: 1536 / 760; background: #000; }
.promo img { position: absolute; top: 0; bottom: 0; right: -6%; left: auto; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; transition: transform .7s; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.promo:hover img { transform: scale(1.04); }
.promo__c { position: absolute; z-index: 2; left: 28px; top: 50%; transform: translateY(-50%); max-width: 52%; }
.promo__c h3 { font-size: clamp(24px, 2.6vw, 38px); font-weight: 800; line-height: 1.02; }
.promo__c p { margin-top: 10px; color: #ddd5c4; font-size: 15px; }
.promo__c .btn { margin-top: 18px; }

/* карточки товара */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.card__img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: opacity .4s, transform .5s; }
.card__img img + img { opacity: 0; }
.card:hover .card__img img:first-child:not(:only-child) { opacity: 0; }
.card:hover .card__img img + img { opacity: 1; }
.card__fav { position: absolute; z-index: 2; right: 18px; top: 18px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(20,20,23,.85); color: var(--text2); display: grid; place-items: center; }
.card__fav svg { width: 18px; height: 18px; }
.card__fav.is-on { color: var(--gold); }
.card__fav.is-on svg { fill: var(--gold); }
.tag { position: absolute; z-index: 2; left: 18px; top: 18px; padding: 4px 9px; border-radius: 7px; background: var(--goldg); color: #1a1408; font-size: 11.5px; font-weight: 800; }
.card__name { margin-top: 12px; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.card__name:hover { color: var(--gold2); }
.card__sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.sw { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.sw i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.sw em { font-style: normal; font-size: 12px; color: var(--muted); }
.card__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 12px; }
.price b { display: block; font-size: 19px; font-weight: 800; white-space: nowrap; }
.price s { font-size: 12.5px; color: var(--muted); }
.price small { display: block; font-size: 11.5px; color: var(--muted); }
.price--req b { font-size: 15px; color: var(--gold2); }
.add { width: 46px; height: 46px; flex: none; border: 0; border-radius: 12px; background: var(--goldg); color: #1a1408; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.add svg { width: 21px; height: 21px; }
.add.is-in { background: var(--card2); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--gold3); }

/* бренды, доверие */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.brand { display: grid; place-items: center; height: 78px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 17px; font-weight: 800; letter-spacing: .02em; color: var(--text2); transition: border-color .2s, color .2s; }
.brand:hover { border-color: var(--gold3); color: var(--gold2); }
.brand small { display: block; margin-top: -2px; font-size: 11px; font-weight: 500; color: var(--muted); text-align: center; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: 18px; background: var(--card); }
.trust .perk + .perk { border-left: 1px solid var(--line); }

/* каталог */
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 40px; }
.filters { position: sticky; top: 132px; max-height: calc(100vh - 150px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); scrollbar-width: thin; }
.filters h4 { margin: 18px 0 10px; font-size: 13px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; }
.filters h4:first-child { margin-top: 0; }
.chk { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--gold); }
.chk span { margin-left: auto; color: var(--muted); font-size: 12px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range input, .sort select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg2); }
.cat__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.cat__top h1 { font-size: 30px; font-weight: 800; }
.cat__top h1 span { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text2); }
.sort select { width: auto; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips a { padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13.5px; color: var(--text2); }
.chips a.is-on, .chips a:hover { border-color: var(--gold); color: var(--gold2); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); }
.fbtn { display: none; }
.cat-banner { position: relative; overflow: hidden; height: 190px; margin-bottom: 18px; border: 1px solid var(--line2); border-radius: 18px; background: #000; }
.cat-banner img { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 46%; height: auto; }
.cat-banner div { position: relative; z-index: 2; padding: 30px; max-width: 60%; }
.cat-banner h1 { font-size: 32px; font-weight: 800; }
.cat-banner p { margin-top: 6px; color: var(--text2); }

/* товар */
.pp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gal { position: sticky; top: 132px; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
.gal__thumbs { display: grid; gap: 8px; align-content: start; max-height: 560px; overflow-y: auto; scrollbar-width: none; }
.gal__thumbs button { aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.gal__thumbs button.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.gal__main { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.gal__main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity .25s; }
.gal__nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(20,20,23,.85); color: var(--text); display: grid; place-items: center; }
.gal__nav--l { left: 12px; } .gal__nav--r { right: 12px; }
.buy h1 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.12; }
.buy__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.opt { margin-top: 22px; }
.opt h4 { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; }
.opt h4 span { color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
.opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); font-weight: 600; font-size: 14px; }
.pill:hover { border-color: var(--gold3); }
.pill.is-on { border-color: var(--gold); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--gold); }
.pill[disabled] { opacity: .35; cursor: not-allowed; }
.dot { width: 40px; height: 40px; padding: 0; border: 2px solid transparent; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.dot.is-on { border-color: var(--gold); }
.buybox { margin-top: 24px; padding: 22px; border: 1px solid var(--line2); border-radius: 18px; background: var(--card); }
.buybox .price b { font-size: 36px; }
.buybox .price s { font-size: 16px; }
.buybox__act { display: grid; grid-template-columns: 1fr 52px; gap: 10px; margin-top: 18px; }
.buybox__act .btn { height: 54px; font-size: 16px; }
.favbtn { height: 54px; border: 1px solid var(--line2); border-radius: 12px; background: transparent; color: var(--text2); display: grid; place-items: center; }
.favbtn.is-on { color: var(--gold); border-color: var(--gold3); }
.favbtn.is-on svg { fill: var(--gold); }
.buybox__info { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text2); }
.buybox__info div { display: flex; gap: 10px; align-items: center; }
.buybox__info svg { color: var(--gold); width: 20px; height: 20px; }
.tabs { margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.tabs__bar { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tabs__bar button { padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text2); font-weight: 700; margin-bottom: -1px; }
.tabs__bar button.is-on { color: var(--gold2); border-color: var(--gold); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 14px; }
.specs div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.specs span { flex: 0 0 48%; color: var(--muted); }
.desc { margin-top: 16px; max-width: 900px; line-height: 1.7; color: var(--text2); white-space: pre-line; }

/* корзина */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg2); border-left: 1px solid var(--line2); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.1,1); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 22px; font-weight: 800; }
.x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--card2); color: var(--text); }
.drawer__body { flex: 1; overflow-y: auto; padding: 6px 20px; }
.ci { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 72px; height: 72px; object-fit: contain; padding: 4px; border-radius: 10px; background: #fff; }
.ci a { font-size: 14px; line-height: 1.3; font-weight: 600; }
.ci__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.step { display: grid; grid-template-columns: 34px 30px 34px; align-items: center; height: 34px; border: 1px solid var(--line2); border-radius: 10px; text-align: center; font-weight: 700; }
.step button { height: 32px; border: 0; background: none; color: var(--gold2); font-size: 18px; }
.ci b { font-weight: 800; white-space: nowrap; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--line); }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.tot b { font-size: 26px; font-weight: 800; }
.tot small { display: block; color: var(--muted); font-size: 12px; text-align: right; }
.cart-empty { padding: 60px 0; text-align: center; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; translate: -50% 20px; padding: 12px 18px; border: 1px solid var(--gold3); border-radius: 12px; background: var(--bg2); color: var(--gold2); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; }
.toast.is-on { opacity: 1; translate: -50% 0; }
.fly { position: fixed; z-index: 99; width: 60px; height: 60px; object-fit: contain; border-radius: 12px; background: #fff; pointer-events: none; transition: transform .7s cubic-bezier(.5,-.2,.6,1), opacity .7s; }

/* оформление / инфо */
.co { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 40px; }
.box { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.box + .box { margin-top: 14px; }
.box h2 { margin-bottom: 16px; font-size: 20px; font-weight: 800; }
.fld { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--text2); }
.fld input, .fld textarea { height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); font-size: 15px; color: var(--text); }
.fld textarea { height: 90px; padding-top: 12px; resize: vertical; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.radio { position: relative; display: block; padding: 14px; border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px; }
.radio input { position: absolute; opacity: 0; }
.radio:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.radio small { display: block; margin-top: 4px; font-weight: 400; color: var(--muted); font-size: 12px; }
.note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.info { max-width: 900px; padding-bottom: 40px; }
.info p { margin-top: 10px; color: var(--text2); line-height: 1.7; }

/* подвал */
.ft { margin-top: 56px; border-top: 1px solid var(--line2); background: #050506; font-size: 14px; color: var(--text2); }
.ft__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; padding-block: 40px; }
.ft h4 { margin-bottom: 12px; font-size: 15px; color: var(--text); font-weight: 800; }
.ft a, .ft span { display: block; padding: 3px 0; }
.ft a:hover { color: var(--gold2); }
.ft__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* адаптив */
@media (max-width: 1240px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-auto-columns: calc((100% - 36px) / 4); }
  .hd__icons .ico span { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .hd__links { display: none; }
  .perks, .trust { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .promos, .pp, .co { grid-template-columns: minmax(0, 1fr); }
  .gal { position: static; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; display: none; }
  .filters.is-open { display: block; }
  .fbtn { display: inline-flex; }
  .mega__in { grid-template-columns: 1fr 1fr; }
  .ft__grid { grid-template-columns: 1fr 1fr; }
  .slide__copy { max-width: 56%; }
  .dots { bottom: 16px; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .wrap { padding-inline: 12px; }
  .hd__top { display: none; }
  .hd__main { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . icons" "cat search search"; height: auto; gap: 10px; padding-block: 10px; }
  .logo { grid-area: logo; } .logo img, .logo .mark { width: 34px; height: 34px; } .logo b { font-size: 19px; } .logo small { font-size: 9.5px; }
  .hd__icons { grid-area: icons; }
  .hd__icons .ico[href="#/profile"] { display: none; }
  .hd__cat { grid-area: cat; height: 44px; padding: 0 14px; }
  .search { grid-area: search; }
  .search input { height: 44px; }
  .hero { border-radius: 16px; }
  .slide { aspect-ratio: auto; min-height: 0; height: auto; display: flex; flex-direction: column; }
  .slide > img { position: relative; order: 2; height: auto; aspect-ratio: 5 / 4; object-position: 80% 60%; }
  .slide__copy { position: relative; left: auto; right: auto; top: auto; transform: none; max-width: none; padding: 22px 18px 0; }
  .slide h2 { font-size: 36px; }
  .slide p { font-size: 14px; }
  .slide .btn { margin-top: 16px; height: 46px; }
  .slide__price { margin-top: 8px; }
  .dots { bottom: auto; top: 22px; right: 18px; }
  .hero__arr { display: none; }
  .perk { padding: 14px; gap: 10px; }
  .perk i { width: 38px; height: 38px; }
  .perk b { font-size: 13px; } .perk span { font-size: 11.5px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; }
  .chips a { flex: none; }
  .promo { aspect-ratio: 4 / 3; }
  .promo img { object-position: 78% 60%; }
  .promo__c { left: 18px; top: 22px; transform: none; max-width: 70%; }
  .row { grid-auto-columns: 62%; gap: 8px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { padding: 8px; }
  .card__name { font-size: 13px; }
  .price b { font-size: 16px; }
  .add { width: 40px; height: 40px; }
  .card__fav { right: 12px; top: 12px; width: 30px; height: 30px; }
  .tag { left: 12px; top: 12px; }
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand { height: 62px; font-size: 14px; }
  .gal { grid-template-columns: minmax(0, 1fr); }
  .gal__thumbs { order: 2; grid-auto-flow: column; grid-auto-columns: 62px; overflow-x: auto; max-height: none; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .tabs { padding: 16px; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .ft__grid { grid-template-columns: minmax(0, 1fr); }
  .cat-banner { height: auto; }
  .cat-banner img { position: relative; translate: none; width: 70%; margin: -10px 0 -20px auto; top: auto; }
  .cat-banner div { max-width: none; padding: 20px 20px 0; }
  .cat-banner h1 { font-size: 26px; }
}

/* двухуровневые разделы */
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.subcats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13.5px; color: var(--text2); }
.subcats b { align-self: center; margin-right: 4px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.subcats a span, .mgrp li span { color: var(--muted); font-size: 12px; }
.subcats a:hover { border-color: var(--gold); color: var(--gold2); }
.mgrp ul { display: grid; gap: 2px; margin: 4px 0 0 76px; }
.mgrp li a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text2); }
.mgrp li a:hover { background: var(--card); color: var(--gold2); }
.subtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.subtiles a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line2); border-radius: 14px; background: var(--card); }
.subtiles a:hover { border-color: var(--gold3); }
.subtiles img { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.subtiles b { font-size: 14px; align-self: end; }
.subtiles span { font-size: 12px; color: var(--muted); align-self: start; }
@media (max-width: 767px) {
  .subcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; }
  .subcats a { flex: none; }
  .cat span { padding: 12px; } .cat span b { font-size: 16px; }
  .subtiles { grid-template-columns: 1fr 1fr; }
}

/* ===== логотипы брендов ===== */
.blogo { display: block; width: 92px; height: 30px; background: #d9d2c4; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: background .25s; }
.blogo--lg { width: 150px; height: 46px; }
.blogo--xl { width: 190px; height: 64px; background: var(--goldg); }
.bname { font-size: 16px; font-weight: 800; color: #d9d2c4; }
a:hover > .blogo, a:hover .bcard__logo .blogo, .is-on > .blogo { background: var(--goldg); }
.brands { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 110px; background: radial-gradient(120% 90% at 50% 0%, #1d1a14 0%, var(--card) 60%); }
.brand small { font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* ===== мега-меню ===== */
.mega__in { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0; padding: 0; min-height: 440px; }
.mtabs { display: grid; align-content: start; gap: 4px; padding: 18px 14px 18px 0; border-right: 1px solid var(--line); }
.mtab { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--text2); }
.mtab svg { width: 28px; height: 28px; color: var(--gold); stroke-width: 1.5; }
.mtab b { display: block; font-size: 15px; color: var(--text); }
.mtab small { font-size: 12px; color: var(--muted); }
.mtab.is-on { background: linear-gradient(90deg, rgba(227,180,86,.14), rgba(227,180,86,0)); box-shadow: inset 2px 0 0 var(--gold); }
.mtab.is-on b { color: var(--gold2); }
.mpanel { padding: 22px 0 24px 28px; }
.mp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.mp__head h3 { font-size: 24px; font-weight: 800; }
.mp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.mp__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 24px; align-content: start; }
.mp__col { display: grid; align-content: start; gap: 2px; }
.mp__col a { padding: 4px 0; font-size: 13.5px; color: var(--text2); }
.mp__col a:hover { color: var(--gold2); }
.mp__t { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text) !important; }
.mp__t span { color: var(--muted); font-weight: 600; }
.mp__more { color: var(--gold2) !important; }
.mp__side { display: grid; align-content: start; gap: 10px; padding-left: 24px; border-left: 1px solid var(--line); }
.mp__brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.mp__brands--all { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mp__brands a { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mp__brands a:hover { border-color: var(--gold3); }
.mp__brands .blogo { width: 70px; height: 22px; }
.mp__brands--all .blogo { width: 100px; height: 32px; }
.mp__brands span { font-size: 11px; color: var(--muted); }
.mp__pop { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp__pop a { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.mp__pop a:hover { border-color: var(--gold3); color: var(--gold2); }
.mp__pop img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }

/* ===== бренды в разделе, линейки ===== */
.bstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.bstrip__t { padding: 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bstrip a { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; }
.bstrip a .blogo { width: 66px; height: 22px; }
.bstrip a span { font-size: 12px; color: var(--muted); }
.bstrip a:hover, .bstrip a.is-on { border-color: var(--gold); }
.bstrip__all { color: var(--gold2); font-size: 13px; font-weight: 600; }
.series { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.series a { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line2); border-radius: 14px; background: var(--card); }
.series a:hover { border-color: var(--gold3); }
.series img { grid-row: 1 / 3; width: 64px; height: 64px; object-fit: contain; padding: 4px; border-radius: 10px; background: #fff; }
.series b { font-size: 14px; align-self: end; }
.series span { font-size: 12.5px; color: var(--gold2); align-self: start; }

/* ===== страницы брендов ===== */
.bhero { display: flex; align-items: center; gap: 30px; margin-bottom: 18px; padding: 30px 34px; border: 1px solid var(--line2); border-radius: 20px; background: radial-gradient(80% 140% at 0% 0%, #2a2214 0%, #0d0d10 60%); }
.bhero h1 { font-size: 32px; font-weight: 800; }
.bhero p { margin-top: 6px; color: var(--text2); }
.bhero p a { color: var(--gold2); }
.grid--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: 20px; }
.bcard { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line2); border-radius: 18px; background: radial-gradient(120% 80% at 50% 0%, #1d1a14 0%, var(--card) 55%); transition: border-color .25s, transform .25s; }
.bcard:hover { border-color: var(--gold3); transform: translateY(-2px); }
.bcard__logo { display: grid; place-items: center; height: 70px; }
.bcard__imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bcard__imgs img { aspect-ratio: 1; width: 100%; object-fit: contain; padding: 6px; border-radius: 10px; background: #fff; }
.bcard__foot b { display: block; font-size: 16px; }
.bcard__foot span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 1240px) { .grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mp__grid { grid-template-columns: minmax(0, 1fr); } .mp__side { padding-left: 0; border-left: 0; } }
@media (max-width: 1023px) {
  .mega__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mtabs { grid-template-columns: 1fr 1fr; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .mpanel { padding: 16px 16px 20px; max-height: 60vh; overflow-y: auto; }
  .mtabs { padding-inline: 12px; }
  .grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid--wide { grid-template-columns: 1fr 1fr; }
  .bhero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .bhero h1 { font-size: 24px; }
  .bstrip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .bstrip a { flex: none; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { height: 92px; }
  .mtab { padding: 10px; gap: 10px; } .mtab svg { width: 24px; height: 24px; }
  .mp__brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.blogo--w { -webkit-mask-size: 100% auto; mask-size: 100% auto; }
.brand .blogo--w, .mp__brands--all .blogo--w { width: 120px; }
.bname { font-family: "Courier New", ui-monospace, monospace; font-size: 20px; font-weight: 700; letter-spacing: .02em; color: #d9d2c4; text-transform: lowercase; }
a:hover > .bname { color: var(--gold2); }
