:root {
  --bg: #121314;
  --bg-2: #191b1c;
  --card: #1f2223;
  --line: rgba(244, 239, 229, .10);
  --text: #f2ede4;
  --muted: #aaa69f;
  --accent: #d8ff43;
  --accent-dark: #111310;
  --radius: 28px;
  --shadow: 0 28px 90px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 118px 0; border-top: 1px solid var(--line); }
.muted-section { background: #151718; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,19,20,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.03em; }
.brand span { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 28px; border-radius: 16px;
  background: var(--accent); color: var(--accent-dark); font-weight: 800;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--small { min-height: 48px; padding: 0 20px; border-radius: 14px; }
.btn--dark { background: #111; color: var(--accent); }

.hero { padding-top: 74px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 76px; align-items: center; }
.eyebrow { margin: 0 0 22px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .13em; }
.eyebrow--dark { color: #111; }
h1,h2,h3,p { margin-top: 0; }
h1,h2 { font-family: Manrope, sans-serif; letter-spacing: -.045em; }
h1 { font-size: clamp(52px, 7vw, 96px); line-height: .98; margin-bottom: 30px; }
h2 { font-size: clamp(38px, 5vw, 66px); line-height: 1.02; margin-bottom: 22px; }
h3 { font-size: 22px; letter-spacing: -.025em; }
.lead { max-width: 720px; font-size: 21px; color: var(--muted); }
.hero__actions { margin-top: 38px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.micro { color: var(--muted); font-size: 14px; }

.portrait-card { position: relative; overflow: hidden; border-radius: 34px; border: 1px solid var(--line); background: #2a2d2e; box-shadow: var(--shadow); }
.portrait-card img { aspect-ratio: 4/5; object-fit: cover; object-position: center 48%; }
.portrait-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.68)); pointer-events: none; }
.portrait-card__caption { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; display: flex; justify-content: space-between; align-items: end; }
.portrait-card__caption strong { font-size: 20px; }
.portrait-card__caption span { color: #d7d1c7; font-size: 14px; }

.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head--wide { max-width: 940px; }
.section-head > p:last-child { color: var(--muted); font-size: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.metric { padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.metric__value { display: block; font-family: Manrope; font-size: clamp(42px, 5vw, 66px); font-weight: 800; letter-spacing: -.05em; color: var(--accent); }
.metric__label { display: block; margin-top: 8px; color: var(--muted); }

.system-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.card { min-height: 260px; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.card .num { display: block; color: var(--accent); font-family: Manrope; font-size: 38px; font-weight: 800; margin-bottom: 26px; }
.card p { color: var(--muted); font-size: 17px; }

.cases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.case-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg,#1f2223,#191b1c); box-shadow: var(--shadow); }
.case-card__top { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.case-card__top span { padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.case-card h3 { font-size: 28px; margin-bottom: 28px; }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-metrics div { padding: 17px; border-radius: 18px; background: rgba(255,255,255,.035); }
.case-metrics strong { display: block; font-size: 24px; letter-spacing: -.04em; }
.case-metrics span { color: var(--muted); font-size: 13px; }
.case-note { margin-top: 22px; margin-bottom: 0; color: var(--muted); font-size: 14px; }

.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.process-grid__head { position: sticky; top: 110px; }
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.step > span { color: var(--accent); font-weight: 800; font-size: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin-bottom: 0; }

.about-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.about-photo { overflow: hidden; border-radius: 30px; border: 1px solid var(--line); }
.about-photo img { aspect-ratio: 4/5; object-fit: cover; object-position: center 48%; }
.about-copy p { color: var(--muted); font-size: 18px; max-width: 720px; }
.about-copy .eyebrow { color: var(--accent); }

.cta-section { padding: 0 0 70px; }
.cta-card { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 56px; border-radius: 34px; background: var(--accent); color: #111; }
.cta-card h2 { max-width: 850px; margin-bottom: 14px; }
.cta-card p { max-width: 720px; margin-bottom: 0; font-size: 18px; }

.footer { border-top: 1px solid var(--line); }
.footer__inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
  .hero__grid, .process-grid, .about-grid, .cta-card { grid-template-columns: 1fr; }
  .hero__grid { gap: 42px; }
  .hero__visual { max-width: 620px; }
  .cases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-grid__head { position: static; }
  .cta-card { align-items: start; }
  .cta-card .btn { justify-self: start; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .section { padding: 82px 0; }
  .topbar__inner { min-height: 64px; }
  .brand { font-size: 14px; }
  .btn--small { min-height: 42px; padding: 0 14px; font-size: 13px; }
  h1 { font-size: clamp(45px, 14vw, 68px); }
  h2 { font-size: clamp(34px, 10vw, 48px); }
  .lead { font-size: 18px; }
  .system-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .case-metrics { grid-template-columns: 1fr; }
  .portrait-card { border-radius: 24px; }
  .portrait-card img { aspect-ratio: 4/5; }
  .cta-card { padding: 32px 24px; border-radius: 24px; }
  .footer__inner { min-height: 120px; flex-direction: column; align-items: flex-start; justify-content: center; }
}

/* ================= Дополнения 2026-10: дашборд, кейс, анимации ================= */
.center { text-align: center; }
.dash-section { background: radial-gradient(700px 380px at 90% 10%, rgba(216,255,67,.08), transparent 70%), var(--bg); }
.dash-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.dash-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.dash-points li { position: relative; padding-left: 34px; color: var(--text); font-size: 17px; }
.dash-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.dash-points li::after { content: ""; position: absolute; left: 8px; top: 6px; width: 6px; height: 11px; border: solid #111; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.ldash { border-radius: 28px; padding: 20px; background: linear-gradient(160deg, #1f2223, #161819); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ldash__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.ldash__top b { color: var(--text); font-size: 15px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--accent); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(216,255,67,.55); } 70% { box-shadow: 0 0 0 9px rgba(216,255,67,0); } 100% { box-shadow: 0 0 0 0 rgba(216,255,67,0); } }
.ldash__tabs { display: flex; gap: 8px; margin: 16px 0 14px; overflow-x: auto; scrollbar-width: none; }
.ldash__tabs button { flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--muted); font-family: inherit; font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 12px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.ldash__tabs button.on { background: var(--accent); color: #111; border-color: var(--accent); }
.ldash__kpi { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.ldash__kpi div { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
.ldash__kpi div > span { display: block; font-size: 12px; color: var(--muted); }
.ldash__kpi b { font-family: Manrope, sans-serif; font-size: 22px; letter-spacing: -.03em; white-space: nowrap; }
.ldash__kpi i { font-style: normal; }
.ldash__kpi .acc { color: var(--accent); }
.ldash__panes { position: relative; height: 210px; margin-top: 12px; }
.lp { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; pointer-events: none; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.03); }
.lp.on { opacity: 1; pointer-events: auto; }
.lp h4 { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lfun { display: grid; gap: 9px; }
.lfun div { display: grid; grid-template-columns: 86px 1fr 50px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.lfun i { display: block; height: 24px; border-radius: 8px; background: linear-gradient(90deg, var(--accent), #8fd14f); width: 0; transition: width .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i)*.25s); }
.lp.on .lfun i { width: var(--w); }
.lfun em { font-style: normal; text-align: right; color: var(--text); font-weight: 800; }
.lmon { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding-top: 10px; }
.lmon div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.lmon b { color: var(--text); }
.lmon i { display: block; width: 100%; max-width: 56px; height: 0; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--accent), #8fd14f); transition: height .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i)*.2s); }
.lmon i.fc { background: repeating-linear-gradient(135deg, var(--accent) 0 7px, #9fc93c 7px 14px); }
.lp.on .lmon i { height: var(--h); }
.lline svg { width: 100%; height: 150px; display: block; }
.lline path.l { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s ease; }
.lline path.a { fill: url(#ga); opacity: 0; transition: opacity .8s .9s; }
.lp.on.lline path.l { stroke-dashoffset: 0; }
.lp.on.lline path.a { opacity: 1; }
.lline .tag { position: absolute; right: 14px; top: 12px; font-size: 12px; font-weight: 800; background: var(--accent); color: #111; padding: 4px 9px; border-radius: 8px; }
.ldash__note { margin: 12px 2px 0; font-size: 12px; color: var(--muted); }

.laptop { max-width: 980px; margin: 0 auto 14px; }
.laptop__screen { padding: 12px; border-radius: 22px 22px 6px 6px; background: #0b0c0d; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); }
.laptop__screen video { display: block; width: 100%; height: auto; border-radius: 10px; background: #111; }
.laptop__base { height: 16px; margin: 0 -4%; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #2b2e2f, #18191a); }
.laptop--sm { margin: 18px 0 0; }

.case-feature { padding: 34px; border-radius: 34px; margin-bottom: 20px; border: 1px solid rgba(216,255,67,.25); background: radial-gradient(600px 300px at 0% 0%, rgba(216,255,67,.08), transparent 70%), linear-gradient(180deg, #1f2223, #171919); box-shadow: var(--shadow); }
.case-feature h3 { font-family: Manrope, sans-serif; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.04em; margin: 0 0 28px; }
.case-feature h3 em { font-style: normal; color: var(--accent); }
.case-feature__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; }
.case-story { display: grid; gap: 14px; align-content: start; }
.cs-step { position: relative; padding: 18px 18px 18px 22px; border-radius: 18px; background: rgba(255,255,255,.035); border-left: 3px solid var(--accent); }
.cs-step b { display: block; color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.cs-step p { margin: 0; color: var(--muted); }
.case-res .case-metrics strong { color: var(--accent); }
.cases-grid--2 { grid-template-columns: repeat(2,1fr); }

/* --- анимации появления --- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .stats-grid .reveal:nth-child(2), .js .system-grid .reveal:nth-child(2), .js .cases-grid .reveal:nth-child(2), .js .steps .reveal:nth-child(2) { transition-delay: .12s; }
.js .stats-grid .reveal:nth-child(3), .js .system-grid .reveal:nth-child(3), .js .steps .reveal:nth-child(3) { transition-delay: .24s; }
.js .system-grid .reveal:nth-child(4) { transition-delay: .36s; }
.card, .case-card, .step { transition: transform .3s ease, border-color .3s ease; }
.card:hover, .case-card:hover { transform: translateY(-4px); border-color: rgba(216,255,67,.35); }
.btn { position: relative; }
.hero .btn { animation: glow 4s ease-in-out 2s infinite; }
@keyframes glow { 0%, 80%, 100% { box-shadow: 0 0 0 0 rgba(216,255,67,0); } 88% { box-shadow: 0 0 0 0 rgba(216,255,67,.5); } 98% { box-shadow: 0 0 0 16px rgba(216,255,67,0); } }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); z-index: 60; }

@media (max-width: 980px) {
  .dash-grid, .case-feature__grid, .cases-grid--2 { grid-template-columns: 1fr; }
  .dash-grid { gap: 36px; margin-bottom: 40px; }
}
@media (max-width: 680px) {
  .case-feature { padding: 22px; border-radius: 24px; }
  .ldash { padding: 14px; border-radius: 22px; }
  .ldash__kpi b { font-size: 18px; }
  .lfun div { grid-template-columns: 74px 1fr 44px; font-size: 12px; }
  .laptop__screen { padding: 6px; border-radius: 14px 14px 4px 4px; }
  .laptop__base { height: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .lfun i, .lmon i, .lline path.l, .lline path.a, .lp { transition: none !important; }
  .live::before, .hero .btn { animation: none; }
  html { scroll-behavior: auto; }
}
.case-metrics strong i { font-style: normal; }

/* --- отзывы --- */
.reviews-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.rev-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 26px; }
.rev-stats div { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.rev-stats b { display: block; font-family: Manrope, sans-serif; font-size: 32px; letter-spacing: -.04em; }
.rev-stats b.acc { color: var(--accent); }
.rev-stats span { color: var(--muted); font-size: 13px; }
.rev-card { margin: 0; padding: 14px; border-radius: 28px; background: linear-gradient(160deg, #1f2223, #141516); border: 1px solid rgba(216,255,67,.22); box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.rev-card img { height: auto; border-radius: 18px; }
.rev-card figcaption { margin: 10px 6px 2px; color: var(--muted); font-size: 13px; }
.js .rev-card.reveal { transform: translateY(26px) rotate(-1.2deg); }
.js .rev-card.reveal.in { transform: rotate(-1.2deg); }
@media (max-width: 980px) { .reviews-grid { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 680px) { .rev-stats b { font-size: 24px; } .rev-stats div { padding: 12px; } .rev-card { transform: none; } .js .rev-card.reveal.in { transform: none; } }

/* --- до / после кабинета --- */
.ba-block { margin: 0 0 20px; padding: 26px; border-radius: 30px; border: 1px solid var(--line); background: var(--card); }
.ba-head h3 { margin-bottom: 6px; }
.ba-head p { color: var(--muted); margin-bottom: 18px; }
.ba { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #fff; user-select: none; touch-action: pan-y; }
.ba img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba__before img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.ba__line i { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ba__line i::before, .ba__line i::after { content: ""; position: absolute; top: 15px; border: 6px solid transparent; }
.ba__line i::before { left: 5px; border-right-color: #111; }
.ba__line i::after { right: 5px; border-left-color: #111; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__tag { position: absolute; top: 10px; padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; pointer-events: none; }
.ba__tag--l { left: 10px; background: #111; color: #fff; }
.ba__tag--r { right: 10px; background: var(--accent); color: #111; }
.ba-m { display: none; }
@media (max-width: 680px) {
  .ba-block { padding: 16px; border-radius: 22px; }
  .ba, .ba-hint { display: none; }
  .ba-m { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ba-m figure { position: relative; margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
  .ba-m img { height: auto; }
  .ba-m .ba__tag { top: 6px; }
  .ba-m figure:first-child .ba__tag { left: 6px; }
  .ba-m figure:last-child .ba__tag { left: auto; right: 6px; }
}
@media (max-width: 680px) { .laptop__base { margin: 0 -2px; } }
