/* Product photography, typography and controls share one adaptive poster layout. */
.edition, .edition-detail {
  --studio-1: #f6eee3;
  --studio-2: #d1c1aa;
  --studio-ink: #28251f;
}
:is(.edition,.edition-detail)[data-kind="Смартфон"] {
  --studio-1: #e9ede8; --studio-2: #abbdb4; --studio-ink: #172d25;
}
:is(.edition,.edition-detail)[data-kind="Смарт-часы"] {
  --studio-1: #e7e8d5; --studio-2: #a1b197; --studio-ink: #253427;
}
:is(.edition,.edition-detail)[data-kind="Наушники"] {
  --studio-1: #f3e3cf; --studio-2: #cba783; --studio-ink: #493725;
}
:is(.edition,.edition-detail)[data-kind="Ноутбук"],
:is(.edition,.edition-detail)[data-kind="Планшет"] {
  --studio-1: #e8eaf0; --studio-2: #aebacc; --studio-ink: #222d42;
}
.merch-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(24px,3.1vw,52px) clamp(12px,1.6vw,28px);
}
.edition {
  position:relative; min-width:0;
  --plate-height:clamp(306px,29vw,470px);
}
.edition .edition-card {
  display:flex; flex-direction:column; gap:0; height:100%; padding:0;
  border:0; color:var(--ink); text-decoration:none;
}
.edition .edition-poster, .edition-detail .edition-gallery {
  isolation:isolate; position:relative; overflow:hidden; box-shadow:none;
  color:var(--studio-ink);
  background:
    linear-gradient(120deg,transparent 43%,#fff6 45%,transparent 58%),
    radial-gradient(ellipse at 24% 6%,#ffffffa8,transparent 63%),
    linear-gradient(151deg,var(--studio-1) 45%,var(--studio-2));
  border-radius:14px;
}
.edition .edition-poster {width:100%; height:var(--plate-height); aspect-ratio:auto; touch-action:pan-y pinch-zoom}
.edition .edition-poster::after,.edition-detail .edition-gallery::after {
  content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  box-shadow:inset 0 0 0 1px #1b241915;border-radius:inherit;
}
.edition .photo-scene::after,.edition-detail .photo-scene.edition-gallery::after {
  background:linear-gradient(180deg,#0003 0,transparent 26%,transparent 43%,#0f120f55 68%,#050806dc 100%);
}
.edition .edition-image {
  position:absolute;left:8%;bottom:10%;width:84%;height:57%;
  min-width:0;min-height:0;object-fit:contain;mix-blend-mode:multiply;
  transition:transform .35s ease;
}
.edition .photo-scene .edition-image {
  inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:normal;
}
:is(.edition,.edition-gallery) img[src$="/macbook-air-15-m5.webp"] {object-position:75% center}
:is(.edition,.edition-gallery) img[src$="/apple-pencil-pro-4.webp"] {object-position:67% center}
.edition-heading, .gallery-title {position:absolute;z-index:2;pointer-events:none}
.edition-heading {top:6%;left:6%;right:6%}
.edition-kind,.gallery-title>span {
  display:block;font:680 .75rem/1.2 Manrope,sans-serif;letter-spacing:.065em;
}
.edition .edition-heading h2 {
  font:560 clamp(27px,2.75vw,48px)/.99 var(--serif);letter-spacing:-.063em;
  margin:6px 0 0;color:inherit;overflow-wrap:anywhere;text-wrap:balance;
}
.edition .photo-scene {color:white;background:#19221f}
.photo-scene .edition-heading {top:auto;bottom:7%;right:23%}
.edition .edition-badge {
  position:absolute;z-index:2;bottom:5%;left:6%;max-width:calc(100% - 100px);
  font:680 .76rem/1.25 Manrope,sans-serif;letter-spacing:-.01em;
}
.edition .photo-scene .edition-badge {
  top:5%;bottom:auto;left:5%;max-width:86%;padding:5px 9px;border-radius:20px;
  color:white;background:#141914a6;backdrop-filter:blur(8px);
}
.edition .edition-cycle {
  position:absolute;z-index:3;top:calc(var(--plate-height) - 44px);right:12px;
  display:inline-flex;gap:6px;align-items:center;justify-content:center;
  min-height:32px;min-width:63px;padding:6px 9px;border-radius:22px;border:1px solid #bfbfb5;
  background:#fffdf5eb;color:#183629;font:700 .75rem/1 Manrope,sans-serif;font-variant-numeric:tabular-nums;
}
.edition-cycle[hidden] {display:none}
.edition-footer {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-content:start;padding:14px 2px 12px;flex:1;border-bottom:1px solid #c9c7bb}
.edition .edition-spec {grid-column:1/-1;font:500 .88rem/1.4 Manrope,sans-serif;color:#4a5049;overflow-wrap:anywhere}
.edition .edition-sale {grid-column:1/-1;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0;padding:0}
.edition .edition-sale strong {font:760 clamp(19px,1.8vw,30px)/1.2 Manrope,sans-serif;letter-spacing:-.06em}
.edition-sale strong small {font-size:.7em;font-weight:500}
.edition-colors {display:flex;align-items:center;flex-wrap:wrap;gap:3px}
.edition .edition-colors i {position:static;display:block;width:12px;height:12px;border:1px solid #29291f35;border-radius:50%;margin:0;padding:0;background:var(--tone)}
.edition-variants {grid-column:1/-1;font-size:.75rem;color:#5b6058}
.edition .power-edition .power-cover {top:32%;border-radius:0}
.edition .edition-poster:not(.photo-scene) {
  display:grid;grid-template:auto minmax(0,1fr) / minmax(0,1fr);
  padding:clamp(12px,1.5vw,22px) 6% 38px;row-gap:8px;
}
.edition .edition-poster:not(.photo-scene) .edition-heading {position:static;grid-area:1/1}
.edition .edition-poster:not(.photo-scene) .edition-image {
  position:static;grid-area:2/1;width:94%;height:100%;place-self:center;
}
.edition .edition-poster.power-edition {padding:0;row-gap:0}
.edition .power-edition .edition-heading {padding:14px 6% 8px}
.edition .power-edition .power-cover {position:relative;inset:auto;grid-area:2/1;width:100%;height:100%}
.type-cover {
  grid-area:2/1;position:relative;isolation:isolate;overflow:hidden;
  width:100%;height:100%;display:flex;align-items:flex-end;padding:5%;
  border-radius:8px;color:#f9f6ef;background:linear-gradient(135deg,#153c3a,#345650 60%,#455951);
  container-type:inline-size;
}
.type-cover::before {
  content:"";position:absolute;z-index:-1;width:140%;aspect-ratio:1;bottom:-68%;right:-65%;
  border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 5px,#e7f2e57a 6px,transparent 7px);
}
.type-cover strong {font:540 clamp(23px,16cqw,88px)/.94 var(--serif);letter-spacing:-.05em}
.edition-gallery>.type-cover {position:absolute;left:6%;bottom:6%;width:88%;height:53%}
.studio-preview .edition {--plate-height:250px;max-width:360px}
.studio-preview .edition-heading h2 {font-size:27px}
.edition-detail .product-layout {grid-template-columns:minmax(0,1.38fr) minmax(0,.9fr);gap:clamp(28px,4.2vw,76px);align-items:start}
.edition-detail .gallery {display:block}
.edition-detail .edition-gallery {width:100%;aspect-ratio:1.35;max-height:none;min-height:365px}
.edition-gallery .gallery-title {top:6%;left:6%;right:6%}
.gallery-title h1 {
  margin:7px 0 0;max-width:98%;font:520 clamp(42px,4.8vw,82px)/.97 var(--serif);
  letter-spacing:-.073em;color:inherit;text-wrap:balance;overflow-wrap:anywhere;
}
.edition-detail .edition-gallery .enlarge {display:block;position:absolute;inset:0}
.edition-detail .edition-gallery .enlarge img {
  position:absolute;left:8%;bottom:5%;width:84%;height:61%;
  object-fit:contain;mix-blend-mode:multiply;
}
.edition-detail .edition-gallery.photo-scene {color:white;background:#18201c}
.edition-detail .edition-gallery.photo-scene .gallery-title {top:auto;bottom:8%;right:15%}
.edition-detail .edition-gallery.photo-scene .enlarge img {inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:normal}
.edition-gallery .enlarge span {z-index:3}
.edition-gallery .power-cover {top:34%}
.edition-detail .gallery-caption {margin:0;font-size:.77rem}
.edition-detail .gallery-strip {display:flex;flex-direction:row;align-items:center;gap:8px;margin-top:10px}
.edition-detail .gallery-thumb {width:clamp(47px,4.2vw,68px);max-width:none;border-radius:8px}
.edition-detail .purchase-panel {padding:14px 0 0;display:block}
.edition-detail .family-name {font-size:.78rem;color:var(--petrol);margin:0 0 8px;text-transform:none}
.order-heading {font:680 clamp(26px,2.8vw,44px)/1.06 Manrope,sans-serif;letter-spacing:-.065em}
.edition-detail .item-lead {font-size:clamp(15px,1.15vw,18px);margin:12px 0;line-height:1.5}
.edition-detail .buy-action {border-radius:10px;background:#093e35}
.edition-detail .buy-action::after {content:none}
.model-editorial {
  margin-top:clamp(32px,5vw,80px);display:grid;grid-template-columns:1fr 1.1fr;
  background:#153c32;color:#faf7ed;overflow:hidden;border-radius:14px;
}
.editorial-copy {display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,4.3vw,75px)}
.editorial-copy h2 {font:510 clamp(34px,4vw,72px)/.99 var(--serif);letter-spacing:-.06em;text-wrap:balance;margin:0}
.editorial-copy p {font:500 clamp(15px,1.2vw,19px)/1.52 Manrope,sans-serif;margin:16px 0 0;color:#e0ebe1;max-width:43ch}
.editorial-photo {position:relative;display:grid;place-items:center;min-width:0;min-height:270px;background:linear-gradient(125deg,var(--studio-2),var(--studio-1));overflow:hidden}
.editorial-photo img {position:absolute;width:90%;height:85%;object-fit:contain;mix-blend-mode:multiply}
.editorial-photo.photo-scene img {inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:normal}
.model-editorial.text-only {display:block}
.text-only .editorial-copy {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:20px;align-items:center}
.text-only .editorial-copy p {margin:0}
@media(hover:hover){
  .edition-card:hover .edition-image {transform:scale(1.035)}
  .edition-cycle:hover {background:white;border-color:#3d5244}
}
@media(max-width:1050px){
  .merch-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .edition {--plate-height:clamp(280px,40vw,400px)}
  .edition-detail .product-layout {grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:25px}
}
@media(max-width:760px){
  .merch-grid {gap:23px 11px}
  .edition {--plate-height:clamp(218px,64vw,335px)}
  .edition .edition-poster {border-radius:11px}
  .edition-heading {left:7%;right:6%;top:6%}
  .edition .edition-heading h2 {font-size:clamp(22px,5.65vw,36px);line-height:1;letter-spacing:-.062em;text-wrap:initial}
  .edition .photo-scene .edition-heading {bottom:19%;right:5%}
  .edition-kind {font-size:.68rem}
  .edition .edition-badge {max-width:calc(100% - 55px);font-size:.68rem;bottom:5%}
  .edition .edition-image {height:51%;bottom:15%;left:6%;width:88%}
  .edition .edition-cycle {right:7px;top:calc(var(--plate-height) - 36px);min-height:28px;min-width:42px;padding:5px 6px;font-size:.66rem;gap:3px}
  .edition-cycle svg {width:12px;height:12px}
  .edition-footer {padding:8px 0 9px;gap:4px}
  .edition .edition-spec {font-size:.78rem;min-height:2.8em}
  .edition .edition-sale strong {font-size:clamp(16px,3.8vw,21px)}
  .edition .edition-colors i {width:8px;height:8px}
  .edition-variants {font-size:.69rem}
  .edition-detail .product-layout {display:block}
  .edition-detail .edition-gallery {min-height:0;aspect-ratio:1.05;border-radius:12px}
  .gallery-title h1 {font-size:clamp(34px,9.2vw,52px)}
  .edition-detail .purchase-panel {padding:22px 0 0}
  .edition-detail .order-heading {font-size:clamp(24px,5.6vw,33px)}
  .edition-detail .gallery-strip {margin-top:7px}
  .edition-detail .family-name {margin-bottom:5px}
  .model-editorial {grid-template-columns:minmax(0,1fr)}
  .editorial-photo {min-height:0;aspect-ratio:1.8}
  .editorial-copy {padding:22px}
}
@media(max-width:360px) {
  .edition .edition-heading h2 {font-size:20px}
  .edition .edition-sale {flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce) {
  .edition .edition-image {transition:none}
}
