:root {
  --bg: #0f1317;
  --panel: #171d22;
  --panel-2: #1d252b;
  --text: #f3f7f5;
  --muted: #a9b5b1;
  --line: #2d3940;
  --green: #3dff74;
  --green-rgb: 61, 255, 116;
  --amber: #f4b540;
  --blue: #4fb7ff;
  --red: #ff6262;
  --white-soft: #e6ebe8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

.section-intro {
  max-width: 820px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.specializations {
  background: #12181c;
}

.specialization-group + .specialization-group {
  margin-top: 48px;
}

.specialization-group > h3 {
  margin-bottom: 18px;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  text-transform: uppercase;
}

.specialization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.specialization-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.specialization-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--green-rgb), .55);
  background: var(--panel-2);
}

.specialization-card strong,
.specialization-card span {
  display: block;
}

.specialization-card strong {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 17px;
}

.specialization-card span {
  color: var(--muted);
  font-size: 14px;
}

.detail-hero {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 8vw, 120px);
  background: radial-gradient(circle at 80% 20%, rgba(var(--green-rgb), .12), transparent 30%), var(--bg);
  border-bottom: 1px solid var(--line);
}

.detail-hero h1 {
  max-width: 1050px;
}

.detail-hero .lead {
  max-width: 850px;
}

.breadcrumbs {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--green);
}

.detail-section {
  background: #12181c;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-grid a {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 700;
}

.related-grid a:hover {
  border-color: var(--green);
}

body.modal-open {
  overflow: hidden;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 10, .82);
  backdrop-filter: blur(8px);
}

.lead-modal-panel {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(var(--green-rgb), .4);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lead-modal-panel h2 {
  margin-bottom: 28px;
  font-size: clamp(22px, calc(4vw - 2px), 34px);
}

.lead-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lead-modal-close:hover {
  color: var(--text);
}

.lead-form {
  display: grid;
  gap: 16px;
}

.lead-form label {
  color: var(--white-soft);
  font-weight: 700;
}

.lead-form label span {
  color: var(--red);
}

.lead-form input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #0f1418;
  color: var(--text);
  font: inherit;
}

.lead-form input:focus {
  outline: 2px solid rgba(var(--green-rgb), .45);
  border-color: var(--green);
}

.lead-form .button {
  width: 100%;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
}

.lead-form .button:disabled {
  cursor: wait;
  opacity: .65;
}

.lead-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.lead-form-note.success {
  color: var(--green);
}

.lead-form-note.error {
  color: var(--red);
}

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

@media (max-width: 620px) {
  .specialization-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .specialization-card {
    min-height: auto;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 19, 23, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
}

.brand-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-link {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.login-link:hover {
  color: var(--text);
}

.header-cta {
  min-height: 40px;
  padding: 9px 14px;
  border-color: var(--green);
  background: var(--green);
  color: #07110d;
  font-size: 14px;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.84;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(15, 19, 23, 0.98) 0%, rgba(15, 19, 23, 0.82) 37%, rgba(15, 19, 23, 0.3) 68%, rgba(15, 19, 23, 0.72) 100%),
    linear-gradient(180deg, rgba(15, 19, 23, 0.15) 0%, rgba(15, 19, 23, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(32px, 5vh, 58px) 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  max-width: 840px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  margin-bottom: 28px;
  max-width: 680px;
  color: var(--white-soft);
  font-size: clamp(18px, 2.1vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: normal;
}

.button.primary {
  background: var(--green);
  color: #07110d;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 0;
}

.hero-metrics div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 17, 21, 0.62);
}

.hero-metrics dt {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(22px, 2.3vw, 26px);
  font-weight: 800;
  line-height: 1.05;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.console {
  border: 1px solid rgba(var(--green-rgb), 0.26);
  background: rgba(17, 22, 27, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 18px;
}

.console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(var(--green-rgb), 0.12);
}

.tag,
.label {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.tag {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid rgba(var(--green-rgb), 0.28);
}

.query-card {
  margin: 16px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  border-left: 3px solid var(--blue);
}

.query-card p {
  margin: 6px 0 0;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.pipeline span {
  position: relative;
  min-height: 54px;
  padding: 10px 8px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(var(--green-rgb), 0.09);
  border: 1px solid rgba(var(--green-rgb), 0.2);
  color: var(--white-soft);
  font-size: 12px;
}

.answer-grid {
  display: grid;
  gap: 10px;
}

.answer-grid div {
  padding: 14px;
  background: rgba(var(--green-rgb), 0.08);
  border: 1px solid rgba(var(--green-rgb), 0.18);
}

.answer-grid strong,
.answer-grid small {
  display: block;
}

.answer-grid small {
  margin-top: 4px;
  color: var(--muted);
}

.hero-rail {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px clamp(18px, 5vw, 56px) 20px;
  background: rgba(15, 19, 23, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-rail span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white-soft);
  font-size: 13px;
}

.section {
  padding: clamp(66px, 8vw, 112px) clamp(18px, 5vw, 56px);
}

.section-head {
  max-width: 920px;
  margin-bottom: 36px;
}

.problem {
  background: #f3f6f2;
  color: #16201c;
}

.problem .eyebrow {
  color: #3dff74;
}

.problem-grid {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: #31403a;
  font-size: 20px;
}

.capability-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability-grid article,
.audience-grid div {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.capability-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 10px;
}

.capability-grid article h3 {
  margin: 0;
}

.capability-grid article p {
  grid-column: 1 / -1;
}

.capability-grid article span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.capability-grid p,
.logic-steps span,
.audience-grid span,
.popov-layout p,
.final-cta p,
.response-card p,
.response-card li {
  color: var(--muted);
}

.limitations {
  background: #f6f8f5;
  color: #121a17;
}

.limitations .eyebrow {
  color: #3dff74;
}

.limitations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.limitations-grid article {
  min-height: 360px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe7e2;
  border-top: 4px solid #3dff74;
}

.limitations-grid h3 {
  color: #121a17;
}

.limitations-grid p {
  color: #2f4039;
}

.limitations-grid p:last-child {
  margin-bottom: 0;
}

.limitations-grid strong {
  color: #3dff74;
}

.logic {
  background: #11171b;
}

.logic-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.logic-steps {
  display: grid;
  gap: 12px;
}

.logic-steps div {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.logic-steps b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(var(--green-rgb), 0.14);
  color: var(--green);
}

.signal-map {
  min-height: 376px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(var(--green-rgb), 0.22);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--panel);
  background-size: 28px 28px;
}

.node {
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--green-rgb), 0.26);
  background: rgba(var(--green-rgb), 0.09);
  color: var(--white-soft);
  font-weight: 800;
}

.line {
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 18px rgba(var(--green-rgb), 0.45);
}

.diagnostics {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.diagnostics span,
.brand-cloud span {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--white-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.scenarios {
  background: #eef2ef;
  color: #121a17;
}

.scenarios .eyebrow {
  color: #3dff74;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scenario-list div {
  padding: 18px 20px;
  background: #fff;
  border-left: 4px solid #3dff74;
  color: #25342f;
  font-weight: 650;
}

.popov-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.popov-layout p {
  font-size: 20px;
}

.brand-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.example {
  background: #11171b;
}

.response-card {
  width: min(960px, 100%);
  padding: 24px;
  background: var(--panel);
  border: 1px solid rgba(var(--green-rgb), 0.24);
  box-shadow: var(--shadow);
}

.response-card ol {
  margin: 18px 0 0;
  padding-left: 22px;
}

.response-card li + li {
  margin-top: 12px;
}

.audience-grid div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audience-grid strong {
  font-size: 20px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(18px, 5vw, 56px) clamp(50px, 7vw, 84px);
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(135deg, rgba(var(--green-rgb), 0.16), rgba(var(--green-rgb), 0.12));
  border: 1px solid rgba(var(--green-rgb), 0.24);
}

.final-cta div {
  max-width: 780px;
}

.final-cta h2 {
  margin-bottom: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white-soft);
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-year {
  color: var(--white-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .logic-layout,
  .popov-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 34px;
  }

  .console {
    max-width: 620px;
  }

  .capability-grid,
  .limitations-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 66px;
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-cta {
    width: auto;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .header-actions {
    gap: 10px;
  }

  .login-link {
    font-size: 13px;
  }

  .hero-content {
    width: min(100% - 28px, 1240px);
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .problem-grid,
  .capability-grid,
  .limitations-grid,
  .scenario-list,
  .audience-grid {
    grid-template-columns: 1fr;
  }

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

  .pipeline span {
    min-height: 42px;
  }

  .signal-map {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .line {
    width: 3px;
    height: 28px;
    justify-self: center;
  }

  .capability-grid article,
  .audience-grid div {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}

/* FAQ (специализации) */
.faq-list {
  display: grid;
  gap: 12px;
  width: min(880px, 100%);
}

.faq-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: #b9c6c0;
  font-size: 16px;
  line-height: 1.6;
}

/* Блок "Что нужно на вход / что получить" */
.problem-grid > div {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.problem-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #fff;
}

.problem-grid p {
  margin: 0;
  color: #b9c6c0;
  font-size: 17px;
  line-height: 1.6;
}

/* Смежные направления: до 6 карточек */
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* Блок «Методология и проверка» */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, 100%);
}

.methodology-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.methodology-grid h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #fff;
}

.methodology-grid p {
  margin: 0;
  color: #b9c6c0;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .methodology-grid {
    grid-template-columns: 1fr;
  }
}
