.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-white);
  transition: box-shadow 0.2s;
}

.header--scrolled {
  box-shadow: 0 2px 16px rgba(34, 34, 34, 0.08);

  .header__tagline {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }

  .header__inner {
    padding: 5px 0;
  }
}

.header__inner {
  max-width: 1340px;
  width: calc(100% - 100px);
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.2s ease;
}

/* ── Logo ────────────────────────────────────── */
.header__logo-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.header__logo-link {
  display: block;
}

.header__logo {
  display: block;
  width: 280px;
  height: 62px;
  object-fit: contain;
  object-position: left center;

  @media (max-width: 1024px) {
    width: 180px;
    height: 40px;
  }

  @media (max-width: 768px) {
    width: 150px;
    height: 33px;
  }
}

.header__tagline {
  font-size: var(--fs-caption);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--color-black);
  opacity: 0.6;
  transition: all 0.2s ease;
  max-height: 50px;

  @media (max-width: 768px) {
    display: none;
  }
}

/* ── Contacts ────────────────────────────────── */
.header__contacts {
  display: flex;
  align-items: center;
  gap: 30px;

  @media (max-width: 1024px) {
    gap: 20px;
  }
}

.header__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-medium);
  line-height: var(--lh-base);
  color: var(--color-black);
  text-decoration: none;
  white-space: nowrap;

  @media (max-width: 1024px) {
    font-size: var(--fs-body-sm);
  }

  @media (max-width: 480px) {
    display: none;
  }
}

.header__contact-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;

  @media (max-width: 1024px) {
    width: 20px;
    height: 20px;
  }
}

/* ── Buttons ─────────────────────────────────── */

/* Текстовая кнопка «Перезвоните мне» (desktop) */
.header__btn-text {
  @media (max-width: 1024px) {
    height: 40px;
    padding: 10px 30px;
    font-size: var(--fs-body-sm);
  }

  @media (max-width: 768px) {
    display: none;
  }
}

/* Круглая иконочная кнопка (mobile) */
.header__btn-icon {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background: var(--color-orange);
  border-radius: 50%;
  transition: opacity 0.2s;

  @media (max-width: 768px) {
    display: flex;
  }
}

.header__btn-icon:hover {
  opacity: 0.9;
}

/* ── Responsive inner width ──────────────────── */
@media (max-width: 1024px) {
  .header__inner {
    width: calc(100% - 80px);
  }
}

@media (max-width: 768px) {
  .header__inner {
    width: calc(100% - 40px);
  }
}
