/* Kartix web — общий стиль (тёмная тема по макету). Без сборки. */

:root {
  --bg: #0E0E12;
  --surface: #15151B;
  --surface-2: #1C1C23;
  --line: #1F1F27;
  --border: #23232B;
  --border-2: #2A2A33;
  --border-3: #3A3A44;
  --input-border: #2E2E38;
  --text: #F2F1EC;
  --text-2: #E6E5DF;
  --muted: #C9C8C2;
  --muted-2: #A9A8B0;
  --muted-3: #8E8D96;
  --lime: #D4FF3A;
  --lime-hover: #E6FF85;
  --lime-ink: #2C3300;
  --danger: #FF8A6B;
  --ok: #2BB673;
  --font-display: Unbounded, Montserrat, Inter, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --wrap: 1240px;
  --pad: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }
a:hover { color: var(--lime-hover); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.page { flex: 1 0 auto; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: 0 0 auto; display: inline-block; }
.dot--ok { background: var(--ok); }
.dot--muted { background: var(--muted-3); }
.dot--danger { background: var(--danger); }
.lime { color: var(--lime); }
.muted { color: var(--muted-3); }
.eyebrow { font-size: 13px; color: var(--muted-3); letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow--lime { color: var(--lime); font-weight: 600; font-size: 14px; }
.num { font-family: var(--font-display); font-size: 13px; color: var(--lime); font-weight: 500; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; line-height: 1.2; padding: 13px 20px;
  transition: background-color .15s, color .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn svg { flex: 0 0 auto; }
.btn--lime { background: var(--lime); color: var(--bg); font-weight: 700; }
.btn--lime:hover { background: var(--lime-hover); color: var(--bg); }
.btn--light { background: var(--text); color: var(--bg); font-weight: 700; }
.btn--light:hover { background: #fff; color: var(--bg); }
.btn--dark { background: var(--bg); color: var(--text); font-weight: 700; }
.btn--dark:hover { background: #24242c; color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-3); font-weight: 500; }
.btn--ghost:hover { border-color: var(--muted-3); color: var(--text); }
.btn--plain { background: transparent; color: var(--text); font-weight: 500; }
.btn--plain:hover { color: var(--lime); }
.btn--link { background: transparent; border: 0; padding: 4px 0; color: var(--lime); font-weight: 600; font-size: 14px; }
.btn--link:hover { color: var(--lime-hover); }
.btn--sm { font-size: 13px; padding: 7px 12px; }
.btn--lg { font-size: 17px; padding: 19px 28px; }
.btn--xl { font-size: 17px; padding: 20px 30px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; }
.btn--lime:disabled:hover { background: var(--lime); }
.btn .btn__sub { font-weight: 500; opacity: .7; }

.copy-btn { background: transparent; border: 1px solid var(--border-3); color: var(--text); font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.copy-btn:hover { border-color: var(--muted-3); }
.copy-btn.is-done { border-color: var(--lime); color: var(--lime); }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; display: inline-block;
  border: 2px solid rgba(212,255,58,.25); border-top-color: var(--lime);
  animation: spin .8s linear infinite;
}
.btn--lime .spinner { border-color: rgba(14,14,18,.25); border-top-color: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Сегментированный переключатель ---------- */
.segmented { display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; padding: 4px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; color: var(--muted-2); padding: 9px 18px;
  border-radius: 999px; font-size: 14px; font-weight: 500;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
.segmented button:disabled { opacity: .5; }

/* ---------- Поля ---------- */
.field-label { display: block; font-size: 13px; color: var(--muted-3); margin-bottom: 6px; }
.input, .textarea {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--input-border); border-radius: 12px;
  padding: 13px 16px; font-size: 16px; line-height: 1.4;
  transition: border-color .15s;
}
.textarea { line-height: 1.55; resize: vertical; min-height: 96px; font-size: 15px; padding: 14px 16px; }
.input::placeholder, .textarea::placeholder { color: #6F6E77; }
.input:hover, .textarea:hover { border-color: var(--border-3); }
.input:focus, .textarea:focus { border-color: var(--lime); outline: none; box-shadow: 0 0 0 3px rgba(212,255,58,.15); }
.input--pill { border-radius: 999px; padding: 13px 18px; font-size: 15px; }
.input:disabled, .textarea:disabled { opacity: .6; }

/* ---------- Плашки ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px;
  font-size: 15px; line-height: 1.5; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted);
}
.notice__icon { flex: 0 0 auto; margin-top: 2px; }
.notice--error { border-color: rgba(255,138,107,.45); background: rgba(255,138,107,.08); color: #FFC9BA; }
.notice--ok { border-color: rgba(212,255,58,.45); background: rgba(212,255,58,.07); color: var(--text); }
.notice--warn { border-color: rgba(212,255,58,.35); background: rgba(212,255,58,.05); color: var(--muted); }
.notice--dev { border: 1px dashed var(--lime); background: rgba(212,255,58,.08); color: var(--text); font-weight: 600; }
.notice a { font-weight: 600; }
.notice strong { color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-2); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--muted); line-height: 1.2; }
.chip--sm { padding: 5px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--tight { gap: 6px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-2); white-space: nowrap; }
.badge--done { color: var(--lime); border-color: rgba(212,255,58,.35); }
.badge--running, .badge--queued { color: var(--text); }
.badge--error { color: var(--danger); border-color: rgba(255,138,107,.4); }
.badge--lime { background: var(--lime); color: var(--bg); border-color: var(--lime); font-weight: 700; letter-spacing: .04em; }

/* ---------- Шапка ---------- */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header--landing { border-bottom: 0; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 16px; padding-bottom: 16px; }
.site-header--landing .site-header__inner { padding-top: 24px; padding-bottom: 24px; }
.site-header--app .wrap { max-width: none; padding-left: 28px; padding-right: 28px; }

.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo__mark { width: 12px; height: 12px; border-radius: 3px; background: var(--lime); transform: rotate(45deg); flex: 0 0 auto; }

.nav { flex: 1 1 auto; display: flex; min-width: 0; }
.nav--center { justify-content: center; }
.nav__list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav--pill .nav__list { border: 1px solid var(--border-2); border-radius: 999px; padding: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); text-decoration: none;
  font-size: 14px; padding: 9px 14px; border-radius: 999px; white-space: nowrap; transition: color .15s, background-color .15s;
}
.nav--pill .nav__link { color: var(--muted); padding: 9px 16px; }
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 600; }
.nav__free { color: var(--lime); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.balance-pill {
  border: 1px solid var(--border-2); font-size: 14px; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.balance-pill:hover { border-color: var(--border-3); color: var(--text); }
.balance-pill b { color: var(--lime); font-weight: 600; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: 0 0 auto;
  text-transform: uppercase;
}
.logout-form { margin: 0; display: inline-flex; }
.logout-btn { background: transparent; border: 0; color: var(--muted-2); font-size: 14px; padding: 9px 10px; border-radius: 999px; }
.logout-btn:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 32px; color: var(--muted-3); font-size: 14px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted-3); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:hover { color: var(--text); }
.site-footer--app .wrap { max-width: none; padding-left: 28px; padding-right: 28px; }

/* ====================================================================
   ЛЕНДИНГ
   ==================================================================== */
.section-title { font-size: 48px; line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted-2); margin: 0; }

.hero {
  position: relative; overflow: hidden;
  background-image: linear-gradient(#1A1A21 1px, transparent 1px), linear-gradient(90deg, #1A1A21 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
}
.hero::after { /* мягкое затухание сетки к низу */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted);
  border: 1px solid var(--border-2); background: var(--bg); padding: 8px 14px; border-radius: 999px;
}
.hero__title { font-size: 72px; line-height: 1.02; letter-spacing: -0.035em; margin: 28px 0; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__sub { font-size: 20px; line-height: 1.55; color: var(--muted-2); margin: 0 0 40px; max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font-size: 14px; color: var(--muted-3); list-style: none; padding: 0; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted-3); }

.hero__art { flex: 1 1 460px; min-width: 0; position: relative; height: 560px; }
.hero__glow { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: var(--lime); opacity: .14; filter: blur(80px); }
.hero__img { position: absolute; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; border: 1px solid var(--border-2); box-shadow: 0 30px 60px rgba(0,0,0,.55); background: var(--surface); }
.hero__img--left { left: 4%; top: 70px; width: 250px; transform: rotate(-9deg); }
.hero__img--right { right: 2%; top: 80px; width: 250px; transform: rotate(8deg); }
.hero__img--main { left: 50%; top: 30px; width: 300px; margin-left: -150px; border-radius: 20px; border-color: var(--border-3); box-shadow: 0 40px 80px rgba(0,0,0,.65); }
.hero__badge {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px;
  white-space: nowrap; display: flex; gap: 8px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-family: var(--font-display); font-size: 14px; color: var(--muted-3); letter-spacing: .02em; list-style: none; margin-top: 0; margin-bottom: 0; }

.how { padding-top: 120px; padding-bottom: 40px; }
.how__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.how__copy { flex: 1 1 380px; min-width: 0; }
.how__copy .section-title { margin: 18px 0 20px; }
.how__copy .lead { margin-bottom: 32px; }
.steps-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.steps-list li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
.steps-list .num { font-size: 14px; min-width: 24px; }
.how__compare { flex: 1 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.how__compare figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.how__compare figcaption { font-size: 14px; color: var(--muted-3); }
.how__compare figcaption.lime { color: var(--lime); }
.placeholder-photo {
  aspect-ratio: 3 / 4; border-radius: 18px; border: 1px dashed var(--border-3); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted-3); font-size: 14px; text-align: center; padding: 24px;
}
.how__after { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }

.features { padding-top: 100px; padding-bottom: 100px; }
.features .section-title { margin-bottom: 48px; max-width: 760px; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; min-height: 340px; }
.fcard h3 { margin: 0; font-size: 26px; line-height: 1.2; }
.fcard p { margin: 0; color: var(--muted-2); line-height: 1.6; font-size: 16px; }
.fcard__foot { margin-top: auto; }
.fcard--lime { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.fcard--lime .eyebrow { color: var(--bg); font-weight: 600; }
.fcard--lime p { color: var(--lime-ink); }
.fcard__quote { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.checks > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.checks > div:last-child { border-bottom: 0; padding-bottom: 0; }
.checks span:first-child { color: var(--muted); }
.checks .bad { color: var(--danger); }
.checks .good { color: var(--lime); }
.fcard--wide { grid-column: 1 / -1; min-height: 300px; }
.fcard--wide .fcard__row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.fcard--wide .fcard__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.fcard--wide h3 { font-size: 32px; line-height: 1.15; }
.fcard--wide p { font-size: 17px; max-width: 460px; }
.chat { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bubble { background: var(--border-2); border-radius: 18px 18px 4px 18px; padding: 14px 18px; font-size: 16px; max-width: 340px; align-self: flex-end; }
.bubble--bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--border-2); border-radius: 18px 18px 18px 4px; color: var(--muted); display: flex; gap: 10px; align-items: center; max-width: none; }

.promo { border-top: 1px solid var(--line); }
.promo__inner { padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.promo__copy { flex: 1 1 420px; min-width: 0; }
.promo__copy .section-title { margin: 22px 0 20px; }
.promo__copy .lead { margin-bottom: 32px; max-width: 500px; }
.pill-lime { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--bg); background: var(--lime); padding: 7px 12px; border-radius: 999px; }
.promo__demo { flex: 1 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.promo__demo .bubble { max-width: 380px; }

.code-card { background: var(--bg); border: 1px solid var(--border-2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.code-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.code-card__label { font-size: 13px; color: var(--muted-3); letter-spacing: .06em; text-transform: uppercase; }
.code-card code, .code-text { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; white-space: pre-wrap; }

.pricing { border-top: 1px solid var(--line); }
.pricing__inner { padding-top: 120px; padding-bottom: 120px; }
.pricing__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.pricing__head p { margin: 0; color: var(--muted-2); font-size: 17px; max-width: 380px; }
.pricing__note { margin: 28px 0 0; color: var(--muted-2); font-size: 16px; }
.pricing__note strong { color: var(--text); font-weight: 600; }

.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.tariff { border: 1px solid var(--border); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tariff--hot { border: 1.5px solid var(--lime); background: var(--surface); box-shadow: 0 0 0 6px rgba(212,255,58,.06); }
.tariff__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; }
.tariff__name { font-size: 15px; color: var(--muted); }
.tariff--hot .tariff__name { color: var(--lime); }
.tariff__price { font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.tariff__price small { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--muted-3); letter-spacing: 0; }
.tariff__list { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--muted); flex: 1 1 auto; list-style: none; padding: 0; margin: 0; }
.tariff__list li { display: flex; gap: 10px; align-items: baseline; }
.tariff__list li::before { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg) translateY(-3px); flex: 0 0 auto; }
.tariff__list li.tariff__lead { color: var(--text); font-weight: 600; }
.tariff .btn { padding: 16px; }
.tariff__error { font-size: 14px; color: var(--danger); margin: -8px 0 0; }

.faq { border-top: 1px solid var(--line); }
.faq__inner { padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 48px; }
.faq__inner > .section-title { flex: 1 1 320px; }
.faq__list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); padding: 26px 0; }
.faq__item h3 { margin: 0 0 10px; font-family: var(--font-body); font-size: 19px; font-weight: 600; }
.faq__item p { margin: 0; color: var(--muted-2); line-height: 1.6; }

.final-cta { padding-top: 40px; padding-bottom: 120px; }
.final-cta__box { background: var(--lime); color: var(--bg); border-radius: 32px; padding: 72px 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.final-cta__box h2 { flex: 1 1 560px; margin: 0; font-size: 60px; line-height: 1.02; letter-spacing: -0.04em; }
.final-cta__box .btn { font-size: 18px; padding: 22px 34px; }

/* ====================================================================
   КАБИНЕТ (общая раскладка)
   ==================================================================== */
.app-main { padding: 32px 28px 64px; max-width: 1360px; margin: 0 auto; width: 100%; }
.app-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.app-col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.app-col-side { flex: 1 1 380px; min-width: 0; }
.app-col-side--sticky { position: sticky; top: 24px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 16px; margin-bottom: 8px; }
.page-title { margin: 0; font-size: 32px; letter-spacing: -0.03em; line-height: 1.15; }
.page-sub { margin: 0; color: var(--muted-2); font-size: 16px; line-height: 1.6; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; min-width: 0; }
.panel--lg { border-radius: 24px; padding: 28px; }
.panel--outline { background: transparent; }
.panel--inset { background: var(--bg); border-radius: 16px; padding: 16px; }
.panel__head { display: flex; gap: 12px 20px; align-items: baseline; margin-bottom: 18px; flex-wrap: wrap; }
.panel__head h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.panel__hint { font-size: 13px; color: var(--muted-3); margin-left: auto; }

/* шаги создания */
.steps-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.steps-fieldset:disabled .panel { opacity: .45; }
.steps-fieldset:disabled .create-btn { opacity: .45; }
.locked-hint { font-size: 14px; color: var(--muted-3); display: flex; gap: 8px; align-items: center; padding: 0 4px; }

.dropzone {
  border: 1.5px dashed var(--border-3); border-radius: 16px; background: var(--bg);
  padding: 36px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; color: var(--muted-2); transition: border-color .15s, background-color .15s;
}
.dropzone.is-over { border-color: var(--lime); background: rgba(212,255,58,.05); }
.dropzone__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.dropzone__title { font-size: 17px; font-weight: 600; color: var(--text); margin: 0; }
.dropzone__hint { font-size: 14px; color: var(--muted-3); margin: 0; }

.upload-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.upload-thumb { width: 72px; height: 96px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); object-fit: cover; flex: 0 0 auto; }
.upload-info { flex: 1 1 200px; min-width: 0; }
.upload-name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-status { font-size: 14px; color: var(--muted-3); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.upload-status.is-ok { color: var(--muted); }
.upload-status.is-error { color: var(--danger); }

.benefits { display: flex; flex-direction: column; gap: 8px; }
.benefit-row { display: flex; gap: 8px; align-items: center; }
.benefit-row .input { font-size: 15px; padding: 12px 16px; }
.icon-btn {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; border: 1px solid var(--input-border);
  background: transparent; color: var(--muted-3); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: var(--danger); border-color: rgba(255,138,107,.5); }

.styles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.style-card {
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted); border-radius: 14px; padding: 8px;
  text-align: left; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, color .15s;
}
.style-card:hover { border-color: var(--border-3); color: var(--text); }
.style-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 9px; }
.style-card__name { font-weight: 600; font-size: 14px; padding: 0 6px 4px; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.style-card[aria-pressed="true"] { border: 2px solid var(--lime); padding: 7px; color: var(--lime); }
.style-card__check { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--bg); display: none; align-items: center; justify-content: center; flex: 0 0 auto; }
.style-card[aria-pressed="true"] .style-card__check { display: inline-flex; }
.style-note { font-size: 13px; color: var(--muted-3); }
.style-note.is-auto { color: var(--lime); }

.create-btn { font-size: 17px; padding: 20px; width: 100%; flex-wrap: wrap; white-space: normal; text-align: center; }
.form-error { min-height: 0; }

/* превью «что получится» */
.preview-stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.preview-stack img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.preview-stack img:first-child { grid-column: span 2; grid-row: span 2; border-radius: 14px; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.side-list li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.side-list li:last-child { border-bottom: 0; }

/* ====================================================================
   РЕЗУЛЬТАТ КАРТОЧКИ
   ==================================================================== */
.result { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.result__gallery { flex: 999 1 560px; min-width: 0; }
.result__side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.slides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.slide { display: block; position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); aspect-ratio: 3 / 4; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.slide:hover img { transform: scale(1.015); }
.slide--cover { grid-column: span 3; grid-row: span 3; border-radius: 18px; aspect-ratio: auto; }
.slide__tag { position: absolute; left: 10px; top: 10px; background: rgba(14,14,18,.78); color: var(--text); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(6px); opacity: 0; transition: opacity .15s; }
.slide:hover .slide__tag, .slide:focus-visible .slide__tag { opacity: 1; }
.slides__info { border: 1px dashed var(--border-3); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted-3); font-size: 13px; padding: 8px; }

.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.status-line { font-size: 13px; color: var(--lime); display: flex; gap: 8px; align-items: center; }

.seo { display: flex; flex-direction: column; gap: 18px; }
.seo__block { display: flex; flex-direction: column; gap: 8px; }
.seo__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.seo__label { font-size: 13px; color: var(--muted-3); }
.seo__title { font-size: 15px; color: var(--text); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.seo__desc { font-size: 14px; color: var(--muted-2); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; max-height: 220px; overflow: auto; padding-right: 6px; }
.seo__desc:focus-visible { outline-offset: 2px; }

.replan-row { display: flex; gap: 8px; flex-wrap: wrap; }
.replan-row .input { flex: 1 1 220px; width: auto; min-width: 0; }

/* экран ожидания */
.waiting { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: center; padding: 56px 32px; }
.waiting__art { position: relative; width: 240px; aspect-ratio: 3 / 4; flex: 0 0 auto; }
.waiting__card {
  position: absolute; inset: 0; border-radius: 20px; border: 1px solid var(--border-3);
  background: linear-gradient(160deg, #1C1C23, #121217); overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.waiting__card--back { transform: rotate(-7deg) translateX(-26px); opacity: .5; }
.waiting__card--back2 { transform: rotate(6deg) translateX(26px); opacity: .5; }
.waiting__skel { position: absolute; left: 22px; right: 22px; border-radius: 6px; background: #26262E; }
.waiting__skel--t1 { top: 26px; height: 18px; width: 62%; }
.waiting__skel--t2 { top: 52px; height: 12px; width: 40%; }
.waiting__obj { position: absolute; left: 50%; top: 42%; width: 38%; height: 40%; margin-left: -19%; border-radius: 14px 14px 10px 10px; background: linear-gradient(180deg, #2E2E38, #24242c); }
.waiting__skel--b { bottom: 26px; height: 30px; width: 70%; border-radius: 999px; }
.waiting__scan {
  position: absolute; left: 0; right: 0; height: 90px; top: -90px;
  background: linear-gradient(180deg, transparent, rgba(212,255,58,.16) 70%, rgba(212,255,58,.55) 100%);
  border-bottom: 1px solid var(--lime);
  animation: scan 2.6s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes scan { 0% { top: -90px; } 100% { top: 100%; } }
.waiting__text { flex: 0 1 380px; min-width: 0; }
.waiting__stage { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin: 14px 0 12px; }
.waiting__note { color: var(--muted-2); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.stage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.stage-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted-3); font-size: 15px; }
.stage-list li .stage-ico { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-3); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.stage-list li.is-done { color: var(--muted); }
.stage-list li.is-done .stage-ico { background: var(--lime); border-color: var(--lime); }
.stage-list li.is-done .stage-ico::after { content: ""; width: 7px; height: 4px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg) translate(1px, -1px); }
.stage-list li.is-active { color: var(--text); font-weight: 600; }
.stage-list li.is-active .stage-ico { border-color: var(--lime); border-top-color: transparent; animation: spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .waiting__scan { animation: none; top: 45%; }
  .spinner, .stage-list li.is-active .stage-ico { animation-duration: 2.4s; }
}

.error-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px; max-width: 640px; }
.error-panel h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.error-panel p { margin: 0; color: var(--muted-2); line-height: 1.6; }

/* ====================================================================
   МОИ КАРТОЧКИ
   ==================================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card-tile { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 10px 10px 16px; transition: border-color .15s, transform .15s; height: 100%; }
.card-tile:hover { color: var(--text); border-color: var(--border-3); transform: translateY(-2px); }
.card-tile__img { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.card-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.card-tile__ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--muted-3); font-size: 13px; text-align: center; padding: 16px; }
.card-tile__badge { position: absolute; left: 10px; top: 10px; }
.card-tile__badge .badge { background: rgba(14,14,18,.82); backdrop-filter: blur(6px); }
.card-tile__body { padding: 0 6px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-tile__title { font-weight: 600; font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.card-tile__date { font-size: 13px; color: var(--muted-3); }
.card-tile__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; margin-top: auto; padding-top: 6px; }
.card-tile__meta .badge { font-size: 11px; padding: 4px 8px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 72px 24px; }
.empty__art { display: flex; gap: 0; margin-bottom: 8px; }
.empty__art span { width: 64px; aspect-ratio: 3 / 4; border-radius: 10px; border: 1px dashed var(--border-3); background: var(--surface-2); }
.empty__art span:nth-child(1) { transform: rotate(-8deg) translateX(10px); }
.empty__art span:nth-child(2) { width: 80px; border: 1.5px solid var(--lime); background: rgba(212,255,58,.06); z-index: 1; position: relative; }
.empty__art span:nth-child(3) { transform: rotate(8deg) translateX(-10px); }
.empty h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.empty p { margin: 0; color: var(--muted-2); max-width: 420px; line-height: 1.6; }

/* ====================================================================
   ПРОМПТЫ
   ==================================================================== */
.counter-pill { border: 1px solid var(--border-2); font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.counter-pill b { color: var(--lime); font-weight: 600; }
.form-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-3); flex-wrap: wrap; }
.attach-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.attach-btn { background: transparent; border: 1px dashed var(--border-3); color: var(--muted); padding: 12px 16px; border-radius: 12px; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.attach-btn:hover { border-color: var(--muted-3); color: var(--text); }
.attach-file { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 12px; padding: 6px 6px 6px 6px; font-size: 14px; color: var(--muted); max-width: 100%; min-width: 0; }
.attach-file img { width: 34px; height: 44px; object-fit: cover; border-radius: 6px; }
.attach-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.attach-file .icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; }

.tips { display: flex; flex-direction: column; gap: 12px; }
.tips__item .num, .side-list .num { min-width: 22px; }
.tips__item { display: flex; gap: 14px; align-items: baseline; color: var(--muted); line-height: 1.55; }

.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 14px; line-height: 1.5; list-style: none; margin: 0; padding: 0; }
.brief-grid li { background: var(--surface-2); border-radius: 12px; padding: 14px; min-width: 0; }
.brief-grid b { display: block; color: var(--lime); font-weight: 600; margin-bottom: 4px; }
.brief-grid span { color: var(--muted); overflow-wrap: anywhere; }

.upsell { background: var(--lime); color: var(--bg); border-radius: 18px; padding: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.upsell__text { flex: 1 1 260px; }
.upsell__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.upsell__sub { font-size: 15px; margin-top: 4px; color: var(--lime-ink); }

.result-empty { display: flex; flex-direction: column; gap: 12px; }
.ghost-line { height: 12px; border-radius: 6px; background: var(--surface-2); }
.ghost-card { background: var(--bg); border: 1px solid var(--border-2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.result-empty__msg { color: var(--muted-3); font-size: 15px; text-align: center; padding: 8px 0 4px; }

/* ====================================================================
   ТАРИФ
   ==================================================================== */
.balance-card { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.balance-card__num { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.balance-card__num small { font-family: var(--font-body); font-size: 18px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; margin-left: 6px; }
.balance-card__split { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted-3); padding: 0 16px 12px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.num-cell { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }

/* ====================================================================
   ВХОД / ОШИБКА
   ==================================================================== */
.center-stage {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 64px 20px;
  background-image: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(212,255,58,.07), transparent 70%), linear-gradient(#17171D 1px, transparent 1px), linear-gradient(90deg, #17171D 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px; background-position: center, center top, center top;
}
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px 36px; box-shadow: 0 40px 80px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 20px; }
.auth-card h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; }
.auth-card p { margin: 0; color: var(--muted-2); line-height: 1.6; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.auth-steps { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted-3); }
.auth-steps span { display: inline-flex; gap: 8px; align-items: center; }
.auth-steps i { width: 22px; height: 1px; background: var(--border-3); display: inline-block; }
.auth-steps .is-on { color: var(--text); }
.auth-steps .is-on .num, .auth-steps .num { font-size: 12px; }
.code-input { font-family: var(--font-display); font-size: 26px; letter-spacing: .4em; text-align: center; padding: 16px 12px 16px calc(12px + .4em); }
.auth-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--muted-3); }
.auth-alt form { display: inline; }
.auth-fine { font-size: 13px; color: var(--muted-3); text-align: center; }
.auth-fine a { color: var(--muted-2); }

.error-page { text-align: center; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.error-page__code { font-family: var(--font-display); font-size: 120px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--lime); }
.error-page h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.error-page p { margin: 0; color: var(--muted-2); line-height: 1.6; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ====================================================================
   АДАПТИВ
   ==================================================================== */
@media (max-width: 1100px) {
  .hero__title { font-size: 60px; }
  .app-col-side--sticky { position: static; }
}

@media (max-width: 900px) {
  :root { --pad: 24px; }
  .section-title { font-size: 38px; }
  .hero__inner { padding-top: 48px; padding-bottom: 64px; }
  .hero__title { font-size: 52px; }
  .how, .features { padding-top: 80px; }
  .features { padding-bottom: 80px; }
  .promo__inner, .pricing__inner, .faq__inner { padding-top: 80px; padding-bottom: 80px; }
  .final-cta__box { padding: 56px 36px; }
  .final-cta__box h2 { font-size: 46px; }
  .nav--center { justify-content: flex-start; }
  .site-header--landing .nav { order: 3; flex-basis: 100%; }
  .site-header--app .nav { order: 3; flex-basis: 100%; }
  .site-header--landing .header-actions, .site-header--app .header-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  :root { --pad: 16px; }
  body { font-size: 15px; }
  .site-header__inner { gap: 12px; }
  .site-header--landing .site-header__inner { padding-top: 16px; padding-bottom: 16px; }
  .site-header--app .wrap, .site-footer--app .wrap { padding-left: 16px; padding-right: 16px; }
  .logo { font-size: 17px; }
  .nav { margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .nav__list { flex-wrap: wrap; }
  .nav--pill .nav__list { border: 0; padding: 0; gap: 6px; }
  .nav--pill .nav__link, .nav__link { padding: 8px 12px; font-size: 13px; border: 1px solid var(--border-2); }
  .nav__link[aria-current="page"] { border-color: var(--surface-2); }
  .header-actions { gap: 6px; }
  .hide-sm { display: none; }
  .replan-row .btn { flex: 1 1 auto; }
  .header-actions .btn { padding: 10px 14px; font-size: 14px; }
  .balance-pill { padding: 7px 12px; font-size: 13px; }
  .avatar { width: 32px; height: 32px; font-size: 13px; }
  .logout-btn { padding: 8px 6px; font-size: 13px; }

  .section-title { font-size: 30px; }
  .lead { font-size: 16px; }
  .hero__inner { padding-top: 32px; padding-bottom: 48px; gap: 24px; }
  .hero__title { font-size: 38px; margin: 22px 0 18px; letter-spacing: -0.03em; }
  .hero__sub { font-size: 17px; margin-bottom: 28px; }
  .hero__ctas .btn { width: 100%; }
  .hero__ctas .btn--xl { padding: 18px 22px; font-size: 16px; }
  .hero__facts { margin-top: 24px; gap: 8px 16px; font-size: 13px; }
  .hero__art { flex-basis: 100%; height: 370px; }
  .hero__img--main { width: 220px; margin-left: -110px; top: 20px; }
  .hero__img--left, .hero__img--right { width: 160px; top: 70px; }
  .hero__img--left { left: 0; }
  .hero__img--right { right: 0; }
  .hero__glow { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .hero__badge { font-size: 13px; bottom: 8px; }
  .ticker__inner { justify-content: flex-start; gap: 10px 24px; font-size: 12px; }
  .how { padding-top: 64px; }
  .how__inner { gap: 32px; }
  .steps-list li { font-size: 15px; gap: 14px; }
  .how__compare { gap: 10px; }
  .placeholder-photo { padding: 12px; font-size: 12px; border-radius: 14px; }
  .how__after { border-radius: 14px; }
  .features { padding-top: 64px; padding-bottom: 64px; }
  .features .section-title { margin-bottom: 28px; }
  .fcard { padding: 24px; min-height: 0; border-radius: 20px; }
  .fcard h3 { font-size: 22px; }
  .fcard--wide h3 { font-size: 24px; }
  .fcard__quote { font-size: 24px; margin-top: 12px; }
  .fcard--wide .fcard__row { gap: 24px; }
  .chat { flex-basis: 100%; }
  .bubble { font-size: 15px; max-width: 88%; }
  .promo__inner, .pricing__inner, .faq__inner { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .promo__demo { padding: 18px; border-radius: 20px; }
  .pricing__head { margin-bottom: 28px; }
  .tariff { padding: 26px; border-radius: 20px; }
  .tariff__price { font-size: 38px; }
  .faq__item { padding: 20px 0; }
  .faq__item h3 { font-size: 17px; }
  .final-cta { padding-bottom: 64px; }
  .final-cta__box { padding: 36px 24px; border-radius: 24px; gap: 28px; }
  .final-cta__box h2 { font-size: 32px; flex-basis: 100%; }
  .final-cta__box .btn { width: 100%; font-size: 16px; padding: 18px 20px; white-space: normal; }

  .app-main { padding: 20px 16px 48px; }
  .page-title { font-size: 26px; }
  .panel { padding: 18px; border-radius: 18px; }
  .panel--lg { padding: 18px; border-radius: 20px; }
  .panel__hint { margin-left: 0; flex-basis: 100%; }
  .panel__head { gap: 6px 14px; margin-bottom: 14px; }
  .dropzone { padding: 28px 16px; }
  .upload-row { gap: 14px; }
  .upload-row .btn { width: 100%; }
  .styles-grid { gap: 8px; }
  .style-card { padding: 5px; border-radius: 12px; gap: 6px; }
  .style-card[aria-pressed="true"] { padding: 4px; }
  .style-card__name { font-size: 12px; padding: 0 3px 3px; }
  .style-card__check { width: 16px; height: 16px; }
  .create-btn { font-size: 16px; padding: 18px; }

  .slides { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .slide--cover { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 4; }
  .slides__info { display: none; }
  .waiting { padding: 32px 16px; gap: 28px; }
  .waiting__art { width: 170px; }
  .waiting__stage { font-size: 21px; }
  .error-panel { padding: 24px; }

  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-tile { padding: 6px 6px 12px; border-radius: 14px; gap: 10px; }
  .card-tile__body { padding: 0 4px; }
  .card-tile__title { font-size: 14px; }

  .brief-grid { grid-template-columns: 1fr; }
  .balance-card__num { font-size: 44px; }
  .table { font-size: 14px; }

  .auth-card { padding: 28px 20px; border-radius: 20px; }
  .auth-card h1 { font-size: 24px; }
  .center-stage { padding: 32px 16px; align-items: flex-start; }
  .error-page__code { font-size: 88px; }
}


/* ---------- Редактор текста на слайдах ---------- */
.texted { display: flex; flex-direction: column; gap: 14px; }
.texted__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }
.texted__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.texted__tab { border: 1px solid #2A2A33; background: transparent; color: #C9C8C2; padding: 8px 14px;
  border-radius: 999px; font-size: 14px; cursor: pointer; font: inherit; font-size: 14px; }
.texted__tab[aria-selected="true"] { background: #F2F1EC; color: #0E0E12; border-color: #F2F1EC; font-weight: 600; }
.texted__tab.has-error { border-color: #FF8A6B; }
.texted__form { display: flex; flex-direction: column; gap: 10px; }
.texted__label { display: flex; justify-content: space-between; font-size: 13px; color: #A9A8B0; }
.texted__form .input.is-invalid { border-color: #FF8A6B; box-shadow: 0 0 0 1px #FF8A6B inset; }
.texted__msg { font-size: 13px; color: #FF8A6B; line-height: 1.5; margin: -4px 0 0; }
.texted__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #C9C8C2; }
.texted__checks .bad { color: #FF8A6B; }
.texted__row { display: flex; gap: 6px; }
.texted__row .input { flex: 1 1 auto; min-width: 0; }
.texted__del { flex: none; width: 44px; border: 1px solid #2A2A33; background: transparent; color: #A9A8B0; border-radius: 12px; cursor: pointer; font-size: 18px; }

/* ---------- Загрузка из Excel ---------- */
.batch-form { display: flex; flex-direction: column; gap: 16px; }
.batch-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.batch-file { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px dashed #3A3A44;
  border-radius: 16px; background: #15151B; cursor: pointer; }
.batch-file:hover, .batch-file:focus-within { border-color: var(--lime); }
.batch-file__title { font-weight: 600; }
.batch-file__hint { font-size: 13px; color: #A9A8B0; line-height: 1.5; word-break: break-word; }
.batch-file input { font: inherit; font-size: 14px; color: #C9C8C2; margin-top: 6px; }
.batch-opts { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.table-box { overflow-x: auto; border: 1px solid #23232B; border-radius: 14px; max-height: 520px; overflow-y: auto; }
.batch-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14px; }
.batch-table th { position: sticky; top: 0; background: #15151B; text-align: left; padding: 12px 14px; color: #A9A8B0; font-weight: 500; border-bottom: 1px solid #23232B; }
.batch-table td { padding: 11px 14px; border-bottom: 1px solid #1F1F27; vertical-align: top; }
.batch-table .st-ok { color: #6FE0A7; }
.batch-table .st-bad { color: #FF8A6B; }
.batch-table .st-wait { color: #C9C8C2; }
.batch-check { display: inline-flex; gap: 10px; align-items: center; margin: 16px 0 0; font-size: 15px; }
.batch-check input { width: 18px; height: 18px; accent-color: #D4FF3A; }
.batch-sum { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 16px 0; font-size: 16px; }
.batch-sum .bad { color: #FF8A6B; }
.batch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.batch-progress-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 10px; }
.batch-bar { height: 10px; border-radius: 999px; background: #23232B; overflow: hidden; }
.batch-bar > div { height: 100%; width: 0; background: var(--lime); transition: width .4s ease; }
.batch-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 18px; }
.batch-covers a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #23232B; }
.batch-covers img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.lots { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #A9A8B0; }

/* ---------- Отзывы ---------- */
.review-form { display: flex; flex-direction: column; gap: 18px; }
.review-stars { border: 0; margin: 0; padding: 0; }
.review-stars__row { display: flex; gap: 8px; }
.review-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-stars label { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1px solid #2E2E38; background: #1C1C23; font-weight: 700; cursor: pointer; }
.review-stars input:checked + label { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.review-stars input:focus-visible + label { outline: 2px solid var(--lime); outline-offset: 2px; }
.review-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }

/* Плашка «бесплатная реклама за отзыв» в кабинете */
.nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 12px 20px;
  background: var(--lime); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; text-align: center; }
.nudge:hover { background: #E6FF85; color: var(--bg); }
.nudge__tag { background: var(--bg); color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.nudge__go { font-size: 18px; }

/* Витрина товаров селлеров (лендинг) */
.showcase { position: relative; }
.showcase__track { position: relative; min-height: 420px; }
.showcase__item { position: absolute; inset: 0; display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
  opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .7s ease, transform .7s ease, visibility 0s .7s; }
.showcase__item.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease; }
.showcase__img { flex: 0 0 auto; width: 300px; max-width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px;
  border: 1px solid #2E2E38; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.showcase__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.showcase__dots { display: flex; gap: 8px; margin-top: 24px; }
.showcase__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #3A3A44; cursor: pointer; }
.showcase__dots button[aria-current="true"] { background: var(--lime); width: 28px; border-radius: 999px; }
@media (max-width: 640px) { .showcase__track { min-height: 760px; } .showcase__img { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .showcase__item, .showcase__item.is-on { transition: none; transform: none; } }

.showcase-pick { border: 1px solid #2E2E38; border-radius: 16px; padding: 16px; margin: 0; }
.showcase-pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.showcase-pick__item { display: flex; flex-direction: column; gap: 6px; cursor: pointer; font-size: 12px; color: #C9C8C2; }
.showcase-pick__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.showcase-pick__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 2px solid transparent; }
.showcase-pick__item input:checked + img { border-color: var(--lime); }
.showcase-pick__item input:focus-visible + img { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- Вход через Яндекс ID ---------- */
.btn--yandex { background: #fff; color: #0E0E12; border-color: #fff; font-weight: 600; gap: 10px; }
.btn--yandex:hover { background: #ECECEC; color: #0E0E12; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted-3); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border-2); }

/* ---------- Возврат денег ---------- */
.refund-panel { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.refund-panel > div { flex: 1 1 420px; min-width: 0; }
.modal { border: 1px solid var(--border-2); border-radius: 24px; background: var(--surface); color: var(--text);
  padding: 0; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.modal::backdrop { background: rgba(6, 6, 9, .72); }
.modal__body { position: relative; padding: 32px 28px 28px; }
.modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted-2); font-size: 26px; line-height: 1; cursor: pointer; }
.modal__close:hover { background: var(--surface-2); color: var(--text); }
.modal__title { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.modal__sum { margin: 0 0 8px; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--lime); }
.modal__sum span { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--muted-2); }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.choice__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--input-border);
  border-radius: 14px; cursor: pointer; }
.choice__item:has(input:checked) { border-color: var(--lime); background: rgba(212,255,58,.05); }
.choice__item input { margin-top: 3px; accent-color: var(--lime); }
.choice__item strong { display: block; font-size: 15px; color: var(--text); }
.choice__item small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-3); }
@media (max-width: 520px) { .modal__body { padding: 28px 18px 20px; } .modal__sum { font-size: 26px; } }

/* ---------- Документы: оферта, политика, согласие ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 48px 24px 96px; }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.legal__nav a { padding: 8px 14px; border: 1px solid var(--border-2); border-radius: 999px; color: var(--muted);
  text-decoration: none; font-size: 14px; }
.legal__nav a[aria-current="page"] { border-color: var(--lime); color: var(--text); }
.legal__body { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal__body h1 { color: var(--text); font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal__body h2 { color: var(--text); font-size: 20px; margin: 36px 0 12px; scroll-margin-top: 90px; }
.legal__body p { margin: 0 0 12px; }
.legal__body ul { margin: 0 0 12px; padding-left: 22px; }
.legal__body strong { color: var(--text); }
.legal__body a { color: var(--lime); }
@media (max-width: 600px) { .legal { padding: 32px 18px 72px; } .legal__body h1 { font-size: 26px; } }

/* Согласие на обработку ПДн в формах */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted-3); cursor: pointer; }
.consent input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--lime); }
.consent a { color: var(--muted); }
