/* SHOPSCRIPT AI — дизайн №1 «Dark-tech»
   Палитра меняется через токены ниже, без правки остального CSS. */

:root {
  --bg: #0B1220;
  --bg-alt: #0E1628;
  --surface: #131E33;
  --surface-border: #233252;
  --text: #E8EDF7;
  --text-muted: #97A4BC;
  --accent: #C6F432;
  --accent-dark: #0B1220;
  --radius: 14px;
  --font-main: "Segoe UI", "Inter", "Roboto", Arial, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

.accent { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.logo-accent { color: var(--accent); }

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

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--accent-dark) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { filter: brightness(1.08); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(198, 244, 50, 0.07), transparent),
    var(--bg);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid rgba(198, 244, 50, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.badge-outline {
  color: var(--text-muted);
  border-color: var(--surface-border);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero: двухколоночная сетка и мини-превью ---------- */

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero-preview {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 8px;
}

.hero-preview-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-preview-title { font-size: 1.05rem; margin-bottom: 14px; }

.hero-preview p + p { margin-top: 6px; }

.hero-preview .frame-voice,
.hero-preview .frame-text { color: var(--text-muted); font-size: 0.92rem; }

.hero-preview .timecode { margin-bottom: 10px; }

.hero-preview-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-preview-link:hover { filter: brightness(1.1); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: filter 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-dark); }
.btn-primary:hover { filter: brightness(1.08); }

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

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

/* ---------- Sections ---------- */

.section { padding: 88px 0; }

.section-alt { background: var(--bg-alt); }

.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }

.section-subtitle {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ---------- Польза ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
}

.card h3 { margin: 10px 0 12px; font-size: 1.15rem; }

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Пример сценария ---------- */

.script-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px;
}

.script-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.script-title { font-size: 1.35rem; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.script-meta {
  display: grid;
  gap: 20px;
  margin-bottom: 36px;
}

.script-meta dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.script-meta dd { margin: 0; }

.script-meta .hook {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.frames-title { font-size: 1.05rem; margin-bottom: 16px; }

.frames {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
}

.frame {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.frame p + p { margin-top: 6px; }

.frame-voice, .frame-text { color: var(--text-muted); font-size: 0.95rem; }

.frame-text strong, .frame-voice strong, .frame-visual strong { color: var(--text); }

.timecode {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(198, 244, 50, 0.08);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.script-rest {
  display: grid;
  gap: 24px;
  border-top: 1px solid var(--surface-border);
  padding-top: 28px;
}

.script-rest h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.script-rest p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Пример: раскрывающийся блок полного сценария ---------- */

.script-details {
  border-top: 1px solid var(--surface-border);
  padding-top: 20px;
}

.script-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}

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

.script-details summary::before {
  content: "+";
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-mono);
  transition: transform 0.15s ease;
}

.script-details[open] summary::before { transform: rotate(45deg); }

.script-details .script-rest {
  border-top: 0;
  padding-top: 20px;
  margin-top: 16px;
}

/* ---------- Доверие ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.trust-item {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
}

.trust-item h3 { font-size: 1.05rem; margin-bottom: 10px; }

.trust-item h3::before {
  content: "— ";
  color: var(--accent);
}

.trust-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA-band ---------- */

.cta-band {
  background: var(--accent);
  color: var(--accent-dark);
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-inner h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }

.cta-band .btn-primary {
  background: var(--accent-dark);
  color: var(--accent);
}

.cta-band .btn-primary:hover { filter: brightness(1.2); }

/* ---------- Контакты ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 700px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.contact-placeholder {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.contact-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Адаптив: мобильное меню ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }

  .hero-preview { margin-top: 0; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--surface-border);
    padding: 12px 16px 20px;
    display: none;
  }

  .nav.open { display: flex; }

  .nav a { padding: 10px 0; width: 100%; }

  .nav-cta { margin-top: 8px; }

  .hero { padding: 64px 0 56px; }

  .section { padding: 64px 0; }

  .script-card { padding: 22px 16px; }
}
