@import url('/css/marketplace/index.css?v=20260519-13');

/* Скрытый текст (паттерн ленты 2022; без него подсвечивались «Разделы», «Новости» и т.д.) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Оболочка /news drinkinfo: наследуем сетку marketplace, не трогаем legacy-классы ленты. */
body.news-marketplace-page {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--fog);
  color: var(--ink);
}

.news-marketplace-page .marketplace-wrap,
.news-marketplace-page .marketplace-wrap * {
  box-sizing: border-box;
}

.news-shell-main .hero-badge {
  text-align: left;
}

.news-marketplace-page .search-bar {
  position: relative;
}

.news-marketplace-page .news-header-search-clear {
  width: 24px;
  height: 24px;
  margin-right: 4px;
  flex: 0 0 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.news-marketplace-page .news-header-search-clear::before,
.news-marketplace-page .news-header-search-clear::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 11px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--stone);
}

.news-marketplace-page .news-header-search-clear::before {
  transform: rotate(45deg);
}

.news-marketplace-page .news-header-search-clear::after {
  transform: rotate(-45deg);
}

.news-marketplace-hero__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.news-marketplace-hero__sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--stone);
}

.news-marketplace-hero__rss {
  margin-top: 12px;
}

.news-marketplace-hero__rss-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--denim-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 100, 128, 0.35);
}

.news-marketplace-hero__rss-link:hover {
  color: var(--denim);
}

/* Дублирование заголовка: основной заголовок в hero */
.news-listing--drinkinfo-shell .news-feed__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Один заметный заголовок листинга в hero; h2 ленты — sr-only выше */

/* Лента в основной колонке */
.news-shell-main .news-feed {
  margin-top: 8px;
  max-width: 100%;
}

.news-shell-main .news-feed__form {
  margin-top: 16px;
}

.news-listing--drinkinfo-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 24px;
}

.news-listing--drinkinfo-shell .news-feed__breadcrumbs,
.news-listing--drinkinfo-shell .news-feed__mob-filters,
.news-listing--drinkinfo-shell .news-feed__title,
.news-listing--drinkinfo-shell .news-feed__hint,
.news-listing--drinkinfo-shell .news-feed__form,
.news-listing--drinkinfo-shell .news-feed__sub-title,
.news-listing--drinkinfo-shell .news-marketplace-load-more,
.news-listing--drinkinfo-shell .pagerBox {
  grid-column: 1 / -1;
}

.news-listing--drinkinfo-shell .news-list {
  display: contents;
  border: 0;
}

.news-listing--drinkinfo-shell .news-list__title {
  display: none;
}

.news-listing--drinkinfo-shell .news-list__item--banner {
  grid-column: 1 / -1;
}

.news-marketplace-page .news-feed__list--not-faund {
  grid-column: 1 / -1;
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone);
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
}
.news-marketplace-page .news-feed__list--not-faund a {
  color: var(--denim);
  font-weight: 600;
}
.news-marketplace-page .news-feed__list--not-faund a:hover {
  color: var(--denim-deep);
}
.news-marketplace-page .news-feed__list--not-faund ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.news-marketplace-page .news-feed__list--not-faund h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

/* Карточная витрина drinkinfo: баннер только на mobile (как legacy news-list), desktop grid 3-in-row не ломается */
.news-listing--drinkinfo-shell .news-list__item--banner-cards {
  display: none;
  margin: 0;
  min-height: 0;
  border: 0;
}

.news-listing--drinkinfo-shell .news-list__item--banner-cards .js-banner-place,
.news-listing--drinkinfo-shell .news-list__item--banner-cards .mobile-wrap {
  max-width: 100%;
  overflow: hidden;
}

.news-listing--drinkinfo-shell .news-list__item--banner-cards .iframe,
.news-listing--drinkinfo-shell .news-list__item--banner-cards iframe {
  max-width: 100%;
}

@media (max-width: 766px) {
  /* Показываем слот только когда ротатор реально вставил баннер — иначе пустой пробел */
  .news-listing--drinkinfo-shell .news-list__item--banner-cards {
    display: none;
    min-height: 0;
    padding: 0;
  }

  .news-listing--drinkinfo-shell .news-list__item--banner-cards:has(noindex),
  .news-listing--drinkinfo-shell .news-list__item--banner-cards:has(.iframe) {
    display: block;
    padding: 0 0 8px;
  }
}

/* Карточка новости в сетке: как marketplace .card, без легаси-разделителей .news-list__item */
.news-listing--drinkinfo-shell .news-marketplace-card.news-list__item {
  border-top: none;
  border-bottom: none;
  padding-bottom: 0;
  min-height: 0;
}

.news-marketplace-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Верх карточки: заголовок + претекст вместо фото (градиенты bg1–bg6 как у лотов) */
.news-marketplace-card__lead {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 170px;
  padding: 38px 14px 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.news-marketplace-card__lead:hover .news-marketplace-card__headline {
  color: var(--denim-deep);
}

.news-marketplace-card__headline {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.news-marketplace-card__excerpt {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-marketplace-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.news-marketplace-card__meta {
  flex-wrap: wrap;
  row-gap: 4px;
  margin-bottom: 0;
}

.news-marketplace-card__meta .card-location::before {
  content: '📍 ';
  font-size: 0.95em;
}

.news-marketplace-card .card-footer {
  margin-top: auto;
}

@media (max-width: 766px) {
  .news-marketplace-card__lead {
    min-height: 150px;
    padding-top: 36px;
  }

  .news-marketplace-card__headline {
    font-size: 14px;
  }
}

.news-marketplace-page .modal-region__global-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.news-marketplace-page .modal-region__global-item {
  margin: 0;
}
.news-marketplace-page .modal-region__global-item + .modal-region__global-item {
  margin-top: 2px;
}
.news-marketplace-page .modal-region__global-link {
  display: block;
  padding: 2px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: none;
}
.news-marketplace-page .modal-region__global-link:hover {
  color: var(--denim);
}
.news-marketplace-page .modal-region__global-item--current .modal-region__global-link {
  color: var(--denim-deep);
  font-weight: 600;
}

/* Страница одной новости (drinkinfo shell): разметка как meatinfo 2022, визуал под токены DS */
.news-read--drinkinfo-shell.news-content {
  padding: 8px 24px 48px;
  max-width: 100%;
  box-sizing: border-box;
}

.news-read--drinkinfo-shell .news-content__breadcrumbs {
  display: none;
  margin-bottom: 12px;
}

@media (min-width: 767px) {
  .news-read--drinkinfo-shell .news-content__breadcrumbs {
    display: flex;
  }
}

.news-read--drinkinfo-shell .news-content__breadcrumbs.ns-breadcrumbs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.news-marketplace-page .ns-breadcrumbs__item::before {
  position: absolute;
  content: "/";
  top: 0;
  right: -7px;
}

.news-read--drinkinfo-shell .ns-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}
.news-read--drinkinfo-shell .ns-breadcrumbs__item + .ns-breadcrumbs__item::before {
  content: '›';
  color: var(--stone);
  margin: 0 8px;
  font-size: 15px;
}

.news-read--drinkinfo-shell .ns-breadcrumbs__link,
.news-read--drinkinfo-shell .ns-breadcrumbs__current-page {
  color: var(--denim-deep);
  text-decoration: none;
}

.news-read--drinkinfo-shell .ns-breadcrumbs__link:hover {
  color: var(--denim);
  text-decoration: underline;
}

.news-read--drinkinfo-shell .news-content__mob-filters {
  margin-bottom: 14px;
}

@media (min-width: 767px) {
  .news-read--drinkinfo-shell .news-content__mob-filters {
    display: none;
  }
}

.news-read--drinkinfo-shell .news-content__section {
  max-width: 100%;
  margin-bottom: 40px;
}

.news-read--drinkinfo-shell .news-content__title {
  margin: 0 0 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  line-height: 1.25;
  color: var(--ink);
}

.news-read--drinkinfo-shell .news-content__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
}

.news-read--drinkinfo-shell .news-content__info-item {
  display: inline-flex;
  align-items: center;
  padding-right: 10px;
  margin-right: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--stone);
  border-right: 1px solid var(--sand);
}

.news-read--drinkinfo-shell .news-content__info-item:last-child {
  border: 0;
  margin-right: 0;
}

.news-read--drinkinfo-shell .news-content__info-item svg {
  margin-right: 4px;
  flex-shrink: 0;
  color: var(--stone);
}

.news-read--drinkinfo-shell .news-content__info-item--share {
  position: relative;
  min-height: 28px;
  width: auto;
  flex: 1 1 auto;
  border-right: 0;
  cursor: default;
}

.news-read--drinkinfo-shell .news-content__subtitle {
  margin: 0 0 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink-light);
}

.news-read--drinkinfo-shell .news-content__text {
  margin: 0 0 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.news-read--drinkinfo-shell .news-content__text a {
  color: var(--denim-deep);
  word-break: break-word;
}

.news-read--drinkinfo-shell .news-content__text a:hover {
  color: var(--denim);
}

.news-read--drinkinfo-shell .news-content__text img {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: 20px 0;
  border-radius: 6px;
}

.news-read--drinkinfo-shell .news-content__text p {
  margin: 0 0 14px;
}

.news-read--drinkinfo-shell .news-content__text p:last-child {
  margin-bottom: 0;
}

.news-read--drinkinfo-shell .news-content__source {
  margin: 20px 0;
  font-size: 13px;
  color: var(--stone);
  font-family: 'DM Sans', sans-serif;
}

.news-read--drinkinfo-shell .news-content__source-link {
  color: var(--denim-deep);
}

.news-read--drinkinfo-shell .news-content__subscribe {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
  padding: 18px 18px 18px 56px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

@media (min-width: 900px) {
  .news-read--drinkinfo-shell .news-content__subscribe {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 16px 56px;
  }
}

.news-read--drinkinfo-shell .news-content__subscribe::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 24px;
  height: 24px;
  background: no-repeat center / 100% url('/img/news/ill_telegram.png');
}

.news-read--drinkinfo-shell .news-content__subscribe-name {
  text-transform: capitalize;
}

.news-read--drinkinfo-shell .news-content__subscribe-btn {
  display: inline-block;
  padding: 8px 18px;
  background: var(--denim);
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  border: 0;
  box-shadow: 0 2px 8px rgba(58, 100, 128, 0.2);
}

.news-read--drinkinfo-shell .news-content__subscribe-btn:hover {
  background: var(--denim-deep);
}

.news-read--drinkinfo-shell .news-content__hr {
  height: 1px;
  background: var(--sand);
  margin: 8px 0 0;
}

.news-read--drinkinfo-shell .news-content__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.news-read--drinkinfo-shell .news-content__social-title {
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: var(--stone);
  font-family: 'DM Sans', sans-serif;
}

.news-read--drinkinfo-shell .news-content__social-title span {
  text-transform: capitalize;
}

.news-read--drinkinfo-shell .news-content__social-link {
  display: inline-flex;
  border-radius: 50%;
}

.news-read--drinkinfo-shell .news-content__social-link:hover {
  opacity: 0.85;
}

.news-read--drinkinfo-shell .news-content__section-title {
  margin: 0 0 20px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}

.news-read--drinkinfo-shell .same-news {
  position: relative;
  padding-bottom: 8px;
}

/* «Также в разделе»: фото не вылезает на заголовок; колонка вместо схлопывания */
.news-read--drinkinfo-shell .same-news__item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.news-read--drinkinfo-shell .same-news__photo {
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-read--drinkinfo-shell .same-news__text {
  margin-top: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: none;
}

/* Комментарии: Reviews.js тянет textarea по scrollHeight — ограничиваем высоту и скролл */
.news-read--drinkinfo-shell .rws-person__review {
  flex: 0 1 auto;
  max-width: 100%;
}

.news-read--drinkinfo-shell .rws-person__review-field {
  flex: 0 1 auto;
  min-height: 0;
  max-width: 100%;
}

.news-read--drinkinfo-shell .rws-person__answer {
  min-height: 72px;
  max-height: 320px;
  overflow-y: auto;
  resize: vertical;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .news-read--drinkinfo-shell.news-content {
    padding: 8px 12px 32px;
  }
}

.news-sidebar .modal-region {
  position: fixed;
}

.news-marketplace-page .modal-region {
  box-sizing: border-box;
  width: min(860px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
}

.news-marketplace-page .modal-region,
.news-marketplace-page .modal-region * {
  box-sizing: border-box;
}

/* Промо-ссылки без подчёркивания */
.news-marketplace-page .promo-card:link,
.news-marketplace-page .promo-card:visited,
.news-marketplace-page .promo-card:hover,
.news-marketplace-page .promo-card:focus,
.news-marketplace-page .promo-card:active {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 900px) {
  .news-listing--drinkinfo-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-listing--drinkinfo-shell {
    grid-template-columns: 1fr;
    padding: 0 12px 16px;
  }
}
