/* ============================================= */
/* ШАПКА САЙТА                                   */
/* ============================================= */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Сетка шапки: логотип | меню | контакты */
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 8px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Логотип --- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Картинка логотипа */
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Название компании и подпись */
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 25px;
  font-weight: 800;
  color: #0d2e5a;
  letter-spacing: 1px;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #7a8a9e;
  letter-spacing: 0;
}

/* --- Навигационное меню --- */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 28px;
}

nav a {
  font-weight: 500;
  color: #2c3e50;
  transition: color 0.2s;
  position: relative;
}

nav a:hover {
  color: #e63946;
}

/* Подчёркивание ссылки при наведении */
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #e63946;
  transition: width 0.2s;
}

nav a:hover::after {
  width: 100%;
}

/* --- Контакты в шапке --- */
.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Блок с email и телефоном (вертикально) */
.header-contacts-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-contacts a {
  font-size: 14px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-contacts a:hover {
  color: #e63946;
}

/* Красная кнопка «Заказать звонок» */
.btn-callback {
  background: #e63946;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-callback:hover {
  background: #c1121f;
}

.btn-callback:active {
  transform: scale(0.97);
}

/* Кнопка-бургер (скрыта на десктопе) */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #0d2e5a;
}

/* ============================================= */
/* АДАПТИВНОСТЬ: мобильные устройства            */
/* ============================================= */
@media (max-width: 900px) {
  .header-inner {
    gap: 12px;
  }

  nav ul {
    gap: 18px;
  }

  .logo-text {
    font-size: 22px;
  }

  .logo-text span {
    font-size: 10px;
  }

  .logo-img {
    height: 35px;
  }

  .header-contacts a {
    font-size: 12px;
  }

  .btn-callback {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 6px 15px;
  }

  /* Меню превращается в выпадающее под шапкой */
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .burger {
    display: block;
  }

  .header-contacts {
    display: none;
  }

  .header-contacts.mobile-show {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 0 0 0 8px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-img {
    height: 35px;
  }
}