.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--header-chip-border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn img {
  width: 16px;
  height: 16px;
}

.header-2-top {
  background: var(--header-2-top-bg);
  border-bottom: 1px solid var(--line);
  color: var(--header-2-top-text);
  font-size: 12px;
}

.header-2-top__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-2-top__left,
.header-2-top__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-2-top__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-2-top__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--header-2-top-text);
}

.header-2-top__link,
.header-2-top__weather,
.header-2-top__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 11px;
  color: var(--header-2-top-text);
}

.header-2-top__link img,
.header-2-top__weather img,
.header-2-top__date img {
  width: 14px;
  height: 14px;
}

.header-2-weather-temp {
  font-weight: 700;
}

.header-2-middle {
  border-bottom: 1px solid var(--line);
}

.header-2-middle__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header-2-social {
  display: flex;
  align-items: center;
  gap: 12px;
  row-gap: 8px;
  flex-wrap: wrap;
}

.header-2-social-icons,
.header-2-social-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.header-2-social-tools {
  padding-left: 4px;
}

.header-2-social-icons a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-2-social-icons img {
  width: 14px;
  height: 14px;
}

.header-2-social .tool-link {
  padding: 5px 8px;
  font-size: 11px;
}

.header-2-social .tool-link img {
  width: 14px;
  height: 14px;
}

.header-2-logo {
  text-align: center;
}

.header-2-logo__image {
  height: 45px;
  width: auto;
}

.header-2-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

body.no-scroll {
  overflow: hidden;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-strong);
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-strong);
}

.hamburger span::before {
  top: -6px;
}

.hamburger span::after {
  top: 6px;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-dim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 90vw);
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__inner {
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow-y: auto;
}

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
}

.mobile-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer__close img {
  width: 16px;
  height: 16px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--header-chip-border);
  background: var(--header-input-bg);
  justify-content: space-between;
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 160px;
  color: var(--header-input-text);
  flex: 1;
}

.header-search button {
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
}

.header-search img {
  width: 16px;
  height: 16px;
}

.mobile-drawer__tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-drawer__tools .tool-link {
  justify-content: center;
}

.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mobile-menu a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--header-chip-border);
  background: var(--header-chip-bg);
  font-weight: 600;
}

.mobile-menu .current-menu-item > a {
  border-color: var(--header-accent-line);
  background: var(--highlight-bg);
}

.header-2-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--header-chip-border);
  background: var(--header-input-bg);
}

.header-2-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 140px;
  color: var(--header-input-text);
}

.header-2-search button {
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.header-2-search img {
  width: 16px;
  height: 16px;
}

.header-2-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--btn-border, var(--header-chip-border));
  background: var(--btn-bg, var(--surface));
  font-size: 12px;
  font-weight: 600;
  color: var(--btn-text, var(--text-strong));
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.tool-link img {
  width: 16px;
  height: 16px;
}

.tool-link:hover {
  background: var(--chip-hover-bg);
  border-color: var(--chip-hover-border);
  box-shadow: var(--shadow-soft);
}

.tool-link--live {
  border-color: var(--btn-border, var(--live-border));
  background: var(--btn-bg, var(--live-bg));
}

.tool-link--live:hover {
  border-color: var(--live-border-hover);
  box-shadow: var(--live-shadow);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse-color, var(--header-accent));
  box-shadow: 0 0 0 0 var(--pulse-glow, var(--accent-glow));
  animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 var(--pulse-glow, var(--accent-glow));
  }
  70% {
    box-shadow: 0 0 0 8px var(--pulse-glow-fade, var(--accent-glow-fade));
  }
  100% {
    box-shadow: 0 0 0 0 var(--pulse-glow-fade, var(--accent-glow-fade));
  }
}

.tool-link--radio {
  border-color: var(--btn-border, var(--radio-border));
  background: var(--btn-bg, var(--radio-bg));
}

.tool-link--radio:hover {
  border-color: var(--radio-border-hover);
  box-shadow: var(--radio-shadow);
}

.radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse-color, var(--radio-green));
  box-shadow: 0 0 0 0 var(--pulse-glow, var(--radio-green-glow));
  animation: radioPulse 1.6s infinite;
}

@keyframes radioPulse {
  0% {
    box-shadow: 0 0 0 0 var(--pulse-glow, var(--radio-green-glow));
  }
  70% {
    box-shadow: 0 0 0 8px var(--pulse-glow-fade, var(--radio-green-glow-fade));
  }
  100% {
    box-shadow: 0 0 0 0 var(--pulse-glow-fade, var(--radio-green-glow-fade));
  }
}

.header-2-nav {
  background: var(--header-2-nav-bg);
}

.header-2-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}


.header-2-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-2-menu li {
  position: relative;
}

.header-2-menu > li > a {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 20px;
  color: var(--header-2-nav-text);
  font-weight: 600;
  font-size: 14px;
}

.header-2-menu > li > a .menu-item-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0;
  color: var(--header-2-nav-text);
}

.header-2-menu > li > a .menu-item-icon svg {
  fill: currentColor;
  stroke: currentColor;
}

.header-2-menu a:hover {
  color: var(--header-accent-line);
}

.header-2-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--header-2-nav-text);
  border-bottom: 1.5px solid var(--header-2-nav-text);
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.85;
}

.header-2-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.header-2-menu .sub-menu a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.header-2-menu li:hover > .sub-menu,
.header-2-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-2-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 6px;
}

.menu-empty {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px dashed var(--header-chip-border);
  background: var(--header-chip-bg);
}

.header-2-top__link.menu-empty {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  font-size: 12px;
  color: var(--header-2-top-text);
}

.header-2-menu__empty {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--header-2-nav-text);
}

@media (max-width: 900px) {
  .header-2-top {
    display: none;
  }

  .header-2-middle__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .header-2-social {
    display: none;
  }

  .header-2-logo {
    text-align: left;
  }

  .header-2-actions {
    justify-content: flex-end;
    gap: 10px;
  }

  .header-2-search,
  .header-2-tools {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .header-2-nav__inner {
    overflow-x: auto;
  }

  .header-2-menu {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 16px;
  }

  .header-2-nav {
    display: none;
  }

  .header-2-search {
    width: 100%;
  }

  .header-2-search input {
    width: 100%;
  }

  .header-2-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .mobile-drawer__search {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .mobile-drawer__search input {
    font-size: 16px;
    width: 100%;
  }

  .mobile-drawer__search img {
    width: 20px;
    height: 20px;
  }
}
