@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/static/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f4efe6;
  --muted: #b7b0a4;
  --line: rgba(244, 239, 230, 0.12);
  --paper: #0e1116;
  --card: #171c24;
  --field: #10141b;
  --accent: #e4c48a;
  --accent-dark: #c6a15e;
  --gold: #e4c48a;
  --danger: #e08b8b;
  --ok: #9dccb8;
  --shadow: 0 18px 50px rgba(28, 25, 21, 0.08);
  --radius: 18px;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: "Courier New", monospace; font-size: 0.92em; }

.site-footer {
  padding: 28px 7vw 36px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-contacts { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-contacts a { color: var(--muted); text-decoration: none; }
.footer-contacts a:hover { color: var(--ink); }

.logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo svg { display: block; }

.nav-row, .hero-actions, .downloads, .site-actions, .review-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn, .downloads a, button.primary, button.ghost, .nav-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
}
.btn-primary, button.primary, .downloads a {
  background: var(--accent);
  color: white;
}
.btn-primary:hover, button.primary:hover, .downloads a:hover { background: var(--accent-dark); }
.btn-ghost, button.ghost, .nav-btn {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
button.primary:disabled { opacity: 0.6; cursor: wait; }

/* Landing */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 7vw;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 12px 7vw 64px;
}
.kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
}
.hero .lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.hero-actions { margin-top: 28px; }

.preview-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.preview-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #e7dfd2; display: block; }
.dots i:first-child { background: var(--gold); }
.mock-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px; }
.mock-table td { padding: 10px 8px; border-top: 1px solid var(--line); }
.pill { display: inline-block; background: #e7f3ee; color: var(--accent-dark); border-radius: 999px; padding: 3px 8px; font-size: 12px; }

.section { padding: 28px 7vw 10px; }
.section h2 { font-size: 34px; letter-spacing: -0.04em; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 22px; max-width: 560px; }
.steps, .features, .faq { display: grid; gap: 14px; }
.steps { grid-template-columns: repeat(5, 1fr); }
.features { grid-template-columns: repeat(3, 1fr); }
.step, .feature, .faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(28, 25, 21, 0.04);
}
.step strong, .feature strong { display: block; margin: 10px 0 6px; }
.step p, .feature p, .faq p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: #e7f3ee; color: var(--accent);
  display: grid; place-items: center;
}
.faq details summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; }
.cta {
  margin: 28px 7vw 48px;
  background: #14352c;
  color: #f6f1e7;
  border-radius: 28px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.cta p { color: #d9d0c2; margin: 8px 0 0; }
.cta .btn-primary { background: #f3e6cf; color: #14352c; }

/* Auth */
.auth-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 32px 16px 16px;
}
.auth-panel {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.auth-panel h2 { margin: 12px 0 8px; letter-spacing: -0.04em; }
.auth-panel .hint { color: var(--muted); }

/* Cabinet */
.shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.side {
  background: #14352c;
  color: #f6f1e7;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side .logo { color: white; }
.side nav { display: grid; gap: 6px; }
.nav-btn {
  text-align: left;
  color: #f6f1e7;
  background: transparent;
  border-color: transparent;
  border-radius: 12px;
}
.nav-btn.is-active, .nav-btn:hover { background: rgba(255, 255, 255, 0.08); }
.side .who { margin-top: auto; display: grid; gap: 8px; color: #d9d0c2; font-size: 14px; }
.workspace { padding: 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
h2 { margin: 0 0 14px; letter-spacing: -0.03em; }
h3 { margin: 18px 0 8px; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 14px;
  padding: 12px 14px 14px;
}
legend { padding: 0 6px; color: var(--muted); }
.modes, .checks { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.choice, .checks label, .check-line { display: flex; gap: 8px; align-items: center; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input[type="url"], input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="file"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 11px 12px;
}
textarea { min-height: 84px; resize: vertical; }
.hint, .sub { color: var(--muted); font-size: 13px; line-height: 1.45; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.wide { grid-column: 1 / -1; }
.span-2 { grid-column: span 2; }
.hidden { display: none; }
.row-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.status { min-height: 1.2em; }
.status.error { color: var(--danger); }
.bar { height: 8px; background: #efe8dc; border-radius: 999px; overflow: hidden; margin: 8px 0 14px; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
.log {
  background: #17211e;
  color: #e7f2ec;
  border-radius: 12px;
  min-height: 88px;
  max-height: 220px;
  overflow: auto;
  padding: 12px 14px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  white-space: pre-wrap;
}
.table-wrap { overflow: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 8px; }
th { font-size: 12px; color: var(--muted); font-weight: 500; }
.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; background: #efe8dc; display: block; margin-bottom: 4px; }
tr.low td { background: #fff6e8; }
.site {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
}
.job-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.empty { color: var(--muted); padding: 18px; text-align: center; background: #faf7f2; border-radius: 12px; }

.service-banner {
  margin: 8px 7vw 40px;
  padding: 28px 32px;
  border-radius: 28px;
  background: #fffdf8;
  border: 1px solid #e4d3b0;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.service-banner h2 { font-size: 28px; letter-spacing: -0.03em; margin: 0 0 8px; }
.service-banner p { margin: 0; color: var(--muted); line-height: 1.5; }
.service-actions { display: grid; gap: 10px; }
.btn-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(28, 25, 21, 0.04);
}
.btn-contact strong { display: block; color: var(--ink); }
.btn-contact small { color: var(--muted); font-weight: 500; }
.contact-whatsapp svg { color: #1f7a4d; }
.contact-telegram svg { color: #2a6f97; }
.contact-email svg { color: var(--gold); }
.link-quiet {
  justify-self: start;
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.lead-dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(460px, calc(100vw - 32px));
  box-shadow: var(--shadow);
}
.lead-dialog::backdrop { background: rgba(28, 25, 21, 0.45); }
.lead-panel { padding: 22px; display: grid; gap: 12px; background: var(--card); }

@media (max-width: 980px) {
  .hero, .steps, .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side nav { display: flex; flex-wrap: wrap; }
  .side .who { margin-top: 0; }
  .cta { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .span-2, .wide { grid-column: auto; }
  .workspace, .topbar, .hero, .section { padding-left: 16px; padding-right: 16px; }
  .cta, .service-banner { margin-left: 16px; margin-right: 16px; }
  .service-banner { grid-template-columns: 1fr; }
  .site-footer { padding-left: 16px; padding-right: 16px; }
  .price-grid { grid-template-columns: 1fr; }
}

body {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(228, 196, 138, 0.16), transparent 55%),
    var(--paper);
}
input, select, textarea { background: var(--field); }
button.ghost, .btn-ghost { background: transparent; }
.side { background: #0b0e13; }
.cta, .service-banner, .preview-card, .auth-panel, .step, .feature, .faq details {
  background: var(--card);
}
.cta { color: var(--ink); }
.cta p { color: var(--muted); }
.btn-primary, button.primary, .downloads a { color: #1a140c; }
.icon { background: rgba(228, 196, 138, 0.12); color: var(--gold); }
.pill { background: rgba(228, 196, 138, 0.16); color: var(--gold); }
.empty, tr.low td { background: #12161d; }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.price-card.popular { border-color: rgba(228, 196, 138, 0.7); box-shadow: 0 0 0 1px rgba(228, 196, 138, 0.35); }
.price { font-size: 32px; letter-spacing: -0.04em; margin: 0; }
.price span { font-size: 14px; color: var(--muted); }
.badge { margin: 0; color: #1a140c; background: var(--accent); border-radius: 999px; padding: 4px 8px; width: max-content; font-size: 12px; font-weight: 700; }
.legal { width: min(760px, calc(100% - 32px)); margin: 28px auto 48px; }
.legal h1 { letter-spacing: -0.04em; }
.upsell { border: 1px solid rgba(228, 196, 138, 0.45); border-radius: 16px; padding: 14px; margin: 12px 0; display: grid; gap: 10px; }
.brand-mark { display: block; }
