/* =======================
   AI FREIGHT — Custom CSS
   ======================= */

/* --- Хедер / меню --- */

/* Мягкая тень у шапки Astra */
.site-header,
.main-header-bar{
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Кнопка Start Chat — если добавлена как отдельный пункт меню (класс: btn-chat) */
.main-header-menu > li.btn-chat > a{
  border: 2px solid var(--brand);
  color: var(--brand) !important;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 600;
  background: transparent;
  text-decoration: none !important;
  transition: .2s;
  white-space: nowrap;
  line-height: 1;
}
.main-header-menu > li.btn-chat > a:hover{
  background: var(--brand);
  color: #fff !important;
}
.main-header-menu > li.btn-chat{ margin-left: 12px; }

/* Кнопка Start Chat — если она выводится из header.php в .header-cta */
.header-cta .chat-cta{
  border: 2px solid var(--brand);
  color: var(--brand) !important;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 600;
  background: transparent;
  text-decoration: none !important;
  transition: .2s;
  white-space: nowrap;
  line-height: 1;
}
.header-cta .chat-cta:hover{
  background: var(--brand);
  color: #fff !important;
}

/* (опционально) скрыть слоган под логотипом */
.site-branding .site-description{
  display: none !important;
}

/* --- Блоки/секции (универсальные утилиты) --- */
.aif-section{ padding:72px 20px; }
.aif-in{ max-width:var(--max); margin:0 auto; }

/* Заголовки и лиды */
.aif-h1{
  font: 800 48px/1.15 'Inter', system-ui, sans-serif;
  color: var(--dark);
  margin: 0 0 18px;
  text-align: center;
}
.aif-h2{
  font: 800 32px/1.2 'Inter', system-ui, sans-serif;
  color: var(--dark);
  margin: 0 0 32px;
  text-align: center;
}
.aif-lead{
  font: 400 20px/1.55 'Inter', system-ui, sans-serif;
  color: #333;
  text-align: center;
  margin: 0 auto 26px;
  max-width: 900px;
}

/* Кнопка */
.aif-btn{
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: .2s;
}
.aif-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Hero: отступ под шапкой + светлый фон (если нужен) */
.aif-hero{ padding-top: 80px; }     /* подстрой под фактическую высоту хедера */
.aif-hero--light{ background: var(--bg); }

/* Малый надзаголовок и география */
.aif-eyebrow{
  font: 700 14px/1.2 'Inter', system-ui, sans-serif;
  letter-spacing: .06em;
  color: #111;
  text-transform: uppercase;
  margin: 0 0 10px;
  text-align: center;
}
.aif-geo{
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .5px;
  margin: 8px 0 0;
  text-align: center;
}
.aif-cta{ margin-top: 28px; text-align: center; }

/* Сетки и карточки */
.aif-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.aif-card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.aif-card h3{
  font:700 20px/1.3 'Inter', system-ui, sans-serif;
  color: var(--dark);
  margin: 0 0 10px;
}
.aif-card p{
  flex:1;
  margin:0 0 14px;
  color:#555;
}

/* Шаги (How it works) */
.aif-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.aif-step{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: left;
}
.aif-step .num{
  width:36px; height:36px; border-radius:50%;
  background: var(--brand); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; margin-bottom:10px;
}
.aif-step h3{
  margin:6px 0 6px;
  font:700 18px/1.3 'Inter', system-ui, sans-serif;
  color:var(--dark);
}
.aif-step p{ margin:0; color:var(--muted); }

/* Why choose us */
.aif-why{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.aif-bullet{
  background:var(--bg);
  border-radius:var(--radius);
  padding:22px;
}
.aif-bullet h4{
  margin:0 0 6px;
  color:var(--dark);
  font:700 18px/1.3 'Inter', system-ui, sans-serif;
}
.aif-bullet p{ margin:0; color:#555; }

/* Футер с юр-ссылками (если используете HTML-виджет) */
.aif-footer{
  background:#003366;
  color:#cfe0ff;
  text-align:center;
  padding:36px 20px;
}
.aif-footer .aif-in{ max-width:var(--max); margin:0 auto; }
.aif-legal ul{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  justify-content:center;
  list-style:none;
  margin:0 0 10px;
  padding:0;
}
.aif-legal a{ color:#fff; text-decoration:none; }
.aif-legal a:hover{ text-decoration:underline; }
.aif-meta{ opacity:.85; font-size:14px; }

/* --- Адаптив --- */
@media (max-width:1024px){
  .aif-grid{ grid-template-columns:repeat(2,1fr); }
  .aif-steps{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .aif-h1{ font-size:34px; }
  .aif-h2{ font-size:26px; }
  .aif-lead{ font-size:18px; }
  .aif-grid, .aif-steps, .aif-why{ grid-template-columns:1fr; }
  .aif-section{ padding:64px 20px; }
  .aif-hero{ padding-top: 70px; } /* поменьше отступ на мобиле */
}
/* --- Десктоп: делаем главное меню горизонтальным --- */
body:not(.ast-header-break-point) .main-header-menu,
body:not(.ast-header-break-point) .main-navigation .menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;            /* расстояние между пунктами */
  list-style: none;
  margin: 0;
  padding: 0;
}

body:not(.ast-header-break-point) .main-header-menu > li {
  margin: 0;            /* убираем случайные отступы */
  display: inline-flex; /* гарантируем «в строку» */
}

/* Подменю оставляем вертикальным */
.main-header-menu .sub-menu {
  display: block;
  gap: 0;
  margin: 0;
  padding: 0;
}
