/* Header: black utility + orange nav */
.site-header {
  position: relative;
  z-index: 100;
}

.header-top {
  background: var(--black);
  color: var(--white);
  min-height: var(--header-top);
  display: flex;
  align-items: center;
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--white);
}

.logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.header-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  font-size: 14px;
}

.header-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.header-contacts a:hover {
  color: var(--orange);
}

.header-contacts__ico {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-actions__calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
}

.header-actions__calc:hover {
  color: var(--orange);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.burger span::before {
  top: -7px;
}

.burger span::after {
  top: 7px;
}

.header-nav {
  background: var(--orange);
  min-height: var(--header-nav);
}

.header-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  min-height: var(--header-nav);
}

.header-nav__item {
  position: relative;
  flex: 1 1 auto;
}

.header-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: var(--header-nav);
  padding: 0 8px;
  color: var(--white);
  font-size: 14px;
  white-space: nowrap;
}

.header-nav__link:hover {
  color: var(--black);
}

.header-nav__link .caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
}

.mega {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  max-width: 360px;
  background: var(--black);
  color: var(--white);
  padding: 16px;
  box-shadow: var(--shadow-card);
  z-index: 120;
}

.header-nav__item:hover > .mega,
.header-nav__item:focus-within > .mega {
  display: block;
}

.mega a {
  display: block;
  padding: 8px 4px;
  color: var(--white);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mega a:hover {
  color: var(--orange);
}

/* Breadcrumb */
.black-breadcrumb {
  background: var(--black);
  color: var(--muted);
  min-height: 65px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.black-breadcrumb a {
  color: var(--muted);
}

.black-breadcrumb a:hover {
  color: var(--orange);
}

.black-breadcrumb span {
  color: var(--white);
}

.black-breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 50px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.8fr 1.2fr;
  gap: 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-contact p {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1100px) {
  .header-contacts {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .header-nav {
    display: none;
  }

  .header-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--orange);
    max-height: 70vh;
    overflow: auto;
  }

  .header-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
  }

  .header-nav__link {
    justify-content: flex-start;
    padding: 12px 20px;
  }

  .mega {
    position: static;
    display: none;
    min-width: 0;
    max-width: none;
    box-shadow: none;
  }

  .header-nav__item.is-open > .mega {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .logo__name {
    font-size: 15px;
  }

  .header-actions > .btn {
    display: none;
  }

  .header-actions__calc span {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }
}
