/* DataPrep — сайт проекта. Единый стиль (адаптивный, без внешних зависимостей). */
:root {
  --blue: #4361ee;
  --blue-2: #5b76ff;
  --teal: #17b26a;
  --ink: #141b2d;
  --body: #33405a;
  --muted: #6b7794;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-ink: #0f1728;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(24, 39, 92, 0.10);
  --shadow-sm: 0 6px 20px rgba(24, 39, 92, 0.07);
  --maxw: 1180px;
  --grad: linear-gradient(120deg, #4361ee 0%, #17b26a 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 780; }
h3 { font-size: 1.24rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header / nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { color: var(--teal); }
.nav__links { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav__links a { color: var(--body); padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: .96rem; }
.nav__links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav__links a.cta { background: var(--blue); color: #fff; }
.nav__links a.cta:hover { background: var(--blue-2); }
.nav__toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-size: 1rem; transition: .15s; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-2); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); text-decoration: none; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 74px 0 40px; background: radial-gradient(1200px 500px at 80% -10%, rgba(67,97,238,.10), transparent 60%), radial-gradient(1000px 500px at 0% 0%, rgba(23,178,106,.08), transparent 55%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__badge { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .88rem; color: var(--body); margin-bottom: 22px; }
.hero__badge b { color: var(--teal); }
.hero p.lead { margin-bottom: 26px; }
.hero__shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.hero__shot img { width: 100%; }
.trustbar { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 30px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.trustbar span { display: inline-flex; align-items: center; gap: 8px; }
.trustbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 2.1rem; font-weight: 820; color: var(--ink); line-height: 1; }
.stat span { color: var(--muted); font-size: .96rem; }

/* Cards grid */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, rgba(67,97,238,.12), rgba(23,178,106,.12)); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card .val { margin-top: 14px; font-weight: 700; color: var(--teal); font-size: .95rem; }

/* Problem/solution split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { border-radius: var(--radius); padding: 30px; }
.panel--problem { background: #fff5f4; border: 1px solid #ffdfdc; }
.panel--solution { background: #eefaf3; border: 1px solid #cdeed9; }
.panel h3 { margin-bottom: 16px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.checklist li::before { position: absolute; left: 0; top: 1px; font-weight: 800; }
.panel--problem .checklist li::before { content: "✕"; color: #e5484d; }
.panel--solution .checklist li::before { content: "✓"; color: var(--teal); }

/* Feature list (functionality) */
.feature { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: none; }
.feature .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, rgba(67,97,238,.12), rgba(23,178,106,.12)); }
.feature h3 { margin-bottom: 6px; }
.feature .val { color: var(--teal); font-weight: 700; font-size: .95rem; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .85rem; color: var(--body); font-weight: 600; }

/* Case cards */
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.case .kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.case h3 { margin-bottom: 10px; }
.case p { color: var(--muted); font-size: .98rem; margin: 0 0 10px; }
.case .value { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: .95rem; }
.case .value span { color: var(--teal); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.figure img { width: 100%; display: block; }
.figure figcaption { padding: 14px 18px; color: var(--muted); font-size: .95rem; font-weight: 600; }

/* Diagram block */
.diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.diagram img { width: 100%; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: none; }

/* CTA band */
.band { background: var(--bg-ink); color: #fff; border-radius: 22px; padding: 54px; text-align: center; background-image: radial-gradient(600px 240px at 20% 0%, rgba(67,97,238,.35), transparent 60%), radial-gradient(600px 240px at 90% 100%, rgba(23,178,106,.30), transparent 60%); }
.band h2 { color: #fff; }
.band p { color: #c7d0e4; max-width: 680px; margin: 0 auto 24px; }

/* Footer */
.footer { background: var(--bg-ink); color: #aeb8d0; padding: 46px 0 40px; }
.footer__grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .brand { color: #fff; }
.footer a { color: #cfd6e8; }
.footer small { color: #7d88a5; }

/* Section heading helper */
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* Anchor offset for sticky nav */
:target { scroll-margin-top: 84px; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .split, .grid--3, .grid--2, .gallery, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px 24px; gap: 4px; }
  .nav__links.open { display: flex; }
  .nav__links a { width: 100%; }
  .nav__toggle { display: inline-grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 20px; }
  .band { padding: 38px 22px; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
}
