/* ==============================
   KDR-DEMO · Flowdex style
   ============================== */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #333;
  --ink-3: #666;
  --ink-4: #999;
  --line: #e8e8e8;
  --line-2: #f2f2f2;
  --accent: #FF6A00;
  --accent-2: #ff8a3d;
  --accent-ink: #ffffff;
  --card: #fafafa;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.12);
  --shadow-lg: 0 40px 80px -20px rgba(0,0,0,.18);
  --r: 20px;
  --r-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -8px rgba(255,106,0,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(255,106,0,.6); background: var(--accent-2); }
.btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--wide { width: 100%; justify-content: center; }

/* ─── HEADER ─── */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.hdr__wrap {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 40px;
  padding: 16px 32px;
}
.hdr__logo { display: flex; align-items: center; gap: 8px; }
.hdr__logo img { display: block; height: 32px; width: auto; }
.hdr__phone {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
  font-weight: 700; font-size: 15px;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.hdr__phone:hover { border-color: var(--accent); color: var(--accent); }
.hdr__nav { display: flex; gap: 32px; margin-left: 24px; }
.hdr__nav a { font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.hdr__nav a:hover { color: var(--accent); }
.hdr__cta {
  margin-left: 12px;
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: background .2s;
}
.hdr__cta:hover { background: var(--accent); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  padding-top: 72px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  will-change: transform;
}
.hero__grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.55) 50%, rgba(255,106,0,.35) 100%);
}
.hero__grid {
  position: relative;
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  padding: 80px 32px 100px;
  min-height: calc(100vh - 72px);
  align-content: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(20px);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 24px;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.hero__title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ffb37a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 20px; line-height: 1.5;
  color: rgba(255,255,255,.8);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero__ctas { display: flex; gap: 16px; margin-bottom: 48px; }
.hero__badges {
  display: flex; gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__badges > div { font-size: 14px; color: rgba(255,255,255,.7); }
.hero__badges strong { display: block; font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.hero__right {
  display: flex; flex-direction: column; gap: 24px; justify-content: center;
}
.hero__ticker {
  background: rgba(255,255,255,.06); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r);
  padding: 20px 24px;
  overflow: hidden;
}
.hero__ticker-lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
  color: #4ade80; font-weight: 700;
  margin-bottom: 12px;
}
.hero__ticker-track {
  display: flex; flex-direction: column; gap: 8px;
  animation: tickerScroll 20s linear infinite;
}
.hero__ticker-track > div {
  padding: 8px 12px; background: rgba(255,255,255,.05); border-radius: 8px;
  font-size: 14px; font-weight: 500;
}
@keyframes tickerScroll { 0%{transform:translateY(0)} 100%{transform:translateY(-50%)} }
.hero__quote {
  background: rgba(255,106,0,.15);
  border: 1px solid rgba(255,106,0,.35);
  border-radius: var(--r);
  padding: 28px;
  position: relative;
}
.hero__quote-mark {
  position: absolute; top: -10px; left: 20px;
  font-size: 60px; color: var(--accent); font-weight: 800;
  line-height: 1;
}
.hero__quote p { font-size: 16px; line-height: 1.55; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll span {
  width: 2px; height: 32px; background: rgba(255,255,255,.6);
  animation: scrollHint 2s infinite;
}
@keyframes scrollHint { 0%,100%{transform:scaleY(1);opacity:1} 50%{transform:scaleY(.3);opacity:.5} }

/* ─── STATS ─── */
.stats {
  padding: 100px 32px;
  background: var(--ink);
  color: #fff;
}
.stats__wrap { max-width: 1400px; margin: 0 auto; }
.stats__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.stat { text-align: left; }
.stat__n {
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.stat__l {
  margin-top: 12px;
  font-size: 16px; color: rgba(255,255,255,.6);
  font-weight: 500;
}

/* ─── HORIZONTAL SCROLL CATALOG ─── */
.hscroll {
  background: var(--card);
  position: relative;
}
.hscroll__intro {
  max-width: 1400px; margin: 0 auto;
  padding: 100px 32px 60px;
}
.hscroll__eyebrow {
  color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 13px; margin-bottom: 16px;
}
.hscroll__intro h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 20px;
}
.hscroll__intro p { color: var(--ink-3); font-size: 18px; max-width: 600px; }

.hscroll__pin {
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 88px; /* компенсация шапки, чтобы заголовки категорий не перекрывались */
}
.hscroll__track {
  display: flex;
  height: 100%;
  padding: 40px 0 80px;
  will-change: transform;
  align-items: stretch;
}
.hcat {
  flex: 0 0 auto;
  width: 90vw;
  max-width: 1200px;
  padding: 0 40px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.hcat__head {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
  flex-shrink: 0;
}
.hcat__icon {
  font-size: 40px; color: var(--accent);
  line-height: 1;
}
.hcat__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1;
}
.hcat__meta {
  margin-left: auto;
  font-size: 13px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 600;
}
.hcat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 1fr; /* все ряды одинаковой высоты */
  gap: 24px;
  flex: 1;
  align-content: start;
  align-items: stretch;
}

/* карточка модели */
.mcard {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.9,.3,1), box-shadow .3s;
  cursor: pointer;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mcard__ph {
  aspect-ratio: 16/10;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.mcard__ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15) 100%);
}
.mcard__ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.9,.3,1);
}
.mcard:hover .mcard__ph img { transform: scale(1.08); }
.mcard__body {
  padding: 20px 22px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.mcard__cat {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent); font-weight: 700;
  margin-bottom: 8px;
}
.mcard__title {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.25;
  margin-bottom: 16px;
  /* без min-height — все карточки равны за счёт grid-auto-rows: 1fr */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mcard__price {
  display: flex; align-items: baseline; gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto; /* прижимает цену к низу карточки */
}
.mcard__price span { font-size: 12px; color: var(--ink-3); }
.mcard__price strong { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }

.hscroll__progress {
  position: absolute; bottom: 24px; left: 40px; right: 40px;
  height: 3px; background: var(--line);
  border-radius: 2px;
}
.hscroll__progress-bar {
  height: 100%; background: var(--accent);
  border-radius: 2px;
  width: 0;
}
.hscroll__hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-4); font-weight: 600;
}

/* ─── SERVICES ─── */
.services {
  padding: 120px 32px;
  background: #fff;
}
.services__wrap { max-width: 1400px; margin: 0 auto; }
.services__eyebrow {
  color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 13px; margin-bottom: 16px;
}
.services h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 60px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.scard {
  padding: 32px 28px;
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.scard:hover { transform: translateY(-4px); border-color: var(--accent); }
.scard__ico { font-size: 40px; margin-bottom: 20px; }
.scard h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.scard p { color: var(--ink-3); font-size: 15px; line-height: 1.6; }

/* ─── HOW IT WORKS ─── */
.how {
  padding: 120px 32px;
  background: var(--card);
}
.how__wrap { max-width: 1400px; margin: 0 auto; }
.how__eyebrow {
  color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 13px; margin-bottom: 16px;
}
.how h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 60px;
  max-width: 900px;
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  position: relative;
}
.hstep {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s, border-color .3s;
}
.hstep:hover { transform: translateY(-4px); border-color: var(--accent); }
.hstep__n {
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 20px; line-height: 1;
}
.hstep__t {
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 10px;
}
.hstep__d {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-3);
}

/* ─── CLIENTS ─── */
.clients {
  padding: 120px 32px;
  background: #fff;
}
.clients__wrap { max-width: 1400px; margin: 0 auto; }
.clients__eyebrow {
  color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 13px; margin-bottom: 16px;
}
.clients__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.clients__head h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.clients__head p {
  font-size: 17px; line-height: 1.6; color: var(--ink-3);
}
.clients__badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cbadge {
  padding: 32px 24px;
  background: var(--card);
  border-radius: var(--r);
  border: 2px solid var(--line);
  text-align: center;
  transition: border-color .3s, background .3s;
}
.cbadge:hover { border-color: var(--accent); background: #fff; }
.cbadge__n {
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px; line-height: 1;
}
.cbadge__l {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-3);
}

/* ─── CTA / form ─── */
.cta {
  padding: 120px 32px;
  background: var(--ink);
  color: #fff;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,0,.3), transparent 70%);
}
.cta__wrap {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  position: relative;
}
.cta__eyebrow {
  color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 13px; margin-bottom: 16px;
}
.cta h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 24px;
}
.cta p { font-size: 18px; color: rgba(255,255,255,.7); margin-bottom: 40px; max-width: 460px; }
.cta__contacts { display: flex; flex-direction: column; gap: 20px; }
.cta__contacts a {
  padding: 20px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r);
  display: block;
  transition: border-color .2s, background .2s;
}
.cta__contacts a:hover { border-color: var(--accent); background: rgba(255,106,0,.1); }
.cta__contacts strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.cta__contacts span { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; display: block; }

.cta__form {
  background: #fff; color: var(--ink);
  padding: 40px;
  border-radius: var(--r);
  display: flex; flex-direction: column; gap: 20px;
}
.cta__form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cta__form input, .cta__form textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit; font-size: 15px;
  color: var(--ink); background: var(--line-2);
  transition: border-color .2s, background .2s;
}
.cta__form input:focus, .cta__form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.cta__form textarea { min-height: 100px; resize: vertical; }
.cta__pdn { font-size: 12px; color: var(--ink-3); text-align: center; }

/* ─── COMPARE (что было / что стало) ─── */
.compare {
  padding: 120px 32px;
  background: linear-gradient(180deg, var(--card) 0%, #fff 100%);
}
.compare__wrap { max-width: 1400px; margin: 0 auto; }
.compare__eyebrow {
  color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 13px; margin-bottom: 16px;
}
.compare h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 60px; max-width: 800px;
}
.compare__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.compare__grid > div {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--line);
  font-size: 16px; line-height: 1.6;
  color: var(--ink-2);
}
.compare__grid > div strong { color: var(--accent); font-weight: 800; }

/* ─── FOOTER ─── */
.ftr {
  padding: 40px 32px;
  background: var(--ink);
  color: rgba(255,255,255,.5);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.ftr__wrap {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between;
}
.ftr a { color: var(--accent); font-weight: 600; }

/* ─── REVEAL animations ─── */
.reveal { opacity: 0; transform: translateY(30px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hdr__nav { display: none; }
  .hdr__phone { display: none; }
  .hero__grid { grid-template-columns: 1fr; padding: 40px 20px 60px; gap: 40px; }
  .hero__badges { flex-wrap: wrap; gap: 20px; }
  .stats__row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cta__wrap { grid-template-columns: 1fr; gap: 40px; }
  .hscroll__pin { height: auto; padding-top: 20px; }
  .hscroll__track { flex-direction: column; padding: 20px; gap: 40px; }
  .hcat { width: 100%; padding: 0; border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 40px; }
  .hscroll__progress, .hscroll__hint { display: none; }
  .hero__quote, .hero__ticker { max-width: 100%; }
  .clients__head { grid-template-columns: 1fr; gap: 30px; }
  .clients__badges { grid-template-columns: repeat(2, 1fr); }
}
