/* IRISTEK mini app — дизайн-система
   Интерфейс монохромный, акцент — фирменный оранжевый IRISTEK (#f2722c): главные кнопки и выбранное.
   Цвет кроме него дают только плёнки и фото проектов.
   Manrope — весь текст, Unbounded — только артикулы (как широкий шрифт логотипа). */

@font-face { font-family: Unbounded; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../../assets/fonts/unbounded-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Unbounded; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../../assets/fonts/unbounded-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../../assets/fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../../assets/fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../../assets/fonts/manrope-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }

/* ───────── Токены ───────── */
:root {
  --bg: #0b0b0c;
  --surface: #151516;
  --surface-2: #1e1e20;
  --surface-3: #2a2a2d;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f3;
  --text-2: #989896;
  --text-3: #646463;
  --accent: #f2722c;
  --on-accent: #ffffff;
  --accent-ink: #ff8a45;
  --badge: #ff3b30;
  --warn: #ffb23b;
  --danger: #ff5c5c;
  --paper: #f4f3ef;

  --font: Manrope, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: Unbounded, Manrope, ui-sans-serif, system-ui, sans-serif;
  --maxw: 560px;
  --tabbar-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --flake: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='2.6' numOctaves='1' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 2.2 -1'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  --sparkle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='110' height='110'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='1' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 12 -9.2'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
  --hexmesh: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='42'><path d='M12 0L24 7L24 21L12 28L0 21L0 7Z M12 28L12 42' fill='none' stroke='white' stroke-opacity='.55' stroke-width='1'/></svg>");

  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-2: #ebeae5;
  --surface-3: #dfded8;
  --line: rgba(12, 12, 14, .07);
  --line-2: rgba(12, 12, 14, .14);
  --text: #0c0c0e;
  --text-2: #686867;
  --text-3: #9b9a97;
  --accent: #ee6a22;
  --on-accent: #ffffff;
  --accent-ink: #c4520f;
  color-scheme: light;
}

/* ───────── База ───────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
html.has-sheet body { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { display: block; max-width: 100%; }
img.is-broken { visibility: hidden; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; }
[hidden] { display: none !important; }
.i { width: 22px; height: 22px; flex: none; }

/* Полоса под системными кнопками Telegram в полноэкранном режиме */
body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: calc(var(--safe-top) + 24px); z-index: 17;
  background: linear-gradient(180deg, var(--bg) calc(100% - 24px), transparent);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
html.is-scrolled body::before { opacity: 1; }

.view {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; overflow-x: clip;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 28px);
}
.no-tabs .view { padding-bottom: calc(28px + var(--safe-bottom)); }
.has-bb .view { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 100px); }
.has-bb.no-tabs .view { padding-bottom: calc(100px + var(--safe-bottom)); }

.screen.enter-push { animation: push-in .34s var(--ease); }
.screen.enter-pop { animation: fade-in .22s ease; }
.screen.enter-tab { animation: tab-in .28s var(--ease); }
@keyframes push-in { from { opacity: 0; transform: translateX(32px); } }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }

/* ───────── Шапка ───────── */
.top {
  position: relative; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-top) + 14px) 16px 10px;
}
.top__titles { flex: 1; min-width: 0; }
.top__title { font: 800 28px/1.1 var(--font); letter-spacing: -.025em; }
.top__sub { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }
.top__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top__back {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); flex: none;
}
.native-back .top__back { display: none; }
.top--home { padding-bottom: 0; }
.top--float {
  position: fixed; top: 0; left: 0; right: 0; max-width: var(--maxw); margin: 0 auto; z-index: 20;
  pointer-events: none;
}
.top--float > * { pointer-events: auto; }
.logo { height: 15px; width: auto; filter: invert(1); } /* знак IRISTEK широкий, 9,5 : 1 */
[data-theme='light'] .logo { filter: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface-2); }

.ib {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--text); flex: none;
  transition: transform .15s;
}
.ib:active { transform: scale(.92); }
.ib .i { width: 21px; height: 21px; }
.ib--glass {
  background: rgba(12, 12, 14, .38); color: #fff;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.ib__dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--badge); box-shadow: 0 0 0 2px var(--surface-2); }

/* ───────── Кнопки ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 15px; font: 750 15px var(--font); white-space: nowrap;
  transition: transform .15s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ghost { background: var(--surface-2); color: var(--text); }
.btn--light { background: #fff; color: #0a0a0c; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }

/* ───────── Таб-бар ───────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + var(--safe-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.tab {
  height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--text-3); font: 700 10.5px/1 var(--font); letter-spacing: .01em; transition: color .2s;
}
.tab__ic {
  position: relative; width: 50px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s, transform .25s var(--ease);
}
.tab__ic .i { width: 22px; height: 22px; }
.tab.is-on { color: var(--text); }
.tab.is-on .tab__ic { color: var(--text); }
.tab:active .tab__ic { transform: scale(.9); }
.tab__badge {
  position: absolute; top: -5px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center; background: var(--badge); color: #fff; font: 800 11px/1 var(--font);
  box-shadow: 0 0 0 2.5px var(--bg);
}
.tab__badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } 60% { transform: scale(.9); } }

/* ───────── Нижние кнопки (браузер / VK) ───────── */
.bb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 8px; padding: 22px 16px calc(10px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 18px);
}
html:not(.no-tabs) .bb {
  bottom: calc(var(--tabbar-h) + var(--safe-bottom)); padding-top: 22px; padding-bottom: 8px;
  background: linear-gradient(180deg, transparent, var(--bg) 46%);
}
.bb__btn {
  position: relative; overflow: hidden; flex: 1; height: 54px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center; font: 800 15.5px var(--font);
  transition: transform .15s, opacity .2s;
}
.bb__btn:active { transform: scale(.98); }
.bb__btn--main { background: var(--accent); color: var(--on-accent); }
.bb__btn--secondary { flex: 0 0 auto; padding: 0 18px; background: var(--surface-2); color: var(--text); }
.bb__btn.is-shine::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .7) 46%, transparent 60%);
  transform: translateX(-100%); animation: shine 3.2s ease-in-out 1s infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.bb__btn.is-loading span { opacity: .35; }
.bb__spin { display: none; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.bb__btn.is-loading .bb__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── Чипы, сегменты, спектр ───────── */
.chips, .seg, .spectrum, .rail, .hero__picker { scrollbar-width: none; -ms-overflow-style: none; }
.chips::-webkit-scrollbar, .seg::-webkit-scrollbar, .spectrum::-webkit-scrollbar, .rail::-webkit-scrollbar, .hero__picker::-webkit-scrollbar { display: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chips__sep { flex: none; width: 1px; height: 22px; align-self: center; background: var(--line-2); margin: 0 2px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font: 700 13.5px var(--font); white-space: nowrap;
  transition: background .2s, color .2s, transform .15s;
}
.chip:active { transform: scale(.95); }
.chip small { color: var(--text-3); font-weight: 700; font-size: 12px; }
.chip.is-on { background: var(--text); color: var(--bg); }
.chip.is-on small { color: inherit; opacity: .55; }
.chip__dot { width: 12px; height: 12px; border-radius: 50%; }
.chip--sm { height: 34px; padding: 0 12px; font-size: 13px; }

.seg-wrap {
  position: sticky; top: var(--safe-top); z-index: 6; padding: 6px 16px 8px;
  background: var(--bg);
}
.seg { display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: var(--surface-2); overflow-x: auto; }
.seg__b {
  flex: none; height: 36px; padding: 0 15px; border-radius: 999px; color: var(--text-2);
  font: 700 13.5px var(--font); white-space: nowrap; transition: background .25s var(--ease), color .2s;
}
.seg__b.is-on { background: var(--text); color: var(--bg); }
.seg--full .seg__b { flex: 1; }
.seg--glass { background: rgba(12, 12, 14, .42); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.seg--glass .seg__b { color: rgba(255, 255, 255, .72); }
.seg--glass .seg__b.is-on { background: #fff; color: #0a0a0c; }

.spectrum { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 4px; }
.spec { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--text-3); font: 700 10.5px/1 var(--font); }
.spec i {
  width: 44px; height: 44px; border-radius: 50%; display: block;
  background: radial-gradient(circle at 32% 26%, color-mix(in oklab, var(--d), white 50%), var(--d) 52%, color-mix(in oklab, var(--d), black 38%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 16px -6px var(--d);
  transition: transform .25s var(--ease), box-shadow .2s;
}
.spec:active i { transform: scale(.9); }
.spec.is-on i { transform: scale(1.08); box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--text), 0 8px 20px -6px var(--d); }
.spec.is-on span { color: var(--text); }

.mini-seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface-2); }
.mini-seg button { height: 28px; padding: 0 10px; border-radius: 8px; font: 700 12.5px var(--font); color: var(--text-3); transition: background .2s, color .2s; }
.mini-seg .is-on { background: var(--surface-3); color: var(--text); }
[data-theme='light'] .mini-seg .is-on { background: var(--surface); }

/* ───────── Выкраска ───────── */
.sw {
  --lx: .3; --peel: 20px;
  position: relative; overflow: hidden; isolation: isolate; display: block;
  background: var(--c); border-radius: 20px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--peel)), calc(100% - var(--peel)) 100%, 0 100%);
}
.sw::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 22% 8%, rgba(255, 255, 255, .24), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 38%, rgba(0, 0, 0, .3));
}
.sw__fx, .sw__light, .sw__peel { position: absolute; pointer-events: none; display: block; }
.sw__fx { inset: 0; z-index: 2; }
/* Свет стоит на месте; блик живёт в верхней половине, низ чистый под текст */
.sw__light {
  top: -10%; bottom: -10%; left: -70%; right: -70%; z-index: 3;
  transform: translateX(calc((var(--lx) - .5) * 55%));
  -webkit-mask-image: linear-gradient(180deg, #000 18%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 18%, transparent 62%);
}
.sw--hero .sw__light { -webkit-mask-image: none; mask-image: none; transition: transform .12s linear; }
.sw--gloss .sw__light {
  background:
    linear-gradient(112deg, transparent 39%, rgba(255, 255, 255, .55) 47%, rgba(255, 255, 255, .12) 50%, transparent 55%),
    linear-gradient(112deg, transparent 57%, rgba(255, 255, 255, .14) 60%, transparent 63%);
}
.sw--satin .sw__light { background: linear-gradient(112deg, transparent 33%, rgba(255, 255, 255, .26) 47%, transparent 61%); }
.sw--matte .sw__light { background: radial-gradient(22% 55% at 50% 30%, rgba(255, 255, 255, .13), transparent 72%); }
.sw--matte .sw__fx { background-image: var(--noise); opacity: .12; mix-blend-mode: overlay; }
.sw__peel {
  right: 0; bottom: 0; width: var(--peel); height: var(--peel); z-index: 5;
  background: linear-gradient(135deg, #9d9d98 0%, #dcdcd6 34%, #fbfbf8 48.5%, transparent 50%);
  filter: drop-shadow(-1.5px -1.5px 2px rgba(0, 0, 0, .35));
}

/* эффекты */
.sw--metallic::before { background: radial-gradient(140% 95% at 28% 12%, color-mix(in oklab, var(--c), white 30%), transparent 64%), radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0, 0, 0, .28)), linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .26)); }
.sw--metallic .sw__fx { background-image: var(--flake); background-size: 70px; mix-blend-mode: soft-light; opacity: .45; }
.sw--glitter .sw__fx { background-image: var(--sparkle), var(--flake); background-size: 64px, 70px; mix-blend-mode: screen, soft-light; opacity: .7; }
.sw--pearl .sw__fx {
  background: linear-gradient(125deg, rgba(255, 120, 220, .45), rgba(120, 220, 255, .45) 35%, rgba(255, 240, 170, .4) 65%, rgba(170, 140, 255, .45));
  background-size: 240% 100%; background-position: calc(var(--lx) * 100%) 0; mix-blend-mode: soft-light;
}
/* Хамелеон: основной цвет плёнки (--c) занимает выкраску, второй (--c2) — отлив, который бежит за светом.
   «Зелено/черный» так и выглядит: чёрная плёнка с зелёной полосой отлива, а не зелёная */
.sw--chameleon { background: linear-gradient(135deg, var(--c) 50%, color-mix(in srgb, var(--c2) 20%, var(--c))); }
.sw--chameleon .sw__fx {
  background: linear-gradient(115deg, transparent 0%, transparent 30%, var(--c2) 47%, color-mix(in srgb, var(--c2) 40%, transparent) 56%, transparent 68%, transparent 100%);
  background-size: 260% 100%; background-position: calc(var(--lx) * 100%) 0; opacity: .5;
}
/* Матовый хром (все хромы в каталоге — Matt Chrome): сатиновый отлив, широкий яркий блик и глубокий спад к краям */
.sw--chrome {
  background:
    radial-gradient(120% 85% at 30% 18%, color-mix(in oklab, var(--c), white 42%), transparent 62%),
    radial-gradient(130% 130% at 50% 45%, transparent 50%, color-mix(in oklab, var(--c), black 45%)),
    var(--c);
}
.sw--chrome .sw__fx { background-image: var(--flake); background-size: 70px; mix-blend-mode: soft-light; opacity: .35; }
.sw--carbon .sw__fx {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, .09) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .09) 75%),
    linear-gradient(-45deg, rgba(0, 0, 0, .4) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .4) 75%);
  background-size: 9px 9px;
}
.sw--texture .sw__fx { background-image: var(--noise); opacity: .45; mix-blend-mode: overlay; background-size: 90px; }
.sw--camo .sw__fx {
  background:
    radial-gradient(26% 20% at 22% 26%, color-mix(in oklab, var(--c), black 45%) 97%, transparent 100%),
    radial-gradient(20% 30% at 74% 18%, color-mix(in oklab, var(--c), white 28%) 97%, transparent 100%),
    radial-gradient(32% 18% at 58% 66%, color-mix(in oklab, var(--c), black 55%) 97%, transparent 100%),
    radial-gradient(18% 26% at 16% 78%, color-mix(in oklab, var(--c), #6b7a3a 50%) 97%, transparent 100%),
    radial-gradient(22% 16% at 86% 56%, color-mix(in oklab, var(--c), white 18%) 97%, transparent 100%),
    radial-gradient(26% 18% at 44% 40%, color-mix(in oklab, var(--c), #3a3326 60%) 97%, transparent 100%);
}
.sw--clear { background: linear-gradient(150deg, #353b43, #16191d 70%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.sw--clear .sw__fx { background-image: var(--hexmesh); background-size: 22px 38.5px; opacity: .3; }
.sw--clear.sw--gloss .sw__light { filter: brightness(1.3); }
.sw--tint { background: linear-gradient(180deg, #8ab5d8 0%, #dbe7ee 45%, #cdb78c 46.5%, #6f6b61 60%, #2c2d30 100%); }
.sw--tint .sw__fx { background: #07090b; opacity: calc(.97 - var(--vlt, .2) * .9); }
.sw__vlt { position: absolute; left: 14px; bottom: 12px; z-index: 6; font: 800 30px/1 var(--display); color: #fff; letter-spacing: -.04em; }
.sw__vlt small { font-size: 14px; opacity: .7; margin-left: 2px; }
/* В карточке плёнки процент крупно наверху — внизу подсказка и переключатель */
.sw--hero .sw__vlt { top: calc(var(--safe-top) + 78px); bottom: auto; left: 20px; font-size: 76px; }
.sw--hero .sw__vlt small { font-size: 30px; }
.sw--holo { background: conic-gradient(from calc(var(--lx) * 300deg) at 40% 40%, #ffa6e6, #a6ecff, #d0ffa6, #fff4a6, #ffb8ff, #a6dcff, #ffa6e6); }
.sw--holo .sw__fx { background-image: var(--flake); background-size: 100px; mix-blend-mode: overlay; }
.sw--frost .sw__fx { background-image: var(--noise); opacity: .55; mix-blend-mode: screen; background-size: 70px; }
.tone-light::before { background: radial-gradient(120% 80% at 22% 8%, rgba(255, 255, 255, .4), transparent 58%), linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .14)); }

/* ───────── Карточка плёнки ───────── */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 16px; }
.grid--products { gap: 18px 10px; }
.fc {
  position: relative; aspect-ratio: 3 / 4; border-radius: 20px; cursor: pointer; color: #fff;
  transition: transform .2s var(--ease);
  content-visibility: auto; contain-intrinsic-size: 160px 214px;
}
.fc:active { transform: scale(.965); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.fc__sw { position: absolute; inset: 0; }
.fc .sw::after { content: ''; position: absolute; inset: 0; z-index: 4; background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .34)); pointer-events: none; }
.fc .tone-light::after { background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, .2)); }
.fc__top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 10px 0 10px; }
.fc__code {
  font: 700 11.5px/1 var(--display); letter-spacing: .01em; padding: 6px 8px; border-radius: 9px;
  background: rgba(0, 0, 0, .24); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fc__fav, .pc__fav {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .24); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fc__fav .i, .pc__fav .i { width: 18px; height: 18px; }
.fav.is-on { color: var(--badge); }
.fc__fav.is-on { background: rgba(255, 255, 255, .92); }
.fav.pop { animation: heart .45s var(--ease); }
@keyframes heart { 40% { transform: scale(1.35); } 70% { transform: scale(.9); } }
.fc__bottom { position: absolute; left: 0; right: 22px; bottom: 0; z-index: 6; padding: 0 12px 12px; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.fc[data-tone='light'] { color: #111; }
.fc[data-tone='light'] .fc__bottom { text-shadow: none; }
.fc[data-tone='light'] .fc__code { background: rgba(255, 255, 255, .5); }
.fc__tag {
  display: inline-block; margin-bottom: 6px; padding: 4px 7px; border-radius: 7px;
  font: 800 9.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: none;
}
.fc[data-tone='light'] .fc__tag { background: rgba(0, 0, 0, .1); }
.fc__name { font: 750 15px/1.15 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc__price { font: 650 12.5px/1.2 var(--font); opacity: .86; margin-top: 4px; }
.fc__price small { opacity: .75; font-weight: 600; }
.fc--rail { width: 146px; flex: none; }

/* ───────── Карточка товара ───────── */
.pc { display: flex; flex-direction: column; gap: 8px; cursor: pointer; min-width: 0; }
/* Только для новых карточек (подгрузка, смена раздела без перехода) — один раз */
.fc.is-enter, .pc.is-enter { animation: card-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.rail .pc { width: 150px; flex: none; }
.pc__media {
  position: relative; aspect-ratio: 1; border-radius: 20px; background: var(--paper); overflow: hidden;
  display: grid; place-items: center; transition: transform .2s var(--ease);
}
.pc:active .pc__media { transform: scale(.97); }
.pc__img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.pc__fav { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .06); color: #111; backdrop-filter: none; }
.pc__badge { position: absolute; left: 8px; top: 8px; padding: 5px 8px; border-radius: 8px; background: #111; color: var(--warn); font: 800 10px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; }
.pc__name { font: 650 13.5px/1.3 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.pc__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.pc__price { font: 800 15px var(--font); white-space: nowrap; }
.pc__add {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--on-accent); transition: transform .15s;
}
.pc__add:active { transform: scale(.88); }
.pc__add .i { width: 20px; height: 20px; stroke-width: 2.4; }
.pc__in { font: 700 12px var(--font); color: var(--accent-ink); }

/* ───────── Секции и ленты ───────── */
.block { margin-top: 30px; }
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 16px; margin-bottom: 12px; }
.sh__t { font: 800 20px/1.15 var(--font); letter-spacing: -.02em; }
.sh__s { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.sh__more { display: inline-flex; align-items: center; gap: 2px; color: var(--text-2); font: 700 13.5px var(--font); white-space: nowrap; }
.sh__more .i { width: 16px; height: 16px; }
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 8px; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.rail > * { scroll-snap-align: start; }
.mini-h { font: 800 11.5px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 20px 16px 10px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--font); color: var(--text-2); }
.kicker .i { width: 14px; height: 14px; }
.fine { font-size: 12.5px; line-height: 1.45; color: var(--text-3); margin-top: 12px; }
.fine .i { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.card { margin: 12px 16px 0; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.card__t { font: 750 15px var(--font); margin-bottom: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 8px;
  background: var(--surface-2); color: var(--text); font: 750 11.5px var(--font); letter-spacing: .01em; white-space: nowrap;
}
.tag--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.tag--warn { background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--warn); }

/* ───────── Главная ───────── */
.top--home { padding-bottom: 6px; }
.searchbar {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); height: 48px; margin: 4px 16px 0; padding: 0 6px 0 14px;
  border-radius: 14px; background: var(--surface-2); color: var(--text-3); font: 600 15px var(--font); text-align: left;
}
.searchbar > .i { width: 20px; height: 20px; }
.searchbar span { flex: 1; }
.searchbar__scan { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); }

.works { margin-top: 14px; }
.works__track { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.works__track::-webkit-scrollbar { display: none; }
.work {
  position: relative; flex: none; width: 100%; aspect-ratio: 1 / 1.08; overflow: hidden; border-radius: 22px;
  scroll-snap-align: start; background: #141414; color: #fff; cursor: pointer;
}
.work__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .84)); }
.work__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.work__k { font: 700 12.5px var(--font); color: rgba(255, 255, 255, .72); }
.work__t { font: 800 24px/1.15 var(--font); letter-spacing: -.02em; margin-top: 4px; }
.work__s { font: 600 13.5px var(--font); color: rgba(255, 255, 255, .78); margin-top: 6px; }
.work__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill .i { width: 16px; height: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); color: #fff; font: 700 14px var(--font); white-space: nowrap;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pill--solid { background: #fff; color: #0b0b0c; }
.pill__sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.works__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.works__dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .25s var(--ease), background .25s; }
.works__dots i.is-on { width: 18px; background: var(--text); }

.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.cat {
  display: flex; flex-direction: column; padding: 8px 8px 12px; border-radius: 20px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .15s;
}
.cat:active { transform: scale(.97); }
.cat__visual { display: grid; place-items: center; aspect-ratio: 16 / 11; margin-bottom: 10px; overflow: hidden; border-radius: 14px; background: var(--paper); }
.cat__img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.cat__img--cover { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.cat__mosaic { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; }
.cat__mosaic i { display: block; }
.cat__t { padding: 0 4px; font: 750 15px/1.2 var(--font); }
.cat__s { padding: 2px 4px 0; font-size: 12.5px; color: var(--text-2); }

.promo {
  display: flex; flex-direction: column; overflow: hidden; width: calc(100% - 32px); margin: 30px 16px 0;
  border-radius: 22px; background: #121213; color: #fff; text-align: left; border: 1px solid rgba(255, 255, 255, .06);
}
.promo__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.promo__img { width: 100%; height: 100%; object-fit: cover; }
.promo__body { display: flex; flex-direction: column; padding: 16px 18px 18px; }
.promo__k { font: 700 12.5px var(--font); color: rgba(255, 255, 255, .6); }
.promo__t { margin: 4px 0 6px; font: 800 28px/1.1 var(--font); letter-spacing: -.025em; }
.promo__s { max-width: 320px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.promo__price { align-self: flex-start; height: 38px; margin-top: 14px; padding: 0 14px; border-radius: 999px; background: #fff; color: #0b0b0c; font: 700 14px/38px var(--font); }

.feature {
  display: flex; align-items: center; gap: 14px; width: calc(100% - 32px); margin: 12px 16px 0; padding: 10px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: left;
}
.feature__img { width: 92px; height: 92px; flex: none; border-radius: 15px; object-fit: cover; background: var(--surface-2); }
.feature__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.feature__k { font: 700 12px var(--font); color: var(--text-2); }
.feature__t { font: 750 15px/1.3 var(--font); }
.feature__s { font-size: 13px; color: var(--text-2); }
.feature__chev { width: 18px !important; color: var(--text-3); }

.dot-sw {
  flex: none; width: 48px; height: 48px; border-radius: 50%; padding: 3px; display: block;
  box-shadow: inset 0 0 0 2px transparent; transition: transform .2s var(--ease), box-shadow .2s;
}
.dot-sw > .sw { width: 100%; height: 100%; border-radius: 50%; clip-path: none; }
.dot-sw.is-on { box-shadow: inset 0 0 0 2px var(--text); }
.dot-sw:active { transform: scale(.92); }

.foot { padding: 30px 16px 0; }
.rows { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.rows--card { margin: 0 16px; }
.row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px; text-align: left; color: var(--text); cursor: pointer; }
.row + .row { border-top: 1px solid var(--line); }
.row > .i:first-child { width: 22px; color: var(--text-2); }
.row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row b { font: 700 15px/1.3 var(--font); }
.row small { font-size: 12.5px; color: var(--text-2); margin-top: 1px; }
.row__end { width: 18px !important; height: 18px !important; color: var(--text-3); }
.row--card { margin: 12px 16px 0; width: calc(100% - 32px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.foot .row--card { margin: 0; width: 100%; }


/* ───────── Карточка плёнки ───────── */
.film__hero { position: relative; height: min(64vh, 500px); }
.film__pane { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: scale(.985); transition: opacity .38s ease, transform .38s var(--ease); }
.film__hero[data-view='swatch'] .film__pane--swatch,
.film__hero[data-view='work'] .film__pane--work,
.film__hero[data-view='coupe'] .film__pane--coupe,
.film__hero[data-view='photo'] .film__pane--photo { opacity: 1; pointer-events: auto; transform: none; }
.sw--hero { position: absolute; inset: 0; border-radius: 0 0 36px 36px; --peel: 54px; touch-action: pan-y; }
.film__hint {
  position: absolute; left: 0; right: 0; bottom: 74px; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 6px;
  font: 650 12.5px var(--font); color: rgba(255, 255, 255, .78); pointer-events: none;
}
.film__hint .i { width: 16px; height: 16px; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 85% { transform: rotate(12deg); } }
.film__pane--swatch:has(.tone-light) .film__hint { color: rgba(0, 0, 0, .6); }
.film__pane--work { overflow: hidden; border-radius: 0 0 36px 36px; background: #111; }
.film__work { width: 100%; height: 100%; object-fit: cover; }
.film__hint--photo { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.film__pane--photo { background: var(--paper); border-radius: 0 0 36px 36px; display: grid; place-items: center; }
.film__pane--photo .film__hint { color: rgba(0, 0, 0, .5); }
.film__photo { width: 82%; max-height: 74%; object-fit: contain; mix-blend-mode: multiply; }
.film__views { position: absolute; left: 50%; bottom: 18px; z-index: 7; transform: translateX(-50%); max-width: calc(100% - 20px); }
/* Четыре вкладки (выкраска, работа студии, 3D, образец) должны влезать в 360 px без обреза */
.film__views:has(.seg__b:nth-child(4)) .seg__b { padding: 0 11px; font-size: 13px; }

/* 3D-примерка (src/coupe): светлая студия как у фото образца, кнопки — светлые сегменты,
   подпись о цвете над вкладками. Холст не прокручивает страницу: вращение пальцем */
.film__pane--coupe { overflow: hidden; border-radius: 0 0 36px 36px; background: radial-gradient(ellipse at 40% 23%, #f8f8f6, #eaeae7 64%, #d1d2cf); }
.coupe { position: absolute; inset: 0; color: #0c0c0e; }
/* Холст на всю панель — тень машины уходит под кнопки без обреза. Машина стоит по центру области
   между шапкой и кнопками (.coupe__stage), и вращает её только эта область: свайп по кнопкам
   и по краю под шапкой по-прежнему прокручивает страницу */
.coupe__canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  pointer-events: none; touch-action: none; opacity: 0; transition: opacity .3s ease;
}
.coupe[data-state='ready'] .coupe__canvas { opacity: 1; }
.coupe__stage {
  position: absolute; left: 0; right: 0; top: calc(var(--safe-top) + 52px); bottom: 190px;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none;
}
.coupe[data-state='ready'] .coupe__stage { cursor: grab; }
.coupe[data-state='ready'] .coupe__stage:active { cursor: grabbing; }
.coupe__stage:focus-visible { box-shadow: inset 0 0 0 2px rgba(12, 12, 14, .3); border-radius: 18px; }
/* Запасной кадр без WebGL: края кадра (рамка снимка прототипа) растворяются в фоне студии */
.coupe__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  --fade-y: linear-gradient(to bottom, transparent 3%, #000 18%, #000 84%, transparent 96%);
  --fade-x: linear-gradient(to right, transparent 1%, #000 8%, #000 90%, transparent 99%);
  -webkit-mask-image: var(--fade-y), var(--fade-x); -webkit-mask-composite: source-in;
  mask-image: var(--fade-y), var(--fade-x); mask-composite: intersect;
}
.coupe__status { position: absolute; inset: 0; display: none; place-items: center; font: 650 13px var(--font); color: rgba(12, 12, 14, .62); }
.coupe[data-state='loading'] .coupe__status { display: grid; }
.coupe__controls { position: absolute; left: 10px; right: 10px; bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.coupe__row { display: flex; justify-content: center; gap: 8px; max-width: 100%; }
.coupe__controls .seg__b { touch-action: manipulation; }
.coupe[data-state='fallback'] .coupe__controls { display: none; }
.coupe__note {
  position: absolute; left: 16px; right: 16px; bottom: 70px; text-align: center;
  font: 650 12.5px/1.3 var(--font); color: rgba(12, 12, 14, .66); pointer-events: none;
}
.seg--sm .seg__b { height: 32px; padding: 0 11px; font-size: 12.5px; }
.seg--paper { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(12, 12, 14, .08); }
.seg--paper .seg__b { color: rgba(12, 12, 14, .7); }
.seg--paper .seg__b.is-on { background: #0c0c0e; color: #fff; }

/* Главная: вход в 3D-примерку — кадр того же рендера (assets/coupe/coupe-home.webp, купе в K75565
   на фоне студии) во всю карточку, ниже цвета, которые сразу открывают 3D */
.try3d__card {
  position: relative; display: block; width: calc(100% - 32px); max-width: 560px; aspect-ratio: 1120 / 682; margin: 0 16px;
  overflow: hidden; border-radius: 22px; color: #0c0c0e; text-align: left; background: #ececea;
  transition: transform .2s var(--ease);
}
.try3d__card:active { transform: scale(.985); }
.try3d__car { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.try3d__badge {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px;
  border-radius: 999px; background: #0c0c0e; color: #fff; font: 750 12.5px var(--font);
}
.try3d__badge .i { width: 16px; height: 16px; }
.try3d__film { position: absolute; left: 16px; right: 140px; bottom: 14px; display: flex; flex-direction: column; min-width: 0; }
.try3d__film b { font: 800 14px/1.2 var(--display); letter-spacing: -.02em; }
.try3d__film small { margin-top: 2px; overflow: hidden; font: 650 12px/1.3 var(--font); color: rgba(12, 12, 14, .64); text-overflow: ellipsis; white-space: nowrap; }
.try3d__go {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: #0c0c0e; color: #fff; font: 700 13.5px var(--font);
}
.try3d__go .i { width: 16px; height: 16px; }
.try3d__chips { margin-top: 6px; }
.try3d__chips .chip__dot { width: 14px; height: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.film__head { padding: 18px 16px 2px; }
.film__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.film__code { font: 800 46px/1 var(--display); letter-spacing: -.05em; margin-top: 16px; }
.film__title { font: 800 23px/1.2 var(--font); letter-spacing: -.01em; margin-top: 6px; }
.film__title--sm { font-size: 20px; margin-top: 12px; }
.film__brand { color: var(--text-2); font-size: 13.5px; margin-top: 6px; }

.calc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc__top .card__t { margin-bottom: 2px; }
.calc__price { font-size: 13.5px; color: var(--text-2); }
.calc__price b { color: var(--text); }
.calc__presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.calc__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--text-2); font-weight: 650; }
.calc__total b { font: 800 26px var(--font); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stp { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 15px; background: var(--surface-2); flex: none; }
.stp__b { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--text); transition: background .15s, transform .15s; }
.stp__b:active { background: var(--surface-3); transform: scale(.92); }
.stp__b:disabled { opacity: .28; }
.stp__b .i { width: 18px; height: 18px; stroke-width: 2.2; }
.stp__v { min-width: 50px; text-align: center; font: 800 17px var(--font); font-variant-numeric: tabular-nums; }
.stp__v small { margin-left: 3px; font-size: 11.5px; font-weight: 650; color: var(--text-2); }
.widths { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.width { padding: 12px 14px; border-radius: 15px; background: var(--surface-2); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.width.is-on { box-shadow: inset 0 0 0 2px var(--text); }
.width b { display: block; font: 800 18px var(--font); }
.width small { color: var(--text-2); font-size: 12.5px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.specs div:first-child { border-top: 0; padding-top: 0; }
.specs dt { color: var(--text-2); }
.specs dd { font-weight: 700; text-align: right; }

.product__media { height: min(52vh, 420px); display: grid; place-items: center; overflow: hidden; border-radius: 0 0 36px 36px; background: var(--paper); }
.product__img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.product__media.is-photo .product__img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }

/* ───────── Студия ───────── */
.studio__stage { padding: 4px 16px 0; }
.studio__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: var(--surface-2); }
.studio__photo img { width: 100%; height: 100%; object-fit: cover; }
.studio__cap { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 9px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 11.5px var(--font); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.studio__price { padding: 16px 0 0; }
.studio__sum { display: block; margin-top: 4px; font: 800 34px/1.05 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.studio__note { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 6px; }
.cfg { margin-top: 18px; }
.cfg__step { display: flex; align-items: center; gap: 10px; font: 750 15px var(--font); margin: 20px 0 10px; }
.cfg > .cfg__step:first-child { margin-top: 0; }
.cfg__step i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--on-accent); font: 800 12px var(--font); font-style: normal;
}
.cfg__picked { margin-left: auto; font: 650 13px var(--font); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg__classes, .cfg__levels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cfg__materials { display: grid; gap: 8px; }
.opt {
  padding: 12px 13px; border-radius: 15px; background: var(--surface-2); color: var(--text); text-align: left;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s, background .2s, transform .15s;
}
.opt:active { transform: scale(.97); }
.opt b { display: block; font: 750 14px/1.25 var(--font); }
.opt small { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.opt.is-on { box-shadow: inset 0 0 0 2px var(--text); }
.opt:disabled { opacity: .35; }
.opt--mat { display: flex; align-items: center; gap: 12px; }
.opt__sw { width: 46px; height: 46px; border-radius: 13px; flex: none; background: linear-gradient(135deg, color-mix(in oklab, var(--c), white 25%), var(--c) 50%, color-mix(in oklab, var(--c2), black 25%)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); transition: --c .5s, --c2 .5s; }
.opt__sw--clear { background: linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .04) 60%), var(--hexmesh) center / 14px 24.5px, #2a2f35; }
.opt--level b { display: flex; align-items: center; gap: 4px; }
.opt--level b .i { width: 15px; height: 15px; color: var(--accent-ink); }
.rail--dots { gap: 6px; padding: 2px 16px 6px; margin: 0 -16px; }
.rail--dots .dot-sw { width: 44px; height: 44px; }
.courses { display: grid; gap: 10px; padding: 0 16px; }
.course { display: flex; gap: 12px; padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: left; transition: transform .2s var(--ease); }
.course:active { transform: scale(.98); }
.course__img { width: 104px; height: 104px; border-radius: 15px; object-fit: cover; flex: none; background: var(--surface-2); }
.course__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; min-width: 0; }
.course b { font: 750 15px/1.25 var(--font); }
.course__price { font: 800 16px var(--font); }

/* ───────── Корзина ───────── */
.lines { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.li { position: relative; display: flex; gap: 12px; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: opacity .22s, transform .22s var(--ease); }
.li.is-leaving { opacity: 0; transform: translateX(-40px); }
.li__media { position: relative; display: block; width: 74px; height: 92px; flex: none; border-radius: 15px; overflow: hidden; background: var(--paper); }
.li__sw { position: absolute; inset: 0; border-radius: 15px; --peel: 12px; }
.li__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.li__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.li__title { display: block; padding-right: 26px; font: 700 14.5px/1.3 var(--font); color: var(--text); text-align: left; }
.li__title b { font: 750 12.5px var(--display); letter-spacing: -.01em; }
.li__meta { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.li__note { font: 650 12.5px var(--font); color: var(--accent-ink); margin-top: 4px; }
.li__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.li .stp__b { width: 34px; height: 34px; }
.li .stp__v { min-width: 44px; font-size: 15px; }
.li__sum { font: 800 16px var(--font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.li__sum small { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.li__once { font: 700 13px var(--font); color: var(--text-2); }
.li__x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.li__x .i { width: 18px; height: 18px; }
.li--row { align-items: center; padding: 10px 12px 10px 10px; cursor: pointer; }
.li--row .li__media { width: 54px; height: 54px; border-radius: 13px; }
.li--row .li__sw { border-radius: 13px; --peel: 9px; }
.li--row .li__sum { font-size: 14px; text-align: right; }
.li--row .li__title { padding-right: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.sum__row--muted { color: var(--text-2); }
.sum__row--big { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line-2); align-items: baseline; font-weight: 700; }
.sum__row--big b { font: 800 23px var(--font); letter-spacing: -.02em; }
.cart .card { margin-top: 14px; }

/* ───────── Форма ───────── */
.form { display: flex; flex-direction: column; }
.field { display: block; margin-top: 12px; }
.card__t + .field, .card > .field:first-child { margin-top: 0; }
.field > span { display: block; margin: 0 0 6px 4px; font: 700 12.5px var(--font); color: var(--text-2); }
.field input, .field textarea {
  width: 100%; height: 52px; padding: 0 15px; border-radius: 15px; border: 0; outline: 0;
  background: var(--surface-2); color: var(--text); font: 650 16px var(--font);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s;
}
.field textarea { height: auto; padding: 13px 15px; resize: none; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); font-weight: 550; }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--text); }
.field.is-bad input { box-shadow: inset 0 0 0 1.5px var(--danger); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.card .btn--block { margin-top: 10px; }
.card .seg + div .field:first-child { margin-top: 12px; }
.radios { display: flex; flex-direction: column; gap: 8px; }
.radio { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 15px; background: var(--surface-2); box-shadow: inset 0 0 0 2px transparent; cursor: pointer; transition: box-shadow .2s; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--text); }
.radio:has(input:focus-visible) { outline: 2px solid var(--accent); }
.radio__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.radio__ic .i { width: 20px; height: 20px; }
.radio__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.radio__t b { font: 700 14.5px var(--font); }
.radio__t small { font-size: 12px; color: var(--text-2); }
.radio__p { font: 750 13px var(--font); white-space: nowrap; }
.radios + .field { margin-top: 12px; }

/* ───────── Готово ───────── */
.done { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-top) + 40px) 24px 30px; text-align: center; }
.done__confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.done__badge {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  animation: pop-in .7s cubic-bezier(.2, 1.7, .4, 1);
}
.done__badge .i { width: 50px; height: 50px; stroke-width: 2.6; }
.done__t { font: 800 27px/1.15 var(--font); letter-spacing: -.02em; margin-top: 28px; }
.done__id { font: 700 14px var(--font); color: var(--text-2); margin-top: 8px; }
.done__s { color: var(--text-2); margin-top: 12px; max-width: 330px; }
.done__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 330px; margin-top: 28px; }

/* ───────── Поиск ───────── */
.top--search { position: sticky; top: 0; padding-bottom: 10px; background: var(--bg); }
.sbox { flex: 1; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 15px; background: var(--surface-2); min-width: 0; }
.sbox .i { width: 20px; height: 20px; color: var(--text-3); }
.sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 650 16px var(--font); }
.sbox input::placeholder { color: var(--text-3); }
.sbox input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lines--flat { gap: 8px; }

/* ───────── Магазин ───────── */
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 16px 6px; }
.dept { display: flex; flex-direction: column; gap: 1px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: left; transition: background .25s, transform .15s; }
.dept:active { transform: scale(.96); }
.dept__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 10px; }
.dept__ic .i { width: 20px; height: 20px; }
.dept b { font: 750 14px var(--font); }
.dept small { color: var(--text-2); font-size: 12px; }
.dept.is-on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.dept.is-on .dept__ic { background: rgba(0, 0, 0, .1); }
.dept.is-on small { color: rgba(10, 10, 12, .6); }
.films__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 6px; font: 700 13px var(--font); color: var(--text-2); }

/* ───────── Шторка, диалог, тост ───────── */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .26s; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__card {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--maxw); max-height: 88vh; margin: 0 auto; overflow: auto;
  padding: 8px 16px calc(22px + var(--safe-bottom)); border-radius: 30px 30px 0 0; background: var(--surface);
  transform: translateY(100%); transition: transform .34s var(--ease); overscroll-behavior: contain;
}
.sheet.is-open .sheet__card { transform: translateY(0); }
.sheet__grip { display: block; width: 42px; height: 5px; margin: 4px auto 14px; border-radius: 3px; background: var(--line-2); }
.sheet .rows { background: var(--surface-2); border: 0; }
.sheet .row + .row { border-color: var(--line-2); }
.about__logo { display: block; height: 30px; margin: 6px auto 12px; }
.about__lead { text-align: center; color: var(--text-2); font-size: 14px; max-width: 320px; margin: 0 auto 18px; }

.dlg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .55); animation: fade-in .2s; }
.dlg__card { width: 100%; max-width: 330px; padding: 22px; border-radius: 26px; background: var(--surface); animation: pop-in .3s var(--ease); }
.dlg__title { font: 800 18px/1.25 var(--font); }
.dlg__msg { color: var(--text-2); margin-top: 8px; }
.dlg__actions { display: flex; gap: 8px; margin-top: 20px; }
.dlg__btn { flex: 1; height: 48px; border-radius: 15px; background: var(--surface-2); font: 750 15px var(--font); text-align: center; }
.dlg__btn.is-primary { background: var(--accent); color: var(--on-accent); }
.dlg__btn.is-danger { color: var(--danger); }

.toast {
  position: fixed; left: 50%; top: calc(var(--safe-top) + 12px); z-index: 70; max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font: 750 14px var(--font); white-space: nowrap;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, -16px) scale(.96);
  transition: opacity .25s, transform .3s var(--ease); pointer-events: none;
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0) scale(1); }


/* ───────── Пустые состояния, заставка ───────── */
.empty { padding: 52px 24px 24px; text-align: center; }
.empty--sm { padding-top: 36px; }
.empty__ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.empty__ic .i { width: 28px; height: 28px; }
@keyframes fan { from { transform: rotate(0); } to { transform: rotate(var(--r)); } }
.empty h3 { font: 800 19px/1.2 var(--font); letter-spacing: -.01em; }
.empty p { color: var(--text-2); margin: 8px auto 20px; max-width: 290px; }
.grid .empty { grid-column: 1 / -1; }
.sentinel { height: 1px; }
.boot-error { padding: 40vh 24px 0; text-align: center; color: var(--text-2); }
.boot-error b { display: block; color: var(--text); font: 800 18px var(--font); margin-bottom: 8px; }

.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .45s ease; }
.splash.is-gone { opacity: 0; pointer-events: none; }
.splash .logo { height: 18px; animation: fade-in .6s ease both; }

/* ═════════ Моушен ═════════ */
@property --peel { syntax: '<length>'; inherits: true; initial-value: 20px; }

/* Компактная шапка. В полноэкранном Telegram — в строке кнопок Close / меню, между ними.
   Нижний край растворяется, а не обрезается. */
:root { --mb-top: var(--safe-top); --mb-row: 44px; --mb-h: calc(var(--safe-top) + 44px); }
html.is-fullscreen { --mb-top: var(--sys-top, 0px); --mb-row: var(--tg-row, 44px); --mb-h: var(--safe-top); }
.minibar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 18; max-width: var(--maxw); margin: 0 auto;
  height: calc(var(--mb-h) + 22px); padding-top: var(--mb-top); pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
}
.minibar::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) calc(100% - 22px), transparent);
}
/* Плашка появляется только прозрачностью, а заголовок в ней съезжает сверху вниз */
.minibar.is-on { opacity: 1; }
.minibar__t {
  height: var(--mb-row); display: flex; align-items: center; justify-content: center; padding: 0 64px;
  font: 750 16px/1 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateY(-8px); transition: transform .32s var(--ease);
}
.minibar.is-on .minibar__t { transform: none; }
.minibar--float .minibar__t, html.is-fullscreen .minibar__t { padding: 0 112px; }
/* Текст — отдельным блоком: у flex-контейнера многоточие не срабатывает, и длинный заголовок
   расползался в обе стороны под кнопки Telegram */
.minibar__x { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.minibar__t .logo { height: 12px; }
.minibar.is-on .logo { animation: dock .45s var(--ease) both; }
@keyframes dock { from { opacity: 0; transform: translateY(10px) scale(.86); } }

/* Липкие фильтры встают под компактную шапку */
.seg-wrap { top: var(--mb-h); }
/* Шапка + липкая навигация = один сплошной блок, единственный перелив — под навигацией */
.seg-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none;
  background: linear-gradient(180deg, var(--bg), transparent); opacity: 0; transition: opacity .2s ease;
}
html.mb-joined .seg-wrap::after { opacity: 1; }
/* ПК: компактной шапки нет — липкие фильтры встают к самому верху, перелив под ними при прокрутке */
html.is-desktop { --mb-h: var(--safe-top); }
html.is-desktop.is-scrolled .seg-wrap::after { opacity: 1; }
html.mb-joined .minibar { height: var(--mb-h); }
html.mb-joined .minibar::before { background: var(--bg); }
/* Пока видна компактная шапка, отдельная полоса под кнопками Telegram не нужна — иначе переливы складываются */
html.mb-on body::before { opacity: 0; }

/* Таб-бар: сплошные цвета вместо прозрачности — у иконок нет тёмных пятен на пересечениях линий */
.tab { color: var(--text-3); transition: color .25s ease; }
.tab .i { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.tab.is-on { color: var(--text); }
.tab.is-on .i { animation: tab-pop .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tab-pop { 0% { transform: scale(1); } 35% { transform: scale(.82); } 100% { transform: scale(1); } }
.tab__ic.bump .i { animation: cart-bump .55s ease; }
@keyframes cart-bump { 20% { transform: rotate(-12deg) scale(1.12); } 45% { transform: rotate(9deg); } 70% { transform: rotate(-4deg); } }

/* Переходы экранов (View Transitions). Таб-бар, нижние кнопки и компактная шапка — отдельные слои */
.tabbar { view-transition-name: tabbar; }
.bb { view-transition-name: bottombar; }
.minibar { view-transition-name: minibar; }
::view-transition-group(*) { animation-duration: .44s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(hero), ::view-transition-new(hero) { width: 100%; height: 100%; object-fit: cover; }
html[data-vt='push']::view-transition-old(root) { animation: .36s cubic-bezier(.2, .8, .2, 1) both vt-out-left; }
html[data-vt='push']::view-transition-new(root) { animation: .4s cubic-bezier(.2, .8, .2, 1) both vt-in-right; }
html[data-vt='pop']::view-transition-old(root) { animation: .3s cubic-bezier(.2, .8, .2, 1) both vt-out-right; }
html[data-vt='pop']::view-transition-new(root) { animation: .36s cubic-bezier(.2, .8, .2, 1) both vt-in-left; }
html[data-vt='tab']::view-transition-old(root) { animation: .16s ease both vt-fade-out; }
html[data-vt='tab']::view-transition-new(root) { animation: .32s cubic-bezier(.2, .8, .2, 1) .04s both vt-rise; }
html[data-vt='intro']::view-transition-old(root) { animation: .5s ease both vt-fade-out; }
html[data-vt='intro']::view-transition-new(root) { animation: none; }
html[data-vt='intro']::view-transition-group(logo) { animation-duration: .74s; animation-timing-function: cubic-bezier(.65, 0, .25, 1); }
::view-transition-old(tabbar):only-child { animation: .28s ease both vt-bar-down; }
::view-transition-new(tabbar):only-child { animation: .34s cubic-bezier(.2, .8, .2, 1) both vt-bar-up; }
@keyframes vt-in-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes vt-out-left { to { opacity: 0; transform: translateX(-28px); } }
@keyframes vt-out-right { to { opacity: 0; transform: translateX(40px); } }
@keyframes vt-in-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes vt-bar-down { to { transform: translateY(100%); } }
@keyframes vt-bar-up { from { transform: translateY(100%); } }

/* Заставка → главная: блоки поднимаются по очереди вслед за логотипом */
.splash .logo { height: 22px; }
.home.is-intro > :not(.top) { animation: intro-rise .75s cubic-bezier(.2, .8, .2, 1) both; }
.home.is-intro > :nth-child(2) { animation-delay: .34s; }
.home.is-intro > :nth-child(3) { animation-delay: .42s; }
.home.is-intro > :nth-child(4) { animation-delay: .52s; }
.home.is-intro > :nth-child(5) { animation-delay: .6s; }
.home.is-intro > :nth-child(n+6) { animation-delay: .66s; }
.home.is-intro .top .ib { animation: fade-in .5s .4s both; }
@keyframes intro-rise { from { opacity: 0; transform: translateY(22px); } }

/* Фото проявляются после загрузки; пока грузятся — мягкий блик по подложке */
img[data-fade] { opacity: 0; transition: opacity .5s ease; }
img[data-fade].is-loaded { opacity: 1; }
:is(.work, .cat__visual, .pc__media, .promo__media, .feature, .course, .product__media, .film__pane--photo, .film__pane--work):has(img[data-fade]:not(.is-loaded):not(.is-broken)) {
  background-image: linear-gradient(100deg, transparent 30%, rgba(128, 128, 128, .14) 50%, transparent 70%);
  background-size: 240% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Карусель работ: фото слегка отстаёт от карточки при свайпе */
.work__img { transform: translateX(calc(var(--p, 0) * -16%)) scale(1.18); will-change: transform; }
.work__body { transform: translateX(calc(var(--p, 0) * 10%)); opacity: calc(1 - min(1, abs(var(--p, 0)) * 1.4)); }

/* Уголок плёнки: при нажатии на карточку отгибается сильнее, в карточке плёнки — отгибается при открытии */
.fc .sw { transition: --peel .32s var(--ease); }
.fc:active .sw { --peel: 34px; }
.sw--hero { animation: peel-in .9s .35s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes peel-in { from { --peel: 0px; } }

/* Полёт в корзину: миниатюра товара или цвет плёнки */
.fly {
  position: fixed; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 80; pointer-events: none;
  border-radius: 13px; background-size: cover; background-position: center;
  box-shadow: 0 0 0 2px var(--surface), 0 12px 28px rgba(0, 0, 0, .35);
}
.fly--photo { background-color: var(--paper); background-size: 84%; background-repeat: no-repeat; }

/* Избранное: кольцо расходится от сердца */
.fc__fav { position: relative; }
.fav.pop::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 2px solid var(--badge); pointer-events: none;
  animation: ring .55s ease-out forwards;
}
@keyframes ring { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.7); } }

/* Студия: новое фото проявляется поверх старого с лёгким наездом */
.studio__photo img { position: absolute; inset: 0; }
.studio__photo img.is-next { opacity: 0; transform: scale(1.06); transition: opacity .5s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.studio__photo img.is-next.is-in { opacity: 1; transform: none; }

/* Заявка отправлена: галочка прорисовывается */
.done__badge .i path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw .5s .45s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .work__img, .work__body { transform: none; opacity: 1; }
  img[data-fade] { opacity: 1; }
}

/* ═════════ ПК: мышь, наведение, широкое окно ═════════ */
.scroll-arrows { position: fixed; inset: 0; z-index: 19; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.scroll-arrows.is-on { opacity: 1; }
.scroll-arrow {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--text); pointer-events: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28), inset 0 0 0 1px var(--line-2); transition: opacity .2s ease, background .2s ease;
}
.scroll-arrow--next { margin-left: -40px; }
.scroll-arrow svg { width: 20px; height: 20px; }
.scroll-arrow:hover { background: var(--surface-2); }
.scroll-arrow:disabled { opacity: 0; pointer-events: none; }
.scroll-arrows.is-small .scroll-arrow { width: 32px; height: 32px; margin-top: -16px; }
.scroll-arrows.is-small .scroll-arrow--next { margin-left: -32px; }
.has-mouse :is(.works__track, .rail, .chips, .seg, .spectrum) { cursor: grab; }
.is-dragging { cursor: grabbing !important; user-select: none; }
.is-dragging > * { pointer-events: none; }
.has-mouse img { -webkit-user-drag: none; }
.works__dots i { position: relative; cursor: pointer; }
.works__dots i::after { content: ''; position: absolute; inset: -9px -4px; }

@media (hover: hover) and (pointer: fine) {
  .fc:hover .sw { --peel: 28px; }
  .fc, .cat, .course, .feature, .pc__media, .dept, .row--card { transition: transform .25s var(--ease), background-color .2s ease; }
  .fc:hover, .cat:hover, .course:hover, .feature:hover, .dept:hover { transform: translateY(-3px); }
  .pc:hover .pc__media { transform: translateY(-3px); }
  .row--card:hover, .cat:hover, .course:hover, .feature:hover { background-color: var(--surface-2); }
  .ib:hover, .top__back:hover { background: var(--surface-3); }
  .btn:hover, .pill:hover, .bb__btn:hover, .pc__add:hover { filter: brightness(1.08); }
  .chip:not(.is-on):hover, .seg__b:not(.is-on):hover, .mini-seg button:not(.is-on):hover { color: var(--text); }
  .seg--paper .seg__b:not(.is-on):hover { color: #0c0c0e; background: rgba(12, 12, 14, .06); }
  .tab:not(.is-on):hover { color: var(--text-2); }
  .opt:not(.is-on):not(:disabled):hover, .width:not(.is-on):hover, .radio:hover { background: var(--surface-3); }
  .work:hover .work__img { scale: 1.02; transition: scale .6s var(--ease); }
}

/* Широкое окно (Telegram Desktop в развёрнутом виде, браузер) */
@media (min-width: 720px) {
  :root { --maxw: 980px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .work { width: calc(50% - 5px); }
  .fc--rail, .rail .pc { width: 176px; }
  .coll { width: 128px; }
  .promo__media { aspect-ratio: 21 / 9; }
  .film__hero { height: 480px; }
  .product__media { height: 420px; }
  .studio__photo { aspect-ratio: 16 / 9; }
  .cfg__classes { grid-template-columns: repeat(3, 1fr); }
  .courses { grid-template-columns: 1fr 1fr; }
  .cart .lines, .cart .card, .checkout .card { max-width: 720px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-width: 600px) and (max-width: 719.98px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═════════ Кабинет: цены для студий по ИНН и мои заявки ═════════ */
.ib--me { padding: 0; overflow: hidden; }
.ib--me .avatar { width: 100%; height: 100%; box-shadow: none; }
.pro__head { display: flex; align-items: center; gap: 12px; }
.pro__head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pro__head b { font: 750 16px/1.25 var(--font); }
.pro__head small { font-size: 12.5px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro__ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.pro__ic .i { width: 21px; height: 21px; }
.pro__status { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px; font: 700 12px var(--font); background: var(--surface-2); color: var(--text-2); }
.pro__status .i { width: 14px; height: 14px; }
.pro__status--ok { background: var(--accent); color: var(--on-accent); }
.pro__status--no { color: var(--danger); }
.pro__text { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.pro__text b { color: var(--text); }
.pro__perks { margin: 14px 0 4px; display: grid; gap: 8px; }
.pro__perks li { display: flex; gap: 9px; font-size: 14px; line-height: 1.35; }
.pro__perks .i { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--text-2); }
.field > .field__hint { margin: 6px 0 0 4px; font: 600 12px/1.35 var(--font); color: var(--text-3); }
.field__hint small { font: inherit; }
.field__ok { color: var(--text-2); }
.field__ok .i { width: 13px; height: 13px; vertical-align: -2px; }
.field__bad { color: var(--danger); }
.pro__req { margin-top: 14px; display: grid; gap: 1px; border-radius: 14px; overflow: hidden; background: var(--line); }
.pro__req div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; background: var(--surface-2); font-size: 14px; }
.pro__req dt { color: var(--text-2); }
.pro__req dd { font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pro__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.orders { display: grid; gap: 10px; padding: 0 16px; }
.orders__empty { display: flex; gap: 10px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; line-height: 1.4; }
.orders__empty .i { width: 20px; height: 20px; flex: none; }
.ord { padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ord__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ord__top b { font: 750 15px var(--font); }
.ord__top small { font-size: 12.5px; color: var(--text-2); }
.ord__items { display: flex; gap: 6px; margin-top: 12px; overflow: hidden; }
.ord__thumb { position: relative; width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; background: var(--paper); }
.ord__thumb > * { width: 100% !important; height: 100% !important; border-radius: 0; }
.ord__thumb img { object-fit: contain; }
.ord__more { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font: 700 13px var(--font); }
.ord__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ord__sum { font: 800 18px var(--font); letter-spacing: -.01em; }
.sum__row--pro { color: var(--text-2); }
.sum__row--pro b { color: var(--text); }
.li__meta s { color: var(--text-3); }
.pc__price s { display: block; margin-top: 1px; }
.calc__pro { display: block; margin-top: 2px; font: 700 12px var(--font); color: var(--text-2); }
.fc__price s, .pc__price s { color: inherit; opacity: .55; font-weight: 600; font-size: .86em; }
.empty__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.account .row--card { margin-top: 16px; }
.pro-row { margin-top: 26px; }
@media (min-width: 720px) {
  .account > .card, .account .block, .account > .row--card { max-width: 720px; margin-left: auto; margin-right: auto; }
  .account > .row--card { width: 100%; }
}

/* ═════════ Плёнки с рисунком: камуфляж, голография, карбон, текстура ═════════
   Вместо нарисованной фактуры — квадрат с рисунком из фото образца (кадр из tools/crops.html).
   Квадрат со стороной max(ширина, высота) накрывает выкраску любой формы; пока фото грузится — средний цвет */
.sw--photo { container-type: size; background: var(--c); }
.sw--photo .sw__fx { display: none; }
.sw--photo .sw__light { opacity: .55; }
.sw__pic {
  position: absolute; left: 50%; top: 50%; z-index: 0; overflow: hidden; aspect-ratio: 1; translate: -50% -50%;
  width: 100%; width: max(100cqw, 100cqh);
}
.sw__pic img {
  position: absolute; max-width: none; height: auto; opacity: 0; transition: opacity .35s ease;
  width: calc(100% * var(--k)); left: calc(-100% * var(--ox)); top: calc(-100% * var(--oy));
}
.sw__pic img.is-loaded { opacity: 1; }

/* ═════════ Установка (IRISTEK): детейлинг-центр, аккредитованные центры, обучение ═════════ */
.install-hero {
  display: block; width: calc(100% - 32px); margin: 0 16px; padding: 0; overflow: hidden; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: left;
}
.install-hero__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.install-hero__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.install-hero__k { font: 700 12px var(--font); color: var(--accent-ink); }
.install-hero__t { font: 800 19px/1.25 var(--font); }
.install-hero__s { font-size: 13px; color: var(--text-2); }
.install-hero .pill { align-self: flex-start; margin-top: 8px; }
.rows--card { margin: 12px 16px 0; }
.centers { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 0; }
.center { padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.center__head { display: flex; align-items: center; gap: 12px; }
.center__ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--accent-ink); }
.center__ic .i { width: 19px; height: 19px; }
.center__titles { display: flex; flex-direction: column; min-width: 0; }
.center__t { font: 750 15px/1.3 var(--font); }
.center__s { font-size: 12.5px; color: var(--text-2); }
.center__addr { margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
.center__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.feature__s s { margin-left: 4px; color: var(--text-3); }
/* .pill рассчитана на фото (белый текст на стекле) — на карточках берём цвета поверхности */
.center .pill { height: 34px; padding: 0 12px; background: var(--surface-2); color: var(--text); font-size: 13px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.install-hero .pill--solid { background: var(--accent); color: var(--on-accent); }
/* Описание товара и курса с сайта: длинные тексты обрезаем до 8 строк */
.desc { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.calc__price s { margin-left: 6px; font-size: 13px; color: var(--text-3); }
