/* ==========================================================================
   AdSales — заявки для колл-центров и специалистов по эзотерике
   Тема: непрерывный тёмный "космический" холст, сквозная линия-нить
   ========================================================================== */

:root {
  --bg-0: #150a17;
  --bg-1: #1d0f21;
  --bg-2: #2a1530;
  --panel: rgba(244, 238, 233, 0.04);
  --panel-border: rgba(244, 238, 233, 0.10);
  --panel-border-strong: rgba(212, 167, 44, 0.35);

  --gold: #d4a72c;
  --gold-soft: rgba(212, 167, 44, 0.18);
  --rose: #e8447a;
  --rose-soft: rgba(232, 68, 122, 0.18);

  --text: #f5efe9;
  --text-muted: #c9bcc6;
  --text-soft: #8f7f8d;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1140px;
  --rail-x: 22px;

  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Ambient background glows (static, no scroll-jank) ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 88% 4%, rgba(212, 167, 44, 0.16), transparent 60%),
    radial-gradient(620px 480px at 6% 34%, rgba(232, 68, 122, 0.13), transparent 60%),
    radial-gradient(680px 520px at 92% 66%, rgba(212, 167, 44, 0.10), transparent 60%),
    radial-gradient(560px 460px at 10% 92%, rgba(232, 68, 122, 0.12), transparent 60%),
    var(--bg-0);
}

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

.section-title { font-size: clamp(26px, 4.4vw, 38px); max-width: 640px; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lede { color: var(--text-muted); font-size: 17px; max-width: 560px; }
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }

section { padding: 76px 0; position: relative; }
@media (max-width: 640px) { section { padding: 52px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #1a1006;
  box-shadow: 0 10px 28px rgba(212, 167, 44, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(212, 167, 44, 0.38); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-border-strong);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 10, 23, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}
.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
}
.brand .mark svg { width: 16px; height: 16px; color: #1a1006; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 20px; font-size: 14.5px; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch span,
.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 2px;
}
.lang-switch span[aria-current="page"] {
  color: var(--text);
  border-bottom: 1px solid var(--gold);
}
.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--text);
}
@media (max-width: 480px) {
  .lang-switch { font-size: 12px; gap: 4px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -18%;
  right: -14%;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, var(--rose) 55%, transparent 75%);
  opacity: 0.12;
  filter: blur(70px);
  pointer-events: none;
}
@media (min-width: 640px) {
  .hero-glow { width: min(560px, 50vw); height: min(560px, 50vw); filter: blur(90px); }
}
@media (min-width: 860px) {
  .hero-glow { width: min(680px, 42vw); height: min(680px, 42vw); top: -22%; right: -10%; filter: blur(110px); }
}
.hero-inner { position: relative; z-index: 1; max-width: 620px; }
.hero h1 {
  font-size: clamp(32px, 6vw, 54px);
  margin-top: 14px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Thread rail + nodes (connects the narrative sections) ---------- */
.thread-section {
  padding-left: calc(var(--rail-x) + 26px);
  border-left: none;
}
.thread-section::before {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-soft), var(--rose-soft) 60%, transparent);
}
.thread-section:first-of-type::before { background: linear-gradient(180deg, transparent, var(--gold-soft) 30%, var(--rose-soft) 90%); }
.thread-section:last-of-type::before { background: linear-gradient(180deg, var(--gold-soft), var(--rose-soft) 40%, transparent 85%); }

.thread-node {
  position: absolute;
  left: var(--rail-x);
  top: 78px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-1);
  border: 2px solid var(--panel-border-strong);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  z-index: 2;
}
.thread-section.is-visible .thread-node {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-soft), 0 0 24px rgba(212, 167, 44, 0.55);
}

@media (min-width: 860px) {
  :root { --rail-x: 8px; }
  .thread-section { padding-left: 56px; }
  .thread-section .container { padding-left: 0; }
}

/* ---------- Trust block ---------- */
.trust-block {
  max-width: 640px;
}
.trust-block h2 { font-size: clamp(24px, 3.4vw, 32px); }
.trust-block p { color: var(--text-muted); font-size: 17px; }

/* ---------- Benefit cards ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 600px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .benefits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.facet {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.benefit-card {
  padding: 26px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--panel-border-strong);
  background: rgba(244, 238, 233, 0.06);
}
.benefit-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-soft), var(--rose-soft));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.benefit-card .icon svg { width: 22px; height: 22px; }
.benefit-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.benefit-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .process-grid { grid-template-columns: 1fr; } }
.process-card { padding: 30px; }
.process-card .step-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--rose);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}
.process-card h3 { font-size: 20px; margin-bottom: 8px; }
.process-card p { color: var(--text-muted); font-size: 15px; }

.process-banner {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--panel-border-strong);
  padding: 44px 34px;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
}
.process-banner h3 { font-size: clamp(21px, 3vw, 28px); max-width: 680px; margin: 0 auto 12px; }
.process-banner p { color: var(--text-muted); font-size: 16px; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Examples ---------- */
.examples-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .examples-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.example-card { padding: 26px; }
.example-card .tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.example-card p { font-size: 15px; color: var(--text-muted); font-style: italic; }

/* ---------- About ---------- */
.about-copy p { color: var(--text-muted); font-size: 16px; max-width: 640px; }
.about-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; max-width: 640px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.about-list svg { width: 18px; height: 18px; color: var(--rose); flex-shrink: 0; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--panel-border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.faq-item summary .plus svg { width: 13px; height: 13px; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 32px 20px 4px; color: var(--text-muted); font-size: 15px; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; padding: 88px 0 100px; }
.cta-final h2 { font-size: clamp(26px, 4.4vw, 38px); }
.cta-final p { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 auto 28px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.error-inner { text-align: center; margin: 0 auto; }
.error-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(72px, 14vw, 140px);
  margin: 0 0 32px;
}
.error-inner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0; border-top: 1px solid var(--panel-border); }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-soft);
}
.site-footer a { text-decoration: none; color: var(--gold); font-weight: 600; }

/* ---------- Reveal ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.has-js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.has-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.fb-noscript-px { display: none; }

