/* Единая шапка (как на главной): белая полоса контактов + тёмное меню */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.home-header--hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

html.has-fixed-header {
  scroll-padding-top: var(--home-header-h, 110px);
}

html.has-fixed-header body {
  padding-top: var(--home-header-h, 110px);
}

@media (prefers-reduced-motion: reduce) {
  .home-header {
    transition: none;
  }
}

.home-topbar {
  background: #fff;
  border-bottom: 1px solid #e9eaeb;
}

.home-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.home-logo-strong {
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 20px;
  text-decoration: none;
  color: var(--black);
}

.home-logo-strong span {
  color: var(--yellow);
}

.home-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.home-logo__img {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(260px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.home-logo--footer .home-logo__img {
  height: 36px;
  max-width: min(180px, 42vw);
}

.home-contacts-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}

.home-contacts-strip a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.home-contacts-strip a:hover {
  color: var(--black);
}

.home-contacts-strip--compact {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 16px 28px;
}

.home-contacts-strip__person {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.home-contacts-strip__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.home-contacts-strip--compact .home-contacts-strip__person {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.home-contacts-strip--compact .home-contacts-strip__name {
  font-size: 11px;
}

.home-contacts-strip__region {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.home-contacts-strip__region-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--black);
  white-space: nowrap;
}

.home-contacts-strip--compact .home-contacts-strip__region-title {
  font-size: 11px;
}

.home-contacts-strip__phone {
  font-weight: 800;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
}

.home-contacts-strip__phone:hover {
  color: var(--yellow);
}

.home-contacts-strip__meta {
  font-size: 12px;
}

.home-main-nav a.is-active {
  color: #fff;
  box-shadow: inset 0 -3px var(--yellow);
}

.home-btn-callback {
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(180deg, #ffe24a, var(--yellow));
  color: #161616;
  box-shadow: 0 4px 14px rgba(244, 190, 0, 0.35);
  white-space: nowrap;
}

.home-btn-callback:hover {
  filter: brightness(1.03);
}

a.home-btn-callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.home-navbar {
  background: #1b1c21;
  padding: 0;
}

.home-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.home-main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.home-main-nav a {
  display: inline-block;
  padding: 14px 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.home-main-nav a:hover,
.home-main-nav a:focus-visible {
  color: var(--yellow);
  outline: none;
}

.home-main-nav a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -3px var(--yellow);
}

.home-nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 940px) {
  .home-nav-toggle {
    display: inline-flex;
  }

  .home-main-nav {
    display: none;
    width: 100%;
    padding: 0 0 12px;
  }

  .home-main-nav[data-open="true"] {
    display: block;
  }

  .home-main-nav ul {
    flex-direction: column;
  }

  .home-main-nav a {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .home-contacts-strip {
    width: 100%;
    justify-content: flex-start;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.callback-modal[hidden] {
  display: none;
}

.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 13, 0.72);
  backdrop-filter: blur(4px);
}

.callback-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: clamp(24px, 4vw, 32px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.callback-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #f4f5f8;
  color: #1b1c21;
  cursor: pointer;
}

.callback-modal__close:hover {
  background: #e9eaec;
}

.callback-modal__title {
  margin: 0 32px 8px 0;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--black);
}

.callback-modal__lede {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--muted);
}

.callback-modal__form {
  display: grid;
  gap: 12px;
}

.callback-modal__form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font: inherit;
  font-weight: 600;
}

.callback-modal__submit {
  width: 100%;
  justify-content: center;
}

body.callback-modal-open {
  overflow: hidden;
}
