/* Header */
.header {
  border-bottom: 1px solid var(--color-border);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  max-width: 70%;
}

.header__logo-icon {
  flex-shrink: 0;
  max-width: 50%;
}

.header__logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header__logo-text span {
  color: var(--color-primary);
}

.header__tagline {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
  max-width: 280px;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.header__phone {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.header__callback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

.header__callback:hover {
  text-decoration: underline;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.header__nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.header__nav a:hover,
.header__nav a.is-active {
  color: var(--color-primary);
}

.header__nav a:first-child {
  padding-left: 0;
}

/* Mobile header bar */
.header-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.header-mobile__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: var(--color-text);
}

.header-mobile__btn--back {
  width: auto;
  gap: 4px;
  padding-right: 8px;
  font-size: 14px;
  font-weight: 500;
}

.header-mobile__logo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-mobile__logo .header__logo-text {
  font-size: 16px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs__sep {
  margin: 0 8px;
  color: var(--color-text-light);
}

/* Footer CTA */
.footer-cta {
  background: var(--color-footer);
  color: var(--color-white);
  padding: 28px 0 20px;
  margin-top: 48px;
  flex-shrink: 0;
  width: 100%;
}

.footer-cta__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-cta__request {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.footer-cta__text {
  flex: 0 1 auto;
  max-width: 520px;
  font-size: 15px;
  font-weight: 500;
}

.footer-cta__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  white-space: nowrap;
}

.footer-cta__phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  flex-shrink: 0;
}

.footer-cta__phone a {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  transition: opacity var(--transition);
}

.footer-cta__phone a:hover {
  opacity: 0.85;
}

.footer-cta__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-cta__copy {
  justify-self: start;
}

.footer-cta__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  justify-self: center;
}

.footer-cta__nav a {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.footer-cta__nav a:hover,
.footer-cta__nav a.is-active {
  color: var(--color-white);
}

.footer-cta__dev {
  justify-self: end;
}

.footer-cta__copy,
.footer-cta__dev {
  margin: 0;
}

.footer-cta__dev {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-cta__dev:hover {
  opacity: 0.85;
}

.footer-cta__dev-logo {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.sticky-cta .btn {
  width: 100%;
}
