/* Топ-бар */
.topbar {
  background: #fff;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: calc(var(--content-w) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar__left,
.topbar__center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__left span,
.topbar__center span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}
.topbar__icon {
  flex-shrink: 0;
  display: block;
}
.topbar__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity .2s;
}
.topbar__phone:hover { opacity: .65; }
.topbar__phone span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  transition: box-shadow .3s;
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
}

.header__inner {
  max-width: calc(var(--content-w) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.3px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.logo__red { color: var(--red); }

.nav { display: flex; justify-content: center; }
.nav__list {
  display: flex;
  gap: 28px;
}
.nav__list a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  transition: color .2s;
}
.nav__list a:hover { color: var(--green); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.fav-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--spring);
  cursor: pointer;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn svg {
  width: 21px; height: 19px;
  stroke: var(--dark); fill: none;
  transition: stroke .2s;
}
.fav-btn:hover svg { stroke: var(--red); }
.fav-badge {
  position: absolute;
  top: -4px; right: -6px;
  width: 16px; height: 16px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 8px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.callback-btn {
  display: flex; align-items: center; gap: 7px;
  width: 202px; height: 36px;
  padding: 0 20px;
  background: var(--green);
  color: #fff;
  font-size: 13px; font-weight: 600;
  border-radius: 40px;
  transition: background .2s, transform .3s var(--spring), box-shadow .3s;
  box-shadow: 0 4px 14px rgba(54,181,85,.28);
  white-space: nowrap;
  justify-content: center;
}
.callback-btn:hover {
  background: #2da04b;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(54,181,85,.38);
}
.callback-btn__icon {
  width: 14px; height: 14px;
  display: block;
  flex-shrink: 0;
}
