﻿/* styles.css — Audit-Kuzya, clean rebuild */
:root {
  --bg: #151e29;
  --bg-soft: #1a2633;
  --panel: #202e3d;
  --panel-light: #263749;

  --text: #f3f7fc;
  --muted: #a9b7c7;
  --line: rgba(190, 214, 238, .18);
  --line-bright: rgba(190, 214, 238, .32);

  --blue: #8bc6ff;
  --blue-bright: #56adff;
  --green: #83dfc1;
  --red: #ff837f;

  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 78% 8%, rgba(71, 143, 205, .14), transparent 28rem),
    radial-gradient(circle at 8% 55%, rgba(67, 116, 157, .10), transparent 30rem),
    var(--bg);
  position: relative;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin: 0 auto; }

/* AI background layer */
.ai-background {
  position: absolute;
  z-index: 0;
  top: 0; right: 0; left: 0;
  height: 1050px;
  overflow: hidden;
  pointer-events: none;
  opacity: .72;
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
}
.ai-background svg { width: 100%; height: 100%; display: block; }
body > *:not(.ai-background) { position: relative; z-index: 1; }

/* Header */
.header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 30, 41, .88);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-dash { color: var(--blue); }
.brand-mark {
  display: flex;
  width: 28px; height: 28px;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(140, 198, 255, .38);
  border-radius: 8px;
  background: rgba(86, 173, 255, .10);
}
.brand-mark i { display: block; width: 3px; border-radius: 2px; background: var(--blue); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 10px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: #b4c0cf; font-size: 14px; transition: color .2s; }
.nav a:hover, .footer-col a:hover { color: var(--blue); }

.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { height: 1px; width: 100%; background: var(--text); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav.is-open { display: flex; }

/* Buttons */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: .2s ease;
  cursor: pointer;
}
.button span { font-size: 15px; }
.button-primary { border-color: var(--blue); color: #07111c; background: var(--blue); }
.button-primary:hover { border-color: #a1d0ff; background: #a1d0ff; transform: translateY(-1px); box-shadow: 0 0 24px rgba(86,173,255,.16); }
.button-outline, .button-quiet, .button-header {
  border-color: var(--line-bright);
  color: var(--text);
  background: transparent;
}
.button-outline:hover, .button-quiet:hover, .button-header:hover { border-color: var(--blue); color: var(--blue); }
.button-header { min-height: 39px; padding: 0 14px; font-size: 13px; }

/* Hero */
.hero {
  position: relative;
  min-height: 700px;
  padding: 104px 0 92px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 60px;
}
.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pulse, .live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
h1 {
  margin: 23px 0 22px;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h1 span, .contact-copy h2 span, .split-heading h2 span { color: var(--blue); }
.hero-lead {
  max-width: 620px;
  margin: 0;
  color: #c0ccd9;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.hero-proof {
  display: flex; align-items: center; gap: 11px;
  margin-top: 31px; color: #8f9bab; font-size: 13px;
}
.proof-line { width: 28px; height: 1px; background: var(--blue); }
.metrics {
  display: flex; gap: 33px; margin-top: 42px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric strong { font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.metric strong span { color: var(--blue); font-size: 12px; letter-spacing: 0; }
.metric small { color: var(--muted); font-size: 12px; }
.hero-index {
  position: absolute;
  right: max(28px, calc((100% - var(--wrap)) / 2));
  bottom: 24px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
}
.hero-index span { color: #5e6c7e; }

/* Analysis stage */
.analysis-stage {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: linear-gradient(145deg, #1b2938, #131e2b);
  box-shadow: 0 24px 70px rgba(0,0,0,.20), 0 0 70px rgba(82,165,225,.06);
}
.stage-topline, .audio-head, .report-head, .report-foot, .report-visual-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mono { color: #738195; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.live { display: inline-flex; align-items: center; gap: 7px; color: #8e9aab; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.live i { width: 5px; height: 5px; }
.glass { border: 1px solid var(--line); border-radius: 7px; background: rgba(27,39,53,.88); }
.audio-card { margin-top: 22px; padding: 16px; }
.audio-label { display: flex; align-items: center; gap: 10px; }
.audio-icon {
  display: grid; width: 31px; height: 31px; place-items: center;
  border: 1px solid rgba(140,198,255,.25); border-radius: 6px;
  color: var(--blue); background: rgba(86,173,255,.10);
}
.audio-label b { display: block; font-size: 11px; font-weight: 600; }
.audio-label small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.audio-time { color: var(--blue); font-family: var(--mono); font-size: 11px; }
.waveform {
  height: 46px; display: flex; align-items: center; justify-content: space-between;
  gap: 3px; margin: 14px 0 8px;
}
.waveform i {
  width: 2px; height: var(--h, 18px); border-radius: 5px;
  background: linear-gradient(var(--blue), rgba(86,173,255,.3)); opacity: .8;
}
.waveform i:nth-child(3n) { --h: 29px; }
.waveform i:nth-child(4n) { --h: 12px; }
.waveform i:nth-child(5n) { --h: 37px; }
.waveform i:nth-child(7n) { --h: 24px; }
.waveform i:nth-child(11n) { --h: 40px; }
.processing {
  display: flex; align-items: center; gap: 7px;
  padding-top: 9px; border-top: 1px solid var(--line);
  color: #98a4b3; font-size: 11px;
}
.processing .mono { margin-left: auto; color: var(--green); font-size: 10px; }
.processing-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.connector { position: relative; height: 33px; display: grid; place-items: center; }
.connector::before { position: absolute; width: 1px; height: 100%; background: linear-gradient(transparent, var(--blue), transparent); content: ""; }
.connector span {
  z-index: 1; display: grid; width: 25px; height: 25px; place-items: center;
  border: 1px solid rgba(140,198,255,.38); border-radius: 50%;
  color: var(--blue); background: #0d1420; font-family: var(--mono); font-size: 9px;
  box-shadow: 0 0 20px rgba(86,173,255,.2);
}
.report-card { padding: 17px; }
.report-head h2 { margin: 5px 0 0; font-size: 15px; font-weight: 600; }
.score { display: flex; align-items: baseline; gap: 4px; }
.score strong { color: var(--green); font-size: 30px; font-weight: 700; letter-spacing: -.04em; }
.score span { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.report-meter { height: 3px; margin: 13px 0; background: #25303d; }
.report-meter span { display: block; width: 84%; height: 100%; background: linear-gradient(90deg, var(--blue-bright), var(--green)); box-shadow: 0 0 12px rgba(86,173,255,.35); }
.report-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: #aab5c4; font-size: 12px; }
.report-row b { color: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 400; }
.quote-box { margin-top: 11px; padding: 10px 12px; border-left: 2px solid var(--blue); background: rgba(86,173,255,.06); }
.quote-tag { color: var(--blue); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.quote-box p { margin: 5px 0 0; color: #c4cfdd; font-size: 11px; }
.report-foot { margin-top: 12px; }
.status-ok { color: var(--green); font-size: 11px; }
.status-ok i { margin-right: 4px; font-style: normal; }
.stage-caption { margin-top: 13px; text-align: right; font-size: 10px; }

/* Sections */
.section { padding: 118px 0; border-bottom: 1px solid var(--line); }
.section-top { display: flex; align-items: center; gap: 19px; margin-bottom: 28px; }
.section-index { color: #5e6c7e; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.split-heading {
  display: grid;
  grid-template-columns: 1fr .48fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}
.split-heading h2, .report-copy h2, .faq-intro h2 {
  margin: 0;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.muted-text { color: #7f8da3; }
.split-heading > p, .report-copy > p, .faq-intro > p, .contact-copy > p {
  max-width: 420px; margin: 0 0 5px;
  color: #a9b7c7; font-size: 15px; line-height: 1.75;
}

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.problem-card { position: relative; min-height: 242px; padding: 28px; }
.problem-card + .problem-card { border-left: 1px solid var(--line); }
.card-number { color: #738195; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.problem-value, .problem-symbol {
  height: 79px; display: flex; align-items: center;
  color: var(--blue); font-size: 55px; font-weight: 500; letter-spacing: -.04em;
}
.problem-value span { align-self: center; margin: 14px 0 0 6px; color: #738195; font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.problem-symbol { font-size: 47px; }
.problem-card h3 { margin: 4px 0 8px; font-size: 17px; font-weight: 600; }
.problem-card p, .feature p, .audience-card p {
  max-width: 330px; margin: 0;
  color: #a9b7c7; font-size: 14px; line-height: 1.85;
}

/* Process */
.process-section { background: rgba(24, 35, 47, .84); }
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); }
.process-step {
  position: relative; min-height: 205px;
  padding: 20px 24px 20px 0;
  border-top: 1px solid var(--line-bright);
}
.step-no { color: var(--blue); font-family: var(--mono); font-size: 11px; }
.step-symbol { margin: 20px 0 10px; color: var(--blue); font-size: 26px; }
.process-step h3 { margin: 0 0 7px; font-size: 15px; font-weight: 600; }
.process-step p { max-width: 220px; margin: 0; color: #a9b7c7; font-size: 13px; line-height: 1.8; }
.step-line { position: absolute; top: -1px; right: 22px; width: 34px; height: 1px; background: var(--blue); opacity: .65; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.feature {
  position: relative; min-height: 185px; padding: 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.feature:hover { background: rgba(140,198,255,.04); }
.feature-icon { color: var(--blue); font-family: var(--mono); font-size: 11px; }
.feature-icon.icon-red { color: var(--red); }
.feature h3 { margin: 26px 0 8px; font-size: 15px; font-weight: 600; }
.feature p { max-width: 300px; }
.feature-arrow { position: absolute; top: 20px; right: 22px; color: #607086; font-size: 16px; }

/* Report */
.report-section { background: rgba(24, 35, 47, .84); }
.report-layout { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 90px; }
.report-visual {
  border: 1px solid var(--line-bright);
  background: linear-gradient(140deg, #1b2938, #131e2b);
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
}
.report-visual-head { min-height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.preview-body { padding: 24px; }
.preview-score { display: flex; align-items: center; justify-content: space-between; }
.preview-score > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.preview-score strong { font-size: 42px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.preview-score strong span { margin-left: 5px; color: #738195; font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.score-ring {
  display: grid; width: 70px; height: 70px; place-items: center;
  border: 3px solid rgba(140,198,255,.22);
  border-top-color: var(--blue); border-right-color: var(--green);
  border-radius: 50%;
}
.score-ring span { font-family: var(--mono); font-size: 15px; }
.score-ring small { color: var(--blue); font-size: 9px; }
.preview-divider { height: 1px; margin: 20px 0 13px; background: var(--line); }
.preview-param {
  display: grid; grid-template-columns: 1fr 1.2fr 28px;
  align-items: center; gap: 12px; margin: 11px 0;
  color: #aab5c4; font-size: 12px;
}
.preview-param > div { height: 3px; background: #25303d; }
.preview-param i { display: block; width: var(--value); height: 100%; background: linear-gradient(90deg, var(--blue-bright), var(--green)); }
.preview-param b { color: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 400; text-align: right; }
.preview-quote { margin-top: 21px; padding: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.preview-quote p { margin: 8px 0; color: #d3dce7; font-size: 12px; }
.preview-quote > .mono { font-size: 9px; }
.preview-foot { padding: 10px 18px; border-top: 1px solid var(--line); text-align: right; font-size: 9px; color: #738195; font-family: var(--mono); }
.report-copy .section-top { margin-bottom: 23px; }
.report-copy h2 { margin-bottom: 16px; }
.check-list { display: grid; gap: 12px; margin: 25px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 21px; color: #abb7c6; font-size: 13px; }
.check-list li::before { position: absolute; left: 0; color: var(--green); content: "↗"; }
.inline-link { display: inline-flex; gap: 18px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid rgba(140,198,255,.45); color: var(--blue); font-size: 12px; }
.inline-link span { font-size: 15px; }

/* Audience */
.audience-section { background: rgba(24, 35, 47, .84); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.audience-card { position: relative; min-height: 185px; padding: 24px; }
.audience-card + .audience-card { border-left: 1px solid var(--line); }
.audience-card > .mono { color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.audience-card h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; }
.audience-mark { position: absolute; top: 20px; right: 22px; color: #637286; font-size: 16px; }
.audience-card-featured { background: linear-gradient(140deg, rgba(86,173,255,.08), transparent 75%); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; border: 1px solid var(--line); }
.price-card {
  position: relative; display: flex; flex-direction: column;
  min-height: 355px; padding: 26px;
}
.price-card + .price-card { border-left: 1px solid var(--line); }
.price-card-main { background: linear-gradient(145deg, rgba(86,173,255,.10), rgba(86,173,255,.015) 70%); }
.popular-label {
  position: absolute; top: 0; right: 18px;
  padding: 5px 8px; color: #07111c; background: var(--blue);
  font-family: var(--mono); font-size: 7px; letter-spacing: .05em;
}
.plan-label { color: #718094; font-family: var(--mono); font-size: 9px; }
.price-card h3 { margin: 28px 0 7px; font-size: 18px; font-weight: 600; }
.price { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.price small { color: #8190a2; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.price-onrequest { font-size: 24px; }
.plan-description { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.price-rule { height: 1px; margin: 20px 0 12px; background: var(--line); }
.price-card ul { display: grid; gap: 9px; margin: 0 0 20px; padding: 0; list-style: none; flex: 1; }
.price-card li { color: #aab5c4; font-size: 12px; }
.price-card li::before { margin-right: 8px; color: var(--green); content: "＋"; }
.price-card .button { width: 100%; min-height: 44px; font-size: 12px; }
.pricing-note {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 12px;
}
.pricing-note span { color: var(--green); font-size: 18px; }

/* FAQ */
.faq-section { background: rgba(24, 35, 47, .84); }
.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.faq-intro .section-top { display: block; }
.faq-intro .section-index { display: block; margin-bottom: 15px; }
.faq-intro .eyebrow { margin-bottom: 15px; }
.faq-intro h2 { margin-bottom: 16px; font-size: clamp(36px, 3.4vw, 52px); }
.faq-intro > p { margin-bottom: 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-question {
  display: flex; width: 100%; min-height: 64px;
  align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px 2px; border: 0; color: #dce4ee; background: transparent;
  text-align: left; font-size: 14px; font-weight: 600; cursor: pointer;
}
.faq-question > span { position: relative; width: 17px; height: 17px; flex: 0 0 17px; }
.faq-question > span::before, .faq-question > span::after {
  position: absolute; top: 8px; left: 2px; width: 13px; height: 1px;
  background: var(--blue); content: ""; transition: transform .2s;
}
.faq-question > span::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] > span::after { transform: rotate(0); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-answer p { overflow: hidden; margin: 0; color: #a9b7c7; font-size: 13px; line-height: 1.75; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer p { padding: 0 35px 17px 2px; }

/* Contact */
.contact-section {
  padding: 100px 0; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 10% 50%, rgba(74,148,208,.16), transparent 28rem), #1d2b3a;
}
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 80px; }
.contact-copy .eyebrow { margin-bottom: 20px; }
.contact-copy h2 {
  margin: 0 0 21px;
  font-size: clamp(38px, 4.3vw, 56px);
  line-height: 1.12; letter-spacing: -.025em; font-weight: 700;
}
.contact-copy > p { max-width: 365px; color: #a9b7c7; font-size: 14px; }
.contact-note {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 340px; margin-top: 33px; padding-top: 17px;
  border-top: 1px solid var(--line); color: #a3afbd; font-size: 12px;
}
.contact-note > span:first-child { color: var(--blue); font-size: 18px; }
.lead-form {
  padding: 27px;
  border: 1px solid var(--line-bright);
  background: rgba(27,39,53,.88);
}
.form-heading { display: flex; flex-direction: column; gap: 7px; margin-bottom: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.form-heading .mono { color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.form-heading strong { font-size: 18px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field > span { color: #b5c0ce; font-size: 12px; }
.field > span i { color: var(--blue); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 13px;
  outline: none; border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); background: #0d1420; font-size: 14px; transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #596779; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(140,198,255,.7); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field small { color: var(--red); font-size: 11px; }
.consent { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; color: #909dad; font-size: 12px; line-height: 1.6; }
.consent input { margin: 2px 0 0; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: underline; }
.consent-error { color: var(--red); font-size: 11px; }
.submit-button { width: 100%; margin-top: 13px; }
.submit-button:disabled { opacity: .65; cursor: wait; }
.form-status { min-height: 17px; margin: 9px 0 0; color: var(--green); text-align: center; font-size: 12px; }
.form-status.is-error { color: var(--red); }

/* Footer */
.footer { padding: 48px 0 19px; background: #121b25; }
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 27px; padding-bottom: 39px;
}
.footer-brand p { max-width: 220px; margin: 12px 0 0; color: #718094; font-size: 10px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-col h2 { margin: 0 0 4px; color: #dce4ee; font-size: 10px; font-weight: 600; }
.footer-col a { color: #778496; font-size: 11px; transition: color .2s; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--line);
  color: #677487; font-size: 9px;
}
.footer-bottom .mono { font-size: 8px; }
.footer-bottom a:hover { color: var(--blue); }

/* =========================================================
   AI-чат (помощник 24/7)
   ========================================================= */
.ai-chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line-bright);
  border-radius: 50px;
  color: var(--text);
  background: linear-gradient(140deg, #1a2938, #101722);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.30), 0 0 0 1px rgba(140,198,255,.05) inset;
  transition: transform .2s, box-shadow .2s;
}
.ai-chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,.40), 0 0 24px rgba(86,173,255,.20); }
.ai-chat-toggle[aria-expanded="true"] { box-shadow: 0 12px 40px rgba(0,0,0,.40), 0 0 24px rgba(86,173,255,.25); }
.ai-chat-icon { color: var(--blue); font-size: 16px; }

.ai-chat-window {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 998;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: linear-gradient(180deg, #1a2633, #101722);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease;
  overflow: hidden;
}
.ai-chat-window.ai-chat-open { transform: translateY(0); opacity: 1; visibility: visible; }

.ai-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(12,18,27,.60);
}
.ai-chat-title { display: flex; align-items: center; gap: 10px; }
.ai-chat-title strong { font-size: 14px; font-weight: 600; }
.ai-chat-title small { display: block; color: var(--green); font-size: 10px; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.ai-chat-close {
  width: 30px; height: 30px; border: 0; background: transparent;
  color: #8e9aab; font-size: 22px; line-height: 1; cursor: pointer;
}
.ai-chat-close:hover { color: var(--red); }

.ai-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.55; word-wrap: break-word; }
.ai-msg.user { align-self: flex-end; background: var(--blue); color: #07111c; border-bottom-right-radius: 3px; }
.ai-msg.bot { align-self: flex-start; background: rgba(32,46,61,.95); color: #dce4ee; border-bottom-left-radius: 3px; border: 1px solid var(--line); }
.ai-typing { display: inline-flex; gap: 4px; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: ai-blink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; }
.ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes ai-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.ai-chat-quick { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); background: rgba(12,18,27,.55); flex-wrap: wrap; }
.ai-quick { flex: 1; min-width: 45%; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: #a9b7c7; font-size: 11px; cursor: pointer; transition: .2s; }
.ai-quick:hover { border-color: var(--blue); color: var(--blue); }
.ai-confirm { flex: 1; min-width: 45%; padding: 8px 6px; border: 1px solid var(--green); border-radius: 8px; background: rgba(131,223,193,.10); color: var(--green); font-size: 11px; cursor: pointer; }

.ai-chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(12,18,27,.60); }
.ai-chat-form input { flex: 1; min-height: 42px; padding: 0 13px; outline: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #0a1018; font-size: 13px; }
.ai-chat-form input::placeholder { color: #596779; }
.ai-chat-form input:focus { border-color: rgba(140,198,255,.6); }
.ai-chat-form button { width: 42px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue); color: #07111c; font-size: 16px; cursor: pointer; }
.ai-chat-form button:disabled { opacity: .5; cursor: default; }

@media (max-width: 700px) {
  .ai-chat-toggle { right: 16px; bottom: 16px; min-height: 52px; padding: 0 14px; font-size: 13px; }
  .ai-chat-toggle span:last-child { display: none; }
  .ai-chat-toggle .ai-chat-icon { font-size: 18px; }
  .ai-chat-window { right: 16px; bottom: 80px; width: calc(100vw - 32px); height: min(520px, calc(100vh - 110px)); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-window { transition: none; }
  .ai-typing i { animation: none; opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-layout, .report-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr !important; gap: 48px; }
  .split-heading { grid-template-columns: 1fr !important; gap: 20px; }
  .split-heading > p { max-width: 680px; }
  h1 { font-size: clamp(44px, 8vw, 64px) !important; }
  .metrics { gap: 17px; }
  .metric strong { font-size: 22px; }
  .metric small { font-size: 12px; }
  .process-track { grid-template-columns: repeat(2, 1fr) !important; gap: 28px; }
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .problem-grid, .audience-grid, .pricing-grid { grid-template-columns: 1fr !important; }
  .problem-card + .problem-card, .audience-card + .audience-card, .price-card + .price-card {
    border-left: 0; border-top: 1px solid var(--line);
  }
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 68px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 72px; gap: 12px; }
  .brand { font-size: 17px; }
  .button-header { min-height: 35px; padding: 0 11px; font-size: 12px; }
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 71px; right: 0; left: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 15px; border-bottom: 1px solid var(--line);
    background: rgba(21,30,41,.96);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 72px; }
  .hero-layout, .report-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr !important; gap: 32px; }
  h1 { font-size: clamp(40px, 12vw, 52px) !important; line-height: 1.08 !important; }
  .hero-lead { font-size: 17px !important; }
  .split-heading h2, .report-copy h2, .faq-intro h2, .contact-copy h2 {
    font-size: clamp(34px, 10vw, 46px) !important; line-height: 1.12 !important;
  }
  .section-top { flex-wrap: wrap; gap: 10px; }
  .metrics { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .metric strong { font-size: 28px; }
  .metric small { max-width: none; font-size: 14px; }
  .process-track { grid-template-columns: 1fr !important; gap: 0; }
  .process-step { min-height: auto; padding: 28px 0; border-top: 1px solid var(--line-bright); }
  .features-grid { grid-template-columns: 1fr !important; }
  .feature { min-height: auto; padding: 26px 22px; }
  .problem-card, .audience-card, .price-card { min-height: auto; padding: 28px 22px; }
  .problem-value, .problem-symbol { height: auto; margin: 28px 0 12px; font-size: 56px; }
  .report-visual { overflow-x: hidden; }
  .preview-score { align-items: flex-start; gap: 22px; }
  .preview-score strong { font-size: 44px !important; }
  .preview-param { grid-template-columns: 1fr !important; gap: 8px; margin: 18px 0; font-size: 11px; }
  .preview-param b { text-align: left; }
  .form-row { grid-template-columns: 1fr !important; gap: 0; }
  .lead-form { padding: 24px 18px; }
  .button { width: 100%; min-height: 54px; font-size: 15px !important; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .nav a { font-size: 15px !important; }
  .ai-background { height: 820px; opacity: .42; }
  .ai-background text { display: none; }
  .ai-background g:nth-of-type(3) { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 25px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom .mono { display: none; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 26px); }
  h1 { font-size: 38px !important; }
  .split-heading h2, .report-copy h2, .faq-intro h2, .contact-copy h2 { font-size: 32px !important; }
  .hero-lead { font-size: 16px !important; }
  .analysis-stage { padding: 14px; }
  .report-card, .audio-card { padding: 14px; }
  .stage-topline, .audio-head, .report-head, .report-foot, .report-visual-head {
    align-items: flex-start; flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}