/* =========================================
   DA GROUP — LANDING PAGE STYLES
   Нуар / vigilante-эстетика
   ========================================= */

/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
  /* --- Акцентный цвет: раскомментируй нужный вариант и закомментируй другой --- */
  --accent: #E53935;          /* КРАСНЫЙ (активен) */
  /* --accent: #F59E0B; */   /* ЯНТАРНЫЙ (раскомментировать для сравнения) */

  --accent-dim: color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 30%, transparent);

  /* Фон */
  --bg:           #111111;
  --bg-2:         #161616;
  --bg-3:         #1a1a1a;
  --bg-card:      #171717;
  --bg-card-hover:#1e1e1e;
  --border:       #252525;
  --border-light: #2e2e2e;

  /* Текст */
  --text:         #f0f0f0;
  --text-muted:   #7a7a7a;
  --text-dim:     #444;

  /* Шрифты */
  --font-head:    'Montserrat', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Радиусы */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Тени */
  --shadow-card:  0 0 0 1px var(--border), 0 4px 24px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 24px var(--accent-glow), 0 0 48px var(--accent-dim);
}

/* Ambient glow spots */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 75% 10%, rgba(229,57,53,0.055) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 15% 85%, rgba(229,57,53,0.035) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ===== ЗЕРНО / ШУМ ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Фирменный акцент: буквы DA/ДА */
.da {
  color: var(--accent);
}

/* ===== КОНТЕЙНЕР ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-dim);
}
.btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.btn--primary:active { transform: none; filter: brightness(0.95); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Top accent bar */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, var(--accent) 60%, transparent 100%);
  z-index: 9999;
  opacity: 0.7;
}

/* ===== ШАПКА ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,17,17,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo--sm { font-size: 18px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }

/* Бургер (мобильный) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 2px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== СЕКЦИИ (общее) ===== */
.section { padding: 96px 0; }

.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 56px;
}

/* Бейдж-метка */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Тег */
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Гигантский DA-текст на фоне */
.hero__bg-letters {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(200px, 30vw, 460px);
  color: transparent;
  -webkit-text-stroke: 1px var(--border-light);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  opacity: 0.5;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content { max-width: 600px; }

.hero__title {
  font-size: clamp(36px, 5.5vw, 68px);
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: #9a9a9a;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero__stat-val {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero__stat + .hero__stat {
  padding-left: 40px;
  border-left: 1px solid var(--border);
}

/* Декоративный SVG-город */
.hero__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.hero__svg {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 0 40px var(--accent-dim));
}

.hero__visual::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(229,57,53,0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero__svg { position: relative; z-index: 1; }

/* Декоративная линия под hero */
.hero__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

/* Premium gradient on accent spans in headings */
.section-title .da,
.hero__title .da,
.contact__title .da {
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #ff8a80) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== БОЛИ ===== */
.pain {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 8%, var(--bg-2) 92%, var(--bg) 100%);
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.pain__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.pain__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(229,57,53,0.12);
}

.pain__icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 20px;
}
.pain__icon svg { width: 100%; height: 100%; }

.pain__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.pain__text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== УСЛУГИ ===== */
.services { background: var(--bg); }

/* Основная вилка */
.services__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  margin-bottom: 64px;
}

.service-card--main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card--main:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.service-card--featured {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 40px var(--accent-dim), inset 0 1px 0 rgba(255,255,255,0.04);
  background: linear-gradient(160deg, #1a1010 0%, var(--bg-card) 60%);
}

.service-card__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: fit-content;
}
.service-card__badge--accent {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.service-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service-card__list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Разделитель перед точечными */
.services__spot-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.services__spot-label::before,
.services__spot-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Сетка точечных услуг */
.services__spot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.spot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.spot-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}

.spot-card__icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.spot-card__icon svg { width: 100%; height: 100%; }
.spot-card__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.spot-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== КЕЙСЫ ===== */
.cases {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 8%, var(--bg-2) 92%, var(--bg) 100%);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-card__category {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-metric { display: flex; flex-direction: column; gap: 4px; }
.case-metric__label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.case-metric__values { display: flex; align-items: center; gap: 10px; }
.case-metric__before {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
}
.case-metric__arrow { color: var(--text-dim); font-size: 14px; }
.case-metric__after {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}
.case-metric__after--good { color: #4caf73; }

.case-card__desc { font-size: 13px; color: var(--text-muted); flex: 1; }
.case-card__tag {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== КЛИЕНТЫ ===== */
.clients {
  background: var(--bg);
  padding: 80px 0;
}

.clients__title {
  margin-bottom: 48px;
}

.clients__logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.client-logo {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s, transform 0.25s;
}
.client-logo:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(229,57,53,0.1);
}
.client-logo__name {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.client-logo__turn {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 8%, var(--bg-2) 92%, var(--bg) 100%);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card__stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }
.review-card__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.review-card__name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.review-card__role { font-size: 12px; color: var(--text-muted); }

.reviews--hidden {
  display: none;
}

/* ===== КОМАНДА ===== */
.team { background: var(--bg); }

.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: var(--border-light); }

.team-card__photo {
  background: linear-gradient(180deg, #0d0d0d 0%, var(--bg-2) 100%);
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.team-card__photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(0deg, rgba(229,57,53,0.08) 0%, transparent 100%);
  pointer-events: none;
}
.team-card__silhouette {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__info { padding: 28px; display: flex; flex-direction: column; gap: 10px; }

.team-card__name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
}
.team-card__role {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-card__superpower {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.team-card__sp-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-card__sp-value {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.team-card__bio { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.team-card__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-card__facts li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.team-card__facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--accent);
  border-radius: 2px;
}
.team-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ===== КОНТАКТ / ФОРМА ===== */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 8%, var(--bg-2) 92%, var(--bg) 100%);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__title {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}

.contact__sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.contact__channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: all 0.2s;
  width: fit-content;
}
.contact__channel:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Форма */
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }
.form-input.is-error { border-color: #f44; }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-select option { background: var(--bg-3); color: var(--text); }
.form-select optgroup { color: var(--text-muted); font-weight: 600; }

.form-textarea { resize: vertical; min-height: 110px; }

.form-status {
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.form-status.is-success { color: #4caf73; }
.form-status.is-error   { color: #f44; }

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* Спиннер кнопки */
.btn-spinner { display: none; }
.btn.is-loading .btn-text { display: none; }
.btn.is-loading .btn-spinner { display: inline; }

/* ===== ФУТЕР ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
}

.footer__contact-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--accent); }

.footer__legal-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}
.footer__privacy {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer__privacy:hover { color: var(--text-muted); }

/* ===== АНИМАЦИИ ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-dim); }
  50%       { box-shadow: 0 4px 40px var(--accent-glow), 0 0 60px var(--accent-dim); }
}

.animate-in {
  animation: fadeUp 0.6s ease forwards;
}

.hero__visual--float {
  animation: float 7s ease-in-out infinite;
}

.btn--pulse {
  animation: pulse-glow 3s ease-in-out infinite;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== АДАПТИВ ===== */

/* Планшет */
@media (max-width: 1024px) {
  .pain__grid { grid-template-columns: repeat(2, 1fr); }
  .services__spot { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__bg-letters { font-size: 220px; right: -8%; opacity: 0.25; }
  .cases__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .clients__logos { grid-template-columns: repeat(2, 1fr); }
}

/* Мобильный */
@media (max-width: 640px) {
  .section { padding: 64px 0; }

  /* Навигация */
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(17,17,17,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .nav .btn--sm {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }
  .nav-toggle { display: flex; }

  .hero { min-height: 100svh; padding: 80px 0 48px; }
  .hero__title { font-size: 36px; }
  .hero__actions { flex-direction: column; }
  .hero__stats { flex-direction: column; gap: 20px; }
  .hero__bg-letters { display: none; }

  .pain__grid { grid-template-columns: 1fr; }
  .services__main { grid-template-columns: 1fr; }
  .services__spot { grid-template-columns: 1fr 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; max-width: 400px; }
  .contact__form { padding: 24px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom .container { flex-direction: column; gap: 8px; text-align: center; }

  .clients__logos { grid-template-columns: 1fr 1fr; }
  .contact__channels { flex-direction: row; flex-wrap: wrap; }
  .upcoming__grid { grid-template-columns: 1fr; }
}

/* Очень маленький экран */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 30px; }
}

/* ===== СКОРО ===== */
.upcoming {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 8%, var(--bg-2) 92%, var(--bg) 100%);
}

.upcoming__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.upcoming-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.upcoming-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229,57,53,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.upcoming-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), 0 8px 40px rgba(0,0,0,0.4);
}

.upcoming-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--accent-dim);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  width: fit-content;
}
.upcoming-card__badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.upcoming-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: 0.7;
}
.upcoming-card__icon svg { width: 100%; height: 100%; }

.upcoming-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.upcoming-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.upcoming__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 8px;
}

.upcoming__cta-text {
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .upcoming__grid { grid-template-columns: 1fr 1fr; }
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
