/* index.css — только для главной страницы */

/* ---------- RESET & GLOBAL ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 56px;
}

/* ---------- HEADER ---------- */
.header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
}

.header__inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 0;
  gap: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.logo-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-desc {
  font-size: 13px;
  color: #666;
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-left: auto;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav a:hover {
  color: #4169E1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

.phone {
  text-align: right;
}

.phone-number {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

.phone-hours {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.cta-button {
  background: #4169E1;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  white-space: nowrap;
}

.cta-button:hover {
  background: #365ac7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

/* ---------- HERO (главная) ---------- */
.hero {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0.15) 25%, rgba(255,255,255,0) 100%);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-tag {
  color: #4169E1;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
  color: #1a1a1a;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-primary {
  background: #4169E1;
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: #365ac7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65, 105, 225, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #1a1a1a;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: #4169E1;
  color: #4169E1;
}

.hero-promise {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
  font-size: 14px;
}

.hero-promise svg {
  width: 20px;
  height: 20px;
  color: #4169E1;
  flex-shrink: 0;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- STATS FRAME (4 преимущества) ---------- */
.stats-frame {
  background: #f9fafb;
  padding: 80px 0;
}

.stats-frame .stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-frame-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.stat-frame-icon {
  width: 64px;
  height: 64px;
  background: #f0f4ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4169E1;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.stat-frame-icon svg {
  width: 32px;
  height: 32px;
}

.stat-frame-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.2;
}

.stat-frame-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* ---------- АДАПТИВ STATS ---------- */
@media (max-width: 1024px) {
  .stats-frame .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .stats-frame {
    padding: 60px 0;
  }
  .stats-frame .stats__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat-frame-card {
    padding: 24px 20px;
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 16px;
  }
  .stat-frame-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0;
  }
  .stat-frame-icon svg {
    width: 26px;
    height: 26px;
  }
  .stat-frame-title {
    font-size: 20px;
  }
}

/* ---------- КАЛЬКУЛЯТОР ---------- */
.calc-section {
  background: #f9fafb;
  padding: 20px 0;
}
.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}
.calc-tab {
  padding: 12px 22px;
  border: 2px solid #e0e6f5;
  border-radius: 100px;
  background: white;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.calc-tab.active {
  border-color: #4169E1;
  background: #4169E1;
  color: white;
}
.calc-tab:hover:not(.active) {
  border-color: #4169E1;
  color: #4169E1;
}
.calc-body {
  display: none;
}
.calc-body.active {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.calc-controls {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.calc-field {
  margin-bottom: 28px;
}
.calc-field:last-child {
  margin-bottom: 0;
}
.calc-field > label:first-child {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
  font-size: 15px;
}
.calc-field input[type=range] {
  width: 100%;
  accent-color: #4169E1;
  cursor: pointer;
  margin-top: 4px;
}
.calc-range-val {
  display: inline-block;
  background: #4169E1;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
}
.calc-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-check {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f8ff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.calc-check:hover {
  background: #e8edff;
}
.calc-check input {
  accent-color: #4169E1;
  cursor: pointer;
}
.calc-check:has(input:checked) {
  background: #dbe4ff;
  color: #1a1a1a;
  font-weight: 600;
}
.calc-result-box {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  position: sticky;
  top: 100px;
  border: 2px solid #e8edff;
}
.calc-result-box h3 {
  font-size: 15px;
  color: #4a4a4a;
  margin-bottom: 12px;
  font-weight: 600;
}
.calc-price {
  font-size: 40px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}
.calc-price-unit {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  display: inline-block;
  margin-left: 2px;
}
.calc-price-desc {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.4;
}
.calc-breakdown {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-bottom: 20px;
}
.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  color: #4a4a4a;
}
.calc-breakdown-item strong {
  color: #1a1a1a;
}
.calc-cta {
  width: 100%;
  justify-content: center;
  background: #4169E1;
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  text-decoration: none;
}
.calc-cta:hover {
  background: #365ac7;
}
.calc-note {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 12px;
}
@media (max-width: 768px) {
  .calc-body.active {
    grid-template-columns: 1fr;
  }
  .calc-result-box {
    position: static;
  }
  .calc-tabs {
    gap: 6px;
  }
  .calc-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
  .calc-price {
    font-size: 32px;
  }
  .calc-controls {
    padding: 24px;
  }
  .calc-field {
    margin-bottom: 20px;
  }
  .calc-check {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ---------- КАРТОЧКИ УСЛУГ (с графикой и анимацией) ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  padding: 56px 44px 48px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  cursor: pointer;
}

.service-card:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14);
}

/* Контейнер графики */
.service-card__graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.graphic-element {
  position: absolute;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.5) translateY(20px);
}

.service-card:hover .graphic-element {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Каскадные задержки появления */
.service-card:hover .ge-1 { transition-delay: 0.05s; }
.service-card:hover .ge-2 { transition-delay: 0.10s; }
.service-card:hover .ge-3 { transition-delay: 0.15s; }
.service-card:hover .ge-4 { transition-delay: 0.20s; }
.service-card:hover .ge-5 { transition-delay: 0.25s; }
.service-card:hover .ge-6 { transition-delay: 0.30s; }

/* Карточка 1: IT-аутсорсинг (красный) */
.card-red .corner {
  width: 24px;
  height: 24px;
  border-color: #E5484D;
  border-style: solid;
  border-width: 0;
}
.card-red .corner-tl {
  border-top-width: 3px;
  border-left-width: 3px;
  top: 20px;
  left: 20px;
}
.card-red .corner-br {
  border-bottom-width: 3px;
  border-right-width: 3px;
  bottom: 20px;
  right: 20px;
}
.card-red .pulse-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #E5484D;
  top: 24px;
  right: 24px;
}
.service-card:hover .card-red .pulse-circle {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.3; }
}
.card-red .orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #E5484D;
  background: transparent;
}
.card-red .orb-1 { width: 16px; height: 16px; top: 14px; right: 90px; }
.card-red .orb-2 { width: 12px; height: 12px; top: 70px; right: 80px; }
.card-red .orb-3 { width: 20px; height: 20px; top: 4px; right: 44px; border-width: 3px; }
.card-red .orb-4 { width: 8px; height: 8px; background: #E5484D; border: none; top: 76px; right: 14px; }

/* Карточка 2: Разработка (жёлтый) */
.card-yellow .hex-cell {
  width: 22px;
  height: 25px;
  background: #E8A840;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: absolute;
}
.card-yellow .h1 { bottom: 20px; right: 20px; }
.card-yellow .h2 { bottom: 20px; right: 46px; }
.card-yellow .h3 { bottom: 20px; right: 72px; }
.card-yellow .h4 { bottom: 48px; right: 33px; }
.card-yellow .h5 { bottom: 48px; right: 59px; }
.card-yellow .h6 { bottom: 76px; right: 20px; }
.card-yellow .h7 { bottom: 76px; right: 46px; }
.card-yellow .th1 { top: 20px; right: 20px; }
.card-yellow .th2 { top: 20px; right: 46px; }
.card-yellow .th3 { top: 48px; right: 33px; }
.service-card:hover .card-yellow .h1 { opacity: 0.9; }
.service-card:hover .card-yellow .h2 { opacity: 0.7; }
.service-card:hover .card-yellow .h3 { opacity: 0.5; }
.service-card:hover .card-yellow .h4 { opacity: 0.8; }
.service-card:hover .card-yellow .h5 { opacity: 0.6; }
.service-card:hover .card-yellow .h6 { opacity: 0.7; }
.service-card:hover .card-yellow .h7 { opacity: 0.4; }
.service-card:hover .card-yellow .th1 { opacity: 0.9; }
.service-card:hover .card-yellow .th2 { opacity: 0.6; }
.service-card:hover .card-yellow .th3 { opacity: 0.4; }

/* Карточка 3: Автоматизация (зелёный) */
.card-green .bar {
  width: 6px;
  border-radius: 3px;
  background: #2FBF71;
  bottom: 30px;
}
.card-green .bar-1 { height: 20px; right: 80px; }
.card-green .bar-2 { height: 32px; right: 60px; }
.card-green .bar-3 { height: 44px; right: 40px; }
.card-green .bar-4 { height: 56px; right: 20px; }
.card-green .bar-5 { height: 14px; right: 100px; }
.service-card:hover .card-green .bar {
  animation: barPulse 1.5s ease-in-out infinite;
}
.service-card:hover .card-green .bar-1 { animation-delay: 0s; }
.service-card:hover .card-green .bar-2 { animation-delay: 0.1s; }
.service-card:hover .card-green .bar-3 { animation-delay: 0.2s; }
.service-card:hover .card-green .bar-4 { animation-delay: 0.3s; }
.service-card:hover .card-green .bar-5 { animation-delay: 0.15s; }
@keyframes barPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.3); }
}
.card-green .grid-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2FBF71;
}
.card-green .grid-1 { top: 20px; right: 20px; }
.card-green .grid-2 { top: 20px; right: 35px; }
.card-green .grid-3 { top: 20px; right: 50px; }
.card-green .grid-4 { top: 35px; right: 20px; }
.card-green .grid-5 { top: 35px; right: 35px; }
.card-green .grid-6 { top: 35px; right: 50px; }
.card-green .grid-7 { top: 50px; right: 20px; }
.card-green .grid-8 { top: 50px; right: 35px; }
.card-green .grid-9 { top: 50px; right: 50px; }
.card-green .wave {
  position: absolute;
  width: 70px;
  height: 20px;
  top: 65px;
  right: 20px;
}
.card-green .wave svg {
  width: 100%;
  height: 100%;
}
.card-green .wave path {
  fill: none;
  stroke: #2FBF71;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Текст и кнопка в карточках услуг */
.service-card__title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  transition: color 0.35s ease;
  position: relative;
  z-index: 2;
}
.service-card__desc {
  color: #4a4a4a;
  font-size: 18px;
  margin-bottom: 40px;
  flex-grow: 1;
  transition: color 0.35s ease;
  position: relative;
  z-index: 2;
}
.service-card:hover .service-card__title,
.service-card:hover .service-card__desc {
  color: #ffffff;
}
.service-card .btn-primary {
  align-self: flex-start;
  position: relative;
  z-index: 2;
  transition: all 0.35s ease;
}
.service-card:hover .btn-primary {
  background: #ffffff;
  color: #1a1a1a;
}

/* Адаптив карточек услуг */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card {
    min-height: 400px;
    padding: 44px 32px 40px;
  }
}
@media (max-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 380px;
    padding: 36px 28px 32px;
  }
  .service-card__title {
    font-size: 24px;
  }
  .service-card__desc {
    font-size: 16px;
  }
}

/* ---------- БЛОК «НАШИ ПАРТНЁРЫ» (тикер) ---------- */
.ticker-section {
  border-top: 1px solid #e8ecf4;
  border-bottom: 1px solid #e8ecf4;
}
.ticker-wrap {
  overflow: hidden;
  background: #fff;
  margin-top: -10px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 80px;
  line-height: 80px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
}
.ticker-item + .ticker-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
}
.ticker-item--white {
  background: #ffffff;
  color: #999;
}
.ticker-item--white + .ticker-item::before {
  background: #e8ecf4;
}
.ticker-item--light {
  background: #eef2fd;
  color: #4169E1;
}
.ticker-item--light + .ticker-item::before {
  background: rgba(65,105,225,0.2);
}
.ticker-item--solid {
  background: #4169E1;
  color: #ffffff;
}
.ticker-item--solid + .ticker-item::before {
  background: rgba(255,255,255,0.3);
}

/* ---------- БЛОК «КАКИЕ ПРОБЛЕМЫ МЫ РЕШАЕМ» ---------- */
.problems-section__header {
  margin-bottom: 10px;
}
.problems-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f6fb;
  border-radius: 20px;
  padding: 8px 16px;
}
.problems-checklist__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  font-size: 20px;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.6;
  border-bottom: 1px solid #e2e8f4;
}
.problems-checklist__item:nth-last-child(1),
.problems-checklist__item:nth-last-child(2) {
  border-bottom: none;
}
.problems-checklist__icon {
  flex-shrink: 0;
}
.problems-checklist__icon svg circle {
  fill: #dce5f8;
}
@media (max-width: 768px) {
  .problems-checklist {
    grid-template-columns: 1fr;
  }
  .problems-checklist__item {
    padding: 18px 20px;
    font-size: 16px;
  }
  .problems-checklist__item:nth-last-child(2) {
    border-bottom: 1px solid #e2e8f4;
  }
  .problems-checklist__item:nth-last-child(1) {
    border-bottom: none;
  }
}

/* ---------- FAQ (аккордеон) ---------- */
.faq__header {
  margin-bottom: 48px;
}
.faq__intro {
  font-size: 18px;
  color: #4a4a4a;
  margin-top: -32px;
  line-height: 1.5;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq__item {
  border-bottom: 1px solid #e8e8e8;
}
.faq__question {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.faq__question:hover {
  color: #4169E1;
}
.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: #4169E1;
  transition: transform 0.3s ease;
}
.faq__icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}
.faq__icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}
.faq__item.open .faq__icon::after {
  transform: rotate(90deg);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq__item.open .faq__answer {
  max-height: 250px;
  padding-bottom: 22px;
}
.faq__answer p {
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .faq__intro {
    font-size: 16px;
    margin-top: -24px;
  }
  .faq__question {
    font-size: 16px;
    padding: 16px 0;
  }
  .faq__answer p {
    font-size: 15px;
  }
}

/* ---------- CTA-ФОРМА ---------- */
.cta-section {
  background: #f9fafb;
  text-align: center;
}
.cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 48px auto 0;
}
.input {
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  transition: border-color 0.3s;
}
.input:focus {
  outline: none;
  border-color: #4169E1;
}
textarea.input {
  resize: vertical;
  min-height: 100px;
}

/* ---------- ФУТЕР ---------- */
.footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 72px 0 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__logo-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.footer__logo-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}
.footer__logo-desc {
  font-size: 18px;
  color: #888;
}
.footer__slogan {
  font-size: 18px;
  color: #888;
  line-height: 1.5;
  margin-top: 8px;
  max-width: 280px;
}
.footer__nav {
  display: flex;
  gap: 24px;
}
.footer__col h4,
.footer__docs h4 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}
.footer__col p,
.footer__docs p {
  margin-bottom: 10px;
}
.footer__col a,
.footer__docs a {
  font-size: 14px;
  color: #999;
  transition: color 0.2s;
}
.footer__col a:hover,
.footer__docs a:hover {
  color: #4169E1;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  color: #666;
}
.footer__bottom a {
  color: #888;
  transition: color 0.2s;
}
.footer__bottom a:hover {
  color: #4169E1;
}
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__nav {
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__brand {
    grid-column: 1;
  }
  .footer__nav {
    flex-direction: column;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---------- КНОПКИ ВВЕРХ/ВНИЗ ---------- */
.scroll-btns {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #4169E1;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(65,105,225,0.3);
}
.scroll-btn:hover {
  background: #365ac7;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(65,105,225,0.4);
}
.scroll-btn--down {
  background: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.scroll-btn--down:hover {
  background: #333;
}

/* ---------- ВЫПАДАЮЩЕЕ МЕНЮ (NAV DROPDOWN) ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.nav-dropdown__trigger:hover,
.nav-dropdown:hover .nav-dropdown__trigger {
  color: #4169E1;
}
.nav-dropdown__trigger svg {
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown__trigger svg {
  transform: rotate(180deg);
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  background: #ffffff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(65, 105, 225, 0.10), 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #1a1a1a;
  transition: background 0.15s;
  text-decoration: none;
}
.nav-dropdown__item:hover {
  background: #f4f6fb;
}
.nav-dropdown__icon {
  width: 36px;
  height: 36px;
  background: #edf0fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4169E1;
}
.nav-dropdown__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown__name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.nav-dropdown__desc {
  font-size: 12px;
  color: #888;
}
@media (max-width: 768px) {
  .nav-dropdown__menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown__menu {
    display: block;
  }
}

/* ---------- ОБЩИЕ АДАПТИВНЫЕ ПРАВКИ (для hero, контейнеров и пр.) ---------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
  .hero {
    padding: 80px 0 100px;
  }
  .hero__bg {
    width: 100%;
  }
  .hero__bg::after {
    background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  }
  .hero-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .header__inner {
    gap: 16px;
  }
  .nav {
    display: none;
  }
  .header-right {
    gap: 12px;
    margin-left: auto;
  }
  .phone {
    display: none;
  }
  .hero {
    padding: 60px 0 80px;
  }
  .hero__bg {
    width: 100%;
  }
  .hero__bg::after {
    background: rgba(255,255,255,0.5);
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .section {
    padding: 64px 0;
  }
  .section-title {
    font-size: 32px;
  }
}