/* =============================================
   ИНТЕЛЛЕКТ - Современный бухгалтерский сайт
   Дизайн-система с CSS переменными
   ============================================ */

   :root {
    /* Палитра по логотипу (основной #104418) */
    --primary: #104418;
    --primary-dark: #082a0f;
    --primary-light: #1a6b2a;
    --secondary: #0f1f12;
    --accent: #2a8f4a;
    --accent-light: #3cb360;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Нейтральные цвета */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Типографика */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', sans-serif;
    
    /* Размеры шрифтов */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Отступы */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Радиусы */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Контейнер */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Анимации */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
  }
  
  /* =============================================
     БАЗОВЫЕ СТИЛИ
     ============================================ */
  
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  
  ul, ol {
    list-style: none;
  }
  
  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
  }
  
  input, textarea, select {
    font-family: inherit;
    font-size: inherit;
  }
  
  /* =============================================
     ТИПОГРАФИКА
     ============================================ */
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
  }
  
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
  h4 { font-size: var(--text-2xl); }
  h5 { font-size: var(--text-xl); }
  h6 { font-size: var(--text-lg); }
  
  p {
    margin-bottom: var(--space-4);
  }
  
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }
  
  .text-primary { color: var(--primary); }
  .text-secondary { color: var(--secondary); }
  .text-accent { color: var(--accent); }
  .text-gray { color: var(--gray-500); }
  .text-white { color: white; }
  
  .font-bold { font-weight: 700; }
  .font-semibold { font-weight: 600; }
  .font-medium { font-weight: 500; }
  
  /* =============================================
     КОНТЕЙНЕРЫ
     ============================================ */
  
  .container {
    width: 100%;
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  @media (min-width: 640px) {
    .container { max-width: var(--container-sm); }
  }
  
  @media (min-width: 768px) {
    .container { max-width: var(--container-md); padding-left: var(--space-6); padding-right: var(--space-6); }
  }
  
  @media (min-width: 1024px) {
    .container { max-width: var(--container-lg); }
  }
  
  @media (min-width: 1280px) {
    .container { max-width: var(--container-xl); }
  }
  
  /* =============================================
     СЕТКА (GRID/FLEX)
     ============================================ */
  
  .grid {
    display: grid;
    gap: var(--space-6);
  }
  
  .grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  
  @media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  }
  
  @media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  }
  
  .flex {
    display: flex;
  }
  
  .flex-col { flex-direction: column; }
  .flex-wrap { flex-wrap: wrap; }
  .items-center { align-items: center; }
  .items-start { align-items: flex-start; }
  .justify-center { justify-content: center; }
  .justify-between { justify-content: space-between; }
  .gap-2 { gap: var(--space-2); }
  .gap-4 { gap: var(--space-4); }
  .gap-6 { gap: var(--space-6); }
  .gap-8 { gap: var(--space-8); }
  
  /* =============================================
     ОТСТУПЫ
     ============================================ */
  
  .py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
  
  .px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
  .px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
  
  .mb-2 { margin-bottom: var(--space-2); }
  .mb-4 { margin-bottom: var(--space-4); }
  .mb-6 { margin-bottom: var(--space-6); }
  .mb-8 { margin-bottom: var(--space-8); }
  .mt-4 { margin-top: var(--space-4); }
  .mt-6 { margin-top: var(--space-6); }
  .mt-8 { margin-top: var(--space-8); }
  
  /* =============================================
     КОМПОНЕНТЫ
     ============================================ */
  
  /* Кнопки */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .btn-secondary {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
  }
  
  .btn-secondary:hover {
    background: var(--primary);
    color: white;
  }
  
  .btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
  }
  
  .btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
  }
  
  /* Карточки */
  .card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
  }
  
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }
  
  .card-featured {
    border: 2px solid var(--primary);
    position: relative;
  }
  
  .card-featured::before {
    content: 'ПОПУЛЯРНО';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: var(--space-1) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
  }
  
  /* Иконки в круге */
  .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: var(--space-4);
  }
  
  .icon-circle-accent {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  }
  
  /* Формы */
  .form-group {
    margin-bottom: var(--space-4);
  }
  
  .form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
  }
  
  .form-input,
  .form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
    background: white;
  }
  
  .form-input:focus,
  .form-select:focus {
    outline: none;
    border-color: var(--primary);
  }
  
  /* =============================================
     СЕКЦИИ
     ============================================ */
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: var(--space-12);
  }
  
  .section-title h2 {
    margin-bottom: var(--space-4);
  }
  
  .section-title p {
    color: var(--gray-500);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* =============================================
     HEADER & NAVIGATION
     ============================================ */
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
  }
  
  .header-inner {
    display: flex;
    align-items: center; /* Ensures vertical alignment */
    justify-content: space-between;
    padding: var(--space-4) 0;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--gray-900);
  }
  
  .logo-img {
    display: block;
    height: 80px;
    width: auto;
    max-width: min(400px, 92vw);
    object-fit: contain;
  }
  
  @media (min-width: 1024px) {
    .logo-img {
      height: 88px;
      max-width: 440px;
    }
  }
  
  .footer .logo-img {
    height: 72px;
    max-width: 360px;
    filter: brightness(0) invert(1);
  }
  
  .nav {
    display: none;
  }
  
  @media (min-width: 1024px) {
    .nav {
      display: flex;
      align-items: center;
      gap: var(--space-8);
      flex-grow: 1;
      justify-content: center;
      /* Сброс мобильных стилей */
      position: static;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      backdrop-filter: none;
      background: transparent;
      overflow: visible;
    }
  
    .nav-inner {
      display: contents; /* Дочерние элементы становятся прямыми детьми .nav */
    }
  
    .nav-mobile-contacts {
      display: none !important; /* Скрыть блок с телефонами внутри nav на десктопе */
    }
  }
  
  .nav-link {
    font-weight: 600;
    color: var(--gray-600);
    position: relative;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  /* Подменю «Услуги» */
  .nav-dropdown {
    position: relative;
  }
  
  .nav-dropdown > .nav-link::after {
    bottom: -2px;
  }
  
  .nav-dropdown-menu {
    list-style: none;
  }
  
  .nav-dropdown-link {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--gray-700);
    text-decoration: none;
    transition: color var(--transition-fast), background var(--transition-fast);
  }
  
  a.nav-dropdown-link:hover {
    color: var(--primary);
  }
  
  .nav-dropdown-link--soon {
    cursor: default;
    color: var(--gray-400);
  }
  
  span.nav-dropdown-link--soon:hover {
    color: var(--gray-400);
    background: transparent;
  }
  
  @media (min-width: 1024px) {
    .nav-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      margin-top: 6px;
      min-width: 280px;
      padding: var(--space-2) 0;
      background: white;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      z-index: 1001;
    }
  
    /* «Мост» между пунктом «Услуги» и панелью — курсор не теряет меню в зазоре */
    .nav-dropdown-menu::before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 100%;
      height: 10px;
    }
  
    .nav-dropdown--open .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
  
    .nav-dropdown-link {
      padding: var(--space-3) var(--space-5);
    }
  
    a.nav-dropdown-link:hover {
      background: var(--gray-50);
    }
  }
  
  @media (max-width: 1023px) {
    .nav-dropdown {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
    }
  
    .nav-dropdown > .nav-link {
      width: 100%;
    }
  
    .nav-dropdown-menu {
      display: flex;
      flex-direction: column;
      padding: 0 0 var(--space-2) var(--space-4);
      margin-top: calc(-1 * var(--space-2));
    }
  
    .nav-dropdown-link {
      padding: var(--space-2) 0;
      border-bottom: 1px solid var(--gray-100);
      color: var(--gray-600);
    }
  
    .nav-dropdown-link--soon {
      color: var(--gray-400);
    }
  
    .nav-dropdown-menu > *:last-child {
      border-bottom: none;
    }
  }
  
  /* ---------- шапка: правая часть ---------- */
  .header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  
  /* Кнопка «Консультация» — скрыта на мобильном */
  .header-cta > .btn:not(.mobile-menu-btn) {
    display: none;
  }
  
  @media (min-width: 1024px) {
    .header-cta > .btn:not(.mobile-menu-btn) {
      display: inline-flex;
    }
  }
  
  /* Телефоны — на десктопе столбик */
  .header-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
  }
  
  /* Текстовые ссылки телефонов — только на десктопе */
  .phone-link {
    display: none;
    font-weight: 700;
    color: var(--gray-900);
    font-size: var(--text-sm);
    white-space: nowrap;
  }
  
  @media (min-width: 1024px) {
    .phone-link {
      display: block;
    }
  }
  
  /* Телефонная иконка — только на мобильном */
  .mobile-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    text-decoration: none;
    flex-shrink: 0;
    transition: background var(--transition-fast);
  }
  
  .mobile-phone-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .mobile-phone-btn:hover {
    background: var(--primary-dark);
  }
  
  @media (min-width: 1024px) {
    .mobile-phone-btn {
      display: none;
    }
  }
  
  /* ---------- бургер-кнопка ---------- */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.375rem;
    border-radius: var(--radius-md);
    background: transparent;
    flex-shrink: 0;
    transition: background var(--transition-fast);
  }
  
  .mobile-menu-btn:hover {
    background: var(--gray-100);
  }
  
  .mobile-menu-btn span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--gray-900);
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
  }
  
  /* X-анимация при открытом меню */
  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  @media (min-width: 1024px) {
    .mobile-menu-btn {
      display: none;
    }
  }
  
  /* ---------- мобильное меню ---------- */
  @media (max-width: 1023px) {
    .nav {
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 999;
      background: rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(2px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      padding: 0;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      overflow: hidden;
    }
  
    .nav.mobile-active {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
  
    /* Создаём внутренний скроллируемый блок через nav-inner */
    .nav-inner {
      background: white;
      padding: 5rem var(--space-6) var(--space-8);
      display: flex;
      flex-direction: column;
      gap: 0;
      box-shadow: var(--shadow-2xl);
      transform: translateY(-100%);
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      max-height: 100vh;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
  
    .nav.mobile-active .nav-inner {
      transform: translateY(0);
    }
  
    .nav-link {
      display: block;
      font-size: var(--text-lg);
      font-weight: 600;
      color: var(--gray-800);
      padding: var(--space-4) 0;
      border-bottom: 1px solid var(--gray-100);
      text-decoration: none;
    }
  
    .nav-link:hover,
    .nav-link.active {
      color: var(--primary);
    }
  
    .nav-link::after {
      display: none;
    }
  
    /* Подменю на мобильном */
    .nav-dropdown > .nav-link {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
  
    .nav-dropdown-menu {
      padding: 0 0 var(--space-2) var(--space-4);
    }
  
    .nav-dropdown-link {
      font-size: var(--text-base);
      padding: var(--space-3) 0;
      color: var(--gray-600);
      border-bottom: 1px solid var(--gray-100);
    }
  
    /* Телефоны и кнопка внутри мобильного меню */
    .nav-mobile-contacts {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
      padding: var(--space-5) 0 0;
      margin-top: var(--space-2);
    }
  
    .nav-mobile-phone {
      display: flex;
      align-items: center;
      gap: var(--space-3);
      font-size: var(--text-xl);
      font-weight: 700;
      color: var(--gray-900);
      text-decoration: none;
      padding: var(--space-2) 0;
    }
  
    .nav-mobile-phone svg {
      width: 1.25rem;
      height: 1.25rem;
      color: var(--primary);
      flex-shrink: 0;
    }
  
    .nav-mobile-phone:hover {
      color: var(--primary);
    }
  
    .nav-mobile-cta {
      margin-top: var(--space-2);
    }
  
    .nav-mobile-cta .btn {
      width: 100%;
      text-align: center;
      justify-content: center;
    }
  }
  
  /* ---------- плавающая кнопка «Позвонить» ---------- */
  .fab-call {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: var(--text-sm);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(16, 68, 24, 0.45);
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
  }
  
  .fab-call svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
  }
  
  .fab-call:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 68, 24, 0.5);
  }
  
  /* Скрыть FAB на десктопе */
  @media (min-width: 1024px) {
    .fab-call {
      display: none;
    }
  }
  
  /* Скрыть FAB когда открыто мобильное меню */
  .nav.mobile-active ~ .fab-call,
  body.menu-open .fab-call {
    opacity: 0;
    pointer-events: none;
  }
  
  /* =============================================
     HERO SECTION
     ============================================ */
  
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 132px;
    background: linear-gradient(135deg, var(--gray-50) 0%, #e8f5ea 50%, var(--gray-50) 100%);
    overflow: hidden;
  }
  
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  
  .hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 68, 24, 0.12) 0%, transparent 70%);
    border-radius: 50%;
  }
  
  .hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
  }
  
  @media (min-width: 1024px) {
    .hero-content {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-4);
  }
  
  .hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
  }
  
  .hero h1 {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    line-height: 1.1;
    margin-bottom: var(--space-6);
  }
  
  .hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-description {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    max-width: 540px;
  }
  
  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }
  
  .hero-stats {
    display: flex;
    gap: var(--space-8);
  }
  
  .hero-stat {
    text-align: center;
  }
  
  .hero-stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
  }
  
  .hero-stat-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
  }
  
  .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-image {
    display: block;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 100%;
    height: auto;
  }
  
  .hero-image--calculator {
    width: min(100%, 640px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(232, 245, 234, 0.85) 100%);
  }
  
  /* ---------- Hero мобильный ---------- */
  @media (max-width: 1023px) {
    .hero {
      min-height: auto;
      padding-top: 110px;
      padding-bottom: var(--space-12);
    }
  
    .hero-description {
      font-size: var(--text-lg);
    }
  
    .hero-stats {
      flex-wrap: wrap;
      gap: var(--space-4);
    }
  
    .hero-stat-number {
      font-size: var(--text-2xl);
    }
  }
  
  @media (max-width: 479px) {
    .hero {
      padding-top: 96px;
    }
  
    .hero h1 {
      font-size: var(--text-3xl);
    }
  
    .hero-description {
      font-size: var(--text-base);
    }
  
    .hero-cta .btn {
      width: 100%;
      text-align: center;
      justify-content: center;
    }
  }
  
  /* ---------- Логотип на маленьких экранах ---------- */
  @media (max-width: 479px) {
    .logo-img {
      height: 52px;
    }
  }
  
  @media (max-width: 767px) and (min-width: 480px) {
    .logo-img {
      height: 60px;
    }
  }
  
  /* ---------- Общие мобильные улучшения ---------- */
  @media (max-width: 767px) {
    /* Секции: уменьшить отступы */
    .section {
      padding-top: var(--space-12);
      padding-bottom: var(--space-12);
    }
  
    .section-header {
      margin-bottom: var(--space-8);
    }
  
    /* Кнопки — удобный размер тача */
    .btn {
      min-height: 2.75rem;
      padding-left: var(--space-5);
      padding-right: var(--space-5);
    }
  
    /* Заголовки секций */
    .section-title {
      font-size: var(--text-2xl);
    }
  }
  
  /* =============================================
     FEATURES / SERVICES
     ============================================ */
  
  .services {
    background: white;
  }
  
  .service-card {
    text-align: center;
    padding: var(--space-8);
  }
  
  .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, rgba(16, 68, 24, 0.1) 0%, rgba(16, 68, 24, 0.04) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
  }
  
  .service-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .service-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
  }
  
  .service-card p {
    color: var(--gray-500);
    font-size: var(--text-sm);
  }
  
  /* =============================================
     CALCULATOR SECTION
     ============================================ */
  
  .calculator {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--gray-800) 100%);
    color: white;
  }
  
  .calculator.section {
    padding: var(--space-10) 0;
  }
  
  .calculator .section-title {
    margin-bottom: var(--space-6);
  }
  
  .calculator .section-title h2 {
    margin-bottom: var(--space-2);
  }
  
  .calculator .section-title p {
    font-size: var(--text-base);
  }
  
  .calculator .section-title h2,
  .calculator .section-title p {
    color: white;
  }
  
  .calculator-container {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .calculator-form {
    display: grid;
    gap: var(--space-4);
  }
  
  .calculator-row {
    display: grid;
    gap: var(--space-3);
  }
  
  @media (min-width: 768px) {
    .calculator-row {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .calculator-label {
    font-weight: 600;
    margin-bottom: var(--space-1);
    display: block;
    font-size: var(--text-sm);
  }
  
  .calculator-select,
  .calculator-input {
    width: 100%;
    padding: var(--space-3) var(--space-3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: var(--text-sm);
  }
  
  .calculator-select option {
    background: var(--gray-800);
    color: white;
  }
  
  .calculator-select:focus,
  .calculator-input:focus {
    outline: none;
    border-color: var(--primary);
  }
  
  .calculator-result {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    margin-top: var(--space-4);
  }
  
  .calculator-price {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1.15;
    margin-top: var(--space-1);
  }
  
  .calculator-price-label {
    font-size: var(--text-sm);
    opacity: 0.85;
  }
  
  .calculator-result p {
    margin-top: var(--space-2);
    margin-bottom: 0;
    font-size: var(--text-sm);
    opacity: 0.85;
  }
  
  .calculator-result .btn-lg {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }
  
  .calculator-extras {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-4);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
  }
  
  .calculator-extras label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm);
  }
  
  .calculator-extras input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  
  .calculator-extras--stack {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-3);
    width: 100%;
    text-align: left;
  }
  
  /* Модальное окно заявки по калькулятору */
  .calculator-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }
  
  .calculator-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .calculator-modal__panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    max-height: min(90vh, 640px);
    overflow-y: auto;
    background: white;
    color: var(--gray-800);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-6) var(--space-6) var(--space-5);
  }
  
  .calculator-modal__close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gray-500);
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
  }
  
  .calculator-modal__close:hover {
    background: var(--gray-200);
    color: var(--gray-800);
  }
  
  .calculator-modal__title {
    font-size: var(--text-xl);
    margin: 0 var(--space-10) var(--space-2) 0;
    color: var(--gray-900);
    padding-right: 0;
  }
  
  .calculator-modal__lead {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0 0 var(--space-4);
    line-height: 1.5;
  }
  
  .calculator-modal__summary {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
  }
  
  .calculator-modal__dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .calculator-modal__dl-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-1);
    font-size: var(--text-sm);
  }
  
  @media (min-width: 400px) {
    .calculator-modal__dl-row {
      grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
      align-items: baseline;
      gap: var(--space-3);
    }
  }
  
  .calculator-modal__dl-row dt {
    margin: 0;
    font-weight: 600;
    color: var(--gray-600);
  }
  
  .calculator-modal__dl-row dd {
    margin: 0;
    color: var(--gray-800);
  }
  
  .calculator-modal__dl-row--price dd {
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--primary);
  }
  
  .calculator-modal__per-mo {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--gray-500);
    margin-top: 2px;
  }
  
  .calculator-modal__form .form-group:last-of-type {
    margin-bottom: var(--space-4);
  }
  
  .calculator-modal__submit {
    width: 100%;
  }
  
  /* =============================================
     PRICING
     ============================================ */
  
  .pricing-card {
    text-align: center;
    padding: var(--space-8);
    position: relative;
  }
  
  .pricing-header {
    margin-bottom: var(--space-6);
  }
  
  .pricing-name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
  }
  
  .pricing-description {
    color: var(--gray-500);
    font-size: var(--text-sm);
  }
  
  .pricing-price {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-2);
  }
  
  .pricing-price span {
    font-size: var(--text-base);
    color: var(--gray-400);
    font-weight: 400;
  }
  
  .pricing-features {
    text-align: left;
    margin-bottom: var(--space-8);
  }
  
  .pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
  }
  
  .pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
  }
  
  /* =============================================
     ABOUT / TEAM
     ============================================ */
  
  .about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
  }
  
  @media (min-width: 1024px) {
    .about-content {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .about-image {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
  }
  
  .about-features {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
  
  .about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
  }
  
  .about-feature svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
  }
  
  .team-members-section {
    margin-top: var(--space-12);
  }
  
  .team-section-title {
    margin-bottom: var(--space-10);
  }
  
  .team-group + .team-group {
    margin-top: var(--space-12);
  }
  
  .team-group__header {
    margin-bottom: var(--space-6);
  }
  
  .team-group__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
  }
  
  .team-group__text {
    margin: 0;
    color: var(--gray-500);
    max-width: 700px;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  @media (min-width: 768px) {
    .team-grid--leaders {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .team-grid--staff {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  .team-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  
  .team-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
  }
  
  .team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .team-card__body {
    padding: var(--space-6);
  }
  
  .team-card__name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
  }
  
  .team-card__role {
    font-size: var(--text-base);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-3);
  }
  
  .team-card__description {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.7;
  }
  
  /* =============================================
     TESTIMONIALS
     ============================================ */
  
  .testimonials {
    background: var(--gray-100);
  }
  
  .testimonial-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    position: relative;
  }
  
  .testimonial-quote {
    font-size: var(--text-lg);
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: var(--space-6);
    line-height: 1.7;
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  
  .testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
  }
  
  .testimonial-info h4 {
    font-size: var(--text-base);
    margin-bottom: 0;
  }
  
  .testimonial-info p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0;
  }
  
  .testimonial-rating {
    display: flex;
    gap: var(--space-1);
    margin-top: var(--space-2);
  }
  
  .testimonial-rating svg {
    width: 16px;
    height: 16px;
    color: var(--warning);
    fill: currentColor;
  }
  
  /* =============================================
     CTA SECTION
     ============================================ */
  
  .cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
  }
  
  .cta h2 {
    color: white;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
  }
  
  .cta p {
    font-size: var(--text-xl);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-8);
  }
  
  .cta .btn-secondary {
    background: white;
    color: var(--primary);
    border-color: white;
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
  }
  
  .cta .btn-secondary:hover {
    background: transparent;
    color: white;
  }
  
  /* =============================================
     FOOTER
     ============================================ */
  
  .footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-16) 0 var(--space-8);
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
  }
  
  @media (min-width: 768px) {
    .footer-grid {
      grid-template-columns: 2fr 1fr 1fr 1fr;
    }
  }
  
  .footer-brand {
    max-width: min(100%, 400px);
  }
  
  .footer-brand .logo {
    color: white;
    margin-bottom: var(--space-4);
  }
  
  .footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
  }
  
  .footer-title {
    color: white;
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-4);
  }
  
  .footer-links li {
    margin-bottom: var(--space-3);
  }
  
  .footer-links a {
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
  }
  
  .footer-links a:hover {
    color: white;
  }
  
  .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
  }
  
  .footer-contact svg {
    width: 18px;
    height: 18px;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
  }
  
  .footer-contact-phones {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .footer-contact a {
    font-size: var(--text-sm);
    color: inherit;
    transition: color var(--transition-fast);
  }
  
  .footer-contact a:hover {
    color: white;
  }
  
  .footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  
  @media (min-width: 768px) {
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
      text-align: left;
    }
  }
  
  .footer-bottom p {
    font-size: var(--text-sm);
    margin: 0;
  }
  
  /* =============================================
     UTILITY CLASSES
     ============================================ */
  
  .hidden { display: none; }
  
  .bg-white { background: white; }
  .bg-gray-50 { background: var(--gray-50); }
  .bg-gray-100 { background: var(--gray-100); }
  
  .rounded-lg { border-radius: var(--radius-lg); }
  .rounded-xl { border-radius: var(--radius-xl); }
  .rounded-2xl { border-radius: var(--radius-2xl); }
  
  .shadow-md { box-shadow: var(--shadow-md); }
  .shadow-lg { box-shadow: var(--shadow-lg); }
  
  /* =============================================
     ANIMATIONS
     ============================================ */
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
  }
  
  /* =============================================
     RESPONSIVE ADJUSTMENTS
     ============================================ */
  
  @media (max-width: 767px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
    
    .hero {
      min-height: auto;
      padding: 152px 0 var(--space-12);
    }
    
    .hero-stats {
      flex-direction: column;
      gap: var(--space-4);
    }
    
    .section {
      padding: var(--space-12) 0;
    }
  }
  
  /* =============================================
     INTERNAL PAGE STYLES
     ============================================ */
  
  .page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 180px 0 var(--space-12);
    text-align: center;
  }
  
  .page-header h1 {
    color: white;
    margin-bottom: var(--space-4);
  }
  
  .page-header p {
    font-size: var(--text-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
  }
  
  .breadcrumbs a {
    opacity: 0.8;
  }
  
  .breadcrumbs a:hover {
    opacity: 1;
  }
  
  .content-section {
    padding: var(--space-12) 0;
  }
  
  .content-section h2 {
    margin-bottom: var(--space-6);
  }
  
  .content-section ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-6);
  }
  
  .content-section li {
    margin-bottom: var(--space-2);
    color: var(--gray-600);
  }
  
  .check-list li {
    list-style: none;
    position: relative;
    padding-left: var(--space-8);
  }
  
  .check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: var(--radius-full);
    background-image: url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'none\' stroke=\'white\' stroke-width=\'3\' stroke-linecap=\'round\' stroke-linejoin=\'round\'%3E%3Cpolyline points=\'20 6 9 17 4 12\'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  /* =============================================
     SEO ARTICLE — полноширинная вёрстка
     ============================================ */
  
  .seo-article {
    padding: var(--space-16) 0;
    background: var(--gray-50);
  }
  
  .seo-article__block {
    margin-bottom: var(--space-12);
  }
  
  .seo-article__block:last-child {
    margin-bottom: 0;
  }
  
  /* Заголовок-лид */
  .seo-article__header {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto var(--space-12);
  }
  
  .seo-article__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    color: var(--gray-900);
  }
  
  .seo-article__lead {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
  }
  
  /* H2 внутри блоков */
  .seo-article__h2 {
    font-size: var(--text-2xl);
    color: var(--gray-900);
    margin-top: 0;
    margin-bottom: var(--space-5);
  }
  
  .seo-article__h2--no-mt {
    margin-top: 0;
  }
  
  .seo-article__p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-5);
  }
  
  .seo-article a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
  }
  
  .seo-article a:hover {
    text-decoration: underline;
  }
  
  /* ---- Кому подойдёт: 5 карточек ---- */
  .seo-who-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  @media (min-width: 640px) {
    .seo-who-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .seo-who-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .seo-who-grid .seo-who-card:nth-child(4) {
      grid-column: 1 / 2;
    }
    .seo-who-grid .seo-who-card:nth-child(5) {
      grid-column: 2 / 3;
    }
  }
  
  .seo-who-card {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: box-shadow var(--transition-fast);
  }
  
  .seo-who-card:hover {
    box-shadow: var(--shadow-md);
  }
  
  .seo-who-card__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .seo-who-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
    stroke: white;
  }
  
  .seo-who-card p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.55;
  }
  
  /* ---- Шаги ---- */
  .seo-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  @media (min-width: 640px) {
    .seo-steps {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .seo-steps {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .seo-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--gray-200);
  }
  
  .seo-step__num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: var(--text-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .seo-step__text {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.55;
  }
  
  /* ---- Системы налогообложения ---- */
  .seo-tax-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  @media (min-width: 768px) {
    .seo-tax-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .seo-tax-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: box-shadow var(--transition-fast);
  }
  
  .seo-tax-card:hover {
    box-shadow: var(--shadow-md);
  }
  
  .seo-tax-card__badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
  }
  
  .seo-tax-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
  }
  
  .seo-tax-card__text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
  }
  
  /* ---- Почему мы ---- */
  .seo-reasons {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  @media (min-width: 640px) {
    .seo-reasons {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .seo-reasons {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .seo-reason {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
  }
  
  .seo-reason__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin-top: 0.1rem;
  }
  
  .seo-reason__title {
    display: block;
    font-size: var(--text-base);
    color: var(--gray-900);
    margin-bottom: var(--space-1);
  }
  
  .seo-reason__text {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.5;
  }
  
  /* ---- Инфо-блок ---- */
  .seo-article__note {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-10) 0;
  }
  
  .seo-article__note-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary);
    margin-top: 0.1rem;
  }
  
  .seo-article__note p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.65;
  }
  
  /* ---- Блок «Как заказать» ---- */
  .seo-article__cta-block {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-10) var(--space-8);
    color: white;
  }
  
  .seo-article__cta-text {
    flex: 1 1 20rem;
  }
  
  .seo-article__cta-text .seo-article__h2 {
    color: white;
    margin-bottom: var(--space-3);
  }
  
  .seo-article__cta-text .seo-article__p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
  }
  
  .seo-article__cta-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex-shrink: 0;
  }
  
  .seo-article__cta-phone,
  .seo-article .seo-article__cta-phone {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity var(--transition-fast);
  }
  
  .seo-article__cta-phone:hover,
  .seo-article .seo-article__cta-phone:hover {
    opacity: 0.85;
    color: #ffffff !important;
    text-decoration: none;
  }
  
  .seo-article__cta-contacts .btn {
    align-self: flex-start;
  }
  
  @media (max-width: 767px) {
    .seo-article__cta-block {
      padding: var(--space-6);
      flex-direction: column;
      align-items: flex-start;
    }
  
    .seo-article__cta-contacts {
      width: 100%;
    }
  
    .seo-article__cta-contacts .btn {
      align-self: stretch;
      text-align: center;
    }
  }
  
  .content-table-wrap {
    overflow-x: auto;
    margin: var(--space-6) 0;
  }
  
  .content-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  
  .content-table thead tr {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
  }
  
  .content-table th,
  .content-table td {
    padding: var(--space-3) var(--space-5);
    text-align: left;
  }
  
  .content-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
  }
  
  .content-table tbody tr:nth-child(even) {
    background: var(--gray-50);
  }
  
  .content-alert {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: var(--space-4) var(--space-5);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-6) 0;
    color: var(--gray-700);
    line-height: 1.6;
  }
  
  /* =============================================
     ФОРМА «ЗАКАЗАТЬ ОТЧЁТНОСТЬ» (otchetnost-ooo)
     ============================================ */
  
  .ooo-contact-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
  }
  
  .ooo-contact-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4) var(--space-6);
    margin-bottom: var(--space-4);
  }
  
  @media (min-width: 640px) {
    .ooo-contact-form__grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .ooo-contact-form__grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .ooo-contact-form__comment .form-input {
    resize: vertical;
    min-height: 5rem;
  }
  
  .ooo-contact-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-4);
    margin-top: var(--space-5);
  }
  
  .ooo-contact-form__note {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin: 0;
    flex: 1 1 12rem;
  }
  
  @media (max-width: 639px) {
    .ooo-contact-form {
      padding: var(--space-5);
    }
  
    .ooo-contact-form__footer {
      flex-direction: column;
      align-items: stretch;
    }
  
    .ooo-contact-form__footer .btn {
      width: 100%;
      text-align: center;
    }
  }
  
  .faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-6) 0;
  }
  
  .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    cursor: pointer;
    gap: var(--space-4);
  }
  
  .faq-answer {
    padding-top: var(--space-4);
    color: var(--gray-600);
    display: none;
  }
  
  .faq-item.active .faq-answer {
    display: block;
  }
  
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* Главная: FAQ в два столбца */
  .faq-list--grid {
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 var(--space-8);
    align-items: start;
  }
  
  @media (min-width: 768px) {
    .faq-list--grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  .home-faq .faq-list--grid .faq-item {
    padding: var(--space-4) 0;
  }
  
  .home-faq .faq-question {
    font-size: var(--text-sm);
    text-align: left;
  }
  
  @media (min-width: 768px) {
    .home-faq .faq-question {
      font-size: var(--text-base);
    }
  }
  
  .home-faq .faq-answer {
    font-size: var(--text-sm);
    line-height: 1.55;
  }
  
  .home-faq .faq-answer a {
    color: var(--primary);
    font-weight: 600;
  }
  
  .home-faq .faq-answer a:hover {
    text-decoration: underline;
  }
  
  .faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: transform var(--transition-fast);
  }
  
  .faq-item.active .faq-icon {
    transform: rotate(180deg);
  }
  
  /* Contact section — компактная вёрстка */
  .contact-section.section {
    padding: var(--space-10) 0;
    background-color: #fff;
  }
  
  .contact-section-title {
    margin-bottom: var(--space-6);
  }
  
  .contact-section-title h2 {
    margin-bottom: var(--space-2);
  }
  
  .contact-section-title p {
    font-size: var(--text-base);
  }
  
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: start;
  }
  
  @media (min-width: 1024px) {
    .contact-layout {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
      gap: var(--space-6);
    }
  }
  
  .contact-info-column .contact-info-card:last-child {
    margin-bottom: 0;
  }
  
  .contact-form {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  
  .contact-form .form-group {
    margin-bottom: var(--space-3);
  }
  
  .contact-form .form-label {
    margin-bottom: var(--space-1);
    font-size: var(--text-sm);
  }
  
  .contact-form .form-input {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }
  
  .contact-form-textarea {
    min-height: 5.5rem;
    resize: vertical;
  }
  
  .contact-form-submit {
    width: 100%;
    margin-top: var(--space-1);
  }
  
  .contact-form-note {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin: var(--space-3) 0 0;
    text-align: center;
    line-height: 1.4;
  }
  
  .contact-info-card {
    background: var(--gray-100);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
  }
  
  /*.contact-info-card h4 */
  .contact-info-card > div {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
  }
  
  /*.contact-info-card h4  svg */
  .contact-info-card > div svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
  }
  
  .contact-info-card p {
    color: var(--gray-600);
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.5;
  }
  
  .contact-info-card p a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
  }
  
  .contact-info-card p a:hover {
    text-decoration: underline;
  }
  
  .contact-qr-card {
    text-align: center;
  }
  
  .contact-qr {
    display: block;
    width: 10rem;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-md);
  }
  
  .contact-qr-caption {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--gray-500);
  }
  
  /* =============================================
     COOKIE CONSENT BANNER
     ============================================ */
  
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: var(--space-3);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
  }
  
  .cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .cookie-banner--hiding {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  .cookie-banner__inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
  }
  
  .cookie-banner__text {
    flex: 1 1 16rem;
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--gray-600);
  }
  
  .cookie-banner__link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  
  .cookie-banner__link:hover {
    color: var(--primary-dark);
  }
  
  .cookie-banner__accept {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  @media (max-width: 639px) {
    .cookie-banner {
      padding: var(--space-2);
    }
  
    .cookie-banner__inner {
      flex-direction: column;
      align-items: stretch;
      padding: var(--space-4);
    }
  
    .cookie-banner__accept {
      width: 100%;
    }
  }
  
  /*Мои правки*/
  #deadlines-heading {
      margin: 20px 0 0 0;
  }
  
  html:has(body section.inner) {
    height: 100%;
  }
  body:has(section.inner) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  body:has(section.inner) main {
    flex: 1 0 auto;
  }
  body:has(section.inner) .footer {
    flex-shrink: 0;
    margin-top: auto;
  }
  
  /* Отступ под position: fixed .header (как у .hero: 132 / 110 / 96) */
  .inner {
    padding-top: 132px;
  }
  
  section.inner:last-of-type {
      margin-bottom: 100px;
    }

  /* padding на main давал серую полосу (фон body --gray-50) — отступ на первой section */
  main.inner {
    padding-top: 0;
  }

  main.inner > section:first-of-type:not(.hero):not(.page-header):not(.calculator) {
    padding-top: 132px;
  }

  main.inner > section.calculator:first-of-type {
    padding-top: 132px;
  }

  @media (max-width: 1023px) {
    .inner {
      padding-top: 110px;
    }
    
    section.inner:last-of-type {
      margin-bottom: 50px;
    }

    main.inner > section:first-of-type:not(.hero):not(.page-header):not(.calculator) {
      padding-top: 110px;
    }

    main.inner > section.calculator:first-of-type {
      padding-top: 110px;
    }
  }

  @media (max-width: 479px) {
    .inner {
      padding-top: 96px;
    }
    
    section.inner:last-of-type {
      margin-bottom: 30px;
    }

    main.inner > section:first-of-type:not(.hero):not(.page-header):not(.calculator) {
      padding-top: 96px;
    }

    main.inner > section.calculator:first-of-type {
      padding-top: 96px;
    }
  }

  html:has(main.inner) {
    scroll-padding-top: 132px;
  }

  @media (max-width: 1023px) {
    html:has(main.inner) {
      scroll-padding-top: 110px;
    }
  }

  @media (max-width: 479px) {
    html:has(main.inner) {
      scroll-padding-top: 96px;
    }
  }
  
  .deadlines_table {
      width: 100%;
      border-collapse: collapse;
      margin: 2rem 0;
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: var(--shadow-md);
  }
  
  .deadlines_table thead tr {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
  }
  
  .deadlines_table thead tr th {
      padding: 1rem 1.5rem;
      text-align: left;
      font-weight: 600;
  }
  
  .deadlines_table .deadlines_table-body > trtr:nth-child(odd) {
      border-bottom: 1px solid var(--gray-200);
  }
  
  .deadlines_table .deadlines_table-body > tr:nth-child(even) {
      border-bottom: 1px solid var(--gray-200);
      background: var(--gray-50);
  }
  
  .deadlines_table .deadlines_table-body td {
      padding: 1rem 1.5rem;
  }
  
  .content-alert p {
      margin: 0;
  }
  
  .system .seo-tax-card__text p {
      margin: 0;
  }

  /* Согласие на обработку персональных данных */
  .form-consent {
    margin-bottom: var(--space-3);
  }

  .form-consent__label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.45;
    margin-bottom: 0;
  }

  .form-consent__input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 2px 0 0;
    accent-color: var(--primary);
    cursor: pointer;
  }

  .form-consent__text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .form-consent__text a:hover {
    color: var(--primary-light);
  }

  .contact-form .form-consent {
    margin-bottom: var(--space-4);
  }

  .ooo-contact-form__consent {
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  .calculator-modal__form .form-consent {
    margin-bottom: var(--space-4);
  }
