/*
  Дизайн-система в стиле shadcn/ui. Компоненты адаптированы из 21st.dev:
  Halo Dropzone (cult-ui) — стеклянная зона загрузки со светящейся анимированной рамкой,
  Bento Grid — сетка карточек инструментов, Hero Static Radial Gradient — первый экран.
*/
/* Шрифт Inter (SIL OFL 1.1) — свой хостинг, только латиница и кириллица */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/static/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/inter-display-700.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("/static/fonts/inter-display-800.woff2") format("woff2"); }
:root {
  /* Сайт всегда светлый, с белым фоном — независимо от тёмной темы устройства */
  --background: #ffffff;
  --foreground: #121212;
  --card: #ffffff;
  --card-foreground: #09090b;
  --muted: #f5f5f6;
  --muted-foreground: #5f5f69;
  --border: #e4e4e7;
  --ring: #a1a1aa;
  --primary: #ff5a1f;
  --primary-2: #7c4dff;
  /* Для текста и кнопок с белым текстом — темнее фирменного, чтобы контраст был не ниже 4.5:1 (WCAG AA) */
  --primary-strong: #d63f0b;
  --link: #c2410c;
  --primary-foreground: #ffffff;
  --accent-soft: rgba(249, 115, 22, .08);
  --ok: #047857;
  --warn: #b45309;
  --error: #dc2626;
  --radius: 16px;
  --shadow-card: 0 1px 0 rgba(255,255,255,.1) inset, 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.05);
  --shadow-card-hover: 0 1px 0 rgba(255,255,255,.14) inset, 0 1px 2px rgba(0,0,0,.09), 0 8px 24px rgba(0,0,0,.10);
  --glow-1: rgba(255, 90, 31, .55);
  --glow-2: rgba(124, 77, 255, .45);
  --glow-3: rgba(0, 194, 168, .40);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.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; }
:focus-visible { outline: 2px solid var(--primary-strong); outline-offset: 2px; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
p a, .link { color: var(--link); }
p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
p a:hover, .link:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h1, h2 { font-family: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.02em; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
img, video { max-width: 100%; }
.i { flex-shrink: 0; vertical-align: middle; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { margin: 56px auto; }
.muted { color: var(--muted-foreground); }
.small { font-size: .85rem; }
.lead { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted-foreground); max-width: 640px; }
.error { color: var(--error); }
.warn { color: var(--warn); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); font-size: .82rem; color: var(--muted-foreground); backdrop-filter: blur(8px); }
.eyebrow b { padding: 2px 8px; border-radius: 999px; background: var(--foreground); color: var(--background); font-weight: 600; }
.gradient-text { background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Шапка */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--background) 75%, transparent); backdrop-filter: blur(14px) saturate(1.5); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { font-weight: 700; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.logo-img { width: 32px; height: 32px; border-radius: 9px; filter: drop-shadow(0 4px 10px rgba(255,90,31,.3)); }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 4px 14px rgba(255,90,31,.35); }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { padding: 8px 12px; border-radius: 10px; color: var(--muted-foreground); font-weight: 500; font-size: .92rem; }
.topnav a:hover { color: var(--foreground); background: var(--muted); }
.topbar-user { margin-left: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-weight: 600; font-size: .9rem; }
.pill .i { color: var(--primary); }

/* Нижняя навигация (телефон) */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: none; background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(16px) saturate(1.5); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 7px; font-size: .7rem; color: var(--muted-foreground); }
.bottomnav a.active { color: var(--link); }
@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar-user { margin-left: auto; }
  .bottomnav { display: flex; }
}
@media (min-width: 761px) { body { padding-bottom: 0; } }

/* Кнопки (shadcn Button) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 12px; border: 1px solid transparent; background: var(--foreground); color: var(--background); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s, background .15s, opacity .15s; white-space: normal; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn:active { transform: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn-primary { background: var(--primary-strong); color: #fff; box-shadow: 0 4px 18px rgba(255,90,31,.30); }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(255,90,31,.40); }
.btn-ghost { background: var(--card); color: var(--foreground); border-color: var(--border); box-shadow: var(--shadow-card); }
.btn-ghost:hover { background: var(--muted); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; border-radius: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); cursor: pointer; font: inherit; }
.icon-btn:hover { background: var(--muted); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* Карточки */
.card { position: relative; background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); }

/* Первый экран: текст + телефон с роликом */
.hero { position: relative; padding: 56px 0 24px; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--foreground) 14%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  opacity: .55;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero h1 { max-width: 640px; margin-top: 18px; font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted-foreground); font-size: .88rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { color: var(--ok); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art > img { width: 100%; max-width: 520px; height: auto; border-radius: 28px; }
.hero-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 200deg, var(--primary), var(--primary-2), #00c2a8, var(--primary)); opacity: .16; filter: blur(2px); z-index: -1; }

/* Телефон с роликом (CSS-заглушка, пока нет картинки hero-phone) */
.phone { position: relative; width: 248px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 10px; background: #111; box-shadow: 0 30px 80px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.08) inset; transform: rotate(-3deg); }
.phone-screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: linear-gradient(160deg, #ff8a3d 0%, #ff5a1f 30%, #7c4dff 75%, #2b1a6b 100%); }
.phone-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 38%, rgba(255,255,255,.35), transparent 70%); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 22px; border-radius: 12px; background: #111; z-index: 2; }
.phone-bars { position: absolute; top: 40px; left: 14px; right: 14px; display: flex; gap: 4px; }
.phone-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); }
.phone-bars span:first-child { background: #fff; }
.phone-person { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 72%; height: 44%; }
.phone-person::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 36%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.85); }
.phone-person::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 68%; border-radius: 48% 48% 0 0; background: rgba(255,255,255,.85); }
.phone-sub { position: absolute; left: 12px; right: 12px; bottom: 17%; text-align: center; font-weight: 800; font-size: 17px; line-height: 1.15; color: #ffe14d; text-transform: uppercase; text-shadow: 0 2px 0 #000, 0 0 2px #000, 0 0 2px #000; z-index: 2; }
.phone-wave { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 3px; align-items: center; height: 26px; z-index: 2; }
.phone-wave span { flex: 1; border-radius: 2px; background: rgba(255,255,255,.9); animation: bars 1.8s ease-in-out infinite; }
.phone-wave span:nth-child(3n) { animation-delay: -.5s; }
.phone-wave span:nth-child(4n) { animation-delay: -1s; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0,0,0,.12); font-size: .85rem; font-weight: 600; white-space: nowrap; animation: float 5s ease-in-out infinite; }
.float-chip .dot { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.float-chip.c1 { top: 12%; left: 2%; }
.float-chip.c1 .dot { background: var(--primary); }
.float-chip.c2 { top: 46%; right: 0; animation-delay: -1.6s; }
.float-chip.c2 .dot { background: #00b894; }
.float-chip.c3 { bottom: 10%; left: 6%; animation-delay: -3s; }
.float-chip.c3 .dot { background: var(--primary-2); }
@media (max-width: 520px) {
  .hero-art { min-height: 380px; }
  .phone { width: 210px; }
  .float-chip { font-size: .78rem; padding: 7px 10px; }
  .float-chip.c1 { left: 0; } .float-chip.c2 { right: -4px; } .float-chip.c3 { left: 0; }
}

/* Иллюстрации карточек инструментов */
.tool-art { margin: -22px -22px 4px; aspect-ratio: 2 / 1; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--muted); }
.tool-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bento-card:hover .tool-art img { transform: scale(1.04); }

/* Bento-сетка инструментов */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } .span-2 { grid-column: span 2; } }
.bento-card { display: flex; flex-direction: column; gap: 14px; min-height: 210px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--ring); }
.bento-card p { margin: 0; font-size: .9rem; color: var(--muted-foreground); }
.bento-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; }
.bento-card .go .i { transition: transform .2s; }
.bento-card:hover .go .i { transform: translateX(3px); }
.tool-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.bento-card.featured { background: var(--card); }
.bento-visual { display: flex; gap: 6px; align-items: flex-end; height: 56px; }
.bento-visual span { flex: 1; border-radius: 6px; background: linear-gradient(180deg, var(--primary), var(--primary-2)); opacity: .85; animation: bars 2.4s ease-in-out infinite; }
.bento-visual span:nth-child(2n) { animation-delay: -.6s; opacity: .6; }
.bento-visual span:nth-child(3n) { animation-delay: -1.2s; opacity: .45; }
@keyframes bars { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .bento-visual span { animation: none; height: 60%; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: .86rem; color: var(--muted-foreground); }
a.chip { color: var(--foreground); }
a.chip:hover { border-color: var(--ring); background: var(--muted); }
.soon-title { margin-top: 32px; font-size: .95rem; color: var(--muted-foreground); }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature .tool-icon { margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted-foreground); font-size: .92rem; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--foreground); color: var(--background); font-weight: 700; font-size: .85rem; }
.studio-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; overflow: hidden; background: var(--foreground); color: var(--background); border-color: transparent; }
.studio-cta .muted { color: color-mix(in srgb, var(--background) 70%, transparent); }
.studio-cta .btn { background: var(--primary-strong); color: #fff; }
.studio-cta .studio-art { width: 200px; height: auto; flex-shrink: 0; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
@media (max-width: 760px) { .studio-cta .studio-art { width: 160px; margin: 0 auto; } }
.studio-cta > div { flex: 1 1 380px; }
.studio-cta p { margin: 0; }

/* Страница инструмента */
.tool-head { padding-top: 28px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--muted-foreground); font-size: .88rem; margin-bottom: 10px; }
.back:hover { color: var(--foreground); }
.tool-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); display: flex; align-items: center; gap: 14px; }
.tool { padding: 20px; scroll-margin-top: 76px; }
@media (min-width: 760px) { .tool { padding: 28px; } }
.stage + .stage { margin-top: 22px; }

/* Halo Dropzone */
.halo { position: relative; border-radius: 18px; padding: 1px; isolation: isolate; }
.halo::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--halo-angle, 0deg), transparent 0 55%, var(--glow-1) 65%, var(--glow-2) 75%, var(--glow-3) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5; animation: halo-spin 6s linear infinite; transition: opacity .25s;
}
.halo-blob { position: absolute; z-index: -2; width: 46%; height: 70px; border-radius: 50%; filter: blur(28px); opacity: .35; transition: opacity .25s; pointer-events: none; }
.halo-blob.b1 { top: -26px; left: 6%; background: var(--glow-1); animation: drift 7s ease-in-out infinite; }
.halo-blob.b2 { bottom: -26px; right: 6%; background: var(--glow-2); animation: drift 8s ease-in-out infinite reverse; }
.halo:hover::before, .halo.over::before { opacity: 1; animation-duration: 2.5s; }
.halo:hover .halo-blob, .halo.over .halo-blob { opacity: .65; }
@property --halo-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes halo-spin { to { --halo-angle: 360deg; } }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(40%); } }
@media (prefers-reduced-motion: reduce) { .halo::before, .halo-blob { animation: none; } }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 210px; padding: 28px 20px;
  border-radius: 17px; border: 1px dashed color-mix(in srgb, var(--ring) 70%, transparent);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--card) 86%, transparent), color-mix(in srgb, var(--card) 72%, transparent));
  backdrop-filter: blur(20px) saturate(1.5); cursor: pointer; text-align: center; transition: border-color .2s, background .2s;
}
.halo:hover .dropzone, .halo.over .dropzone { border-color: color-mix(in srgb, var(--primary) 60%, transparent); }
.dropzone input { display: none; }
.dz-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--muted); color: var(--foreground); box-shadow: 0 1px 3px rgba(0,0,0,.08); outline: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent); animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.dz-title { font-weight: 600; font-size: 1.02rem; }
.uploads { display: grid; gap: 10px; margin-top: 14px; }
.upload-row { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--muted); }
.upload-name { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--muted); }
.file-card video { width: 100%; max-height: 380px; border-radius: 10px; background: #000; }

/* Поля формы */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.label { font-weight: 600; font-size: .9rem; }
select, input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--background); color: var(--foreground); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
select:focus, input:focus, textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent); }
input[type=range] { width: 100%; accent-color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--muted); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-size: .9rem; color: var(--muted-foreground); font-weight: 500; transition: background .15s, color .15s; }
.segmented input:checked + span { background: var(--card); color: var(--foreground); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.segmented input:focus-visible + span { outline: 2px solid var(--ring); }
.hint { margin-top: -2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-btn { position: relative; overflow: hidden; width: fit-content; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.clips { display: grid; gap: 10px; margin-bottom: 20px; }
.clip { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--muted); }
.clip-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #000; }
.clip-thumb img, .clip-thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: grid; place-items: center; height: 100%; font-size: 1.4rem; }
.clip-num { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.65); color: #fff; border-radius: 6px; padding: 0 6px; font-size: .72rem; font-weight: 600; }
.clip-name { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-body { min-width: 0; }
.clip-controls { display: flex; gap: 8px; margin-top: 6px; }
.clip-controls label { display: grid; gap: 2px; flex: 1; color: var(--muted-foreground); }
.clip-controls input { min-height: 34px; padding: 5px 8px; }
.clip-actions { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 520px) {
  .clip { grid-template-columns: 56px 1fr; }
  .clip-thumb { width: 56px; height: 56px; }
  .clip-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}

.estimate { margin: 6px 0 14px; }
.estimate p { margin: 6px 0 0; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .actions .btn { width: 100%; } }

.progress { height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; border: 1px solid var(--border); }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .4s; border-radius: inherit; }
.small-progress { height: 6px; }
.progress-wrap { padding: 28px 8px; text-align: center; }
.progress-wrap .spinner { width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid var(--muted); border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.segments { display: grid; gap: 8px; max-height: 420px; overflow: auto; margin-bottom: 18px; padding-right: 4px; }
.segment { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; }
.seg-time { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .segment { grid-template-columns: 1fr; gap: 2px; } }

.result-video { width: 100%; max-height: 70vh; border-radius: 14px; background: #000; }
.transcript { line-height: 1.65; resize: vertical; margin-bottom: 8px; background: var(--muted); }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.next-steps { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.success-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; }
.success-head .badge-ok { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); outline: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }

.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted-foreground); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted-foreground); }

/* Тарифы */
.pricing { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; }
.pack { display: flex; flex-direction: column; gap: 10px; }
.pack .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.pack .price small { font-size: .9rem; font-weight: 500; color: var(--muted-foreground); }
.pack ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; font-size: .9rem; }
.pack li { display: flex; gap: 8px; align-items: flex-start; }
.pack li .i { color: var(--ok); margin-top: 2px; }
.pack li.muted .i { color: var(--muted-foreground); }
.pack form, .pack .btn { margin-top: auto; }
.pack form .btn { width: 100%; }
.pack.popular { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--primary), var(--primary-2), #8b5cf6) border-box; border: 1px solid transparent; }
.badge { position: absolute; top: -11px; right: 18px; padding: 2px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: .75rem; font-weight: 700; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted-foreground); font-weight: 500; font-size: .82rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.table-wrap .table tr:last-child td { border-bottom: 0; }
.auth { max-width: 420px; margin: 48px auto; }
.auth form { display: grid; gap: 4px; }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--border); background: var(--muted); }
.status-done { color: var(--ok); }
.status-failed { color: var(--error); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { display: grid; gap: 4px; align-content: start; }
.stat b { font-size: 1.6rem; letter-spacing: -.02em; }
.notice { padding: 14px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); margin-bottom: 18px; }

.footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 36px 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-links { display: grid; gap: 8px; align-content: start; font-size: .9rem; }
.footer-links a { color: var(--muted-foreground); }
.footer-links a:hover { color: var(--foreground); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

.install-banner { position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0,0,0,.25); font-size: .9rem; }
.install-banner span { flex: 1; }
.install-banner[hidden] { display: none; }
@media (min-width: 761px) { .install-banner { left: auto; right: 24px; bottom: 24px; max-width: 440px; } }

.hero-art.has-img { min-height: 0; }
.hero-art.has-img::before { width: 70%; opacity: .14; filter: blur(40px); }
.hero-art.has-img > img { max-width: 560px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.18)); }
.tool-intro { display: grid; gap: 20px; align-items: center; margin-bottom: 8px; }
@media (min-width: 900px) { .tool-intro.with-art { grid-template-columns: 1fr 1fr; gap: 36px; } }
.tool-banner { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
@media (max-width: 899px) { .tool-banner { max-height: 220px; } }
@media (max-width: 600px) { .tool-banner { display: none; } }

/* Палитра цветов фона */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
.swatch input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.swatch > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--c, #fff); border: 1px solid var(--border); box-shadow: inset 0 0 0 3px var(--card); font-weight: 700; color: var(--muted-foreground); transition: box-shadow .15s; }
.swatch input:checked + span { box-shadow: inset 0 0 0 3px var(--card), 0 0 0 2px var(--primary); }
.swatch-custom > span { background: conic-gradient(#ff5a1f, #ffd84d, #00c2a8, #7c4dff, #ff5a1f); color: #fff; }
.swatch-custom input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.field[hidden] { display: none; }
/* «Шахматка» под прозрачными результатами */
.checker { background-color: #fff; background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%), linear-gradient(-45deg, #e6e6e6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e6e6e6 75%), linear-gradient(-45deg, transparent 75%, #e6e6e6 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.result-image { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 14px; border: 1px solid var(--border); }
.file-card .file-preview { max-width: 100%; max-height: 320px; border-radius: 10px; justify-self: start; }

/* Конвертер: список файлов */
.convert-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--muted); }
.convert-ext { padding: 3px 8px; border-radius: 7px; background: var(--foreground); color: var(--background); font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.convert-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.downloads .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.format-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.format-cloud span { padding: 6px 11px; border-radius: 10px; background: var(--muted); border: 1px solid var(--border); font-size: .84rem; font-weight: 600; }
.format-cloud b { color: var(--link); }

/* ===== Конвертер (формат «загрузил → выбрал формат → конвертировал») ===== */
.cv-hero { position: relative; padding: 44px 0 56px; background: linear-gradient(135deg, #ff6a2b 0%, #ff4f2b 45%, #e8375f 100%); color: #fff; overflow: hidden; isolation: isolate; }
.cv-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 90%); }
.cv-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(124,77,255,.45), transparent 70%); }
.cv-hero.over .cv-box { background: rgba(255,255,255,.22); border-color: #fff; }
.cv-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; text-align: center; margin: 0 0 10px; font-size: clamp(1.9rem, 5vw, 3rem); }
.cv-sub { text-align: center; max-width: 640px; margin: 0 auto 26px; color: rgba(255,255,255,.88); font-size: 1.05rem; }
.cv-pick-wrap { position: relative; display: inline-flex; }
.cv-pick { appearance: none; -webkit-appearance: none; font: inherit; font-weight: 800; color: var(--primary-strong); background: #fff; border: 0; border-radius: 14px; padding: 4px 44px 4px 16px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.15); width: auto; min-height: 0; }
.cv-pick-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 3px solid #ff4f2b; border-bottom: 3px solid #ff4f2b; transform: rotate(45deg); pointer-events: none; }
.cv-pick:focus { outline: 3px solid rgba(255,255,255,.6); box-shadow: none; }
.cv-box { max-width: 760px; margin: 0 auto; padding: 34px 20px 22px; border: 2px dashed rgba(255,255,255,.55); border-radius: 22px; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); text-align: center; transition: background .2s, border-color .2s, padding .2s; }
.cv-box.compact { padding: 18px 16px 12px; }
.cv-start { display: inline-flex; align-items: stretch; border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.cv-choose { display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; background: #fff; color: var(--primary-strong); font-weight: 800; font-size: 1.15rem; border-radius: 16px 0 0 16px; cursor: pointer; transition: background .15s; }
.cv-choose:hover { background: #fff6f2; }
.cv-choose input { display: none; }
.cv-src { display: grid; place-items: center; width: 64px; background: #fff; color: var(--primary-strong); border: 0; border-left: 1px solid #ffe0d6; border-radius: 0 16px 16px 0; cursor: pointer; }
.cv-src:hover { background: #fff6f2; }
.cv-url { display: flex; gap: 8px; max-width: 520px; margin: 16px auto 0; }
.cv-url input { background: #fff; border-color: transparent; color: #121212; }
.cv-url .btn { background: #121212; color: #fff; }
.cv-hint { margin: 16px 0 0; font-size: .85rem; color: rgba(255,255,255,.85); }
.cv-hint a { color: #fff; text-decoration: underline; }

.cv-panel { max-width: 980px; margin: 22px auto 0; background: var(--card); color: var(--card-foreground); border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.22); overflow: hidden; }
.cv-list { display: grid; }
.cv-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 200px 120px; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.cv-ext { display: grid; place-items: center; height: 54px; border-radius: 12px; background: var(--muted); border: 1px solid var(--border); font-size: .74rem; font-weight: 800; letter-spacing: .02em; }
.cv-file { display: grid; min-width: 0; }
.cv-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-to { display: flex; align-items: center; gap: 10px; }
.cv-format { display: inline-flex; align-items: center; gap: 6px; min-width: 96px; justify-content: space-between; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); font: inherit; font-weight: 700; cursor: pointer; }
.cv-format.empty { border-style: dashed; color: var(--link); border-color: var(--link); }
.cv-format:disabled { cursor: default; opacity: .7; }
.cv-status { display: grid; gap: 6px; color: var(--muted-foreground); }
.s-done .cv-status { color: var(--ok); font-weight: 600; }
.s-error .cv-status { color: var(--error); }
.cv-progress { height: 6px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.cv-progress div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: inherit; transition: width .3s; }
.cv-action { display: flex; justify-content: flex-end; }
.cv-dl { gap: 6px; }
.cv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; background: var(--muted); }
.cv-add { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; color: var(--foreground); }
.cv-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cv-all { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: .92rem; }
.cv-merge { margin: 0; }
.cv-spacer { flex: 1; }
#cv-go:disabled { box-shadow: none; }
@media (max-width: 760px) {
  .cv-hero { padding: 28px 0 36px; }
  .cv-choose { padding: 16px 20px; font-size: 1.05rem; }
  .cv-row { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "ext file action" "to to status"; gap: 10px 12px; padding: 14px; }
  .cv-status { text-align: right; min-width: 110px; }
  .cv-ext { grid-area: ext; height: 46px; }
  .cv-file { grid-area: file; }
  .cv-to { grid-area: to; }
  .cv-status { grid-area: status; }
  .cv-action { grid-area: action; }
  .cv-bar .btn { width: 100%; }
  .cv-spacer { display: none; }
}

/* Всплывающее окно выбора формата */
.cv-pop-layer { position: fixed; inset: 0; z-index: 60; }
.cv-popover { position: fixed; width: 440px; max-width: calc(100vw - 24px); background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden; }
.cv-popover-head { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border); }
.cv-popover-head input { min-height: 38px; flex: 1; }
.cv-popover-body { display: grid; grid-template-columns: 140px 1fr; min-height: 220px; }
.cv-groups { display: grid; align-content: start; gap: 2px; padding: 8px; background: var(--muted); border-right: 1px solid var(--border); }
.cv-group { text-align: left; padding: 9px 12px; border-radius: 10px; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--muted-foreground); cursor: pointer; }
.cv-group.active { background: var(--card); color: var(--foreground); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; padding: 12px; align-content: start; }
.cv-fmt-btn { padding: 10px 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; }
.cv-fmt-btn:hover, .cv-fmt-btn.active { border-color: var(--link); color: var(--link); background: var(--accent-soft); }
@media (max-width: 640px) {
  .cv-pop-layer { background: rgba(0,0,0,.35); }
  .cv-popover { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .cv-popover-body { grid-template-columns: 1fr; }
  .cv-groups { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .cv-group { white-space: nowrap; }
}

/* Полоса со статистикой, шаги, популярные конвертации, таблица форматов */
.cv-stats { border-bottom: 1px solid var(--border); background: var(--card); }
.cv-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.cv-stats b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.cv-stats span { color: var(--muted-foreground); font-size: .88rem; }
@media (max-width: 640px) { .cv-stats-inner { grid-template-columns: repeat(2, 1fr); } }
.cv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cv-step { display: grid; gap: 10px; }
.cv-step p { margin: 0; }
.cv-step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-strong); color: #fff; font-weight: 800; }
.cv-popular { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cv-pop { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-weight: 700; transition: border-color .15s, transform .15s; }
.cv-pop .i { color: var(--primary); }
.cv-pop:hover, .cv-pop.active { border-color: var(--primary); transform: translateY(-2px); }
.cv-formats td { vertical-align: middle; }
.cv-fmt { display: inline-block; margin: 3px 4px 3px 0; padding: 3px 8px; border-radius: 7px; background: var(--muted); border: 1px solid var(--border); font-size: .76rem; font-weight: 700; }
.cv-fmt.to { background: var(--accent-soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--link); }

/* ---------- Инструменты для сайтов: аудит, домены, ТЗ ---------- */
.section-sub { margin: 44px 0 16px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--muted); border-top-color: var(--primary); animation: spin 1s linear infinite; flex-shrink: 0; }
.st-hero { position: relative; padding: 56px 0 36px; text-align: center; overflow: hidden; }
.st-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1; background: radial-gradient(closest-side, var(--glow-1), transparent 70%) 20% 40% / 55% 100% no-repeat, radial-gradient(closest-side, var(--glow-2), transparent 70%) 80% 30% / 55% 100% no-repeat; opacity: .35; filter: blur(30px); }
.st-hero-compact { padding-bottom: 12px; }
.st-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); font-size: .84rem; color: var(--muted-foreground); backdrop-filter: blur(8px); }
.st-eyebrow .i { color: var(--primary); }
.st-title { margin: 18px auto 12px; max-width: 820px; font-size: clamp(1.9rem, 5vw, 3.1rem); }
.st-sub { margin: 0 auto; max-width: 640px; color: var(--muted-foreground); font-size: clamp(1rem, 2vw, 1.12rem); }
.st-search { display: flex; gap: 8px; max-width: 680px; margin: 28px auto 0; padding: 8px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card-hover); }
.st-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.05rem; padding: 0 12px; outline: none; }
.st-search input:focus { box-shadow: none; }
.st-search:focus-within { border-color: var(--ring); }
.st-search .btn { flex-shrink: 0; }
.st-hint { margin: 14px auto 0; max-width: 680px; color: var(--error); }
.st-zones { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 680px; margin: 16px auto 0; }
.st-zone input { position: absolute; opacity: 0; pointer-events: none; }
.st-zone span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: .88rem; font-weight: 600; color: var(--muted-foreground); cursor: pointer; transition: all .15s; }
.st-zone input:checked + span { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.st-zone input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (max-width: 560px) {
  .st-hero { padding-top: 32px; }
  .st-search { flex-direction: column; border-radius: 18px; }
  .st-search input { padding: 12px; }
}

.st-progress { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
.st-progress > div:last-child { flex: 1; display: grid; gap: 10px; }
.st-progress p { margin: 0; }
.st-panel { margin-top: 8px; }
.st-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.st-panel-head h2 { margin: 0; font-size: 1.3rem; }

/* Домены */
.domain-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.domain-grid > .spinner, .ideas-list > .spinner { margin: 12px auto; grid-column: 1 / -1; }
.domain-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.domain-card b { font-size: 1.05rem; word-break: break-all; }
.d-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; }
.d-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.d-free { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); background: color-mix(in srgb, var(--ok) 6%, var(--card)); }
.d-free .d-status { color: var(--ok); }
.d-taken .d-status { color: var(--error); }
.d-unknown .d-status { color: var(--muted-foreground); }
.d-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.st-ideas { display: grid; gap: 18px; }
.st-ideas h2 { margin-bottom: 6px; }
.st-ideas p { margin: 0; }
.st-ideas-form { display: grid; gap: 12px; }
.st-ideas-form .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ideas-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ideas-list:empty { display: none; }
.idea { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.idea:hover { border-color: var(--primary); transform: translateY(-1px); }
.idea b { margin-right: 4px; }
.zone-badge { padding: 2px 7px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--muted); color: var(--muted-foreground); }
.zone-badge.z-free { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.zone-badge.z-taken { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); text-decoration: line-through; }

/* Отчёт аудита */
.report-head { display: grid; gap: 22px; grid-template-columns: auto 1fr; align-items: center; margin-top: 8px; }
.report-head .cats { grid-column: 1 / -1; }
@media (min-width: 900px) { .report-head { grid-template-columns: auto 1.2fr 1fr; } .report-head .cats { grid-column: auto; } }
@media (max-width: 560px) { .report-head { grid-template-columns: 1fr; justify-items: center; text-align: center; } .report-head .chips { justify-content: center; } }
.score-ring { --p: 0; --c: var(--primary); position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--muted) 0); }
.score-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--card); }
.score-ring b, .score-ring span { position: relative; }
.score-ring b { font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; color: var(--c); }
.score-ring span { font-size: .78rem; color: var(--muted-foreground); }
.report-summary { min-width: 0; }
.report-summary h2 { margin: 4px 0 6px; word-break: break-all; }
.report-summary p { margin: 0 0 12px; }
.report-summary .caps { margin: -4px 0 12px; padding-left: 18px; }
.report-summary .caps li { margin: 2px 0; }
.report-summary .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.c-fail { color: var(--error); border-color: color-mix(in srgb, var(--error) 35%, var(--border)); }
.chip.c-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, var(--border)); }
.chip.c-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); }
.cats { display: grid; gap: 10px; }
.cat-row { display: grid; grid-template-columns: 9.5em 1fr 2.2em; gap: 10px; align-items: center; font-size: .9rem; }
.cat-row b { text-align: right; }
.cat-bar { height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.cat-bar > div { height: 100%; border-radius: inherit; transition: width .6s; }
.cat-bar .good { background: var(--ok); }
.cat-bar .mid { background: var(--warn); }
.cat-bar .bad { background: var(--error); }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
@media (max-width: 560px) { .report-actions .btn { width: 100%; } }
.report-block { margin-top: 32px; display: grid; gap: 8px; }
.report-block > h2 { font-size: 1.35rem; margin-bottom: 6px; }
.issue { border: 1px solid var(--border); border-left: 4px solid var(--muted-foreground); border-radius: 14px; background: var(--card); }
.issue.s-fail { border-left-color: var(--error); }
.issue.s-warn { border-left-color: var(--warn); }
.issue.s-info { border-left-color: var(--primary-2); }
.issue summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "dot title tag" ". detail detail"; gap: 2px 10px; align-items: center; padding: 14px 16px; }
.issue summary::-webkit-details-marker { display: none; }
.issue .dot { grid-area: dot; width: 10px; height: 10px; border-radius: 50%; background: var(--muted-foreground); }
.issue.s-fail .dot { background: var(--error); }
.issue.s-warn .dot { background: var(--warn); }
.issue.s-info .dot { background: var(--primary-2); }
.issue-title { grid-area: title; font-weight: 600; }
.issue-detail { grid-area: detail; overflow-wrap: anywhere; }
.issue .tag { grid-area: tag; }
.tag { padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; background: var(--muted); color: var(--muted-foreground); }
.tag.t-fail { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); }
.tag.t-warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.tag.t-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag.t-info { background: color-mix(in srgb, var(--primary-2) 12%, transparent); color: var(--primary-2); }
.issue-body { padding: 0 16px 16px 36px; display: grid; gap: 8px; justify-items: start; }
.issue-body p { margin: 0; font-size: .92rem; }
@media (max-width: 560px) { .issue-body { padding-left: 16px; } .issue summary { grid-template-columns: auto 1fr; grid-template-areas: "dot title" ". tag" ". detail"; justify-items: start; } }
.url-list { margin: 0; padding-left: 18px; font-size: .85rem; color: var(--muted-foreground); overflow-wrap: anywhere; }
.ok-list summary { cursor: pointer; list-style: none; }
.ok-list summary h2 { display: inline; font-size: 1.35rem; }
.ok-list summary::after { content: " +"; color: var(--muted-foreground); }
.ok-list[open] summary::after { content: " −"; }
.ok-list ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ok-list li { padding: 10px 14px 10px 36px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); position: relative; }
.ok-list li::before { content: "✓"; position: absolute; left: 14px; color: var(--ok); font-weight: 700; }

/* Заявка (модальное окно) */
.modal-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); overflow-y: auto; }
.modal { width: 100%; max-width: 480px; display: grid; gap: 12px; padding: 26px; animation: modal-in .2s ease-out; }
.modal h2 { margin: 0; padding-right: 32px; font-size: 1.35rem; }
.modal p { margin: 0; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.lead-done { position: absolute; inset: 0; border-radius: inherit; background: var(--card); display: grid; place-content: center; justify-items: center; gap: 10px; padding: 26px; text-align: center; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ТЗ: анкета */
.tz-wrap { max-width: 860px; }
.tz-form { display: grid; gap: 8px; padding: 26px; }
.tz-form textarea, .tz-form input[type="text"] { width: 100%; }
.tz-ai { padding: 18px; margin-bottom: 8px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--primary-2) 30%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, transparent), color-mix(in srgb, var(--primary-2) 8%, transparent)); display: grid; gap: 12px; }
.tz-ai-head { display: flex; gap: 14px; align-items: flex-start; }
.tz-ai-head h2 { font-size: 1.15rem; margin: 0 0 4px; }
.tz-ai-head p { margin: 0; }
.tz-step { border: 0; padding: 18px 0 8px; margin: 0; border-top: 1px solid var(--border); display: grid; gap: 12px; min-width: 0; }
.tz-step legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 12px; font-weight: 700; font-size: 1.05rem; }
.tz-step legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--foreground); color: var(--background); font-size: .85rem; }
.tz-step legend + * { clear: both; }
.tz-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tz-card input, .chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.tz-card span { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-size: .92rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.tz-card input:checked + span { border-color: var(--primary); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select span { display: inline-block; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: .88rem; cursor: pointer; transition: all .15s; }
.chips-select input:checked + span { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.tz-card input:focus-visible + span, .chips-select input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.tz-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 560px) { .tz-form { padding: 18px; } .tz-actions .btn { width: 100%; } }
.tz-wait { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--muted); }
.tz-wait p { margin: 0; }

/* ТЗ: документ */
.tz-doc-wrap { max-width: 900px; display: grid; gap: 16px; }
.tz-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tz-toolbar .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tz-doc { padding: clamp(22px, 5vw, 48px); }
.tz-doc h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 12px; }
.tz-doc section { margin-top: 28px; }
.tz-doc h2 { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tz-doc p, .tz-doc li { font-size: .97rem; }
.tz-doc ul, .tz-doc ol { padding-left: 20px; }
.tz-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--link); font-size: .8rem; font-weight: 600; }
.tz-pages { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tz-page { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--background); break-inside: avoid; }
.tz-page h3 { margin: 0 0 2px; }
.tz-page p { margin: 0 0 8px; }
.tz-page ol { margin: 0; font-size: .9rem; }
.tz-questions { padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 8%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--border)); }
.tz-questions h2 { border: 0; padding: 0; }

@media print {
  .topbar, .bottomnav, .footer, .no-print, .install-banner, .modal-layer { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .tz-doc { border: 0; box-shadow: none; padding: 0; }
  .tz-page { background: #fff; }
}
#audit-report, #audit-progress, #domain-results, #fv-result { scroll-margin-top: 76px; }
@media (min-width: 1000px) { .features-5 { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 560px) { .report-head .cats { justify-self: stretch; width: 100%; text-align: left; } }
.tz-form > .tz-step:first-child { border-top: 0; padding-top: 0; }
.st-hero-compact + .tz-wrap { margin-top: 12px; }

/* ---------- Генератор favicon ---------- */
.fv-app { display: grid; gap: 20px; align-items: start; margin-top: 8px; }
@media (min-width: 960px) { .fv-app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fv-preview { position: sticky; top: 76px; } }
.fv-controls { display: grid; gap: 4px; }
.fv-controls .field { margin-bottom: 14px; }
.fv-tabs { width: 100%; margin-bottom: 18px; }
.fv-tabs label { flex: 1; }
.fv-tabs span { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px 14px; font-weight: 600; }
.fv-pane { margin-bottom: 6px; }
.fv-drop { display: flex; align-items: center; gap: 14px; padding: 18px; margin-bottom: 12px; border: 2px dashed var(--border); border-radius: 14px; background: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.fv-drop:hover, .fv-drop.over { border-color: var(--primary); background: var(--accent-soft); }
.fv-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fv-drop-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#e7e7ea 0 25%, #fff 0 50%) 0 0 / 12px 12px; display: grid; place-items: center; }
.fv-drop-thumb img { max-width: 100%; max-height: 100%; }
.fv-drop-text { display: grid; gap: 2px; min-width: 0; }
.fv-drop-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-letters { font-size: 1.3rem !important; font-weight: 700; letter-spacing: .05em; }
.fv-color { display: inline-flex; align-items: center; gap: 8px; }
.fv-color input[type=color] { width: 42px; height: 42px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); cursor: pointer; }
.fv-color code { font-size: .85rem; color: var(--muted-foreground); }
.fv-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fv-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--card); background: var(--c); box-shadow: 0 0 0 1px var(--border); cursor: pointer; transition: transform .15s; }
.fv-swatch:hover { transform: scale(1.1); }
.fv-controls input[type=range] { width: 100%; accent-color: var(--primary); }
.fv-more { margin: 4px 0 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.fv-more summary { cursor: pointer; font-weight: 600; font-size: .92rem; margin-bottom: 14px; color: var(--muted-foreground); }
.fv-go { width: 100%; }

.fv-preview { display: grid; gap: 14px; }
.fv-stage { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.fv-big { width: 160px; height: 160px; border-radius: 18px; padding: 10px; background: repeating-conic-gradient(#ececef 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.fv-big canvas { width: 140px; height: 140px; display: block; }
.fv-sizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.fv-sizes figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.fv-sizes figcaption { font-size: .75rem; color: var(--muted-foreground); }
.fv-mock { display: grid; gap: 10px; padding: 16px 18px; }
.fv-mock-title { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.fv-browser { display: flex; gap: 4px; padding: 8px 8px 0; border-radius: 12px 12px 0 0; background: #dfe1e5; }
.fv-browser.fv-dark { background: #202124; }
.fv-tab { display: flex; align-items: center; gap: 8px; min-width: 0; width: 190px; padding: 8px 12px; border-radius: 9px 9px 0 0; background: #fff; color: #202124; font-size: .82rem; }
.fv-dark .fv-tab { background: #35363a; color: #e8eaed; }
.fv-tab span:not(.fv-dot):not(.fv-x) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-tab-off { background: transparent !important; color: #5f6368 !important; width: 130px; }
.fv-dark .fv-tab-off { color: #9aa0a6 !important; }
.fv-ic[data-size="16"] { width: 16px; height: 16px; flex-shrink: 0; }
.fv-x { opacity: .6; }
.fv-dot { width: 16px; height: 16px; border-radius: 50%; background: #c8cacf; flex-shrink: 0; }
.fv-serp { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: #fff; color: #202124; border: 1px solid #ececef; }
.fv-serp-head { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.fv-serp-head > span:last-child { display: grid; line-height: 1.3; }
.fv-serp-ic { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; }
.fv-serp-ic canvas { width: 18px; height: 18px; }
.fv-serp-title { color: #1a0dab; font-size: 1.1rem; }
.fv-serp .muted { color: #5f6368; }
.fv-phone { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 16px 14px; border-radius: 18px; background: linear-gradient(160deg, #3b2a86, #ff5a1f 140%); }
.fv-phone figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.fv-phone figcaption { color: #fff; font-size: .75rem; }
.fv-app-ic { width: 60px; height: 60px; overflow: hidden; display: block; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.fv-app-ic canvas { width: 100%; height: 100%; display: block; }
.fv-ios { border-radius: 14px; }
.fv-android { border-radius: 50%; }
.fv-ghost { border-radius: 14px; background: rgba(255,255,255,.22); box-shadow: none; }
@media (max-width: 560px) { .fv-stage { grid-template-columns: 1fr; justify-items: center; } .fv-tab { width: 150px; } .fv-tab-off { width: 90px; } }

.fv-result { display: grid; gap: 16px; margin-top: 20px; }
.fv-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fv-result-head > div { flex: 1; min-width: 180px; }
.fv-result-head h2 { margin: 0; font-size: 1.35rem; }
.fv-result-head p { margin: 2px 0 0; }
.fv-howto { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .93rem; }
.fv-code { position: relative; }
.fv-code pre { margin: 0; padding: 16px; padding-top: 48px; border-radius: 12px; background: #16161a; color: #e6e6e6; font-size: .8rem; line-height: 1.6; overflow-x: auto; }
.fv-code .btn { position: absolute; top: 8px; right: 8px; }
.fv-result .chips .chip { font-family: ui-monospace, monospace; font-size: .78rem; }
.fv-result-head .badge-ok, .lead-done .badge-ok { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.st-art { display: block; width: min(460px, 80%); height: auto; margin: -24px auto 4px; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
#site-tools { scroll-margin-top: 76px; }
@media (max-width: 560px) { .st-art { width: 78%; margin-top: -12px; } }

/* Уведомления (по мотивам Sonner из 21st.dev) */
.toaster { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
@media (max-width: 760px) { .toaster { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--card); color: var(--foreground); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,.14); font-size: .92rem; animation: toast-in .25s cubic-bezier(.2,.9,.3,1.2); pointer-events: auto; transition: opacity .25s, transform .25s; }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--primary-2); }
.toast-success .toast-dot { background: var(--ok); }
.toast-error .toast-dot { background: var(--error); }
.toast-warn .toast-dot { background: var(--warn); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* Выбранный образец цвета (по мотивам HeroUI ColorSwatchPicker) */
.fv-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--foreground); transform: scale(1.06); }

/* Нижнее меню: активный пункт — «пилюля» (по мотивам Bottom Nav Bar) */
.bottomnav a .i { padding: 3px 14px; border-radius: 999px; box-sizing: content-box; transition: background .2s; }
.bottomnav a.active .i { background: var(--accent-soft); color: var(--primary-strong); }
.bottomnav a.active { font-weight: 600; }
.footer-contacts { display: flex; gap: 14px; }
.cv-how { display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .cv-how.with-art { grid-template-columns: 1.1fr .9fr; gap: 40px; } .cv-how.with-art .cv-steps { grid-template-columns: 1fr; } }
.cv-how-art { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
@media (max-width: 600px) { .cv-how-art { display: none; } }
