.site-header {
  position: static;
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr minmax(180px, auto);
  align-items: start;
  gap: 16px 28px;
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  padding: 22px 0 16px;
  min-height: 168px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand img {
  width: 64px;
  height: 64px;
}

.brand-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.social {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 14px;
}

.social a {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.social svg { width: 12px; height: 12px; }

.nav-utility {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  padding-top: 4px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.nav-utility a {
  transition: color 0.3s ease;
}

.header-contacts {
  text-align: right;
  font-size: 13px;
  line-height: 1.55;
}

.header-contacts a { display: block; }

.header-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.search-form {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.search-form.is-open {
  max-height: 48px;
  opacity: 1;
  visibility: visible;
}

.search-form input {
  width: 180px;
  border: 1px solid var(--line);
  padding: 6px 8px;
}

.nav-services {
  background: #111;
  color: #fff;
}

.nav-services ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 12px 20px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-services a { color: #fff; transition: color 0.3s ease; }
.nav-services a:hover,
.nav-services [aria-current="page"] { color: #c9d4e8; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

.nav-mobile {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-mobile a {
  display: block;
  padding: 8px 0;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-mobile details { border-top: 1px solid var(--line); }
.nav-mobile summary { cursor: pointer; padding: 10px 0; text-transform: uppercase; }

@media (max-width: 768px) {
  .header-top {
    grid-template-columns: 1fr auto;
    min-height: auto;
  }
  .social,
  .nav-utility { display: none; }
  .header-contacts { text-align: left; }
  .burger { display: grid; place-items: center; }
  .nav-services { display: none; }
  .nav-mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-mobile.is-open {
    max-height: 80vh;
    overflow: auto;
    padding: 12px 20px 24px;
  }
}
