/* ==================== ПЕРЕМЕННЫЕ (ЦВЕТА ЛОГОТИПА) ==================== */
:root {
  /* Корпоративные цвета из логотипа */
  --bg: #ffffff;           /* Белый фон */
  --bg-2: #f0f7ff;         /* Очень светлый голубой для секций */
  --surface: #ffffff;      /* Белый для карточек */
  
  --text: #1a1a1a;         /* Чёрный текст (как в логотипе) */
  --muted: #4a5568;        /* Серый для второстепенного текста */
  
  /* Оттенки синего из логотипа */
  --accent: #2b87d8;       /* Основной синий (как на логотипе) */
  --accent-dark: #1a4f7a;  /* Тёмно-синий для наведения */
  --accent-light: #e3f2fd; /* Светло-голубой для фонов */
  --accent-gradient: linear-gradient(135deg, #5cb3f5 0%, #1a4f7a 100%);
  
  --border: #d1d9e6;       /* Светлая граница */
  --radius: 6px;           /* Строгий корпоративный стиль */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --max-w: 1200px;
}

/* ==================== БАЗА ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== КНОПКИ ==================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  font-family: inherit;
  text-align: center;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 135, 216, 0.3);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ==================== ШАПКА ==================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.logo-img {
  display: flex;
  align-items: center;
}

.logo-img img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta .btn {
  padding: 10px 22px;
}

.phone {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ==================== HERO (ГЛАВНЫЙ ЭКРАН) ==================== */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(92, 179, 245, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 .hl {
  color: var(--accent);
  display: block;
}

.hero .lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  max-width: 600px;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ==================== ФОРМЫ ==================== */
.hero-form {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-form h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
}

.hero-form p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.input, .textarea {
  width: 100%;
  padding: 13px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(43, 135, 216, 0.1);
}

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

.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.2s;
  display: block;
  background: #f8fafc;
}

.file-upload:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.file-upload input {
  display: none;
}

.file-name {
  font-size: 13px;
  color: var(--accent);
  margin-top: 8px;
  word-break: break-all;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: #047857;
  display: none;
  padding: 12px;
  background: #ecfdf5;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  cursor: pointer;
}

.form-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==================== БАННЕР COOKIE ==================== */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  background: #ffffff;
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-actions button {
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.cookie-decline {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
}

.cookie-accept {
  background: var(--accent);
  border: none;
  color: #ffffff;
}

/* ==================== ПРАВОВАЯ СТРАНИЦА ==================== */
.legal {
  padding: 64px 0 80px;
}

.legal .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
}

.legal h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 10px 0 12px;
  color: var(--text);
}

.legal .lead {
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
  margin-bottom: 8px;
}

.legal section {
  padding: 0;
  margin-top: 32px;
  max-width: 760px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal p, .legal li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.legal p + p {
  margin-top: 10px;
}

.legal ul {
  margin: 8px 0 8px 20px;
}

.legal li {
  margin-bottom: 4px;
}

/* ==================== ОБЩИЕ СЕКЦИИ ==================== */
section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
}

.section-head p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== ЭТАПЫ ==================== */
.stages {
  background: var(--bg-2);
}

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

.stage {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
}

.stage:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(43, 135, 216, 0.15);
}

.stage-num {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--accent-gradient);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.stage h4 {
  font-size: 17px;
  margin: 8px 0 10px;
  color: var(--text);
}

.stage p {
  font-size: 14px;
  color: var(--muted);
}

/* ==================== КЛАСТЕРЫ УСЛУГ ==================== */
.clusters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cluster {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.cluster:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(43, 135, 216, 0.12);
}

.cluster-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.cluster h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text);
}

.cluster ul {
  list-style: none;
}

.cluster li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cluster li:last-child {
  border: none;
}

.cluster li::before {
  content: "→";
  color: var(--accent);
  font-weight: bold;
}

/* ==================== ОТРАСЛИ ==================== */
.industries {
  background: var(--bg);
}

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

.ind {
  padding: 32px 24px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.ind:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 135, 216, 0.1);
}

.ind-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.ind-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

/* ==================== КЕЙСЫ ==================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.case:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(43, 135, 216, 0.15);
}

.case-img {
  height: 180px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.case-body {
  padding: 24px;
}

.case-tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case h4 {
  font-size: 18px;
  margin: 10px 0 12px;
  color: var(--text);
}

.case p {
  font-size: 14px;
  color: var(--muted);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.case-meta span:first-child {
  color: var(--muted);
}

.case-meta span:last-child {
  color: var(--accent-dark);
  font-weight: 600;
}

/* ==================== ДОВЕРИЕ ==================== */
.trust {
  background: var(--bg-2);
}

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

.trust-item {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.trust-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.trust-item .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.trust-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.trust-item p {
  font-size: 13px;
  color: var(--muted);
}

/* ==================== КОНТАКТЫ ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row .ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-row .lbl {
  font-size: 12px;
  color: var(--muted);
}

.contact-row .val {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.messengers {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.msg {
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: all 0.2s;
  font-weight: 500;
  color: var(--text);
}

.msg:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ==================== ПОДВАЛ ==================== */
footer {
  padding: 40px 0 24px;
  background: var(--accent-dark);
  color: #ffffff;
  border-top: 1px solid var(--border);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-grid h5 {
  font-size: 14px;
  margin-bottom: 14px;
  color: #8ecbff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.foot-grid ul {
  list-style: none;
}

.foot-grid li {
  font-size: 14px;
  color: #d0e3f5;
  padding: 4px 0;
}

.foot-grid a:hover {
  color: #ffffff;
}

.foot-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #a8c8e8;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 900px) {
  .nav-links, .nav-cta .phone {
    display: none;
  }
  .burger {
    display: block;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px;
    border-bottom: 2px solid var(--border);
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stages-grid,
  .clusters,
  .cases-grid,
  .trust-grid,
  .contact-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .ind-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  section {
    padding: 60px 0;
  }
  .hero {
    padding: 60px 0;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stat-num {
    font-size: 28px;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 0 16px;
  }
  .hero-form {
    padding: 24px 20px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}