/* ——— Кадрик · дизайн-система ——— */
:root {
  --bg: #FFF7EE;
  --bg-2: #FCEBDB;
  --card: #FFFFFF;
  --ink: #1B1530;
  --ink-2: #4A4360;
  --muted: #8C849F;
  --line: #EEDFD0;
  --coral: #FF5B3A;
  --coral-d: #E8431F;
  --sun: #FFC53D;
  --lilac: #B9A6FF;
  --mint: #7FD6B5;
  --sky: #8FC8FF;
  --r: 22px;
  --r-lg: 32px;
  --shadow: 0 1px 0 rgba(27, 21, 48, .04), 0 12px 32px -12px rgba(27, 21, 48, .18);
  --font-h: 'Unbounded', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ——— Логотип */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--font-h); letter-spacing: -.03em; }
.logo-mark { position: relative; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.logo-mark::before { content: ''; position: absolute; inset: 7px; border: 2.5px solid #fff; border-radius: 4px;
  -webkit-mask: linear-gradient(#000 0 0) top left/7px 7px no-repeat, linear-gradient(#000 0 0) top right/7px 7px no-repeat,
    linear-gradient(#000 0 0) bottom left/7px 7px no-repeat, linear-gradient(#000 0 0) bottom right/7px 7px no-repeat;
  mask: linear-gradient(#000 0 0) top left/7px 7px no-repeat, linear-gradient(#000 0 0) top right/7px 7px no-repeat,
    linear-gradient(#000 0 0) bottom left/7px 7px no-repeat, linear-gradient(#000 0 0) bottom right/7px 7px no-repeat; }
.logo-mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.logo b { color: var(--coral); }

/* ——— Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 91, 58, .7); }
.btn-primary:hover { background: var(--coral-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: rgba(27, 21, 48, .06); }
.btn-ghost:hover { background: rgba(27, 21, 48, .1); }
.btn-lg { height: 60px; padding: 0 32px; font-size: 17px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ——— Шапка лендинга */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 247, 238, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-head nav { display: flex; align-items: center; gap: 6px; }
.site-head nav a.link { padding: 8px 14px; font-weight: 700; text-decoration: none; color: var(--ink-2); border-radius: 999px; }
.site-head nav a.link:hover { background: rgba(27, 21, 48, .06); }
@media (max-width: 720px) { .site-head nav a.link { display: none; } }

/* ——— Герой */
.hero { padding: 48px 0 24px; text-align: center; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(40px, 7.4vw, 92px); font-weight: 800; }
.hero h1 .accent { color: var(--coral); position: relative; display: inline-block; }
.hero h1 .frame { position: relative; display: inline-block; padding: 0 .12em; }
.hero h1 .frame::before { content: ''; position: absolute; inset: -.04em -.02em; border: .06em solid var(--ink);
  -webkit-mask: linear-gradient(#000 0 0) top left/.32em .32em no-repeat, linear-gradient(#000 0 0) top right/.32em .32em no-repeat,
    linear-gradient(#000 0 0) bottom left/.32em .32em no-repeat, linear-gradient(#000 0 0) bottom right/.32em .32em no-repeat;
  mask: linear-gradient(#000 0 0) top left/.32em .32em no-repeat, linear-gradient(#000 0 0) top right/.32em .32em no-repeat,
    linear-gradient(#000 0 0) bottom left/.32em .32em no-repeat, linear-gradient(#000 0 0) bottom right/.32em .32em no-repeat; }
.hero .lead { max-width: 560px; margin: 22px auto 30px; font-size: 19px; color: var(--ink-2); }
.hero .rec { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  font-weight: 800; font-size: 13px; margin-bottom: 22px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero-note { margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 700; }

/* ——— Плёнка с образами */
.strip { margin: 46px 0 0; display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.strip-mask { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@keyframes slide { to { transform: translateX(-50%); } }
.shot { width: 170px; aspect-ratio: 3/4; border-radius: 20px; position: relative; overflow: hidden; flex: none; display: flex; align-items: flex-end;
  padding: 12px; color: #fff; font-weight: 800; font-size: 14px; text-align: left; box-shadow: var(--shadow); }
.shot .e { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); font-size: 54px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.45)); }
.shot span { position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ——— Инструменты */
section { padding: 70px 0; }
.section-title { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--ink-2); font-size: 18px; margin: 0 0 34px; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }
.tool { position: relative; border-radius: var(--r-lg); padding: 24px; min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; overflow: hidden; transition: transform .2s; }
.tool:hover { transform: translateY(-4px) rotate(-.4deg); }
.tool h3 { font-size: 26px; margin-bottom: 6px; }
.tool p { margin: 0; font-weight: 600; opacity: .8; }
.tool .ico { position: absolute; top: 20px; right: 20px; font-size: 64px; transform: rotate(8deg); }
.tool.t1 { background: var(--sun); }
.tool.t2 { background: var(--coral); color: #fff; }
.tool.t3 { background: var(--lilac); }
.tool.t4 { background: var(--ink); color: #fff; }
.sticker { position: absolute; top: 18px; left: 18px; background: #fff; color: var(--ink); font-weight: 800; font-size: 12px; padding: 6px 10px;
  border-radius: 10px; transform: rotate(-4deg); box-shadow: 0 4px 10px rgba(0,0,0,.12); }

/* ——— Цифры */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.stat b { display: block; font: 800 40px/1 var(--font-h); margin-bottom: 8px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }

/* ——— Демо-переключатель */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { padding: 10px 16px; border-radius: 999px; background: var(--bg); font-weight: 800; font-size: 14px; }
.tab.on { background: var(--ink); color: #fff; }
.demo-text h3 { font-size: 30px; margin-bottom: 12px; }
.demo-text p { color: var(--ink-2); font-size: 17px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba .card { aspect-ratio: 3/4; border-radius: 20px; position: relative; display: grid; place-items: center; font-size: 72px; overflow: hidden; }
.ba .card small { position: absolute; left: 12px; top: 12px; font: 800 12px var(--font); padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--ink); }
.ba .before { background: repeating-linear-gradient(45deg, #EFE6DA 0 12px, #F6EFE6 12px 24px); }

/* ——— Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.step .n { font: 800 15px var(--font-h); color: var(--coral); }
.step h3 { font-size: 22px; margin: 14px 0 8px; }
.step p { margin: 0; color: var(--ink-2); }

/* ——— Тарифы */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }
.price { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; }
.price.best { border-color: var(--coral); }
.price .badge { position: absolute; top: -12px; right: 22px; background: var(--coral); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.price h3 { font-size: 20px; }
.price .sum { font: 800 44px/1 var(--font-h); }
.price .sum small { font-size: 20px; }
.price .per { color: var(--muted); font-weight: 700; font-size: 14px; }
.price p { color: var(--ink-2); margin: 0 0 8px; flex: 1; }

/* ——— FAQ */
.faq { max-width: 820px; }
.faq details { background: #fff; border-radius: 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { padding: 20px 24px; font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 800 22px/1 var(--font-h); color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }

.cta { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 56px 28px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(30px, 5vw, 56px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.7); font-size: 18px; margin: 0 0 28px; }

.site-foot { padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; font-weight: 700; }
.site-foot a:hover { color: var(--ink); }

/* ===================================================== ПРИЛОЖЕНИЕ */
.app { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.side .logo { margin: 0 8px 22px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 800; color: var(--ink-2); text-align: left; width: 100%; }
.nav-item .i { font-size: 20px; width: 24px; text-align: center; }
.nav-item:hover { background: rgba(27, 21, 48, .05); }
.nav-item.on { background: var(--ink); color: #fff; }
.side .spacer { flex: 1; }
.main { min-width: 0; padding: 20px 28px 120px; }
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.topbar .logo { display: none; margin-right: auto; }
.credits { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 800; }
.credits .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 18px; }
.film { display: inline-block; width: 18px; height: 14px; border-radius: 3px; background: var(--ink); position: relative; }
.film::before, .film::after { content: ''; position: absolute; left: 2px; right: 2px; height: 2px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px); }
.film::before { top: 2px; } .film::after { bottom: 2px; }
.avatar-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--lilac); font: 800 16px var(--font-h); display: grid; place-items: center; }
.menu { position: absolute; right: 28px; top: 70px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 8px; min-width: 220px; z-index: 40; }
.menu .who { padding: 10px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 6px; word-break: break-all; }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--bg); }

.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { font-size: clamp(28px, 4vw, 40px); }
.page-h p { margin: 6px 0 0; color: var(--ink-2); }

.mobile-nav { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 14px 14px 110px; }
  .topbar .logo { display: inline-flex; }
  .menu { right: 14px; top: 64px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 35;
    background: rgba(27, 21, 48, .94); backdrop-filter: blur(10px); border-radius: 22px; padding: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .mobile-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 16px; color: rgba(255,255,255,.65); font-size: 11px; font-weight: 800; }
  .mobile-nav button .i { font-size: 20px; }
  .mobile-nav button.on { background: rgba(255,255,255,.12); color: #fff; }
}

/* ——— Выбор фото */
.panel { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel h3 { font-size: 18px; margin-bottom: 4px; }
.panel .hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.photos { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.photos::-webkit-scrollbar { display: none; }
.ph { position: relative; flex: none; width: 84px; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--bg); outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.on { outline-color: var(--coral); }
.ph .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; display: grid; place-items: center; }
.ph-add { display: grid; place-items: center; border: 2px dashed #DCCDBD; background: var(--bg); color: var(--ink-2); font-weight: 800; font-size: 12px; text-align: center; line-height: 1.2; padding: 6px; }
.ph-add .big { font-size: 26px; display: block; color: var(--coral); }
.drop { border: 2px dashed #DCCDBD; border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: center; background: var(--bg); cursor: pointer; transition: border-color .15s; }
.drop:hover, .drop.drag { border-color: var(--coral); }
.drop .thumb { width: 72px; aspect-ratio: 3/4; border-radius: 12px; background: #fff center/cover; flex: none; display: grid; place-items: center; font-size: 28px; }
.drop b { display: block; }
.field { display: flex; gap: 8px; margin-top: 10px; }
.input { flex: 1; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: #fff; padding: 0 14px; outline: none; min-width: 0; }
.input:focus { border-color: var(--ink); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 70px; }
.or { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; margin: 10px 0 0; }

/* ——— Шаблоны */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 10px 16px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; box-shadow: var(--shadow); }
.chip.on { background: var(--ink); color: #fff; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .tgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.tcard { position: relative; aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; text-align: left; color: #fff; display: flex; align-items: flex-end; padding: 14px;
  transition: transform .2s; box-shadow: var(--shadow); }
.tcard:hover { transform: translateY(-3px); }
.tcard .e { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); font-size: 58px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(10, 6, 25, .6)); }
.tcard .t { position: relative; z-index: 1; font-weight: 800; font-size: 15px; line-height: 1.2; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.tcard .tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; }
.tcard .tag.pair { left: auto; right: 10px; background: var(--sun); }

/* ——— Модальные окна / шторки */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(27, 21, 48, .5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--bg); border-radius: 28px; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; padding: 22px; position: relative; animation: up .25s cubic-bezier(.2,.9,.3,1.2); }
.sheet.wide { max-width: 760px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-h h2 { font-size: 24px; }
.close { width: 40px; height: 40px; border-radius: 50%; background: rgba(27,21,48,.07); font-size: 20px; flex: none; }
@media (max-width: 600px) {
  .overlay { align-items: flex-end; padding: 0; }
  .sheet { border-radius: 28px 28px 0 0; max-height: 92vh; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
.tpl-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.tpl-hero .tcard { width: 110px; flex: none; pointer-events: none; }
.tpl-hero .tcard .e { font-size: 40px; }

/* ——— Авторизация */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 28px; margin: 22px 0 8px; }
.auth-card .input { width: 100%; margin-bottom: 10px; }
.auth-card .switch { margin-top: 16px; text-align: center; color: var(--ink-2); font-weight: 600; }
.auth-card .switch button { color: var(--coral); font-weight: 800; }
.err { color: var(--coral-d); font-weight: 700; font-size: 14px; min-height: 20px; margin: 4px 0 8px; }

/* ——— Результаты */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .ggrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.gcard { position: relative; aspect-ratio: 3/4; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); text-align: left; }
.gcard img { width: 100%; height: 100%; object-fit: cover; }
.gcard .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(10,6,25,.6)); color: #fff; font-weight: 800; font-size: 13px; }
.gcard .state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 14px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.gcard.err-card { background: #FFEDE8; }
.gcard.err-card .state { color: var(--coral-d); font-size: 13px; }
.pending-bg { background: linear-gradient(110deg, #F6EBDD 30%, #FFF7EE 50%, #F6EBDD 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

.viewer img { width: 100%; border-radius: 20px; background: #fff; max-height: 70vh; object-fit: contain; }
.viewer .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.viewer .actions .btn { flex: 1; }

.progress { text-align: center; padding: 20px 8px; }
.progress .shutter { width: 120px; height: 120px; margin: 4px auto 22px; border-radius: 50%; background: conic-gradient(var(--coral) var(--p, 0%), #F1E3D3 0); display: grid; place-items: center; transition: --p .5s; }
.progress .shutter::after { content: ''; width: 92px; height: 92px; border-radius: 50%; background: var(--bg); }
.progress h2 { font-size: 24px; margin-bottom: 8px; }
.progress p { color: var(--ink-2); margin: 0; }

/* ——— Стилист */
.report-h { display: flex; gap: 18px; align-items: center; }
.report-h img { width: 96px; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; flex: none; }
.report-h .season { display: inline-block; font-weight: 800; font-size: 12px; background: var(--lilac); padding: 4px 10px; border-radius: 8px; margin-bottom: 8px; }
.report-h h2 { font-size: 28px; margin-bottom: 6px; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.fact { background: var(--bg); padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.fact b { color: var(--muted); font-weight: 700; margin-right: 4px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.sw { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sw i { display: block; aspect-ratio: 1; border-radius: 16px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.sw.no i { position: relative; }
.sw.no i::after { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 3px; background: var(--coral); transform: rotate(-35deg); border-radius: 2px; }
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.look { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; background: var(--bg); border-radius: 16px; padding: 12px; }
.look .dot { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; background: #fff; }
.look div { flex: 1 1 120px; min-width: 0; }
.look b { display: block; font-size: 15px; }
.look small { color: var(--muted); font-weight: 600; display: block; line-height: 1.35; }
.look .btn { flex: 1 0 100%; }
.tips { margin: 0; padding-left: 20px; color: var(--ink-2); }
.tips li { margin-bottom: 6px; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 52px; margin-bottom: 10px; }
.empty h3 { color: var(--ink); margin-bottom: 8px; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 16px; font-weight: 700;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); animation: up .25s; }
.toast.bad { background: var(--coral-d); }
.demo-banner { background: var(--sun); color: var(--ink); text-align: center; font-weight: 800; font-size: 13px; padding: 8px 12px; }

/* ——— Админка */
.admin { max-width: 1160px; margin: 0 auto; padding: 24px 20px 80px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 20px 0; }
.kpi { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.kpi b { display: block; font: 800 28px/1.1 var(--font-h); }
.kpi span { color: var(--muted); font-weight: 700; font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; }

.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.legal h1 { font-size: 34px; margin: 30px 0 20px; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
