/* WEMATEC mini app — дизайн-система «Studio»
   Тёмная студия, цвет плёнки — главный герой. Unbounded для заголовков, Manrope для текста.
   Акцент — кислотный лайм (кнопки), переливающийся градиент — для эффектов и праздника. */

@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; }

/* Анимируемые цвета */
@property --glow { syntax: '<color>'; inherits: true; initial-value: #7b61ff; }
@property --hero { syntax: '<color>'; inherits: true; initial-value: #7b61ff; }
@property --c { syntax: '<color>'; inherits: true; initial-value: #888; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #888; }

/* ───────── Токены ───────── */
:root {
  --bg: #0a0a0c;
  --surface: #141417;
  --surface-2: #1d1d22;
  --surface-3: #2a2a31;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f6f6f3;
  --text-2: rgba(246, 246, 243, .62);
  --text-3: rgba(246, 246, 243, .38);
  --accent: #d4ff3a;
  --on-accent: #0a0a0c;
  --accent-ink: #d4ff3a;
  --pink: #ff3d7f;
  --violet: #7b61ff;
  --warn: #ffb23b;
  --danger: #ff5c5c;
  --paper: #f4f3ef;
  --glow-idle: #7b61ff;
  --iri-lin: linear-gradient(100deg, #ff4fd8, #7b61ff 26%, #29d3ff 50%, #3bffb0 74%, #d4ff3a);
  --iri-con: conic-gradient(from 200deg, #ff4fd8, #7b61ff, #29d3ff, #3bffb0, #d4ff3a, #ffb23b, #ff4fd8);

  --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='1.25' 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 3.4 -1.9'/></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='.75' 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 11 -8.1'/></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;
  transition: --glow 1s ease;
}

[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: rgba(12, 12, 14, .6);
  --text-3: rgba(12, 12, 14, .38);
  --accent-ink: #4a6b00;
  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; }

/* Подложка: светящийся цвет текущей плёнки */
#ambient {
  position: fixed; inset: 0 0 auto 0; height: 78vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 48% at 50% -6%, color-mix(in oklab, var(--glow) 62%, transparent), transparent 72%),
    radial-gradient(42% 30% at 100% 4%, color-mix(in oklab, var(--glow) 30%, transparent), transparent 70%);
  opacity: .5;
}
[data-theme='light'] #ambient { opacity: .42; }

/* Полоса под системными кнопками Telegram в полноэкранном режиме */
body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: var(--safe-top); z-index: 30;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transition: opacity .2s; 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: 750 27px/1.1 var(--display); letter-spacing: -.03em; }
.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: 27px; width: auto; filter: invert(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: 9px; height: 9px; border-radius: 50%; background: var(--pink); 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); box-shadow: 0 10px 30px -12px var(--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: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  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 { background: var(--accent); color: var(--on-accent); }
.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(--pink); 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: 10px 16px calc(10px + var(--safe-bottom));
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
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%); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.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); box-shadow: 0 12px 34px -14px var(--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: linear-gradient(var(--bg) 70%, transparent);
}
.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: var(--slx, .5); --ly: .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%));
  will-change: transform;
}
.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(120% 80% at 22% 8%, color-mix(in oklab, var(--c), white 55%), transparent 62%), linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .38)); opacity: .9; }
.sw--metallic .sw__fx { background-image: var(--flake); background-size: 120px; mix-blend-mode: overlay; opacity: .95; }
.sw--glitter .sw__fx { background-image: var(--sparkle), var(--flake); background-size: 96px, 140px; mix-blend-mode: screen; opacity: .95; }
.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;
}
.sw--chameleon { background: linear-gradient(135deg, var(--c), var(--c2)); }
.sw--chameleon .sw__fx {
  background: linear-gradient(115deg, var(--c2), var(--c) 30%, var(--c2) 55%, var(--c) 80%, var(--c2));
  background-size: 320% 100%; background-position: calc(var(--lx) * 100%) 0;
}
.sw--chrome {
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--c), white 72%) 0%, var(--c) 30%, color-mix(in oklab, var(--c), black 64%) 49%,
    color-mix(in oklab, var(--c), white 82%) 51.5%, var(--c) 70%, color-mix(in oklab, var(--c), black 48%) 100%);
}
.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--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); animation: card-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms);
  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(--pink); }
.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__tag.is-iri { background: var(--iri-lin); color: #111; }
.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; animation: card-in .45s var(--ease) both; }
.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: 750 19px/1.15 var(--display); 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: 800 11px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.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--iri { background: var(--iri-lin); color: #111; }
.tag--warn { background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--warn); }

/* ───────── Главная ───────── */
.hero { position: relative; }
.hero__hi { padding: 18px 16px 0; color: var(--text-2); font: 700 13.5px var(--font); }
.hero__t { padding: 0 16px; margin-top: 6px; font: 800 clamp(29px, 8.6vw, 42px)/1.02 var(--display); letter-spacing: -.045em; }
.iri-text { background: var(--iri-lin); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri 7s linear infinite; }
@keyframes iri { to { background-position: 200% 0; } }
.hero__stage { position: relative; height: 196px; margin-top: 2px; cursor: pointer; touch-action: pan-y; }
.hero__spot { position: absolute; inset: 0; background: radial-gradient(56% 64% at 50% 84%, color-mix(in oklab, var(--hero) 46%, transparent), transparent 72%); transition: --hero .8s ease; }
.hero__car { position: absolute; left: -4%; width: 108%; bottom: -2px; }
.hero__now {
  display: flex; align-items: center; gap: 12px; margin: 6px 16px 0; padding: 12px 12px 12px 16px;
  border-radius: 20px; background: color-mix(in oklab, var(--surface) 86%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero__info { flex: 1; min-width: 0; }
.hero__code { font: 700 11.5px var(--display); color: var(--text-2); letter-spacing: .02em; }
.hero__name { display: block; font: 800 17px/1.2 var(--font); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__meta { display: block; font-size: 13px; color: var(--text-2); margin-top: 1px; }
.hero__picker { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 6px; }
.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 .25s 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); transform: scale(1.06); }
.dot-sw:active { transform: scale(.92); }
.dot-sw--more { width: auto; padding: 0 16px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: 800 13px var(--font); display: grid; place-items: center; }

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; margin-top: 26px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate; min-height: 122px; padding: 14px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  display: flex; flex-direction: column; justify-content: flex-end; text-align: left; transition: transform .2s var(--ease);
}
.tile:active { transform: scale(.97); }
.tile__t { position: relative; z-index: 2; font: 750 15px/1.15 var(--display); letter-spacing: -.02em; }
.tile__s { position: relative; z-index: 2; font: 600 12.5px/1.3 var(--font); color: var(--text-2); margin-top: 5px; }
.tile__ic {
  position: absolute; top: 12px; left: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tile__ic .i { width: 20px; height: 20px; }
.tile__bg { position: absolute; inset: 0; border-radius: 0; z-index: 0; --peel: 26px; }
.tile--color { grid-row: span 2; background: radial-gradient(120% 80% at 50% 0%, color-mix(in oklab, var(--violet) 32%, var(--surface)), var(--surface) 70%); }
.tile__fan { position: absolute; top: 18px; left: 50%; width: 0; height: 128px; }
.tile__sw { position: absolute; left: -38px; top: 0; width: 76px; height: 106px; border-radius: 14px; --peel: 12px; transform-origin: 50% 110%; transition: transform .5s var(--ease); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.tile__sw:nth-child(1) { transform: rotate(-17deg) translateX(-20px); }
.tile__sw:nth-child(2) { transform: rotate(0deg) translateY(-6px); z-index: 1; }
.tile__sw:nth-child(3) { transform: rotate(17deg) translateX(20px); z-index: 2; }
.tile--color:active .tile__sw:nth-child(1) { transform: rotate(-26deg) translateX(-28px); }
.tile--color:active .tile__sw:nth-child(3) { transform: rotate(26deg) translateX(28px); }
.tile--protect, .tile--tint { color: #fff; border: 0; }
.tile--protect .tile__s, .tile--tint .tile__s { color: rgba(255, 255, 255, .72); }
.tile--studio { grid-column: 1 / -1; min-height: 150px; color: #fff; border: 0; background: #111; }
.tile--studio::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 10%, rgba(0, 0, 0, .1) 75%); }
.tile--studio .tile__s { color: rgba(255, 255, 255, .75); max-width: 220px; }
.tile__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile__chip { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 800 10.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.tile--tools { background: var(--accent); color: var(--on-accent); border: 0; }
.tile--tools .tile__s { color: rgba(10, 10, 12, .62); }
.tile--tools .tile__ic { background: rgba(0, 0, 0, .1); color: var(--on-accent); }
.tile--learn { background: var(--violet); color: #fff; border: 0; }
.tile--learn .tile__s { color: rgba(255, 255, 255, .75); }

.coll { flex: none; width: 112px; text-align: left; }
.coll__sw { width: 112px; height: 112px; border-radius: 24px; --peel: 16px; transition: transform .2s var(--ease); }
.coll:active .coll__sw { transform: scale(.95); }
.coll b { display: block; font: 750 14px/1.2 var(--font); margin-top: 9px; }
.coll small { color: var(--text-2); font-size: 12.5px; }

.promo {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  width: calc(100% - 32px); min-height: 320px; margin: 30px 16px 0; border-radius: 28px; background: #000; color: #fff; text-align: left;
}
.promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; z-index: -1; transition: transform 6s ease; }
.promo:active .promo__img { transform: scale(1.04); }
.promo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .9)); }
.promo__body { padding: 20px; }
.promo__k { font: 800 11px var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.promo__t { font: 800 46px/.95 var(--display); letter-spacing: -.045em; margin: 8px 0 10px; }
.promo__t span { display: inline-block; font-size: 22px; letter-spacing: -.02em; color: var(--accent); }
.promo__s { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .78); max-width: 300px; margin-bottom: 16px; }
.promo--wide { min-height: 270px; }

.studio-card {
  position: relative; overflow: hidden; isolation: isolate; margin: 30px 16px 0; padding: 22px 20px 20px; border-radius: 28px; cursor: pointer;
  background: #121216; color: #f6f6f3; border: 1px solid rgba(255, 255, 255, .07);
}
.studio-card::before { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; z-index: -1; border-radius: 50%; background: var(--iri-con); filter: blur(46px); opacity: .55; }
.studio-card h2 { font: 800 23px/1.12 var(--display); letter-spacing: -.03em; margin: 10px 0 8px; }
.studio-card p { color: rgba(246, 246, 243, .64); font-size: 14px; margin-bottom: 18px; max-width: 290px; }
.studio-card .kicker { color: var(--accent); }

.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%; }

/* ───────── Машина ───────── */
.car { display: block; overflow: visible; --lx: .5; transition: --c .7s ease, --c2 .7s ease; }
.car__paint, .car__mirror { fill: var(--c); }
.car__glow { fill: var(--c); opacity: .55; }
.car__cham, .car__chrome, .car__carbon, .car__flake, .car__glit, .car__pearl { opacity: 0; transition: opacity .5s ease; }
.car__cham { transform: translateX(calc((var(--lx) - .5) * -520px)); transition: opacity .5s ease, transform .25s linear; }
.car.k-chameleon .car__cham { opacity: 1; }
.car.k-chrome .car__chrome { opacity: 1; }
.car.k-carbon .car__carbon, .car.k-texture .car__carbon { opacity: 1; }
.car.k-metallic .car__flake { opacity: .75; mix-blend-mode: overlay; }
.car.k-glitter .car__glit { opacity: 1; mix-blend-mode: screen; }
.car.k-glitter .car__flake { opacity: .5; mix-blend-mode: overlay; }
.car.k-pearl .car__pearl { opacity: .45; mix-blend-mode: soft-light; }
.car .s0 { stop-color: #fff; stop-opacity: .44; }
.car .s1 { stop-color: #fff; stop-opacity: .1; }
.car .s2 { stop-color: #fff; stop-opacity: .18; }
.car .s3 { stop-color: #000; stop-opacity: .22; }
.car .s4 { stop-color: #000; stop-opacity: .32; }
.car .s5 { stop-color: #000; stop-opacity: .58; }
.car.is-satin .s0 { stop-opacity: .3; } .car.is-satin .s2 { stop-opacity: .1; } .car.is-satin .s3 { stop-opacity: .14; }
.car.is-matte .s0 { stop-opacity: .16; } .car.is-matte .s1 { stop-opacity: .05; } .car.is-matte .s2 { stop-opacity: .03; }
.car.is-matte .s3 { stop-opacity: .06; } .car.is-matte .s4 { stop-opacity: .24; } .car.is-matte .s5 { stop-opacity: .48; }
.car__spec { opacity: .7; transform: translateX(calc((var(--lx) - .5) * 380px)); transition: opacity .4s; }
.car.is-satin .car__spec { opacity: .38; }
.car.is-matte .car__spec { opacity: .12; }
.car.k-chrome .car__spec, .car.k-clear .car__spec { opacity: .95; }
.car__line { fill: none; stroke: #fff; stroke-opacity: .34; stroke-width: 1.6; }
.car__line--dark { stroke: #000; stroke-opacity: .28; }
.car.is-matte .car__line { stroke-opacity: .14; }
.car__cabin { fill: #a9bccb; opacity: calc(var(--vlt) * .95); transition: opacity .6s; }
.car__caliper { stroke: var(--accent); }

/* ───────── Карточка плёнки ───────── */
.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='car'] .film__pane--car,
.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__garage {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 0 0 36px 36px; overflow: hidden;
  background: radial-gradient(70% 46% at 50% 74%, color-mix(in oklab, var(--glow) 34%, transparent), transparent 70%), linear-gradient(180deg, #17171c, #09090b 80%);
}
.film__car { width: 112%; margin-top: 30px; }
.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%); }
.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 27px var(--display); letter-spacing: -.035em; 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(--display); letter-spacing: -.02em; }
.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 { position: relative; padding-top: 4px; }
.studio__car { position: relative; display: block; width: 108%; margin-left: -4%; height: auto; }
.studio__stage .hero__spot { --hero: var(--glow); }
.studio__price { position: relative; padding: 4px 16px 0; }
.studio__sum { display: block; font: 800 38px/1.05 var(--display); letter-spacing: -.045em; margin-top: 6px; 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 11.5px var(--display); 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(--display); letter-spacing: -.02em; }

/* ───────── Корзина ───────── */
.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 24px var(--display); letter-spacing: -.035em; }
.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);
  box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 18%, transparent), 0 24px 70px -12px var(--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 28px/1.1 var(--display); letter-spacing: -.035em; margin-top: 30px; }
.done__id { font: 700 14px var(--display); color: var(--text-2); margin-top: 10px; }
.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: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.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: 750 18px/1.2 var(--display); letter-spacing: -.02em; }
.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); }

.fly { position: fixed; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; z-index: 80; pointer-events: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 8px 24px rgba(0, 0, 0, .45); }

/* ───────── Пустые состояния, заставка ───────── */
.empty { padding: 52px 24px 24px; text-align: center; }
.empty--sm { padding-top: 36px; }
.empty__art { position: relative; width: 140px; height: 118px; margin: 0 auto 20px; }
.empty__art i { position: absolute; left: 38px; top: 8px; width: 64px; height: 88px; border-radius: 15px; transform-origin: 50% 110%; animation: fan 3s var(--ease) infinite alternate; }
.empty__art i:nth-child(1) { background: var(--pink); --r: -20deg; }
.empty__art i:nth-child(2) { background: var(--violet); --r: 0deg; }
.empty__art i:nth-child(3) { background: var(--accent); --r: 20deg; }
@keyframes fan { from { transform: rotate(0); } to { transform: rotate(var(--r)); } }
.empty h3 { font: 750 19px/1.2 var(--display); letter-spacing: -.02em; }
.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: 750 18px var(--display); 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__sw { position: relative; width: 120px; height: 110px; }
.splash__sw i { position: absolute; left: 34px; top: 6px; width: 52px; height: 74px; border-radius: 13px; transform-origin: 50% 120%; animation: fan .9s var(--ease) infinite alternate; }
.splash__sw i:nth-child(1) { background: var(--pink); --r: -24deg; }
.splash__sw i:nth-child(2) { background: var(--violet); --r: 0deg; }
.splash__sw i:nth-child(3) { background: var(--accent); --r: 24deg; }

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