/* Mila Art — «розовый рабочий стол»: клубничный блаш и крем из пинов, окна ОС с артами (по 109ichiki),
   полутоновый готический знак и CRT-вход (по KVS). Линии тонкие, без жирных обводок и теней-подложек. */
:root {
  --blush: #FCE4EB;
  --paper: #FFF8F4;
  --rose: #F7A0B8;
  --rose-2: #FBD0DC;
  --hot: #E64C8A;
  --cream: #FCF7D9;
  --choco: #3E2B28;
  --cocoa: #7A5A55;
  --grid: rgba(62, 43, 40, .07);
  --char: #FF9CC4;

  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --disp: 'Rubik Mono One', 'IBM Plex Mono', sans-serif;
  --goth: 'Grenze Gotisch', serif;

  --r: 22px;
  --pad: clamp(16px, 3.5vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 10px;
  color: var(--choco);
  font: 400 16px/1.6 var(--mono);
  background-color: var(--blush);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { fill: currentColor; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
::selection { background: var(--hot); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 20px; top: -60px; z-index: 100; background: var(--choco); color: var(--paper); padding: 8px 14px; }
.skip:focus { top: 20px; }

/* рамка «экрана» поверх всего */
.frame {
  /* высота — от видимой области (--vvh из app.js): адресная строка на телефоне прячется при прокрутке,
     и рамка с inset отставала от нижнего края экрана */
  position: fixed; inset: 10px 10px auto; height: calc(var(--vvh, 100vh) - 20px); z-index: 50; pointer-events: none;
  border: 1px solid var(--choco); border-radius: 22px;
  /* «паспарту» снаружи рамки: контент не просвечивает в полосках у края окна */
  box-shadow: 0 0 0 160px var(--blush);
}
/* нижний край: контент плавно растворяется, а не режется линией */
.veil-bottom {
  position: fixed; left: 11px; right: 11px; top: calc(var(--vvh, 100vh) - 67px); height: 56px; z-index: 29; pointer-events: none;
  border-radius: 0 0 21px 21px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--blush) 92%, transparent));
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 75%); mask-image: linear-gradient(to bottom, transparent, #000 75%);
}
.side-tab {
  position: fixed; right: 10px; top: 42%; z-index: 51;
  writing-mode: vertical-rl;
  padding: 16px 8px; border-radius: 8px 0 0 8px;
  background: var(--hot); color: #fff; text-decoration: none;
  font: 600 13px/1 var(--mono); letter-spacing: .04em;
}
.side-tab:hover { background: var(--choco); }

/* ---------- полутон (KVS) ---------- */
.halftone {
  font-family: var(--goth); font-weight: 900;
  color: transparent;
  background-image: radial-gradient(circle, var(--hot) 0 1.8px, transparent 2.2px);
  background-size: 6px 6px;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1px var(--hot);
}
.halftone-text, .sec-title, .t-sum {
  font-family: var(--disp); font-weight: 400;
  color: transparent;
  background-image: radial-gradient(circle, var(--hot) 0 1.4px, transparent 1.75px);
  background-size: 4.5px 4.5px;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.2px var(--choco);
}

/* ---------- кнопки и сегменты (по 109ichiki) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--choco); background: var(--choco); color: var(--paper);
  font: 500 14.5px/1.1 var(--mono); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill svg { width: 17px; height: 17px; }
.pill:hover { background: var(--hot); border-color: var(--hot); color: #fff; }
.pill-hot { background: var(--hot); border-color: var(--hot); color: #fff; }
.pill-hot:hover { background: var(--choco); border-color: var(--choco); }
.pill-line { background: transparent; color: var(--choco); }
.pill-line:hover { background: var(--choco); border-color: var(--choco); color: var(--paper); }

.seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px;
  border: 1px solid var(--choco); border-radius: 14px; background: var(--paper);
}
.seg > a, .seg > button {
  border: 0; background: transparent; cursor: pointer; text-decoration: none;
  padding: 7px 14px; border-radius: 10px;
  transition: background-color .25s ease, color .25s ease;
  font: 500 14px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--choco);
  white-space: nowrap;
}
.seg > a:hover, .seg > button:hover { background: var(--rose-2); }
.seg > [aria-pressed="true"], .seg > [aria-selected="true"], .seg > [aria-current="true"] { background: var(--choco); color: var(--paper); }
.seg-sm > button { padding: 6px 9px; font-size: 12.5px; }

[data-only="ru"] { display: none !important; }
html[lang="ru"] [data-only="ru"] { display: revert !important; }
html[lang="ru"] .nav a[data-only="ru"] { display: inline-block !important; }

/* ---------- шапка ---------- */
.bar {
  position: sticky; top: 11px; z-index: 30; isolation: isolate;
  display: flex; align-items: center; gap: 16px;
  padding: 14px calc(var(--pad) + 4px);
  border-radius: 21px 21px 0 0;
}
.bar::before {
  /* верхний край: размытая подложка с плавным градиентом вниз */
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: -12px; bottom: -34px;
  border-radius: 21px 21px 0 0;
  background: linear-gradient(to bottom, var(--blush) 0%, color-mix(in srgb, var(--blush) 88%, transparent) 55%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--choco); }
.brand-name { font: 600 15px/1 var(--mono); }
.nav { margin: 0 auto; }
.bar-end { display: flex; align-items: center; gap: 10px; flex: none; }

/* ---------- hero: рабочий стол ---------- */
.hero {
  position: relative;
  min-height: min(calc(100vh - 90px), 900px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 24px; padding: 8px var(--pad) 48px;
}
.hero-stage { position: relative; min-height: 600px; }
.warp { position: absolute; left: 0; top: 8%; width: 66%; height: 78%; overflow: visible; }
.warp path { fill: none; stroke: var(--choco); stroke-width: 1; opacity: .45; vector-effect: non-scaling-stroke; }
/* главный арт — большое окно справа; арт целиком, без резких обрезов */
.hwin-main {
  right: 3%; top: 0; height: 100%; width: auto; aspect-ratio: 768 / 1311;
  max-width: 62%; z-index: 2; cursor: default;
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--char) 70%, transparent);
  transition: box-shadow .6s ease;
}
.hwin-main:hover { transform: none; }
.hero-main { position: relative; height: calc(100% - 31px); background: #fff; overflow: hidden; }
.hero-main img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; object-position: 50% 100%;
  opacity: 0; transform: scale(1.03);
  transition: opacity .5s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}
.hero-main img.on { opacity: 1; transform: none; }
.hwin-main.swap { animation: winSwap .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes winSwap { 35% { transform: scale(.975); } }

/* окна ОС с другими девочками */
.hwin {
  position: absolute; z-index: 3; display: block; padding: 0; cursor: pointer; text-align: left;
  border: 1px solid var(--choco); border-radius: 14px; background: var(--paper); overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.hwin[hidden] { display: none; }
.hwin:hover { transform: translateY(-4px); }
.win-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 6px 12px; border-bottom: 1px solid var(--choco); background: var(--paper);
  font: 400 13px/1.3 var(--mono); color: var(--choco);
}
.win-ctl { letter-spacing: .25em; }
.hwin > img { width: 100%; height: calc(100% - 31px); object-fit: cover; object-position: 50% 8%; background: #fff; }
.hwin[data-slot="a"] { left: 3%; top: 10%; width: 40%; aspect-ratio: 4 / 4.6; }
.hwin[data-slot="b"] { left: 24%; bottom: 4%; width: 25%; aspect-ratio: 4 / 4.4; z-index: 4; }
.hwin .hint {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px;
  background: var(--choco); color: var(--paper); font-size: 12px;
}

.blob { position: absolute; z-index: 5; width: 112px; height: 104px; filter: drop-shadow(0 10px 14px rgba(150, 40, 80, .25)); pointer-events: none; }
.blob-1 { left: -10px; top: -8px; rotate: -14deg; }
.blob-2 { right: 2%; top: 4%; width: 92px; height: 86px; rotate: 12deg; }
.blob-3 { left: 52%; bottom: -16px; width: 96px; height: 90px; rotate: -6deg; }
.spark { position: absolute; z-index: 5; color: var(--hot); pointer-events: none; }
.spark.s1 { width: 28px; height: 28px; left: 46%; top: 6%; }
.spark.s2 { width: 18px; height: 18px; left: 6%; bottom: 30%; color: var(--choco); }

.hero-meta {
  position: absolute; left: calc(var(--pad) + 4px); bottom: 40px; z-index: 6;
}
.hero-title { margin: 0; display: flex; flex-direction: column; font-weight: 400; }
.hero-name { font: 900 46px/1 var(--goth); margin-bottom: 6px; }
.hero-role { font: 400 15px/1.45 var(--mono); }
.barcode {
  display: block; width: 150px; height: 26px; margin-top: 12px;
  background: repeating-linear-gradient(90deg,
    var(--choco) 0 2px, transparent 2px 4px, var(--choco) 4px 5px, transparent 5px 8px,
    var(--choco) 8px 11px, transparent 11px 12px, var(--choco) 12px 13px, transparent 13px 16px);
}

.hero-cta { align-self: end; display: grid; gap: 18px; padding-bottom: 8px; }
.hero-tag { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.hero-lead { margin: 0; color: var(--cocoa); font-size: 15px; }
.now {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%;
  padding: 0; border: 1px solid var(--choco); border-radius: 14px; transition: background-color .25s ease; background: var(--paper);
  text-align: left; cursor: pointer; overflow: hidden;
}
.now-file { grid-column: 1 / -1; padding: 6px 12px; border-bottom: 1px solid var(--choco); font-size: 13px; }
.now-name { padding: 10px 0 12px 12px; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.now-price { align-self: center; padding-right: 12px; font-size: 13.5px; white-space: nowrap; }
.now-price b { font: 400 20px var(--disp); color: var(--hot); }
.now:hover { background: var(--cream); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.proof { margin: 0; font-size: 13.5px; color: var(--cocoa); }
.proof b { color: var(--choco); }
.proof-stars { color: var(--hot); letter-spacing: .1em; }
.proof .sep { margin: 0 6px; }
/* рейтинг открывает альбом отзывов с VGen */
/* карточка: кружки с работами слева, справа рейтинг и «смотреть» — сразу видно, что это кнопка */
.proof-rv {
  display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 4px 10px;
  margin: 0 0 8px; padding: 7px 12px 7px 8px; border: 1px solid var(--choco); border-radius: 16px; background: var(--paper);
  font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background-color .2s ease;
}
.proof-rv + .sep { display: none; }
.rv-faces { grid-row: span 2; }
.rv-top { line-height: 1.35; }
.rv-cta { justify-self: start; }
.proof-rv:hover { background: var(--cream); }
.proof-link { color: var(--choco); }
.rv-faces { display: inline-flex; }
.rv-faces img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  border: 1px solid var(--choco); background: #fff;
}
.rv-faces img + img { margin-left: -12px; }
.rv-cta {
  padding: 3px 9px; border-radius: 999px; background: var(--hot); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap; transition: background-color .2s ease;
}
.proof-rv:hover .rv-cta { background: var(--choco); }

/* ---------- секции-окна ---------- */
.win.sec {
  max-width: var(--max); margin: 56px auto; scroll-margin-top: 90px;
  border: 1px solid var(--choco); border-radius: var(--r); background: var(--paper);
  overflow: hidden;
}
.win.sec > .win-bar { padding: 8px 16px; font-size: 13.5px; background: var(--rose-2); }
.sec-narrow { max-width: 980px !important; }
.win-body { padding: clamp(20px, 4vw, 44px); }
.sec-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px 32px; margin-bottom: clamp(22px, 3vw, 32px);
}
.sec-title { margin: 0; font-size: clamp(30px, 4.6vw, 56px); line-height: 1; }
.sec-lead { margin: 0; max-width: 32em; color: var(--cocoa); font-size: 15px; }

/* ---------- галерея ---------- */
.chips { flex-wrap: wrap; }
.chips > button sup { font-size: 10.5px; margin-left: 3px; opacity: .7; }
/* колонки раскладывает app.js; --cols задаёт их число */
.masonry { --cols: 4; display: flex; align-items: flex-start; gap: 14px; }
.m-col { flex: 1 1 0; min-width: 0; }
.masonry { flex-wrap: wrap; }
.m-wide { flex: 0 0 100%; min-width: 0; }
.m-wide:empty { display: none; }
.tile {
  display: block; width: 100%; margin: 0 0 14px; padding: 0;
  cursor: zoom-in; text-align: left;
  border: 1px solid var(--choco); border-radius: 14px; background: var(--paper); overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -18px rgba(150, 40, 80, .45); }
.tile img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tile:hover img { transform: scale(1.03); }
.tile .win-bar { padding: 5px 10px; font-size: 11.5px; transition: background-color .2s ease; }
.tile .win-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile img { width: 100%; height: auto; background: var(--blush); opacity: 0; }
.tile.loaded img { opacity: 1; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.tile:hover .win-bar { background: var(--rose); }
.more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.more-wrap[hidden] { display: none; }

/* набор YCH — стопка окон; варианты сменяют друг друга с перекрёстным затуханием.
   Поля по бокам и сверху — чтобы краешки задних окон не залезали на соседние плитки. */
.stack { position: relative; margin: 26px 0 14px; padding: 0 8px; }
.stack > .tile { position: relative; z-index: 2; margin: 0; }
.stack-back {
  position: absolute; inset: 0 8px; z-index: 1;
  border: 1px solid var(--choco); border-radius: 14px; background: var(--rose-2);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.stack-back.b1 { transform: translate(4px, -6px) rotate(1.5deg); background: var(--paper); }
.stack-back.b2 { transform: translate(-4px, -10px) rotate(-1.8deg); }
.stack:hover .stack-back.b1 { transform: translate(5px, -8px) rotate(2.2deg); }
.stack:hover .stack-back.b2 { transform: translate(-5px, -12px) rotate(-2.6deg); }
.ystage { position: relative; display: grid; overflow: hidden; background: var(--blush); }
.ystage img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.tile .ystage img { opacity: 0; transition: opacity .7s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.tile.loaded .ystage img.on { opacity: 1; }
/* пустой альбом: вместо артов — приглашение заказать первый */
.empty-body {
  display: grid; place-content: center; justify-items: center; gap: 8px; aspect-ratio: 1 / 1.15;
  padding: 16px 12px; text-align: center;
  background: var(--blush) radial-gradient(circle, rgba(230, 76, 138, .18) 0 1.2px, transparent 1.6px) 0 0 / 9px 9px;
}
.empty-name { font: 400 clamp(15px, 1.6vw, 19px)/1.15 var(--disp); }
.empty-kicker { color: var(--cocoa); font-size: 12px; }
.empty-offer { max-width: 14em; color: var(--hot); font-weight: 600; font-size: 14px; line-height: 1.3; }
.empty-body .pill { min-height: 36px; padding: 0 14px; font-size: 13px; margin-top: 4px; }
.badge {
  position: absolute; left: 50%; bottom: 10px; translate: -50% 0; z-index: 3;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: var(--choco); color: var(--paper); font: 500 11.5px/1.3 var(--mono);
}

/* ---------- лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 24px 76px;
  background: rgba(62, 43, 40, .55); backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lb-win {
  max-width: 100%; max-height: 100%; display: flex; flex-direction: column;
  border: 1px solid var(--choco); border-radius: 16px; background: var(--paper); overflow: hidden;
}
.lb-x { border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; padding: 0 2px; }
.lb-x:hover { color: var(--hot); }
.lb-fig { margin: 0; min-height: 0; display: grid; place-items: center; background: #fff; }
.lb-fig img { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); width: auto; background: #fff center / cover no-repeat; }
.lb-win { will-change: transform; }
/* альбом набора YCH */
.lb-count { margin-left: auto; color: var(--cocoa); font-size: 12px; }
.lb-count[hidden], .lb-strip[hidden], .lb-foot[hidden] { display: none; }
.lightbox.album .lb-fig img { max-height: calc(100dvh - 230px); }
.lb-strip {
  display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none;
  border-top: 1px solid var(--choco); background: var(--paper);
}
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip button {
  flex: none; width: 46px; padding: 0; border: 1px solid var(--choco); border-radius: 8px; overflow: hidden;
  background: #fff; cursor: pointer; opacity: .55; transition: opacity .2s ease, box-shadow .2s ease;
}
.lb-strip button:hover { opacity: .85; }
.lb-strip button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--hot); }
.lb-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.lb-foot { display: flex; justify-content: center; padding: 0 8px 10px; background: var(--paper); }
/* отзывы: скриншот отзыва рядом с заказанной работой (на телефоне — над ней) */
.lb-rv[hidden] { display: none; }
.lightbox.reviews .lb-win { width: min(1100px, 100%); } /* одна ширина у всех отзывов — окно не дёргается при листании */
.lightbox.reviews .lb-fig { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px; background: var(--paper); overflow: hidden; }
.lightbox.reviews .lb-fig .lb-rv {
  width: min(360px, 36%); height: auto; max-height: none; flex: none;
  border: 1px solid var(--choco); border-radius: 12px; background: #fff;
}
/* арт ужимается под окно, а не выталкивает отзыв за край */
.lightbox.reviews .lb-fig #lb-img {
  flex: 0 1 auto; min-width: 0; max-width: calc(64% - 18px); max-height: calc(100dvh - 290px);
  height: auto; object-fit: contain; border-radius: 8px;
}
.lightbox.reviews.rv-wide .lb-fig { flex-direction: column; gap: 12px; }
.lightbox.reviews.rv-wide .lb-fig #lb-img { order: -1; max-width: 100%; max-height: calc(100dvh - 470px); }
.lightbox.reviews.rv-wide .lb-fig .lb-rv { width: min(420px, 100%); }
/* шеренга моделей: активная в центре, соседи по кругу уменьшены и бледнее, как на общем арте.
   Шаг считаем от высоты сцены (cqh), а не от ширины картинки: модели разной ширины, иначе ряд кривой.
   У моделей белая подложка: multiply делает её прозрачной, и соседи наслаиваются без белых прямоугольников. */
.lb-line {
  --u: 1vh;
  position: relative; overflow: hidden; background: #fff; container-type: size; isolation: isolate;
  width: min(1100px, calc(100vw - 160px)); height: 100%;
}
/* окно шеренги — во всю высоту, сцена забирает остаток: плашка и лента под ней не перекрываются */
.lightbox.lineup .lb-win { height: calc(100dvh - 48px); }
.lightbox.lineup .lb-fig { flex: 1 1 0; display: block; }
@supports (width: 1cqh) { .lb-line { --u: 1cqh; } }
.lb-line[hidden] { display: none; }
.lb-line img {
  --dx: 0px; --sc: 1;
  position: absolute; left: 50%; bottom: 2%; height: 96%; width: auto; max-width: none; cursor: pointer;
  mix-blend-mode: multiply; background: none;
  transform: translateX(calc(-50% + var(--dx))) scale(var(--sc)); transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, filter .45s ease;
}
.lb-line img[data-pos="0"] { z-index: 4; cursor: default; }
.lb-line img[data-pos="1"], .lb-line img[data-pos="-1"] { --sc: .84; z-index: 3; opacity: .55; filter: saturate(.75); }
.lb-line img[data-pos="2"], .lb-line img[data-pos="-2"] { --sc: .72; z-index: 2; opacity: .3; filter: saturate(.6); }
.lb-line img[data-pos="3"], .lb-line img[data-pos="-3"] { --sc: .6; z-index: 1; opacity: 0; pointer-events: none; }
.lb-line img[data-pos="1"] { --dx: calc(26 * var(--u)); }
.lb-line img[data-pos="-1"] { --dx: calc(-26 * var(--u)); }
.lb-line img[data-pos="2"] { --dx: calc(48 * var(--u)); }
.lb-line img[data-pos="-2"] { --dx: calc(-48 * var(--u)); }
.lb-line img[data-pos="3"] { --dx: calc(68 * var(--u)); }
.lb-line img[data-pos="-3"] { --dx: calc(-68 * var(--u)); }
.lb-line img:not([data-pos="0"]):hover { opacity: .8; }
.lb-note { margin: 0; padding: 7px 12px; border-top: 1px solid var(--choco); background: var(--cream); font-size: 13px; text-align: center; }
.lb-note[hidden] { display: none; }
.lb-nav {
  position: fixed; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--choco); background: var(--paper); font-size: 20px;
}
.lb-nav:hover { background: var(--choco); color: var(--paper); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ---------- заказы ---------- */
.cat-tabs { display: flex; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 26px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs > button { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14.5px; padding: 9px 14px; }
.cat-tabs .open { font-size: 10px; padding: 3px 6px; border-radius: 4px; background: var(--hot); color: #fff; letter-spacing: .06em; }

.comms-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(20px, 3vw, 40px); align-items: start;
}
.cat-intro { margin-bottom: 22px; }
.cat-note { margin: 0; color: var(--cocoa); font-size: 14.5px; max-width: 36em; }

.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc {
  width: 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 18px 12px 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--choco); border-radius: 16px; background: var(--paper);
  transition: background-color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.svc:hover { background: var(--cream); transform: translateX(4px); }
/* выбранная услуга — залитая плашка, без отдельного переключателя */
.svc[aria-pressed="true"] { background: var(--rose); border-color: var(--hot); box-shadow: inset 0 0 0 1px var(--hot); }
.svc[aria-pressed="true"] .svc-desc, .svc[aria-pressed="true"] .svc-price small { color: var(--choco); }
.svc-name { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.svc-desc { display: block; font-size: 13.5px; color: var(--cocoa); margin-top: 2px; }
.svc-price { font: 400 19px/1 var(--disp); white-space: nowrap; }
/* миниатюра из альбома услуги; без альбома — пустая клеточка, чтобы строки не прыгали */
.svc-thumb {
  width: 76px; height: 92px; object-fit: cover; object-position: 50% 20%; background: #fff;
  border: 1px solid var(--choco); border-radius: 10px;
}
.svc-thumb.is-empty {
  display: grid; place-items: center; color: var(--rose); font-size: 18px;
  background: var(--blush) radial-gradient(circle, rgba(230, 76, 138, .18) 0 1.2px, transparent 1.6px) 0 0 / 8px 8px;
  border-style: dashed;
}
.svc-price small { font: 400 12.5px var(--mono); color: var(--cocoa); margin-right: 4px; }
.custom-box { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* калькулятор — окно на кремовой бумаге */
.ticket {
  position: sticky; top: 92px;
  border: 1px solid var(--choco); border-radius: 18px; background: var(--cream); overflow: hidden;
}
.ticket > .win-bar { background: var(--cream); }
.t-body { padding: 20px 20px 18px; }
.ticket-title { margin: 0 0 14px; font: 600 15px/1.2 var(--mono); }
.ticket-empty { color: var(--cocoa); margin: 0; font-size: 14.5px; }
.t-svc { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px dashed var(--choco); }
.t-svc b { font-size: 16px; }
.t-svc span { font: 400 16px var(--disp); white-space: nowrap; }
.t-group { margin-top: 16px; }
.t-label { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--cocoa); text-transform: uppercase; letter-spacing: .06em; }
.t-opts { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.t-opt {
  border: 0; background: none; cursor: pointer; padding: 4px 0;
  font-size: 14px; color: var(--choco); text-align: left;
}
.t-opt::before { content: '( ) '; white-space: pre; font-weight: 600; }
.t-opt[aria-pressed="true"]::before { content: '(●) '; color: var(--hot); }
.t-opt[aria-pressed="true"] { font-weight: 600; }
.t-opt:hover { color: var(--hot); }
.t-opt em { font-style: normal; color: var(--cocoa); margin-left: 4px; font-weight: 400; }
.t-toggles { display: grid; }
.t-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 6px 0; border: 0; background: transparent; color: var(--choco); font-size: 14px;
}
.t-toggle:hover { color: var(--hot); }
.t-toggle .box::before { content: '[ ]'; white-space: pre; font-weight: 600; margin-right: 8px; }
.t-toggle[aria-pressed="true"] .box::before { content: '[×]'; color: var(--hot); }
.t-toggle .tl { display: flex; align-items: center; }
.t-toggle .tp { color: var(--cocoa); white-space: nowrap; font-size: 13.5px; }
.t-toggle[aria-pressed="true"] .tp { color: var(--hot); font-weight: 600; }
.t-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t-step .sl { font-size: 14px; }
.t-step .sl small { display: block; font-size: 12px; color: var(--cocoa); }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper button {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; transition: background-color .2s ease, color .2s ease;
  border: 1px solid var(--choco); background: var(--paper); font-size: 16px; line-height: 1;
}
.stepper button:hover:not(:disabled) { background: var(--choco); color: var(--paper); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; }
.t-total { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--choco); }
.t-total span { font-size: 13.5px; color: var(--cocoa); }
.t-sum { font-size: 44px; line-height: 1; -webkit-text-stroke-width: 1.5px; }
.t-note { font-size: 12.5px; color: var(--cocoa); margin: 10px 0 16px; }
.t-actions { display: grid; gap: 8px; }
.t-actions .pill { width: 100%; text-align: center; }
.t-reset { background: none; border: 0; color: var(--cocoa); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 0 0; justify-self: center; }

/* условия */
.tos-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.tos-item { border: 1px solid var(--choco); border-radius: 16px; background: var(--paper); transition: background-color .25s ease; }
.tos-item[open] { background: var(--cream); }
.tos-item summary {
  list-style: none; cursor: pointer; padding: 14px 18px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px;
}
.tos-item summary::-webkit-details-marker { display: none; }
.tos-item summary::before { content: '▸'; color: var(--hot); transition: rotate .2s ease; }
.tos-item[open] summary::before { rotate: 90deg; }
.tos-item summary:hover { color: var(--hot); }
.tos-item ul { margin: 0; padding: 0 18px 16px 38px; color: var(--cocoa); font-size: 14.5px; }
.tos-item li { list-style: '— '; }
.tos-item li + li { margin-top: 6px; }

/* ---------- СНГ ---------- */
.cis-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cis-list li { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 24px; border: 1px solid var(--choco); border-radius: 18px; background: var(--paper); }
.cis-price { font: 400 clamp(30px, 4vw, 42px)/1 var(--disp); color: var(--hot); }
.cis-list h3 { margin: 0 0 6px; font-size: 17px; }
.cis-list p { margin: 0; color: var(--cocoa); font-size: 14.5px; max-width: 46em; }
.cis-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- ссылки ---------- */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-list a {
  display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 16px 22px; border: 1px solid var(--choco); border-radius: 16px; text-decoration: none; background: var(--paper);
  transition: background-color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.link-list a:hover { background: var(--rose-2); transform: translateX(4px); }
.link-list a:hover .ln-url { color: var(--hot); }
.ln-name { font-weight: 700; font-size: 17px; }
.ln-sub { color: var(--cocoa); font-size: 14px; }
.ln-url { font-size: 14px; white-space: nowrap; }

/* ---------- подвал ---------- */
.foot { text-align: center; padding: 40px var(--pad) 56px; overflow: hidden; }
.foot-mark { margin: 0; font-size: clamp(84px, 17vw, 240px); line-height: .9; }
.foot-note { margin: 18px auto 0; max-width: 46em; font-size: 13px; color: var(--cocoa); }
/* окошко-подпись разработчика */
.credit {
  display: inline-block; margin-top: 22px; min-width: 240px; text-align: left; text-decoration: none; color: var(--choco);
  border: 1px solid var(--choco); border-radius: 12px; background: var(--paper); overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.credit .win-bar { padding: 4px 10px; font-size: 11.5px; background: var(--rose-2); }
.credit-body { display: grid; gap: 2px; padding: 10px 14px 12px; font-size: 13px; }
.credit-body b { font-size: 15px; }
.credit-url { color: var(--cocoa); font-size: 12px; }
.credit:hover { transform: translateY(-3px); }
.credit:hover .credit-url { color: var(--hot); }

/* ---------- age-gate: CRT (KVS) ---------- */
.gate { position: fixed; inset: 0; z-index: 80; background: #140C0D; padding: 22px; }
html.is-adult .gate { display: none; }
html:not(.is-adult) .site, html:not(.is-adult) .side-tab, html:not(.is-adult) .frame { visibility: hidden; }
html:not(.is-adult) body { overflow: hidden; }
.crt {
  position: relative; height: 100%;
  border-radius: 54px / 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background-color: var(--blush);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .17 0 0 0 0 .16 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 90px rgba(120, 40, 70, .35), inset 0 0 18px rgba(0, 0, 0, .25);
  padding: 24px;
}
.gate-mark { margin: 0; font-size: clamp(96px, 20vw, 300px); line-height: .9; }
.gate-blob { position: absolute; width: 120px; height: 110px; filter: drop-shadow(0 10px 14px rgba(150, 40, 80, .25)); }
.gate-blob.b1 { left: 9%; top: 12%; rotate: -16deg; }
.gate-blob.b2 { right: 10%; bottom: 16%; width: 96px; height: 88px; rotate: 14deg; }
.enter {
  margin-top: clamp(24px, 6vh, 64px);
  border: 0; cursor: pointer; padding: 6px 12px;
  background: var(--hot); color: #fff;
  font: 600 15px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em;
}
.enter:hover { background: var(--choco); }
.gate-note { margin: 12px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.gate-foot { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 13px; }
.gate-foot a { color: var(--cocoa); }

/* ---------- тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 70;
  background: var(--choco); color: var(--paper); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; max-width: calc(100% - 40px); text-align: center;
  translate: -50% calc(100% + 40px); visibility: hidden;
  transition: translate .3s ease, visibility 0s .3s;
}
.toast.show { translate: -50% 0; visibility: visible; transition: translate .3s ease; }

/* ---------- движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  .blob, .gate-blob { animation: bob 6s ease-in-out infinite; }
  .blob-2 { animation-delay: -2s; }
  .blob-3, .gate-blob.b2 { animation-delay: -4s; }
  html.is-adult .hwin { animation: pop .5s cubic-bezier(.2, .9, .3, 1.2) backwards; }
  html.is-adult .hwin[data-slot="b"] { animation-delay: .15s; }
}
/* появление при прокрутке: окна «открываются», строки идут лесенкой */
html.anim .rv {
  opacity: 0; transform: translateY(26px) scale(.985);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}
html.anim .win.sec.rv { transform: translateY(40px) scale(.96); transform-origin: 50% 0; }
html.anim .rv.in { opacity: 1; transform: none; }
/* заголовок секции «проявляется» слева направо; наблюдаем за шапкой, а не за обрезанным заголовком */
html.anim .sec-head.rv .sec-title { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.6, 0, .2, 1) .2s; }
html.anim .sec-head.rv.in .sec-title { clip-path: inset(0 -2% 0 0); }
.t-sum.bump { animation: bump .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes bump { 40% { transform: scale(1.08); } }
.ticket.fresh .t-body > * { animation: fadeIn .45s ease backwards; }
.ticket.fresh .t-body > :nth-child(n+3) { animation-delay: .06s; }
.ticket.fresh .t-body > :nth-child(n+6) { animation-delay: .12s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes bob { 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack:hover .stack-back.b1 { transform: translate(4px, -6px) rotate(1.5deg); }
  .stack:hover .stack-back.b2 { transform: translate(-4px, -10px) rotate(-1.8deg); }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) 300px; }
  .comms-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
  .brand-name { display: none; }
  .masonry { --cols: 3; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-stage { min-height: 0; height: min(118vw, 640px); }
  .hero-meta { position: static; order: 2; }
  .hero-cta { order: 3; }
  .comms-grid { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: relative; top: 0; }
  .tos-list { grid-template-columns: minmax(0, 1fr); }
  .side-tab { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; padding: 6px; }
  .frame { inset: 6px 6px auto; height: calc(var(--vvh, 100vh) - 12px); border-radius: 16px; }
  .veil-bottom { left: 7px; right: 7px; top: calc(var(--vvh, 100vh) - 63px); border-radius: 0 0 15px 15px; }
  .bar { top: 7px; flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .bar-end { margin-left: auto; }
  .bar-end .pill { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .nav > a { padding: 7px 8px; font-size: 12.5px; letter-spacing: .02em; }
  .hero { padding: 0 14px 32px; gap: 18px; }
  .hero-stage { height: 128vw; }
  .warp { width: 80%; }
  .hwin-main { right: 0; max-width: 74%; }
  .hwin[data-slot="a"] { left: 0; top: 6%; width: 38%; }
  .hwin[data-slot="b"] { left: 2%; bottom: 5%; width: 32%; }
  .win-bar { font-size: 11.5px; padding: 5px 9px; }
  .hwin > img { height: calc(100% - 27px); }
  .hero-main { height: calc(100% - 27px); }
  .blob { width: 72px; height: 66px; }
  .blob-2 { width: 60px; height: 56px; }
  .blob-3 { width: 64px; height: 60px; }
  .hero-name { font-size: 40px; }
  .win.sec { margin: 32px 4px; }
  .win-body { padding: 20px 14px; }
  .masonry { --cols: 2; gap: 8px; }
  .tile { margin-bottom: 8px; }
  .tile .win-bar { font-size: 10px; padding: 4px 7px; }
  .svc { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px 14px 10px 10px; }
  .svc-thumb { grid-row: span 2; width: 72px; height: 88px; }
  .svc-price { grid-column: 2; }
  .cis-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  /* на узком экране адрес — отдельной строкой под названием, иначе длинный наезжает на имя */
  .link-list a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ln-url { grid-row: 2; white-space: normal; overflow-wrap: anywhere; }
  .ln-sub { grid-row: 3; margin-top: 4px; }
  .lightbox { padding: 60px 10px 80px; }
  .lb-nav { top: auto; bottom: 18px; translate: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-fig img { max-height: calc(100dvh - 180px); }
  .lightbox.album .lb-fig img { max-height: calc(100dvh - 300px); }
  .lb-line { width: calc(100vw - 20px); }
  .lightbox.reviews .lb-fig { flex-direction: column; justify-content: flex-start; gap: 10px; padding: 10px; overflow-y: auto; }
  .lightbox.reviews .lb-fig .lb-rv { width: min(100%, 420px); }
  .lightbox.reviews .lb-fig #lb-img, .lightbox.reviews.rv-wide .lb-fig #lb-img { max-width: 100%; max-height: calc(100dvh - 540px); flex: none; }
  .lightbox.lineup .lb-win { height: calc(100dvh - 140px); }
  .badge { font-size: 10px; padding: 3px 8px; bottom: 8px; }
  .empty-body { gap: 6px; padding: 12px 8px; }
  .empty-offer { font-size: 12.5px; }
  .empty-kicker { font-size: 11px; }
  .empty-body .pill { min-height: 32px; padding: 0 10px; font-size: 11.5px; }
  .stack { margin: 20px 0 8px; padding: 0 5px; }
  .stack-back { inset: 0 5px; }
  .crt { border-radius: 30px / 26px; }
  .gate { padding: 10px; }
  .gate-blob { width: 76px; height: 70px; }
}
