.site-header {
  position: relative;
  z-index: 100;
  background: linear-gradient(
    180deg,
    var(--bg-white) 0%,
    color-mix(in srgb, var(--bg-page) 70%, var(--bg-white)) 100%
  );
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  box-shadow:
    0 1px 0 var(--amber-line),
    0 4px 22px rgba(45, 42, 36, 0.05);
}
.site-header .inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  padding-bottom: 13px;
  gap: 28px;
  flex-direction: row;
}

.h-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  min-width: 0;
}

.h-contacts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  min-width: 0;
}
.h-contacts .tel {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.2s ease;
}
.h-contacts .tel:hover {
  color: var(--amber);
}
.h-contacts .addr {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  font-style: italic;
}

.h-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  font-style: italic;
  border: 1px solid color-mix(in srgb, var(--amber-line) 55%, var(--border));
  border-radius: 8px;
  padding: 7px 20px;
  background: color-mix(in srgb, var(--amber-line) 12%, transparent);
  flex-shrink: 0;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.h-logo:hover {
  border-color: color-mix(in srgb, var(--amber) 35%, var(--border));
  background: color-mix(in srgb, var(--amber-line) 20%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber-line) 35%, transparent);
}

.h-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.h-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.h-nav > a,
.h-nav > .nav-item > a {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.h-nav > a:hover,
.h-nav > .nav-item > a:hover {
  color: var(--graphite);
  background: color-mix(in srgb, var(--bg-page) 55%, transparent);
}
.h-nav > a.active {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber-line) 14%, var(--bg-white));
  box-shadow: inset 0 0 0 1px var(--amber-line);
}

.h-nav .nav-sep {
  display: none;
}

.nav-item { position: relative; }
/* «мост» под пунктом, чтобы курсор не терял hover при переходе к выпадашке */
.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 199;
}
.nav-item > a .arrow {
  width: 10px;
  height: 10px;
  opacity: 0.55;
  transition: transform 0.25s, opacity 0.2s;
  flex-shrink: 0;
}
.nav-item:hover > a .arrow {
  transform: rotate(180deg);
  opacity: 0.85;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: color-mix(in srgb, var(--bg-card) 96%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-top: 2px solid var(--amber-line);
  border-radius: 0 0 10px 10px;
  min-width: 210px;
  box-shadow: 0 14px 36px rgba(45, 42, 36, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 200;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s, background 0.18s, padding-left 0.18s;
}
.nav-dropdown a:last-child {
  border-bottom: none;
  border-radius: 0 0 10px 10px;
}
.nav-dropdown a:hover {
  color: var(--graphite);
  background: color-mix(in srgb, var(--amber) 8%, var(--bg-card));
  padding-left: 22px;
}
.nav-dropdown a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.65;
}
.nav-dropdown a:hover svg {
  opacity: 1;
}
.nav-dropdown a.active {
  color: color-mix(in srgb, var(--amber) 90%, var(--graphite));
}

.h-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  background: color-mix(in srgb, var(--bg-white) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--glass-border) 95%, var(--border));
  border-radius: 8px;
  padding: 7px 12px;
  margin-left: 4px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.h-search:focus-within {
  border-color: color-mix(in srgb, var(--amber-line) 70%, var(--border));
  background: var(--bg-white);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--amber-line) 40%, transparent);
}
.h-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 12px;
  width: 110px;
  font-family: 'Nunito Sans', sans-serif;
}
.h-search input::placeholder {
  color: var(--muted-2);
}
.h-search svg {
  width: 14px;
  height: 14px;
  opacity: 0.55;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.h-search svg:hover {
  opacity: 0.9;
}

.h-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.h-burger:hover {
  background: color-mix(in srgb, var(--bg) 90%, var(--bg-white));
}
.h-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--graphite2);
  border-radius: 2px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.h-left { animation: fadeUp .4s ease both; }
.h-nav { animation: fadeUp .4s .06s ease both; }

@media (max-width: 768px) {
  .site-header .inner {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 10px;
  }
  .h-search {
    display: none;
  }
  .nav-item::before {
    display: none;
  }
  .h-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(45, 42, 36, 0.12);
    z-index: 300;
  }
  .h-nav.is-open {
    display: flex;
  }
  .h-nav > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-item > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown {
    position: static;
    top: auto;
    left: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    min-width: 0;
    margin: 0 0 10px;
    padding: 6px 0 6px 10px;
    background: color-mix(in srgb, var(--bg-page) 65%, var(--bg-white));
  }
  .nav-dropdown a {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    border-radius: 0;
  }
  .nav-dropdown a:last-child {
    border-bottom: none;
  }
  .h-right {
    gap: 6px;
    margin-left: auto;
  }
  .h-burger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .h-left { gap: 14px; }
  .h-contacts { flex-direction: column; align-items: flex-start; gap: 2px; }
}
