.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(1760px, calc(100% - 36px));
  transform: translateX(-50%);
  transition: top .35s ease, width .35s ease;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink, #171714);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header .header-shell {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.2vw, 22px);
  padding: 10px 14px 10px 24px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 35px rgba(29,25,18,.08);
  backdrop-filter: blur(20px);
  transition: min-height .35s ease, background .35s ease;
}

.site-header.compact {
  top: 10px;
  width: min(1680px, calc(100% - 28px));
}

.site-header.compact .header-shell {
  min-height: 66px;
  background: rgba(255,255,255,.94);
}

.site-header .brand {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink, #171714);
  text-decoration: none;
}

.site-header .brand img {
  width: 47px;
  height: 47px;
  object-fit: contain;
}

.site-header .brand-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}

.site-header .brand-note {
  display: block;
  margin-top: 5px;
  color: #8a8780;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header .desktop-nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.35vw, 24px);
  margin-left: 0;
}

.site-header .desktop-nav a {
  position: relative;
  padding: 10px 0;
  color: #44423d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--brand, #d71920);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.site-header .desktop-nav a:hover::after,
.site-header .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.site-header .header-phone {
  color: var(--ink, #171714);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .header-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
  max-width: 100%;
  padding-inline: 18px;
  white-space: nowrap;
}

.site-header .header-cta .arrow {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
}

.site-header .menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink, #171714);
  cursor: pointer;
}

.site-header .menu-lines,
.site-header .menu-lines::before,
.site-header .menu-lines::after {
  width: 18px;
  height: 1.5px;
  display: block;
  position: relative;
  content: "";
  background: #fff;
  transition: transform .25s ease, top .25s ease, background .25s ease;
}

.site-header .menu-lines::before { position: absolute; top: -6px; }
.site-header .menu-lines::after { position: absolute; top: 6px; }
.site-header .menu-toggle.active .menu-lines { background: transparent; }
.site-header .menu-toggle.active .menu-lines::before { top: 0; transform: rotate(45deg); }
.site-header .menu-toggle.active .menu-lines::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  padding: 126px 24px 32px;
  background: rgba(247,245,239,.98);
  backdrop-filter: blur(18px);
}

.mobile-menu.open { display: flex; flex-direction: column; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  padding: 17px 0;
  border-bottom: 1px solid var(--line, rgba(23,23,20,.12));
  color: var(--ink, #171714);
  font-family: "Inter", Arial, sans-serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.035em;
  text-decoration: none;
}
.mobile-menu nav a,
.mobile-contacts a { min-height: 44px; }
.mobile-menu nav a[aria-current="page"] { color: var(--brand, #d71920); }
.mobile-contacts { display: grid; gap: 10px; margin-top: auto; }
body.menu-open { overflow: hidden; }
body.header-offset .page-hero { padding-top: 170px; }
body.header-offset .not-found { padding-top: 110px; }

@media (min-width: 1321px) and (max-width: 1560px) {
  .site-header .header-shell { gap: 14px; }
  .site-header .brand { min-width: 198px; }
  .site-header .desktop-nav { gap: 13px; }
  .site-header .desktop-nav a { font-size: 12px; }
  .site-header .header-phone { display: none; }
  .site-header .header-cta { padding-inline: 15px; }
}

@media (max-width: 1320px) {
  .site-header .desktop-nav,
  .site-header .header-phone,
  .site-header .header-cta { display: none; }
  .site-header .menu-toggle { display: grid; }
}

@media (max-width: 620px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .site-header.compact { top: 7px; width: calc(100% - 14px); }
  .site-header .header-shell { min-height: 70px; padding: 8px 10px 8px 15px; border-radius: 21px; }
  .site-header.compact .header-shell { min-height: 62px; }
  .site-header .brand { min-width: 0; gap: 10px; }
  .site-header .brand img { width: 42px; height: 42px; }
  .site-header .brand-name { font-size: 15px; }
  .site-header .brand-note { max-width: 155px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
  .site-header .menu-toggle { width: 44px; height: 44px; flex: 0 0 auto; }
  .mobile-menu { padding-top: 105px; }
  body.header-offset .page-hero { padding-top: 135px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .header-shell,
  .site-header .menu-lines,
  .site-header .menu-lines::before,
  .site-header .menu-lines::after { transition: none; }
}
