/* News page */
.inner-page {
  background: var(--page-bg);
}

.inner-page .header {
  position: relative;
  margin-bottom: 0;
  background: var(--color-header);
  border-bottom: 0;
  backdrop-filter: none;
}

.inner-page .top-nav {
  padding-top: 13px;
  padding-bottom: 13px;
}

.inner-page .top-nav__inner {
  min-height: 58px;
}

.inner-page .site-menu.is-mega-open .mega-menu {
  top: 86px;
}

.breadcrumbs {
  background: var(--footer-bg);
  color: var(--text);
}

[data-theme="dark"] .breadcrumbs {
  background: #3d5977;
}

.breadcrumbs__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  line-height: 22px;
}

.breadcrumbs a,
.breadcrumbs span:last-child {
  font-weight: 600;
}

.news-catalog {
  padding: 47px 0 0;
  background: var(--page-bg);
}

.news-catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.news-catalog h1 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--h2-font-family);
  font-style: var(--h2-font-style);
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line-height);
}

.news-search {
  display: flex;
  width: min(100%, 345px);
  height: 62px;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0 17px 0 22px;
}

.news-search:focus-within {
  border-color: var(--accent);
}

.news-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 19px;
  line-height: 24px;
}

.news-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.news-search button {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.news-search img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.news-search-summary {
  display: none;
  margin: -9px 0 42px;
  color: var(--text);
  font-family: var(--h6-font-family);
  font-style: var(--h6-font-style);
  font-size: var(--h6-size);
  font-weight: var(--h6-weight);
  line-height: var(--h6-line-height);
}

.news-search-summary strong {
  font-weight: 600;
}

.news-catalog.is-searching .news-search-summary {
  display: block;
}

.news-catalog.is-searching .news-filter,
.news-catalog.is-searching .news-catalog__more {
  display: none;
}

.news-tabs {
  min-width: 0;
}

.news-tab-panel[hidden] {
  display: none;
}

.news-filter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.news-filter__button {
  position: relative;
  min-height: 53px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 0 18px;
  text-align: left;
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
}

.news-filter__button.is-active {
  font-weight: 600;
}

.news-filter__button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: currentColor;
}

.news-catalog__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 47px;
  row-gap: 32px;
}

.news-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}

.news-card.is-hidden {
  display: none;
}

.news-card__image {
  display: block;
  overflow: hidden;
}

.news-card__image img {
  width: 190px;
  height: 184px;
  object-fit: cover;
}

.news-card__body {
  min-width: 0;
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.news-card__meta span {
  display: inline-flex;
  min-width: 118px;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--text);
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

.news-card__meta time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  white-space: nowrap;
}

.news-card h2 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-family: var(--body-1-font-family);
  font-style: var(--body-1-font-style);
  font-size: var(--body-1-size);
  font-weight: var(--body-1-weight);
  line-height: var(--body-1-line-height);
}

.news-card p {
  margin: 0;
  color: var(--text);
  font-family: var(--body-2-font-family);
  font-style: var(--body-2-font-style);
  font-size: var(--body-2-size);
  font-weight: var(--body-2-weight);
  line-height: var(--body-2-line-height);
}

.news-catalog__more {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

.load-more-news {
  display: inline-flex;
  min-width: 222px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.load-more-news::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 13px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.news-pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 52px;
}

.news-catalog.is-searching .news-pagination {
  display: flex;
}

.news-pagination__button,
.news-pagination__page {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  font-family: var(--h6-font-family);
  font-style: var(--h6-font-style);
  font-size: var(--h6-size);
  font-weight: var(--h6-weight);
  line-height: var(--h6-line-height);
}

.news-pagination__button {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent-soft);
}

.news-pagination__button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.news-pagination__button--prev::before {
  transform: translateX(2px) rotate(-45deg);
}

.news-pagination__button--next::before {
  transform: translateX(-2px) rotate(135deg);
}

.news-pagination__button:disabled,
.news-pagination__page.is-active {
  opacity: 0.55;
  cursor: default;
}

.news-pagination__page {
  min-width: 20px;
}

.news-pagination__dots {
  color: var(--text);
  font-size: 24px;
  line-height: 29px;
}

.account--inner {
  padding: 88px 0 68px;
  background: var(--page-bg);
}

@media (max-width: 1200px) {
  .news-catalog__list {
    column-gap: 36px;
  }

  .news-card {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
  }

  .news-card__image img {
    width: 160px;
    height: 156px;
  }

  .news-card h2 {
    font-size: 19px;
  }
}

@media (max-width: 992px) {
  .inner-page .header {
    background: var(--color-header);
  }

  .inner-page .top-nav {
    padding-top: 0;
    padding-bottom: 0;
  }

  .inner-page .top-nav__inner {
    min-height: 56px;
  }

  .inner-page .site-menu {
    top: 56px;
  }

  .breadcrumbs__inner {
    min-height: 42px;
    font-size: 14px;
    line-height: 17px;
  }

  .news-catalog {
    padding-top: 37px;
  }

  .news-catalog__head {
    margin-bottom: 38px;
  }

  .news-catalog h1 {
    font-size: 46px;
    line-height: 1.13;
  }

  .news-search {
    width: 255px;
    height: 50px;
  }

  .news-search input {
    font-size: 16px;
  }

  .news-filter {
    margin-bottom: 31px;
  }

  .news-filter__button {
    min-height: 50px;
    padding-bottom: 16px;
    font-size: 18px;
    line-height: 22px;
  }

  .news-search-summary {
    margin: -8px 0 30px;
    font-size: 20px;
    line-height: 27px;
  }

  .news-catalog__list {
    grid-template-columns: 1fr;
    row-gap: 25px;
  }

  .news-card {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
  }

  .news-card__image img {
    width: 170px;
    height: 155px;
  }

  .news-card h2 {
    font-size: 19px;
  }

  .news-card p {
    max-width: 500px;
    font-size: 15px;
  }

  .account--inner {
    padding-top: 66px;
  }
}

@media (max-width: 575px) {
  .inner-page .page-container {
    width: min(100% - 28px, var(--container));
  }

  .inner-page .top-nav {
    border-bottom: 0;
  }

  .inner-page .top-nav__inner {
    min-height: 46px;
  }

  .inner-page .logo img {
    width: 25px;
    height: 25px;
  }

  .inner-page .logo span {
    max-width: calc(100vw - 90px);
    font-size: 10px;
    line-height: 12px;
  }

  .inner-page .menu-toggle {
    width: 27px;
    height: 22px;
  }

  .inner-page .menu-toggle span {
    width: 27px;
    height: 3px;
    margin: 3px 0;
  }

  .inner-page .site-menu {
    top: 46px;
  }

  .breadcrumbs__inner {
    min-height: 33px;
    gap: 9px;
    font-size: 12px;
    line-height: 15px;
  }

  .news-catalog {
    padding-top: 26px;
  }

  .news-catalog__head {
    display: grid;
    gap: 12px;
    margin-bottom: 23px;
  }

  .news-catalog h1 {
    font-size: 30px;
    line-height: 41px;
  }

  .news-search {
    width: 100%;
    height: 45px;
    padding: 0 12px 0 18px;
  }

  .news-search input {
    font-size: 14px;
    line-height: 17px;
  }

  .news-search button {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .news-search img {
    width: 20px;
    height: 20px;
  }

  .news-filter {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 12px 18px;
    margin-bottom: 24px;
    padding-bottom: 11px;
  }

  .news-filter__button {
    min-height: 0;
    padding: 0;
    font-size: 12px;
    line-height: 15px;
    white-space: nowrap;
  }

  .news-filter__button.is-active::after {
    display: none;
  }

  .news-search-summary {
    margin: -3px 0 23px;
    font-size: 16px;
    line-height: 19px;
  }

  .news-catalog__list {
    row-gap: 16px;
  }

  .news-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .news-card__image img {
    width: 92px;
    height: 92px;
  }

  .news-card__meta {
    gap: 8px;
    margin-bottom: 6px;
  }

  .news-card__meta span {
    min-width: 74px;
    min-height: 21px;
    padding: 3px 8px;
    font-size: 8px;
    line-height: 10px;
  }

  .news-card__meta time {
    font-size: 8px;
    line-height: 10px;
  }

  .news-card h2 {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 15px;
  }

  .news-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    line-height: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .news-catalog__more {
    margin-top: 33px;
  }

  .load-more-news {
    min-width: 177px;
    min-height: 43px;
    padding: 8px 22px;
    font-size: 12px;
    line-height: 15px;
  }

  .news-pagination {
    gap: 17px;
    margin-top: 34px;
  }

  .news-pagination__button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .news-pagination__page,
  .news-pagination__dots {
    font-size: 16px;
    line-height: 19px;
  }

  .account--inner {
    padding: 54px 0 34px;
  }

  .account--inner .block-title {
    max-width: 245px;
    margin-bottom: 25px;
    font-size: 30px;
    line-height: 41px;
  }

  .account--inner .cabinet-grid {
    gap: 11px;
  }

  .account--inner .soft-card {
    min-height: 164px;
    padding: 18px 16px;
  }

  .account--inner .soft-card h3 {
    max-width: 250px;
    margin: 14px 0 16px;
    font-size: 20px;
    line-height: 24px;
  }
}

@media (max-width: 390px) {
  .inner-page .page-container {
    width: min(100% - 16px, var(--container));
  }

  .news-filter {
    gap: 12px 13px;
  }

  .news-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
  }
}
