html { scroll-padding-top: var(--site-header-height, 0px); }
.site-header-space { height: var(--site-header-height, 0px); }

#sp-header.site-header-fixed {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: auto;
  background: #fff !important;
}

#sp-header .contacts {
  --header-contact-size: 35px;
  align-items: center;
}

#sp-header .contacts > a:not(.header-phone) img {
  display: block;
  width: var(--header-contact-size);
  height: var(--header-contact-size);
  max-width: none;
}

#sp-header .contacts .header-phone.phone-desctop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

#sp-header .contacts .header-phone.phone-desctop img {
  display: block;
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0;
}

.header-phone-menu {
  position: relative;
  display: none;
  flex: none;
}

.header-phone-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--header-contact-size);
  height: var(--header-contact-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.header-phone-toggle::-webkit-details-marker { display: none; }
.header-phone-toggle::before { position: absolute; inset: -6px; content: ''; }
.header-phone-toggle:focus-visible { outline: 2px solid #739e63; outline-offset: 4px; }
.header-phone-toggle img {
  display: block;
  width: 60%;
  height: 60%;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.header-phone-popup {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1000;
  min-width: 190px;
  padding: 12px 16px;
  border: 1px solid #bed7b5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px #174d3626;
}

.header-phone-popup a {
  display: block;
  padding-block: 4px;
  color: var(--green-dark, #174d36);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199px) {
  #sp-header .contacts { --header-contact-size: 23px; }
}

@media (max-width: 991px) {
  #sp-header .contacts { --header-contact-size: 27px; }
}

@media (min-width: 576px) and (max-width: 991px) {
  #sp-header .contacts .header-phone.phone-desctop { font-size: 14px; }
}

@media (max-width: 575px) {
  #sp-header .contacts .header-phone.phone-desctop { display: none; }
  .header-phone-menu { display: block; }
}

@media (max-width: 575px) {
  #sp-header .contacts { --header-contact-size: 22px; }
}
