/* Звенья v2 — готовые решения (дом, подарки, организации), тиражи, окно «Подробнее». Токены — из styles.css. */

.sol { padding: 140px var(--gutter) 40px; max-width: var(--maxw); margin: 0 auto; }
.sol--gifts { padding-top: 100px; }
.sol__head { max-width: 760px; margin-bottom: 64px; }
.sol__grid { display: grid; gap: clamp(64px, 8vw, 120px); }

/* набор: фото и текст рядом, стороны чередуются */
.set { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.set:nth-child(even) .set__img { order: 2; }
.set__img { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.set__img img { width: 100%; aspect-ratio: var(--r, 3/2); object-fit: cover; }
.set__img .zv-frame { overflow: hidden; }
.set__img::after { content: ""; position: absolute; inset: 12px; background: var(--terra); opacity: 0; mix-blend-mode: multiply; transition: opacity .5s var(--ease); pointer-events: none; }
.set__img:hover::after { opacity: .12; }
.set__gen { position: absolute; right: 22px; bottom: 22px; padding: 5px 9px; background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--ink-soft); font-size: 10px; }
.set[style*="4/5"] { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.set__body { display: grid; gap: 14px; justify-items: start; }
.set__body h3 { font-size: clamp(34px, 3.6vw, 56px); }
.set__lead { color: var(--ink-soft); max-width: 44ch; }
.set__chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.set__chips li { font-size: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.set__price { display: grid; gap: 2px; margin-top: 6px; }
.set__price strong { font: 600 clamp(26px, 2.2vw, 34px)/1.1 var(--f-display); color: var(--terra); }
.set__price span { font-size: 14px; color: var(--ink-soft); }
.set__task { display: grid; gap: 4px; color: var(--ink); max-width: 44ch; }
.set .btn { margin-top: 6px; }
button.btn { background: transparent; cursor: pointer; } /* у <button> свой фон браузера */

/* для музеев: выгоды, лавки-визуализации, настоящий кейс */
.mus { padding-bottom: 120px; }
.mus__why { list-style: none; padding: 0; margin: 0 0 96px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.mus__why li { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.mus__why h3 { font-size: clamp(26px, 2.2vw, 34px); }
.mus__why p { color: var(--ink-soft); font-size: 16px; }
.mus__shops { margin-bottom: 110px; }
.mus__shops-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.mus__shops-head h3 { font-size: clamp(30px, 3vw, 46px); }
.mus__shops-head .mono { color: var(--ink-soft); }
.mus__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.shop { margin: 0; display: grid; gap: 14px; align-content: start; }
.shop .zv-frame { position: relative; overflow: hidden; }
.shop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shop figcaption { display: grid; gap: 4px; }
.shop figcaption strong { font: 600 clamp(22px, 1.8vw, 28px)/1.15 var(--f-display); }
.shop figcaption span:not(.mono) { color: var(--ink-soft); font-size: 15px; }
.shop figcaption small { color: var(--ink-soft); font-size: 11px; opacity: .8; }
.mus__cta { margin-top: 72px; }

/* кейсы организаций: тёмная полоса, три карточки в ряд */
.sol--orgs { max-width: none; background: var(--ink); color: var(--paper); padding-bottom: 120px; }
.sol--orgs > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.sol--orgs .lead, .sol--orgs .set__lead, .sol--orgs .set__price span { color: #cfc4b3; }
.sol--orgs .eyebrow, .sol--orgs .mono, .sol--orgs .set__price strong { color: var(--ochre-lt); }
.sol--orgs .zv-frame::before { border-color: rgba(255, 255, 255, .22); }
.sol--orgs .btn { color: var(--paper); border-color: var(--paper); }
.sol--orgs .set__task { color: var(--paper); }
.sol--orgs .set__gen { background: rgba(43, 42, 41, .8); color: #cfc4b3; }
.sol__grid--cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); align-items: start; }
.sol__grid--cases .set { grid-template-columns: 1fr; gap: 20px; align-items: start; }
.sol__grid--cases .set:nth-child(n) .set__img { order: 0; }
.sol__grid--cases .set__body h3 { font-size: clamp(28px, 2.4vw, 38px); }
.sol__grid--cases .set__price strong { font-size: 22px; }

/* тиражи */
.run { margin-top: 96px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, .16); }
.run__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.run__n { display: block; font: 600 clamp(40px, 4vw, 60px)/1 var(--f-display); color: var(--ochre-lt); margin-bottom: 10px; }
.run__list p { color: #cfc4b3; max-width: 34ch; }

/* окно «Подробнее» */
.sheet { width: min(1180px, 100vw - 32px); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .6); }
.sheet::backdrop { background: rgba(28, 20, 14, .62); backdrop-filter: blur(3px); }
.sheet[open] .sheet__in { animation: zvSheet .45s var(--ease); } /* анимируем содержимое, не само окно: transform на окне сбил бы fixed-курсор внутри */
@keyframes zvSheet { from { opacity: 0; transform: translateY(24px); } }
.is-sheet, .is-sheet body { overflow: hidden; }
.sheet__in { position: relative; display: grid; max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain; }
.sheet__x, .sheet__body { grid-area: 1 / 1; } /* крестик лежит поверх, не сужая текст */
/* прокрутка окна — в стиле сайта: тонкая, терракотовый ползунок, без стрелок */
.sheet__in::-webkit-scrollbar { width: 8px; }
.sheet__in::-webkit-scrollbar-track { background: transparent; }
.sheet__in::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--clay) 70%, transparent); border-radius: 8px; border: 2px solid var(--paper); }
.sheet__in::-webkit-scrollbar-thumb:hover { background: var(--terra); }
.sheet__in::-webkit-scrollbar-button { display: none; height: 0; }
.sheet__x { position: sticky; top: 12px; justify-self: end; align-self: start; margin: 12px 12px 0 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.sheet__x svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.6; fill: none; }
.sheet__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.sheet__body.is-wide { grid-template-areas: "img head" "story price" "more price"; grid-template-rows: auto auto 1fr; }
.sheet__body.is-tall { grid-template-areas: "img head" "img story" "img price" "more price"; grid-template-rows: auto auto 1fr; }
.sheet__head { grid-area: head; }
.sheet__story { grid-area: story; }
.sheet__price { grid-area: price; }
.sheet__head, .sheet__body.is-tall .sheet__story, .sheet__price { padding: clamp(28px, 4vw, 56px); display: grid; gap: 18px; justify-items: start; }
.sheet__head { padding-bottom: 8px; }
.sheet__story { justify-items: stretch !important; }
.sheet__body.is-tall .sheet__story, .sheet__price { padding-block: 16px; }
.sheet__price { padding-bottom: clamp(28px, 4vw, 56px); }
.sheet__body.is-wide .sheet__story { padding: 8px 16px 24px; }
.sheet__img { grid-area: img; margin: 0; }
.sheet__body.is-tall .sheet__img { position: sticky; top: 0; }
.sheet__img img { width: 100%; height: auto; display: block; }
/* фото целиком, без обрезки — иначе метки знаков съедут; высокое фото сужается, чтобы влезть в окно */
.sheet__pic { position: relative; width: min(100%, calc((100svh - 90px) * var(--ar))); margin-inline: auto; }
.sheet__hots { position: absolute; inset: 0; }
.sheet__hots button { all: unset; position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.sheet__hots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle, var(--terra) 0 4px, #f4ede1 4.5px 8px, transparent 8.5px); box-shadow: 0 0 0 1.5px rgba(43, 32, 22, .55), 0 2px 8px rgba(30, 20, 12, .35); transition: transform .2s var(--ease); }
.sheet__hots button::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px #f4ede1, 0 0 0 9999px rgba(20, 12, 6, .38); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.sheet__hots button.is-on::before { opacity: 1; } /* выбранный знак — в светлом круге, остальное фото притемнено */
.sheet__hots button.is-on::after, .sheet__hots button:focus-visible::after { transform: scale(1.25); }
.sheet__hots button.is-on { z-index: 1; }
.sheet__pic { overflow: hidden; }
.sheet__img figcaption { padding: 10px 16px; color: var(--ink-soft); font-size: 10px; }
.sheet__more { grid-area: more; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
.sheet__more img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.sheet__head h2 { font-size: clamp(36px, 3.6vw, 56px); }
.sheet__lead { color: var(--ink-soft); }
.sheet__mean, .sheet__case p, .sheet__case div { display: grid; gap: 6px; }
.sheet__mean { padding: 16px 18px; background: var(--paper-2); }
.sheet__case { display: grid; gap: 16px; }
.sheet__case ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.sheet__tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.sheet__tbl th { text-align: left; font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding: 0 0 8px; border-bottom: 1px solid var(--ink); }
.sheet__tbl td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet__tbl td span { display: block; font-size: 13px; color: var(--ink-soft); }
.sheet__tbl td:nth-child(2) { text-align: center; padding: 10px 12px; color: var(--ink-soft); }
.sheet__tbl td:last-child, .sheet__tbl th:last-child { text-align: right; white-space: nowrap; }
.sheet__tbl tfoot td { border-bottom: 0; color: var(--ink-soft); }
.sheet__tbl tfoot .is-total td { font: 600 24px/1.2 var(--f-display); color: var(--terra); padding-top: 4px; }
.sheet__terms { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.sheet__terms dd { margin: 4px 0 0; }
.sheet__src { font-size: 14px; color: var(--ink-soft); }
.sheet__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; width: 100%; padding: 14px 0; border-block: 1px solid var(--line); }
.sheet__sum strong { font: 600 24px/1.2 var(--f-display); color: var(--terra); }
.sheet__sum span { color: var(--ink-soft); font-size: 14px; }
.sheet__sum a { margin-left: auto; font-size: 14px; color: var(--ink); }
.sheet__part { display: grid; gap: 16px; width: 100%; scroll-margin-top: 24px; }
.sheet__part > h3 { margin: 0; font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.sheet__signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sheet__signs button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 40px; transition: border-color .2s, background .2s; }
.sheet__signs button.is-on, .sheet__signs button:focus-visible { border-color: var(--terra); background: var(--paper-2); }
.sheet__signs b { display: block; font-weight: 600; font-size: 14px; }
.sheet__signs small { display: block; font-size: 12px; line-height: 1.25; color: var(--ink-soft); }
.sheet__lens { flex: none; width: 40px; height: 40px; border-radius: 50%; background-repeat: no-repeat; background-color: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(43, 32, 22, .25); }
.sheet__read { display: flex; gap: 18px; align-items: flex-start; min-height: 128px; padding: 16px 18px; background: var(--paper-2); }
.sheet__read > p { margin: auto 0; color: var(--ink-soft); }
.sheet__read strong { display: block; font: 600 22px/1.2 var(--f-display); margin: 2px 0 6px; }
.sheet__read strong.is-gap { color: var(--ink-soft); }
.sheet__read div p { margin: 0; }
.sheet__read .mono { color: var(--ink-soft); font-size: 11px; }
.sheet__lens--big { width: 96px; height: 96px; }
.sheet__draft { color: var(--ink-soft); }

@media (max-width: 900px) {
  .sol { padding-top: 96px; }
  .sol__head { margin-bottom: 40px; }
  .set, .set[style*="4/5"] { grid-template-columns: 1fr; gap: 20px; }
  .set:nth-child(even) .set__img { order: 0; }
  .sol__grid--cases, .run__list, .mus__grid { grid-template-columns: 1fr; }
  .mus__why { grid-template-columns: 1fr 1fr; margin-bottom: 64px; }
  .sheet { width: 100vw; max-height: 100svh; margin: auto 0 0; }
  .sheet__in { max-height: 100svh; }
  .sheet__body.is-wide, .sheet__body.is-tall { grid-template-columns: 1fr; grid-template-areas: "img" "head" "story" "price" "more"; grid-template-rows: none; }
  .sheet__body.is-wide .sheet__story { padding: 16px clamp(28px, 4vw, 56px); }
  .sheet__img { position: static; }
  .sheet__pic { width: min(100%, calc(56svh * var(--ar))); }
  .sheet__lens--big { width: 72px; height: 72px; }
}


/* прокрутка страницы — та же, что в окне */
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--paper); }
html::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--clay) 70%, transparent); border-radius: 10px; border: 3px solid var(--paper); }
html::-webkit-scrollbar-thumb:hover { background: var(--terra); }
html::-webkit-scrollbar-button { display: none; height: 0; }

/* стандартные свойства — только там, где нет ::-webkit-scrollbar (Firefox): в Chrome они отключают ручную отрисовку и возвращают стрелки */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--clay) var(--paper); }
  .sheet__in { scrollbar-width: thin; scrollbar-color: var(--clay) transparent; }
}
@media (max-width: 520px) { .mus__why { grid-template-columns: 1fr; } }
