/* Enkel — витрина. Токены из дизайн-системы Enkel */
:root {
  --surface: #FFFFFF;
  --surface-alt: #F2F4F6;
  --surface-sunk: #E8ECF0;
  --line: #D7DDE3;
  --line-strong: #7A8794;
  --ink: #15202B;
  --ink-muted: #566270;
  --blue: #0159A1;
  --blue-deep: #003F73;
  --blue-soft: #E6EFF7;
  --yellow: #FFCC01;
  --yellow-soft: #FFF4C2;
  --on-blue: #FFFFFF;
  --sale: #C8381A;
  --ok: #1E7B3C;
  --low: #B25200;
  --r-s: 4px;
  --r-m: 8px;
  --pop: 0 8px 24px rgba(21, 32, 43, .14);
  --font-display: Unbounded, "Arial Black", system-ui, sans-serif;
  --font-sans: Onest, "Segoe UI", Roboto, system-ui, sans-serif;
  --wrap: 1360px;
  --gut: 40px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 15px/1.45 var(--font-sans); font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.h-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
.h1 { font-size: 34px; line-height: 40px; }
.h2 { font-size: 26px; line-height: 32px; }
.h3 { font-size: 22px; line-height: 28px; }
.eyebrow { margin: 0; font: 600 12px/16px var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-deep); color: var(--on-blue); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); filter: brightness(.97); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-outline:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { color: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { background: var(--surface-sunk); color: var(--ink-muted); cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--surface-alt); color: var(--ink); }
.count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--yellow); color: var(--ink); font: 700 11px/18px var(--font-sans); text-align: center; }
.count:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface-alt); color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; text-decoration: none; }
.chip:hover { background: var(--surface-sunk); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: #fff; }
.chip .n { opacity: .65; font-weight: 400; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-s); font: 700 12px/24px var(--font-sans); letter-spacing: .02em; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-last { background: var(--ink); color: #fff; }
.badge-pvz { background: var(--blue-soft); color: var(--blue); }
.badge-new { background: var(--blue); color: #fff; }
.hex { display: inline-grid; place-items: center; width: 64px; height: 56px; background: var(--yellow); color: var(--ink); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); font: 700 18px/1 var(--font-display); flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
.dot.low { background: var(--low); }
.dot.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* Шапка */
.util { background: var(--blue-deep); color: #fff; font-size: 13px; font-weight: 500; }
.util .wrap { min-height: 36px; display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; }
.util .push { margin-left: auto; }
.head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-bar { min-height: 80px; display: flex; align-items: center; gap: 16px 28px; }
.logo img { height: 36px; width: auto; }
.burger { display: none; }
.search { position: relative; flex: 1 1 360px; }
.search label { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; background: var(--surface-alt); border-radius: 999px; color: var(--ink-muted); }
.search label:focus-within { background: var(--surface); box-shadow: inset 0 0 0 2px var(--blue); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--ink); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border-radius: var(--r-m); box-shadow: var(--pop); padding: 6px; z-index: 60; max-height: 70vh; overflow: auto; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a.is-active { background: var(--surface-alt); }
.suggest img { width: 48px; height: 48px; object-fit: contain; background: #fff; }
.suggest .s-name { font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.suggest .s-sub { font-size: 13px; color: var(--ink-muted); }
.suggest .s-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.suggest mark { background: var(--yellow-soft); color: inherit; border-radius: 2px; }
.suggest .s-empty { padding: 12px; color: var(--ink-muted); font-size: 14px; }
.head-icons { display: flex; gap: 4px; }
.nav { display: flex; align-items: center; gap: 4px 28px; min-height: 48px; font-size: 15px; font-weight: 500; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; padding: 13px 0; }
.nav a:hover { color: var(--blue); }
.nav a.is-on { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.nav a.sale { color: var(--sale); font-weight: 600; }

/* Карточка товара */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-top { position: relative; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-radius: var(--r-s); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.card-media .alt-img { position: absolute; inset: 0; object-fit: cover; opacity: 0; }
@media (hover: hover) { .card-media:hover .alt-img { opacity: 1; } }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.fav { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; }
.fav[aria-pressed="true"] { color: var(--sale); }
.fav[aria-pressed="true"] path { fill: currentColor; }
.card-name { margin: 4px 0 0; font-weight: 700; font-size: 14px; line-height: 18px; letter-spacing: .02em; }
.card-name a { color: inherit; text-decoration: none; }
.card-name .orig { font-weight: 500; color: var(--ink-muted); }
.card-desc { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 2px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.price .now { font-weight: 700; font-size: 22px; line-height: 26px; letter-spacing: -.01em; }
.price.sale .now { color: var(--sale); }
.price .old { font-size: 14px; color: var(--ink-muted); text-decoration: line-through; }
.add { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; transition: background .15s; }
.add:hover { background: var(--blue-deep); }
.add.is-added { background: var(--ok); }
.stock { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; }

/* Секции */
.section { padding-top: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head a { font-weight: 600; text-decoration: none; }
.band .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.band { background: var(--surface-alt); margin-top: 72px; padding-block: 56px; }
.band .grid .card { background: #fff; border-radius: var(--r-s); padding: 12px 12px 16px; }

/* Главная */
.hero { display: flex; flex-wrap: wrap; border-radius: var(--r-s); overflow: hidden; margin-top: 24px; }
.hero-img { flex: 999 1 560px; position: relative; min-height: 480px; background: var(--surface-alt); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hotspot { position: absolute; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.hotspot .pin { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.45); flex: none; }
.hotspot .tag { background: #fff; border-radius: var(--r-s); padding: 8px 12px; box-shadow: var(--pop); }
.hotspot .tag b { display: block; font-size: 12px; letter-spacing: .02em; }
.hotspot .tag span { display: block; font-weight: 700; font-size: 18px; }
.hero-panel { flex: 1 1 380px; background: var(--blue); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 20px; position: relative; overflow: hidden; }
.hero-panel .eyebrow { color: var(--yellow); }
.hero-panel h1 { font-size: 44px; line-height: 50px; letter-spacing: -.02em; }
.hero-panel p { margin: 0; font-size: 17px; line-height: 26px; max-width: 420px; }
.hero-panel .btn-outline { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.hero-panel .deco { position: absolute; right: -50px; top: -40px; opacity: .16; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface-alt); border-radius: var(--r-m); }
.perk svg { flex: none; color: var(--blue); }
.perk p { margin: 0; }
.perk b { display: block; font-weight: 600; }
.perk span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.tile:hover { color: var(--ink); }
.tile-img { aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; background: var(--surface-alt); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-name { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 16px; }
.tile-name span { font-weight: 400; font-size: 14px; color: var(--ink-muted); }
.split { display: flex; flex-wrap: wrap; gap: 32px; }
.split-img { flex: 999 1 520px; min-height: 420px; position: relative; border-radius: var(--r-s); overflow: hidden; background: var(--surface-alt); }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-text { flex: 1 1 400px; display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; min-width: 0; }
.mini .im { aspect-ratio: 1 / 1; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; background: #fff; }
.mini .im img { width: 100%; height: 100%; object-fit: contain; }
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.store { padding: 28px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.store p { margin: 0; }
.store .addr { font-weight: 600; font-size: 20px; line-height: 26px; }
.store.ask { background: var(--yellow-soft); box-shadow: none; }

/* Подвал */
.foot { margin-top: 88px; background: var(--blue-deep); color: #fff; }
.foot-in { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-block: 56px 40px; }
.foot-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col.main { flex-basis: 260px; gap: 16px; }
.foot-col b { font-weight: 600; margin-bottom: 4px; }
.foot-col a { color: #fff; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; color: #fff; }
.foot-phone { font-size: 22px; font-weight: 600; }
.foot-copy { border-top: 1px solid rgba(255,255,255,.18); padding-block: 20px 32px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-copy a { color: #fff; }

/* Каталог */
.crumbs { font-size: 13px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 16px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-body { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 40px; }
.filters { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 28px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.filters legend { font-weight: 600; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field span { font: 600 12px/16px var(--font-sans); letter-spacing: .04em; color: var(--ink-muted); text-transform: uppercase; }
.field input, .field select { height: 48px; padding: 0 14px; border-radius: var(--r-m); border: 1.5px solid var(--line-strong); background: #fff; font-size: 15px; width: 100%; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.field.sm input { height: 40px; font-size: 14px; }
.note { padding: 16px; border-radius: var(--r-m); background: var(--yellow-soft); font-size: 14px; line-height: 20px; }
.results { flex: 999 1 640px; min-width: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; font-size: 14px; }
.toolbar select { height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 500; font-size: 14px; }
.empty { padding: 48px 0; color: var(--ink-muted); }
.filter-toggle { display: none; }

/* Товар */
.pdp { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 24px; align-items: flex-start; }
.gallery { flex: 999 1 560px; min-width: 0; display: flex; gap: 16px; }
.thumbs { display: flex; flex-direction: column; gap: 12px; flex: none; }
.thumbs button { width: 80px; height: 80px; padding: 4px; border-radius: var(--r-s); border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.thumbs button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.main-img { flex: 1; min-width: 0; position: relative; aspect-ratio: 1 / 1; max-height: 720px; background: #fff; }
.main-img img { width: 100%; height: 100%; object-fit: contain; }
.main-img .card-badges { top: 12px; left: 12px; }
.buy { flex: 1 1 380px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 150px; }
.buy h1 { margin: 0; font-weight: 700; font-size: 28px; line-height: 34px; letter-spacing: .01em; }
.buy h1 .orig { font-weight: 500; color: var(--ink-muted); }
.buy .kind { margin: 0; font-size: 18px; line-height: 26px; }
.buy .sku { margin: 4px 0 0; font: 600 12px/16px var(--font-sans); letter-spacing: .04em; color: var(--ink-muted); }
.price.xl .now { font-size: 40px; line-height: 40px; }
.price.xl .old { font-size: 17px; }
.save { background: var(--yellow); color: var(--ink); font: 700 13px/1 var(--font-sans); padding: 6px 8px; border-radius: var(--r-s); align-self: center; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy-row .btn { flex: 1 1 140px; }
.qty { display: inline-flex; align-items: center; height: 48px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.qty button { width: 44px; height: 48px; border: 0; background: transparent; font-size: 20px; border-radius: 50%; }
.qty button:disabled { color: var(--line); cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-size: 16px; }
.qty.sm { height: 40px; }
.qty.sm button { width: 40px; height: 40px; font-size: 18px; }
.box { border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
.box-pad { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.box-title { margin: 0; font-weight: 600; font-size: 16px; }
.row-line { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.row-line:last-child { border-bottom: 0; }
.row-line svg { flex: none; color: var(--blue); }
.row-line p { margin: 0; }
.row-line b { display: block; font-weight: 600; }
.row-line small { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.row-line.off { background: var(--surface-alt); }
.row-line.off svg, .row-line.off b { color: var(--ink-muted); }
.row-line.off small { color: var(--low); }
.stock-line { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; }
.stock-line .dot { margin-top: 6px; }
.about { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.about section { flex: 1 1 420px; min-width: 0; }
.about p { font-size: 16px; line-height: 25px; margin: 0 0 14px; max-width: 640px; white-space: pre-line; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--ink-muted); }
.specs td:last-child { text-align: right; font-weight: 600; }

/* Корзина */
.cart-page { background: var(--surface-alt); min-height: 100vh; }
.cart-head { background: #fff; border-bottom: 1px solid var(--line); }
.cart-head .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.cart-head .push { margin-left: auto; font-size: 14px; color: var(--ink-muted); }
.cart-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-bottom: 80px; }
.cart-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.panel { background: #fff; border-radius: var(--r-m); padding: 24px; }
.panel h2 { margin: 0 0 16px; font-weight: 600; font-size: 20px; line-height: 26px; }
.line { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img { width: 96px; height: 96px; object-fit: contain; background: #fff; flex: none; }
.line .info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line .info p { margin: 0; }
.line .sum { min-width: 120px; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.line .sum b { font-size: 18px; }
.line .sum.sale b { color: var(--sale); }
.line .sum s { font-size: 13px; color: var(--ink-muted); }
.rm { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-muted); display: grid; place-items: center; }
.rm:hover { background: var(--surface-alt); color: var(--ink); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .opts { grid-template-columns: minmax(0, 1fr); } }
.opt { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-m); border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.opt .t { display: flex; justify-content: space-between; gap: 12px; width: 100%; font-weight: 600; }
.opt .m { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue); background: var(--blue-soft); }
.opt:disabled { background: var(--surface-alt); box-shadow: none; cursor: not-allowed; color: var(--ink-muted); }
.opt:disabled .m { color: var(--low); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.summary { flex: 1 1 340px; max-width: 420px; min-width: 0; background: #fff; border-radius: var(--r-m); padding: 24px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.summary h2 { margin: 0; font-weight: 600; font-size: 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-total b { font-size: 30px; line-height: 34px; }
.summary .btn { height: 52px; font-size: 16px; }
.summary small { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* Тост и модалка */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 16px 12px 12px; border-radius: var(--r-m); box-shadow: var(--pop); display: flex; align-items: center; gap: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 4px; }
.toast a { color: var(--yellow); font-weight: 600; white-space: nowrap; }
.modal-bg { position: fixed; inset: 0; background: rgba(21,32,43,.45); display: grid; place-items: center; padding: 16px; z-index: 200; }
.modal { background: #fff; border-radius: var(--r-m); padding: 32px; max-width: 520px; width: 100%; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--pop); }
.modal p { margin: 0; }
.demo-flag { position: fixed; right: 16px; bottom: 16px; z-index: 90; background: var(--yellow); color: var(--ink); font: 600 12px/1 var(--font-sans); padding: 8px 12px; border-radius: 999px; box-shadow: var(--pop); text-decoration: none; }
.demo-flag:hover { color: var(--ink); }

/* Мобильная версия */
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer.open { display: block; }
.drawer .bg { position: absolute; inset: 0; background: rgba(21,32,43,.45); }
.drawer .sheet { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 86vw); background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.drawer .sheet a { padding: 14px 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  :root { --gut: 16px; }
  .util .hide-m { display: none; }
  .head-bar { min-height: 0; padding-block: 10px; gap: 10px 4px; flex-wrap: wrap; }
  .burger { display: grid; margin-left: -10px; }
  .logo img { height: 28px; }
  .head-icons { margin-left: auto; margin-right: -10px; }
  .search { order: 5; flex: 1 1 100%; }
  .search label { height: 44px; }
  .nav { min-height: 44px; gap: 22px; font-size: 14px; }
  .nav a { padding: 12px 0; }
  .hero-img { min-height: 260px; flex-basis: 100%; }
  .hero-panel { padding: 24px 20px 28px; }
  .hero-panel h1 { font-size: 28px; line-height: 33px; }
  .h2 { font-size: 21px; line-height: 27px; }
  .h1 { font-size: 27px; line-height: 33px; }
  .section { padding-top: 48px; }
  .band { margin-top: 48px; padding-block: 36px; }
  .grid, .band .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .band .grid .card { padding: 8px 8px 12px; }
  .price .now { font-size: 18px; line-height: 22px; }
  .card-name, .card-desc { font-size: 13px; line-height: 17px; }
  .add { width: 36px; height: 36px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .tile-name { font-size: 14px; flex-direction: column; gap: 0; }
  .split-img { min-height: 260px; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .perk { padding: 12px; flex-direction: column; gap: 6px; }
  .filters { display: none; max-width: none; flex-basis: 100%; }
  .filters.open { display: flex; }
  .filter-toggle { display: inline-flex; }
  .gallery { flex-direction: column-reverse; }
  .thumbs { flex-direction: row; }
  .thumbs button { width: 64px; height: 64px; }
  .buy { position: static; }
  .buy h1 { font-size: 22px; line-height: 28px; }
  .price.xl .now { font-size: 32px; line-height: 34px; }
  .pdp { gap: 20px; }
  .about { margin-top: 40px; padding-top: 32px; gap: 32px; }
  .line img { width: 72px; height: 72px; }
  .line .sum { min-width: 0; text-align: left; }
  .summary { position: static; max-width: none; }
  .foot { margin-top: 56px; }
  .demo-flag { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
