/* Страницы под поиск: цветотип и инструменты (анализ лица, форма лица, цвет волос, цвет одежды). HTML собирает build-pages.py.
   Токены и кнопки повторяют схему «Нюд» из index.html; переключателя схем здесь нет. */
:root {
  --ink: #1c1713; --ink-2: #2a221c; --cream: #f7f5f0; --paper: #fdfcf9; --line: #e8e2d8;
  --muted: #6f665c; --blush: #f1d9d6; --blush-fg: #4a2c28;
  --serif: "Playfair Display", Georgia, serif; --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.12; }
h3 { font-size: 22px; line-height: 1.2; }
h1 em, h2 em { font-style: italic; }
p, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.eb { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sub { color: var(--muted); max-width: 54ch; font-size: clamp(16px, 1.3vw, 18px); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; padding: 16px 28px; border-radius: 999px; transition: transform .25s, background .25s; }
.btn:hover { background: #3b312a; transform: translateY(-2px); }
.btn.blush { background: var(--blush); color: var(--blush-fg); }
.btn.blush:hover { background: color-mix(in srgb, var(--blush) 60%, #fff); }
.btn i { font-style: normal; transition: transform .25s; }
.btn:hover i { transform: translateX(4px); }
.more { font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.free { font-size: 13px; color: var(--muted); }
.free.warn { color: #8a4b2a; }
section { padding: clamp(56px, 8vw, 104px) var(--pad); }
.in-wrap { max-width: 1240px; margin: 0 auto; }
.paper { background: var(--paper); }
.dark { background: var(--ink); color: var(--cream); }
.dark .eb { color: var(--blush); }
.dark .sub { color: rgba(247, 245, 240, .72); }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); }

/* шапка */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px var(--pad); background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(28, 23, 19, .07); }
.logo { font-family: var(--serif); font-size: 18px; letter-spacing: .34em; }
.nav { display: flex; gap: 32px; font-size: 14px; }
.nav a { opacity: .75; } .nav a:hover, .nav a[aria-current] { opacity: 1; }
.top-r { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; display: flex; }
.lang::after { content: "▾"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; pointer-events: none; opacity: .7; }
.lang select { appearance: none; -webkit-appearance: none; font: 600 11px/1 var(--sans); letter-spacing: .06em; color: inherit; background: none; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 999px; padding: 8px 26px 8px 12px; cursor: pointer; }
:lang(ko) { word-break: keep-all; }
.login { font-size: 12px; font-weight: 500; padding: 8px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); }

/* первый экран */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.lead { padding-top: clamp(32px, 5vw, 64px); }
.lead-grid { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(28px, 6vw, 88px); align-items: center; }
.copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--blush); color: var(--blush-fg); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.demo-card { position: relative; aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: var(--ink-2); box-shadow: 0 30px 70px rgba(60, 36, 17, .18); }
.demo-card figcaption { position: absolute; inset: auto 14px 14px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.demo-card figcaption small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.demo-card figcaption b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; }

/* образцы цвета */
.strip { display: flex; height: 44px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(28, 23, 19, .08); }
.strip i { flex: 1; background: var(--c); }
.band { height: clamp(72px, 10vw, 128px); border-radius: 24px; margin-top: clamp(28px, 4vw, 48px); }
.sws { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; }
.sws.four { grid-template-columns: repeat(4, 1fr); }
.sws li { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.3; }
.sws li::before { content: ""; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(28, 23, 19, .08); margin-bottom: 6px; }
.sws code { font: 500 11px/1.3 var(--sans); letter-spacing: .06em; color: var(--muted); }
.dark .sws li::before { box-shadow: inset 0 0 0 1px rgba(247, 245, 240, .16); }
.dark .sws code { color: rgba(247, 245, 240, .55); }
.note { max-width: 70ch; margin-top: 24px; color: var(--muted); }
.dark .note { color: rgba(247, 245, 240, .72); }
.sub-h { margin: clamp(32px, 4vw, 48px) 0 18px; }

/* тест */
.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.quiz form { display: flex; flex-direction: column; gap: 26px; }
.quiz fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.quiz legend { font-family: var(--serif); font-size: 21px; padding: 0; margin-bottom: 12px; }
.quiz label { display: block; cursor: pointer; }
.quiz input { position: absolute; opacity: 0; }
.quiz label span { display: block; border: 1px solid var(--line); background: var(--cream); border-radius: 18px; padding: 12px 18px; font-size: 15px; transition: .2s; }
.quiz label:hover span { border-color: var(--ink); }
.quiz input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quiz input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.res { position: sticky; top: 88px; background: var(--cream); border-radius: 28px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-height: 280px; }
.res .strip { width: 100%; height: 64px; }
.res h3 { font-size: clamp(26px, 3vw, 36px); }

/* сетка подтипов */
.season + .season { margin-top: clamp(32px, 4vw, 48px); }
.season > h3 { margin-bottom: 16px; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; transition: transform .3s, box-shadow .3s; }
.type:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(60, 36, 17, .1); }
.type b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.type span { font-size: 14px; color: var(--muted); }
.paper .type { background: var(--cream); }

/* карточки и текст */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards > * { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.paper .cards > * { background: var(--cream); }
.cards .n { font-family: var(--serif); font-size: 15px; color: var(--muted); }
.cards p { font-size: 15px; color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 72ch; }
.prose h2 { margin-bottom: 4px; }
.prose h3 { margin-top: 12px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose a { border-bottom: 1px solid currentColor; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 70ch; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blush); color: var(--blush-fg); font-size: 12px; display: grid; place-items: center; }

/* вопросы */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 22px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 70ch; }

/* финал и подвал */
.final { text-align: center; }
.final .in-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final .sub { max-width: 48ch; }
footer { background: var(--ink); color: rgba(247, 245, 240, .6); padding: clamp(40px, 6vw, 64px) var(--pad); font-size: 14px; border-top: 1px solid rgba(247, 245, 240, .08); }
.fcols { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr 1.2fr 1fr 1fr; gap: 32px 24px; }
.fcols > * { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fcols b { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blush); margin-bottom: 6px; }
.fcols .logo { color: var(--cream); margin-bottom: 6px; }
footer a:hover { color: var(--cream); }

/* инструменты: слева фото, справа управление */
.studio { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.stage { position: relative; aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: #f3efe8; box-shadow: 0 30px 70px rgba(60, 36, 17, .18); }
.stage canvas { display: none; width: 100%; height: 100%; object-fit: contain; }
.live .stage { aspect-ratio: auto; }
.live .stage canvas { display: block; height: auto; }
.live .poster, .live .start { display: none; }
.stage .start { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap; background: rgba(255, 255, 255, .86); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stage .start:hover { background: #fff; transform: translateX(-50%) translateY(-2px); }
.status { position: absolute; inset: auto 14px 14px; padding: 12px 16px; border-radius: 16px; background: rgba(28, 23, 19, .78); color: #fff; font-size: 14px; }
.busy .start { display: none; }
.ctl { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.src { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.file { position: relative; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.samples { display: flex; gap: 8px; }
.samples button { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.samples button:hover { box-shadow: 0 0 0 2px var(--ink); }
.now { font-size: 14px; color: var(--muted); }
.now b { color: var(--ink); font-weight: 600; }
.pal { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--muted); }
.pal > div { display: flex; flex-wrap: wrap; gap: 8px; }
.pal .type-pal { grid-column: 2; }
.pal button { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, var(--c), var(--c2, var(--c))); box-shadow: inset 0 0 0 1px rgba(28, 23, 19, .12); transition: transform .2s; }
.pal button:hover { transform: scale(1.1); }
.pal button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.pal .own { width: 44px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
.pal select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; max-width: 100%; }
.sliders { display: grid; gap: 10px; }
.sliders label { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.sliders input { width: 100%; accent-color: var(--ink); }
.btn.ghost { background: none; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); padding: 13px 22px; user-select: none; -webkit-user-select: none; touch-action: none; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.out { display: flex; flex-direction: column; gap: 14px; }
.rc { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rc h3 { font-size: clamp(24px, 2.6vw, 30px); }
.rc .strip { width: 100%; }
.picks { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.picks span { display: inline-flex; align-items: center; gap: 6px; }
.picks i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(28, 23, 19, .12); }
.cards a.more, .note a.more { font-weight: 600; }

/* рисунки причёсок (hair_svg.py) */
.hd { display: block; width: 100%; height: auto; color: var(--ink); }
.hd .skin { fill: #f7e6dc; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.hd .hair { fill: #4a3528; }
.hd .skin.nl { stroke: none; }
.hd .ft path, .hd path.ft { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.hd .ft .lips { fill: #d9a39b; stroke: none; }
.hd .guide path { stroke: var(--blush-fg); stroke-width: 1.4; stroke-dasharray: 4 4; fill: none; }
.hd.no .hair { fill: #a59a90; }
.hd .gm { stroke: #2a221c; stroke-width: 1.2; stroke-linejoin: round; }
.hd .ln { fill: none; stroke: #2a221c; stroke-width: 1.2; }

/* формы лица, причёски, типы фигуры */
.lead-grid.narrow { grid-template-columns: 1fr minmax(0, 300px); }
.shapes { grid-template-columns: repeat(4, 1fr); }
.shapes.six { grid-template-columns: repeat(6, 1fr); }
.shape { scroll-margin-top: 88px; transition: transform .3s, box-shadow .3s; }
.shape:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(60, 36, 17, .1); }
.shape:target { border-color: var(--ink); }
.shape .hd, .figs .hd { width: 62%; margin: 0 auto; }
.shape .more { align-self: flex-start; margin-top: auto; font-size: 14px; }
.shapes.six h3 { font-size: 18px; text-align: center; }
.dos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.do { margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
section:not(.paper) > .in-wrap .do { background: var(--paper); }
.do figcaption { display: flex; flex-direction: column; gap: 6px; }
.do b { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; }
.do span { font-size: 15px; color: var(--muted); }
.do.no b::before { content: "\2715\00a0"; color: #a4553f; font-family: var(--sans); font-size: 15px; }
.do.plain { text-align: center; }
.figs { grid-template-columns: repeat(5, 1fr); }
.figs > div { scroll-margin-top: 88px; }
.figs .btn { align-self: flex-start; margin-top: auto; padding: 10px 18px; font-size: 14px; }
.figs.four { grid-template-columns: repeat(4, 1fr); }
.figs > a { transition: transform .3s, box-shadow .3s; }
.dos.three { grid-template-columns: repeat(3, 1fr); max-width: 860px; }
.dos.five { grid-template-columns: repeat(5, 1fr); }
.dos.pair { grid-template-columns: 1fr 1fr; }
.dos .hd { max-height: 300px; }
.prose .checks { padding-left: 0; }
.figs > div:target { border-color: var(--ink); }
.field { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.field input { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; width: 100%; max-width: 220px; }
.quiz .fields { gap: 14px; align-items: flex-start; }
.quiz .field { display: grid; width: 100%; cursor: default; }
.quiz .field span { border: 0; background: none; padding: 0; border-radius: 0; font-size: 13px; }
.quiz .field input { position: static; opacity: 1; background: var(--cream); }
.res p { color: var(--muted); }

/* пример в статье о точности: один портрет в цветах разных подтипов */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.frames { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.frames .shot b { font-size: 18px; }
.shot video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; background: var(--line); }
.shots { margin-top: 28px; }
.sub-h + .sub { margin-bottom: 0; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shot img { aspect-ratio: 3 / 4; height: auto; border-radius: 22px; background: var(--line); }
.shot figcaption { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.shot b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.shot b a { border-bottom: 1px solid currentColor; }
.shot figcaption > span:last-child { font-size: 15px; color: var(--muted); }
.shot .strip { width: 120px; height: 28px; }
.shot.no .eb { color: #a4553f; }

/* цитата и «совпадение» с подтипами в статье о точности */
.say { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
.bars { list-style: none; padding: 0 !important; gap: 12px !important; }
.bars li { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 14px; font-size: 15px; }
.bars i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blush) var(--w), rgba(247, 245, 240, .14) var(--w)); }
.bars b { font-weight: 600; text-align: right; }
.dark .prose a { color: var(--cream); }
.dark .free { color: rgba(247, 245, 240, .6); }
.dark .prose p { color: rgba(247, 245, 240, .82); }

/* свайпы образов */
.swipe { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: clamp(28px, 6vw, 88px); align-items: center; }
.swipe-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips button { border: 1px solid rgba(247, 245, 240, .28); border-radius: 999px; padding: 9px 16px; font-size: 14px; transition: .2s; }
.chips button:hover { border-color: var(--cream); }
.chips button[aria-pressed="true"] { background: var(--blush); color: var(--blush-fg); border-color: var(--blush); }
.likes { font-size: 14px; color: var(--blush); min-height: 1.6em; }
.deck-wrap { position: relative; display: flex; flex-direction: column; gap: 18px; }
.deck { position: relative; aspect-ratio: 3 / 4.5; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 28px; }
.look { position: absolute; inset: 0; background: var(--paper); color: var(--ink); border-radius: 28px; padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 44px rgba(0, 0, 0, .3); transition: transform .28s, opacity .28s; cursor: grab; overflow: hidden; }
.look:nth-last-child(2) { transform: translateY(10px) scale(.96); }
.look:nth-last-child(n+3) { transform: translateY(20px) scale(.92); }
.look.drag { transition: none; cursor: grabbing; }
.look.gone { opacity: 0; }
.look .hd { flex: 1; min-height: 0; width: auto; }
.look b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.look p { font-size: 14px; color: var(--muted); min-height: 4.8em; }
.tag { position: absolute; top: 20px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.tag.yes { left: 18px; background: var(--ink); color: var(--paper); opacity: var(--yes, 0); }
.tag.no { right: 18px; border: 1px solid var(--ink); opacity: var(--no, 0); }
.deck-ctl { display: flex; align-items: center; justify-content: center; gap: 22px; }
.deck-ctl button { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(247, 245, 240, .35); font-size: 20px; transition: .2s; }
.deck-ctl button:hover { transform: scale(1.08); border-color: var(--cream); }
.deck-ctl .like { background: var(--blush); color: var(--blush-fg); border-color: var(--blush); }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(247, 245, 240, .25); transition: background .3s; }
.dots i.on { background: var(--blush); }
.locked .look { filter: blur(9px); cursor: default; }
.locked .deck { overflow: hidden; }
.locked .deck-ctl, .locked .chips { display: none; }
.lock { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; border-radius: 28px; background: linear-gradient(rgba(28, 23, 19, .66), rgba(28, 23, 19, .92)); animation: lock .4s both; }
.lock[hidden] { display: none; }
.lock svg { width: 44px; height: 44px; fill: none; stroke: var(--blush); stroke-width: 1.6; stroke-linecap: round; }
.lock svg rect { fill: color-mix(in srgb, var(--blush) 22%, transparent); }
.lock h3 { font-size: 28px; }
.lock p { font-size: 15px; color: rgba(247, 245, 240, .82); }
.lock .free { color: rgba(247, 245, 240, .6); }
@keyframes lock { from { opacity: 0; transform: scale(.96); } }

/* страница приложения */
.demo-card video, .clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.clip { display: flex; flex-direction: column; gap: 6px; }
.clip video { aspect-ratio: 3 / 4; height: auto; border-radius: 22px; background: var(--ink-2); margin-bottom: 8px; }
.clip b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.clip span { font-size: 14px; color: var(--muted); }
.cards > a { transition: transform .3s, box-shadow .3s; }
.cards > a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(60, 36, 17, .1); }

@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .figs, .dos.five { grid-template-columns: repeat(3, 1fr); }
  .shapes.six { grid-template-columns: repeat(3, 1fr); }
  .fcols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .lead-grid.narrow, .swipe { grid-template-columns: 1fr; }
  .deck-wrap { max-width: 360px; width: 100%; margin: 0 auto; }
  .do.plain { max-width: 260px; }
  .shapes, .dos, .dos.three, .dos.five, .clips, .figs, .figs.four, .shots, .frames { grid-template-columns: 1fr 1fr; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .field { grid-template-columns: 1fr; gap: 6px; }
  .studio { grid-template-columns: 1fr; }
  .pal, .sliders label { grid-template-columns: 1fr; gap: 6px; }
  .pal .type-pal { grid-column: 1; }
  .ctl .acts .btn { width: auto; flex: 1; }
  .nav { display: none; }
  .lead-grid, .quiz, .two { grid-template-columns: 1fr; }
  .types, .cards.three { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .sws { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .sws.four { grid-template-columns: repeat(2, 1fr); }
  .res { position: static; min-height: 0; }
  .acts .btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .types, .cards, .cards.three { grid-template-columns: 1fr; }
  .sws { grid-template-columns: repeat(2, 1fr); }
  /* карточки фигур и форм лица остаются по две в ряд: длинное слово не должно раздвигать колонку шире экрана */
  .cards.figs, .cards.figs.four, .shapes, .shapes.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards.figs > *, .shapes > * { padding: 16px; }
  :is(.cards.figs, .shapes) h3 { font-size: 17px; }  /* «Прямоугольник» целиком, без переноса */
  :is(.cards.figs, .shapes) p { overflow-wrap: break-word; hyphens: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; }
}

/* нейрофотосессия */
.pm { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 14px; }
.pm li { padding-left: 22px; position: relative; }
.pm li::before, .pm-cards h3::before { font-family: var(--sans); font-size: 15px; }
.pm li::before { position: absolute; left: 0; }
.pm .plus::before, .pm-cards .plus h3::before { content: "+"; color: #4f7a52; }
.pm .minus::before, .pm-cards .minus h3::before { content: "\2212"; color: #a4553f; }
.pm-cards h3::before { margin-right: 8px; }
