/* Кейс «Дизайн карточек для маркетплейсов». Мир «лаборатория взгляда»: стимульный серый, графит,
   единственный цвет — тепловая шкала слоя взгляда. */
:root {
  --ground: #E3E5E0;
  --ground-2: #D6D9D3;
  --paper: #F4F5F2;
  --ink: #171A21;
  --ink-2: #434955;
  --ink-3: #5B616C;
  --line: rgba(23, 26, 33, .14);
  --line-2: rgba(23, 26, 33, .24);
  --h1: #1C9DB8; /* холодная зона */
  --h2: #2FA866;
  --h3: #E6C02E;
  --h4: #EE7F2A;
  --h5: #DF3F2B; /* горячая зона */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 14px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  font-family: 'Geologica', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--h3); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
html { scrollbar-color: var(--ink-3) var(--ground-2); scroll-padding-top: 80px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--gut); padding-top: max(14px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--ground) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(10px); }
.studio { font-weight: 650; text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--ground-2); color: var(--ink); } }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------------------------------------------------------------- типографика */
h1 { font-size: clamp(40px, 5.4vw, 84px); line-height: .98; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; font-weight: 750; letter-spacing: -.03em; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
@media (max-width: 600px) { .lede-more { display: none; } }
.fine { font-size: 14px; line-height: 1.45; color: var(--ink-3); max-width: 40em; }

/* ---------------------------------------------------------------- кнопки и переключатели */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .14s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px -8px rgba(23,26,33,.55); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost[aria-pressed="true"]::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, var(--h5), var(--h4)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--h4) 30%, transparent); }
.btn.wide { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: #262B35; }
  .btn.ghost:hover { background: var(--ground-2); }
}

.ctrl { display: grid; gap: 10px; }
.ctrl-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ctrl-hint { font-size: 15px; line-height: 1.45; color: var(--ink-2); min-height: 3em; max-width: 34em; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button, .seg [role="radio"] { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 15px; font-weight: 500; transition: background-color .18s, color .18s, box-shadow .18s; }
.seg [aria-checked="true"], .seg [aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.seg [role="radio"] small { display: block; font-size: 12px; font-weight: 400; color: inherit; opacity: .75; margin-top: -2px; }
.seg-cover [role="radio"] { text-align: left; padding: 8px 18px 9px; line-height: 1.2; }
@media (hover: hover) and (pointer: fine) { .seg [aria-checked="false"]:hover, .seg [aria-selected="false"]:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); } }

/* ---------------------------------------------------------------- первый экран */
.hero { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); grid-template-areas: "stage title" "stage ctrl"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 88px); row-gap: 28px; align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--gut) clamp(48px, 6vw, 96px); min-height: calc(100svh - 64px); }
.hero-stage { grid-area: stage; display: grid; justify-items: center; gap: 14px; }
.hero-title { grid-area: title; display: grid; gap: 22px; align-self: end; }
.hero-ctrl { grid-area: ctrl; display: grid; gap: 24px; align-content: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.aoi-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.aoi-swatch { width: 22px; height: 14px; border: 1.5px dashed var(--ink); border-radius: 3px; }
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "stage" "ctrl"; grid-template-rows: none; min-height: 0; }
}

/* ---------------------------------------------------------------- устройства */
.device { position: relative; }
.device.phone { --s: 1; width: calc(410px * var(--s)); height: calc(var(--ph, 860px) * var(--s)); border-radius: calc(58px * var(--s)); background: #101217; box-shadow: 0 0 0 1px #2a2e36, 0 30px 60px -30px rgba(23,26,33,.55), 0 10px 20px -12px rgba(23,26,33,.35); }
.device.phone::after { content: ''; position: absolute; left: 50%; top: calc(18px * var(--s)); width: calc(110px * var(--s)); height: calc(30px * var(--s)); transform: translateX(-50%); border-radius: 99px; background: #050608; z-index: 3; }
.phone-screen { position: absolute; left: 10px; top: 10px; width: 390px; height: calc(var(--ph, 860px) - 20px); transform: scale(var(--s)); transform-origin: 0 0; translate: calc(10px * (var(--s) - 1)) calc(10px * (var(--s) - 1)); border-radius: 48px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: #F6F6F4; scrollbar-width: none; outline-offset: -4px; }
.phone-screen::-webkit-scrollbar { display: none; }

/* интерфейс маркетплейса (нейтральная эмуляция) */
.mp-bar { position: sticky; top: 0; z-index: 2; padding: 58px 12px 10px; background: #F6F6F4; }
.mp-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); font-size: 15px; color: #222; }
.mp-search svg { width: 18px; height: 18px; fill: none; stroke: #777; stroke-width: 2; flex: none; }
.mp-chips { display: flex; gap: 6px; margin-top: 10px; overflow: hidden; white-space: nowrap; }
.mp-chips span { padding: 6px 11px; border-radius: 999px; background: #fff; font-size: 12.5px; color: #333; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px; padding: 4px 12px 24px; }
.mp-card { position: relative; display: block; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; color: #1b1b1b; font-family: 'Geologica', sans-serif; }
.mp-card:not([data-ours]) { cursor: default; }
.mp-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #e9e9e7; perspective: 600px; }
.mp-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-fav { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; z-index: 2; }
.mp-fav svg { width: 16px; height: 16px; fill: none; stroke: #444; stroke-width: 2; }
.mp-price { display: block; width: max-content; margin-top: 8px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.mp-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: #333; }
.mp-title b { font-weight: 600; color: #111; }
.mp-meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: #666; }
.mp-meta svg { width: 12px; height: 12px; fill: #E6A817; }
.mp-ship { display: block; margin-top: 2px; font-size: 12px; color: #2D7F4E; font-weight: 600; }
.mp-card[data-ours] .mp-img { box-shadow: 0 0 0 0 transparent; }
@media (hover: hover) and (pointer: fine) { .mp-card[data-ours]:hover .mp-img img { transform: scale(1.02); } }
.mp-img img { transition: transform .5s var(--ease); }
.mp-card[data-ours]:active .mp-img { transform: scale(.985); }

/* смена обложки: переворачивается только плитка, сетка стоит на месте */
.mp-img.flip img { animation: flip .42s var(--ease); }
@keyframes flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(88deg); filter: brightness(.8); } 55% { transform: rotateX(-88deg); filter: brightness(.8); } 100% { transform: rotateX(0); } }

/* слой взгляда */
.gaze { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
.gaze-svg { width: 100%; height: 100%; overflow: visible; }
.aoi-rect { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.heat { opacity: .7; mix-blend-mode: multiply; }
.sacc { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 260; stroke-dashoffset: 0; }
.fix circle { stroke: #fff; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.fix text { fill: #fff; font: 700 15px 'Geologica', sans-serif; text-anchor: middle; dominant-baseline: central; }
.fix.f1 circle { fill: var(--h5); } .fix.f2 circle { fill: var(--h4); } .fix.f3 circle { fill: var(--h3); } .fix.f3 text { fill: var(--ink); }
.aoi-tag { position: absolute; left: 6px; top: 6px; z-index: 4; padding: 3px 8px 4px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.gaze-off .gaze, .gaze-off .aoi-tag { opacity: 0; }
.gaze, .aoi-tag { transition: opacity .3s var(--ease); }
.mp-card[data-ours] { z-index: 1; }
.mp-grid { overflow: visible; }
.phone-screen .mp-grid { padding-top: 34px; }

/* оркестровка: слой взгляда прорисовывается один раз при загрузке */
.intro .aoi-rect { animation: aoi .6s var(--ease) both; }
.intro .fix { animation: pop .5s var(--ease) both; transform-box: fill-box; transform-origin: center; }
.intro .fix.f1 { animation-delay: .5s; } .intro .fix.f2 { animation-delay: 1.05s; } .intro .fix.f3 { animation-delay: 1.6s; }
.intro .heat { animation: fade .9s ease-out .45s both; }
.intro .sacc { animation: draw 1.2s var(--ease) .7s both; }
@keyframes aoi { from { opacity: 0; stroke-dashoffset: 40; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 260; } }

/* ---------------------------------------------------------------- секции */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 136px) var(--gut) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head p { color: var(--ink-2); font-size: 18px; max-width: 34em; text-wrap: pretty; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.scroll-hint { display: none; font-size: 14px; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 860px) {
  .device.browser { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .device.browser .br-chrome { width: calc(1440px * var(--s)); }
  .scroll-hint { display: block; }
}

/* браузер */
.device.browser { --s: 1; width: 100%; height: calc(860px * var(--s)); border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(23,26,33,.5); overflow: hidden; }
.br-chrome { display: flex; align-items: center; gap: 7px; height: calc(40px * var(--s)); padding: 0 calc(14px * var(--s)); background: #EDEEEB; border-bottom: 1px solid var(--line); }
.br-chrome i { width: calc(11px * var(--s)); height: calc(11px * var(--s)); border-radius: 50%; background: #CFD2CC; }
.br-url { margin-left: calc(16px * var(--s)); padding: calc(4px * var(--s)) calc(14px * var(--s)); border-radius: 8px; background: #fff; font-size: calc(13px * var(--s)); color: var(--ink-3); }
.br-page { position: absolute; left: 0; top: calc(40px * var(--s)); width: 1440px; height: 820px; transform: scale(var(--s)); transform-origin: 0 0; background: #F6F6F4; overflow: hidden; }
.br-top { display: flex; align-items: center; gap: 18px; height: 72px; padding: 0 28px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); }
.br-top b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.br-search { flex: 1; height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: 12px; background: #F2F2F0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); font-size: 15px; }
.br-ic { width: 36px; height: 36px; border-radius: 50%; background: #EEEEEC; }
.br-body { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 28px; }
.br-side { display: grid; align-content: start; gap: 14px; font-size: 14px; color: #555; }
.br-side b { font-size: 16px; color: #111; margin-bottom: 6px; }
.br-side span { padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.07); }
.desk-grid { grid-template-columns: repeat(5, 1fr); gap: 34px 16px; padding: 30px 0 0; }
.desk-grid .mp-price { font-size: 19px; }
.desk-grid .mp-title { font-size: 13.5px; }

/* набор слайдов — таблицы лукбука */
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); counter-reset: plate; }
.plate-btn { display: grid; gap: 12px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.plate-img { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--ground-2); box-shadow: 0 0 0 1px var(--line); }
.plate-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .plate-btn:hover .plate-img img { transform: scale(1.025); } }
.plate-cap { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; font-size: 15px; line-height: 1.35; }
.plate-cap { grid-template-columns: 40px 1fr; }
.plate-cap .n { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; background: var(--ring, var(--ink-3)); box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--ring, var(--ink-3)); }
.plates li:nth-child(1) { --ring: var(--h5); } .plates li:nth-child(2) { --ring: #E35A2C; } .plates li:nth-child(3) { --ring: var(--h4); } .plates li:nth-child(4) { --ring: #E99F2C; }
.plates li:nth-child(5) { --ring: #C9B22E; } .plates li:nth-child(6) { --ring: #7AAE4A; } .plates li:nth-child(7) { --ring: var(--h2); } .plates li:nth-child(8) { --ring: var(--h1); }
.plates li:nth-child(n+5) .plate-cap .n { color: var(--ink); }
.plate-cap b { font-weight: 650; }
.plate-cap span { color: var(--ink-2); }
@media (max-width: 860px) {
  .plates { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 8px; scroll-padding: 0 var(--gut); scrollbar-width: none; }
  .plates::-webkit-scrollbar { display: none; }
  .plates li { scroll-snap-align: start; }
}

/* A/B */
.ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.ab-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; padding: clamp(14px, 1.4vw, 20px); border-radius: calc(var(--r) + 6px); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.ab-item.is-live { box-shadow: 0 0 0 2px var(--ink); }
.ab-big { aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--ground-2); }
.ab-big img { width: 100%; height: 100%; object-fit: cover; }
.ab-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ab-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ab-letter { font-weight: 750; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ab-hyp { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.ab-check { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.ab-mini { width: 108px; height: 144px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.ab-mini img { width: 100%; height: 100%; object-fit: cover; }
.ab-facts { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ab-facts b { color: var(--ink); font-weight: 650; }
.ab-real { position: relative; width: 216px; height: 288px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); margin-top: 22px; }
.ab-real img { border-radius: 8px; }
.ab-real::after { content: ''; position: absolute; inset: -5px; border: 1.6px dashed var(--ink); border-radius: 11px; pointer-events: none; }
.ab-real .aoi-tag { top: -24px; left: -5px; }
.ab-real img { width: 216px; height: 288px; object-fit: cover; }
@media (max-width: 1100px) { .ab-grid { grid-template-columns: 1fr; } .ab-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ab-big { grid-row: span 4; } }
@media (max-width: 640px) { .ab-item { grid-template-columns: minmax(0, 1fr); } .ab-big { grid-row: auto; } .ab-check { grid-template-columns: 1fr; } }

/* метод */
.method-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.reading { position: sticky; top: 96px; display: grid; gap: 16px; }
.reading-card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.reading-card img { width: 100%; height: 100%; object-fit: cover; }
.reading-gaze { position: absolute; inset: 0; }
.reading figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.reading figcaption b { color: var(--ink); font-weight: 650; }
.steps { counter-reset: st; display: grid; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; padding: 26px 0 28px; border-top: 1px solid var(--line-2); }
.steps li:last-child { border-bottom: 1px solid var(--line-2); }
.steps li::before { content: counter(st); grid-row: span 2; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps b { font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.steps span { color: var(--ink-2); max-width: 38em; }
@media (max-width: 860px) { .method-body { grid-template-columns: 1fr; } .reading { position: static; max-width: 360px; } }

/* рич-контент */
.rich-body { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 24px clamp(28px, 5vw, 80px); align-items: start; }
.seg-rich { grid-column: 1 / -1; }
.device.phone.small { --ph: 800px; }
.rich-screen { background: #fff; }
.rich-screen img { width: 390px; height: auto; padding-top: 50px; }
.rich-list { display: grid; align-content: start; }
.rich-list li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.rich-list li:last-child { border-bottom: 1px solid var(--line-2); }
.rich-list b { font-size: 19px; font-weight: 700; }
.rich-list span { color: var(--ink-2); }
@media (max-width: 860px) { .rich-body { grid-template-columns: 1fr; justify-items: center; } .rich-list { justify-self: stretch; } }

/* линейка */
.brands { display: grid; gap: 14px; }
.brand { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 48px); align-items: center; padding: clamp(16px, 2vw, 24px); border-radius: calc(var(--r) + 6px); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.brand-name { font-size: 44px; line-height: 1; }
.brand-meta { display: grid; gap: 10px; }
.brand-meta p { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.chips { display: flex; gap: 6px; }
.chips i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.brand-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.brand-row button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 0 0 1px var(--line); }
.brand-row img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .brand { grid-template-columns: 1fr; }
  .brand-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 38%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .brand-row::-webkit-scrollbar { display: none; }
  .brand-row button { scroll-snap-align: start; }
}

/* финал */
.close { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gut) clamp(64px, 8vw, 120px); display: grid; gap: 20px; justify-items: start; }
.close h2 { max-width: 18em; font-size: clamp(30px, 3.8vw, 56px); }
.close p { color: var(--ink-2); font-size: 18px; }
.close .btn { margin-top: 12px; }

/* ---------------------------------------------------------------- карточка товара (диалог) */
.pdp { width: min(1120px, calc(100vw - 48px)); max-height: min(860px, calc(100dvh - 48px)); padding: 0; border: 0; border-radius: 22px; background: #fff; color: #1b1b1b; box-shadow: 0 40px 100px -30px rgba(10,12,16,.6); overflow: hidden; }
.pdp::backdrop { background: rgba(23,26,33,.55); backdrop-filter: blur(4px); }
.pdp[open] { animation: pdp-in .38s var(--ease); }
@keyframes pdp-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.pdp-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); max-height: inherit; }
.pdp-close { position: absolute; right: 14px; top: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(0,0,0,.08); cursor: pointer; display: grid; place-items: center; }
.pdp-close svg, .pdp-nav svg { width: 22px; height: 22px; fill: none; stroke: #111; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pdp-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 22px; background: #F6F6F4; min-height: 0; }
.pdp-thumbs { display: grid; align-content: start; gap: 8px; overflow-y: auto; max-height: calc(min(860px, 100dvh - 48px) - 44px); scrollbar-width: none; padding: 2px; }
.pdp-thumbs button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.08); opacity: .7; transition: opacity .2s, box-shadow .2s; }
.pdp-thumbs button[aria-selected="true"] { opacity: 1; box-shadow: 0 0 0 2px #111; }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main { position: relative; min-width: 0; align-self: start; }
.pdp-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 14px; aspect-ratio: 3 / 4; max-height: calc(min(860px, 100dvh - 48px) - 44px); scrollbar-width: none; overscroll-behavior-x: contain; background: #e9e9e7; }
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-track img { width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.pdp-nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); display: grid; place-items: center; cursor: pointer; }
.pdp-nav.prev { left: 12px; } .pdp-nav.next { right: 12px; }
.pdp-nav:disabled { opacity: 0; pointer-events: none; }
.pdp-dots { display: none; }
.pdp-info { display: grid; align-content: start; gap: 12px; padding: 30px 28px 28px; overflow-y: auto; }
.pdp-brand { font-size: 14px; font-weight: 600; color: #555; }
.pdp-title { font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; padding-right: 40px; }
.pdp-rating { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #555; }
.pdp-rating svg { width: 16px; height: 16px; fill: #E6A817; }
.pdp-price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; }
.pdp-toast { min-height: 1.4em; font-size: 14px; color: #555; }
.pdp-q { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-top: 10px; padding: 18px; border-radius: 14px; background: var(--ground); }
.pdp-q-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--h4); color: #fff; font-weight: 750; font-variant-numeric: tabular-nums; }
.pdp-q-l { display: block; font-size: 13px; color: var(--ink-2); }
.pdp-q b { font-size: 18px; line-height: 1.3; font-weight: 650; }
@media (max-width: 860px) {
  .pdp { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .pdp-inner { display: block; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .pdp-gallery { display: block; }
  .pdp-gallery { grid-template-columns: 1fr; padding: 0; }
  .pdp-thumbs { display: none; }
  .pdp-track { border-radius: 0; max-height: none; }
  .pdp-nav { display: none; }
  .pdp-dots { display: flex; justify-content: center; gap: 6px; position: absolute; left: 0; right: 0; bottom: 12px; }
  .pdp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.25); transition: transform .25s var(--ease), background-color .25s; }
  .pdp-dots i.on { transform: scale(1.35); background: #111; }
  .pdp-close { top: max(12px, env(safe-area-inset-top)); }
  .pdp-info { padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); overflow: visible; }
}

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