/* ============================================================
   KODROSHA.RU — Design System v2
   Продуктовый стиль: крупные размеры, яркие акценты, воздух
   ============================================================ */

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
  /* Палитра */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --dark: #0a1628;
  --dark-2: #0f172a;
  --dark-3: #1e293b;
  
  --text: #0a1628;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --text-inverse: #ffffff;
  
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.15);
  
  --border: #e2e8f0;
  --border-dark: #334155;
  
  /* Размеры */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Тени */
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.04);
  --shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 22, 40, 0.12);
  --shadow-accent: 0 12px 32px rgba(34, 197, 94, 0.25);
  
  /* Типографика */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all .2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ============ ТИПОГРАФИКА ============ */
h1, h2, h3, h4, h5, h6 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -.03em; }
h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.025em; }
h3 { font-size: clamp(24px, 3vw, 32px); }
h4 { font-size: clamp(20px, 2vw, 24px); }

.muted { color: var(--text-muted); }
.accent { color: var(--accent-2); }

/* ============ КОНТЕЙНЕР ============ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 880px; }
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
  text-align: center;
  min-height: 56px;
}
.btn--primary {
  background: var(--dark);
  color: var(--text-inverse);
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  background: var(--dark-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}
.btn--accent {
  background: var(--accent);
  color: var(--dark);
  box-shadow: var(--shadow-accent);
}
.btn--accent:hover {
  background: var(--accent-2);
  color: var(--text-inverse);
  transform: translateY(-2px);
  opacity: 1;
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--dark);
  background: var(--bg-soft);
  opacity: 1;
}
.btn--sm { padding: 12px 22px; font-size: 15px; min-height: 44px; }
.btn--lg { padding: 22px 48px; font-size: 19px; min-height: 64px; }
.btn--block { width: 100%; }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
}
.logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo__dot { color: var(--accent-2); }
.nav {
  display: flex;
  gap: 36px;
  font-weight: 600;
  font-size: 17px;
}
.nav a { color: var(--text); position: relative; }
.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transition: transform .25s;
  transform-origin: left;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--accent-2); }

.header__burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.header__burger span::before,
.header__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
}
.header__burger span::before { top: -7px; }
.header__burger span::after { bottom: -7px; }

@media (max-width: 900px) {
  .header__inner { height: 72px; gap: 16px; }
  .logo { font-size: 18px; }
  .logo svg { width: 32px; height: 32px; }
  .nav { display: none; }
  .header__burger { display: flex; }
}

/* ============ СЕКЦИИ ============ */
.section { padding: 120px 0; }
.section--sm { padding: 80px 0; }
.section--dark {
  background: var(--dark);
  color: var(--text-inverse);
}
.section--dark .muted { color: var(--text-soft); }
.section--muted { background: var(--bg-soft); }
.section__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -.025em;
}
.section__subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 64px;
  line-height: 1.5;
}
.section--dark .section__subtitle { color: var(--text-soft); }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section--sm { padding: 56px 0; }
  .section__subtitle { margin-bottom: 40px; }
}

/* ============ HERO v2 ============ */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: clip;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: glowMove 15s ease-in-out infinite;
}

/* ====== ВЕРХ: 2 колонки (текст + мокап) ====== */
.hero__top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 64px;
}
.hero__content { min-width: 0; }

.hero__title {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.05;
  margin-bottom: 32px;
  letter-spacing: -.035em;
}
.hero__title .accent,
.hero__accent { color: var(--accent-2); }

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero__location-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
}
.hero__pdf-link,
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color .2s;
}
.hero__pdf-link:hover,
.hero__phone:hover { color: var(--accent-2); opacity: 1; }
.hero__meta-sep { color: var(--border); }

/* ====== МОКАП ====== */
.hero__visual { display: flex; justify-content: flex-end; }
.hero__mockup {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  position: relative;
}
.hero__mockup::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.4;
  filter: blur(24px);
}
.mockup__bar { display: flex; gap: 6px; margin-bottom: 20px; }
.mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--dark-3); }
.mockup__bar span:nth-child(1) { background: #ef4444; }
.mockup__bar span:nth-child(2) { background: #f59e0b; }
.mockup__bar span:nth-child(3) { background: var(--accent); }
.mockup__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mockup__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.mockup__line { flex: 1; height: 8px; background: var(--dark-3); border-radius: 4px; }
.mockup__line--short { max-width: 40%; }
.mockup__line--medium { max-width: 70%; }
.mockup__code {
  margin-top: 20px;
  padding: 20px;
  background: #020617;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: #94a3b8;
  overflow-x: auto;
}
.mockup__code .c1 { color: #fbbf24; }
.mockup__code .c2 { color: #f472b6; }
.mockup__code .c3 { color: #60a5fa; }
.mockup__code .c4 { color: var(--accent); }

/* ====== БЛОКИ УСЛУГ (3 шт) ====== */
.hero__areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.hero-area {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s;
}
.hero-area:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 22, 40, .06);
}
.hero-area__icon { font-size: 24px; color: var(--accent-2); margin-bottom: 14px; line-height: 1; }
.hero-area__title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -.01em; line-height: 1.2; }
.hero-area__desc { font-size: 14px; color: var(--text-muted); line-height: 1.4; }

/* ====== ИНТЕГРАЦИИ (2 группы) ====== */
.hero__integrations {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}
.hero__integrations-logos--icons img {
  height: 32px;
  max-width: 40px;
  filter: none;
  opacity: 0.9;
}
.hero__integrations-group { min-width: 0; }
.hero__integrations-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.hero__integrations-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}
.hero__integrations-logos img {
  height: 36px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(30%);
  transition: all .2s;
}
.hero__integrations-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

/* ====== АДАПТИВ ====== */
@media (max-width: 1024px) {
  .hero__top { gap: 48px; }
  .hero__mockup { max-width: 400px; }
}

@media (max-width: 900px) {
  .hero { padding: 72px 0 56px; }
  .hero__top { grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
  .hero__visual { order: -1; justify-content: center; }
  .hero__mockup { max-width: 100%; }
  .hero__areas { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .hero-area { padding: 18px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
  .hero-area__icon { font-size: 20px; margin-bottom: 0; }
  .hero-area__title { font-size: 15px; }
  .hero-area__desc { grid-column: 2; font-size: 13px; margin-top: 2px; }
  .hero__integrations { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .hero__integrations-logos { gap: 12px 16px; }
  .hero__integrations-logos img { height: 32px; max-width: 64px; }
}

@media (max-width: 640px) {
  .hero__title { font-size: 40px; }
  .hero__location { font-size: 13px; padding: 8px 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__meta { font-size: 14px; }
}

/* ============ ЦИФРЫ ============ */
.numbers {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.number__value {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.number__value span { color: var(--accent-2); }
.number__label {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}
@media (max-width: 900px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .numbers { padding: 56px 0; }
}

/* ============ СЕТКИ ============ */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; gap: 20px; }
}

/* ============ КАРТОЧКИ ============ */
.card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  border: 1px solid var(--border);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card__icon {
  font-size: 40px;
  color: var(--accent-2);
  margin-bottom: 28px;
  line-height: 1;
}
.card__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.card__text {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

/* ============ КЕЙС-КАРТОЧКИ ============ */
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  min-height: 340px;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--dark);
  opacity: 1;
}
.case-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.case-card__num {
  font-size: 56px;
  font-weight: 900;
  color: var(--accent-2);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.case-card__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.case-card__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.case-card__subtitle {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 32px;
  flex: 1;
}
.case-card__more {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case-card:hover .case-card__more { color: var(--accent-2); }

.section--dark .case-card {
  background: var(--dark-3);
  border-color: var(--border-dark);
}
.section--dark .case-card:hover { border-color: var(--accent); }
.section--dark .case-card__num { color: var(--accent); }
.section--dark .case-card__subtitle { color: var(--text-soft); }
.section--dark .case-card__more { color: var(--accent); }
.section--dark .tag {
  background: var(--dark-2);
  color: #cbd5e1;
  border-color: var(--border-dark);
}

/* ============ ТЕГИ ============ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.tag--sm { padding: 6px 12px; font-size: 12px; }

/* ============ ШАГИ ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.step {
  padding: 36px 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all .25s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.step__num {
  font-size: 44px;
  font-weight: 900;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.step__text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* ============ СТЕК ============ */
.stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stack__group h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.stack__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.stack__tags .tag { background: var(--bg); font-size: 14px; padding: 8px 16px; }
@media (max-width: 1024px) {
  .stack { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .stack { grid-template-columns: 1fr; gap: 20px; }
  .stack__group h4 {
    font-size: 12px;
    margin-bottom: 12px;
    letter-spacing: .06em;
  }
  .stack__tags { gap: 6px; }
  .stack__tags .tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 100px;
  }
  .stack__providers {
    gap: 10px 14px;
  }
  .stack__providers img {
    height: 24px;
    max-width: 56px;
  }
}

/* ============ ПРОВАЙДЕРЫ ============ */
.providers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.providers--payment {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 720px;
}
.provider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 140px;
  transition: all .25s;
}
.provider:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--dark);
}
.provider img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.providers--dark .provider {
  background: var(--bg);
  border-color: transparent;
}
.providers--dark .provider:hover { border-color: var(--accent); }

/* ============ CTA ============ */
.cta {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -.03em;
  position: relative;
}
.cta__text {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-soft);
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta .btn { position: relative; }
@media (max-width: 640px) { .cta { padding: 72px 0; } }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: var(--text-inverse);
  padding: 80px 0 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.footer__logo { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.footer__tagline { color: var(--text-soft); font-size: 15px; line-height: 1.6; max-width: 320px; }
.footer__col h5 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.footer__col a, .footer__col p {
  display: block;
  color: #cbd5e1;
  font-size: 16px;
  padding: 6px 0;
}
.footer__col a:hover { color: var(--accent); opacity: 1; }
.footer__bottom {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 14px;
}
@media (max-width: 900px) {
  .footer { padding: 56px 0 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ============ ЗАГОЛОВОК СТРАНИЦЫ ============ */
.page-title {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.page-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 64px;
  line-height: 1.5;
}

/* ============ КЕЙС — ДЕТАЛЬНАЯ ============ */
.case-detail { padding: 80px 0 120px; }
.case-detail__back {
  margin-bottom: 56px;
  font-size: 16px;
  font-weight: 600;
}
.case-detail__back a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case-detail__back a:hover { color: var(--text); opacity: 1; }

.case-detail__head { margin-bottom: 72px; }
.case-detail__subtitle {
  font-size: clamp(20px, 2vw, 26px);
  color: var(--text-muted);
  margin: 24px 0 36px;
  max-width: 900px;
  line-height: 1.5;
}
.case-detail__tags { display: flex; flex-wrap: wrap; gap: 12px; }

.case-detail__h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -.025em;
}
.case-detail__desc, .case-detail__results,
.case-detail__tech-block, .case-detail__gallery {
  margin: 80px 0;
}
.case-detail__desc-text {
  font-size: 19px;
  line-height: 1.75;
  max-width: 900px;
  color: var(--text);
}
.case-detail__tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* Чек-лист */
.checklist { display: grid; gap: 16px; }
.checklist li {
  padding-left: 44px;
  position: relative;
  font-size: 19px;
  line-height: 1.6;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
}

/* Скриншоты */
.phones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.phone {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  transition: all .3s;
}
.phone:hover { box-shadow: var(--shadow-lg); }
.phone__screen img { width: 100%; height: auto; display: block; }
@media (max-width: 1024px) { .phones { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .phones { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* CTA в кейсе */
.case-detail__cta {
  margin-top: 100px;
  padding: 56px;
  background: var(--dark);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.case-detail__cta-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.case-detail__cta-text { color: var(--text-soft); font-size: 17px; }
@media (max-width: 700px) {
  .case-detail { padding: 48px 0 72px; }
  .case-detail__head { margin-bottom: 48px; }
  .case-detail__desc, .case-detail__results,
  .case-detail__tech-block, .case-detail__gallery { margin: 56px 0; }
  .case-detail__cta { padding: 32px; margin-top: 64px; }
}

/* ============ ФОРМЫ ============ */
.form { max-width: 640px; }
.form__row { margin-bottom: 28px; }
.form__row label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 16px;
}
.form__row input, .form__row textarea {
  width: 100%;
  padding: 18px 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 17px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: all .2s;
  min-height: 60px;
}
.form__row input:focus, .form__row textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.form__row textarea { min-height: 160px; resize: vertical; }
.form__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.form__note { color: var(--text-muted); font-size: 15px; }
.form__hint { color: var(--text-muted); font-size: 14px; display: block; margin-top: 6px; }

/* Алерты */
.alert {
  padding: 20px 26px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-size: 17px;
  font-weight: 500;
}
.alert--success { background: #dcfce7; color: #166534; }
.alert--error { background: #fee2e2; color: #991b1b; }
.alert ul { margin-left: 22px; }

/* ============ 404 ============ */
.error-code {
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -.05em;
}

/* ============ PROSE (о себе) ============ */
.prose { font-size: 19px; line-height: 1.75; }
.prose p { margin-bottom: 24px; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); margin: 56px 0 24px; letter-spacing: -.02em; }
.prose .checklist { margin: 24px 0 32px; }

/* ============ УТИЛИТЫ ============ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.section__more { margin-top: 56px; text-align: center; }

/* ============ STACK PROVIDERS (логотипы интеграций) ============ */
.stack__group--wide { grid-column: span 2; }
@media (max-width: 1024px) { .stack__group--wide { grid-column: span 2; } }
@media (max-width: 640px) { .stack__group--wide { grid-column: span 1; } }

.stack__providers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-top: 4px;
}
.stack__providers img {
  height: 32px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  opacity: .9;
  transition: all .2s;
}
.stack__providers img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Кнопка ghost в тёмной секции — видимый текст */
.section--dark .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.section--dark .btn--ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Все кейсы — кнопка по центру */
.section__more {
  margin-top: 56px;
  text-align: center;
}

/* ============ МОБИЛЬНОЕ МЕНЮ ============ */
body.menu-open { overflow: hidden; }

.header__burger.is-open span { background: transparent; }
.header__burger.is-open span::before { top: 0; transform: rotate(45deg); }
.header__burger.is-open span::after { bottom: 0; transform: rotate(-45deg); }
.header__burger span,
.header__burger span::before,
.header__burger span::after {
  transition: all .25s ease;
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 99;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
  box-shadow: -20px 0 60px rgba(10, 22, 40, .15);
}
.mobile-menu__inner {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu__link {
  display: block;
  padding: 20px 8px;
  font-size: 22px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: -.01em;
}
.mobile-menu__link:hover { color: var(--accent-2); opacity: 1; }
.mobile-menu__link:last-of-type { border-bottom: none; }
.mobile-menu__cta {
  margin-top: 32px;
}
.header__cta { display: inline-flex; }
@media (max-width: 900px) {
  .header__cta { display: none; }
}

/* ============ ABOUT PAGE ============ */
.hero--compact { padding: 80px 0 60px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-glow);
  color: var(--accent-2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.about-card {
  background: var(--dark);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.about-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -.02em;
  position: relative;
}
.about-card__name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.02em;
  position: relative;
}
.about-card__role {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 32px;
  position: relative;
}
.about-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
}
.about-stat__val {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.03em;
}
.about-stat__val span { color: var(--accent); }
.about-stat__lbl {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .hero--compact { padding: 48px 0 40px; }
  .about-card { padding: 28px; }
  .about-card__stats { gap: 14px; }
  .about-stat__val { font-size: 24px; }
}

/* ============ FOOTER UPDATE ============ */
.footer__col--brand { max-width: 320px; }
.footer__req { color: #cbd5e1; font-size: 14px; line-height: 1.5; padding: 2px 0; }
.footer__more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-top: 12px;
}
.footer__admin-link { color: var(--text-soft) !important; font-size: 13px !important; }

@media (max-width: 900px) {
  .footer__col--brand { max-width: 100%; }
}

/* ============ REQUISITES ============ */
.req-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 48px 0;
}
.req-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.req-row:last-child { border-bottom: none; }
.req-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
}
.req-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
.req-value a { color: var(--accent-2); }
.req-note {
  padding: 24px 28px;
  background: var(--accent-glow);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.6;
}
.req-note a { color: var(--accent-2); font-weight: 600; }
@media (max-width: 700px) {
  .req-card { padding: 24px 20px; }
  .req-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}

/* ============ POLICY / PRIVACY ============ */
.policy-info {
  padding: 28px 32px;
  background: var(--accent-glow);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0 48px;
  font-size: 16px;
  line-height: 1.7;
}
.policy-info p { margin-bottom: 6px; }
.policy-info p:last-child { margin-bottom: 0; }
.policy-info strong { color: var(--accent-2); }

.checklist--plain li::before {
  content: "·";
  background: transparent;
  color: var(--text-muted);
  font-size: 28px;
  font-weight: 900;
  line-height: 0.8;
}

.policy-actions {
  margin-top: 56px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .policy-info { padding: 20px 22px; }
}


/* ============ CONSENT CHECKBOX ============ */
.form__row--consent {
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 500;
}
.checkbox-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox-label a { color: var(--accent-2); font-weight: 600; }
.checkbox-label a:hover { text-decoration: underline; }

/* ============ DISABLED BUTTON ============ */
.btn--primary[disabled],
.btn[disabled] {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.7;
}
.btn--primary[disabled]:hover,
.btn[disabled]:hover {
  background: #cbd5e1;
  transform: none;
  box-shadow: none;
}

/* ============ HERO PDF LINK ============ */
.hero__pdf {
  margin-top: 20px;
}
.hero__pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  transition: all .2s;
}
.hero__pdf-link:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
  opacity: 1;
}

/* ============ CASE CTA ACTIONS ============ */
.case-detail__cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .case-detail__cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .case-detail__cta-actions .btn {
    width: 100%;
  }
}

/* ============ CASE CTA — ghost кнопка на тёмном фоне ============ */
.case-detail__cta .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.case-detail__cta .btn--ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}
.case-detail__cta .btn--ghost svg {
  color: #fff;
  stroke: #fff;
}

/* На мобильном — кнопки крупнее, но текст виден */
@media (max-width: 700px) {
  .case-detail__cta .btn--ghost {
    justify-content: center;
  }
}

/* ============ HERO INTEGRATIONS ============ */
.hero__integrations {
  margin-bottom: 40px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
}
.hero__integrations-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.hero__integrations-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
}
.hero__integrations-logos img {
  height: 36px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(40%);
  transition: all .2s;
}
.hero__integrations-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .hero__integrations { margin-bottom: 32px; padding: 20px 0 24px; }
  .hero__integrations-logos { gap: 14px 20px; }
  .hero__integrations-logos img { height: 30px; max-width: 64px; }
}

/* ============ HERO AREAS (3 блока) ============ */
.hero__areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 32px;
}
.hero-area {
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s;
}
.hero-area:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 22, 40, .06);
}
.hero-area__icon {
  font-size: 22px;
  color: var(--accent-2);
  margin-bottom: 12px;
  line-height: 1;
}
.hero-area__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.hero-area__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .hero__areas { grid-template-columns: 1fr; gap: 12px; }
  .hero-area { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
  .hero-area__icon { margin-bottom: 0; font-size: 20px; }
  .hero-area__title { font-size: 16px; }
  .hero-area__desc { grid-column: 2; font-size: 13px; margin-top: 2px; }
}

/* ============ POPUP MESSAGE (5 секунд) ============ */
.popup-message {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(10, 22, 40, .18), 0 0 0 1px rgba(10, 22, 40, .04);
  padding: 24px;
  z-index: 9999;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .35s ease;
  pointer-events: none;
}
.popup-message.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.popup-message__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.popup-message__close:hover {
  background: var(--border);
  color: var(--text);
}
.popup-message__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 28px;
}
.popup-message__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.popup-message__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.popup-message__role {
  font-size: 13px;
  color: var(--text-muted);
}
.popup-message__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 20px;
}
.popup-message__body b {
  color: var(--accent-2);
  font-weight: 700;
}
.popup-message__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--dark);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
  text-align: center;
}
.popup-message__cta:hover {
  background: var(--accent-2);
  color: #fff;
  opacity: 1;
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .popup-message {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    padding: 20px;
  }
  .popup-message__avatar { width: 42px; height: 42px; font-size: 16px; }
  .popup-message__body { font-size: 14px; }
}

/* ============ HERO LOCATION ============ */
.hero__location {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero__location-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@media (max-width: 640px) {
  .hero__location { font-size: 13px; padding: 6px 14px; }
}

/* ============================================================
   АНИМАЦИИ И WOW-ЭФФЕКТЫ
   ============================================================ */

/* ===== Появление hero-элементов каскадом ===== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title,
.hero__location,
.hero__areas,
.hero__integrations,
.hero__actions,
.hero__pdf {
  opacity: 0;
  animation: heroFadeUp 0.7s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero__title       { animation-delay: 0.05s; }
.hero__location    { animation-delay: 0.20s; }
.hero__areas       { animation-delay: 0.35s; }
.hero__integrations { animation-delay: 0.50s; }
.hero__actions     { animation-delay: 0.65s; }
.hero__pdf         { animation-delay: 0.80s; }

/* ===== Карточки hero-area появляются по очереди ===== */
.hero-area {
  opacity: 0;
  animation: heroFadeUp 0.6s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero-area:nth-child(1) { animation-delay: 0.40s; }
.hero-area:nth-child(2) { animation-delay: 0.50s; }
.hero-area:nth-child(3) { animation-delay: 0.60s; }

/* ===== Логотипы ТК — плавное появление ===== */
.hero__integrations-logos img {
  opacity: 0;
  animation: heroFadeUp 0.5s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero__integrations-logos img:nth-child(1) { animation-delay: 0.55s; }
.hero__integrations-logos img:nth-child(2) { animation-delay: 0.60s; }
.hero__integrations-logos img:nth-child(3) { animation-delay: 0.65s; }
.hero__integrations-logos img:nth-child(4) { animation-delay: 0.70s; }
.hero__integrations-logos img:nth-child(5) { animation-delay: 0.75s; }
.hero__integrations-logos img:nth-child(6) { animation-delay: 0.80s; }
.hero__integrations-logos img:nth-child(7) { animation-delay: 0.85s; }
.hero__integrations-logos img:nth-child(8) { animation-delay: 0.90s; }

/* ===== Мокап кода — появление + лёгкое парение ===== */
.hero__mockup {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(.16, 1, .3, 1) 0.3s forwards,
             mockupFloat 6s ease-in-out 1.2s infinite;
}
@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ===== Акцентная кнопка — мягкая пульсация (привлекает внимание) ===== */
.btn--accent {
  position: relative;
  overflow: hidden;
}
.btn--accent::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: btnPulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ===== Цифры (numbers) — акцентное появление ===== */
.number__value {
  transition: transform 0.3s ease;
}
.number:hover .number__value {
  transform: scale(1.05);
}

/* ===== Карточки услуг/кейсов — сложная анимация при hover ===== */
.card, .case-card {
  will-change: transform;
}

/* ===== Кейс-карточки: gradient border при hover ===== */
.case-card {
  position: relative;
}
.case-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.case-card:hover::before {
  opacity: 1;
}

/* ===== Иконки услуг — лёгкое вращение при hover ===== */
.card:hover .card__icon {
  transform: scale(1.15);
  transition: transform 0.3s cubic-bezier(.16, 1, .3, 1);
}

/* ===== Hero — градиентный «блик» ===== */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: glowMove 15s ease-in-out infinite;
}
@keyframes glowMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-80px, 40px) scale(1.15); }
}

/* ===== Стрелка «→» в кейс-карточке ===== */
.case-card__more {
  transition: gap 0.25s;
}

/* ===== Отключаем все анимации для пользователей с prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Иконки в ссылках кейса — img */
.case-link__icon img {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
  display: block;
}


/* ============ CASE CTA LINKS (v2) ============ */
.case-detail__desc .case-cta-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 32px !important;
  padding-top: 32px !important;
  border-top: 1px solid var(--border) !important;
}
.case-detail__desc .case-cta-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px 8px 12px !important;
  background: #fff !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 100px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  transition: all .2s !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  max-width: 100% !important;
}
.case-detail__desc .case-cta-link:hover {
  border-color: var(--text) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(10, 22, 40, .08) !important;
  opacity: 1 !important;
}
.case-detail__desc .case-cta-link__icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}
.case-detail__desc .case-cta-link__icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
  display: block !important;
}
.case-detail__desc .case-cta-link__label {
  line-height: 1 !important;
  font-size: 14px !important;
}

@media (max-width: 640px) {
  .case-detail__desc .case-cta-links { gap: 8px !important; margin-top: 24px !important; padding-top: 24px !important; }
  .case-detail__desc .case-cta-link { padding: 7px 12px 7px 10px !important; font-size: 13px !important; }
  .case-detail__desc .case-cta-link__icon { width: 20px !important; height: 20px !important; }
  .case-detail__desc .case-cta-link__icon img { max-width: 20px !important; max-height: 20px !important; }
}

/* ============ LANG SWITCHER ============ */
.lang-switcher {
  position: relative;
  margin-right: 12px;
}
.lang-switcher__current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.lang-switcher__current:hover {
  border-color: var(--dark);
}
.lang-switcher__flag {
  font-size: 18px;
  line-height: 1;
}
.lang-switcher__code {
  font-size: 13px;
  letter-spacing: .05em;
}
.lang-switcher__arrow {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}
.lang-switcher.is-open .lang-switcher__arrow {
  transform: rotate(180deg);
}
.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(10, 22, 40, .12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  z-index: 1001;
}
.lang-switcher.is-open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: background .15s;
  white-space: nowrap;
}
.lang-switcher__item:hover {
  background: var(--bg-soft);
  opacity: 1;
}
.lang-switcher__item.is-active {
  background: var(--accent-glow);
  color: var(--accent-2);
}
.lang-switcher__item .lang-switcher__flag {
  font-size: 20px;
}
.lang-switcher__item .lang-switcher__name {
  flex: 1;
}

@media (max-width: 900px) {
  .lang-switcher { margin-right: 4px; }
  .lang-switcher__current { padding: 8px 10px; }
  .lang-switcher__code { display: none; }
  .lang-switcher__dropdown { right: -60px; }
}

/* ============ FIX: About hero — убираем пустое пространство ============ */
.hero--compact {
  padding: 80px 0 40px;
}
.hero--compact .hero__top {
  align-items: start;
  margin-bottom: 0;
  gap: 60px;
}

/* Если карточка в hero--compact слишком маленькая — чуть больше */
.hero--compact .about-card {
  padding: 36px;
}

@media (max-width: 900px) {
  .hero--compact {
    padding: 48px 0 32px;
  }
  .hero--compact .hero__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============ SOCIAL CONTACTS (мессенджеры) ============ */
.social-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.social-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s;
}
.social-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10, 22, 40, .08);
  opacity: 1;
}
.social-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
}
.social-contact__icon svg {
  width: 28px;
  height: 28px;
}
.social-contact__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.social-contact__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.social-contact__value {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Индивидуальные цвета */
.social-contact--tg .social-contact__icon { background: #e7f6fc; color: #229ed9; }
.social-contact--tg:hover { border-color: #229ed9; }

.social-contact--vk .social-contact__icon { background: #eaf1fb; color: #0077ff; }
.social-contact--vk:hover { border-color: #0077ff; }

.social-contact--wa .social-contact__icon { background: #e5f8e8; color: #25d366; }
.social-contact--wa:hover { border-color: #25d366; }

/* Дисклеймер */
.social-disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
  margin-top: -20px;
  margin-bottom: 32px;
  padding-left: 14px;
  position: relative;
}
.social-disclaimer__mark {
  position: absolute;
  left: 0;
  top: 0;
  color: #dc2626;
  font-weight: 800;
}

/* Разделитель */
.social-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

@media (max-width: 700px) {
  .social-contacts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .social-contact { padding: 16px; }
  .social-contact__icon { width: 42px; height: 42px; }
  .social-contact__icon svg { width: 24px; height: 24px; }
}

/* ============ STICKY MOCKUP (только десктоп) ============ */
@media (min-width: 1025px) {
  /* Sticky-мокап: едет при скролле до конца hero */
  .hero__top {
    align-items: stretch;
  }
  .hero__visual {
    position: sticky;
    top: 120px;
    align-self: start;
    z-index: 1;
    height: fit-content;
    max-height: calc(100vh - 140px);
  }
}

/* ============ HERO TERMINAL (матрица) ============ */
.mockup__terminal {
  margin-top: 20px;
  padding: 20px 24px;
  background: #020617;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
  min-height: 60px;
  position: relative;
  box-shadow: inset 0 0 24px rgba(34, 197, 94, 0.08);
}

.mockup__terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(34, 197, 94, 0.03) 2px,
    rgba(34, 197, 94, 0.03) 4px
  );
  pointer-events: none;
}

.mockup__terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.mockup__prompt {
  color: #22c55e;
  font-weight: 800;
  flex-shrink: 0;
}

.mockup__text {
  color: #4ade80;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  word-break: break-word;
  flex: 1;
}

.mockup__cursor {
  display: inline-block;
  width: 9px;
  height: 1.2em;
  background: #22c55e;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  flex-shrink: 0;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Мобильная версия — мельче */
@media (max-width: 640px) {
  .mockup__terminal {
    font-size: 13px;
    padding: 16px 18px;
    min-height: 50px;
  }
}

/* ============ HERO BADGE (под любой вид бизнеса) ============ */
.hero__badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 32px;
}
.hero__badge-icon {
  font-size: 12px;
  color: var(--accent);
  animation: pulse-icon 2s ease-in-out infinite;
}
@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}
@media (max-width: 640px) {
  .hero__badge { font-size: 13px; padding: 8px 14px; }
}
