/* Шапка (десктоп): контакты в две строки + чат в MAX и заявка. До 992px шапка прежняя. */
.h-contacts,
.h-actions {
  display: none;
}

/* Телефон и почта: единый вид для шапки и подвала. Размер задаёт блок, в котором они стоят. */
.contact-value {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0;
  color: #091538;
  text-decoration: none;
  transition: 0.3s ease color;
}
a.contact-value:hover,
a:hover .contact-value {
  color: #185bb3;
}

/* Шапка до 992px: MAX, звонок и почта — три одинаковые кнопки-иконки вместо старых значков. */
.header__row > .header__item--phone,
.header__row > .social-links {
  display: none;
}
@media (max-width: 991px) {
  .header .logo {
    flex: none;
    margin-right: auto;
  }
}
.h-quick {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px;
}
.h-quick .max-button,
.h-quick__btn {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
}
.h-quick .max-button span {
  display: none;
}
.h-quick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdaea;
  border-radius: 4px;
  background: #fff;
  transition: 0.3s ease border-color;
}
.h-quick__btn:hover {
  border-color: #14509f;
}
.h-quick__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #185bb3;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.h-quick__icon--phone {
  fill: #3aad60;
  stroke: none;
}
/* Уже 375px три кнопки не помещаются рядом с логотипом: почта остаётся в подвале. */
@media (max-width: 374px) {
  .h-quick__btn--email {
    display: none;
  }
}
@media (min-width: 992px) {
  .h-quick {
    display: none;
  }
}

.mobile-sidebar__footer .h-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.mobile-sidebar__footer .h-mobile-actions .site-button,
.mobile-sidebar__footer .h-mobile-actions .max-button {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  justify-content: center;
}

@media (min-width: 992px) {
  .h-contacts {
    display: flex;
    align-items: center;
    gap: 34px;
    flex: none;
  }

  .h-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #091538;
    text-decoration: none;
    white-space: nowrap;
  }
  .h-contact__icon {
    flex: none;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #185bb3;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .h-contact__icon--phone {
    fill: #3aad60;
    stroke: none;
  }
  .h-contact__body {
    display: flex;
    flex-direction: column;
  }
  .h-contact__main {
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    transition: 0.3s ease color;
  }
  .h-contact:hover .h-contact__main {
    color: #185bb3;
  }
  .h-contact__note {
    margin-top: 2px;
    font-size: 12px;
    line-height: 15px;
    color: #6b7890;
  }
  .h-contact--email,
  .h-contact--address {
    display: none;
  }

  .h-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding-left: 24px;
  }
  .h-actions .max-button span {
    display: none;
  }
  .h-actions .max-button {
    padding: 0 11px;
  }
  .h-cta.site-button {
    height: 44px;
    padding: 0 26px;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .h-contact--email {
    display: flex;
  }
  .h-actions .max-button span {
    display: inline;
  }
  .h-actions .max-button {
    padding: 0 16px;
  }
}

@media (min-width: 1536px) {
  .h-contact--address {
    display: flex;
  }
}

@media (min-width: 1600px) {
  .h-contacts {
    gap: 44px;
  }
  .h-contact__main {
    font-size: 17px;
  }
}

/* Страницы без левого меню (каталог, карточки, корзина): в шапке ещё логотип и «Корзина», места меньше. */
@media (min-width: 992px) {
  .h-contacts {
    margin-left: 28px;
  }
  .app:not(.no-sidebar) .h-contacts {
    margin-left: 0;
  }
  .no-sidebar .h-contacts {
    gap: 26px;
  }
  .no-sidebar .h-contact--email,
  .no-sidebar .h-contact--address {
    display: none;
  }
  .no-sidebar .h-actions .max-button span {
    display: none;
  }
  .no-sidebar .h-actions .max-button {
    padding: 0 11px;
  }
}
@media (min-width: 1200px) {
  .no-sidebar .h-actions .max-button span {
    display: inline;
  }
  .no-sidebar .h-actions .max-button {
    padding: 0 16px;
  }
}
@media (min-width: 1366px) {
  .no-sidebar .h-contact--email {
    display: flex;
  }
}
@media (min-width: 1700px) {
  .no-sidebar .h-contact--address {
    display: flex;
  }
}

/* Кнопки шапки в одном формате с «Корзиной»: высота 38px, 15px/600, радиус 4px, синий #14509f. */
@media (min-width: 992px) {
  .h-actions {
    gap: 8px;
  }
  .shop .h-actions {
    margin-right: 12px;
  }
  .h-actions .h-cta.site-button {
    height: 38px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    transition: 0.3s ease color, 0.3s ease background-color;
  }
  .h-actions .h-cta.site-button {
    padding: 0 24px;
    background: #14509f;
  }
  .h-actions .h-cta.site-button:hover {
    background: #0d4691;
  }
}
@media (min-width: 1200px) {
  .h-actions .max-button,
  .no-sidebar .h-actions .max-button {
    padding: 0 16px;
  }
}
