/* Просто вкид — белый и красный. Шрифт Onest. */
:root {
  --red: #D4352B; --red-d: #8F1D17; --tint: #FDECEA;
  --gray: #F4F4F4; --line: #EDEDED; --bd: #DADADA;
  --ink: #1A1A1A; --mut: #6B6B6B; --ok: #1E7A3C;
  --r: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
body.gated, body.cart-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 300; }
.skip:focus { left: 8px; }
.wrap { max-width: 1328px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
main { min-height: 62vh; padding-bottom: 24px; }
main:focus, main:focus-visible { outline: none; }
.muted { color: var(--mut); }
.small { font-size: 13px; }
.center { text-align: center; }
.left { text-align: left; }
.lead { font-size: 20px; }
.mt { margin-top: 40px; }

/* заголовки */
.h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.sec { padding-block: 36px 12px; }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.head .h2 { margin-bottom: 20px; }
.more { color: var(--red); font-weight: 600; }
.more:hover { text-decoration: underline; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--mut); padding: 20px 0 12px; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--red); background: var(--red); color: #fff; font-weight: 600; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--bd); }
.btn.outline:hover { background: transparent; border-color: var(--ink); }
.btn.white { background: #fff; border-color: #fff; color: var(--red); }
.btn.white:hover { background: var(--tint); border-color: var(--tint); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.14); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; border-color: #000; }
.btn.sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn.block { display: flex; width: 100%; }
.btn.grow { flex: 1; }
.btn:disabled { background: #E9E9E9; border-color: #E9E9E9; color: #8A8A8A; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--mut); text-decoration: underline; font-size: 13px; }
.linkbtn:hover { color: var(--red); }
.ibtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--ink); flex: none; }
.ibtn:hover { background: var(--gray); }
.ibtn.red { background: var(--red); color: #fff; }
.ibtn.red:hover { background: var(--red-d); }
.badge-n { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; border: 2px solid #fff; border-radius: 999px; font-size: 12px; font-weight: 800; }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { font-size: 26px; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.logo b { font-weight: 800; color: var(--red); }
.cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; white-space: nowrap; }
.cta:hover { background: var(--red-d); }
.nav { position: relative; flex: 1; display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav > a, .nav > button, .more-menu a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav > a:hover, .nav > button:hover, .more-menu a:hover { background: var(--gray); }
.nav > a.on { color: var(--red); background: var(--tint); }
.more-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: flex; flex-direction: column; min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.tools { display: flex; align-items: center; gap: 8px; }
.search { position: relative; width: 190px; }
.search #search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mut); display: flex; pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 16px 0 40px; border-radius: 999px; border: 1.5px solid transparent; background: var(--gray); outline: none; }
.search input:focus { background: #fff; border-color: var(--red); }

/* главная */
.hero-wrap { padding-top: 20px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; background: var(--red); color: #fff; border-radius: 28px; padding: 48px 56px; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin-bottom: 16px; }
.hero p { font-size: 20px; max-width: 420px; margin-bottom: 28px; opacity: .95; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-pic { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 540px; height: auto; }

.brands-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; }
.btiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.btiles.all { margin-bottom: 24px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; background: var(--gray); border-radius: var(--r); font-weight: 600; text-align: center; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.tile small { color: var(--mut); font-weight: 400; font-size: 13px; }
.btile { aspect-ratio: 1 / .9; }
.bigtile { background: var(--tint); color: var(--red-d); font-size: 18px; min-height: 100%; }
.big-art { width: 82%; height: auto; }

.how-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.how-row::-webkit-scrollbar { display: none; }
.how-row.wrapped { flex-wrap: wrap; overflow: visible; }
.howcard { flex: 0 0 280px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 24px; border-radius: 24px; scroll-snap-align: start; }
.how-row.wrapped .howcard { flex: 1 1 250px; }
.howcard h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.howcard:not(.dark) > div > span { color: var(--mut); }
.howic { color: var(--red); }
.howcard.dark { flex-basis: 420px; background: var(--red-d); color: #fff; }
.how-row.wrapped .howcard.dark { flex: 1.6 1 340px; }
.hlines { display: flex; flex-direction: column; gap: 2px; opacity: .9; }
.hbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.hbtns .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.how-ctl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 16px; }
.arrows { display: flex; gap: 8px; justify-self: end; }
.arrows .ibtn { border: 1.5px solid var(--bd); }
.arrows .ibtn:hover { border-color: var(--ink); background: none; }

/* карточки товаров */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.pcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pmedia { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / .86; background: var(--gray); border-radius: var(--r); overflow: hidden; transition: background .15s; }
.pcard:hover .pmedia { background: #ECECEC; }
.pbadges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.pill.red { background: var(--red); color: #fff; }
.pill.dark { background: var(--ink); color: #fff; }
.pinfo { display: flex; flex-direction: column; gap: 2px; }
.pbrand { font-size: 13px; font-weight: 600; color: var(--mut); }
a.pbrand:hover { color: var(--red); }
.ptitle { font-size: 17px; font-weight: 600; }
.ptitle a:hover { color: var(--red); }
.pprice { display: flex; align-items: baseline; gap: 8px; }
.pprice b { font-size: 19px; font-weight: 800; }
.pprice s { color: var(--mut); font-size: 14px; }
.pprice.big b { font-size: 34px; letter-spacing: -.02em; }
.pprice.big s { font-size: 18px; }
.pcard .btn { margin-top: auto; }

/* каталог */
.cat-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cat-head .h1 { margin-bottom: 8px; }
.cat-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 20px; }
.filt-btn { display: none; }
.cat-bar .sort { margin-left: auto; }
.inp { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--bd); border-radius: 12px; background: #fff; outline: none; }
.inp:focus { border-color: var(--red); }
textarea.inp { resize: vertical; }
.sel { width: 230px; }
.cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters { position: sticky; top: 96px; }
.fgroup { margin-bottom: 26px; }
.fgroup h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin-bottom: 10px; }
.flinks { display: flex; flex-direction: column; gap: 2px; }
.flink { padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.flink:hover { background: var(--gray); }
.flink.on { background: var(--tint); color: var(--red); font-weight: 600; }
.chk { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin: 0; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 0; text-align: center; }
.empty p { font-size: 20px; font-weight: 600; margin: 0; }

/* карточка товара */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 24px; }
.gmain { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 28px; }
.gthumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gth { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border: 2px solid transparent; border-radius: 14px; padding: 0; }
.gth.on { border-color: var(--red); }
.pinfo2 { display: flex; flex-direction: column; gap: 8px; }
.pinfo2 .h1 { margin-bottom: 4px; }
.stock { font-size: 14px; font-weight: 600; margin: 0; }
.stock.yes { color: var(--ok); }
.stock.no { color: var(--red); }
.buy { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.note { font-size: 14px; color: var(--mut); }
.note a { text-decoration: underline; }
.specs { margin-top: 24px; }
.specs h2 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.srow { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.srow span { color: var(--mut); }
.srow b { font-weight: 600; text-align: right; }
.srow b a:hover { color: var(--red); }
.srow.total { font-size: 20px; border-bottom: 0; padding-top: 14px; }
.srow.total span { color: var(--ink); font-weight: 600; }
.srow.total b { font-weight: 800; }
.warn { margin: 24px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--tint); color: var(--red-d); font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--bd); border-radius: 999px; flex: none; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 20px; border-radius: 999px; }
.qty button:hover { color: var(--red); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }

/* корзина и оформление */
.cart-layout, .co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-bottom: 24px; }
.clines { border-top: 1px solid var(--line); }
.cline { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 110px 44px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cthumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1/.9; background: var(--gray); border-radius: 16px; }
.cmid { display: flex; flex-direction: column; min-width: 0; }
.ctitle { font-weight: 600; font-size: 17px; }
.ctitle:hover { color: var(--red); }
.csum { text-align: right; font-size: 18px; }
.summary { position: sticky; top: 96px; background: var(--gray); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.summary h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.summary .srow { border-color: #E3E3E3; }
.summary .btn { margin-top: 10px; }
.summary .btn + .btn { margin-top: 8px; }
.summary p { margin: 6px 0 0; }
.mini { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.mini small { color: var(--mut); font-size: 13px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 0 0 16px; min-width: 0; }
.box h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
fieldset.box { display: grid; gap: 14px; }
fieldset.box legend { padding: 0 8px; margin-left: -8px; font-size: 18px; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 14px; color: var(--mut); }
.fld.bad .inp, .fld.bad input { border-color: var(--red); background: var(--tint); }
.err { color: var(--red); font-size: 13px; font-style: normal; }
.chkrow { margin: 6px 0 0; }
.chkrow.bad .chk { color: var(--red); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1.5px solid var(--bd); border-radius: 14px; cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.opt b { display: block; font-weight: 600; }
.opt small { display: block; color: var(--mut); font-size: 13px; }
.opt.on { border-color: var(--red); background: var(--tint); }
.opt.off { opacity: .55; cursor: not-allowed; }
.pickup-note { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: var(--gray); }
.demo { margin: 12px 0 0; padding: 8px 12px; border: 1px dashed var(--bd); border-radius: 10px; color: var(--mut); font-size: 13px; text-align: center; }
.okic { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin: 40px auto 16px; border-radius: 50%; background: var(--red); color: #fff; }
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--gray); border-radius: 999px; }
.tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: none; font-weight: 600; }
.tabs button.on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
[data-form="login"], [data-form="register"] { display: flex; flex-direction: column; gap: 14px; }

/* информационные страницы */
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 16px; }
.steps li span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; }
.steps p { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.drow { padding: 12px 0; border-bottom: 1px solid var(--line); }
.drow:last-of-type { border-bottom: 0; }
.drow h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.drow p { margin: 0; }
.mapbox { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; background: var(--gray); border: 0; text-align: center; }
.mapbox .okic { margin-top: 0; }
.doclist { display: grid; gap: 8px; margin-top: 16px; }
.doc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.doc summary { cursor: pointer; font-weight: 600; }
.doc p { margin: 10px 0 0; }
.code404 { margin: 48px 0 0; font-size: clamp(88px, 18vw, 170px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--red); }
.row-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* подвал */
.ftr { margin-top: 48px; padding: 48px 0 28px; background: var(--gray); }
.ftr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ftr-grid > div { display: flex; flex-direction: column; gap: 8px; }
.ftr-grid b { font-weight: 800; margin-bottom: 4px; }
.ftr-grid a, .ftr-grid span { color: var(--mut); }
.ftr-grid a:hover { color: var(--red); }
.ftr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--bd); color: var(--mut); font-size: 14px; }
.ftr-bar a { text-decoration: underline; }
.age { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 800; font-size: 13px; }

/* фото товаров из CRM, описание, подсказки */
.pimg { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.dthumb .pimg, .cthumb .pimg, .gth .pimg { padding: 4%; }
.alert { margin: 0 0 16px; padding: 14px 18px; border: 1.5px solid var(--red); border-radius: 14px; background: var(--tint); color: var(--red-d); font-weight: 600; outline: none; }
.desc { color: var(--ink); }
.desc p { margin: 0 0 10px; }
.desc ul, .desc ol { margin: 0 0 10px; padding-left: 22px; }
.desc h3, .desc h4 { margin: 12px 0 6px; font-size: 17px; font-weight: 800; }
.brand-desc { max-width: 760px; margin-bottom: 8px; color: var(--mut); }
.sv { white-space: pre-line; }
.blist { max-height: 340px; overflow-y: auto; }
.hint { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff; color: var(--red-d); font-size: 14px; font-weight: 600; }
.srow.disc b { color: var(--red); }
.note.tiers { color: var(--red-d); font-weight: 600; }
.d-disc { margin: -4px 0 10px; color: var(--red); font-weight: 600; font-size: 14px; text-align: right; }
.loading { padding: 80px 0; }

/* корзина-панель */
.scrim { position: fixed; inset: 0; z-index: 90; border: 0; padding: 0; background: rgba(0,0,0,.42); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.14); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
body.cart-open .scrim { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
.d-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.d-head h2 { font-size: 22px; font-weight: 800; }
.d-lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.d-lines .muted { padding: 40px 0; }
.dline { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dthumb { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; background: var(--gray); border-radius: 14px; }
.dmid { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.dtitle { font-weight: 600; }
.dmid .qty button { height: 36px; width: 34px; }
.dend { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.d-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.d-sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 18px; }
.d-sum b { font-size: 22px; font-weight: 800; }

/* возрастной экран и сообщение */
.gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: #fff; }
.gate-card { width: min(460px, 100%); padding: 40px 32px; text-align: center; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.1); }
.gate-age { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin-bottom: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: 28px; font-weight: 800; }
.gate-card h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.gate-card p { color: var(--mut); margin-bottom: 24px; }
.gate-btns { display: flex; flex-direction: column; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- планшет ---------- */
@media (max-width: 1199px) {
  .hdr-in { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 12px; }
  .tools { margin-left: auto; }
  .nav { order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; padding: 6px 0 10px; }
  .nav::-webkit-scrollbar { display: none; }
  #more-btn { display: none; }
  .more-menu, .more-menu[hidden] { display: contents !important; }
}
@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brands-grid { grid-template-columns: 1fr; }
  .bigtile { min-height: 200px; }
  .btiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 36px 28px 20px; text-align: left; }
  .hero-art { max-width: 420px; }
  .cat-layout { grid-template-columns: 1fr; gap: 0; }
  .filt-btn { display: inline-flex; }
  .filters { display: none; position: static; padding: 20px; margin-bottom: 20px; background: var(--gray); border-radius: var(--r); }
  .filters.open { display: block; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp, .cart-layout, .co-layout, .two { grid-template-columns: 1fr; gap: 28px; }
  .summary { position: static; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- телефон ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hdr { position: static; }
  .hdr-in { gap: 8px; padding-top: 10px; }
  .cta { display: none; }
  .tools { display: contents; }
  .logo { order: 1; font-size: 24px; }
  #acc-btn { order: 2; margin-left: auto; }
  #cart-btn { order: 3; }
  .search { order: 4; flex: 1 1 100%; width: 100%; }
  .nav { order: 5; }
  .pgrid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .btiles, .btiles.all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { border-radius: 22px; }
  .hero p { font-size: 17px; }
  .howcard { flex-basis: 78%; min-height: 250px; }
  .howcard.dark { flex-basis: 88%; }
  .how-ctl { grid-template-columns: 1fr auto; }
  .how-ctl span { display: none; }
  .how-ctl .btn { justify-self: start; }
  .opts, .grid2 { grid-template-columns: 1fr; }
  .cline { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "t m x" "t q s"; row-gap: 8px; }
  .cthumb { grid-area: t; }
  .cmid { grid-area: m; }
  .cline > .ibtn { grid-area: x; align-self: start; }
  .cline > .qty { grid-area: q; justify-self: start; }
  .csum { grid-area: s; align-self: center; }
  .sel { width: 100%; }
  .cat-bar .sort { flex: 1; margin-left: 0; }
  .buy { flex-wrap: wrap; }
  .gate-card { padding: 32px 22px; }
  .ftr { padding-top: 36px; }
  .box { padding: 18px; }
}
@media (max-width: 380px) {
  .pgrid, .cat-grid { gap: 20px 10px; }
  .btn { padding: 0 16px; }
  .ptitle { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
