/* ══════════════════════════════════════════════════
   СтройАналитик — Стили
   Эстетика: Промышленная точность. Тёмная база,
   ярко-оранжевый акцент (строительная техника),
   структурные сетки, сильная типографика.
   ══════════════════════════════════════════════════ */

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

:root {
  --bg:         #0d0f14;
  --bg2:        #131720;
  --bg3:        #1a1f2e;
  --surface:    #1e2435;
  --surface2:   #252c3e;
  --border:     rgba(255,255,255,.07);
  --border2:    rgba(255,255,255,.12);

  --accent:     #f97316;   /* оранжевый — строительная техника */
  --accent2:    #fb923c;
  --accent-glow: rgba(249,115,22,.25);

  --text:       #e8ecf5;
  --text2:      #9aa3b8;
  --text3:      #5a6478;

  --green:      #22c55e;
  --red:        #ef4444;
  --yellow:     #eab308;

  --font-head: 'Unbounded', sans-serif;
  --font-body: 'Geologica', sans-serif;

  --r:   8px;
  --r2:  16px;
  --r3:  24px;
  --shadow: 0 4px 24px rgba(0,0,0,.5);
  --shadow-accent: 0 0 40px var(--accent-glow);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 500; }
em { font-style: normal; color: var(--accent2); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--dark {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Typography helpers ── */
.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text2);
  max-width: 620px;
  margin-bottom: 64px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--r);
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--lg { padding: 16px 32px; font-size: 14px; }
.btn--sm { padding: 9px 18px; font-size: 12px; }
.btn--full { width: 100%; }

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent2);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249,115,22,.06);
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}

.logo__text {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav a {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text2);
  transition: color .15s;
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  transition: .2s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,.18) 0%, transparent 70%);
  top: -200px; left: -100px;
}

.hero__glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.12) 0%, transparent 70%);
  bottom: -100px; right: -100px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp .6s ease both;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeUp .6s .1s ease both;
}

.hero__accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
}

.hero__accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: .5;
}

.hero__sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 40px;
  animation: fadeUp .6s .2s ease both;
}

.hero__sub strong { color: var(--text); font-weight: 500; }

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp .6s .3s ease both;
}

.hero__metrics {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  animation: fadeUp .6s .4s ease both;
}

.hm {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.hm:last-child { border-right: none; }

.hm__val {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.hm__lbl {
  display: block;
  font-size: 12px;
  color: var(--text3);
}

/* ── Pain ── */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pain-card--red { border-top: 3px solid var(--red); }
.pain-card--orange { border-top: 3px solid var(--accent); }
.pain-card--yellow { border-top: 3px solid var(--yellow); }
.pain-card--gray { border-top: 3px solid var(--text3); }

.pain-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.pain-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ── Architecture ── */
.arch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch__step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px 24px;
  text-align: center;
  transition: border-color .2s;
}

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

.arch__step--accent {
  background: rgba(249,115,22,.08);
  border-color: rgba(249,115,22,.3);
}

.arch__num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.arch__icon { font-size: 32px; margin-bottom: 12px; }

.arch__step h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.arch__step p { font-size: 13px; color: var(--text2); line-height: 1.5; }

.arch__arrow {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: bold;
}

/* ── Features ── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  position: relative;
  transition: border-color .2s, transform .2s;
}

.feat-card:hover {
  border-color: rgba(249,115,22,.35);
  transform: translateY(-2px);
}

.feat-card::before {
  content: attr(data-num);
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: .08em;
}

.feat-card--wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.feat-card--wide .feat-card__header { flex-shrink: 0; min-width: 220px; }

.feat-card__header {
  margin-bottom: 12px;
}

.feat-card__tag {
  display: inline-block;
  background: rgba(249,115,22,.12);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.feat-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.feat-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}

.tl-item {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-left: 2px solid var(--border2);
  margin-left: 48px;
  padding-left: 40px;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 38px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text3);
}

.tl-item--accent::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.tl-day {
  flex-shrink: 0;
  width: 80px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 4px;
}

.tl-content h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.tl-content p { font-size: 14px; color: var(--text2); }

/* ── Compare ── */
.compare__table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
}

.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1.5fr 2fr;
  gap: 0;
}

.compare__head {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.compare__head > div,
.compare__row > div {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  font-size: 14px;
}

.compare__head > div:last-child,
.compare__row > div:last-child { border-right: none; }

.compare__head > div {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
}

.compare__row { border-bottom: 1px solid var(--border); }
.compare__row:last-child { border-bottom: none; }

.compare__label {
  color: var(--text2);
  font-size: 13px;
}

.compare__us {
  background: rgba(249,115,22,.05);
}

.compare__us.compare__head > div,
.compare__head .compare__us {
  color: var(--accent) !important;
}

.compare__val--green {
  color: var(--green);
  font-weight: 500;
}

/* ── ROI ── */
.roi__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

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

.roi-card__amount {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.2;
}

.roi-card__label {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.roi__total {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.roi__total-left, .roi__total-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roi__total-val {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.roi__total-val--green { color: var(--green); }

.roi__total-lbl {
  font-size: 13px;
  color: var(--text2);
}

.roi__total-vs {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text3);
}

.roi__total-result {
  margin-left: auto;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--r);
  padding: 16px 32px;
  font-size: 16px;
  color: var(--green);
}

.roi__total-result strong {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  display: block;
}

/* ── Pricing ── */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .2s;
}

.plan:hover { transform: translateY(-4px); }

.plan--featured {
  background: var(--surface2);
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(249,115,22,.1);
}

.plan__badge {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
}

.plan__badge--accent { color: var(--accent); }
.plan__badge--hot { color: var(--accent2); }

.plan__price {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.plan__price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text2);
}

.plan__desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  flex: 1;
}

.plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan__features li {
  font-size: 13px;
  color: var(--text2);
  padding-left: 20px;
  position: relative;
}

.plan__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pricing__note {
  text-align: center;
  font-size: 13px;
  color: var(--text3);
}

/* ── CTA Section ── */
.cta-section { padding: 96px 0; }

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r3);
  padding: 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-box__glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, rgba(249,115,22,.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.cta-box > p {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cta-form input {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  transition: border-color .2s;
  outline: none;
}

.cta-form input:focus {
  border-color: var(--accent);
}

.cta-form input::placeholder { color: var(--text3); }

.cta-form__note {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  margin-top: 4px;
}

.cta-form__note a { color: var(--text2); text-decoration: underline; }

.cta-form__success {
  text-align: center;
  padding: 32px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34,197,94,.15);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--green);
  margin: 0 auto 20px;
}

.cta-form__success h3 {
  font-family: var(--font-head);
  font-size: 22px;
  margin-bottom: 8px;
}

.cta-form__success p { color: var(--text2); }

/* ── Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px;
}

.footer__brand .logo { margin-bottom: 16px; }
.footer__brand p { font-size: 13px; color: var(--text3); line-height: 1.6; }

.footer__links h5 {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 13px;
  color: var(--text3);
  transition: color .15s;
}

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

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text3);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Mobile Navigation ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .roi__grid { grid-template-columns: repeat(2, 1fr); }
  .pain__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .arch { flex-wrap: wrap; }
  .arch__arrow { display: none; }
  .arch__step { flex: 1 1 40%; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav { display: none; }
  .header__inner .btn--sm { display: none; }
  .burger { display: flex; }

  .hero__inner { padding: 80px 24px 60px; }
  .hero__title { font-size: clamp(28px, 8vw, 48px); }
  .hero__sub { font-size: 16px; }
  .hero__metrics {
    flex-direction: column;
    border: none;
    gap: 1px;
    background: var(--border);
  }
  .hm {
    background: var(--surface);
    border-right: none;
  }
  .br-desk { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }

  .pain__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .feat-card--wide { flex-direction: column; gap: 16px; }
  .arch { flex-direction: column; }
  .arch__step { width: 100%; }

  .compare__head { display: none; }
  .compare__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px;
  }
  .compare__row > div {
    border-right: none;
    padding: 4px 0;
    font-size: 13px;
  }
  .compare__label {
    font-family: var(--font-head);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text3);
  }
  .compare__us { background: none; }

  .roi__grid { grid-template-columns: 1fr 1fr; }
  .roi__total { flex-direction: column; align-items: flex-start; }
  .roi__total-result { margin-left: 0; width: 100%; text-align: center; }

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

  .cta-box { padding: 32px 24px; }
  .cta-form__row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom .container { flex-direction: column; gap: 8px; }
}
