@charset "UTF-8";

.home-page ol, .home-page ul {
    list-style: none;
}

.home-page article, .home-page aside, .home-page details,.home-page figcaption, .home-page figure,
.home-page footer, .home-page header, .home-page hgroup, .home-page menu, .home-page nav, .home-page section {
  display: block;
}

.home-page * {
  line-height: 1;
}

.home-page table {
  border-collapse: collapse;
  border-spacing: 0;
}

.home-page button {
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  background-color: transparent;
  cursor: pointer;
}

.home-page blockquote, .home-page q {
  quotes: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}
.home-page details, .home-page summary {
  all: unset;
  display: block;
}

.home-page a {
  -webkit-text-decoration: none;
  text-decoration: none;
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.YA-B2 {
max-width: 485px;
max-height: 530px;
padding: 0px 10px 0 10px;
}

[data-tip] {
  position: relative;
}
[data-tip]:hover, [data-tip]:focus-visible {
  transform: translateY(-1px);
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translate(-50%, -2px) scale(0.98);
  transform-origin: 50% 100%;
  z-index: 999;
  min-width: 100px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  text-align: center;
  background: hsl(240, 5%, 12%);
  color: white;
  font: 500 12px system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Roboto, Arial, sans-serif;
  white-space: normal;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 0.5rem - 6px);
  left: 50%;
  width: 10px;
  height: 10px;
  background: hsl(240, 5%, 12%);
  transform: translate(-50%, -2px) rotate(180deg) scale(0.98);
  border-radius: 2px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip]:hover::before, [data-tip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -4px) scale(1);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-tip]::after,
  [data-tip]::before {
    transition: none;
  }
}
@media (max-width: 767px) {
.premium-border .border {
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 50px;
    position: absolute;
    top: 0;
    left: 0;
 }
  .feed-card__manage-btns [data-tip]::after {
    left: auto;
    right: 0;
    transform: translateY(-2px) scale(0.98);
    text-align: right;
  }
  .feed-card__manage-btns [data-tip]::before {
    left: auto;
    right: 8px;
    transform: translateY(-2px) rotate(180deg) scale(0.98);
  }
  .YA-FULL {
      display:none;
  }
}
.topblock__user-card {
  display: flex;
  align-items: center;
  -moz-column-gap: 10px;
       column-gap: 10px;
  font: 500 12px Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  color: rgba(0, 0, 0, 0.35);
  -webkit-text-decoration: none;
  text-decoration: none;
  transition: box-shadow 0.2s ease, color 0.2s ease;
  margin: 0 0 10px;
}

.topblock__user-nickname {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- СОСТОЯНИЯ --- */
.topblock__user-card:hover .topblock__user-nickname {
  -webkit-text-decoration: underline;
  text-decoration: underline;
  text-underline-offset: 2px;
}

details.feed-settings {
  position: relative;
  width: 30px;
  height: 32px;
  border-radius: 20px;
  transition: all 0.3s ease-out;
}
.feed-settings:hover {
  background-color: #2f7eba;
  color: #FFFFFF;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.22);
}
.feed-settings:active {
  background-color: #3c78a5;
  color: #FFFFFF;
}

.feed-settings[open] {
  width: 200px;
  padding: 0 23px;
  box-sizing: border-box;
  background-color: #2665bd;
  color: #FFFFFF;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.22);
  border-radius: 20px 20px 0 0;
  z-index: 999;
}
.feed-settings[open] .feed-settings__summary {
  width: 100%;
  height: 32px;
  font-family: "Font Awesome 5 Free";
}
.feed-settings[open] .feed-settings__summary::before {
  transform: translateY(-50%);
  left: 0;
  font-family: "Font Awesome 5 Free";
}
.feed-settings[open] .feed-settings__summary::after {
  display: block;
  position: absolute;
  white-space: nowrap;
  margin-left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Font Awesome 5 Free";
}

.feed-settings__summary {
  cursor: pointer;
  position: relative;
  height: 32px;
}
.feed-settings__summary::before {
  content: "\f067";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.feed-settings__summary::after {
  content: "Настройте фильтры";
  display: none;
}

.feed-settings[open] .feed-settings__summary::after {
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}

.feed-settings__list {
  position: absolute;
  padding: 20px 20px;
  width: 200px;
  border-radius: 0 0 20px 20px;
  border-top: 2px solid #444444;
  box-sizing: border-box;
  background-color: #f6f6f6;
  color: #333333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.22);
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.feed-settings__item {
  height: 30px;
  position: relative;
}

.feed-settings__item:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #eeeeee;
}

.feed-settings__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.feed-settings__option:hover {
  color: #2f7eba;
}

.feed-settings__checkbox {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.feed-settings__control {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  display: inline-grid;
  align-items: center;
  justify-items: center;
  place-items: center;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.feed-settings__control::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg);
  top: 0;
  position: absolute;
}

.feed-settings__checkbox:checked ~ .feed-settings__control::after {
  border-right-color: #333333;
  border-bottom-color: #333333;
}

.feed-settings__option:has(.feed-settings__checkbox:focus-visible) {
  outline-offset: 3px;
  border-radius: 6px;
}

.feed-settings__checkbox:disabled ~ .feed-settings__control,
.feed-settings__checkbox:disabled ~ .feed-settings__text {
  opacity: 0.5;
  cursor: not-allowed;
}

.color-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  -moz-column-gap: 15px;
       column-gap: 15px;
}

.color-mark__item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #EEEEEE;
  color: #666666;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: "Glyphicons Halflings";
}
.color-mark__item:hover, .color-mark__item:focus-within {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.3s ease-out;
}
.color-mark__item:active {
  background-color: #3c78a5;
  color: #FFFFFF;
}

.color-mark__indicator {
  width: 15px;
  border-radius: 50%;
  height: 15px;
  display: inline-block;
  margin: 0 7px 0 0;
}

.color-mark__item--active {
    background-color: #3c78a5;
    color: #FFFFFF;
}
.color-mark__item--blue > .color-mark__indicator {
  background-color: #01f;
}
.color-mark__item--brown > .color-mark__indicator {
  background-color: #723800;
}
.color-mark__item--orange > .color-mark__indicator {
  background-color: #ff8b00;
}
.color-mark__item--yellow > .color-mark__indicator {
  background-color: #ffd000;
}
.color-mark__item--green > .color-mark__indicator {
  background-color: #04a700;
}
.color-mark__item--red > .color-mark__indicator {
  background-color: red;
}

.color-mark__name {
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}

.color-mark__edit,
.color-mark__confirm {
  width: 0;
  height: 0;
  transition: all 0.2s ease-in-out;
  position: relative;
  font-family: "Glyphicons Halflings";
}
.color-mark__edit::before,
.color-mark__confirm::before {
  position: absolute;
  display: none;
  width: 15px;
  height: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.color-mark__edit::before {
  content: "✏";
}

.color-mark__confirm::before {
  content: "\e013";
}

.color-mark__item:hover .color-mark__edit,
.color-mark__item:hover .color-mark__confirm,
.color-mark__item:active .color-mark__edit,
.color-mark__item:active .color-mark__confirm,
.color-mark__item:focus-within .color-mark__edit,
.color-mark__item:focus-within .color-mark__confirm {
  width: 15px;
  height: 15px;
  margin-left: 5px;
}
.color-mark__item:hover .color-mark__edit::before,
.color-mark__item:hover .color-mark__confirm::before,
.color-mark__item:active .color-mark__edit::before,
.color-mark__item:active .color-mark__confirm::before,
.color-mark__item:focus-within .color-mark__edit::before,
.color-mark__item:focus-within .color-mark__confirm::before {
  display: block;
  width: 15px;
  height: 15px;
}

.color-mark__block {
  display: flex;
  gap: 10px;
  position: relative;
  color: #AAAAAA;
  cursor: pointer;
  font-size: 11px;
  font-family: "Glyphicons Halflings";
  margin: 0 0 0 10px;
}
.color-mark__block--active {
  width: 115px;
}

.color-mark__btn {
  position: relative;
  height: 100%;
  width: 12px;
}
.color-mark__btn::before {
  position: absolute;
  content: "\e042";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.color-mark__list {
  height: 100%;
  width: 100%;
  display: none;
  justify-content: space-between;
  align-items: center;
}

.color-mark__list--active {
    display:flex;
}

.color-mark__tag {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.color-mark__tag--brown {
  background-color: #723800;
  border: 1px solid white;
}
.color-mark__tag--brown:hover {
  border: 1px solid #723800;
}
.color-mark__tag--orange {
  background-color: #ff8b00;
  border: 1px solid white;
}
.color-mark__tag--orange:hover {
  border: 1px solid #ff8b00;
}
.color-mark__tag--green {
  background-color: #04a700;
  border: 1px solid white;
}
.color-mark__tag--green:hover {
  border: 1px solid #04a700;
}
.color-mark__tag--blue {
  background-color: #01f;
  border: 1px solid white;
}
.color-mark__tag--blue:hover {
  border: 1px solid #01f;
}
.color-mark__tag--yellow {
  background-color: #ffd000;
  border: 1px solid white;
}
.color-mark__tag--yellow:hover {
  border: 1px solid #ffd000;
}
.color-mark__tag--red {
  background-color: red;
  border: 1px solid white;
}
.color-mark__tag--red:hover {
  border: 1px solid red;
}
.feed-card {
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 10px;
  transition: all 0.25s ease-in-out;
}
@media (max-width: 767px) {
  .feed-card {
    padding: 8px;
  }
}
.feed-card--unread {
  background-color: #F0F8FF;
}

.feed-card__top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 10px;
  gap: 10px;
}
@media (max-width: 767px) {
  .feed-card__top {
    align-items: flex-start;
    gap: 8px;
  }
}

.feed-card__author,
.feed-card__magazine {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}
@media (max-width: 767px) {
  .feed-card__author,
  .feed-card__magazine {
    gap: 8px;
    height: 32px;
  }
}

.feed-card__magazine {
  min-width: 0;
  flex: 1 1 auto;
}

.feed-card__author-avatar {
  border-radius: 50%;
  overflow: hidden;
  width: 40px;
  height: 40px;
}
@media (max-width: 767px) {
  .feed-card__author-avatar {
    width: 32px;
    height: 32px;
  }
}

.feed-card__magazine-avatar {
  border-radius: 3px;
  width: 40px;
  height: 27px;
}
@media (max-width: 767px) {
  .feed-card__magazine-avatar {
    width: 32px;
    height: 22px;
    padding-top: 4px;
  }
}

.feed-card__author-img,
.feed-card__magazine-img {
  width: 100%;
  height: 100%;
}

.feed-card__author-content,
.feed-card__magazine-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}

.feed-card__magazine-content {
  min-width: 0;
}

.feed-card__magazine-title {
  display: flex;
  flex-wrap: wrap;
  word-wrap: anywhere;
  gap: 5px;
  min-width: 0;
}
@media (max-width: 767px) {
  .feed-card__magazine-title {
    gap: 4px;
  }
}

.feed-card__author-nickname,
.feed-card__magazine-nickname {
  color: #2665bd;
  font-size:14px;
}
.feed-card__author-nickname:hover,
.feed-card__magazine-nickname:hover {
  color: rgb(50, 104, 145);
}

.feed-card__magazine-separator {
  position: relative;
  font-size: 12px;
  width: 15px;
  font-family: "Font Awesome 5 Free";
}
.feed-card__magazine-separator::before {
  position: absolute;
  content: "\f0c0";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.feed-card__manage-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 999;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .feed-card__manage-btns {
    opacity: 1;
    gap: 8px;
    height: 30px;
  }
}

.feed__item:hover .feed-card__manage-btns {
  opacity: 1;
}

.feed__item:hover .feed-card {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.1);
}

details.feed-card__more {
  height: 40%;
  position: relative;
  cursor: pointer;
}

summary.feed-card__more-summary {
  position: relative;
  color: #AAAAAA;
  font-size: 12px;
  height: 100%;
  width: 12px;
  font-family: "Glyphicons Halflings";
}
.feed-card__more-summary::before {
  position: absolute;
  content: "\e234";
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

button.feed-card__hide-btn {
  position: relative;
  color: #AAAAAA;
  font-size: 12px;
  height: 100%;
  width: 12px;
  height: 12px;
  font-family: "Glyphicons Halflings";
}
.feed-card__hide-btn::before {
  position: absolute;
  content: "\e014";
  top: 0;
  left: 0;
}

.feed-card__more-list {
  position: absolute;
  bottom: -25px;
  right: 0;
  width: 200px;
  max-width: calc(100vw - 20px);
  display: block;
  padding: 5px 0;
  box-shadow: 1px 1px 40px 0px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
  border-radius: 5px;
  z-index: 9999;
}

.feed-card__more-item {
  font-size: 12px;
}
.feed-card__more-item:hover {
  background-color: #f5f5f5;
}

.feed-card__ban-btn {
  width: 100%;
  padding: 3px 0;
  text-align: center;
}

.feed-card__promotion {
  display: flex;
  align-items: center;
}

.feed-card__promotion-text {
  background-color: #2665bd;
  padding: 10px 12px;
  color: #ffffff;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}

.feed-card__article {
  min-height: 0;
}

.feed-card__article-figure {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 0 0 15px 0;
  overflow: hidden;
}
@media (max-width: 767px) {
  .feed-card__article-figure {
    margin: 0 0 10px 0;
  }
}

.feed-card__article-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.feed-card__article-title {
  color: #444444;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  font-size: 22px;
  line-height: 26px;
  font-weight: 500;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 767px) {
  .feed-card__article-title {
    -webkit-line-clamp: 3;
    margin: 0 0 8px;
  }
}

.feed-card__article-description {
  font-size: 14px;
  line-height: 18px;
  color: #333333;
  margin: 0 0 10px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}
@media (max-width: 767px) {
  .feed-card__article-description {
    font-size: 15px;
    line-height: 20px;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    margin: 0 0 20px;
  }
}

.feed-card__meta {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
@media (max-width: 767px) {
  .feed-card__meta {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

.feed-card__meta-btns {
  display: flex;
  -moz-column-gap: 5px;
       column-gap: 5px;
}
@media (max-width: 767px) {
  .feed-card__meta-btns {
    flex-wrap: wrap;
    row-gap: 6px;
    -moz-column-gap: 6px;
         column-gap: 6px;
    flex: 1 1 auto;
  }
}

button.feed-card__like-btn,
a.feed-card__comments-link,
button.feed-card__bookmark-btn {
  position: relative;
  padding: 7px 8px;
  background-color: #f4f4f4;
  color: #AAAAAA;
  cursor: pointer;
  border-radius: 8px;
  font-size: 11px;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  font-family: "Glyphicons Halflings";
  min-width: 40px;
}
.feed-card__like-btn:hover,
.feed-card__comments-link:hover,
.feed-card__bookmark-btn:hover {
  background-color: #cfcfcf;
  color: #333333;
}
button.feed-card__like-btn--active,
.feed-card__comments-link--active,
button.feed-card__bookmark-btn--active {
  background-color: #326891;
  color: #fff;
}
.feed-card__like-btn--active:hover,
.feed-card__comments-link--active:hover,
.feed-card__bookmark-btn--active:hover {
  background-color: #326891;
  color: #fff;
}
.feed-card__like-btn::before,
.feed-card__comments-link::before,
.feed-card__bookmark-btn::before {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 11px;
}
.feed-card__like-btn:active,
.feed-card__comments-link:active,
.feed-card__bookmark-btn:active {
  transform: translateY(1px);
}
@media (max-width: 767px) {
  button.feed-card__like-btn,
  button.feed-card__comments-link,
  button.feed-card__bookmark-btn {
    padding: 6px 7px;
    font-size: 10px;
    border-radius: 7px;
  }
}

.feed-card__like,
.feed-card__comments {
  margin-left: 15px;
  vertical-align: super;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}
@media (max-width: 767px) {
  span.feed-card__like,
  span.feed-card__comments {
    line-height: 12px;
  }
}

.feed-card__like-btn::before {
  content: "\e093";
}

.feed-card__comments-link::before {
  content: "\e111";
}

.feed-card__bookmark-btn {
  padding: 7px 15px;
}
.feed-card__bookmark-btn::before {
  content: "\e044";
  left: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 767px) {
  .feed-card__bookmark-btn {
    padding: 6px 12px;
  }
}

.feed-card__views {
  padding: 5px;
  position: relative;
  color: #AAAAAA;
  font-size: 10px;
  display: flex;
  align-items: center;
  font-family: "Glyphicons Halflings";
}
.feed-card__views::before {
  position: absolute;
  content: "\e105";
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.feed-card__views-count {
  margin-left: 10px;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}
@media (max-width: 767px) {
  .feed-card__views-count {
    margin-left: 8px;
  }
}

.feed-card__article-link:hover .feed-card__article-img {
  transform: scale(1.03);
}

.feed-card__article-link:hover .feed-card__article-title {
  color: #2665bd;
}

.feed-card__author:focus-visible,
.feed-card__like-btn:focus-visible,
.feed-card__comments-link:focus-visible,
.feed-card__bookmark-btn:focus-visible,
.feed-card__more-summary:focus-visible,
.feed-card__hide-btn:focus-visible,
.feed-card__article-link:focus-visible {
  outline: 2px solid #2665bd;
  outline-offset: 2px;
}

.vk-iframe-preview,.viqeo-preview {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 0 0 15px 0;
  overflow: hidden;
}
@media (min-width: 768px) {
  .vk-iframe-preview,.viqeo-preview {
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-card,
  .feed-card__article-img,
  .feed-card__more-summary::before,
  .feed-card__more-list,
  .feed-card__like-btn,
  .feed-card__comments-link,
  .feed-card__bookmark-btn {
    transition: none !important;
  }
  .feed__item:hover .feed-card {
    transform: none;
    box-shadow: none;
  }
}
@media (min-width: 1000px) and (max-width: 1100px) {
  .feed-card__promotion-text {
    letter-spacing: 1px;
  }
  .feed-card__article-title {
    font-size: 18px;
    line-height: 22px;
  }
  .feed-card__article-description {
    font-size: 12px;
    line-height: 15px;
  }
}
.topblock {
  max-width: 1340px;
  margin: 70px 10px 50px;
}
@media (min-width: 768px) and (max-width: 900px) {
  .topblock {
    margin-top: 110px;
  }
}
@media (min-width: 1350px) {
  .topblock {
    margin: 20px auto 20px;
  }
  .YA-FULL {
    grid-column-start: 1;
    grid-column-end: 3;
   }
}

.topblock__title {
  font: 500 14px Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Arial, sans-serif;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.topblock__grid {
  display: grid;
  grid-template-columns: 1.8fr 3fr;
  grid-template-rows: auto auto;
  grid-gap: 30px;
  gap: 30px;
}
.topblock__grid > .topblock__card--main {
  grid-column: 1;
  grid-row: 1/span 2;
}
.topblock__grid > .topblock__list--top {
  grid-column: 2;
  grid-row: 1;
}
.topblock__grid > .topblock__list--bottom {
  grid-column: 2;
  grid-row: 2;
}

.topblock__card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.topblock__list {
  display: grid;
  grid-gap: 20px;
  gap: 20px;
}

.topblock__list--top {
  grid-template-columns: repeat(2, 1fr);
}

.topblock__list--bottom {
  grid-template-columns: repeat(3, 1fr);
}

.topblock__card-link {
  display: block;
  -webkit-text-decoration: none;
  text-decoration: none;
}

.topblock__card-figure {
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 5px;
}

.topblock__card-img {
  width: 100%;
  height: 150px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  will-change: transform;
}

.topblock__card--main .topblock__card-img {
  height: max(240px, min(35vh, 260px));
}

.topblock__list--bottom .topblock__card-img {
  height: 100px;
}

.topblock__card-title {
  margin: 0 0 10px;
  font: 500 max(18px, min(2.5vw, 28px)) Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  color: #444444;
  display: -webkit-box;
  line-clamp: 5;
  box-orient: vertical;
  overflow: hidden;
}

.topblock__list--top .topblock__card-title {
  font-size: max(18px, min(1.5vw, 20px));
}

.topblock__list--bottom .topblock__card-title {
  font-size: max(16px, min(1.5vw, 18px));
}

.topblock__card-description {
  margin: 0 0 10px;
  color: rgba(0, 0, 0, 0.55);
  font: 400 14px Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topblock__list--top .topblock__card-description {
  font-size: 12px;
}

.topblock__list--bottom .topblock__card-description {
  display: none;
}

.topblock__dots {
  display: none;
}

/* --- СОСТОЯНИЯ --- */
.topblock__card-link:hover .topblock__card-title,
.topblock__card-link:focus-visible .topblock__card-title {
  color: #2665bd;
}

.topblock__card-link:hover .topblock__card-figure img {
  transform: scale(1.05);
}

/* --- МЕДИА --- */
@media (max-width: 767px) {
  .topblock__grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-left: 10px;
    padding-right: 10px;
    scroll-padding-inline: 10px;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .topblock__grid::-webkit-scrollbar {
    height: 0;
  }
  .topblock__list {
    display: contents;
  }
  .topblock__card {
    flex: 0 0 90%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .topblock__card-figure .topblock__card-img {
    height: 260px;
  }
  .topblock__grid .topblock__card-title {
    font: 500 max(22px, min(5vw, 28px)) Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  }
  .topblock__card-description {
    -webkit-line-clamp: 4;
  }
  .topblock__list--bottom .topblock__card-description {
    display: -webkit-box;
  }
  .topblock__dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px 0 0;
  }
  .topblock__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.25);
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    -webkit-text-decoration: none;
    text-decoration: none;
    outline: none;
  }
  .topblock__dot[aria-current=true] {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.2);
  }
  .topblock__dot:focus-visible {
    outline: 2px solid rgba(31, 95, 139, 0.35);
    outline-offset: 3px;
  }
}
.home-page {
  display: grid;
  grid-template-columns: 1fr 340px;
  max-width: 1340px;
  margin: 20px auto;
}
@media (max-width: 1350px) {
  .home-page {
    margin: 20px 10px;
  }
}
@media (max-width: 1000px) {
  .home-page {
    grid-template-columns: 1fr;
  }
}

.home-page__right-aside {
  margin: 30px 0 0 70px;
}

.feed {
  display: flex;
  flex-direction: column;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}

header.feed__toolbar,
ul.feed__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  -moz-column-gap: 15px;
       column-gap: 15px;
  row-gap: 10px;
  font-size: 14px;
}

button.feed__filter-btn {
  padding: 8px 16px;
  background-color: #EEEEEE;
  color: #666666;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease, transform 0.06s ease;
}
.feed__filter-btn:hover {
  background-color: #2f7eba;
  color: #FFFFFF;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25), 0 5px 10px rgba(0, 0, 0, 0.22);
}
.feed__filter-btn:active {
  background-color: #3c78a5;
  color: #FFFFFF;
  transform: translateY(1px);
}

.feed__filter--active > .feed__filter-btn {
  background-color: #2665bd;
  color: #FFFFFF;
}

.feed__content {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column-gap: 30px;
  -moz-column-gap: 30px;
       column-gap: 30px;
  grid-row-gap: 40px;
  row-gap: 40px;
}
@media (max-width: 767px) {
  .feed__content {
    grid-template-columns: 1fr;
    -moz-column-gap: 0;
         column-gap: 0;
    row-gap: 24px;
    margin-top: 20px;
  }
}

.best-sb {
  display: none;
}

@media (min-width: 1001px) {
  .best-sb {
    display: block;
    font-family: Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Segoe UI, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
    position: sticky;
  }
  .best-sb__title-link {
    display: inline-block;
    -webkit-text-decoration: none;
    text-decoration: none;
  }
  .best-sb__title-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 8px;
  }
  .best-sb__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    text-transform: uppercase;
  }
  .best-sb__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .best-sb__item {
    border-top: 1px solid #e5e7eb;
  }
  .best-sb__item:first-child {
    border-top: 0;
  }
  .best-sb__link {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    grid-gap: 12px;
    gap: 12px;
    padding: 20px 10px;
    -webkit-text-decoration: none;
    text-decoration: none;
  }
  .best-sb__link:hover {
    background: #f5f5f5;
  }
  .best-sb__link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 8px;
  }
  .best-sb__article {
    min-width: 0;
  }
  .best-sb__article-title {
    margin: 0;
    color: #444444;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .best-sb__article-author {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .best-sb__comments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    color: inherit;
    flex-shrink: 0;
  }
  .best-sb__comments-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
  }
  .best-sb__comments-count {
    line-height: 1;
  }
}/*# sourceMappingURL=styles.css.map */
