/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --bg:        #0a0a0c;
  --surface:   #13141a;
  --surface-2: #191b23;
  --border:    #242732;
  --text:      #e5e7eb;
  --muted:     #9096a3;
  --faint:     #676d7c;
  --accent:    #38bdf8;
  --accent-2:  #3b82f6;
  --danger:    #f87171;
  --good:      #34d399;
  --radius:    14px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.16, 1, .3, 1);
}

/* ==========================================================
   Reset & base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: rgba(56, 189, 248, .28); color: #fff; }

/* Ambient gradient glow behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 78% -8%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(760px 520px at 8% 6%, rgba(56, 189, 248, .10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================
   Layout helpers
   ========================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { position: relative; z-index: 1; padding: 108px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: .7;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }

.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #05121e;
  box-shadow: 0 8px 30px rgba(56, 189, 248, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(56, 189, 248, .40); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: var(--surface); }

/* ==========================================================
   Header / nav
   ========================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(10, 10, 12, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
header.scrolled { border-color: var(--border); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.01em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #05121e; font-weight: 900; font-size: 16px;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: .04em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 1180px) {
  .brand small { display: none; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13.5px; }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding-top: 92px; padding-bottom: 96px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 900;
  max-width: 17ch;
  margin-bottom: 24px;
  letter-spacing: -.035em;
}
/* Акцент без градиента: вариативная жирность + опорные метки (reticle) */
.hero h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-variation-settings: 'wght' 750;
  transition: font-variation-settings .9s var(--ease);
  padding: 0 .05em;
}
.reveal.in .accent { font-variation-settings: 'wght' 900; }
.hero h1 .accent::before,
.hero h1 .accent::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--accent);
  opacity: .85;
}
.hero h1 .accent::before { left: -16px; top: -8px; border-right: none; border-bottom: none; }
.hero h1 .accent::after { right: -16px; bottom: -8px; border-left: none; border-top: none; }
.hero .lead { max-width: 660px; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ==========================================================
   Generic section header
   ========================================================== */
.sec-head { max-width: 720px; margin-bottom: 54px; }

/* ==========================================================
   PDMM Diagnostic — домены фреймворка
   ========================================================== */
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.domain {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.domain::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px 160px at 100% 0, rgba(56,189,248,.10), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.domain:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.4); }
.domain:hover::after { opacity: 1; }
.domain .ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--accent); margin-bottom: 16px;
}
.domain .ico svg { width: 22px; height: 22px; }
.domain h3 { margin-bottom: 12px; }
.domain-caption { color: var(--faint); font-size: 13.5px; margin-bottom: 24px; }
.domain-metrics { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.domain-metrics li {
  color: var(--muted); font-size: 14px; line-height: 1.45;
  padding-left: 15px; position: relative;
}
.domain-metrics li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
/* Maturity meter: 5 segmented levels */
.meter { display: flex; align-items: center; gap: 10px; }
.meter .bars { display: flex; gap: 4px; }
.meter .bars i {
  width: 24px; height: 6px; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: block;
}
.meter .bars i.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-color: transparent; }
.meter .lvl { font-size: 12px; color: var(--faint); font-weight: 600; letter-spacing: .03em; }

.scale-legend {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--faint); font-size: 13px;
}
.scale-legend span b { color: var(--muted); font-weight: 600; }

/* ==========================================================
   Cases — практика (слайдер фактов)
   ========================================================== */
.slider { position: relative; }
.slider-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin: 0 0 22px;
  padding: 2px 2px 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 clamp(260px, 32vw, 340px);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.slide-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}
.slide h3 { font-size: 18px; margin-bottom: 10px; }
.slide p { color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.slide-metric {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--good);
}
.slider-controls { display: flex; gap: 10px; }
.slider-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); display: grid; place-items: center;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }

.cases-note {
  margin-top: 30px; padding: 24px 26px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text); font-size: 16.5px;
}
.cases-note b { color: var(--accent); }

/* ==========================================================
   Process — как это работает (3 шага)
   ========================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 46px; font-weight: 900; letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--border);
  display: block; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step .tag { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

/* ==========================================================
   About — об архитекторе
   ========================================================== */
.about-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 44px; align-items: center;
}
.avatar {
  aspect-ratio: 1; border-radius: 18px;
  background:
    radial-gradient(120px 120px at 30% 25%, rgba(56,189,248,.35), transparent 60%),
    linear-gradient(160deg, var(--surface-2), #0d0e14);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 54px; font-weight: 900; color: #fff; letter-spacing: -.04em;
}
.about-card .role { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.about-card h3 { font-size: 28px; margin-bottom: 14px; }
.about-card p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.creds span {
  font-size: 13px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 15px;
}

/* ==========================================================
   Value / Pricing
   ========================================================== */
.value { border-top: 1px solid var(--border); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.price-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
}
.price-card .from { color: var(--faint); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.price-card .amount { font-size: clamp(40px, 5vw, 56px); font-weight: 900; letter-spacing: -.04em; margin: 8px 0 4px; }
.price-card .amount span { color: var(--accent); }
.price-card .sub { color: var(--muted); }
.value-note {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.value-note h3 { font-size: 23px; margin-bottom: 16px; }
.value-note p { color: var(--muted); font-size: 16px; }
.value-note p + p { margin-top: 14px; }
.value-note .hi { color: var(--text); }

/* ==========================================================
   CTA + форма
   ========================================================== */
.cta { border-top: 1px solid var(--border); }
.cta-card {
  background:
    radial-gradient(700px 300px at 80% 0, rgba(59,130,246,.20), transparent 60%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.cta-card h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta-card .lead { margin-bottom: 26px; }
.cta-side .btn-primary { width: 100%; justify-content: center; margin-bottom: 12px; }
.cta-hint { color: var(--faint); font-size: 13px; text-align: center; }

form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit; font-size: 15px;
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,189,248,.16);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg {
  display: none;
  font-size: 14px;
  border-radius: 10px; padding: 12px 14px;
}
.form-msg.show { display: block; }
.form-msg.ok {
  color: var(--good);
  border: 1px solid rgba(52,211,153,.35);
  background: rgba(52,211,153,.08);
}
.form-msg.err {
  color: var(--danger);
  border: 1px solid rgba(248,113,113,.35);
  background: rgba(248,113,113,.08);
}

/* ==========================================================
   Footer
   ========================================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative; z-index: 1;
}
.foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  color: var(--faint); font-size: 14px;
}
.foot a:hover { color: var(--text); }

/* ==========================================================
   Reveal-on-scroll animation
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
  section { padding: 78px 0; }
  .nav-links { display: none; }
  .domain-grid, .steps { grid-template-columns: 1fr 1fr; }
  .about-card, .value-grid, .cta-card { grid-template-columns: 1fr; gap: 30px; }
  .about-card { padding: 32px; }
  .avatar { max-width: 160px; }
  .cta-card { padding: 34px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .domain-grid, .steps, .row2 { grid-template-columns: 1fr; }
  .cta-card, .about-card { padding: 26px; }
  .slide { flex-basis: 82vw; }
}
