/* Стайлгайд — дизайн-система v2
   Основа: DESIGN.md стиля «Aesop» из библиотеки GradientDeck (ui.gradientdeck.com/styles/aesop).
   Повторено: кремовый холст без чистого белого, угольные чернила, квадратные углы, один дисплейный
   шрифт 31/25px без жирного, интерфейсный текст 12–18px, кнопки 48px (заливка — только для главного
   действия), разрывы секций 100px, плитки без рамок и теней, полноэкранный «кадр» со скримом,
   сегментная пагинация, чёрный подвал с колонками, движения 0,25–0,5 с ease-out, без появлений при прокрутке.
   Адаптировано под Стайлгайд: шрифты (оригинальные коммерческие недоступны и нужна кириллица),
   основной текст 16px на телефоне (читаемость, iOS не увеличивает поля), нижняя панель вкладок для
   приложения, вместо фотографий — «ткани»: драпировки цветами палитры. */

:root {
  --cream: #FFFEF2;      /* холст, текст на тёмном */
  --oat: #F6F5E8;        /* тонированные полосы, панели */
  --charcoal: #333333;   /* чернила, главная кнопка, полоса объявления */
  --black: #252525;      /* подвал, наведение на главную кнопку */
  --muted: #666666;      /* описания, подсказки */
  --hairline: #D6D5CC;   /* обводки вторичных кнопок и полей */
  --rule: #EBEADE;       /* тонкие линии */
  --idle: #CCCBC2;       /* неактивные сегменты */
  --veil: rgba(51, 51, 51, .5);
  --paper: #FFFEF2;      /* светлый текст поверх фото и тёмных полос — в обеих темах */
  --deep: #333333;       /* тёмные полосы: объявление, cookie */
  --amber: #945C26;      /* только маленькие метки */
  --ok: #3F6B4E; --ok-bg: #EEF1E4;
  --warn: #8A5A12; --warn-bg: #F5EEDC;
  --err: #9A3328; --err-bg: #F6E8E2;

  --display: ui-serif, "New York", "Iowan Old Style", Georgia, "Noto Serif", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --fs-legal: 12px; --fs-util: 13px; --fs-ui: 14px; --fs-body: 16px; --fs-lead: 18px;
  --fs-display: 31px; --lh-display: 1.33;

  --gap: 8px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --section: 100px;
  --container: 1200px; --live: 1170px; --reading: 640px;
  --ann: 57px; --head: 104px; --tabbar: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* псевдонимы для админки */
  --surface: var(--cream); --surface-2: var(--oat); --line: var(--rule); --line-strong: var(--hairline);
  --ink: var(--charcoal); --ink-2: var(--charcoal); --ink-3: var(--muted); --accent: var(--charcoal);
  --num: var(--sans); --error: var(--err); --success: var(--ok);
  color-scheme: light;
}
@media (max-width: 899px) { :root { --fs-display: 25px; --section: 64px; --head: 56px; } }

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--charcoal); font: 400 var(--fs-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
@media (min-width: 900px) { body { font-size: 15px; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2 { font: 400 var(--fs-display)/var(--lh-display) var(--display); letter-spacing: 0; margin: 0 0 var(--s4); text-wrap: balance; }
h3 { font: 700 var(--fs-body)/1.35 var(--sans); margin: 0 0 var(--gap); }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--charcoal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-ui); }
.xsmall { font-size: var(--fs-legal); }
.eyebrow { font: 500 var(--fs-ui)/1.5 var(--sans); color: var(--charcoal); margin-bottom: var(--gap); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--charcoal); }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden, [hidden] { display: none !important; }

/* ---------- каркас */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 15px; } }
.narrow { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.ann { background: var(--deep); color: var(--paper); font-size: 12px; line-height: 1.5; min-height: var(--ann); display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 20px; padding-top: calc(8px + var(--safe-t)); }
.ann a { color: var(--paper); }
.topbar { position: relative; z-index: 30; background: var(--cream); border-bottom: 1px solid var(--rule); }
body.over-hero .topbar { background: transparent; border-color: transparent; color: var(--paper); margin-bottom: calc(-1 * var(--head) - 1px); }
body.over-hero .topbar .btn { color: var(--paper); border-color: rgba(255,254,242,.6); }
body.over-hero .topbar .btn-primary { background: var(--paper); color: #333; border-color: transparent; }
body.over-hero .topbar .avatar { background: var(--paper); color: #333; }
.topbar-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--head); }
.logo { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; gap: 10px; font: 400 22px/1 var(--display); color: inherit; text-decoration: none; }
.logo-mark { width: 18px; height: 18px; flex: none; background: conic-gradient(#B0775A 0 25%, #7E8A6E 0 50%, #5F6F8C 0 75%, #8E4E60 0); }
.nav-desk { grid-column: 1; grid-row: 1; display: none; gap: 4px; }
.nav-desk a { font: 500 var(--fs-ui)/1.2 var(--sans); color: inherit; text-decoration: none; padding: 17px 12px; }
.nav-desk a:hover, .nav-desk a[aria-current="page"] { text-decoration: underline; }
.top-actions { grid-column: 3; justify-self: end; display: flex; gap: var(--gap); align-items: center; }
@media (min-width: 900px) { .nav-desk { display: flex; } }
@media (max-width: 899px) { .topbar-in { grid-template-columns: auto 1fr; } .logo { grid-column: 1; justify-self: start; font-size: 20px; } .top-actions { grid-column: 2; } }

main#app { min-height: 100vh; min-height: 100svh; padding-bottom: var(--section); }
@media (max-width: 899px) { main#app { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 48px); } }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--cream); border-top: 1px solid var(--hairline); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: var(--tabbar); color: var(--muted); text-decoration: none; font: 500 12px/1 var(--sans); -webkit-tap-highlight-color: transparent; }
.tabbar a svg { width: 22px; height: 22px; stroke-width: 1.3; }
.tabbar a[aria-current="page"] { color: var(--charcoal); box-shadow: inset 0 2px 0 var(--charcoal); }
@media (min-width: 900px) { .tabbar { display: none; } }

.section { padding: var(--section) 0 0; }
.band { background: var(--oat); padding: 56px 0; margin-top: var(--section); }
.page-head { padding: 48px 0 24px; }

/* ---------- кнопки: 48px, квадратные; заливка — только главное действие */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 24px 12px; border: 1px solid var(--hairline); background: transparent; color: var(--charcoal); font: 500 var(--fs-ui)/1.5 var(--sans); text-decoration: none; cursor: pointer; transition: background .25s ease-out, color .25s ease-out, border-color .25s ease-out; -webkit-tap-highlight-color: transparent; touch-action: manipulation; white-space: nowrap; }
.btn:hover { border-color: var(--charcoal); }
.btn-primary { background: var(--charcoal); border-color: transparent; color: var(--cream); }
.btn-primary:hover { background: var(--black); border-color: transparent; }
.btn-secondary { background: transparent; }
.btn-ghost { border-color: transparent; padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { border-color: transparent; text-decoration: underline; }
.btn-danger { color: var(--err); border-color: #E2C5BD; }
.btn-danger:hover { border-color: var(--err); }
.btn-light { color: var(--paper); border-color: var(--paper); }
.btn-light:hover { background: var(--paper); color: #333; }
.btn-tg { background: transparent; }
.btn-tg svg { color: #2AABEE; }
.btn-sm { min-height: 40px; padding: 9px 16px 8px; }
.btn-block { width: 100%; }
.arrow::after { content: ""; width: 14px; height: 9px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M0 4.5h13M9 .5l4 4-4 4' fill='none' stroke='%23000'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M0 4.5h13M9 .5l4 4-4 4' fill='none' stroke='%23000'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; border: 1px solid var(--cream); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-secondary.loading::after, .btn-ghost.loading::after, .btn-danger.loading::after { border-color: var(--charcoal); border-right-color: transparent; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: inherit; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--oat); }

/* ---------- поля: прямоугольные, обводка Hairline */
.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font: 500 var(--fs-ui)/1.5 var(--sans); margin-bottom: 6px; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 16px; background: var(--cream); border: 1px solid var(--hairline); font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none; transition: border-color .2s ease; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
.textarea { min-height: 160px; resize: vertical; font: 14px/1.5 ui-monospace, Menlo, monospace; }
.input:hover, .select:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--charcoal); }
.input[aria-invalid="true"] { border-color: var(--err); }
.field-err { color: var(--err); font-size: var(--fs-ui); margin-top: 6px; display: block; }
.field-hint { color: var(--muted); font-size: var(--fs-ui); margin-top: 6px; display: block; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 2px; top: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; cursor: pointer; font-size: var(--fs-ui); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--charcoal); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 14px 0; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: var(--fs-ui); }
.switch:last-child { border-bottom: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 24px; border: 1px solid var(--hairline); background: var(--cream); position: relative; flex: none; cursor: pointer; margin: 0; transition: background .25s ease-out; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--idle); transition: transform .25s ease-out, background .25s; }
.switch input:checked { background: var(--charcoal); border-color: var(--charcoal); }
.switch input:checked::after { transform: translateX(20px); background: var(--cream); }
.switch input:disabled { opacity: .4; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- панели вместо карточек: без рамок, тонированные */
.card { background: var(--oat); padding: 24px; }
.card-tight { padding: 16px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.notice { padding: 14px 16px; font-size: var(--fs-ui); margin-bottom: 20px; border-left: 2px solid var(--charcoal); background: var(--oat); }
.notice-ok { border-color: var(--ok); background: var(--ok-bg); }
.notice-warn { border-color: var(--amber); background: var(--warn-bg); }
.notice-err { border-color: var(--err); background: var(--err-bg); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; font: 500 12px/1 var(--sans); border: 1px solid var(--hairline); color: var(--charcoal); background: var(--cream); }
.badge-ok { color: var(--ok); border-color: #C9D3BE; }
.badge-warn { color: var(--amber); border-color: #E3D3B6; }
.badge-err { color: var(--err); border-color: #E2C5BD; }
.badge-accent { color: var(--charcoal); border-color: var(--charcoal); }
.label-amber { font: 400 12px/1.2 var(--sans); color: var(--amber); }
.divider { height: 1px; background: var(--rule); margin: 24px 0; border: 0; }
.empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty .swatch-row { justify-content: center; margin-bottom: 24px; }
.empty h2, .empty h3 { color: var(--charcoal); }

/* ---------- цвет */
.swatch-row { display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 20px; height: 20px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.dot-lg { width: 32px; height: 32px; }
.strip { display: flex; height: 8px; overflow: hidden; }
.strip span { flex: 1; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
@media (min-width: 640px) { .chips { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 32px 20px; } }
.chip { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; }
.chip .c { aspect-ratio: 1 / 1.15; flex: none; transition: transform .4s var(--ease); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.chip:hover .c { transform: translateY(-3px); }
.chip .t { padding: 12px 2px 0; font-size: 13px; line-height: 1.35; }
.chip .t b { display: block; font-size: var(--fs-ui); font-weight: 700; line-height: 1.08; margin-bottom: 4px; }
.chip .t .muted { display: block; }
.chip .t code { color: var(--muted); font: 12px/1.5 var(--sans); letter-spacing: .02em; }
.chip.sel .c { outline: 1px solid var(--charcoal); outline-offset: 4px; }
.chip-caution .c { position: relative; }
.chip-caution .c::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .5px), rgba(255,254,242,.9) 50%, transparent calc(50% + .5px)); }
.combo { display: flex; align-items: stretch; gap: 8px; }
.combo .bars { display: flex; flex: 1; min-height: 72px; }
.combo .bars span { flex: 1; }
.combo .bars span:first-child { flex: 1.8; }
.combo .icon-btn { align-self: center; }
.combo-names { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- сегменты (вкладки) и сегментная пагинация */
.seg { display: flex; gap: 0; border-bottom: 1px solid var(--hairline); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; min-height: 48px; padding: 0 16px; font: 500 var(--fs-ui)/1 var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; box-shadow: inset 0 -1px 0 transparent; transition: color .2s ease, box-shadow .2s ease; }
.seg button:hover { color: var(--charcoal); }
.seg button[aria-selected="true"] { color: var(--charcoal); box-shadow: inset 0 -2px 0 var(--charcoal); }
.segments { display: flex; gap: 6px; justify-content: center; align-items: center; height: 30px; }
.segments i { display: block; width: 30px; height: 2px; background: var(--idle); transition: width .4s var(--ease), background .4s; }
.segments i.on { width: 45px; background: var(--muted); }
.segments i.done { background: var(--charcoal); }

/* ---------- кадр (hero): полноэкранные драпировки со скримом */
.film { position: relative; height: 800px; max-height: 100svh; min-height: 560px; overflow: hidden; background: #2b2724; color: var(--paper); }
@media (max-width: 899px) { .film { height: 693px; } }
.drapes { position: absolute; inset: 0; display: flex; }
.drapes span { flex: 1; position: relative; background-color: var(--c); background-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(255,255,255,.07) 22%, rgba(0,0,0,.04) 45%, rgba(255,255,255,.10) 66%, rgba(0,0,0,.30) 100%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18)); transform-origin: top; animation: drape .9s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.drapes span:nth-child(odd) { margin-top: -2%; }
.drapes span:nth-child(3n) { flex: 1.4; }
@keyframes drape { from { transform: translateY(-100%); } to { transform: none; } }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.film-copy { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 2; text-align: center; padding: 0 24px; }
.film-copy .eyebrow { color: var(--paper); }
.film-copy h1 { color: var(--paper); max-width: 22ch; margin: 0 auto 12px; }
.film-copy p { font-size: var(--fs-ui); max-width: 46ch; margin: 0 auto 24px; color: rgba(255,254,242,.9); }
.film-copy .btn { min-width: min(390px, 100%); }
.film-note { margin-top: 16px; font-size: 12px; color: rgba(255,254,242,.75); }

/* ---------- главная: секции */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sec-head h2 { margin: 0; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 954fr) minmax(0, 470fr); gap: 0; } .split.mirror { grid-template-columns: minmax(0, 470fr) minmax(0, 954fr); } .split.mirror .split-media { order: 2; } }
.split > * { min-width: 0; }
.split-media { aspect-ratio: 954 / 537; display: grid; }
@media (max-width: 899px) { .split-media { aspect-ratio: auto; min-height: 340px; } .steps-media { grid-template-columns: 1fr 1fr !important; } .steps-media > div { min-height: 170px; } }
.split-copy { padding: 0 20px; }
@media (min-width: 900px) { .split-copy { padding: 0 64px; max-width: 470px; } }
.split-copy p { color: var(--muted); font-size: var(--fs-ui); line-height: 1.5; }
.steps-media { grid-template-columns: repeat(4, 1fr); }
.steps-media > div { position: relative; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--paper); font: 500 var(--fs-ui)/1.4 var(--sans); }
.steps-media > div b { display: block; font: 400 25px/1.2 var(--display); margin-bottom: 6px; }
.steps-media > div { min-width: 0; overflow-wrap: anywhere; }
.axes-media { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--cream); }
.axes-media { aspect-ratio: auto; }
.axes-media > div { display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 24px; background: var(--oat); }
.axes-media .strip { height: 40px; margin: 10px 0 6px; }
.axes-media b { font-size: var(--fs-ui); }
.axes-media .ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(222px, 1fr); gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; text-decoration: none; color: inherit; display: block; }
.tile .sw { aspect-ratio: 222 / 173; display: flex; }
.tile .sw span { flex: 1; }
.tile .nm { font: 400 var(--fs-body)/1.7 var(--sans); margin-top: 8px; }
.tile .ds { font-size: 13px; color: var(--muted); line-height: 1.4; }
.oatband { display: grid; gap: 32px; text-align: center; }
@media (min-width: 900px) { .oatband { grid-template-columns: repeat(3, 1fr); } }
.oatband h3 { font: 500 var(--fs-ui)/1.7 var(--sans); margin-bottom: 5px; }
.oatband p { font-size: var(--fs-ui); margin: 0 auto; max-width: 34ch; }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font: 500 var(--fs-body)/1.4 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: var(--fs-ui); line-height: 1.6; }
.type-card { display: block; text-decoration: none; color: inherit; }
.type-card .strip { height: 120px; }
.type-card h3 { margin-top: 12px; }
.type-card .tags { font-size: 13px; color: var(--muted); }

/* ---------- вход */
.auth { max-width: 420px; margin: 0 auto; padding: 64px 0 0; }
.auth .alt { text-align: center; margin-top: 24px; color: var(--muted); font-size: var(--fs-ui); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-ui); margin: 24px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--rule); flex: 1; }

/* ---------- анализ */
.flow-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 0 8px; }
.flow-head > :first-child { justify-self: start; }
.flow-step-label { font: 500 13px/1 var(--sans); color: var(--muted); text-align: center; }
.progress { margin: 0 0 40px; }
.tips { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); margin: 24px 0 32px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .tips { grid-template-columns: repeat(4, 1fr); } }
.tip { background: var(--cream); padding: 16px; font-size: 13px; color: var(--muted); }
.tip b { display: block; color: var(--charcoal); font-size: var(--fs-ui); margin-bottom: 2px; }
.upload { position: relative; display: block; background: var(--oat); padding: 48px 24px; text-align: center; cursor: pointer; transition: background .25s ease-out; }
.upload:hover { background: var(--rule); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload svg { width: 32px; height: 32px; margin: 0 auto 16px; stroke-width: 1.2; }
.upload b { font-weight: 500; }
.photo-stage { position: relative; overflow: auto; background: var(--oat); max-height: 70vh; max-height: 70svh; -webkit-overflow-scrolling: touch; }
.photo-stage .inner { position: relative; width: 100%; }
.photo-stage.zoom .inner { width: 260%; }
.photo-stage img { width: 100%; height: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.5); pointer-events: none; }
.pin::after { content: attr(data-label); position: absolute; top: 34px; left: 50%; transform: translateX(-50%); background: var(--charcoal); color: var(--cream); font: 500 11px/1 var(--sans); padding: 4px 6px; white-space: nowrap; }
.pin.active { width: 38px; height: 38px; margin: -19px 0 0 -19px; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 0 4px rgba(255,254,242,.6); }
.point-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 24px 0 16px; background: var(--hairline); border: 1px solid var(--hairline); }
.point-btn { border: 0; background: var(--cream); padding: 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; min-height: 60px; }
.point-btn[aria-pressed="true"] { background: var(--oat); box-shadow: inset 0 -2px 0 var(--charcoal); }
.point-btn .dot { width: 26px; height: 26px; border-radius: 50%; }
.point-btn small { display: block; color: var(--muted); font-size: 12px; }
.point-btn b { font-size: var(--fs-ui); font-weight: 500; }
.dot-empty { background: repeating-linear-gradient(45deg, var(--oat), var(--oat) 3px, var(--idle) 3px, var(--idle) 4px); }
.qcard h2 { margin-bottom: 8px; }
.options { display: grid; gap: 0; margin: 32px 0; border-top: 1px solid var(--rule); }
.opt { display: flex; align-items: center; gap: 16px; padding: 18px 4px; min-height: 60px; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: var(--fs-body); transition: background .2s ease; }
.opt:hover { background: var(--oat); }
.opt input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--muted); margin: 0; flex: none; display: grid; place-items: center; }
.opt input:checked { border-color: var(--charcoal); }
.opt input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--charcoal); }
.opt:has(input:checked) { background: var(--oat); }
.sticky-actions { position: sticky; bottom: calc(var(--tabbar) + var(--safe-b)); background: linear-gradient(to top, var(--cream) 75%, transparent); padding: 16px 0; display: flex; gap: 12px; z-index: 5; }
@media (min-width: 900px) { .sticky-actions { bottom: 0; } }
.sticky-actions .btn-primary { flex: 1; }
.analyzing { text-align: center; padding: 120px 16px; }
.analyzing .swatch-row { justify-content: center; margin-bottom: 32px; gap: 6px; }
.analyzing .dot { width: 6px; height: 48px; animation: weave 1.2s ease-in-out infinite; }
.analyzing .dot:nth-child(2) { animation-delay: .12s; } .analyzing .dot:nth-child(3) { animation-delay: .24s; } .analyzing .dot:nth-child(4) { animation-delay: .36s; }
@keyframes weave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- результат */
.result-hero { position: relative; color: var(--paper); margin: 0 -20px; }
@media (min-width: 900px) { .result-hero { margin: 0; } }
.result-hero .film { height: 520px; }
@media (max-width: 899px) { .result-hero .film { height: 480px; } }
.result-hero .film-copy { bottom: 40px; }
.type-name { font: 400 var(--fs-display)/var(--lh-display) var(--display); }
.axes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 40px 0 24px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 900px) { .axes { grid-template-columns: repeat(4, 1fr); } }
.axis { background: var(--cream); padding: 20px; }
.axis small { display: block; color: var(--muted); font-size: 13px; }
.axis b { display: block; font: 400 22px/1.3 var(--display); margin: 4px 0 16px; }
.meter { height: 1px; background: var(--hairline); position: relative; margin: 6px 0; }
.meter i { position: absolute; top: -5px; width: 2px; height: 11px; margin-left: -1px; background: var(--charcoal); }
.meter-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.res-nav { position: sticky; top: 0; z-index: 20; background: var(--cream); padding-top: var(--safe-t); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
@media (min-width: 900px) { .res-nav { margin: 0; padding-left: 0; padding-right: 0; } }
.res-section { padding: 72px 0 0; }
.res-section > p.small { max-width: 60ch; }
.why { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.why li { padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-ui); line-height: 1.6; color: var(--muted); }
.why li b { color: var(--charcoal); font-weight: 700; }
.group-title { font: 500 var(--fs-ui)/1.5 var(--sans); margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.compare { background: var(--oat); padding: 20px; margin-bottom: 24px; }
.compare-row { display: flex; height: 120px; }
.compare-row > div { flex: 1; display: flex; align-items: flex-end; padding: 8px; font-size: 12px; font-weight: 500; }
.season-looks { display: grid; gap: 20px; }
@media (min-width: 640px) { .season-looks { grid-template-columns: repeat(3, 1fr); } }
.gen-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gen-grid { grid-template-columns: repeat(4, 1fr); } }
.gen-item { overflow: hidden; background: var(--oat); aspect-ratio: 2/3; position: relative; }
.gen-item img { width: 100%; height: 100%; object-fit: cover; }
.gen-item .badge { position: absolute; left: 8px; bottom: 8px; }

/* ---------- кабинет */
.acc-head { display: flex; align-items: center; gap: 16px; padding: 48px 0 24px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 400 20px/1 var(--display); color: var(--cream); background: var(--charcoal); flex: none; text-decoration: none; }
.list { display: grid; border-top: 1px solid var(--rule); }
.list-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
a.list-item:hover { background: var(--oat); }
.list-item .grow { min-width: 0; }
.list-item .t { font-weight: 500; }
.list-item .s { font-size: 13px; color: var(--muted); }
.card .list { border-top: 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: var(--fs-ui); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

/* ---------- окна, уведомления, cookie */
.modal-back { position: fixed; inset: 0; background: var(--veil); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fade .25s ease-out; }
@media (min-width: 640px) { .modal-back { align-items: center; padding: 24px; } }
.modal { background: var(--cream); width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto; padding: 24px 24px calc(24px + var(--safe-b)); box-shadow: rgba(0,0,0,.02) 0 0 6px, rgba(0,0,0,.08) 0 2px 4px; animation: up .4s var(--ease); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-head h2 { margin: 0; }
.modal .card { background: var(--oat); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + var(--safe-b) + 12px); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { background: var(--charcoal); color: var(--cream); padding: 14px 16px; font-size: var(--fs-ui); animation: up .25s ease-out; }
.toast.err { background: var(--err); }
.cookie { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b)); z-index: 60; background: var(--deep); color: var(--paper); padding: 16px 20px; display: flex; gap: 16px; align-items: center; font-size: 13px; }
.cookie a { color: var(--paper); }
.cookie .btn { color: var(--paper); border-color: var(--paper); }
@media (min-width: 900px) { .cookie { bottom: 0; justify-content: center; } }
.skeleton { background: linear-gradient(90deg, var(--oat), var(--rule), var(--oat)); background-size: 200% 100%; animation: sk 1.4s infinite; min-height: 20px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- подвал (Footer Black) и документы */
.foot { background: var(--black); color: var(--paper); padding: 72px 0 calc(var(--tabbar) + var(--safe-b) + 40px); font-size: var(--fs-ui); }
@media (min-width: 900px) { .foot { padding-bottom: 56px; } }
.foot-in { max-width: var(--container); margin: 0 auto; padding: 0 20px; display: grid; gap: 40px 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-in { grid-template-columns: repeat(3, 200px) 1fr; padding: 0 15px; } }
.foot h4 { font: 700 var(--fs-lead)/1.5 var(--sans); margin: 0 0 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,254,242,.5); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding-bottom: 8px; }
.foot a { color: var(--paper); text-decoration: none; line-height: 1.2; }
.foot a:hover { text-decoration: underline; }
.foot-note { grid-column: 1 / -1; font-size: 12px; color: rgba(255,254,242,.6); padding-top: 24px; border-top: 1px solid rgba(255,254,242,.15); }
@media (min-width: 900px) { .foot-brand { justify-self: end; text-align: right; } }
.foot-brand .logo { font-size: 24px; }
.foot-brand p { color: rgba(255,254,242,.7); max-width: 30ch; margin-top: 12px; }
.doc-head { display: flex; align-items: center; justify-content: space-between; max-width: var(--reading); margin: 0 auto; padding: calc(16px + var(--safe-t)) 20px 16px; border-bottom: 1px solid var(--rule); }
.doc-head .logo { font-size: 20px; }
.doc-main { max-width: var(--reading); margin: 0 auto; padding: 48px 20px 80px; }
.doc h2 { font: 700 var(--fs-body)/1.4 var(--sans); margin: 40px 0 12px; }
.doc p, .doc li { color: var(--charcoal); font-size: var(--fs-ui); line-height: 1.7; }
.doc-note { font-size: 13px; color: var(--muted); padding: 12px 16px; background: var(--oat); }
.doc-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.doc-list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
.doc-page .foot { padding-bottom: 56px; }
.doc-page .foot-in { display: flex; gap: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .ann, .tabbar, .cookie, .res-nav, .no-print, .foot { display: none !important; }
  .result-hero .film { height: auto; min-height: 0; color: var(--charcoal); background: none; }
  .result-hero .film::after, .drapes { display: none; }
  .result-hero .film-copy { position: static; color: var(--charcoal); }
  .result-hero .film-copy h1, .result-hero .film-copy p, .result-hero .film-copy .eyebrow { color: var(--charcoal); }
  main#app { padding: 0; }
  .chip { break-inside: avoid; }
}

/* Фокус и прокрутка к элементу не прячутся под липкими панелями (WCAG 2.2, «Focus Not Obscured») */
main#app * { scroll-margin-top: 72px; scroll-margin-bottom: calc(var(--tabbar) + var(--safe-b) + 24px); }

/* ---------- пример результата, сводка, шаги */
.sample { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 900px) { .sample { grid-template-columns: 1fr 1.3fr 1fr; } }
.sample-col { background: var(--cream); padding: 24px; }
.sample-chips { grid-template-columns: repeat(3, 1fr) !important; gap: 16px 10px !important; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-ui); }
ul.plain li:last-child { border-bottom: 0; }
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 40px; }
@media (min-width: 900px) { .brief { grid-template-columns: repeat(4, 1fr); } }
.brief > div { background: var(--oat); padding: 20px; }
.brief h3 { font-size: var(--fs-ui); margin-bottom: 12px; }
.brief p { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.step-mark { width: 20px; height: 20px; border: 1px solid var(--muted); border-radius: 50%; flex: none; }
.step-mark.done { background: var(--charcoal); border-color: var(--charcoal); box-shadow: inset 0 0 0 4px var(--cream); }

/* ---------- ночная тема: те же пропорции и правила, инвертированные тона тёплой бумаги */
:root[data-theme="dark"] {
  --cream: #191816; --oat: #22211E; --charcoal: #ECE8DC; --black: #0E0D0C; --muted: #A9A498;
  --hairline: #3E3C36; --rule: #2D2B27; --idle: #4A4842; --veil: rgba(0, 0, 0, .6); --deep: #2A2825;
  --amber: #D9A66C; --ok: #93C3A0; --ok-bg: #1D2820; --warn: #DDB06A; --warn-bg: #2B2418; --err: #E59A8F; --err-bg: #2E1D1A;
  color-scheme: dark;
}
:root[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ECE8DC'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .btn-danger { border-color: #5A3530; }
:root[data-theme="dark"] .badge-ok { border-color: #33503C; } :root[data-theme="dark"] .badge-warn { border-color: #57462A; } :root[data-theme="dark"] .badge-err { border-color: #5A3530; }
:root[data-theme="dark"] .chip .c, :root[data-theme="dark"] .dot { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
:root[data-theme="dark"] .logo-mark { filter: saturate(.9) brightness(1.1); }
:root[data-theme="dark"] img.product-img { filter: brightness(.94); }
html.theme-anim, html.theme-anim * { transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important; }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

/* ---------- магазины и товары: плитка без рамок, как в источнике */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.pcard { position: relative; min-width: 0; }
.pimg { display: block; aspect-ratio: 3 / 4; background: var(--oat); overflow: hidden; position: relative; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pimg img { transform: scale(1.02); }
.noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.ptag { position: absolute; left: 8px; top: 8px; background: var(--cream); padding: 4px 6px; }
.pwish { position: absolute; right: 2px; top: 2px; font-size: 18px; color: var(--charcoal); }
.pbody { display: block; text-decoration: none; color: inherit; padding-top: 12px; text-align: center; }
.pbrand { display: block; font: 700 var(--fs-ui)/1.08 var(--sans); margin-bottom: 6px; }
.pname { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pprice { display: block; font-size: var(--fs-body); margin-top: 6px; }
.pprice s, .lead s { color: var(--muted); font-size: .85em; margin-left: 6px; }
.pmatch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 8px; }
.pmatch i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.filters-row { display: grid; gap: 8px; margin-bottom: 16px; }
@media (min-width: 900px) { .filters-row { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: center; } }
.brand-list { columns: 2; column-gap: 32px; }
@media (min-width: 900px) { .brand-list { columns: 4; } }
.brand-list a { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; break-inside: avoid; font-size: var(--fs-ui); }
.brand-list a:hover { text-decoration: underline; }
.store-card { text-decoration: none; color: inherit; display: block; }
.store-card:hover { background: var(--rule); }
.product { display: grid; gap: 32px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.product-media { background: var(--oat); aspect-ratio: 3 / 4; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-bottom: 8px; }
.stack-btns { display: grid; gap: 8px; }
.tryon .gen-item { max-width: 320px; margin-bottom: 12px; }
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--hairline); }
.prefix-input span { display: flex; align-items: center; padding: 0 0 0 16px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.prefix-input .input { border: 0; padding-left: 2px; min-width: 0; }
.prefix-input:focus-within { border-color: var(--charcoal); }

/* ---------- чат поддержки */
.sup-fab { position: fixed; right: 16px; bottom: calc(var(--tabbar) + var(--safe-b) + 16px); z-index: 45; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--charcoal); color: var(--cream); border: 0; font: 500 var(--fs-ui)/1 var(--sans); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: background .25s ease-out; }
.sup-fab:hover { background: var(--black); color: var(--paper); }
.sup-fab svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .sup-fab { bottom: 24px; right: 24px; } }
@media (max-width: 899px) { .sup-fab { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; } .sup-fab span { display: none; } }
body:has(.cookie) .sup-fab { bottom: calc(var(--tabbar) + var(--safe-b) + 96px); }
@media (min-width: 900px) { body:has(.cookie) .sup-fab { bottom: 88px; } }
.sup-panel { display: flex; flex-direction: column; gap: 12px; }
.msgs { display: flex; flex-direction: column; gap: 12px; max-height: 50vh; max-height: 50dvh; min-height: 200px; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 88%; }
.msg-who { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg-text { padding: 12px 14px; font-size: var(--fs-ui); line-height: 1.55; background: var(--oat); }
.msg-user { align-self: flex-end; }
.msg-user .msg-who { text-align: right; }
.msg-user .msg-text { background: var(--charcoal); color: var(--cream); }
.msg-staff .msg-text { border-left: 2px solid var(--amber); }
.typing .msg-text { color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick .btn { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.sup-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sup-form .input { min-height: 48px; resize: none; }
@media print { .sup-fab { display: none !important; } }
.filters-wrap { margin-bottom: 16px; }
.filters-wrap > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 var(--fs-ui)/1 var(--sans); }
.filters-wrap > summary::-webkit-details-marker { display: none; }
.filters-wrap > summary::after { content: "+"; color: var(--muted); }
.filters-wrap[open] > summary::after { content: "−"; }
@media (min-width: 900px) { .filters-wrap > summary { display: none; } }
.swatch-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border: 1px solid var(--hairline); background: transparent; cursor: pointer; font-size: 13px; color: var(--charcoal); }
.sw-btn i { width: 30px; height: 30px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sw-btn[aria-pressed="true"] { border-color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }
.quick .btn[aria-pressed="true"] { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
