/* Визуальная система st8dom.ru: тёмная тема, Inter + JetBrains Mono. */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #0b0f1a;
  --bg2: #111827;
  --bg3: #1a2235;
  --accent: #3b82f6;
  --accent2: #818cf8;
  --green: #34d399;
  --orange: #f59e0b;
  --text: #e2e8f0;
  --muted: #64748b;
  --border: #1e2d45;
  --card: #131c2e;
  --danger: #f87171;
  --focus: #93c5fd;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 200;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container--wide {
  max-width: 1080px;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.nav-logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent2);
  text-decoration: none;
  display: grid;
  line-height: 1.15;
  gap: 3px;
  flex-shrink: 0;
}

.nav-logo strong {
  color: var(--text);
  font-size: 13px;
}

.nav-logo span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  color: var(--orange) !important;
}

/* HERO */
.hero {
  padding: 80px 0 64px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.eyebrow::before {
  content: "> ";
  opacity: 0.5;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #e2e8f0 0%, #818cf8 76%, #f59e0b 118%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: #8fa0ba;
  max-width: 560px;
  margin-bottom: 20px;
  line-height: 1.75;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.trust-line {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  font-family: "JetBrains Mono", monospace;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.avatar-wrap {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#avatarCanvas,
.avatar-img {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 200px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 28px rgba(59, 130, 246, 0.65))
    drop-shadow(0 0 8px rgba(129, 140, 248, 0.5))
    drop-shadow(0 4px 32px rgba(0, 0, 0, 0.7));
}

.avatar-status {
  position: absolute;
  bottom: 18px;
  right: 14px;
  z-index: 3;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

.btn-tg {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
}

.btn-tg:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

.btn-sm {
  padding: 8px 14px;
  min-height: 40px;
  font-size: 13px;
}

/* SECTIONS */
section.s {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.s-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.s-label span {
  color: var(--accent);
  margin-right: 8px;
}

.s h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 640px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p,
.card li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.card-pain {
  font-size: 12px;
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.card-meta {
  margin: 12px 0;
  padding: 0 0 0 16px;
}

.card-cta {
  margin-top: 16px;
}

.benefit-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 6px;
  font-family: "JetBrains Mono", monospace;
}

/* PROCESS */
.process {
  display: grid;
  gap: 12px;
}

.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.process-num {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent2);
  font-size: 22px;
  font-weight: 700;
}

.process-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.process-item p {
  color: var(--muted);
  font-size: 14px;
}

/* PROJECTS */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: start;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.project-thumb {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.project-status {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: var(--green);
  margin-top: 8px;
}

.badge {
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.badge-ai {
  background: rgba(129, 140, 248, 0.15);
  color: var(--accent2);
}

.badge-py {
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
}

.badge-bot {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
}

.badge-rag {
  background: rgba(251, 146, 60, 0.12);
  color: var(--orange);
}

.tag {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  background: var(--bg3);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 4px;
}

.arrow {
  color: var(--muted);
  font-size: 18px;
  margin-top: 2px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}

.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--accent2);
  color: var(--text);
}

.case-hidden {
  display: none !important;
}

/* TRUST / STACK */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.trust-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--muted);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.stack-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* PRICING / FORMATS */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card--popular {
  border-color: var(--orange);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.08);
}

.price-card--popular::before {
  content: "Частый старт";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #0b0f1a;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 20px;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
}

.price-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  margin: 12px 0;
  font-family: "JetBrains Mono", monospace;
}

.price-card ul {
  margin: 0 0 16px 16px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.price-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.pricing-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  font-style: italic;
}

@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 16px;
}

/* ABOUT */
.about-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* CTA / CONTACT */
.cta-block {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(129, 140, 248, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.cta-block h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-block p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 16px;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.contact-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
  min-height: 72px;
}

.contact-item:hover {
  border-color: var(--accent2);
}

.contact-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
}

/* FORMS */
.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}

.req {
  color: var(--orange);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  min-height: 44px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field .error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}

.consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.form-status {
  font-size: 14px;
  color: var(--muted);
}

.flash {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.flash-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.flash-error,
.flash-danger {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.flash-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* CASE DETAIL */
.case-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.case-cover {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.case-cover img {
  width: 100%;
  display: block;
}

.case-video {
  margin: 8px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #05070d;
}

.case-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
}

.case-video-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

/* FAQ demo reel */
.faq-demo {
  border-top: 1px solid var(--border);
}

.faq-demo__lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 62ch;
  margin-bottom: 16px;
}

.faq-reel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #05070d;
  overflow: hidden;
}

.faq-reel:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.faq-reel__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0f1a;
  overflow: hidden;
}

.faq-reel__poster,
.faq-reel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faq-reel__storyboard {
  position: absolute;
  inset: 0;
  padding: clamp(16px, 4vw, 40px);
}

.faq-scene {
  display: none;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.faq-scene.is-active {
  display: flex;
}

.faq-scene__kicker {
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-scene__title {
  color: #fff;
  font-size: clamp(20px, 3.4vw, 36px);
  line-height: 1.25;
  max-width: 18ch;
}

.faq-scene__sub,
.faq-scene__sign {
  color: #cbd5e1;
  font-size: 15px;
}

.faq-scene__cta {
  display: inline-flex;
  align-self: flex-start;
  background: var(--orange);
  color: #111827;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
}

.faq-inbox,
.faq-features,
.faq-results {
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.faq-inbox li,
.faq-features li,
.faq-results li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

.faq-inbox span {
  display: inline-block;
  margin-right: 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
}

.faq-features strong {
  display: block;
  color: #fff;
}

.faq-features span {
  color: var(--muted);
}

.faq-results li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.faq-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

.faq-chat__meta,
.faq-chat__note {
  color: #94a3b8;
  font-size: 12px;
}

.faq-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.faq-bubble--user {
  align-self: flex-start;
  background: #1a2235;
  color: #e2e8f0;
  border: 1px solid var(--border);
}

.faq-bubble--bot {
  align-self: flex-end;
  background: #1e3a8a;
  color: #fff;
}

.faq-reel__captions {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(11, 15, 26, 0.82);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.faq-reel__captions:empty {
  display: none;
}

.faq-reel__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #111827;
  border-top: 1px solid var(--border);
}

.faq-reel__btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.faq-reel__btn:hover,
.faq-reel__btn.is-active {
  border-color: var(--orange);
  color: #fff;
}

.faq-reel__time {
  margin-left: auto;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.faq-reel__progress {
  height: 4px;
  background: #1e2d45;
}

.faq-reel__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.faq-transcript {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--card);
}

.faq-transcript summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-transcript__body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.faq-transcript__body ol {
  margin: 8px 0 0 18px;
}

.faq-demo__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 720px) {
  .faq-reel__viewport {
    min-height: 280px;
  }

  .faq-scene__title {
    max-width: none;
  }

  .faq-reel__time {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 320px) {
  .faq-reel__btn {
    flex: 1 1 calc(50% - 8px);
  }
}

.prose h2 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 15px;
}

.prose ul {
  margin-left: 18px;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ADMIN */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th,
table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data th {
  color: var(--muted);
  font-weight: 600;
  background: var(--bg2);
}

table.data tr.is-unread td {
  background: rgba(129, 140, 248, 0.06);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.login-box {
  max-width: 420px;
  margin: 64px auto;
}

/* LEGAL */
.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal h2 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.notice {
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--orange);
  font-size: 13px;
  margin-bottom: 24px;
}

/* FOOTER */
footer.foot {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}

footer.foot p,
footer.foot a {
  font-size: 13px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  text-decoration: none;
}

footer.foot span {
  color: var(--accent2);
}

.foot-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 26, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-inner,
  .case-hero,
  .form-row,
  .project-card {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 28px;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .eyebrow {
    letter-spacing: 0.06em;
  }

  .hero-text {
    min-width: 0;
    width: 100%;
  }

  .avatar-wrap {
    width: 160px;
    height: 160px;
  }

  #avatarCanvas,
  .avatar-img {
    width: 140px;
    height: 140px;
  }

  .cta-block {
    padding: 32px 20px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .project-thumb {
    width: 100%;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

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

.site-chat {
  position: relative;
  z-index: 120;
}

body:has(.site-chat) .foot {
  padding-bottom: 88px;
}

.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--bg2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35), 0 0 0 2px var(--orange);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(59, 130, 246, 0.42), 0 0 0 2px var(--orange);
}

.chat-launcher-mascot {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.08);
  object-position: center;
}

.chat-launcher.is-hidden {
  display: none;
}

.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 480px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.chat-widget[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(245, 158, 11, 0.1), var(--bg2));
  border-bottom: 1px solid var(--border);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg);
  color: #0b0f1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  border: 1px solid var(--orange);
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  object-position: center;
}

.chat-title {
  font-size: 14px;
  font-weight: 600;
}

.chat-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.chat-close {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.chat-close:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.06), transparent);
}

.chat-message {
  max-width: 86%;
  border-radius: 14px;
  padding: 8px 11px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-message-text {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-message.user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message.bot {
  margin-right: auto;
  background: rgba(11, 15, 26, 0.72);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.chat-input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
}

.chat-input::placeholder {
  color: var(--muted);
}

.chat-send {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chat-send:disabled {
  opacity: 0.6;
  cursor: default;
}

.typing-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 16px;
}

.typing-indicator .dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted);
  animation: chat-blink 1s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (max-width: 720px) {
  .chat-launcher,
  .chat-widget {
    right: 12px;
  }

  .chat-launcher {
    bottom: 12px;
  }

  .chat-widget {
    bottom: 76px;
    height: min(520px, calc(100vh - 96px));
  }
}
