body {
  --dr-header-bg: rgba(255, 255, 255, 0.96);
  --dr-header-border: rgba(217, 119, 6, 0.14);
  --dr-header-text: #26211b;
  --dr-header-muted: #6f6255;
  --dr-header-primary: #cb5a1c;
  --dr-header-secondary: #f29b2f;
  --dr-header-surface: #fffaf4;
  --dr-header-shadow: 0 18px 50px rgba(104, 58, 19, 0.12);
}

.dr-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1300;
  width: 100%;
  padding: 18px 30px 12px;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dr-header-border);
  box-sizing: border-box;
  box-shadow: 0 14px 36px rgba(104, 58, 19, 0.12);
}

.dr-header__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.dr-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dr-header__logo {
  display: block;
  width: 136px;
  height: auto;
}

.dr-header__nav {
  flex: 1;
  min-width: 0;
}

.dr-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dr-header__item {
  position: relative;
}

.dr-header__item--has-panel::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 24px;
}

.dr-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--dr-header-text);
  font-family: MiSans;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.dr-header__link:hover,
.dr-header__item:hover > .dr-header__link {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.24);
  transform: translateY(-1px);
}

.dr-header__link--highlight,
.dr-header__link--accent,
.dr-header__item.active > .dr-header__link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
  box-shadow: none;
}

.dr-header__link--highlight::before,
.dr-header__link--accent::before,
.dr-header__item.active > .dr-header__link::before {
  content: '';
  position: absolute;
  inset: auto 12px 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(203, 90, 28, 0), rgba(203, 90, 28, 0.95), rgba(242, 155, 47, 0));
  transition: opacity 0.22s ease;
}

.dr-header__item:hover > .dr-header__link--highlight::before,
.dr-header__item:hover > .dr-header__link--accent::before,
.dr-header__item:hover > .dr-header__link::before,
.dr-header__item.active:hover > .dr-header__link::before,
.dr-header__item.is-open > .dr-header__link::before {
  opacity: 0;
}

.dr-header__caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
}

.dr-header__item:hover .dr-header__caret,
.dr-header__item.is-open .dr-header__caret {
  transform: rotate(225deg) translateY(-1px);
}

.dr-header__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  pointer-events: none;
}

.dr-header__panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
}

.dr-header__item:hover > .dr-header__panel,
.dr-header__item.is-open > .dr-header__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dr-header__panel--compact {
  min-width: 280px;
}

.dr-header__panel--cases {
  min-width: 320px;
}

.dr-header__panel-list,
.dr-header__mega-grid {
  background: var(--dr-header-bg);
  border: 1px solid rgba(203, 90, 28, 0.1);
  border-radius: 24px;
  box-shadow: var(--dr-header-shadow);
}

.dr-header__panel-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.dr-header__panel-list a,
.dr-header__group-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--dr-header-muted);
  font-family: MiSans;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dr-header__panel-list a:hover,
.dr-header__group-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.24);
  transform: translateX(2px);
}

.dr-header__panel--mega {
  position: fixed;
  left: 50%;
  top: 82px;
  width: min(1360px, calc(100vw - 48px));
  transform: translateX(-50%) translateY(16px);
}

.dr-header__item:hover > .dr-header__panel--mega {
  transform: translateX(-50%) translateY(0);
}

.dr-header__mega-grid {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.dr-header__mega-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dr-header__group {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(203, 90, 28, 0.08);
}

.dr-header__group h4 {
  margin: 0 0 14px;
  color: var(--dr-header-text);
  font-family: MiSans;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.dr-header__group-links {
  display: grid;
  gap: 8px;
}

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

.dr-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: MiSans;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.dr-header__action:hover {
  transform: translateY(-1px);
}

.dr-header__action--ghost {
  color: var(--dr-header-primary);
  background: rgba(203, 90, 28, 0.08);
}

.dr-header__action--soft {
  color: var(--dr-header-primary);
  background: #ffffff;
  border: 1px solid rgba(203, 90, 28, 0.16);
}

.dr-header__action--solid {
  color: #ffffff;
  background: linear-gradient(135deg, var(--dr-header-primary), var(--dr-header-secondary));
  box-shadow: 0 12px 28px rgba(203, 90, 28, 0.22);
}

@media (max-width: 1360px) {
  .dr-header__inner {
    gap: 16px;
  }

  .dr-header__menu {
    gap: 4px;
  }

  .dr-header__link {
    padding: 0 12px;
    font-size: 14px;
  }

  .dr-header__actions {
    gap: 8px;
  }

  .dr-header__action {
    padding: 0 13px;
  }
}

@media (max-width: 1180px) {
  .dr-header__inner {
    min-width: 0;
  }
}
