/* ===========================================
   ADS Business Group — styles v3
   Дизайн: корпоративный B2B, Казахстан
   Шрифты: Manrope (заголовки) + Inter (тело)
   =========================================== */

:root {
  /* Цветовые токены */
  --primary:        #1565C0;   /* Глубокий корпоративный синий */
  --primary-dark:   #0D47A1;
  --primary-light:  #E3F0FF;
  --accent:         #FFC107;   /* Янтарный — только CTA */
  --accent-dark:    #F9A825;
  --bg:             #FFFFFF;
  --surface:        #F0F4F8;
  --surface-card:   #FFFFFF;
  --text:           #0D1B2A;
  --text-muted:     #546E7A;
  --border:         #DDE3EA;
  --whatsapp:       #25D366;

  /* Типографика */
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Шкала */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  clamp(24px, 3vw, 30px);
  --text-3xl:  clamp(30px, 4vw, 40px);
  --text-4xl:  clamp(38px, 5.5vw, 56px);

  /* Геометрия */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --container:  1140px;
  --shadow-sm:  0 2px 6px rgba(13,27,42,.07);
  --shadow-md:  0 8px 28px rgba(13,27,42,.10);
  --shadow-lg:  0 20px 60px rgba(13,27,42,.13);
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--text-base); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

/* ── SKIP LINK ───────────────────────────── */
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 2000;
  padding: 10px 16px; background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ── CONTAINER ───────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ──────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  letter-spacing: -.02em; color: var(--primary); white-space: nowrap;
}
.logo img { width: 32px; height: 32px; }
.main-nav {
  display: flex; align-items: center; gap: 4px;
}
.main-nav a {
  font-size: var(--text-sm); font-weight: 500; padding: 8px 14px;
  border-radius: var(--radius-sm); color: var(--text-muted);
  transition: color .18s, background .18s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: background .18s, transform .15s, box-shadow .18s;
  white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(21,101,192,.30);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(21,101,192,.40); }

.btn-accent {
  background: var(--accent); color: var(--text);
  box-shadow: 0 4px 14px rgba(255,193,7,.35);
}
.btn-accent:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-wa {
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,.30);
}
.btn-wa:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent; color: var(--text-muted);
  padding: 10px 18px;
}
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }

/* ── MOBILE MENU ─────────────────────────── */
.menu-button {
  display: none; background: none; border: none; cursor: pointer;
  font-size: var(--text-sm); font-weight: 600; padding: 8px 14px;
  border-radius: var(--radius-sm); color: var(--primary);
  border: 1.5px solid var(--border);
}
@media (max-width: 860px) {
  .menu-button { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 16px; }
}
@media (max-width: 480px) {
  .header-actions .btn-wa span { display: none; }
}

/* ── HERO ────────────────────────────────── */
.hero {
  padding: 80px 24px 0;
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  min-height: 520px;
}
.hero-text .eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-light);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
}
.hero-text h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-4xl); line-height: 1.12;
  letter-spacing: -.03em; color: var(--text);
  margin-bottom: 20px;
}
.hero-text h1 em {
  font-style: normal; color: var(--primary);
}
.hero-text p {
  font-size: var(--text-lg); color: var(--text-muted);
  line-height: 1.7; margin-bottom: 32px; max-width: 500px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-graphic {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 380px;
}

/* Подпись-элемент v3: animated geometric SVG inline */
.geo-figure {
  width: 100%; height: 100%;
}
.geo-figure rect, .geo-figure circle, .geo-figure polygon {
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}

/* ── DIAGONAL DIVIDER (signature element) ─ */
.diagonal-divider {
  width: 100%; overflow: hidden; line-height: 0;
  margin-top: 80px;
}
.diagonal-divider svg { display: block; width: 100%; }

/* ── SECTIONS ────────────────────────────── */
.section {
  padding: 80px 24px;
  max-width: var(--container); margin: 0 auto;
}
.section-sm { padding: 56px 24px; max-width: var(--container); margin: 0 auto; }
.section-bg {
  background: var(--surface);
}
.section-bg-inner {
  background: var(--surface);
  padding: 80px 0;
}
.section-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-3xl); letter-spacing: -.025em;
  line-height: 1.2; color: var(--text); margin-bottom: 16px;
}
.section-sub {
  font-size: var(--text-lg); color: var(--text-muted);
  max-width: 560px; line-height: 1.65; margin-bottom: 48px;
}

/* ── CARDS ───────────────────────────────── */
.card {
  background: var(--surface-card); border-radius: var(--radius-md);
  padding: 32px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 22px;
}
.card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); letter-spacing: -.02em;
  margin-bottom: 10px; color: var(--text);
}
.card p { font-size: var(--text-base); color: var(--text-muted); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: var(--text-sm); font-weight: 600;
  color: var(--primary);
}
.card-link::after { content: "→"; }
.card-link:hover { gap: 10px; }

/* ── GRIDS ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── STATS BAR ───────────────────────────── */
.stats-bar {
  display: flex; gap: 0; border-radius: var(--radius-md);
  background: var(--primary); overflow: hidden;
  margin-bottom: 64px;
}
.stat-item {
  flex: 1; padding: 28px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.15);
  color: #fff;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 800; letter-spacing: -.03em; color: var(--accent);
  display: block;
}
.stat-label { font-size: var(--text-sm); opacity: .8; margin-top: 4px; display: block; }

/* ── STEPS ───────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step::before {
  content: counter(step);
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 800;
}
.step strong { display: block; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: var(--text-base); color: var(--text-muted); margin: 0; }

/* ── FAQ ─────────────────────────────────── */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  font-weight: 600; font-size: var(--text-base);
  padding: 18px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--text-muted); line-height: 1.65; }

/* ── CTA BAND ────────────────────────────── */
.cta-band {
  background: var(--primary); color: #fff;
  padding: 72px 24px; text-align: center;
}
.cta-band .section-title { color: #fff; margin-bottom: 12px; }
.cta-band .section-sub { color: rgba(255,255,255,.75); margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT LAYOUT ──────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
  padding: 64px 24px; max-width: var(--container); margin: 0 auto;
}
.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
  font-size: var(--text-base);
}
.contact-item strong { font-weight: 700; font-size: var(--text-sm); color: var(--text-muted); }
.contact-item a { color: var(--primary); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }
}

/* ── FORM ────────────────────────────────── */
form[data-lead-form] { display: flex; flex-direction: column; gap: 16px; }
form[data-lead-form] label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: var(--text-sm); font-weight: 600; color: var(--text);
}
form[data-lead-form] input,
form[data-lead-form] select,
form[data-lead-form] textarea {
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: var(--text-base);
  font-family: var(--font-body); background: #fff; color: var(--text);
  transition: border-color .18s;
  width: 100%;
}
form[data-lead-form] input:focus,
form[data-lead-form] select:focus,
form[data-lead-form] textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
form[data-lead-form] textarea { min-height: 110px; resize: vertical; }
.checkbox-row {
  flex-direction: row !important; align-items: flex-start !important; gap: 10px !important;
}
.checkbox-row input { width: auto !important; margin-top: 2px; }
.form-success { color: #2E7D32; font-weight: 600; font-size: var(--text-sm); }

/* ── FOOTER ──────────────────────────────── */
.site-footer { background: var(--text); color: rgba(255,255,255,.75); padding: 56px 0 32px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.site-footer h2 {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg);
  color: #fff; letter-spacing: -.02em; margin-bottom: 10px;
}
.site-footer h3 {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  color: #fff; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.site-footer p { font-size: var(--text-sm); line-height: 1.65; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: var(--text-sm); transition: color .18s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--container); margin: 0 auto; padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: var(--text-xs); color: rgba(255,255,255,.45);
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── COOKIE NOTICE ───────────────────────── */
.cookie-notice {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 800;
  background: var(--text); color: rgba(255,255,255,.85);
  border-radius: var(--radius-md); padding: 18px 20px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  box-shadow: var(--shadow-lg); max-width: 600px;
  font-size: var(--text-sm);
}
.cookie-notice p { flex: 1; margin: 0; }
.cookie-notice a { color: var(--accent); text-decoration: underline; }

/* ── HERO SIMPLE (inner pages) ───────────── */
.hero-simple {
  padding: 72px 24px 64px;
  max-width: var(--container); margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.hero-simple .eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-light);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 16px;
}
.hero-simple h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-3xl); letter-spacing: -.025em; line-height: 1.18;
  color: var(--text); margin-bottom: 14px; max-width: 720px;
}
.hero-simple p {
  font-size: var(--text-lg); color: var(--text-muted);
  max-width: 600px; line-height: 1.7; margin-bottom: 28px;
}
.hero-simple .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── CASE META TAG ───────────────────────── */
.case-meta {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-light);
  padding: 4px 12px; border-radius: 50px; margin-bottom: 14px;
}

/* ── MUTED TEXT ──────────────────────────── */
.muted { color: var(--text-muted); font-size: var(--text-sm); }

/* ── NOTICE ──────────────────────────────── */
.notice {
  background: var(--surface); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; font-size: var(--text-sm);
}

/* ── LEAD / LARGE TEXT ───────────────────── */
.lead {
  font-size: var(--text-xl); color: var(--text-muted);
  line-height: 1.65; max-width: 640px; margin-bottom: 24px;
}

/* ── SCROLL REVEAL ───────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── HERO RESPONSIVE ─────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr; gap: 40px;
    padding: 56px 24px 48px; min-height: auto;
  }
  .hero-graphic { height: 240px; }
  .hero-text h1 { font-size: clamp(28px, 6vw, 40px); }
}
@media (max-width: 480px) {
  .hero { padding: 40px 16px 36px; }
  .section { padding: 56px 16px; }
  .diagonal-divider { margin-top: 0; }
}

/* ── UTILITY ─────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0 !important; }
.w-full { width: 100%; }
