/* Общее для публичных страниц нового дизайна (основа — base.css): шапка, подвал, формы, сообщения, тарифы,
   карточки примерок, окно cookie и небольшие страницы — вход, кабинет, результат, оплата, документы.
   Главная — home.css, примерочная — try.css. */

/* шапка: ссылки пользователя; на телефоне — только значки */
.nav-link { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover { color: var(--ink); background: var(--shell); }
.nav nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 1080px) { .nav nav { display: none; } }
@media (max-width: 640px) {
  .nav-in { gap: 12px; padding-left: 16px; }
  .nav-link span { display: none; } .nav-link { width: 40px; padding: 0; justify-content: center; }
  .nav .btn { display: none; }
}

/* страница: метка, заголовок, вводный абзац */
.page { padding-top: var(--s8); padding-bottom: var(--s10); }
.page-head { display: grid; gap: var(--s4); max-width: 900px; }
.page-head h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.04; letter-spacing: -.04em; }
.page-head p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.label { display: inline-flex; align-items: center; gap: var(--s2); justify-self: start; height: 32px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--on-soft); font: 600 13.5px var(--text); }
.label svg { width: 16px; height: 16px; }
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.035em; }
.note { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.note a, .info-banner a, .form-error a { color: inherit; font-weight: 600; }

/* карточка-панель */
.card { padding: var(--s6); border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); }

/* сообщения */
.info-banner, .mock-banner, .form-error { margin: 0; padding: var(--s4) var(--s5); border-radius: var(--r-m); font-size: 15px; line-height: 1.5; }
.info-banner { background: var(--accent-soft); color: var(--on-soft); }
.mock-banner { background: #fff4e0; color: #7a4a00; }
.form-error { background: #fdecec; color: #a32020; }
:root[data-theme="dark"] .mock-banner { background: #2a2210; color: #f3cf8a; } :root[data-theme="dark"] .form-error { background: #2c1414; color: #ffb4b4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mock-banner { background: #2a2210; color: #f3cf8a; } :root:not([data-theme="light"]) .form-error { background: #2c1414; color: #ffb4b4; } }

/* кнопки: маленькая, мягкая, ссылка-кнопка */
.btn-small { height: 40px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
.btn-main.btn-small .dot { width: 28px; height: 28px; }
.btn-soft { background: var(--well); color: var(--ink); padding: 0 22px; text-align: left; }
.btn-soft.btn-small { padding: 0 16px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn:not(.btn-main) { justify-content: center; }
.link-btn { padding: 0; border: 0; background: none; font: 600 15px var(--text); color: var(--accent); cursor: pointer; }
.link-btn[disabled] { color: var(--mute); cursor: default; }
.link-plain { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.link-plain:hover { color: var(--ink); }
.danger, .danger-btn { color: #c0392b !important; }

/* поля ввода — спокойные: светлеют в фокусе, без синей рамки */
.field { display: grid; gap: var(--s2); font-size: 14.5px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; height: 52px; padding: 0 var(--s4); border: 0; border-radius: var(--r-s); background: var(--well); color: var(--ink); font: 500 16px var(--text); outline: none; transition: background-color .15s var(--ease), box-shadow .15s var(--ease); }
.field input:focus, .field textarea:focus { background: var(--card); box-shadow: 0 0 0 1px var(--line-2), 0 8px 24px -14px rgba(0,0,0,.3); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }

/* тарифы — на главной и на странице покупки */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--s6) var(--s5) var(--s5); border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.plan h3 { font-size: 22px; }
.plan .for { margin: var(--s2) 0 0; font-size: 14.5px; color: var(--mute); min-height: 3em; }
.plan .price { margin-top: var(--s5); font: 600 46px/1 var(--display); letter-spacing: -.04em; }
.plan .count { margin-top: var(--s2); font-size: 15px; color: var(--ink-2); }
.plan .unit { display: inline-block; margin-top: var(--s3); padding: 4px 10px; border-radius: 999px; background: var(--well); font-size: 13px; font-weight: 600; color: var(--ink-2); align-self: flex-start; }
.plan ul { margin: var(--s5) 0 var(--s6); padding: var(--s5) 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: var(--s3); font-size: 14.5px; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: var(--s2); }
.plan li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.plan .btn, .plan .btn-line { margin-top: auto; }
.plan .btn-main { justify-content: space-between; }
.btn-line { height: 54px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--well); color: var(--ink); font: 600 16px var(--text); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-line[disabled] { opacity: .45; cursor: not-allowed; }
.plan.best { background: var(--ink); color: var(--paper); box-shadow: 0 30px 60px -30px rgba(21,23,27,.55); }
.plan.best .for, .plan.best .count, .plan.best ul { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.plan.best ul { border-color: color-mix(in srgb, var(--paper) 16%, transparent); }
.plan.best .unit { background: var(--accent); color: var(--accent-ink); }
.plan.best .btn-main { background: var(--paper); color: var(--ink); }
/* Страница покупки: нажатие на карточку выбирает пакет (скрипт в buy.html; радиокнопка — для клавиатуры и экранных дикторов), «Оплатить» — только у выбранной. Место под кнопку есть у всех, карточки не прыгают */
.prices-pick .plan { cursor: pointer; transition: background .15s var(--ease), box-shadow .15s var(--ease); }
.plan-radio { position: absolute; top: var(--s5); right: var(--s5); width: 1px; height: 1px; margin: 0; opacity: 0; }
.plan:has(.plan-radio:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan-act { display: grid; align-items: center; min-height: 54px; margin-top: auto; }
.plan-act > * { grid-area: 1 / 1; }
.plan-hint { text-align: center; font-size: 14.5px; font-weight: 600; color: var(--mute); }
.plan.best .plan-hint { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.plan-pay { visibility: hidden; }
.plan-pay[disabled] { opacity: .6; cursor: not-allowed; }
.plan:has(.plan-radio:checked) { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--accent); }
.plan:has(.plan-radio:checked) .plan-pay { visibility: visible; }
.plan:has(.plan-radio:checked) .plan-hint { visibility: hidden; }
.plan:has(.plan-radio:checked) :is(.for, .count, ul) { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.plan:has(.plan-radio:checked) ul { border-color: color-mix(in srgb, var(--accent-ink) 24%, transparent); }
.plan:has(.plan-radio:checked) li svg { color: var(--accent-ink); }
.plan:has(.plan-radio:checked) .unit { background: color-mix(in srgb, var(--accent-ink) 18%, transparent); color: var(--accent-ink); }
.plan:has(.plan-radio:checked) .flag { background: var(--paper); color: var(--ink); }
.plan:has(.plan-radio:checked) .btn-main { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .prices-pick .plan:not(:has(.plan-radio:checked)):hover { box-shadow: 0 0 0 2px var(--accent); } }
.plan .flag { position: absolute; top: calc(-1 * var(--s3)); left: var(--s5); height: 26px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line-2); }
.promises > div { display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); align-items: start; }
.ben-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--on-soft); }
.ben-ico svg { width: 22px; height: 22px; }
.promises .ben-ico { width: 40px; height: 40px; border-radius: var(--r-s); }
.promises .ben-ico svg { width: 20px; height: 20px; }
.promises p { margin: 0; }
.promises b { display: block; font: 600 16px var(--display); letter-spacing: -.015em; }
.promises span { font-size: 14.5px; color: var(--ink-2); }

/* карточки примерок: «Ваши примерки» в примерочной и в кабинете */
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.job-card { display: block; color: inherit; text-decoration: none; min-width: 0; }
.job-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--well); box-shadow: 0 0 0 1px var(--shell-line); }
.job-media img { width: 100%; height: 100%; object-fit: cover; }
.job-badge { position: absolute; left: 14px; top: 14px; z-index: 2; height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(12,13,16,.55); color: #fff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.job-card.done .job-badge { display: none; }
.job-badge, #elapsed { font-variant-numeric: tabular-nums; }   /* таймер «0:42» не дёргается от смены цифр */
.job-card.failed .job-badge { background: #b3261e; }
.job-card.failed .job-media img, .job-card.purged .job-media { opacity: .55; }
.job-card.purged .job-media { display: grid; place-items: center; }
.job-card.purged .job-badge { position: static; }
/* пока примеряем — по фото проходит блик */
.job-spinner { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%) -100% 0 / 200% 100% no-repeat; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }
.job-card b { display: block; margin: var(--s3) 2px 0; font: 600 17px var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.job-card small { display: block; margin: 2px 2px 0; font-size: 13.5px; color: var(--mute); }
.job-card .job-hint { color: var(--ink-2); }
.job-card .btn { margin-top: var(--s3); }
@media (hover: hover) and (pointer: fine) { .job-media { transition: transform .25s var(--ease); } a.job-card:hover .job-media { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .job-spinner { animation: none; background: rgba(255,255,255,.12); } }

/* подвал */
/* Подвал — отдельной тёмной панелью (владелец 27.10.2026: «сливается с прошлым блоком»). Внутри — цвета тёмной темы,
   в тёмной теме панель светлее фона и с рамкой. Между подвалом и последним разделом — полоска фона: так он отделён
   и от светлых страниц, и от тёмного последнего экрана главной. */
.foot {
  --ink: #f2f3f5; --ink-2: #c7c9cf; --mute: #8e9199; --line: #2a2c31; --well: #1a1b1f; --accent: #8f8aff;
  margin: var(--s3); padding: var(--s8) 0 var(--s6); border-radius: var(--r-xl); background: var(--night);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); font-size: 14.5px; color: var(--ink-2);
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s6); }
.foot h2 { margin: 0 0 var(--s3); font: 600 14px var(--display); color: var(--ink); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }
.foot .brand p { margin: var(--s3) 0 0; max-width: 22em; }
.foot-legal { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.foot-legal span:last-child { max-width: 34em; }

/* подсказка внизу и окно про cookie */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(92vw, 520px); padding: 14px 20px; border-radius: var(--r-m); background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cookie-banner { position: fixed; left: 16px; bottom: 16px; z-index: 50; max-width: 440px; padding: var(--s5); border-radius: var(--r-l); background: var(--glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 0 0 1px var(--glass-line), var(--shadow); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cookie-banner p { margin: 0 0 var(--s4); }
.cookie-banner a { color: var(--ink); font-weight: 600; }
.cookie-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* вход */
.login-page { display: grid; justify-items: center; }
.login-card { width: min(100%, 540px); display: grid; gap: var(--s5); }
.login-card .page-head h1 { font-size: clamp(32px, 4vw, 44px); }
.login-card .page-head p { font-size: 17px; }
.login-card form { display: grid; gap: var(--s4); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent a { color: var(--ink); font-weight: 600; }
.oauth-buttons { display: grid; gap: var(--s2); }
.oauth-btn { width: 100%; justify-content: center !important; gap: 10px; padding: 0 22px; color: #fff; }
.oauth-btn.yandex { background: #fc3f1d; } .oauth-btn.vk { background: #0077ff; }
.oauth-logo { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 8px; background: rgba(255,255,255,.2); font-weight: 800; font-size: 13px; }
.or-line { display: flex; align-items: center; gap: var(--s3); color: var(--mute); font-size: 13.5px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#stepLogin, #stepCode { display: grid; gap: var(--s3); }
#stepLogin .btn, #stepCode .btn { justify-content: center; }
.dev-code { margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-s); background: var(--well); font: 600 16px var(--display); text-align: center; }
.login-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }

/* кабинет */
.account-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6); align-items: end; }
.balance-card { display: grid; gap: var(--s2); min-width: 320px; }
.balance-card b { font: 600 28px var(--display); letter-spacing: -.03em; }
.balance-card > span { font-size: 14.5px; color: var(--mute); }
.balance-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.account-jobs { margin-top: var(--s8); }
.account-jobs h2, .account-data h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: var(--s5); }
.empty-note { margin: 0; color: var(--mute); }
.empty-note a { color: var(--accent); font-weight: 600; }
.account-data { margin-top: var(--s9); padding-top: var(--s7); border-top: 1px solid var(--line); max-width: 760px; }
.delete-account { margin-top: var(--s5); }
.delete-account summary { cursor: pointer; font-weight: 600; color: #c0392b; }
.delete-account form { display: grid; gap: var(--s3); margin-top: var(--s4); max-width: 420px; }

/* страница примерки: просмотр «было / стало» */
.result-page .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.result-page .back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); align-items: start; margin-top: var(--s6); }
.stage { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--night); cursor: pointer; user-select: none; -webkit-user-select: none; aspect-ratio: var(--ratio, 4 / 3); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.stage img.after { transition: opacity .2s var(--ease); }
.stage.before img.after { opacity: 0; }
.stage .was { position: absolute; z-index: 2; left: var(--s4); top: var(--s4); height: 32px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(12,13,16,.55); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .15s var(--ease); pointer-events: none; }
.stage.before .was { opacity: 1; }
.ba-switch { position: absolute; z-index: 2; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(12,13,16,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ba-switch button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: rgba(255,255,255,.85); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.ba-switch button[aria-pressed="true"] { background: #fff; color: #15171b; }
.result-side { display: grid; gap: var(--s4); }
.result-side h1 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.result-actions { display: grid; gap: var(--s2); }
.result-actions .btn { justify-content: space-between; }
.result-actions .btn-soft { justify-content: flex-start; height: auto; min-height: 54px; padding: 10px 22px; }
.result-actions .btn-soft small { display: block; font-weight: 400; font-size: 12.5px; color: var(--mute); }
/* товары Маркета под результатом */
.buy-list { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-m); background: var(--well); }
.buy-list h3 { font-size: 17px; }
.buy-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.buy-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; }
.buy-list .th { width: 52px; height: 52px; border-radius: 12px; background: var(--card) center / cover no-repeat; }
.buy-list b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-list small { font-size: 13px; color: var(--mute); }
.buy-list .note a { color: inherit; }
.status-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5); align-items: center; margin-top: var(--s6); }
.status-card h1, .status-card h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.status-card .note { margin-top: 4px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.delete-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }

/* покупка, оплата */
.buy-page .prices { margin-top: var(--s7); }
.buy-page .page-head { margin-bottom: 0; }
.buy-notes { display: grid; gap: var(--s3); margin-top: var(--s5); max-width: 760px; }
.pay-page .status-card { max-width: 760px; }

/* документы */
.legal-doc { max-width: 820px; }
.legal-doc h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: var(--s5); }
.legal-doc h2 { font-size: 24px; letter-spacing: -.02em; margin: var(--s7) 0 var(--s3); }
.legal-doc h3 { font-size: 19px; margin: var(--s5) 0 var(--s2); }
.legal-doc p, .legal-doc li { color: var(--ink-2); line-height: 1.65; }
.legal-doc a { color: var(--accent); }
.legal-doc table { width: 100%; border-collapse: collapse; margin: var(--s4) 0; font-size: 15px; display: block; overflow-x: auto; }
.legal-doc th, .legal-doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

/* документы: метка над текстом */
.legal-label { margin-bottom: var(--s5); }

/* страница ошибки */
.error-page { min-height: 50vh; display: grid; align-content: center; }
.error-page .btn { justify-self: start; margin-top: var(--s5); }

@media (max-width: 1080px) {
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
  .promises { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .result-layout { grid-template-columns: minmax(0, 1fr); }
  .account-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  .page { padding-top: var(--s6); padding-bottom: var(--s8); }
  .page-head p { font-size: 17.5px; }
  .card { padding: var(--s5) var(--s4); }
  .prices { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } .plan .for { min-height: 0; }
  .jobs-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .foot { margin: var(--s2); padding: var(--s7) 0 var(--s5); border-radius: var(--r-l); }
  .balance-card { min-width: 0; }
  .status-card { grid-template-columns: auto minmax(0, 1fr); } .status-card .btn { grid-column: 1 / -1; justify-self: start; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: var(--s4); }
}

/* Листалка комнат стиля (gallery.js): главная и примерочная */
.gallery { position: relative; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; -webkit-user-drag: none; }
.room-tag { position: absolute; left: 12px; top: 12px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(12,13,16,.55); color: #fff; font-size: 12.5px; font-weight: 600; pointer-events: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.g-nav { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #15171b; box-shadow: 0 4px 14px -6px rgba(0,0,0,.4); cursor: pointer; opacity: 0; transition: opacity .2s var(--ease); }
.g-nav svg { width: 15px; height: 15px; }
.g-prev { left: 10px; } .g-prev svg { transform: rotate(180deg); } .g-next { right: 10px; }
.gallery:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
@media (hover: none) { .g-nav { display: none; } }
.g-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background-color .2s var(--ease), width .2s var(--ease); }
.g-dots i.on { width: 16px; border-radius: 3px; background: #fff; }

/* Объявление владельца вверху страниц (админка → «Настройки» → «Объявление на сайте») */
.site-notice { padding: 10px 16px; text-align: center; font-size: 14.5px; line-height: 1.45; background: var(--accent-soft); color: var(--on-soft); }

/* Профиль */
.profile-page { max-width: 720px; }
.profile-head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.profile-ava { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--paper); flex: none; }
.profile-ava svg { width: 36px; height: 36px; }
.profile-head h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); }
.profile-head p { margin: 2px 0 0; color: var(--mute); }
.profile-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.profile-tile { display: grid; gap: 2px; padding: var(--s5); border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.profile-tile.wide { grid-column: 1 / -1; }
.profile-tile b { font-size: 34px; line-height: 1.1; }
.profile-tile span { font-size: 14.5px; color: var(--mute); }
.profile-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 var(--s6); }
.profile-menu { display: grid; border-radius: var(--r-l); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.menu-row { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.menu-row + .menu-row { box-shadow: inset 0 1px 0 var(--line); }
a.menu-row, button.menu-row, .menu-row summary { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 0 var(--s5); }
.menu-row summary { list-style: none; cursor: pointer; } .menu-row summary::-webkit-details-marker { display: none; }
.menu-row svg { width: 20px; height: 20px; flex: none; color: var(--mute); }
.menu-row span { flex: 1; min-width: 0; }
.menu-row .chev { transition: transform .2s var(--ease); }
.menu-row[open] .chev { transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) { a.menu-row:hover, button.menu-row:hover, .menu-row summary:hover { background: var(--well); } }
.menu-row .promo-form, .menu-row .promo-note, .menu-row .note { margin: 0 var(--s5) var(--s4); }
.promo-form { display: flex; gap: var(--s2); max-width: 380px; }
.promo-form input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--well); color: var(--ink); font: inherit; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--line); }
.promo-form input::placeholder { text-transform: none; color: var(--mute); }
.promo-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.promo-note { font-size: 14.5px; color: var(--ink-2); }
.purchases { display: grid; gap: var(--s3); margin: 0 var(--s5) var(--s4); padding: 0; list-style: none; font-size: 14.5px; }
.purchases li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; }
.purchases li span:first-child { color: var(--mute); white-space: nowrap; }
.purchases b { white-space: nowrap; }
.plan .price s { margin-right: 6px; font-size: .6em; font-weight: 500; color: var(--mute); }
@media (max-width: 640px) {
  .purchases li { grid-template-columns: minmax(0, 1fr) auto; } .purchases li span:first-child { grid-column: 1 / -1; }
}

/* Магазинам */
.biz-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: var(--s7, 40px) 0 var(--s5); }
.biz-steps h3 { margin: 0 0 var(--s2); font-size: 19px; } .biz-steps p { margin: 0; color: var(--ink-2); }
.biz-page > .card { margin-bottom: var(--s5); }
.biz-code pre { margin: var(--s4) 0; padding: var(--s4); border-radius: var(--r-m); background: var(--well); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.biz-list { margin: var(--s3) 0; padding-left: 20px; display: grid; gap: var(--s2); }
@media (max-width: 900px) { .biz-steps { grid-template-columns: minmax(0, 1fr); } }

/* «Что примеряли» под результатом */
.used-list h3 { margin: 0 0 var(--s3); font-size: 15px; }
.used-list ul { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.used-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s3); align-items: center; }
.used-list img, .used-color { display: block; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--well); box-shadow: 0 0 0 1px var(--line); }
.used-list b { display: block; font-size: 14.5px; }
.used-list small { display: block; font-size: 13px; color: var(--mute); }

