/* Стили сайта поверх общих токенов (/static/design/tokens.css). */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.55; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.brand .logo-svg { height: 36px; width: auto; display: block; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 7px 12px; border-radius: var(--r); font-weight: 500; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); background: var(--sunken); }
.site-header .sp { flex: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; padding: 0; font: inherit; }
.icon-btn:hover { color: var(--ink); background: var(--sunken); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: var(--r); background: var(--action); color: var(--action-ink); font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; outline: 0; box-shadow: var(--focus); }
.site-main:focus { outline: 0; }
.auth-art .display { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); margin: 0; font-weight: 500; max-width: 12em; line-height: 1.1; }
.nav-toggle { display: none; }  /* после .icon-btn, иначе тот вернёт кнопке display */
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--action); color: var(--action-ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.theme-ico-dark { display: none; } [data-theme='dark'] .theme-ico-light { display: none; } [data-theme='dark'] .theme-ico-dark { display: block; }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--r); border: 1px solid var(--action); background: var(--action); color: var(--action-ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--sunken); color: var(--ink); border-color: var(--ink-3); }
.btn.block { width: 100%; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input { width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field input:hover { border-color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--danger); font-size: 14px; }
.form-error { padding: 10px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); font-size: 14px; margin-bottom: 16px; }

/* ---------- главная ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); margin: 0 0 20px; font-weight: 500; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 30em; margin: 0 0 32px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.plan-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow-1); }
.plan-frame svg { display: block; width: 100%; height: auto; }
.section { padding: 56px 0; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.steps h3 { font-size: 22px; margin: 0 0 8px; }
.steps p { color: var(--ink-2); margin: 0; }
.steps .n { font-family: var(--font-display); font-size: 15px; color: var(--ink-3); margin-bottom: 14px; display: block; }
.closing { padding: 64px 0 88px; }
.closing .chips-strip { margin-bottom: 28px; }
.closing p { color: var(--ink-2); max-width: 36em; font-size: 18px; margin: 0 0 24px; }

/* ---------- вход и регистрация ---------- */
.auth { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { background: var(--sunken); padding: 56px; display: grid; align-content: center; gap: 28px; border-right: 1px solid var(--line); }
.auth-art h2 { font-size: clamp(30px, 3.4vw, 46px); margin: 0; font-weight: 500; max-width: 12em; }
.auth-art p { margin: 0; color: var(--ink-2); max-width: 28em; font-size: 17px; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 36px; margin: 0 0 6px; font-weight: 500; }
.auth-card .sub { color: var(--ink-2); margin: 0 0 28px; }
.auth-extra { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease), opacity .24s; opacity: 0; }
.auth-extra > div { overflow: hidden; }
[data-mode='register'] .auth-extra { grid-template-rows: 1fr; opacity: 1; }
.auth-switch { margin-top: 20px; color: var(--ink-2); font-size: 15px; }
.auth-switch button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-switch button:hover { color: var(--ink); }
.mode-login-only { display: inline; } .mode-register-only { display: none; }
[data-mode='register'] .mode-login-only { display: none; } [data-mode='register'] .mode-register-only { display: inline; }

/* ---------- кабинет ---------- */
.page { padding: 48px 0 80px; }
.page h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 8px; font-weight: 500; }
.page .who { display: flex; align-items: center; gap: 16px; color: var(--ink-2); margin: 0 0 36px; }
.page .who form { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.projects li { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.projects .name { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.projects .date { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.empty { padding: 56px 0; max-width: 32em; }
.empty h2 { font-size: 28px; margin: 0 0 8px; }
.empty p { color: var(--ink-2); margin: 0 0 24px; }

/* ---------- подвал ---------- */

/* ---------- анимация плана: один выход при загрузке ---------- */
.draw { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: square; stroke-linejoin: miter; }
.draw.thin { stroke-width: 2; }
.draw.pen { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pen 1.4s var(--ease) forwards; }
@keyframes pen { to { stroke-dashoffset: 0; } }
.fade { opacity: 0; animation: fadein .6s ease forwards; }
@keyframes fadein { to { opacity: 1; } }
.plan-text { font-family: var(--font-display); fill: var(--ink-2); }
.plan-dim { stroke: var(--accent); stroke-width: 1.2; fill: none; }
.plan-dimtext { font-family: var(--font-display); fill: var(--accent); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .draw.pen { stroke-dashoffset: 0; } .fade { opacity: 1; } }

/* ---------- адаптив ---------- */
@media (max-width: 880px) {
  .hero { padding-top: 40px; } .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
  .site-header .wrap { gap: 10px; } .site-nav a { padding: 7px 8px; }
  .projects li { grid-template-columns: 1fr; gap: 6px; }
}

/* ловушка для ботов: человеку не видна и недоступна с клавиатуры */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cab-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.bio-form { max-width: 520px; margin-bottom: 40px; }
.bio-form .field { margin-bottom: 10px; }
.cab-h { font-size: 26px; margin: 0 0 14px; font-weight: 500; }

/* страницы с одной карточкой: восстановление пароля, сообщения */
.auth-solo { flex: 1; display: grid; place-items: center; padding: 56px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 34px; margin: 0 0 8px; font-weight: 500; }
.auth-card .sub { color: var(--ink-2); margin: 0 0 26px; }
.auth-switch { margin-top: 18px; font-size: 15px; }
.forgot { margin: -6px 0 18px; font-size: 14px; }
.notice { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); margin-bottom: 20px; font-size: 15px; }
.notice.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.notice.warn { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
.notice form { margin: 0; }
.notice.need { justify-content: space-between; }
.notice.need b { font-weight: 600; font-variant-numeric: tabular-nums; }
.notice.need .btn { min-height: 40px; padding: 0 18px 0 14px; border-radius: 999px; }
.notice.need .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* меню аккаунта в шапке */
.acct { position: relative; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 288px; max-width: calc(100vw - 24px); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); z-index: 30; display: grid; }
.acct-pop[hidden] { display: none; }
.acct-pop a, .acct-pop button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-pop a:hover, .acct-pop button:hover { background: var(--sunken); }
.acct-pop form { margin: 0; }
hr.plain { height: 0; margin: 6px 4px; border: 0; border-top: 1px solid var(--line); background: none; }

/* подвал: размерная линия, под ней строка с названием, разделами и значками */
.site-footer { margin-top: 56px; padding: 0 0 36px; color: var(--ink-2); font-size: 14px; }
.site-footer hr { margin: 0 0 18px; }
.foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.foot-row .sp { flex: 1; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-nav a { color: inherit; text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }
.foot-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* рендеры проекта в кабинете */
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lead { max-width: 60ch; color: var(--ink-2); }
.spin { display: inline-block; flex: none; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.rg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 20px 0 4px; }
.rg-switch, .rg-filter { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.rg-switch a, .rg-filter a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.rg-switch a:hover, .rg-filter a:hover { color: var(--ink); }
.rg-switch a[aria-current], .rg-filter a[aria-current] { background: var(--ink); color: var(--surface); }
.rg-zipall { margin-left: auto; }
.rg-group { margin-top: 34px; }
.rg-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rg-group-title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.rg-group-title a { color: inherit; text-decoration: none; }
.rg-group-title a:hover { text-decoration: underline; }
.rg-count { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.rg-zip { margin-left: auto; font-size: 14px; }
.rg-day { margin: 20px 0 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.rg-group-head + .rg-day { margin-top: 0; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rg-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.rg-tile.failed { background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.rg-wide, .rg-video { grid-column: span 2; }
.rg-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.rg-shots img { display: block; width: 100%; height: auto; border-radius: calc(var(--r) - 2px); background: var(--sunken); }
.rg-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; }
.rg-kind { font-weight: 500; }
.rg-time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rg-project { color: var(--ink-2); }
.rg-project:empty { display: none; }
.rg-summary { flex-basis: 100%; color: var(--ink-3); }
.rg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pf-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; vertical-align: -3px; }
.pf-toggle .pf-check { display: none; }
.pf-toggle[aria-pressed='true'] { border-color: var(--ok); color: var(--ok); }
.pf-toggle[aria-pressed='true'] .pf-check { display: inline; }
.pf-toggle[aria-pressed='true'] .pf-plus { display: none; }
.pf-toggle[aria-busy='true'] { opacity: .6; }
.rg-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 34px 0 8px; }
.rg-pages a { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.rg-pages a:hover { border-color: var(--line-strong); }
.rg-pages a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.rg-gap { color: var(--ink-3); }
.rg-empty { display: grid; justify-items: center; gap: 12px; margin: 40px 0; text-align: center; }
@media (max-width: 520px) { .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .rg-tile { padding: 8px; } .rg-wide, .rg-video { grid-column: 1 / -1; } .rg-zipall { margin-left: 0; } .rg-group-title { font-size: 19px; } }
.render-vwrap { position: relative; width: 100%; }
.rg-tile video { display: block; width: 100%; border-radius: calc(var(--r) - 2px); background: #000; }
.vsel { position: absolute; top: 10px; left: 10px; cursor: pointer; z-index: 2; }
.vsel-box { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vsel-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(22, 26, 34, .45); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.vsel-box:checked + .vsel-mark { background: var(--accent); border-color: var(--accent); }
.vsel-box:focus-visible + .vsel-mark { outline: 3px solid var(--accent); outline-offset: 2px; }
.vbar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); }
.vbar[hidden], .vresult[hidden], .vbar-join[hidden], .vbar-spin[hidden], .vbar-progress[hidden] { display: none; }
.vbar-join { display: inline-flex; align-items: center; gap: 8px; }
.vbar-join:disabled, .vbar-join[aria-busy="true"] { opacity: .7; cursor: progress; }
.vbar-spin { width: 14px; height: 14px; flex: none; }
.vbar-progress { flex: 1 1 100%; width: 100%; height: 4px; accent-color: var(--accent); border-radius: 2px; }
.vsel-box:disabled { cursor: default; }
.vsel-box:disabled + .vsel-mark { opacity: .6; }
.vsel::before { content: ""; position: absolute; inset: -8px; }
@media (max-width: 760px) { .vbar { position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; margin: 0; } .vresult { margin-bottom: 96px; } }
.vbar .btn { min-height: 44px; }
.vbar-count { font-weight: 500; margin-right: auto; }
.vresult { display: grid; gap: 10px; justify-items: start; margin: 0 0 18px; }
.vresult video { width: 100%; max-width: 720px; border-radius: var(--r); background: #000; }
.render-state { margin: 0; color: var(--ink-2); }
.render-state.fail { color: var(--warn); }
@media (max-width: 640px) { .row-actions { justify-content: flex-start; } }

/* меню аккаунта: лицо пользователя, баланс, пункты с иконками */
.avatar-lg { width: 44px; height: 44px; font-size: 18px; flex: none; }
.avatar-xl { width: 76px; height: 76px; font-size: 30px; flex: none; font-family: var(--font-display); }
.acct-id { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; }
.acct-who { display: grid; min-width: 0; line-height: 1.3; }
.acct-who b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who span { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-balance { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; padding: 10px 14px; border-radius: var(--r); background: var(--sunken); color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.acct-balance b { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink); }
.acct-pop svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.acct-pop a:hover svg, .acct-pop button:hover svg { stroke: var(--ink); }

/* кабинет */
.cab-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 32px 0 44px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
.cab-id h1 { font-family: var(--font-display); font-size: 32px; font-weight: 500; margin: 0 0 2px; line-height: 1.15; overflow-wrap: anywhere; }
.cab-email { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; }
.cab-id .hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.cab-verify { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.cab-verify form { margin: 0; }
.chip { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 500; }
.chip.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.chip.warn { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); }
.cab-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 170px; }
.cab-section { margin-bottom: 52px; }
/* кабинет: «Мои ссылки» */
.cl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.cl-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 8px 8px 8px 20px; }
.cl-row + .cl-row { border-top: 1px solid var(--line); }
.cl-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-name { font-weight: 600; }
.cl-count { font-size: 13px; color: var(--ink-3); }
.cl-empty { font-style: italic; }
.cl-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cl-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.cl-url:hover { color: var(--accent); text-decoration: underline; }
.cl-copy { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--r); background: transparent; color: var(--ink-2); cursor: pointer; font: inherit; font-size: 14px; }
.cl-copy:hover { background: var(--sunken); color: var(--ink); }
.cl-copy:focus-visible { outline: none; box-shadow: var(--focus); }
.cl-copy svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cl-copy .cl-ic-done, .cl-copy .cl-done { display: none; }
.cl-copy.is-done { color: var(--ok); }
.cl-copy.is-done .cl-ic-copy { display: none; }
.cl-copy.is-done .cl-ic-done { display: inline; }
.cl-copy.is-done .cl-done { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .cl-row { grid-template-columns: minmax(0, 1fr); padding: 10px 6px 6px 16px; } .cl-head { flex-direction: row; gap: 10px; align-items: baseline; } .cl-url { direction: rtl; text-align: left; } .cl-url > span { unicode-bidi: isolate; } } /* на телефоне адрес обрезается с начала: виден его конец (portfolio/, blog/) */
.cab-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cab-sec-head .cab-h { margin: 0; }
.textlink { color: var(--accent); font-size: 14px; font-weight: 500; text-decoration: none; }
.textlink:hover { text-decoration: underline; color: var(--accent); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.projects li { grid-template-columns: minmax(0, 1fr) auto; }
.proj-main { display: grid; gap: 4px; min-width: 0; }
.proj-main .name { overflow-wrap: anywhere; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.set-card { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.set-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 16px 20px; align-items: start; padding: 20px 24px; margin: 0; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row > label { padding-top: 11px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.set-row > .btn { margin-top: 2px; }
.set-field { display: grid; gap: 6px; min-width: 0; }
.set-field input { width: 100%; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.set-field input:hover { border-color: var(--ink-3); }
.set-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.set-field .hint { font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) {
  .cab-head { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .cab-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .set-row { grid-template-columns: 1fr; padding: 18px 18px; }
  .set-row > label { padding-top: 0; }
  .projects li { grid-template-columns: 1fr; }
}
/* чек-бокс согласия вставляет внешний скрипт 152on в конец формы: ставим его под полем, а не в сетку */
.set-row > label[data-152on-consent] { grid-column: 2 / -1; grid-row: 2; padding-top: 0; margin: 0 !important; width: auto !important; font-weight: 400; color: var(--ink-2); }
@media (max-width: 760px) { .set-row > label[data-152on-consent] { grid-column: 1 / -1; grid-row: auto; } }

/* хлебные крошки: одна полоса под шапкой на всех страницах */
.crumbs { padding: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; padding: 2px 0; border-radius: 4px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] span { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ссылки интерфейса: акцентные, без подчёркивания, подчёркиваются при наведении (в текстах статей остаются обычные) */
.forgot a, .auth-switch a, .auth-card .sub a, .field .hint a, .cab-id .hint a { color: var(--accent); font-weight: 500; text-decoration: none; }
.forgot a:hover, .auth-switch a:hover, .auth-card .sub a:hover, .field .hint a:hover, .cab-id .hint a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }

/* поле пароля с «глазом» */
.pw { position: relative; display: block; }
.pw input { padding-right: 46px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r-s); color: var(--ink-3); cursor: pointer; padding: 0; }
.pw-eye:hover { color: var(--ink); background: var(--sunken); }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* раскрывающиеся строки профиля: почта и пароль */
.set-acc { border-top: 1px solid var(--line); }
.set-acc summary { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 16px 20px; align-items: center; padding: 18px 24px; cursor: pointer; list-style: none; }
.set-acc summary::-webkit-details-marker { display: none; }
.set-acc .lbl { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.set-acc .val { color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.set-acc .act { color: var(--accent); font-size: 14px; font-weight: 500; }
.set-acc summary:hover .act { text-decoration: underline; text-underline-offset: 3px; }
.set-acc[open] .act { font-size: 0; }
.set-acc[open] .act::after { content: "Свернуть"; font-size: 14px; }
.set-panel { display: grid; grid-template-columns: minmax(0, 420px); gap: 14px; padding: 2px 24px 24px 214px; }
.set-panel .set-field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.set-panel .set-field input { width: 100%; }
.set-panel .btn { justify-self: start; }
.set-panel .hint { margin: 0; font-size: 13px; color: var(--ink-3); }
.pw-error { margin: 0; }
@media (max-width: 760px) {
  .set-acc summary { grid-template-columns: 1fr auto; padding: 16px 18px; }
  .set-acc .lbl { grid-column: 1 / -1; }
  .set-panel { padding: 2px 18px 20px; grid-template-columns: minmax(0, 1fr); }
}

/* примеры рендеров на главной: слайдер (дорожка с прокруткой, кнопки и точки улучшают) */
.examples { padding: 56px 0 40px; }
.vwalk { padding: 24px 0 48px; }
.vw-head { max-width: 46em; margin-bottom: 20px; }
.vw-head h2 { margin: 0 0 8px; }
.vw-head .lead { margin: 0; }
.vw-frame { margin: 0; width: 100%; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); background: var(--sunken); }
.vw-frame video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 610; background: var(--sunken); }
.vw-foot { margin-top: 16px; }
.ex-head { max-width: 46em; margin-bottom: 24px; }
.ex-head h2 { margin: 0 0 8px; }
.ex-head .lead { margin: 0; }
.ex-viewport { position: relative; }
.ex-track { display: flex; gap: 16px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--r-l); }
.ex-track::-webkit-scrollbar { display: none; }
.ex-track:focus-visible { outline: none; box-shadow: var(--focus); }
.ex-slide { flex: 0 0 min(100%, 880px); scroll-snap-align: center; }
.ex-slide figure { margin: 0; position: relative; }
.ex-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 610; object-fit: cover; border-radius: var(--r-l); background: var(--sunken); box-shadow: var(--shadow-1); }
.ex-slide figcaption { position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(6px); color: var(--ink); font-size: 14px; font-weight: 500; }
.ex-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-1); padding: 0; }
.ex-nav:hover:not(:disabled) { background: var(--surface); border-color: var(--ink-3); }
.ex-nav:disabled { opacity: .35; cursor: default; }
.ex-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex-prev { left: 10px; }
.ex-next { right: 10px; }
.ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.ex-dots { display: flex; gap: 8px; }
.ex-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; position: relative; }
.ex-dot::after { content: ""; position: absolute; inset: -8px; }
.ex-dot[aria-current="true"] { background: var(--ink); width: 26px; border-radius: 99px; }
.ex-nav, .ex-dots, .ex-toggle { display: none; }
.ex-ready .ex-nav { display: grid; }
.ex-ready .ex-dots { display: flex; }
.ex-ready .ex-toggle { display: grid; }
@media (max-width: 760px) { .ex-slide { flex-basis: 92%; } .ex-ready .ex-nav { display: none; } .ex-slide figcaption { left: 10px; bottom: 10px; font-size: 13px; } }

/* меню аватара: баланс — ссылка на пополнение */
a.acct-balance { text-decoration: none; align-items: center; gap: 10px; }
a.acct-balance:hover { background: var(--line); }
a.acct-balance em { margin-left: auto; padding: 5px 12px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 13px; font-weight: 500; line-height: 1.2; }
a.acct-balance:hover em { filter: brightness(1.1); }
a.acct-balance:focus-visible { outline: none; box-shadow: var(--focus); }
a.acct-balance span { flex: 0 0 auto; }

/* страница «Баланс» */
.bal-card { margin: 0 0 24px; padding: 20px 24px; border-radius: var(--r-l); background: var(--sunken); }
.bal-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.bal-sum b { font-family: var(--font-display); font-size: 32px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.topup { max-width: 560px; display: grid; gap: 16px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.pack input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pack:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pack:has(input:focus-visible) { box-shadow: var(--focus); }
.pack-main { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.pack-bonus { font-size: 14px; color: var(--ok, var(--ink-2)); }
.chk-offer { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.chk-offer input { margin-top: 4px; }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; }
.pay-list li { display: grid; grid-template-columns: 11em 7em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pay-status.pay-succeeded { color: var(--ok, var(--ink)); }
.pay-status.pay-canceled { color: var(--ink-3); }
@media (max-width: 600px) { .pay-list li { grid-template-columns: 1fr auto; } .pay-status { grid-column: 1 / -1; } }

/* история операций по балансу */
.bal-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.op-list { list-style: none; margin: 0; padding: 0; }
.op-row { display: grid; grid-template-columns: 11em 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.op-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op-what b { font-weight: 500; }
.op-what span { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.op-date { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.op-sum { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.op-row.income .op-sum { color: color-mix(in srgb, var(--ok) 70%, var(--ink)); }
.empty.compact { padding: 20px 24px; }
.empty.compact p { margin: 0; }
@media (max-width: 600px) { .op-row { grid-template-columns: 1fr auto; } .op-date { grid-column: 1 / -1; } }

/* видео в первом экране */
.hero-video { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--sunken); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 766 / 472; object-fit: cover; }
.vid-toggle { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.vid-toggle:hover { background: var(--surface); }
.vid-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.vid-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vid-toggle .i-play { display: none; fill: currentColor; stroke-width: 1.5; }
.vid-toggle.is-paused .i-pause { display: none; }
.vid-toggle.is-paused .i-play { display: block; }

/* три шага */
.how .dimline { margin-bottom: 14px; }
.how h2 { margin: 0 0 8px; }
.how .steps { list-style: none; padding: 0; margin: 28px 0 32px; counter-reset: none; }
.how .steps .step { border-top: 2px solid var(--ink); padding-top: 16px; }
.ex-foot { gap: 12px; }
.ex-toggle { place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.ex-toggle:hover { background: var(--sunken); }
.ex-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.ex-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ex-toggle .i-play { display: none; fill: currentColor; stroke-width: 1.5; }
.ex-toggle.is-paused .i-pause { display: none; }
.ex-toggle.is-paused .i-play { display: block; }
.ex-foot-left { display: flex; align-items: center; gap: 12px; }

/* никнейм в меню аватара — ссылка в кабинет (общее правило .acct-pop a делало бы из неё пункт меню) */
.acct-pop .acct-who b a.acct-name { display: inline; width: auto; padding: 0; background: none; border-radius: 4px; font: inherit; color: inherit; text-decoration: none; }
.acct-pop .acct-who b a.acct-name:hover { background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.acct-pop .acct-who b a.acct-name:focus-visible { outline: none; box-shadow: var(--focus); }
/* крупная аватарка в меню — тоже ссылка в кабинет (мышью; с клавиатуры ту же ссылку даёт никнейм) */
.acct-pop a.acct-avatar { display: block; width: auto; padding: 0; background: none; border-radius: 50%; flex: none; }
.acct-pop a.acct-avatar:hover { background: none; }
.acct-pop a.acct-avatar:hover .avatar { box-shadow: 0 0 0 2px var(--accent); }

/* аватарки: картинка в круге и выбор в кабинете */
.avatar { overflow: hidden; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-current { position: relative; width: 96px; height: 96px; flex: none; }
.av-del-form { position: absolute; inset: 0; margin: 0; }
.av-del { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 26, 34, .62); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.av-del svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.av-current:hover .av-del, .av-current:focus-within .av-del { opacity: 1; }
.av-del:focus-visible { outline: none; box-shadow: var(--focus); }
/* на телефоне наведения нет: корзина — всегда видимая метка в углу аватара */
@media (hover: none) {
  .av-del { opacity: 1; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
  .av-del svg { width: 20px; height: 20px; }
  .av-del-form { inset: auto -8px -8px auto; width: 44px; height: 44px; }
}
.av-card { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; padding: 20px; }
.av-current .avatar { width: 96px; height: 96px; font-size: 38px; }
.av-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; flex: 1 1 320px; }
.av-presets-box { min-width: 0; }
.av-presets-box > summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 32px; font-size: 14px; color: var(--ink-2); cursor: pointer; list-style: none; border-radius: 6px; }
.av-presets-box > summary::-webkit-details-marker { display: none; }
.av-presets-box > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.av-presets-box[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.av-presets-box > summary:hover { color: var(--ink); }
.av-presets-box > summary:focus-visible { outline: none; box-shadow: var(--focus); }
/* все готовые аватарки — в одну строку; на узком экране строку можно пролистать */
.av-grid { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 8px 6px 10px; margin: 0 -6px; scroll-snap-type: x proximity; }
.av-opt { flex: none; scroll-snap-align: start; position: relative; display: block; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.av-opt img { display: block; width: 100%; height: 100%; }
.av-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.av-opt:hover { box-shadow: 0 0 0 2px var(--ink-3); }
.av-opt.on, .av-opt:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.av-opt:has(input:focus-visible) { box-shadow: var(--focus); }
.av-upload { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.av-upload .field { flex: 1 1 240px; margin: 0; }

/* телефон: раздел «Аватар» в кабинете не шире экрана */
@media (max-width: 760px) {
  .av-upload .field { flex-basis: 100%; }
  .av-upload input[type=file] { width: 100%; max-width: 100%; }
  .av-upload .btn { width: 100%; }
}

/* пальцем: зона касания текстовых ссылок не меньше 44 px, вид прежний (поле растёт за счёт отрицательного отступа) */
@media (pointer: coarse) {
  .av-presets-box > summary { min-height: 44px; }
  .icon-btn { flex: none; min-width: 44px; min-height: 44px; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .ex-dot::after { inset: -17px; }
  .textlink, .linkbtn { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
  .crumbs a, .list-rows .meta a { display: inline-flex; align-items: center; padding-block: 9px; margin-block: -9px; }
}

/* ---------- баттл-карта: спецификация на чертёжном листе, колонка Decoro — полоса синьки ---------- */
.compare .dimline { margin-bottom: 14px; }
.compare h2 { margin: 0 0 8px; }
.bc { --us: 120px; --other: 200px; margin-top: 28px; }
.bc-head, .bc-row, .bc-title { display: grid; grid-template-columns: minmax(0, 1fr) var(--us) var(--other); align-items: center; column-gap: 16px; }
.bc-head { border-top: 2px solid var(--ink); padding: 14px 0 10px; font-family: var(--font-display); }
.bc-part { font-size: 26px; font-weight: 500; }
.bc-col { font-size: 15px; color: var(--ink-2); }
.bc-col.bc-us { color: var(--accent); }
.bc-group { border-top: 1px solid var(--line); }
.bc-title { font-family: var(--font-display); font-size: 17px; font-weight: 500; padding: 14px 0 6px; grid-template-columns: minmax(0, 1fr) var(--us) var(--other); }
.bc-row .bc-price { font-family: var(--font-display); font-size: 16px; font-weight: 500; white-space: nowrap; }
.bc-title .bc-col { display: none; }
.bc-row { padding: 7px 0; border-top: 1px dashed var(--line); }
.bc-group .bc-row:first-of-type { border-top: 0; }
.bc-group > .bc-row:first-child { padding-top: 12px; }
.bc-feat { font-size: 15px; }
.bc-row .bc-us { display: grid; place-items: center; align-self: stretch; margin: -7px 0; background: var(--accent-soft); color: var(--accent); }
.bc-head .bc-us, .bc-title .bc-us { text-align: center; }
.bc-other { font-size: 13px; color: var(--ink-3); }
.bc.paid .bc-head { margin-top: 36px; }
/* широкий экран: бесплатная часть в две колонки, подписи колонок — в строке каждой группы */
@media (min-width: 1000px) {
  .bc.free { --us: 64px; --other: 156px; }
  .bc.free .bc-head .bc-col { visibility: hidden; }
  .bc.free .bc-groups { columns: 2; column-gap: 48px; }
  .bc.free .bc-group, .bc.free .bc-row { break-inside: avoid; }
  .bc.free .bc-title .bc-col { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
  .bc.free .bc-title .bc-col.bc-us { color: var(--accent); }
  .bc.free .bc-groups .bc-group:first-child { border-top: 0; }
}
@media (max-width: 600px) {
  .nav-toggle { display: inline-grid; }
  /* на узком экране разделы — в выпадающем списке под шапкой: четыре пункта в одну строку не помещаются */
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; padding: 8px 20px 14px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 16px; }
  .site-header .wrap { gap: 14px; }
}
@media (max-width: 760px) {
  .crumbs { display: none; }
  .bc { --us: 52px; --other: 70px; }
  .bc.paid { --us: 76px; }
  .bc-head, .bc-row, .bc-title { column-gap: 10px; }
  .bc-part { font-size: 22px; }
  .bc-col { font-size: 13px; }
  .bc-feat { font-size: 14px; overflow-wrap: anywhere; }
  .bc-other { font-size: 12px; line-height: 1.3; }
}

.bc-short { display: none; }
@media (max-width: 760px) {
  .bc-full { display: none; }
  .bc-short { display: inline; }
  .bc-other { font-size: 13px; }
}

/* ---------- финал главной: окно планировщика — «лист» по центру, три 3D-снимка — «отпечатки» в ряд на его нижнем крае ---------- */
.showcase { margin-top: 48px; }
.sheet { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-pop); }
.sheet img { width: 100%; height: auto; vertical-align: top; }  /* без display: иначе перебьёт .shot-dark по специфичности */
.shot-dark { display: none; }
[data-theme='dark'] .shot-light { display: none; }
[data-theme='dark'] .shot-dark { display: block; }
.prints { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; margin-top: -72px; }
.print { margin: 0; padding: 6px 6px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); }
.print img { vertical-align: top; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-s); background: var(--sunken); }
.print figcaption { display: flex; align-items: center; gap: 8px; padding: 9px 4px 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.print figcaption svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .showcase { margin-top: 32px; }
  .sheet { border-radius: var(--r); }
  /* телефон: три маленьких снимка в ряд, чуть уже окна и заходят на его нижний край — как на компьютере */
  .prints { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 92%; margin-top: -22px; }
  .print { padding: 3px 3px 0; border-radius: 8px; box-shadow: var(--shadow-1); }
  .print img { border-radius: 5px; }
  .print figcaption { gap: 4px; padding: 5px 1px 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
  .print figcaption svg { width: 13px; height: 13px; }
}

/* ---------- Редизайн комнаты по фото ---------- */
.rd { padding: 28px 0 72px; }
.rd [hidden] { display: none !important; }
.rd-head { margin-bottom: 24px; }
.rd-head h1 { margin: 0 0 8px; }
.rd-head .lead { margin: 0; max-width: 36em; color: var(--ink-2); font-size: 18px; }
.rd-login { margin-bottom: 20px; }
.rd-fields { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; border: 0; margin: 0; padding: 0; min-width: 0; }
.rd-fields:disabled { opacity: .55; }
.rd-stage { position: sticky; top: 88px; align-self: start; aspect-ratio: 3 / 2; border-radius: var(--r-l); border: 2px dashed var(--line-strong); background: var(--surface); overflow: hidden; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.rd-stage.over { border-color: var(--accent); background: var(--accent-soft); }
.rd-stage.has-photo { border-style: solid; border-color: var(--line); }
.rd-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rd-drop { display: grid; justify-items: center; gap: 16px; padding: 24px; cursor: pointer; }
.rd-drop svg { width: 44px; height: 44px; fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rd-file:focus-visible ~ .rd-drop .btn, .rd-file:focus-visible ~ .rd-replace { box-shadow: var(--focus); }
.rd-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-replace { position: absolute; left: 14px; bottom: 14px; background: var(--surface); cursor: pointer; }
.rd-side { display: grid; gap: 22px; min-width: 0; }
.rd-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.rd-set legend { padding: 0; margin: 0 0 10px; font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-chip, .rd-row, .rd-tier { position: relative; cursor: pointer; }
.rd-chip input, .rd-row input, .rd-tier input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rd-chip span { display: block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; }
.rd-chip:hover span { border-color: var(--ink-3); }
.rd-chip:has(input:checked) span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 500; }
.rd-chip:has(input:focus-visible) span, .rd-row:has(input:focus-visible), .rd-tier:has(input:focus-visible) { box-shadow: var(--focus); border-radius: 999px; }
.rd-rows { display: grid; gap: 6px; }
.rd-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.rd-row::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.6px solid var(--line-strong); flex: none; }
.rd-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rd-row:has(input:checked)::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px); }
.rd-row:has(input:focus-visible) { border-radius: var(--r); }
.rd-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-tier { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.rd-tier:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rd-tier:has(input:focus-visible) { border-radius: var(--r); }
.rd-tier-name { font-size: 15px; }
.rd-tier-price { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.rd-go { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.rd-submit { min-height: 48px; padding-inline: 26px; }
.rd-balance { margin: 0; font-size: 14px; color: var(--ink-2); }
.rd-balance b { color: var(--ink); font-weight: 600; }
.rd-balance { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.rd-balance .btn, .form-error .btn { min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; }
.form-error .btn { margin-left: 12px; }
.rd-balance .btn svg, .form-error .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rd-result { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--ink); }
.rd-result h2 { margin: 0 0 18px; }
.rd-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rd-shot { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.rd-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sunken); }
.rd-shot figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 15px; font-weight: 500; }
.rd-state { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.rd-more { margin: 24px 0 0; }
@media (max-width: 860px) {
  .rd-fields { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rd-stage { position: relative; top: auto; }
  .rd-submit { width: 100%; }
}
@media (max-width: 480px) {
  .rd { padding-top: 18px; }
  .rd-head .lead { font-size: 16px; }
  .rd-shots { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Тариф для дизайнеров ---------- */
.ds { padding: 28px 0 72px; }
.ds-head { margin-bottom: 24px; }
.ds-head h1 { margin: 0 0 8px; }
.ds-head .lead { margin: 0; max-width: 36em; color: var(--ink-2); font-size: 18px; }
.ds-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ds-main { min-width: 0; display: grid; gap: 28px; }
.ds-sheet { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
.ds-sheet svg { display: block; width: 100%; height: auto; border-radius: 4px; }
.ds-sheet .sh-page { fill: #fff; stroke: #d6d8d2; }
.ds-sheet .sh-frame { fill: none; stroke: #1b2430; stroke-width: 1; }
.ds-sheet .sh-wall { fill: none; stroke: #1b2430; stroke-width: 4; stroke-linejoin: miter; }
.ds-sheet .sh-thin { fill: none; stroke: #1b2430; stroke-width: .8; }
.ds-sheet .sh-gap { fill: none; stroke: #fff; stroke-width: 4.6; }
.ds-sheet .sh-win { fill: #fff; stroke: #1b2430; stroke-width: .8; }
.ds-sheet .sh-leaf { fill: none; stroke: #1b2430; stroke-width: 1.2; stroke-linecap: round; }
.ds-sheet .sh-swing { fill: none; stroke: #1b2430; stroke-width: .5; }
.ds-sheet .sh-faint { stroke: #d6d8d2; }
.ds-sheet .sh-block { fill: #f4f5f1; stroke: #1b2430; stroke-width: 1; }
.ds-sheet .sh-txt { font: 9px var(--font-body, sans-serif); fill: #1b2430; }
.ds-sheet .sh-bold { font-weight: 600; }
.ds-sheet .sh-dim { font: 8px var(--font-body, sans-serif); fill: #1b2430; }
.ds-sheet .sh-area { font: 8px var(--font-body, sans-serif); fill: #55606d; }
.ds-sheet .sh-room { font: 9px var(--font-body, sans-serif); fill: #55606d; }
.ds-sheet .ds-stamp { font: 600 10px var(--font-display, sans-serif); fill: var(--accent); }
.ds-sheet .sh-contacts { font: 8px var(--font-body, sans-serif); fill: #55606d; }
.ds-vs { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds-vs span { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.ds-vs i { color: var(--ink-3); font-style: normal; }
.ds-vs b { color: var(--ink); font-size: 20px; font-weight: 600; }
.ds-vs em { margin-right: 4px; color: var(--ink-2); font-style: normal; font-size: 14px; }
.ds-vs-stack { display: grid; gap: 4px; justify-items: end; }
.ds-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ds-perks li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.ds-perks li:first-child { border-top: 2px solid var(--ink); }
.ds-perks svg { width: 28px; height: 28px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ds-perks b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.ds-perks span { display: block; margin-top: 4px; color: var(--ink-2); }
.ds-perks .ds-vs span, .ds-perks .ds-vs em, .ds-perks .ds-vs b { display: inline; margin: 0; font-family: var(--font-body, inherit); }
.ds-perks .ds-vs span { font-size: 15px; }
.ds-perks .ds-vs b { font-size: 20px; font-weight: 600; }
.ds-perks .ds-vs em { font-size: 14px; }
@media (max-width: 760px) { .ds-perks li { grid-template-columns: 44px minmax(0, 1fr); } .ds-perks li > .ds-vs, .ds-perks li > .ds-vs-stack { grid-column: 2; justify-items: start; } }
.ds-buy { position: sticky; top: 84px; display: grid; gap: 14px; justify-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
.ds-price { display: flex; align-items: baseline; gap: 10px; }
.ds-price b { font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1; }
.ds-price span { color: var(--ink-2); }
.ds-buy form { margin: 0; width: 100%; }
.ds-buy .btn { min-height: 48px; }
.ds-buy form .btn { width: 100%; }
.ds-until, .ds-balance { margin: 0; font-size: 14px; color: var(--ink-2); }
.ds-until b, .ds-balance b { color: var(--ink); font-weight: 600; }
.ds-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; width: 100%; padding-top: 14px; border-top: 1px solid var(--line); }
.ds-balance .btn { min-height: 40px; border-radius: 999px; padding: 0 16px 0 12px; }
.ds-balance .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ds-studio { margin-top: 44px; padding-top: 24px; border-top: 2px solid var(--ink); max-width: 640px; }
.ds-studio h2 { margin: 0 0 16px; }
.ds-form { display: grid; gap: 12px; justify-items: start; }
.ds-form .field { width: 100%; margin: 0; }
@media (max-width: 860px) {
  .ds-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ds-buy { order: -1; position: static; }
}
@media (max-width: 480px) {
  .ds { padding-top: 18px; }
  .ds-head .lead { font-size: 16px; }
  .ds-price b { font-size: 38px; }
  .ds-buy { padding: 18px; }
}

/* ---------- Страница для застройщиков ---------- */
.dv { padding: 28px 0 72px; }
.ds-cta { margin: 18px 0 0; }
.dv-widget { margin: 8px 0 44px; }
.wd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.wd-stage { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.wd-frame { position: relative; width: var(--wd-w); max-width: 100%; height: var(--wd-h); margin: 0 auto; border-radius: var(--r); overflow: hidden; background: var(--sunken); transition: width .2s ease, height .2s ease; }
.wd-iframe { display: block; width: 100%; height: 100%; border: 0; }
.wd-open { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.wd-open img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wd-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: rgba(22, 26, 34, .82); font-weight: 500; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.wd-play svg { width: 20px; height: 20px; fill: currentColor; }
.wd-open:hover .wd-play, .wd-open:focus-visible .wd-play { background: var(--accent); }
.wd-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.wd-panel { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.wd-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.wd-field legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.wd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-chip { position: relative; }
.wd-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wd-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; background: var(--surface); color: var(--ink); }
.wd-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.wd-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.wd-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wd-dims label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.wd-dims input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
.wd-dims input:disabled { opacity: .55; }
.wd-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.wd-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.wd-check + .wd-check { margin-top: -10px; }
.wd-code-box { display: grid; gap: 8px; }
.wd-code { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--sunken); color: var(--ink-2); font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: none; }
.wd-copy { min-height: 44px; }
.dv-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; max-width: none; }
.dv-perks li { border-top: 2px solid var(--ink); }
.dv-perks li { grid-template-columns: 1fr; gap: 8px; }
.dv-request { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--ink); max-width: 720px; }
.dv-request h2 { margin: 0 0 16px; }
.dv-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
.dv-form .field { margin: 0; }
.dv-form .dv-wide { grid-column: 1 / -1; }
.dv-form textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.dv-form .btn { justify-self: start; min-height: 48px; padding-inline: 26px; }
.dv-form .field .form-error { margin: 6px 0 0; padding: 6px 10px; font-size: 13px; }
.dv-form .dv-captcha .form-error { display: block; margin: 6px 0 0; padding: 6px 10px; font-size: 13px; }
.dv-form [aria-invalid="true"] { border-color: var(--danger); }
@media (max-width: 860px) { .wd-grid { grid-template-columns: minmax(0, 1fr); } .dv-perks { grid-template-columns: minmax(0, 1fr); } .dv-perks li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; } .dv-perks li:not(:first-child) { border-top: 1px solid var(--line); } .dv-perks li:first-child { border-top: 2px solid var(--ink); } .wd-stage { padding: 8px; } }
@media (max-width: 760px) {
  .dv-form { grid-template-columns: minmax(0, 1fr); }
  .dv-form .btn { width: 100%; justify-self: stretch; }
}
@media (max-width: 480px) { .dv { padding-top: 18px; } }

/* ---------- примеры «было → стало» ---------- */
.rd-examples { margin: 36px 0 36px; }
.rd-examples h2 { margin: 0 0 14px; }
.rd-ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rd-ex-grid .ba { aspect-ratio: var(--ba-ratio); }
.ba { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--sunken); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* «Стало» лежит сверху и открывается справа от ручки: --pos — доля слева, где виден «Было» */
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 26, 34, .25); pointer-events: none; }
.ba-tag { position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(22, 26, 34, .66); color: #fff; font-size: 12.5px; font-weight: 500; pointer-events: none; }
.ba-tag-before { left: 10px; }
.ba-tag-after { right: 10px; }
.ba figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; color: #fff; font-size: 14px; font-weight: 500; background: linear-gradient(to top, rgba(22, 26, 34, .62), transparent); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; touch-action: pan-y; }
.ba-range:focus-visible { opacity: 1; outline: none; background: transparent; box-shadow: inset 0 0 0 3px var(--accent); border-radius: var(--r); -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.ba-range:focus-visible::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
@media (max-width: 760px) { .rd-ex-set .ba:nth-child(n+3) { display: none; } .rd-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 480px) { .ba-tag { top: 6px; padding: 2px 7px; font-size: 11.5px; } .ba-tag-before { left: 6px; } .ba-tag-after { right: 6px; } .ba figcaption { padding: 16px 8px 6px; font-size: 13px; } }

/* кабинет застройщика */
.bd .ds-head { margin-bottom: 24px; }
.bd-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 28px; }
.bd-project { padding-top: 18px; border-top: 2px solid var(--ink); scroll-margin-top: 80px; }
.bd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.bd-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.bd-name b { font-family: var(--font-display); font-size: 22px; font-weight: 500; overflow-wrap: anywhere; }
.bd .row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bd .row-actions form { margin: 0; }
@media (max-width: 560px) { .bd .row-actions { width: 100%; } .bd .row-actions > * { flex: 1 1 auto; } .bd .row-actions .btn { width: 100%; } }
.dv-wh { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 500; }
.bd-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; margin-bottom: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.bd-plan[data-state="expired"] { border-color: var(--danger, #b3261e); }
.bd-state { display: grid; gap: 4px; min-width: 0; }
.bd-state b { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.bd-state span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bd-money { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 6px 14px; }
.bd-balance b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-pay { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.bd-pay form { margin: 0; }
.bd-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bd-tier { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.bd-tier b { font-family: var(--font-display); font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bd-tier span { color: var(--ink-3); font-size: 14px; }
.bd-tier em { margin-top: 8px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-tier.is-current { border: 2px solid var(--accent); padding: 15px 17px; }
.bd-year { margin: 10px 0 28px; color: var(--ink-2); }
.dv-pricing { margin: 8px 0 44px; }
.dv-pricing h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 500; }
.dv-trial { margin: 0 0 16px; font-size: 18px; }
.bd-invoice { margin: 8px 0 48px; padding-top: 18px; border-top: 2px solid var(--ink); scroll-margin-top: 80px; }
.bd-invoice h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.bd-inv-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 880px; }
.bd-inv-form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.bd-inv-form input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; }
.bd-inv-form input[aria-invalid="true"] { border-color: var(--danger, #b3261e); }
.bd-inv-form .form-error, .bd-inv-form .btn { grid-column: 1 / -1; }
.bd-inv-form .btn { justify-self: start; }
.bd-invoices { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; max-width: 520px; }
.bd-invoices li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .bd-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bd-inv-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bd-plan { grid-template-columns: minmax(0, 1fr); } .bd-money { justify-content: flex-start; } }
@media (max-width: 560px) { .bd-inv-form { grid-template-columns: minmax(0, 1fr); } .bd-pay .btn, .bd-pay form { width: 100%; } .bd-pay form .btn { width: 100%; } }

/* переключатель периода оплаты и цены ступеней */
.dv-pr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.dv-pr-head h2 { margin: 0; }
.term-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--sunken); }
.term-switch label { position: relative; }
.term-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.term-switch span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.term-switch input:checked + span { background: var(--ink); color: var(--surface); }
.term-switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.term-badge { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-price { display: grid; margin-top: 8px; }
.bd-now { display: grid; font-style: normal; font-weight: 600; }
.bd-now > span, .bd-now { font-variant-numeric: tabular-nums; }
.bd-was, .bd-total, .bd-y { display: none; }
.dv-pricing .bd-was, .dv-pricing .bd-total, .dv-pricing .bd-y { display: block; }
.dv-pricing .bd-now > span { grid-area: 1 / 1; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.dv-pricing .bd-was { font-size: 14px; font-weight: 400; color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.dv-pricing .bd-total { margin-top: 2px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s var(--ease); }
.dv-pricing .bd-y { opacity: 0; transform: translateY(6px); pointer-events: none; }
.dv-pricing[data-term="year"] .bd-was { opacity: 1; transform: none; }
.dv-pricing[data-term="year"] .bd-total { opacity: 1; }
.dv-pricing[data-term="year"] .bd-m { opacity: 0; transform: translateY(-6px); }
.dv-pricing[data-term="year"] .bd-y { opacity: 1; transform: none; }
@media (max-width: 560px) { .term-switch { display: flex; width: 100%; } .term-switch label { flex: 1 1 0; } .term-switch span { width: 100%; padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .term-switch span, .dv-pricing .bd-now > span, .dv-pricing .bd-was, .dv-pricing .bd-total { transition: none; } }
.bd-tier { align-content: start; }
.bd-tier .bd-now > span { color: var(--ink); font-size: 16px; }
.bd-tier .bd-now { margin-top: 0; font-size: 16px; }
@media (max-width: 560px) { .bd-tier b { font-size: 22px; } .bd-tier { padding: 14px; } .bd-tier.is-current { padding: 13px; } }

/* видео из готового кадра */
.anim-open { gap: 8px; }
.anim-open svg, .anim-topup svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rd-shot-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.anim-dlg { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2, 0 24px 60px rgba(0, 0, 0, .35)); }
.anim-dlg::backdrop { background: rgba(10, 14, 20, .55); }
.anim-box { display: grid; gap: 16px; padding: 20px; }
.anim-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.anim-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.anim-x { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.anim-x:hover { background: var(--sunken); color: var(--ink); }
.anim-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.anim-thumb { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--r); background: var(--sunken); }
.anim-sum { display: grid; gap: 2px; }
.anim-total { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.anim-line, .anim-bal { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.anim-bal.low { color: var(--danger); }
.anim-msg { margin: 0; padding: 10px 12px; border-radius: var(--r); background: var(--accent-soft); font-size: 15px; }
.anim-msg.bad { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.anim-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.anim-actions .btn { min-height: 48px; padding: 0 22px; }
.anim-actions .btn[hidden] { display: none; }
@media (max-width: 480px) { .anim-actions .btn { flex: 1 1 100%; } .anim-actions .anim-cancel { order: 2; } }
@media (prefers-reduced-motion: no-preference) { .anim-dlg[open] { animation: anim-in .18s var(--ease, ease-out); } }
@keyframes anim-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn.anim-go { min-width: 190px; }
.rg-vph { display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 16 / 9; padding: 16px; border-radius: calc(var(--r) - 2px); background: var(--sunken); text-align: center; color: var(--ink-2); }
.rg-vph p { margin: 0; max-width: 28em; font-size: 14px; }
.rg-vph.failed { background: color-mix(in srgb, var(--warn) 8%, var(--sunken)); }
.rg-vph.failed p { color: var(--warn); }
.rg-vph svg { width: 32px; height: 32px; fill: none; stroke: var(--warn); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.bd-extra { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-top: 14px; }
.bd-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 10px; align-items: end; flex: 1 1 560px; max-width: 820px; }
.bd-cta label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.bd-cta input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; }
.bd-cta input[aria-invalid="true"] { border-color: var(--danger); }
.bd-cta .btn { min-height: 44px; }
.bd-cta .form-error { grid-column: 1 / -1; margin: 0; }
.bd-views { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bd-views b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .bd-cta { grid-template-columns: minmax(0, 1fr); } .bd-cta .btn { justify-self: start; } }
.dv-extras { margin: 0 0 12px; max-width: 46em; color: var(--ink-2); }

/* страницы по стилям редизайна */
.rd-style { margin: 8px 0 8px; max-width: 46em; }
.rd-style img { max-width: 100%; height: auto; border-radius: var(--r); }
.rd-style h2 { margin-top: 28px; }
.rd-style h2, .rd-styles h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.rd-style p { margin: 0 0 12px; color: var(--ink-2); }
.rd-style ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.rd-styles { margin: 32px 0 48px; }
.rd-styles ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rd-styles a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--surface); }
.rd-styles a:hover { border-color: var(--ink-3); }
.rd-styles a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.rd-chip a { color: inherit; text-decoration: none; pointer-events: none; }
