/* ========================================================================
   ABD demo — white-base hybrid
   Палитра: белая база, дарк-текст, кислотный акцент только заливкой.
   ===================================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f4f4f3;
  --ink:       #0e0e0e;
  --ink-2:     #5a5a58;
  --ink-3:     #8a8a86;
  --line:      #e6e6e3;
  --acid:      #c9f534;     /* кислотно-зелёный из КП */
  --acid-deep: #b6e21f;
  --dark:      #0e0e0e;     /* тёмные якорные секции */
  --dark-soft: #1a1a1a;
  --dark-line: #2a2a2a;
  --radius:    22px;
  --radius-sm: 14px;
  --maxw:      1180px;
  --pad:       clamp(20px, 5vw, 64px);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

h1, h2, h3 { font-family: 'Geologica', 'Manrope', system-ui, sans-serif; line-height: 1.02; letter-spacing: -0.02em; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.hl { color: var(--acid); }
.muted { color: var(--ink-3); }
.section-dark .muted { color: #5e5e5e; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 18px 28px; border-radius: 100px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--acid); color: var(--ink); }
.btn-accent:hover { background: var(--acid-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ========================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-family: 'Geologica', sans-serif; font-weight: 900; font-size: 26px; letter-spacing: -0.03em; }
.logo .reg { font-size: 12px; vertical-align: super; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  color: var(--ink); border: 1.5px solid var(--ink); padding: 9px 18px; border-radius: 100px;
}
.nav .nav-cta:hover { background: var(--ink); color: #fff; }

/* ========================================================================
   1. HERO
   ===================================================================== */
.hero { padding-top: clamp(48px, 9vw, 110px); padding-bottom: clamp(40px, 7vw, 80px); }
.eyebrow {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px;
}
.hero-title {
  font-weight: 800; font-size: clamp(28px, 7.6vw, 96px); letter-spacing: -0.03em;
}
.hero-sub {
  margin-top: 28px; max-width: 560px; font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-2); line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-metrics { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 64px); margin-top: 56px; }
.metric b { display: block; font-family: 'Geologica', sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; }
.metric span { color: var(--ink-3); font-size: 14px; font-weight: 600; }

.hero-logos { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 26px; }
.logos-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 16px; }
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 26px; row-gap: 12px;
}
.trust-row span {
  font-family: 'Geologica', sans-serif; font-weight: 700; font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: -0.01em; color: #b3b3b0;
  transition: color .15s ease; position: relative;
}
.trust-row span:not(:last-child)::after {
  content: ''; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: #d4d4d1;
}
.trust-row span:hover { color: var(--ink); }

/* ========================================================================
   Общие секции
   ===================================================================== */
section { padding-block: clamp(56px, 9vw, 120px); }
.section-eyebrow {
  font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.section-title { font-weight: 800; font-size: clamp(32px, 5.6vw, 64px); letter-spacing: -0.03em; }
.section-lead { margin-top: 20px; max-width: 580px; font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); }

/* тёмные якорные секции */
.section-dark { background: var(--dark); color: #fff; }
.section-dark .section-eyebrow { color: #7a7a7a; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: #b0b0b0; }

/* ========================================================================
   2. ЗНАКОМО? (боль)
   ===================================================================== */
.pain .section-lead { margin-bottom: 48px; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pain-card {
  background: var(--dark-soft); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 32px clamp(24px, 3vw, 38px);
}
.pain-num { font-family: 'Geologica', sans-serif; font-weight: 800; font-size: 15px; color: var(--acid); }
.pain-card h3 { margin: 14px 0 10px; font-size: clamp(20px, 2.4vw, 26px); color: #fff; }
.pain-card p { color: #a8a8a8; font-size: 16px; }

/* ========================================================================
   3. УСЛУГИ
   ===================================================================== */
.services .section-lead { margin-bottom: 48px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 32px clamp(24px, 2.4vw, 34px);
  display: flex; flex-direction: column; min-height: 230px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.service-card--extra { background: var(--acid); }
.service-num { font-family: 'Geologica', sans-serif; font-weight: 800; font-size: 15px; color: var(--ink-3); }
.service-card--extra .service-num { color: var(--ink); }
.service-card h3 { margin: 16px 0 4px; font-size: clamp(22px, 2.6vw, 28px); }
.service-tagline { font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.service-card--extra .service-tagline { color: #4a5a10; }
.service-desc { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; }
.service-card--extra .service-desc { color: #2c3406; }

/* ========================================================================
   4. КЕЙСЫ
   ===================================================================== */
.cases-list { display: flex; flex-direction: column; gap: 22px; margin-top: 52px; }
.case-card {
  display: grid; grid-template-columns: 42% 1fr; gap: clamp(20px, 3vw, 44px);
  background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; align-items: stretch;
}
.case-media {
  min-height: 320px; position: relative; background: var(--bg-soft); overflow: hidden;
}
.case-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
.case-body { padding: clamp(26px, 3vw, 44px) clamp(26px, 3vw, 44px) clamp(26px, 3vw, 44px) 0; display: flex; flex-direction: column; }
.case-kicker { font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.case-title { margin: 14px 0 18px; font-size: clamp(22px, 2.8vw, 32px); }
.case-desc { color: var(--ink-2); font-size: 16px; }
.case-desc b { color: var(--ink); }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.case-tags span {
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.case-link { margin-top: auto; padding-top: 24px; font-weight: 800; font-size: 16px; }
.case-link:hover { color: var(--acid-deep); }

/* ========================================================================
   5. SOCIAL PROOF
   ===================================================================== */
.proof-grid {
  margin-top: 52px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.proof-logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 364 / 109; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); text-align: center;
  font-family: 'Geologica', sans-serif; font-weight: 800; font-size: clamp(14px, 1.5vw, 18px);
}
.proof-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof-logo small { font-family: 'Manrope'; font-weight: 600; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.proof-logo--more { background: var(--bg-soft); color: var(--ink-2); }
.proof-logo--you { background: var(--acid); color: var(--ink); }
.reviews-placeholder {
  margin-top: 24px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  padding: 26px; text-align: center; color: var(--ink-3); font-size: 14px; font-weight: 600;
}

/* ========================================================================
   6. ПОЧЕМУ МЫ
   ===================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px; }
.why-card { background: var(--dark-soft); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 36px clamp(26px, 3vw, 40px); }
.why-num { font-family: 'Geologica', sans-serif; font-weight: 800; font-size: clamp(34px, 4vw, 48px); color: var(--dark-line); -webkit-text-stroke: 1px #444; }
.why-card h3 { margin: 18px 0 12px; font-size: clamp(21px, 2.4vw, 27px); color: #fff; }
.why-card p { color: #a8a8a8; font-size: 16px; }

/* ========================================================================
   7. CTA FINAL (кислотный экран)
   ===================================================================== */
.cta-final { background: var(--acid); color: var(--ink); }
.section-eyebrow.dark { color: #4a5a10; }
.cta-title { font-weight: 800; font-size: clamp(34px, 6.4vw, 76px); letter-spacing: -0.03em; margin-bottom: 44px; }
.hl-box { background: var(--ink); color: var(--acid); padding: 0 .12em; border-radius: 6px; }
.cta-card { background: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); max-width: 760px; }
.cta-card-head { color: var(--acid); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin-bottom: 22px; }
.cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #1c1c1c; border-radius: 100px; padding: 18px 26px; margin-bottom: 12px;
  transition: background .15s ease;
}
.cta-row:last-child { margin-bottom: 0; }
.cta-row:hover { background: #262626; }
.cta-row span { color: #9a9a9a; font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.cta-row b { color: #fff; font-size: clamp(14px, 2vw, 18px); }
.cta-sub { margin-top: 32px; max-width: 600px; font-size: 16px; color: #2c3406; }
.cta-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin-top: 40px; border-top: 1.5px solid rgba(0,0,0,.18); padding-top: 28px; }
.cta-stats b { display: block; font-family: 'Geologica', sans-serif; font-weight: 800; font-size: clamp(22px, 3vw, 30px); }
.cta-stats span { font-size: 13px; color: #3c4609; font-weight: 600; max-width: 200px; display: block; }

/* ========================================================================
   8. FOOTER
   ===================================================================== */
.site-footer { padding-block: clamp(56px, 9vw, 110px); }
.footer-title { font-weight: 800; font-size: clamp(40px, 8vw, 88px); letter-spacing: -0.03em; color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.footer-card { background: var(--dark-soft); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: border-color .15s, background .15s; }
.footer-card:hover { border-color: #444; background: #202020; }
.footer-label { color: #7a7a7a; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 28px; }
.footer-card b { color: #fff; font-size: clamp(17px, 2vw, 21px); }
.footer-card small { color: #8a8a8a; font-size: 14px; margin-top: 4px; }
.footer-meta { margin-top: 44px; color: #6a6a6a; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }

/* ========================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 880px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card { grid-template-columns: 1fr; }
  .case-media { min-height: 200px; }
  .case-body { padding: 0 clamp(22px,5vw,30px) clamp(28px,6vw,34px); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .pain-grid, .services-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
