.news-header {
  --news-header-accent: #94cf4f;
  --news-header-accent-strong: #7fbb39;
  --news-header-text: #1d1d1d;
  --news-header-muted: #737a72;
  --news-header-border: #e3e7df;
  --news-header-surface: #ffffff;
  --news-header-topbar: #f5f6f3;
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  padding: 0;
  color: var(--news-header-text);
  background: var(--news-header-surface);
  border: 0;
  box-shadow: 0 8px 28px rgba(26, 33, 24, 0.06);
  z-index: 100;
}

.news-header [hidden] {
  display: none !important;
}

.news-header .container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 160rem;
  margin: 0 auto;
  padding-inline: 4rem;
  gap: 0;
}

.news-header__skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 1rem 1.4rem;
  color: #1d1d1d;
  background: #fff;
  border: 2px solid var(--news-header-accent, #94cf4f);
  border-radius: 0.8rem;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.news-header__skip-link:focus {
  transform: translateY(0);
}

.news-header__topbar {
  min-height: 3.2rem;
  color: var(--news-header-muted);
  background: var(--news-header-topbar);
  border-bottom: 1px solid rgba(29, 29, 29, 0.06);
}

.news-header__topbar-inner {
  min-height: 3.2rem;
  justify-content: space-between;
}

.news-header__date {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.025em;
}

.news-header__languages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-header__language {
  display: grid;
  min-width: 3.2rem;
  min-height: 2.4rem;
  place-items: center;
  color: #8a9088;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.news-header__language:hover,
.news-header__language:focus-visible {
  color: var(--news-header-text);
  background: rgba(29, 29, 29, 0.05);
}

.news-header__language.is-active {
  color: var(--news-header-text);
  background: #e7eadf;
}

.news-header__mainbar {
  position: relative;
  min-height: 7.2rem;
  background: var(--news-header-surface);
  border-bottom: 1px solid var(--news-header-border);
}

.news-header__mainbar-inner {
  min-height: 7.2rem;
}

.news-header__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 19rem;
  height: auto;
  margin-right: clamp(2.4rem, 3vw, 5rem);
}

.news-header__logo img {
  display: block;
  width: 100%;
  height: auto;
}

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

.news-header__nav-list {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 0.2rem;
  overflow: visible;
}

.news-header__nav-item,
.news-header__more {
  position: relative;
  flex: 0 0 auto;
}

.news-header__nav-item > a,
.news-header__more-toggle {
  position: relative;
  display: flex;
  min-height: 4rem;
  align-items: center;
  padding: 0.8rem 1.15rem;
  color: #3d423c;
  background: transparent;
  border: 0;
  border-radius: 1rem;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.news-header__nav-item > a:hover,
.news-header__nav-item > a:focus-visible,
.news-header__more-toggle:hover,
.news-header__more-toggle:focus-visible,
.news-header__more.is-open > .news-header__more-toggle {
  color: var(--news-header-text);
  background: #f2f4ef;
}

.news-header__nav-item.is-active > a {
  color: var(--news-header-text);
  font-weight: 600;
}

.news-header__nav-item.is-active > a::after,
.news-header__more.has-active > .news-header__more-toggle::after {
  position: absolute;
  right: 1.15rem;
  bottom: 0.4rem;
  left: 1.15rem;
  height: 0.2rem;
  content: '';
  background: var(--news-header-accent);
  border-radius: 999px;
}

.news-header__more-toggle {
  gap: 0.6rem;
}

.news-header__more-toggle svg {
  width: 1rem;
  height: 0.7rem;
  transition: transform 0.18s ease;
}

.news-header__more.is-open .news-header__more-toggle svg {
  transform: rotate(180deg);
}

.news-header__more-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  display: none;
  min-width: 23rem;
  padding: 0.8rem;
  background: #fff;
  border: 1px solid var(--news-header-border);
  border-radius: 1.4rem;
  box-shadow: 0 18px 50px rgba(26, 33, 24, 0.14);
}

.news-header__more.is-open .news-header__more-menu {
  display: grid;
}

.news-header__more-menu .news-header__nav-item > a {
  width: 100%;
  min-height: 4.2rem;
  justify-content: flex-start;
  padding-inline: 1.2rem;
}

.news-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
  margin-left: 1.8rem;
}

.news-header__search-wrap {
  position: relative;
}

.news-header__icon-button,
.news-header__menu-toggle {
  display: grid;
  width: 4rem;
  height: 4rem;
  padding: 0;
  place-items: center;
  color: #343934;
  background: #f3f5f1;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.news-header__icon-button:hover,
.news-header__icon-button:focus-visible,
.news-header__search-toggle[aria-expanded='true'] {
  color: var(--news-header-text);
  background: #fff;
  border-color: #cfd5ca;
}

.news-header__icon-button svg {
  width: 2.1rem;
  height: 2.1rem;
}

.news-header .header__search.news-header__search {
  position: absolute;
  top: calc(100% + 1.2rem);
  right: 0;
  display: none;
  width: min(42rem, calc(100vw - 4rem));
  margin: 0;
}

.news-header .header__search.news-header__search.is-open {
  display: block;
}

.news-header__search-form {
  position: relative;
  width: 100%;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--news-header-border);
  border-radius: 1.4rem;
  box-shadow: 0 18px 50px rgba(26, 33, 24, 0.14);
}

.news-header .news-header__search-input {
  width: 100%;
  height: 4.6rem;
  padding: 0 5rem 0 1.5rem;
  color: var(--news-header-text);
  background: #f5f6f3;
  border: 1px solid transparent;
  border-radius: 1rem;
  outline: none;
  font-family: inherit;
  font-size: 1.4rem;
}

.news-header .news-header__search-input:focus {
  background: #fff;
  border-color: var(--news-header-accent);
  box-shadow: 0 0 0 0.3rem rgba(148, 207, 79, 0.15);
}

.news-header .news-header__search-submit {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 4rem;
  height: 4rem;
  padding: 0;
  place-items: center;
  color: #3d423c;
  background: transparent;
  border: 0;
  border-radius: 0.8rem;
  cursor: pointer;
}

.news-header .news-header__search-submit:hover,
.news-header .news-header__search-submit:focus-visible {
  background: #e9ede5;
}

.news-header .news-header__search-submit svg {
  width: 2rem;
  height: 2rem;
}

.news-header .news-header__search-results {
  top: calc(100% + 0.8rem);
  right: 0;
  left: 0;
  width: 100%;
  max-height: min(52rem, 60vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--news-header-border);
  border-radius: 1.4rem;
  box-shadow: 0 18px 50px rgba(26, 33, 24, 0.14);
}

.news-header__search-preloader span {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  margin: 1.6rem auto;
  border: 0.3rem solid #e8ece4;
  border-top-color: var(--news-header-accent-strong);
  border-radius: 50%;
  animation: news-header-spin 0.8s linear infinite;
}

@keyframes news-header-spin {
  to { transform: rotate(360deg); }
}

.news-header__consultation,
.news-header__mobile-consultation {
  display: inline-flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  color: #1f2919;
  background: var(--news-header-accent);
  border: 1px solid var(--news-header-accent);
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.news-header__consultation:hover,
.news-header__consultation:focus-visible,
.news-header__mobile-consultation:hover,
.news-header__mobile-consultation:focus-visible {
  color: #17210f;
  background: #a3dc61;
  border-color: #a3dc61;
  transform: translateY(-1px);
}

.news-header__mobile-consultation,
.news-header__menu-toggle {
  display: none;
}

.news-header__visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body .main {
  padding-top: 10.4rem;
}

@media (max-width: 1280px) {
  .news-header .container {
    padding-inline: 2.4rem;
  }

  .news-header__logo {
    width: 17.5rem;
    margin-right: 2.4rem;
  }

  .news-header__nav-item > a,
  .news-header__more-toggle {
    padding-inline: 0.9rem;
    font-size: 1.3rem;
  }

  .news-header__actions {
    margin-left: 1.2rem;
  }
}

@media (max-width: 980px) {
  .news-header__topbar,
  .news-header__topbar-inner {
    min-height: 3.2rem;
  }

  .news-header__mainbar,
  .news-header__mainbar-inner {
    min-height: 6.4rem;
  }

  .news-header__mainbar-inner {
    position: relative;
  }

  .news-header__logo {
    width: 17rem;
    margin-right: auto;
  }

  .news-header__actions {
    margin-left: auto;
  }

  .news-header__consultation {
    display: none;
  }

  .news-header__menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .news-header__menu-toggle span {
    display: block;
    width: 1.8rem;
    height: 0.15rem;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .news-header__menu-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(0.6rem) rotate(45deg);
  }

  .news-header__menu-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .news-header__menu-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-0.6rem) rotate(-45deg);
  }

  .news-header__nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 9.6rem);
    padding: 1.2rem 2.4rem 2.4rem;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--news-header-border);
    border-bottom: 1px solid var(--news-header-border);
    box-shadow: 0 18px 36px rgba(26, 33, 24, 0.12);
  }

  .news-header__nav.is-open {
    display: block;
  }

  .news-header__nav-list {
    display: grid;
    gap: 0.2rem;
  }

  .news-header__nav-item > a {
    width: 100%;
    min-height: 4.6rem;
    padding-inline: 1.2rem;
    font-size: 1.5rem;
  }

  .news-header__nav-item.is-active > a {
    background: #f2f5ee;
  }

  .news-header__nav-item.is-active > a::after {
    top: 1.1rem;
    right: auto;
    bottom: 1.1rem;
    left: 0;
    width: 0.3rem;
    height: auto;
  }

  .news-header__more {
    display: none !important;
  }

  .news-header__mobile-consultation {
    display: flex;
    width: 100%;
    margin-top: 1.4rem;
  }

  .news-header__search-wrap {
    position: static;
  }

  .news-header .header__search.news-header__search {
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    width: auto;
  }

  .news-header__search-form {
    padding: 1.2rem 2.4rem;
    border-inline: 0;
    border-radius: 0;
  }

  .news-header .news-header__search-submit {
    top: 1.5rem;
    right: 2.7rem;
  }

  .news-header .news-header__search-results {
    right: 2.4rem;
    left: 2.4rem;
    width: auto;
  }

  body.news-header-menu-open {
    overflow: hidden;
  }

  body .main {
    padding-top: 9.6rem;
  }
}

@media (max-width: 560px) {
  .news-header .container {
    padding-inline: 1.6rem;
  }

  .news-header__date {
    font-size: 1.1rem;
  }

  .news-header__language {
    min-width: 3rem;
    font-size: 1rem;
  }

  .news-header__logo {
    width: 15rem;
  }

  .news-header__actions {
    gap: 0.7rem;
  }

  .news-header__icon-button,
  .news-header__menu-toggle {
    width: 3.8rem;
    height: 3.8rem;
  }

  .news-header__nav {
    padding-inline: 1.6rem;
  }

  .news-header__search-form {
    padding-inline: 1.6rem;
  }

  .news-header .news-header__search-submit {
    right: 1.9rem;
  }

  .news-header .news-header__search-results {
    right: 1.6rem;
    left: 1.6rem;
  }
}

@media (max-width: 380px) {
  .news-header__logo {
    width: 13.5rem;
  }

  .news-header__icon-button,
  .news-header__menu-toggle {
    width: 3.6rem;
    height: 3.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-header *,
  .news-header *::before,
  .news-header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
