/* ИИ Фотосессия — компоненты сайта и кабинета. */

/* ── Бренд ──────────────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 18px; white-space: nowrap; }
.brand-mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: var(--accent-grad);
  box-shadow: 0 6px 20px rgba(200, 80, 230, .45), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .5s var(--ease-spring); }
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark::after { content: ''; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.07); }
.link-btn { color: var(--accent-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.link-btn:hover:not([disabled]) { text-decoration-color: currentColor; }
.link-btn[disabled] { color: var(--muted); cursor: default; }

/* ── Навигация ─────────────────────────────────────────────────────────────── */
.nav { position: sticky; z-index: 50; top: 0; padding: 12px 20px; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1240px; height: 58px; margin: 0 auto; padding: 0 10px 0 16px;
  border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 550; color: var(--text-2); transition: color .2s, background .25s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions, .nav-auth { display: flex; align-items: center; gap: 8px; }
.balance-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 6px 0 12px; border-radius: var(--r-pill); font-weight: 700; font-size: 14.5px; background: var(--surface-2); border: 1px solid var(--border-2); transition: border-color .2s; }
.balance-chip:hover { border-color: var(--accent); }
.balance-chip .ic { color: var(--gold); width: 17px; height: 17px; }
.balance-chip i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1d1300; font-style: normal; font-weight: 800; }

/* ── Общие секции ──────────────────────────────────────────────────────────── */
.landing { overflow-x: clip; }
.sec { max-width: 1240px; margin: 0 auto; padding: 84px 20px; }
.sec-narrow { max-width: 820px; }
.sec-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.sec-head-left { max-width: none; margin: 0 0 24px; text-align: left; }
.kicker { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.sec-title { margin: 0; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.sec-sub { margin: 14px 0 0; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.sec-sub a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.page { max-width: 1240px; margin: 0 auto; padding: 18px 20px 80px; min-height: 60vh; }
.h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.02em; }
.sec-inline { margin-top: 56px; }
.muted { color: var(--muted); font-size: 14px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 20px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--text); } .crumbs .ic { width: 14px; height: 14px; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding: 56px 20px 40px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1240px; margin: 0 auto; }
.aurora { position: absolute; inset: -120px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.aurora .a1 { width: 560px; height: 560px; left: -6%; top: -60px; background: #6a3dff; animation: drift1 22s ease-in-out infinite alternate; }
.aurora .a2 { width: 520px; height: 520px; right: 0; top: 40px; background: #e14bd8; opacity: .32; animation: drift2 26s ease-in-out infinite alternate; }
.aurora .a3 { width: 420px; height: 420px; left: 40%; top: 320px; background: #ff8a4c; opacity: .2; animation: drift1 30s ease-in-out infinite alternate-reverse; }
[data-theme='light'] .aurora i { opacity: .2; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-140px, 100px) scale(.9); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 16px; margin-bottom: 22px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--glass); border: 1px solid var(--border-2); }
.hero-title { margin: 0 0 18px; font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
.hero-sub { max-width: 560px; margin: 0 0 30px; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; } .trust .ic { color: var(--mint); width: 18px; height: 18px; }
.hero-art { position: relative; height: clamp(420px, 46vw, 560px); }
.ha { position: absolute; width: 44%; height: auto; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow-lg); border: 1px solid var(--border-2); animation: float 7s ease-in-out infinite; }
.ha1 { left: 28%; top: 4%; width: 46%; z-index: 3; }
.ha2 { left: 0; top: 22%; transform: rotate(-6deg); z-index: 2; animation-delay: -2s; }
.ha3 { right: 0; top: 16%; transform: rotate(6deg); z-index: 2; animation-delay: -4s; }
.ha4, .ha5 { display: none; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ── Каталог ───────────────────────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; margin: 0 0 22px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.is-on { color: var(--bg); background: var(--text); border-color: var(--text); }
.sgrid { columns: 4 240px; column-gap: 14px; }
.sc-card { position: relative; display: block; margin-bottom: 14px; break-inside: avoid; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); isolation: isolate; }
.sc-card img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.sc-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .72)); pointer-events: none; }
.sc-card:hover img { transform: scale(1.04); }
.sc-title { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; font-weight: 650; font-size: 15px; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.sc-cost { position: absolute; z-index: 1; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: #fff; background: rgba(10, 8, 16, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sc-cost .ic { width: 15px; height: 15px; color: var(--gold); }

/* ── Шаги и преимущества ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step, .feat { padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; font-size: 20px; font-weight: 800; color: #fff; background: var(--accent-grad); box-shadow: 0 10px 28px rgba(200, 80, 230, .4); }
.step h3, .feat h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.step p, .feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ── Тарифы ────────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); transition: transform .45s var(--ease), box-shadow .45s; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan-hot { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--accent-grad) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px rgba(190, 80, 255, .2); }
.plan-flag { position: absolute; top: 16px; right: 16px; padding: 4px 11px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent-grad); }
.plan h3 { margin: 0 0 14px; font-size: 19px; }
.plan-price b { font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.plan ul { flex: 1; display: grid; gap: 9px; margin: 20px 0 22px; padding: 0; list-style: none; font-size: 14.5px; color: var(--text-2); }
.plan li::before { content: '✓'; margin-right: 8px; color: var(--mint); font-weight: 800; }
.price-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.price-notes p { display: flex; gap: 12px; margin: 0; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; color: var(--text-2); }
.price-notes .ic { color: var(--accent-2); margin-top: 2px; }

/* ── FAQ, SEO-текст, CTA ───────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16.5px; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .4s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--accent-2); }
.faq-a p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.seo-text h2 { margin: 0 0 14px; font-size: 26px; letter-spacing: -.02em; }
.seo-text p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }
.cta { padding: 20px 20px 90px; }
.cta-in { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 14px; max-width: 1100px; margin: 0 auto; padding: 72px 24px; text-align: center; border-radius: 36px; color: #fff; background: linear-gradient(135deg, #5a2bd9 0%, #b23fd6 50%, #ff7a4c 100%); box-shadow: 0 40px 110px rgba(180, 60, 220, .35); }
.cta-in h2 { margin: 0; font-size: clamp(28px, 5vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.cta-in p { margin: 0 0 10px; font-size: 18px; opacity: .88; }
.cta .btn-ink { background: #fff; color: #2a0f45; }

/* ── Футер ─────────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); padding: 52px 20px 30px; background: var(--bg-2); }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; max-width: 1240px; margin: 0 auto; }
.foot-brand p { max-width: 300px; margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.foot-col { display: grid; align-content: start; gap: 10px; font-size: 14px; }
.foot-col b { margin-bottom: 4px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.foot-col a { color: var(--text-2); } .foot-col a:hover { color: var(--accent-2); }
.foot-copy { max-width: 1240px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ── Страница образа и генератор ───────────────────────────────────────────── */
.style { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 480px); gap: 36px; align-items: start; }
.style-art { position: sticky; top: 96px; margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); }
.style-art img { width: 100%; height: auto; max-height: calc(100vh - 120px); object-fit: contain; background: #000; }
.style-art figcaption { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(10, 8, 16, .55); backdrop-filter: blur(8px); }
.stage-wait { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; text-align: center; color: #fff; background: rgba(10, 8, 16, .62); }
.stage-wait[hidden], .stage-actions[hidden] { display: none; }
.stage-wait .ic { width: 36px; height: 36px; animation: spin 1.2s linear infinite; }
.stage-wait b { font-size: 18px; } .stage-wait span { max-width: 280px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.stage-actions { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gen-drop .swap { pointer-events: none; }
.style-side h1 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.035em; }
.style-desc { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.style-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.style-meta li { display: inline-flex; align-items: center; gap: 7px; } .style-meta .ic { width: 17px; height: 17px; color: var(--accent-2); }
.gen { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-xl); }
.gen-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.gen-drop { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 150px; padding: 18px 12px; border-radius: var(--r-lg); text-align: center; color: var(--text-2); background: var(--bg-2); border: 1.5px dashed var(--border-2); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); overflow: hidden; }
.gen-file { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.gen-drop.is-busy .gen-file { pointer-events: none; }
.gen-drop:hover, .gen-drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }
.gen-drop .ic { width: 28px; height: 28px; color: var(--accent-2); }
.gen-drop b { font-size: 15px; } .gen-drop span { font-size: 12.5px; color: var(--muted); }
.gen-drop.has-photo { padding: 0; border-style: solid; aspect-ratio: 1; min-height: 0; }
.gen-drop.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gen-drop .swap { position: absolute; z-index: 2; right: 8px; bottom: 8px; padding: 5px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 650; color: #fff; background: rgba(10, 8, 16, .6); pointer-events: none; }
.gen-drop.is-busy::after { content: ''; position: absolute; z-index: 4; inset: 0; background: rgba(10, 8, 16, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M21 12a9 9 0 1 1-6.2-8.6'/%3E%3C/svg%3E") center / 30px no-repeat; }
.gen-aspects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aspect { display: flex; align-items: center; justify-content: center; gap: 9px; height: 44px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); transition: all .2s; }
.aspect:hover { color: var(--text); border-color: var(--border-2); }
.aspect.is-on { color: var(--text); background: var(--surface-3); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ar { display: inline-block; border: 1.6px solid currentColor; border-radius: 3px; }
.ar-9x16 { width: 9px; height: 15px; } .ar-4x5 { width: 12px; height: 15px; } .ar-1x1 { width: 14px; height: 14px; } .ar-16x9 { width: 18px; height: 11px; }
.gen [data-generate] .ic { color: var(--gold); }
.gen-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.gen-note .ic { width: 15px; height: 15px; color: var(--mint); margin-top: 1px; }
.gen-results:empty { display: none; }
.gen-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-top: 6px; border-top: 1px solid var(--border); }
.gen-results h3 { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; }

/* Карточка результата (страница образа и кабинет) */
.res { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--surface-2); aspect-ratio: var(--ar, 4 / 5); }
.res img { width: 100%; height: 100%; object-fit: cover; }
.res-wait { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 12px; text-align: center; font-size: 13px; color: var(--text-2);
  background: linear-gradient(110deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; }
.res-wait .ic { width: 26px; height: 26px; color: var(--accent-2); animation: spin 1.2s linear infinite; }
.res-fail { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 12px; text-align: center; font-size: 13px; color: var(--muted); background: var(--surface-2); }
.res-fail .ic { color: var(--danger); }
.res-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; gap: 6px; opacity: 0; transition: opacity .25s; }
.res:hover .res-bar, .res:focus-within .res-bar { opacity: 1; }
.res-bar .icon-btn { width: 36px; height: 36px; color: #fff; background: rgba(10, 8, 16, .6); backdrop-filter: blur(8px); }
.res-tag { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 650; color: #fff; background: rgba(10, 8, 16, .55); max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: none) { .res-bar { opacity: 1; } }

/* Просмотр фото */
.modal.modal-viewer { max-width: min(980px, 100%); padding: 16px; }
.viewer img { width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: var(--r); background: #000; }
.viewer-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 12px; }
.viewer-bar b { font-size: 15px; }

/* ── Окно входа ────────────────────────────────────────────────────────────── */
.auth-form { display: grid; gap: 18px; text-align: center; }
.auth-form .lead { margin: -8px 0 4px; }
.auth-form .field, .auth-consents { text-align: left; }
.auth-icon { width: 64px; height: 64px; margin: 4px auto 0; border-radius: 20px; display: grid; place-items: center; color: #fff; background: var(--accent-grad); box-shadow: 0 12px 34px rgba(200, 80, 230, .45); }
.auth-icon .ic { width: 28px; height: 28px; }
.input-lg { height: 56px; font-size: 20px; font-weight: 600; border-radius: var(--r); }
.auth-error { min-height: 20px; margin-top: 2px; font-size: 13px; color: var(--danger); font-weight: 550; }
.auth-consents { display: grid; gap: 13px; }
.check-opt em { color: var(--muted); font-style: normal; }
.auth-note { display: flex; gap: 9px; align-items: flex-start; margin: 0; text-align: left; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.auth-note .ic { margin-top: 1px; color: var(--mint); }
.auth-gift { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13.5px; text-align: left; color: var(--text-2); background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.auth-gift .ic { color: var(--gold); }
.auth-remembered { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.45; color: var(--text-2); background: color-mix(in srgb, var(--mint) 10%, transparent); border: 1px solid color-mix(in srgb, var(--mint) 25%, transparent); text-align: left; }
.auth-remembered .ic { color: var(--mint); margin-top: 1px; }
.auth-remembered a, .check a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.auth-resend { margin: 0; font-size: 13.5px; color: var(--muted); }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.otp-box { width: 100%; aspect-ratio: 1 / 1.18; max-height: 66px; text-align: center; font: 700 26px var(--font); border-radius: var(--r-sm); background: var(--surface-2); border: 1.5px solid var(--border-2); color: var(--text); caret-color: var(--accent); transition: border-color .2s, box-shadow .2s, transform .25s var(--ease-spring); }
.otp-box:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); transform: translateY(-2px); }
.dev-chip { display: inline-flex; align-items: center; gap: 8px; justify-self: center; padding: 7px 13px; border-radius: var(--r-pill); font-size: 12.5px; color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent); }
.dev-chip b { letter-spacing: .12em; }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 15%, 55%, 90% { transform: translateX(-7px); } 35%, 75% { transform: translateX(7px); } }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Пустые состояния ──────────────────────────────────────────────────────── */
.empty { display: grid; justify-items: center; gap: 12px; padding: 56px 20px; text-align: center; border-radius: var(--r-xl); background: var(--surface); border: 1px dashed var(--border-2); }
.empty h1, .empty h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }
.empty p { margin: 0 0 8px; max-width: 440px; color: var(--muted); }
.empty-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: var(--muted); background: var(--surface-2); } .empty-ic .ic { width: 26px; height: 26px; }

/* ── Юридические документы ─────────────────────────────────────────────────── */
.doc-wrap { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 48px; }
.doc-toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 6px; font-size: 13.5px; }
.doc-toc a { color: var(--muted); } .doc-toc a:hover, .doc-toc a.on { color: var(--text); }
.doc-toc-title { margin: 6px 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.doc-toc-docs { display: grid; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.doc h1 { margin: 0 0 18px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; }
.doc h2 { margin: 34px 0 12px; font-size: 21px; scroll-margin-top: 96px; }
.doc p, .doc li { color: var(--text-2); line-height: 1.7; }
.doc a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc th, .doc td { padding: 10px 12px; border: 1px solid var(--border-2); text-align: left; vertical-align: top; }
.doc mark.todo { padding: 1px 5px; border-radius: 5px; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }

/* ── Кабинет ───────────────────────────────────────────────────────────────── */
.app-main { max-width: 1240px; margin: 0 auto; padding: 14px 20px 80px; min-height: 70vh; }
.app-main:focus, .app-main:focus-visible { outline: none; box-shadow: none; }
.cab-tabs { display: flex; gap: 4px; margin: 4px 0 26px; padding: 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cab-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: background .25s, color .2s; }
.cab-tabs a:hover { color: var(--text); }
.cab-tabs a.is-on { background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 1px var(--border-2); }
.cab-tabs .ic { width: 17px; height: 17px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.035em; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pcard { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.pcard img { width: 100%; height: 100%; object-fit: cover; }
.pcard .icon-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; color: #fff; background: rgba(10, 8, 16, .6); }
.pcard.is-pick { cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s; }
.pcard.is-pick:hover { outline-color: var(--accent); }
.note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--r); font-size: 13.5px; color: var(--text-2); background: color-mix(in srgb, var(--mint) 9%, transparent); border: 1px solid color-mix(in srgb, var(--mint) 22%, transparent); }
.note .ic { color: var(--mint); margin-top: 1px; }
.bal-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; padding: 24px 26px; border-radius: var(--r-xl); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--surface); border: 1px solid var(--border); }
.bal-hero b { display: flex; align-items: center; gap: 10px; font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.bal-hero b .ic { width: 34px; height: 34px; color: var(--gold); }
.bal-hero span { color: var(--muted); font-size: 14.5px; }
.ledger { display: grid; margin: 0; padding: 0; list-style: none; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.ledger li:last-child { border: 0; }
.ledger .plus { color: var(--mint); font-weight: 700; } .ledger .minus { color: var(--text-2); font-weight: 700; }
.ledger small { display: block; color: var(--muted); font-size: 12.5px; }
.card.pad { padding: 22px; }
.stack { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.kv span { color: var(--muted); }
.ref-box { display: flex; gap: 8px; margin: 14px 0; }
.ref-box .input { font-weight: 600; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpis div { padding: 16px; border-radius: var(--r); background: var(--surface-2); }
.kpis b { display: block; font-size: 28px; letter-spacing: -.03em; } .kpis span { font-size: 13px; color: var(--muted); }
.sess { display: grid; margin: 0; padding: 0; list-style: none; }
.sess li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sess li > div { flex: 1; min-width: 0; } .sess small { display: block; color: var(--muted); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.gate { display: grid; place-items: center; min-height: 60vh; }
.gate-card { display: grid; justify-items: center; gap: 12px; width: min(420px, 100%); padding: 40px 32px 32px; text-align: center; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--card-glow); }
.gate-card h1 { margin: 10px 0 0; font-size: 26px; letter-spacing: -.03em; }
.gate-card p { margin: 0 0 8px; color: var(--muted); }

/* ── Адаптив ──────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .style { grid-template-columns: 1fr; } .style-art { position: static; max-width: 560px; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 24px; } .hero-art { height: 380px; max-width: 520px; width: 100%; margin: 0 auto; }
  .steps, .feats { grid-template-columns: 1fr; } .two, .price-notes { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; }
  .doc-wrap { grid-template-columns: 1fr; } .doc-toc { position: static; }
}
@media (max-width: 560px) {
  .nav { padding: 8px 10px; } .nav-in { height: 54px; } .brand-name { font-size: 16px; }
  .sec { padding: 60px 16px; } .page, .app-main { padding-inline: 14px; }
  .plans { grid-template-columns: 1fr; } .sgrid { columns: 2 150px; column-gap: 10px; } .sc-card { margin-bottom: 10px; }
  .sc-title { font-size: 13.5px; left: 10px; bottom: 9px; }
  .hero-art { height: 300px; } .foot-in { grid-template-columns: 1fr; } .foot-brand { grid-column: auto; }
  .modal { padding: 24px 18px; border-radius: 24px; } .otp-boxes { gap: 6px; } .otp-box { font-size: 22px; }
  .cta-in { padding: 54px 20px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) { .aurora i, .ha { animation: none !important; } }
