/* Shared header / footer / burger */
.site-bar {
  position: relative;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  border: 1px solid #DFDFDF;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  padding: 16px;
}

.site-bar__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-bar__nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 18px;
}

.site-bar__nav a {
  color: #000;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.site-bar__nav a:hover,
.site-bar__nav a.is-active {
  color: #983FFF;
}

.site-bar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-bar__contact {
  display: none !important;
}

.site-burger {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #DFDFDF;
  border-radius: 10px;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.site-burger:hover {
  background: rgba(232, 230, 230, 0.4);
}
.site-burger__icon {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.site-burger__icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-burger[aria-expanded="true"] .site-burger__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-burger[aria-expanded="true"] .site-burger__icon span:nth-child(2) {
  opacity: 0;
}
.site-burger[aria-expanded="true"] .site-burger__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-mobile {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 96px 24px 40px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.site-mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-mobile[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-mobile.is-open[hidden] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 500;
  color: #000;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-mobile a:hover,
.site-mobile a.is-active {
  background: rgba(152, 63, 255, 0.08);
  color: #983FFF;
}
.site-mobile__contact {
  margin-top: 16px;
  min-height: 54px !important;
  border: 1px solid #DFDFDF;
  background: #fff;
  font-size: 18px !important;
  font-weight: 400 !important;
}
.site-mobile__contact:hover,
.site-mobile__contact.is-active {
  background: rgba(232, 230, 230, 0.4) !important;
  color: #000 !important;
}

body.site-menu-open {
  overflow: hidden;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  text-align: center;
}
.site-footer__copy {
  margin: 0;
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
  color: #747474;
  order: 3;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 40px;
  width: 100%;
  font-size: 16px;
  color: #747474;
}
.site-footer__nav a {
  transition: color 0.15s ease;
}
.site-footer__nav a:hover,
.site-footer__nav a.is-active {
  color: #983FFF;
}

@media (min-width: 768px) {
  .site-bar {
    grid-template-columns: 1fr auto 1fr;
  }
  .site-bar__nav {
    display: flex;
  }
  .site-bar__contact {
    display: inline-flex !important;
  }
  .site-burger {
    display: none;
  }
  .site-mobile,
  .site-mobile.is-open,
  .site-mobile[hidden],
  .site-mobile.is-open[hidden] {
    display: none !important;
  }
  .site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    text-align: left;
  }
  .site-footer__nav {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 40px;
    order: 0;
  }
  .site-footer__copy {
    width: auto;
    order: 0;
    justify-self: end;
    white-space: nowrap;
  }
}
