/* Шрифт Inter и базовые токены подключены в css/design-system.css,
   который загружается перед этим файлом. Здесь только компоненты. */

/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg-dark: #0a1628;
  --color-bg-darker: #060e1f;
  --color-blue-600: #2563eb;
  --color-blue-500: #3b82f6;
  --color-blue-400: #60a5fa;
  --color-blue-300: #93c5fd;
  --color-blue-200: #bfdbfe;
  --color-blue-100: #dbeafe;
  --color-blue-900: #1e3a5f;
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;
  --color-yellow-400: #facc15;
  --color-purple-500: #a855f7;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-max: 1200px;
  --transition: 0.3s ease;
  --color-navy-700: #1a2d4d;
  --color-navy-800: #0d1f3c;
  --color-navy-900: #060e1f;
  /* Единая «шапка» внутренних страниц (services / bots / prices / about) */
  --page-hero-band-min-h: 540px;
  --page-hero-img-max-h: 300px;
}

@media (max-width: 1023px) {
  :root {
    --page-hero-band-min-h: min(520px, 88dvh);
    --page-hero-img-max-h: 240px;
  }
}

@media (max-width: 479px) {
  :root {
    --page-hero-band-min-h: min(500px, 90dvh);
    --page-hero-img-max-h: 200px;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--color-gray-900);
  background: #fff;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
}

@media (min-width: 640px) {
  .container { padding: 0 28px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

/* ===== Scroll Reveal Animation ===== */
/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.2);
  transition: var(--transition);
}

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

/* Навбар: комфортные отступы от краёв экрана (в т.ч. с вырезом) */
.nav .container {
  padding-left: max(22px, env(safe-area-inset-left, 0px) + 14px);
  padding-right: max(22px, env(safe-area-inset-right, 0px) + 14px);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav__logo-text {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.nav__logo-text span {
  color: var(--color-yellow-400);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav__link {
  color: var(--color-blue-200);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.nav__link:hover {
  color: #fff;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-blue-600);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition);
}

.nav__cta:hover {
  background: var(--color-blue-500);
}

.nav__cta svg {
  width: 16px;
  height: 16px;
}

.nav__burger {
  display: flex;
  color: #fff;
  padding: 8px;
}

.nav__burger svg {
  width: 24px;
  height: 24px;
}

/* Пунктов в меню шесть плюс кнопка — на 768px они уже не помещались
   и наезжали на логотип. Переключаемся на десктопное меню позже. */
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

/* На средних экранах сжимаем промежутки, чтобы меню не распирало шапку */
@media (min-width: 1000px) and (max-width: 1140px) {
  .nav__links { gap: 16px; }
  .nav__link { font-size: 0.82rem; }
  .nav__cta { padding: 8px 12px; font-size: 0.82rem; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(12px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 24px max(24px, env(safe-area-inset-right, 0px) + 12px) 24px max(24px, env(safe-area-inset-left, 0px) + 12px);
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: var(--color-blue-200);
  font-size: 1.1rem;
  /* 48px по высоте — минимальная комфортная цель для пальца */
  padding: 14px 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: #fff;
}

/* Активный пункт — чтобы было видно, где находишься */
.mobile-menu a.is-active {
  color: #fff;
  font-weight: 600;
}

/* Главный CTA не должен пропадать на мобильных */
.mobile-menu .mobile-menu__cta {
  margin-top: auto;
  justify-content: center;
  gap: 8px;
  background: var(--color-blue-600);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}
.mobile-menu .mobile-menu__cta:hover { background: var(--color-blue-500); }
.mobile-menu .mobile-menu__cta svg {
  width: 18px;
  height: 18px;
  /* flex-shrink:0 — без этого при недостатке места флекс-контейнер
     мог бы уменьшать иконку непредсказуемо; жёстко фиксируем размер. */
  flex-shrink: 0;
}

/* Пока меню открыто — страница под ним не скроллится */
body.menu-open { overflow: hidden; }

/* Плавающая кнопка "Обсудить проект" дублирует кнопку в открытом меню
   и всплывает поверх него (z-index выше) — на телефоне это выглядело
   как ещё один значок чата поверх списка ссылок. Прячем на время. */
body.menu-open .sticky-cta { display: none; }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-800));
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg-circle-1 {
  position: absolute;
  top: -160px;
  right: -160px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(30, 64, 175) 0%, transparent 70%);
  opacity: 0.2;
}

.hero__bg-circle-2 {
  position: absolute;
  bottom: 0;
  left: -160px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(124, 58, 237) 0%, transparent 70%);
  opacity: 0.15;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero__inner {
  position: relative;
  z-index: 10;
  padding: 100px 0 60px;
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

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

.hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__gradient-text {
  background: linear-gradient(90deg, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  font-size: 1.125rem;
  color: rgba(191, 219, 254, 0.8);
  max-width: 540px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}

/* Hero Buttons */
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-blue-600);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.4);
}

.btn-primary:hover {
  background: var(--color-blue-500);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--color-blue-200);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(30, 58, 138, 0.3);
}

/* Hero Stats */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero__stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__stat-icon {
  width: 50px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero__stat-icon svg {
  width: 50px;
  height: 20px;
}

.hero__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(147, 197, 253, 0.7);
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(30, 58, 138, 0.5);
  margin-left: 12px;
}

@media (max-width: 639px) {
  .hero__stat-divider { display: none; }
}

/* Hero Image */
.hero__image {
  position: relative;
  display: flex;
  justify-content: flex-start;
  padding-right: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.hero__image-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.3;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
}

.hero__robot {
  position: relative;
  z-index: 10;
  width: 340px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.4));
  margin-left: 32px;
}

@media (min-width: 640px) {
  .hero__robot { width: 380px; }
}

@media (min-width: 1024px) {
  .hero__robot { width: 480px; }
  .hero__image {
    justify-content: flex-end;
    padding-right: 40px;
    min-width: min(480px, 100%);
  }
}

/* Floating Cards */
.hero__float {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 20;
}

.hero__float-1 {
  top: 32px;
  left: -16px;
  animation: float 4s ease-in-out infinite;
}

.hero__float-2 {
  bottom: 24px;
  right: -8px;
  /* Отрицательная задержка: карточка стартует не с нуля цикла, а сразу
     с той же фазы, что и через 2s — поэтому все четыре начинают
     двигаться одновременно при загрузке, а не по очереди, но
     сохраняют тот же сдвиг друг относительно друга. */
  animation: float 4s ease-in-out infinite -2s;
}

.hero__float-3 {
  bottom: 40px;
  left: -16px;
  animation: float 4s ease-in-out infinite -1s;
}

.hero__float-4 {
  top: 40px;
  right: -8px;
  animation: float 4s ease-in-out infinite -3s;
}

@media (min-width: 1024px) {
  .hero__float-1 { left: 11px; }
  .hero__float-2 { right: -24px; }
  .hero__float-4 { right: -24px; }

  .hero__float {
    padding: 14px 18px;
    border-radius: 18px;
  }
  .hero__float-title { font-size: 0.8125rem; }
  .hero__float-value { font-size: 0.9375rem; }
  .hero__float-sub { font-size: 0.8125rem; }
  .hero__float-icon { width: 16px; height: 16px; }
}

.hero__float-title {
  font-size: 0.75rem;
  color: var(--color-blue-200);
  margin-bottom: 4px;
}

.hero__float-value {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero__float-sub {
  font-size: 0.75rem;
  color: var(--color-green-400);
  margin-top: 4px;
}

.hero__float-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__float-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--color-green-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Section Common ===== */
.section {
  padding: 60px 0;
}

.section--dark {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-800));
}

.section--gray {
  background: var(--color-gray-50);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .section__title { font-size: 2.25rem; }
}

.section__title--white { color: #fff; }

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
}

.section__subtitle--light {
  color: rgba(191, 219, 254, 0.7);
}

/* ===== Services Section ===== */
.services__grid {
  display: grid;
  gap: 32px;
}

/* Service Cards Grid */
.services__cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .services__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services__cards { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 20px;
  transition: all var(--transition);
  cursor: pointer;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 12px;
  align-items: start;
}

.service-card:hover {
  background: #fff;
  border-color: var(--color-blue-200);
  box-shadow: 0 10px 32px rgba(0,0,0,0.1);
  transform: translateY(-5px) scale(1.015);
  z-index: 2;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform var(--transition);
  align-self: center;
}

.service-card:hover .service-card__icon {
  transform: scale(1.1);
}

.service-card__icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.service-card__icon--blue { background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.service-card__icon--purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.service-card__icon--indigo { background: linear-gradient(135deg, #2563eb, #6366f1); }
.service-card__icon--orange { background: linear-gradient(135deg, #f97316, #fbbf24); }
.service-card__icon--teal { background: linear-gradient(135deg, #14b8a6, #4ade80); }
.service-card__icon--rose { background: linear-gradient(135deg, #f43f5e, #ef4444); }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0;
  align-self: center;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-bottom: 12px;
  grid-column: 1 / -1;
  margin-top: 12px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}

.service-card__tag {
  background: rgba(219, 234, 254, 0.6);
  color: var(--color-blue-600);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--color-blue-100);
}

/* ===== Chatbots Section ===== */
.chatbots__platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}

.chatbots__platform {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}

.chatbots__platform-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chatbots__grid {
  display: grid;
  gap: 32px;
}

.chatbots__cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .chatbots__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .chatbots__cards { grid-template-columns: repeat(3, 1fr); }
}

.bot-card {
  position: relative;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 20px;
  transition: all var(--transition);
  cursor: pointer;
}

.bot-card:hover {
  background: #fff;
  border-color: var(--color-blue-200);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px) scale(1.015);
  z-index: 2;
}

.bot-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bot-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.bot-card:hover .bot-card__icon {
  transform: scale(1.1);
}

.bot-card__icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.bot-card__icon--green { background: linear-gradient(135deg, #22c55e, #10b981); }
.bot-card__icon--blue { background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.bot-card__icon--purple { background: linear-gradient(135deg, #a855f7, #8b5cf6); }
.bot-card__icon--orange { background: linear-gradient(135deg, #f97316, #fbbf24); }
.bot-card__icon--pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.bot-card__icon--teal { background: linear-gradient(135deg, #14b8a6, #06b6d4); }

.bot-card__badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.bot-card__badge--green { background: #dcfce7; color: #15803d; }
.bot-card__badge--blue { background: var(--color-blue-100); color: #1d4ed8; }
.bot-card__badge--purple { background: #f3e8ff; color: #7e22ce; }
.bot-card__badge--orange { background: #ffedd5; color: #c2410c; }
.bot-card__badge--pink { background: #fce7f3; color: #be185d; }
.bot-card__badge--teal { background: #ccfbf1; color: #0f766e; }

.bot-card h3 {
  color: var(--color-gray-900);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.bot-card__desc {
  color: var(--color-gray-600);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.bot-card__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-card__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-700);
  font-size: 0.8rem;
}

.bot-card__feature-dot {
  width: 5px;
  height: 5px;
  background: var(--color-blue-400);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Packages Section ===== */
.packages__grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .packages__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Package Card */
.package-card {
  position: relative;
  border-radius: 24px;
  border: 2px solid;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform var(--dur-base, 280ms) var(--ease-spring, ease-out),
              box-shadow var(--dur-base, 280ms) var(--ease-out, ease-out);
}

.package-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}

.package-card--start {
  border-color: rgba(34, 197, 94, 0.3);
}

.package-card--business {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 8px 40px rgba(30, 58, 138, 0.35), 0 0 0 0 rgba(59, 130, 246, 0.4);
  animation: businessPulse 3s ease-in-out infinite;
}

@keyframes businessPulse {
  0%, 100% { box-shadow: 0 8px 40px rgba(30, 58, 138, 0.35), 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 12px 50px rgba(30, 58, 138, 0.45), 0 0 0 6px rgba(59, 130, 246, 0.08); }
}

@media (min-width: 768px) {
  .package-card--business {
    transform: scale(1.05);
    z-index: 1;
  }
  /* Карточка уже увеличена статически — при наведении она должна расти
     дальше, а не «сжиматься» до общего .package-card:hover scale(1.02). */
  .package-card--business:hover {
    transform: translateY(-8px) scale(1.08);
  }
}

.package-card--pro {
  border-color: rgba(234, 179, 8, 0.3);
}

.package-card__bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.package-card--start .package-card__bg {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.2), rgba(16, 185, 129, 0.1));
}

.package-card--business .package-card__bg {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(79, 70, 229, 0.2));
}

.package-card--pro .package-card__bg {
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.2), rgba(217, 119, 6, 0.1));
}

.package-card__popular {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-blue-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 5;
}

.package-card__inner {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.package-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.package-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform var(--transition);
}

.package-card:hover .package-card__icon {
  transform: scale(1.1) rotate(-4deg);
}

.package-card__icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.package-card__icon--green { background: linear-gradient(135deg, #22c55e, #10b981); }
.package-card__icon--blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.package-card__icon--yellow { background: linear-gradient(135deg, #eab308, #f59e0b); }

.package-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.package-card__discount {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.package-card__desc {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 16px;
}

.package-card__includes {
  background: var(--color-gray-50);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.package-card__include {
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-card__include-label {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.package-card__include-value {
  font-size: 0.75rem;
  color: var(--color-gray-800);
  font-weight: 500;
}

.package-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}

.package-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.package-card__feature svg {
  width: 16px;
  height: 16px;
  color: var(--color-green-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.package-card__feature span {
  font-size: 0.875rem;
  color: var(--color-gray-700);
}

.package-card__pricing {
  border-top: 1px solid var(--color-gray-100);
  padding-top: 16px;
  margin-bottom: 16px;
}

.package-card__old-price {
  color: var(--color-gray-400);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.package-card__pricing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.package-card__discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.package-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-top: 2px;
}

.package-card__btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}

.package-card__btn--outline {
  border: 2px solid var(--color-gray-200);
  color: var(--color-gray-700);
}

.package-card__btn--outline:hover {
  border-color: var(--color-blue-300);
  color: var(--color-blue-600);
}

.package-card__btn--primary {
  background: var(--color-blue-600);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.2);
}

.package-card__btn--primary:hover {
  background: var(--color-blue-500);
}

.packages__note {
  text-align: center;
  color: var(--color-gray-400);
  font-size: 0.875rem;
  margin-top: 32px;
}

.packages__note a {
  color: var(--color-blue-600);
}

.packages__note a:hover {
  text-decoration: underline;
}

.section--dark .packages__note {
  color: var(--ink-tertiary, #94a3b8);
}
.section--dark .packages__note a {
  color: var(--brand-400, #60a5fa);
}

/* ===== About / Why Us Section ===== */
.about__benefits {
  display: grid;
  gap: 20px;
  margin-bottom: 96px;
}

@media (min-width: 640px) {
  .about__benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .about__benefits { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--color-gray-100);
  background: #fff;
  transition: all var(--transition);
  position: relative;
}

.benefit-card:hover {
  border-color: var(--color-blue-100);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}

.benefit-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform var(--transition);
}

.benefit-card:hover .benefit-card__icon {
  transform: scale(1.12) rotate(-4deg);
}

.benefit-card__icon svg {
  width: 20px;
  height: 20px;
}

.benefit-card__icon--orange { background: #fff7ed; }
.benefit-card__icon--orange svg { color: #f97316; }
.benefit-card__icon--blue { background: #eff6ff; }
.benefit-card__icon--blue svg { color: #3b82f6; }
.benefit-card__icon--green { background: #f0fdf4; }
.benefit-card__icon--green svg { color: #22c55e; }
.benefit-card__icon--purple { background: #faf5ff; }
.benefit-card__icon--purple svg { color: #a855f7; }
.benefit-card__icon--pink { background: #fdf2f8; }
.benefit-card__icon--pink svg { color: #ec4899; }
.benefit-card__icon--teal { background: #f0fdfa; }
.benefit-card__icon--teal svg { color: #14b8a6; }

.benefit-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* Strategy Section */
.strategy__grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

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

.strategy__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.strategy__step {
  display: flex;
  gap: 16px;
}

.strategy__step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  flex-shrink: 0;
}

.strategy__step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}

.strategy__step-desc {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

/* ===== Contact Section ===== */
.contact {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-800));
}

.contact__form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
}

.contact__card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.contact__input-group {
  margin-bottom: 16px;
}

.contact__input-group label {
  display: block;
  font-size: 0.875rem;
  color: rgba(191, 219, 254, 0.8);
  margin-bottom: 6px;
}

.contact__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
  box-sizing: border-box;
}

.contact__input:focus {
  outline: none;
  border-color: var(--color-blue-500);
  background: rgba(59, 130, 246, 0.08);
}

.contact__input::placeholder {
  color: rgba(147, 197, 253, 0.4);
}

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

.contact__input--error {
  border-color: #ef4444 !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake { animation: shake 0.3s ease; }

.contact__privacy {
  color: rgba(147, 197, 253, 0.4);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 16px;
}

/* Success Message */
.contact__success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.contact__success.active {
  display: block;
}

.contact__success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact__success-icon svg {
  width: 32px;
  height: 32px;
  stroke: #22c55e;
}

.contact__success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.contact__success p {
  color: rgba(147, 197, 253, 0.7);
  font-size: 0.9375rem;
}

/* Simple Contact Form */
.contact__required { color: #ef4444; }

.contact__error {
  color: #ef4444;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 10px;
  min-height: 1.2em;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  box-sizing: border-box;
}

.custom-select__trigger:focus {
  outline: none;
  border-color: var(--color-blue-500);
  background: rgba(59, 130, 246, 0.08);
}

.custom-select.open .custom-select__trigger {
  border-color: var(--color-blue-500);
  background: rgba(59, 130, 246, 0.08);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select__value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__value--placeholder {
  color: rgba(147, 197, 253, 0.4);
}

.custom-select__arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: rgba(147, 197, 253, 0.6);
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f1f3d;
  border: 1px solid var(--color-blue-500);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select__dropdown {
  display: block;
}

.custom-select__option {
  padding: 11px 16px;
  font-size: 0.9375rem;
  color: rgba(191, 219, 254, 0.85);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.custom-select__option:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
}

.custom-select__option--selected {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
}

.custom-select__option[data-value=""] {
  color: rgba(147, 197, 253, 0.4);
}

.contact__consent-wrap { margin: 20px 0; }

.contact__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.contact__consent-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-blue-500);
  cursor: pointer;
}

.contact__consent-text {
  font-size: 0.875rem;
  color: rgba(191, 219, 254, 0.7);
  line-height: 1.5;
}

.contact__consent-link { color: var(--color-blue-400); text-decoration: underline; }
.contact__consent-link:hover { color: #fff; }

/* Выбор мессенджера/почты — "Где вам удобнее общаться" */
.contact__channel-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact__channel-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 16px;
  color: rgba(191, 219, 254, 0.85);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.contact__channel-btn:hover {
  border-color: var(--color-blue-500);
  background: rgba(59, 130, 246, 0.12);
  color: #fff;
}

.contact__channel-btn--selected {
  background: var(--color-blue-600);
  border-color: var(--color-blue-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Та же тряска и красная рамка, что у невалидного поля ввода */
.contact__channel-group--error .contact__channel-btn {
  border-color: #ef4444;
}

/* Канал недоступен для того, что введено в «Телефон, Telegram или email»:
   например, набрали телефон — писать на email, которого не давали, нельзя. */
.contact__channel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}
.contact__channel-btn:disabled:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(191, 219, 254, 0.85);
}

.contact__submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-blue-600);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.975rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.4);
  margin-top: 8px;
}

.contact__submit-btn:hover {
  background: var(--color-blue-500);
  transform: translateY(-1px);
}

.contact__submit-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(147, 197, 253, 0.4);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact__submit-btn svg {
  width: 18px;
  height: 18px;
}


/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-800));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 0 32px;
  color: rgba(147, 197, 253, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer__logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer__logo-text span {
  color: var(--color-blue-400);
}

.footer__description {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(147, 197, 253, 0.8);
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
}

.footer__social:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--color-blue-500);
  color: #fff;
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__social-vk {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.footer__contacts-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer__contacts-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  color: var(--color-blue-400);
  flex-shrink: 0;
}

.footer__contact a {
  transition: color var(--transition);
}

.footer__contact a:hover {
  color: #fff;
}

@media (min-width: 960px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 360px);
    gap: 56px;
    align-items: start;
  }
  .footer__contacts-col {
    justify-self: end;
    width: 100%;
  }
}

@media (max-width: 959px) {
  .footer__contacts-col {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(191, 219, 254, 0.4);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  max-width: 100%;
}

@media (min-width: 640px) {
  .footer__legal {
    justify-content: flex-end;
  }
}

.footer__legal a {
  font-size: 0.75rem;
  color: rgba(191, 219, 254, 0.5);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: #fff;
}

/* ===== Utility ===== */
.text-green { color: var(--color-green-400); }
.text-blue { color: var(--color-blue-400); }
.text-yellow { color: var(--color-yellow-400); }
/* ===== Mobile Responsive ===== */
@media (max-width: 1023px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
  }
  .hero__grid > .hero__image {
    order: -1;
  }
  .hero__image {
    min-width: unset !important;
    width: 100%;
    justify-content: center;
    padding: 40px 20px 32px;
  }
  .hero__robot {
    width: 240px;
    margin: 0 auto;
  }
  .hero__inner {
    padding-top: 20px;
    padding-bottom: 40px;
  }
  .hero__grid {
    gap: 20px;
  }
  .hero__grid > div:first-child {
    padding: 0 30px;
  }
}

@media (max-width: 639px) {
  .hero__grid > div:first-child {
    padding: 0 16px;
  }
}

@media (max-width: 767px) {
  .hero__float {
    padding: 8px 12px;
    border-radius: 10px;
  }
  .hero__float-title { font-size: 0.65rem; }
  .hero__float-value { font-size: 0.75rem; }
  .hero__float-sub { font-size: 0.65rem; }
  .hero__float-1 { top: 60px; left: 20px; right: auto; bottom: auto; }
  .hero__float-4 { top: 60px; right: 20px; left: auto; bottom: auto; }
  .hero__float-3 { bottom: 10px; left: 20px; top: auto; right: auto; }
  .hero__float-2 { bottom: 10px; right: 20px; top: auto; left: auto; }

  .hero__image { padding: 120px 20px 40px; }
  .hero__robot { width: 200px; }

  .hero h1 { font-size: 2rem; line-height: 1.2; }
  .hero__description { font-size: 0.975rem; margin-bottom: 32px; }
  /* Подписи стали текстовыми («Фиксированная цена»), в две колонки они
     рвались на 3–4 строки. В одну колонку читаются как список преимуществ. */
  .hero__stats { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .hero__stat { align-items: flex-start; }
  .hero__stat-divider { display: none; }
  .hero__buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-primary, .btn-outline { justify-content: center; }
  .hero__stat-value { font-size: 1rem; line-height: 1.3; }
  .hero__stat-label { font-size: 0.8rem; }
  .hero__stat-icon { width: 40px; height: 40px; flex-shrink: 0; }
  .hero__stat-icon svg { width: 20px; height: 20px; }

  .strategy__grid { gap: 32px; }

  .packages__grid { gap: 16px; }

  .footer__grid { gap: 24px; }

  .service-card {
    grid-template-columns: 36px 1fr;
  }
  .service-card__icon {
    width: 36px;
    height: 36px;
  }
  .service-card__icon svg {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__image {
    padding: 50px 40px;
  }
  .hero__robot {
    width: 280px;
  }
  .hero__float-1 { top: 0; left: 20px; right: auto; }
  .hero__float-4 { top: 0; right: 20px; left: auto; }
  .hero__float-3 { bottom: 0; left: 20px; right: auto; top: auto; }
  .hero__float-2 { bottom: 0; right: 20px; left: auto; top: auto; }
}

/* ===== Process Section ===== */
.process__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Connector line between steps */
.process__grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 20px);
  right: calc(10% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue-300), var(--color-blue-600), var(--color-blue-300));
  opacity: 0.35;
  z-index: 0;
}

.process__step {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 22px 16px 20px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  z-index: 1;
  margin: 0 8px;
}

.process__step:first-child { margin-left: 0; }
.process__step:last-child { margin-right: 0; }

.process__step:hover {
  border-color: var(--color-blue-200);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.14);
  transform: translateY(-6px) scale(1.03);
}

.process__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-400));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 14px;
}

.process__step h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 8px;
  line-height: 1.35;
}

.process__step p {
  font-size: 0.8rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .process__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .process__grid::before { display: none; }
  .process__step { margin: 0; }
}
@media (max-width: 639px) {
  .process__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* ===== Reviews Section ===== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.review-card {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.review-card:hover {
  border-color: var(--color-blue-200);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.review-card__text {
  font-size: 0.95rem;
  color: var(--color-gray-700);
  line-height: 1.7;
  margin-top: 20px;
  margin-bottom: 0;
  font-style: italic;
}

.review-card__author {
  display: flex;
}

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

/* ===== FAQ Section ===== */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Page Hero (prices.html, checklist.html) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-800));
  padding: 88px 0 48px;
}
.page-hero > .container {
  padding-left: max(24px, env(safe-area-inset-left, 0px) + 16px);
  padding-right: max(24px, env(safe-area-inset-right, 0px) + 16px);
}

/* Одинаковая минимальная высота тёмной шапки на всех внутренних страницах */
.page-hero.page-hero--with-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--page-hero-band-min-h);
}

.page-hero.page-hero--with-image > .container.page-hero__inner {
  flex: 1;
  width: 100%;
}

.page-hero__inner {
  max-width: 800px;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 16px 0 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
}
.page-hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 10px 20px;
  color: #facc15;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  white-space: nowrap;
}
.breadcrumb a:hover {
  color: #fff;
}
@media (max-width: 399px) {
  .breadcrumb {
    font-size: 0.75rem;
    gap: 5px;
  }
}

/* ===== Price Mini Cards ===== */
.price-mini__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.price-mini__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  padding: 28px;
  transition: transform var(--dur-base, 280ms) var(--ease-spring, ease-out),
              box-shadow var(--dur-base, 280ms) var(--ease-out, ease-out),
              border-color var(--dur-base, 280ms) var(--ease-out, ease-out);
}

.price-mini__card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: rgba(59, 130, 246, 0.35);
}
.price-mini__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin: 0 0 20px;
}
.price-mini__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-mini__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  border-bottom: 1px dashed var(--color-gray-200);
  padding-bottom: 12px;
}
.price-mini__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.price-mini__val {
  font-weight: 700;
  color: var(--color-navy-900);
  white-space: nowrap;
}
.price-mini__val--free {
  color: #16a34a;
}

/* ===== Packages note ===== */
.packages__note {
  text-align: center;
  margin-top: 32px;
  color: var(--color-gray-500);
  font-size: 0.9rem;
}
.packages__note a {
  color: var(--color-blue-600);
  font-weight: 600;
}

@media (max-width: 639px) {
  .page-hero {
    padding: 80px 0 32px;
  }
}

@media (max-width: 1023px) {
  .page-hero--with-image .page-hero__content {
    text-align: center;
  }
  .page-hero--with-image .breadcrumb {
    justify-content: center;
  }
}

/* ===== Process step active (scrollspy) ===== */
.process__step--active {
  border-color: var(--color-blue-400) !important;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.18) !important;
}
.process__step--active .process__step-num {
  background: linear-gradient(135deg, #1d4ed8, var(--color-blue-400));
  transform: scale(1.1);
}

/* ===== FAQ Accordion (custom, animated) ===== */
.faq__item {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq__item.faq__item--open {
  border-color: var(--color-blue-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  list-style: none;
  user-select: none;
  transition: color var(--transition);
  margin: 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-main);
}

.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ''; }

.faq__question:hover {
  color: var(--color-blue-600);
}

.faq__item--open .faq__question {
  color: var(--color-blue-600);
}

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-gray-400);
  transition: transform 0.35s ease, color 0.3s ease;
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
  color: var(--color-blue-600);
}

.faq__answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq__item--open .faq__answer-wrap {
  grid-template-rows: 1fr;
}

.faq__answer-inner {
  overflow: hidden;
}

.faq__answer {
  padding: 0 24px 20px;
}

.faq__answer p {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

@media (max-width: 639px) {
  .faq__question {
    padding: 16px 18px;
    font-size: 0.925rem;
  }
  .faq__answer {
    padding: 0 18px 16px;
  }
}

/* ===== Footer CTA button ===== */
.footer__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-500));
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  transition: box-shadow var(--transition), opacity var(--transition) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  text-decoration: none !important;
}
.footer__cta-link:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55) !important;
  opacity: 0.92;
  color: #fff !important;
}

/* ===== Lead Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  /* Раньше на узких экранах (<480px) окно прижималось к верху —
     align-items: flex-start включался только с 480px. Форма должна
     появляться по центру на любом мобильном экране; сама карточка
     модалки не выше 88vh и скроллится внутри себя, так что центрирование
     ничего не обрежет даже на низких экранах. */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
body.modal-open {
  overflow: hidden;
}
.modal {
  position: relative;
  background: linear-gradient(135deg, #0d1f3c 0%, #0a1628 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  max-width: min(420px, 100%);
  width: 100%;
  max-height: min(88vh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px));
  overflow-y: auto;
  margin: 4px 0 8px;
  flex-shrink: 0;
  padding: 32px 22px 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}
.modal__close svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}
.modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.modal__card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.modal__subtitle {
  font-size: 0.95rem;
  color: rgba(191, 219, 254, 0.7);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Компактная форма заявки: центрированный текст, узкая колонка полей */
.modal__card--lead {
  text-align: center;
}
.modal__card--lead h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 6px;
  padding: 0 32px;
}
.modal__card--lead .modal__subtitle {
  font-size: 0.875rem;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  max-width: 20rem;
  padding: 0 4px;
}
.modal__card--lead .contact__input-group {
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
}
.modal__card--lead textarea.contact__input {
  min-height: 64px;
}
.modal__card--lead .contact__consent-wrap {
  margin: 10px auto 6px;
  max-width: 320px;
  text-align: left;
}
.modal__card--lead .contact__consent-text {
  font-size: 0.8125rem;
}
.modal__card--lead .contact__submit-btn {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 4px;
  padding: 12px 18px;
}
.modal__card--lead .contact__error {
  text-align: center;
}
.modal__card--lead .contact__privacy {
  margin-top: 8px;
  font-size: 0.7rem;
}

#lead-modal .contact__success {
  padding: 28px 16px 24px;
}
#lead-modal .contact__success h3 {
  font-size: 1.15rem;
}

/* ===== Sticky CTA Button ===== */
.sticky-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-500));
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}
.sticky-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sticky-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sticky-cta:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}

@media (max-width: 639px) {
  .sticky-cta {
    /* Мобильные браузеры (Яндекс.Браузер и другие) рисуют поверх страницы
       свою собственную всплывающую стрелку «наверх» при прокрутке —
       это часть интерфейса браузера, а не элемент страницы, и подвинуть
       или скрыть её со стороны сайта нельзя. 84px клиренса оказалось
       мало — стрелка всё равно задевала кнопку чата, поднимаем выше
       и учитываем safe-area на iPhone с home-индикатором. */
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  .sticky-cta span { display: none; }
  .sticky-cta { padding: 14px; border-radius: 50%; }
  .modal { padding: 26px 16px 18px; border-radius: 16px; }
  .modal__card--lead h3 { font-size: 1.1rem; padding: 0 36px 0 12px; }
}

/* ===== Contacts Section (about.html) ===== */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.contacts__card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.contacts__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.contacts__icon {
  width: 48px;
  height: 48px;
  background: var(--color-blue-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.contacts__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-blue-600);
}
.contacts__card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-500);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contacts__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
}
.contacts__value a {
  color: var(--color-blue-600);
  text-decoration: none;
}
.contacts__value a:hover {
  text-decoration: underline;
}
.contacts__location {
  text-align: center;
  color: var(--color-gray-500);
  font-size: 0.95rem;
}

@media (max-width: 1023px) {
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Strategy grid (about.html) ===== */
.strategy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.strategy__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.strategy__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.strategy__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-blue-600);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.strategy__step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}
.strategy__step p {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  line-height: 1.5;
}
@media (max-width: 767px) {
  .strategy__grid { grid-template-columns: 1fr; }
}

/* ===== Page-hero with image (services.html, prices.html) ===== */
.page-hero--with-image .page-hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
}
.page-hero__content { flex: 1; min-width: 0; }
.page-hero__img {
  flex: 0 1 420px;
  max-width: min(480px, 42vw);
  max-height: var(--page-hero-img-max-h);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero__img img {
  width: 100%;
  height: auto;
  max-height: var(--page-hero-img-max-h);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 20px;
}
@media (max-width: 1023px) {
  .page-hero--with-image .page-hero__inner { flex-direction: column; gap: 28px; justify-content: center; }
  .page-hero__img { flex: none; max-width: min(560px, 100%); width: 100%; }
}

/* ===== Strategy section — real image ===== */
.strategy__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* ===== Review card avatars ===== */
.review-card__author {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.review-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--color-blue-200, #bfdbfe);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.review-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-card__author-info strong {
  font-size: 1rem;
  color: var(--color-gray-900);
  line-height: 1.2;
}
.review-card__author-info span {
  font-size: 0.825rem;
  color: var(--color-gray-500);
  line-height: 1.3;
}
