/* ===== ЖЕСТКИЙ СБРОС ЦВЕТА КНОПОК В ШАПКЕ ===== */

/* Основная кнопка */
.t-menu__btn, 
.t-menu__btn .t-btn__txt,
header .t-btn, 
header .t-btn__txt,
header .t-submit, 
header .t-submit__txt {
    color: #FFFFFF !important;
    background-color: #2563EB !important;
    border-color: #2563EB !important;
}

/* Ховер эффект */
.t-menu__btn:hover, 
header .t-btn:hover, 
header .t-submit:hover {
    background-color: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
}

/* Контурная кнопка */
.t-btn_style_outline, 
.t-btn_bg_none {
    background-color: transparent !important;
    color: #2563EB !important;
    border-color: #2563EB !important;
}
.t-btn_style_outline:hover, 
.t-btn_bg_none:hover {
    background-color: #2563EB !important;
    color: #FFFFFF !important;
}

/* Если кнопка в Zero Block */
.tn-elem__btn,
.tn-elem__btn * {
    color: #FFFFFF !important;
    background-color: #2563EB !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.stat-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-4px);
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #0066cc;
  margin-bottom: 8px;
}
.stat-label {
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  font-size: 1rem;
}
.stat-desc {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; }
}
.company-type {
  font-size: 0.8rem;
  color: #64748B;
  border-left: 1px solid #E2E8F0;
  padding-left: 16px;
  margin-left: 8px;
}
@media (max-width: 768px) {
  .company-type {
    display: none; /* скрываем на мобильных, чтобы не перегружать хедер */
  }
}
.sticky-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.company-tagline {
  font-size: 0.7rem;
  color: #64748B;
  margin-top: 2px;
  letter-spacing: 0.3px;
}
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav-links {
    flex-wrap: wrap;
  }
}
.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* чтобы текст под логотипом выравнивался по левому краю */
}
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: #0F172A;
}
.logo span {
  color: #0066cc;
}
.company-type {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 4px;
  white-space: nowrap; /* чтобы не переносилось */
}
@media (max-width: 768px) {
  .company-type {
    font-size: 0.7rem;
    white-space: normal; /* разрешить перенос на мобильных */
  }
}
/* Обёртка логотипа и текста */
.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Логотип как ссылка */
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: #0F172A;
  line-height: 1.2;
}
.logo span {
  color: #0066cc;
}

/* Текст "Производство деталей из пластика" */
.company-type {
  font-size: 0.75rem;
  color: #64748B;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .logo-wrapper {
    align-items: center; /* центрируем на мобильных */
  }
  .company-type {
    font-size: 0.65rem;
    white-space: normal;
    text-align: center;
  }
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links {
    margin-top: 8px;
  }
}
/* ===== ХЕДЕР И ЛОГОТИП ===== */
.sticky-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: #0F172A;
  line-height: 1.2;
}
.logo span {
  color: #0066cc;
}
.company-type {
  font-size: 0.75rem;
  color: #64748B;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Мобильная адаптация хедера */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .logo-wrapper {
    align-items: center;
  }
  .company-type {
    white-space: normal;
    text-align: center;
    font-size: 0.65rem;
  }
  .nav-links {
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== КНОПКИ TILDA В ШАПКЕ (если используются) ===== */
.t-menu__btn, 
.t-menu__btn .t-btn__txt,
header .t-btn, 
header .t-btn__txt,
header .t-submit, 
header .t-submit__txt {
    color: #FFFFFF !important;
    background-color: #2563EB !important;
    border-color: #2563EB !important;
}
.t-menu__btn:hover, 
header .t-btn:hover, 
header .t-submit:hover {
    background-color: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
}
.t-btn_style_outline, 
.t-btn_bg_none {
    background-color: transparent !important;
    color: #2563EB !important;
    border-color: #2563EB !important;
}
.t-btn_style_outline:hover, 
.t-btn_bg_none:hover {
    background-color: #2563EB !important;
    color: #FFFFFF !important;
}
.tn-elem__btn,
.tn-elem__btn * {
    color: #FFFFFF !important;
    background-color: #2563EB !important;
}
/* Охранное поле для логотипа (20px от других элементов) */
.logo-wrapper {
  margin-right: 20px;
}