
/* ===== 01-tokens.css ===== */
@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/TTFirsNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/TTFirsNeue-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/TTFirsNeue-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Firs Neue";
  src: url("../fonts/TTFirsNeue-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --news-page: #f5f5f5;
  --news-page-top: #ececec;
  --news-surface: #ffffff;
  --news-surface-soft: #f5f5f5;
  --news-stroke: rgba(0, 0, 0, 0.1);
  --news-stroke-strong: rgba(0, 0, 0, 0.18);
  --news-text: #000000;
  --news-text-muted: #737373;
  --news-text-soft: #8e8e8e;
  --news-accent: #841618;
  --news-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  --news-radius-xl: 32px;
  --news-radius-lg: 24px;
  --news-font-sans: "TT Firs Neue", sans-serif;
  --news-font-serif: "TT Firs Neue", sans-serif;
  --news-space-sm: 8px;
  --news-space-md: 16px;
  --news-space-lg: 24px;
  --news-pill-height: 32px;
  --news-pill-pad-x: 12px;
  --news-control-height: 40px;
  --news-action-height: 48px;
  --news-font-meta: 11px;
  --news-font-small: 14px;
  --news-font-body: 17px;
  --news-font-lead: 21px;
  --news-font-title: 30px;
  --news-font-display: 56px;
  --news-line-tight: 1;
  --news-line-title: 1.04;
  --news-line-lead: 1.45;
  --news-line-body: 1.68;
  --news-track-title: -0.035em;
  --news-width: 1240px;
  --news-topbar-sticky-offset: 102px;
}

/* ===== 02-base.css ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.news-body {
  margin: 0;
  min-width: 320px;
  color: var(--news-text);
  background:
    linear-gradient(180deg, var(--news-page-top) 0 100px, transparent 100px),
    var(--news-page);
  font-family: var(--news-font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

/* ===== 03-layout.css ===== */
.news-shell {
  min-height: 100vh;
}

.news-topbar,
.news-footer {
  padding: 0 24px;
}

.news-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--news-page-top);
  border-bottom: 0;
  box-shadow: none;
}

.news-topbar,
.news-mobile-menu,
.news-footer {
  font-family: "Inter", Helvetica, Arial, sans-serif;
}

.listing-layout,
.article-layout,
.not-found-layout,
.news-section,
.news-footer__inner {
  width: min(100%, var(--news-width));
  margin: 0 auto;
}

.news-topbar__inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(100%, 1150px);
  min-height: 118px;
  margin: 0 auto;
}

.news-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 226px;
}

.news-brand__logo {
  width: 240px;
  max-width: 100%;
  height: auto;
}

.news-menu-toggle,
.news-mobile-menu {
  display: none;
}

.news-menu-toggle {
  width: 52px;
  height: 52px;
  /* без этого три полоски выстраиваются в РЯД и кнопка читается как «— — —»,
     а не как меню; анимация крестика тоже рассчитана на столбик */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--news-text);
  cursor: pointer;
}

.news-menu-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.news-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.news-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.news-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 180;
  padding: 0;
  background: rgba(217, 217, 217, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.news-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.news-mobile-menu__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  width: 100%;
  min-height: 100dvh;
  height: 100%;
  /* на невысоких экранах список не влезает; без прокрутки нижние пункты,
     телефон и соцсети недостижимы ни пальцем, ни с клавиатуры */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 24px 34px;
  background: var(--news-page-top);
  overflow-x: hidden;
  transform: translateY(-12px);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-mobile-menu__panel::before {
  content: none;
}

.news-mobile-menu__panel > * {
  position: relative;
  z-index: 1;
}

body.news-body.news-menu-open .article-back,
body.news-body.news-menu-open .article-layout,
body.news-body.news-menu-open .listing-layout,
body.news-body.news-menu-open .news-section,
body.news-body.news-menu-open .news-footer {
  pointer-events: none;
}

.news-mobile-menu.is-open .news-mobile-menu__panel {
  transform: translateY(0);
}

.news-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-mobile-menu__close {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--news-text);
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
}

.news-mobile-menu__nav {
  display: grid;
  align-content: start;
  gap: 20px;
}

.news-mobile-menu__nav a {
  width: fit-content;
  font-size: 22px;
  line-height: 1.15;
}

.news-mobile-menu__group {
  display: grid;
  gap: 10px;
}

.news-mobile-menu__subnav {
  display: grid;
  gap: 8px;
  padding-left: 14px;
}

.news-mobile-menu__subnav a {
  color: var(--news-text-muted);
  font-size: 16px;
}

.news-mobile-menu__footer {
  display: grid;
  gap: 18px;
}

.news-mobile-menu__footer .news-contact {
  justify-items: start;
}

.news-mobile-menu__footer .news-contact strong {
  font-size: 18px;
}

.news-mobile-menu__footer .news-contact span {
  font-size: 14px;
}

.news-mobile-menu__footer .news-socials {
  gap: 18px;
  flex-wrap: wrap;
}

.news-nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-left: 48px;
  min-width: 0;
}

.news-nav__item,
.news-nav__button,
.news-nav__more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--news-text);
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  /* на основном сайте у пунктов меню line-height 1.5 и letter-spacing 0 */
  line-height: 1.5;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}

.news-nav__more {
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: translateY(-3px);
}

.news-nav__item--more {
  width: 18px;
  height: 34px;
  padding: 5px 0;
}

.news-nav__item--more .news-nav__more {
  width: 18px;
  height: 24px;
  justify-content: center;
  gap: 0;
}

.news-nav__item--more .news-nav__button:hover,
.news-nav__item--more .news-nav__button:focus-visible {
  color: var(--news-text);
}

.news-nav__button svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transform: translateY(1px);
}

/* на основном сайте при наведении текст остаётся чёрным,
   краснеет только подчёркивание; текущий раздел подсвечен целиком */
.news-nav__item--current,
.news-nav__button:hover,
.news-nav__button:focus-visible {
  color: var(--news-accent);
}

/* полоса существует всегда и раскрывается слева направо — как на основном
   сайте; если рисовать её только при наведении, она появляется рывком */
.news-nav__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--news-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}

.news-nav__item:hover::after,
.news-nav__item:focus-within::after,
.news-nav__item--current::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .news-nav__item::after {
    transition: none;
  }
}

.news-nav__item--more::after,
.news-nav__item--more:hover::after,
.news-nav__item--more:focus-within::after {
  content: none;
}

.news-nav__item--folder {
  position: relative;
}

.news-nav > .news-nav__item--folder:not(.news-nav__item--more) {
  width: 73px;
}

.news-nav__dropdown {
  position: absolute;
  z-index: 70;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  min-width: 170px;
  padding: 10px 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.news-nav__dropdown--more {
  top: 39px;
  left: 50%;
  min-width: 150px;
  padding: 5px 0;
  border-radius: 10px;
  box-shadow:
    rgba(130, 130, 130, 0.07) 0 0 0 1px inset,
    rgba(0, 0, 0, 0.07) 0 20px 20px 0;
  transform: translate(-50%, 0);
}

.news-nav__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.news-nav__item--folder:hover .news-nav__dropdown,
.news-nav__item--folder:focus-within .news-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.news-nav__dropdown a {
  display: block;
  padding: 9px 16px;
  color: var(--news-text);
  font-size: 15px;
  white-space: nowrap;
}

.news-nav__dropdown--more a {
  min-height: 44px;
  padding: 10px 15px;
  font-size: 16px;
  line-height: 24px;
}

.news-nav__dropdown a:hover {
  color: var(--news-accent);
}

.news-contact {
  display: grid;
  gap: 2px;
  justify-items: start;
  align-content: center;
  flex: 0 0 156px;
  margin-left: 34px;
}

.news-contact strong {
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-contact span {
  color: var(--news-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
}

.news-socials,
.news-footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-topbar__inner > .news-socials {
  margin-left: 58px;
}

.news-socials__link {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--news-text);
  transition: opacity 160ms ease, transform 160ms ease;
}

.news-socials__link:hover {
  opacity: 0.75;
  transform: scale(1.08);
}

.news-socials__link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.listing-layout,
.article-layout,
.not-found-layout,
.news-section {
  padding-left: 24px;
  padding-right: 24px;
}

.listing-layout,
.article-layout,
.not-found-layout {
  padding-top: 40px;
  padding-bottom: 56px;
}

.filters-panel,
.news-section,
.article {
  margin-top: 24px;
  padding: 26px;
}

.news-footer {
  margin-top: 24px;
  padding-top: 35px;
  padding-bottom: 27px;
  border-top-left-radius: var(--news-radius-lg);
  border-top-right-radius: var(--news-radius-lg);
  background: var(--news-page-top);
}

.news-footer__inner {
  display: grid;
  grid-template-columns: 140px 260px 350px 230px 170px;
  align-items: center;
  gap: 0;
  width: min(100%, 1150px);
  padding: 0;
}

.news-footer__logo {
  grid-column: 1;
}

.news-footer__logo img {
  width: 140px;
}

.news-footer__text {
  grid-column: 3;
  margin: 0;
  color: var(--news-text);
  font-size: 14px;
  line-height: 18.2px;
  text-align: center;
  transform: translateY(5px);
}

.news-footer__socials {
  grid-column: 5;
  justify-content: flex-end;
  gap: 30px;
  transform: translateY(5px);
}

.news-footer__docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* у эталона каждая ссылка имеет margin 0 25px → 50px от текста до текста */
  gap: 10px 50px;
  width: min(100%, 1150px);
  margin: 32px auto 0;
  color: var(--news-text);
  font-size: 14px;
  line-height: 21px;
}

.news-footer__docs a:hover {
  color: var(--news-accent);
}

/* разделители между ссылками на документы — как на основном сайте */
.news-footer__docs a {
  position: relative;
}

/* на эталоне разделитель — не символ, а чёрточка 1.2×7px, нарисованная
   маской и поставленная ровно посередине промежутка между ссылками */
.news-footer__docs a + a::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 50%;
  width: 1.2px;
  height: 7px;
  transform: translate(-50%, -50%);
  background: #060607;
}

/* ===== 04-components.css ===== */
.section-heading {
  display: flex;
  /* без переноса ссылка в шапке (nowrap) выталкивает заголовок за край экрана */
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--news-space-lg);
  margin-bottom: 18px;
}

.listing-showcase__feature,
.listing-showcase__promo,
.filters-panel,
.news-section,
.article,
.not-found-card,
.rail-card,
.news-card {
  background: var(--news-surface);
  border: 1px solid var(--news-stroke);
  box-shadow: var(--news-shadow);
}

.filters-panel,
.news-section,
.article,
.not-found-card,
.rail-card,
.news-card {
  border-radius: var(--news-radius-lg);
}

.section-heading--compact {
  margin-bottom: 22px;
}

.listing-showcase__feature-overlay h1,
.section-heading h2,
.news-card__title,
.article-title,
.rail-card__value {
  margin: 0;
  font-weight: 800;
  letter-spacing: var(--news-track-title);
}

.section-heading__eyebrow,
.article-kicker,
.rail-card__eyebrow,
.filters-grid span,
.news-card__meta,
.article-meta,
.news-badge,
.article-tags__label,
.listing-showcase__feature-badge,
.listing-showcase__feature-meta span,
.listing-showcase__feature-tags span,
.listing-showcase__fresh-meta,
.listing-showcase__fresh-tags span {
  font-size: var(--news-font-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading__eyebrow,
.article-kicker,
.rail-card__eyebrow,
.news-badge,
.article-tags__label {
  margin: 0 0 10px;
  color: var(--news-accent);
}

.section-heading h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.02;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: var(--news-space-md);
  align-items: end;
}

.filters-grid label {
  display: grid;
  gap: var(--news-space-sm);
}

.filters-grid span,
.news-card__meta,
.article-meta {
  color: var(--news-text-muted);
}

.filters-grid input {
  min-height: var(--news-action-height);
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--news-stroke);
  background: var(--news-surface-soft);
  color: var(--news-text);
  padding: 0 var(--news-space-md);
  font: inherit;
}

.filters-grid input[type="hidden"] {
  display: none;
}

.chip-dropdown {
  position: relative;
}

.chip-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.chip-dropdown__trigger {
  width: 100%;
  min-height: var(--news-action-height);
  border-radius: 14px;
  border: 1px solid var(--news-stroke);
  background: var(--news-surface-soft);
  color: var(--news-text);
  padding: 0 var(--news-space-md);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.chip-dropdown__trigger::after {
  content: "▾";
  float: right;
  color: var(--news-text-soft);
}

.chip-cloud {
  position: absolute;
  z-index: 30;
  left: 0;
  top: calc(100% + 6px);
  display: none;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--news-space-sm);
  min-width: 260px;
  max-width: min(420px, 88vw);
  max-height: min(360px, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--news-stroke);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.chip-cloud::-webkit-scrollbar {
  width: 8px;
}

.chip-cloud::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(132, 22, 24, 0.22);
}

.chip-dropdown[data-open="1"] .chip-cloud {
  display: flex;
}

.chip-cloud__search {
  flex: 0 0 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--news-stroke);
  background: var(--news-surface-soft);
  color: var(--news-text);
  padding: 0 12px;
  font: inherit;
  font-size: var(--news-font-small);
  outline: none;
}

.chip-cloud__search:focus {
  border-color: rgba(132, 22, 24, 0.45);
  box-shadow: 0 0 0 3px rgba(132, 22, 24, 0.08);
}

.chip-cloud__item {
  min-height: calc(var(--news-pill-height) - 4px);
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(132, 22, 24, 0.2);
  background: rgba(132, 22, 24, 0.04);
  color: var(--news-text-muted);
  font: inherit;
  font-size: var(--news-font-meta);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.chip-cloud__item.is-active {
  border-color: var(--news-accent);
  background: var(--news-accent);
  color: #ffffff;
}

.filter-submit {
  min-height: var(--news-action-height);
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--news-accent);
  background: var(--news-accent);
  color: #ffffff;
  padding: 0 var(--news-space-lg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-submit:hover {
  filter: brightness(0.96);
}

.filter-submit:active {
  transform: translateY(1px);
}

.not-found-layout {
  min-height: calc(100vh - 260px);
  display: grid;
  place-items: center;
}

.not-found-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 760px);
  padding: clamp(32px, 6vw, 72px);
  isolation: isolate;
}

.not-found-card::before {
  content: "404";
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(-28px, -2vw, -12px);
  z-index: -1;
  color: rgba(132, 22, 24, 0.06);
  font-size: clamp(120px, 24vw, 220px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.not-found-card h1 {
  max-width: 620px;
  margin: 0;
  color: var(--news-text);
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 800;
  letter-spacing: var(--news-track-title);
  line-height: 0.98;
}

.not-found-card p:not(.section-heading__eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--news-text-muted);
  font-size: var(--news-font-lead);
  line-height: var(--news-line-lead);
}

.not-found-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.not-found-card__primary,
.not-found-card__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--news-action-height);
  padding: 0 20px;
  border-radius: 999px;
  font-size: var(--news-font-meta);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.not-found-card__primary {
  border: 1px solid var(--news-accent);
  background: var(--news-accent);
  color: #ffffff;
}

.not-found-card__secondary {
  border: 1px solid rgba(132, 22, 24, 0.22);
  background: rgba(132, 22, 24, 0.04);
  color: var(--news-accent);
}

.chip-dropdown[data-open="1"] .chip-dropdown__trigger {
  border-color: rgba(132, 22, 24, 0.45);
  color: var(--news-accent);
}

.filters-grid input::placeholder {
  color: var(--news-text-soft);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--news-space-lg);
  align-items: stretch;
}

.news-card {
  display: flex;
  overflow: hidden;
  border-radius: var(--news-radius-lg);
  border: 1px solid var(--news-stroke);
  background: var(--news-surface);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.news-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.news-card__media {
  aspect-ratio: 1.72;
  background: linear-gradient(180deg, #f5f5f5, #eaeaea);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.news-card__media img {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.news-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--news-accent);
  font-size: calc(var(--news-font-lead) - 1px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card__body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px 20px 20px;
}

.news-card__meta,
.article-meta,
.news-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--news-space-sm);
}

.news-card__title {
  /* Было 30px и три строки — в них помещается около 40 символов, а половина
     заголовков длиннее 60. Поэтому «…» стояло почти на каждой карточке
     и обрывало фразу посреди слова. */
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: var(--news-track-title);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Классы ставит отрисовщик по числу символов в заголовке. */
.news-card__title.is-long {
  font-size: clamp(20px, 1.65vw, 24px);
  /* замерено: заголовку в 76-84 символа при этом кегле нужно пять строк */
  -webkit-line-clamp: 5;
}

.news-card__title.is-verylong {
  font-size: clamp(18px, 1.5vw, 22px);
  -webkit-line-clamp: 5;
}

.news-card__lead,
.article-lead,
.article-content,
.news-footer__text {
  color: var(--news-text-muted);
}

.news-card__lead,
.article-lead {
  margin: 0;
  font-size: var(--news-font-small);
  line-height: 1.6;
}

.news-card__lead {
  display: -webkit-box;
  /* 🔴 Без align-self коробку растягивает по высоте самая длинная карточка ряда.
     Ограничение в строках при этом ставит многоточие на 4-й строке, а браузер
     продолжает рисовать текст НИЖЕ него — читается как брак. Замерено: до 9
     строк в коробке при ограничении 4. */
  align-self: start;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-badge,
.article-tags__label,
.listing-showcase__feature-meta span,
.listing-showcase__feature-tags span,
.listing-showcase__fresh-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--news-pill-height);
  padding: 0 var(--news-pill-pad-x);
  border-radius: 999px;
}

.news-badge,
.article-tags__label {
  background: rgba(132, 22, 24, 0.08);
  border: 1px solid rgba(132, 22, 24, 0.14);
}

.news-card__cta,
.listing-showcase__carousel-footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--news-accent);
  font-size: calc(var(--news-font-small) - 1px);
  font-weight: 700;
  white-space: nowrap;
}

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


/* Фильтр — инструмент, а не раздел. Полоса над лентой вместо отдельной секции
   с заголовком в размер «Последних новостей»: та же форма, тот же скрипт,
   но она больше не спорит с содержанием по весу. */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--news-space-sm);
  margin-bottom: var(--news-space-md);
}

.filters-bar__label {
  margin: 0;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--news-text-muted);
}

.filters-bar .filters-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--news-space-sm);
  flex: 1 1 auto;
}

.filters-bar .filters-grid > label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.filters-bar .filters-grid > label > span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--news-text-muted);
  white-space: nowrap;
}

.filters-bar .chip-dropdown {
  min-width: 132px;
}

/* Полоса имеет смысл, только пока помещается в одну строку. */
@media (min-width: 1181px) {
  .filters-bar .filters-grid {
    flex-wrap: nowrap;
  }
}

.filters-bar .chip-dropdown__trigger {
  min-height: 38px;
  border-radius: 999px;
  font-size: 13px;
}

.filters-bar .filter-submit {
  /* базовая кнопка тянется на всю ширину — в полосе это ломает строку */
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  white-space: nowrap;
}

/* На узком экране полоса теряет смысл — возвращаем прежнюю раскладку в столбец. */
@media (max-width: 760px) {
  .filters-bar {
    display: block;
  }

  .filters-bar__label {
    margin-bottom: var(--news-space-sm);
  }

  .filters-bar .filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--news-space-sm);
  }

  .filters-bar .filters-grid > label {
    display: grid;
    gap: 4px;
  }

  .filters-bar .filter-submit {
    margin-left: 0;
    width: 100%;
  }
}


/* Теги — пометки, а не кнопки. Раньше они дословно повторяли форму чипов
   фильтра: заливка, обводка, скругление 999px — и выглядели нажимаемыми,
   хотя это обычный текст и вести ему некуда. Делаем мельче и плоскими:
   подпись остаётся, ложное обещание исчезает. Заодно уходит главный
   источник визуального шума ленты — 90 пилюль на экран. */
.news-badge {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: calc(var(--news-font-meta) - 1px);
  letter-spacing: 0.06em;
  color: var(--news-text-muted);
}

.news-card__tags {
  gap: 6px 14px;
}

/* Точку-разделитель убрал: при переносе она оказывалась в начале строки
   и читалась как мусор. Достаточно интервала. */

/* служебная подпись «ТЕГИ» не должна весить столько же, сколько сами теги */
.article-tags__label {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--news-text-muted);
  opacity: 0.75;
}


/* Держать теги в одну строку не вышло: строка с nowrap имеет огромную
   минимальную ширину и распирала карточку изнутри — заголовок и подводка
   уезжали за край. Возвращаем перенос; ровность рядов добираем тем, что
   тегов стало визуально меньше (мелкие и плоские). */
.news-card__tags {
  min-width: 0;
}


/* 🔴 Строка тегов с nowrap имеет огромную минимальную ширину и распирала
   карточку изнутри: заголовок, подводка и кнопка уезжали за её край.
   Разрешаем содержимому сжиматься — тогда обрезается только строка тегов,
   как и задумано, а остальное остаётся в границах карточки. */
.news-card__link,
.news-card__body {
  min-width: 0;
}

.news-card__title,
.news-card__lead {
  min-width: 0;
  overflow-wrap: anywhere;
}


/* Подвал карточки вынесен из общей ссылки: внутри ссылки нельзя держать
   кнопку. Карточка становится сеткой «содержимое / подвал», чтобы подвал
   всегда прижимался к низу независимо от длины текста. */
.news-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.news-card__body {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.news-card__footer {
  justify-content: space-between;
  padding: 0 20px 20px;
}

.news-card__share {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: calc(var(--news-font-small) - 1px);
  font-weight: 700;
  color: var(--news-text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.news-card__share:hover {
  color: var(--news-accent);
}

.news-card__share.is-done {
  color: var(--news-accent);
}

@media (max-width: 560px) {
  .news-card__footer {
    padding: 0 16px 16px;
  }
}

/* ===== 05-listing.css ===== */
.listing-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: stretch;
}

.listing-showcase__feature,
.listing-showcase__promo {
  overflow: hidden;
  border-radius: var(--news-radius-xl);
}

.listing-showcase__feature {
  position: relative;
  min-height: clamp(430px, 45vw, 590px);
  background: #121212;
}

.listing-showcase__feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 68%;
  background:
    radial-gradient(circle at bottom left, rgba(132, 22, 24, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(10, 10, 10, 0), rgba(10, 10, 10, 0.82));
  pointer-events: none;
}

.listing-showcase__media {
  /* Нужна именно height, а не только min-height: у картинки внутри стоит
     height:100%, а процент разрешается лишь от ОПРЕДЕЛЁННОЙ высоты родителя.
     С одним min-height высота картинки схлопывалась в auto, object-fit:cover
     не включался, и под фотографией оставалась серая полоса — до 490 px. */
  min-height: 100%;
  height: 100%;
  background: #e8e8e8;
}

/* Блок витрины вытянут по вертикали, а фотографии приходят горизонтальные 16:9.
   При кадрировании по центру герой материала уезжал под тёмную плашку с
   заголовком — видно было только полотно трассы. Смещаем кадр вверх. */
.listing-showcase__media img {
  object-position: 50% 32%;
}

.listing-showcase__media img,
.listing-showcase__promo img,
.news-card__media img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-showcase__feature-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 15, 17, 0.42);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.listing-showcase__feature-overlay {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 16px;
  max-width: min(82%, 680px);
  min-height: 414px;
  padding: 24px 24px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(9, 9, 11, 0.86)),
    rgba(18, 18, 18, 0.6);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(20px);
}

.listing-showcase__feature-title {
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(34px, 3.7vw, 54px);
  line-height: 0.94;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.listing-showcase__feature-excerpt {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--news-font-body);
  line-height: 1.64;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.listing-showcase__feature-overlay .section-heading__eyebrow {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
}

.listing-showcase__feature-kicker {
  display: grid;
  gap: 10px;
}

.listing-showcase__feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--news-space-sm);
}

.listing-showcase__feature-meta span,
.listing-showcase__feature-tags span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: var(--news-font-meta);
}

.listing-showcase__feature-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 4px;
}

.listing-showcase__feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--news-space-sm);
}

.listing-showcase__feature-link {
  display: inline-flex;
  align-items: center;
  gap: var(--news-space-sm);
  min-height: var(--news-control-height);
  padding: 0 var(--news-space-md);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: calc(var(--news-font-body) - 2px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.listing-showcase__feature-link::after {
  content: "->";
  font-size: var(--news-font-body);
  transition: transform 160ms ease;
}

.listing-showcase__feature-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.listing-showcase__feature-link:hover::after {
  transform: translateX(3px);
}

.listing-showcase__promo {
  display: grid;
  height: 800px;
  min-height: 800px;
  padding: 0;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(132, 22, 24, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(132, 22, 24, 0.02), rgba(132, 22, 24, 0.06)),
    #ffffff;
}

.listing-showcase__promo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(132, 22, 24, 0.06);
  pointer-events: none;
}

.listing-showcase__carousel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  height: 100%;
  padding: 0;
}

.listing-showcase__carousel-head {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.listing-showcase__carousel-intro {
  display: grid;
  gap: var(--news-space-sm);
}

.listing-showcase__carousel-intro h2 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(var(--news-font-title), 2.8vw, var(--news-font-display));
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.listing-showcase__carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: var(--news-space-sm);
}

.listing-showcase__carousel-button,
.listing-showcase__carousel-dot {
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.listing-showcase__carousel-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(132, 22, 24, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--news-accent);
}

.listing-showcase__carousel-button span {
  font-size: calc(var(--news-font-lead) + 8px);
  line-height: 1;
  transform: translateY(-1px);
}

.listing-showcase__carousel-button:hover {
  transform: translateY(-1px);
  border-color: rgba(132, 22, 24, 0.26);
  box-shadow: 0 10px 18px rgba(132, 22, 24, 0.08);
}

.listing-showcase__carousel-stage {
  position: relative;
  grid-row: 1 / -1;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  border-radius: inherit;
  border: 1px solid rgba(132, 22, 24, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(132, 22, 24, 0.04)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.listing-showcase__carousel-track {
  position: relative;
  height: 100%;
  min-height: 100%;
}

.listing-showcase__fresh-card {
  position: absolute;
  inset: 128px 28px 84px;
  min-height: 0;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(132, 22, 24, 0.03)),
    #ffffff;
  border: 1px solid rgba(132, 22, 24, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  pointer-events: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.listing-showcase__fresh-card.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.listing-showcase__fresh-card.is-leaving {
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, -18px, 0) scale(0.982);
}

.listing-showcase__fresh-link {
  display: grid;
  grid-template-rows: 280px minmax(0, 1fr);
  min-height: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.listing-showcase__fresh-media {
  background: linear-gradient(180deg, #f5f5f5, #eaeaea);
}

.listing-showcase__fresh-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-showcase__fresh-body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: start;
  gap: var(--news-space-md);
  padding: 22px 22px 20px;
}

.listing-showcase__fresh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--news-text-muted);
}

.listing-showcase__fresh-title {
  margin: 0;
  color: var(--news-text);
  font-size: clamp(calc(var(--news-font-title) - 2px), 2.4vw, calc(var(--news-font-title) + 4px));
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.listing-showcase__fresh-excerpt {
  margin: 0;
  color: var(--news-text-muted);
  font-size: var(--news-font-body);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.listing-showcase__fresh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--news-space-sm);
  margin-top: auto;
}

.listing-showcase__fresh-tags span {
  border: 1px solid rgba(132, 22, 24, 0.14);
  background: rgba(132, 22, 24, 0.04);
  color: var(--news-accent);
  font-size: var(--news-font-meta);
}

.listing-showcase__carousel-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--news-space-md);
}

.listing-showcase__carousel-footer a::after {
  content: "->";
  font-size: var(--news-font-body);
  transition: transform 160ms ease;
}

.listing-showcase__carousel-footer a:hover::after {
  transform: translateX(3px);
}

.listing-showcase__carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: var(--news-space-sm);
}

.listing-showcase__carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(132, 22, 24, 0.18);
}

.listing-showcase__carousel-dot.is-active {
  background: var(--news-accent);
  transform: scale(1.2);
}

.news-section__footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(132, 22, 24, 0.08);
}

.news-section__archive-link,
.news-archive__back,
.news-archive__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--news-control-height);
  padding: 0 var(--news-space-md);
  border-radius: 999px;
  border: 1px solid rgba(132, 22, 24, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--news-accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  font-size: calc(var(--news-font-small) - 1px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-section__archive-link:hover,
.news-archive__back:hover,
.news-archive__pagination-link:hover {
  transform: translateY(-1px);
  border-color: rgba(132, 22, 24, 0.24);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.news-section__archive-link::after {
  content: "->";
  margin-left: 10px;
  font-size: var(--news-font-body);
  line-height: 1;
}

.news-archive {
  display: grid;
  /* Колонка сетки не может стать уже своего содержимого. Постраничная
     навигация (22 страницы в один ряд, 1174 px) распирала через неё весь
     раздел — шапку, карточки и всё остальное — за край экрана телефона. */
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.news-archive > * {
  min-width: 0;
}

.news-archive__pagination {
  flex-wrap: wrap;
}

.news-archive__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.news-archive__hero-copy {
  max-width: 60ch;
}

.news-archive__title {
  margin: 0;
  font-size: clamp(34px, 3.7vw, 50px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: var(--news-track-title);
  text-wrap: balance;
}

.news-archive__intro {
  margin: 14px 0 0;
  color: var(--news-text-muted);
  font-size: var(--news-font-lead);
  line-height: 1.58;
  max-width: 58ch;
}

.news-archive__back::before {
  content: "‹";
  margin-right: 10px;
  font-size: var(--news-font-lead);
  line-height: 1;
}

.news-archive__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--news-space-md);
  flex-wrap: wrap;
}

.news-archive__summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(132, 22, 24, 0.12);
  background: rgba(132, 22, 24, 0.04);
  color: var(--news-text-muted);
  font-size: var(--news-font-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-archive__pagination {
  display: flex;
  justify-content: center;
  margin-top: 4px;
  padding-top: 6px;
}

.news-archive__pagination-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.news-archive__pagination-link {
  min-width: 40px;
  padding: 0 14px;
}

.news-archive__pagination-link.is-current {
  border-color: var(--news-accent);
  background: var(--news-accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(132, 22, 24, 0.18);
}

.news-archive__pagination-link.is-current:hover {
  transform: none;
}

.news-archive__pagination-link--nav {
  padding-left: 18px;
  padding-right: 18px;
}

.news-archive__pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: var(--news-text-soft);
  font-size: var(--news-font-lead);
  line-height: 1;
}


/* Разделитель дня в ленте. Занимает всю ширину сетки, поэтому карточки после
   него начинаются с нового ряда — это и даёт ленте ритм. */
.news-dayrule {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: var(--news-space-sm);
  margin-top: var(--news-space-md);
}

.news-dayrule:first-child {
  margin-top: 0;
}

.news-dayrule__label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--news-text);
}

.news-dayrule__count {
  font-size: 12px;
  color: var(--news-text-muted);
  font-variant-numeric: tabular-nums;
}

.news-dayrule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--news-stroke);
}


/* «Самое свежее» списком вместо карусели: три материала видны сразу, а не по
   одному за клик. Список занимает ровно то место, где лежала карточка
   карусели, — отсюда те же отступы на всех точках перелома. */
.listing-showcase__fresh-list {
  position: absolute;
  z-index: 2;
  inset: 128px 28px 84px;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 12px;
  min-height: 0;
}

.listing-showcase__fresh-list .listing-showcase__fresh-card {
  position: static;
  inset: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  min-height: 0;
  border-radius: 20px;
  will-change: auto;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.listing-showcase__fresh-list .listing-showcase__fresh-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 22, 24, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.listing-showcase__fresh-list .listing-showcase__fresh-link {
  grid-template-rows: none;
  grid-template-columns: 42% minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.listing-showcase__fresh-list .listing-showcase__fresh-media {
  height: 100%;
}

.listing-showcase__fresh-list .listing-showcase__fresh-body {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px 18px;
  min-width: 0;
}

.listing-showcase__fresh-list .listing-showcase__fresh-title {
  font-size: 17px;
  line-height: 1.12;
  display: -webkit-box;
  /* три строки обрывали заголовок посреди слова, хотя под ним оставалось
     пустое место: даём столько строк, сколько строка списка реально вмещает */
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Строка — ссылка, но снаружи это никак не читалось: ни подчёркивания,
   ни стрелки. Подпись та же, что на карточках ленты. */
.listing-showcase__fresh-list .listing-showcase__fresh-more {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--news-accent);
}

.listing-showcase__fresh-list .listing-showcase__fresh-card:hover .listing-showcase__fresh-more {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .listing-showcase__fresh-list {
    inset: 120px 20px 76px;
  }

  .listing-showcase__fresh-list .listing-showcase__fresh-title {
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  .listing-showcase__fresh-list {
    inset: 136px 20px 82px;
  }
}

@media (max-width: 560px) {
  .listing-showcase__fresh-list {
    inset: 52px 16px 48px;
    gap: 10px;
  }

  .listing-showcase__fresh-list .listing-showcase__fresh-link {
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .listing-showcase__fresh-list .listing-showcase__fresh-body {
    padding: 10px 12px;
  }

  .listing-showcase__fresh-list .listing-showcase__fresh-title {
    font-size: 15px;
    /* две строки резали заголовок пополам, а место в строке есть */
    -webkit-line-clamp: 6;
  }
}


/* Длинный заголовок витрины не влезал в шесть строк и обрывался посреди слова.
   Мельче кегль — больше помещается, обрыва нет. Пороги: 68 и 96 символов. */
.listing-showcase__feature-title.is-long {
  font-size: clamp(30px, 3.1vw, 44px);
  -webkit-line-clamp: 7;
}

.listing-showcase__feature-title.is-verylong {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1;
  -webkit-line-clamp: 8;
}

@media (max-width: 760px) {
  .listing-showcase__feature-title.is-long {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .listing-showcase__feature-title.is-verylong {
    font-size: clamp(22px, 6.2vw, 29px);
  }
}


/* Длинный заголовок в строке «Почитать ещё» съедал высоту, и подпись перехода
   обрезалась по низу карточки. Отдаём подписи собственную строку сетки, а
   заголовку — ровно то, что осталось; кегль уменьшается по длине. */
.listing-showcase__fresh-list .listing-showcase__fresh-body {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
}

.listing-showcase__fresh-list .listing-showcase__fresh-title {
  min-height: 0;
}

.listing-showcase__fresh-list .listing-showcase__fresh-title.is-long {
  font-size: 15px;
  -webkit-line-clamp: 6;
}

.listing-showcase__fresh-list .listing-showcase__fresh-title.is-verylong {
  font-size: 14px;
  line-height: 1.1;
  -webkit-line-clamp: 6;
}

.listing-showcase__fresh-list .listing-showcase__fresh-more {
  align-self: end;
}


/* 🔴 Тело строки не было ограничено её высотой и разрасталось выше самой строки
   (317 px при высоте строки 152) — подпись перехода уезжала под обрез.
   Разрешаем содержимому сжиматься на всех уровнях. */
.listing-showcase__fresh-list .listing-showcase__fresh-card,
.listing-showcase__fresh-list .listing-showcase__fresh-link,
.listing-showcase__fresh-list .listing-showcase__fresh-body {
  min-height: 0;
  overflow: hidden;
}


/* У строки блока была одна неявная строка сетки — она росла по содержимому
   и выносила подпись за пределы карточки (тело 234 px при высоте строки 150).
   Задаём предел явно. */
.listing-showcase__fresh-list .listing-showcase__fresh-link {
  grid-template-rows: minmax(0, 1fr);
}

/* ===== 06-article.css ===== */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
}

.article {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(132, 22, 24, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 240, 0.98));
}

.article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(132, 22, 24, 0.03), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.03), transparent 22%);
}

.article > * {
  position: relative;
  z-index: 1;
}

.article-hero {
  display: grid;
  /* Колонка сетки по умолчанию не уже своего содержимого, а в заголовках
     попадаются слова вроде «электровелосипедах»: такое слово распирало шапку
     за край экрана телефона вместе с подводкой, метой и обложкой. */
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  position: relative;
  top: auto;
  z-index: 2;
  justify-self: start;
  min-height: var(--news-control-height);
  padding: 0 var(--news-space-md);
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(132, 22, 24, 0.14);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  color: var(--news-accent);
  font-size: calc(var(--news-font-small) - 1px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-back::before {
  content: "‹";
  font-size: var(--news-font-lead);
  line-height: 1;
}

.article-kicker {
  margin: 0;
  color: var(--news-accent);
  font-size: var(--news-font-meta);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-hero > * {
  min-width: 0;
}

.article-title {
  margin: 0;
  /* если слово всё же длиннее строки — переносим его, а не режем страницу */
  overflow-wrap: anywhere;
  max-width: 10.5ch;
  font-family: var(--news-font-sans);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* Длинный заголовок в колонке шириной 10.5ch разваливается на десяток строк
   и занимает целый экран. Короткие оставляем крупными, длинные — шире и мельче. */
.article-title--long {
  max-width: 20ch;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.article-title--verylong {
  max-width: 26ch;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.article-lead {
  max-width: 42rem;
  margin: 0;
  color: #29231f;
  font-family: var(--news-font-sans);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  line-height: var(--news-line-lead);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  color: var(--news-text-muted);
  font-size: var(--news-font-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta span,
.article-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.article-meta a {
  color: var(--news-accent);
}

.article-cover {
  position: relative;
  margin: 8px auto 0;
  overflow: hidden;
  border-radius: 30px;
  /* Рамка подстраивается под обложку, а не наоборот. Раньше тут стояло
     aspect-ratio: 16/9 и object-fit: cover — любую обложку загоняло в
     горизонтальную рамку и резало. 11.09 у статьи про завод Ultraviolette
     обложка пришла КВАДРАТНОЙ (1080x1080), и срезало верх вместе с
     заголовком на самой картинке. Обложки приходят разные: 0.77, 1, 1.5, 1.78. */
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.12);
}

.article-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.14));
  pointer-events: none;
}

.article-cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;      /* очень высокая обложка не займёт весь экран */
  object-fit: contain;
}

.article-visual-deck {
  margin: 28px 0 18px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(132, 22, 24, 0.08), transparent 28%),
    linear-gradient(145deg, #fffaf8, #f4efeb);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.08);
}

.article-visual-deck__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.article-visual-deck__eyebrow {
  margin: 0 0 6px;
  color: var(--news-accent);
  font-size: var(--news-font-meta);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-visual-deck__title {
  margin: 0;
  font-family: var(--news-font-sans);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: var(--news-track-title);
}

.article-visual-deck__summary {
  margin: 0;
  color: var(--news-text-muted);
  font-size: var(--news-font-small);
  font-weight: 700;
}

.article-content {
  position: relative;
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.72;
}

.article-content > * {
  max-width: 760px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  margin: 0 0 1.15em;
}

.article-content p {
  color: rgba(24, 18, 15, 0.92);
}

.article-content p + p {
  margin-top: 0.05em;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  position: relative;
  max-width: 680px;
  margin: 1.7em 0 0.7em;
  padding-left: 16px;
  color: var(--news-text);
  font-family: var(--news-font-sans);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: var(--news-track-title);
  text-wrap: balance;
}

.article-content h1::before,
.article-content h2::before,
.article-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--news-accent), rgba(132, 22, 24, 0.18));
}

.article-content h1 {
  margin-top: 0;
}

.article-content .date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: -0.15em 0 1.4em;
  color: var(--news-text-soft);
  font-size: var(--news-font-small);
  font-weight: 500;
  line-height: 1;
}

.article-content figure {
  margin: 2.4rem 0;
}

.article-content .article-opening {
  position: relative;
  max-width: 32ch;
  margin: 0 0 1.35em;
  color: #1c1714;
  font-family: var(--news-font-sans);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.article-content .article-opening::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--news-accent);
  font-family: var(--news-font-sans);
  font-size: 2.1em;
  font-weight: 800;
  line-height: 0.84;
}

.article-content img {
  border-radius: 22px;
}

.article-content figcaption {
  margin-top: 10px;
  color: var(--news-text-muted);
  font-size: 13px;
}

.article-content strong {
  color: #220e10;
  background: linear-gradient(transparent 62%, rgba(132, 22, 24, 0.11) 0);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  overflow: hidden;
}

.article-content th,
.article-content td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--news-stroke);
}

.article-content blockquote {
  padding: 18px 22px;
  border-left: 3px solid var(--news-accent);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 0 24px 24px 0;
}

.article-content blockquote.article-quote {
  position: relative;
  padding: 24px 28px 24px;
  border-left-width: 0;
  background:
    linear-gradient(135deg, rgba(132, 22, 24, 0.1), rgba(132, 22, 24, 0.02)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(132, 22, 24, 0.14);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.05);
}

.article-content blockquote.article-quote::before {
  content: "“";
  position: absolute;
  top: -16px;
  left: 16px;
  font-family: var(--news-font-sans);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
  line-height: 1;
  color: rgba(132, 22, 24, 0.18);
}

.article-content blockquote.article-quote p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--news-font-sans);
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 500;
  line-height: 1.55;
}

.article-points {
  max-width: 760px;
  margin: 2.4rem 0;
  padding: 22px 24px;
  border: 1px solid rgba(132, 22, 24, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(132, 22, 24, 0.07), rgba(132, 22, 24, 0.015)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.04);
}

.article-points__title {
  margin: 0 0 14px;
  color: var(--news-accent);
  font-size: var(--news-font-meta);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-points__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.2rem;
}

.article-points__list li {
  margin: 0;
}

.article-gallery {
  position: relative;
  max-width: none;
  margin: 2.8rem 0;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(132, 22, 24, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.9);
}

.article-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.article-gallery__track::-webkit-scrollbar {
  display: none;
}

.article-gallery__item {
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.article-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
}

.article-gallery__item figcaption {
  margin-top: 10px;
}

.article-gallery--hero {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.article-gallery--hero .article-gallery__track {
  grid-auto-columns: 100%;
  gap: 0;
}

.article-gallery--hero .article-gallery__item {
  overflow: hidden;
  border-radius: 26px;
  background: #1b1311;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.18);
}

.article-gallery--hero .article-gallery__item img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

.article-gallery--hero .article-gallery__item figcaption {
  padding: 14px 18px 18px;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.52));
}

.article-gallery__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.article-gallery__caption {
  flex: 1 1 auto;
  min-height: 1.4em;
  color: var(--news-text-muted);
  font-size: var(--news-font-small);
}

.article-gallery__counter {
  color: var(--news-text-muted);
  font-size: var(--news-font-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-gallery__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.article-gallery__button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--news-accent);
  font-size: 20px;
  cursor: pointer;
}

.article-gallery__button:hover {
  transform: translateY(-1px);
  border-color: rgba(132, 22, 24, 0.28);
  background: rgba(132, 22, 24, 0.05);
}

.article-gallery__dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-gallery__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(132, 22, 24, 0.22);
  cursor: pointer;
}

.article-gallery__dot.is-active {
  width: 28px;
  background: var(--news-accent);
}

.article-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.article-gallery__thumb {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.article-gallery__thumb img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 160ms ease, transform 160ms ease;
}

.article-gallery__thumb.is-active {
  border-color: rgba(132, 22, 24, 0.34);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.article-gallery__thumb.is-active img,
.article-gallery__thumb:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.article-footer {
  display: grid;
  gap: var(--news-space-md);
  margin-top: 34px;
  padding-top: var(--news-space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-tags,
.article-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--news-space-md);
}

.tag-list {
  font-size: var(--news-font-body);
  color: var(--news-text-muted);
}

.article-source a {
  color: var(--news-accent);
}

.article-rail {
  display: grid;
  align-content: start;
  gap: var(--news-space-md);
  /* у карточки статьи margin-top: 24px — без этого колонки не выровнены по верху */
  margin-top: 24px;
}

.rail-card {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 239, 0.94));
}

.rail-card__value {
  font-size: clamp(24px, 1.9vw, 30px);
  line-height: 1.08;
}


/* Кнопки «Поделиться» под материалом. Намеренно спокойные: это не призыв,
   а инструмент. Никаких сторонних виджетов — только ссылки. */
.article-share {
  display: grid;
  gap: 10px;
  margin-top: var(--news-space-lg);
  padding-top: var(--news-space-md);
  border-top: 1px solid var(--news-stroke);
}

.article-share__label {
  margin: 0;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--news-text-muted);
}

.article-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--news-stroke);
  border-radius: 999px;
  background: var(--news-surface-soft);
  color: var(--news-text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.share-btn:hover {
  border-color: rgba(132, 22, 24, 0.32);
  transform: translateY(-1px);
}

.share-btn.is-done {
  border-color: rgba(132, 22, 24, 0.32);
  color: var(--news-accent);
}

@media (max-width: 560px) {
  .article-share__row {
    gap: 6px;
  }

  .share-btn {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }
}

/* ===== 08-utilities.css ===== */
:root {
  --news-ui-transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

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

.u-text-balance {
  text-wrap: balance;
}

.u-nowrap {
  white-space: nowrap;
}

:is(
  .chip-cloud__item,
  .filter-submit,
  .listing-showcase__feature-link,
  .listing-showcase__carousel-button,
  .listing-showcase__carousel-dot,
  .news-section__archive-link,
  .news-archive__back,
  .news-archive__pagination-link,
  .not-found-card__primary,
  .not-found-card__secondary,
  .article-back,
  .article-gallery__button,
  .article-gallery__dot,
  .article-gallery__thumb
) {
  transition: var(--news-ui-transition);
}

:is(
  .news-badge,
  .article-meta span,
  .article-meta a,
  .listing-showcase__feature-meta span,
  .listing-showcase__feature-tags span,
  .listing-showcase__fresh-tags span,
  .news-section__archive-link,
  .news-archive__back,
  .news-archive__pagination-link,
  .not-found-card__primary,
  .not-found-card__secondary
) {
  border-radius: 999px;
}

/* ===== 09-shop.css ===== */
/* ==========================================================================
   Связка статьи с витриной салона.
   Панель живёт внутри карточки статьи, компактная карточка — в боковой колонке.
   Все размеры, цвета и радиусы — из токенов портала.
   ========================================================================== */

.article-shop {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--news-space-lg);
  margin-top: var(--news-space-lg);
  padding: 26px 28px;
  border: 1px solid var(--news-stroke);
  border-radius: var(--news-radius-lg);
  background:
    radial-gradient(circle at top left, rgba(132, 22, 24, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 240, 0.98));
  box-shadow: var(--news-shadow);
}

.article-shop::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 22, 24, 0.07), transparent 68%);
  pointer-events: none;
}

.article-shop__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 200px;
  flex: 1 1 320px;
}

.article-shop__eyebrow {
  margin: 0;
  font-size: var(--news-font-meta);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--news-accent);
}

.article-shop__title {
  margin: 0;
  font-family: var(--news-font-sans);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--news-text);
}

.article-shop__note {
  margin: 0;
  font-size: var(--news-font-small);
  color: var(--news-text-muted);
}

.article-shop__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--news-action-height);
  padding: 0 26px;
  border-radius: 999px;
  background: var(--news-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-shop__action:hover,
.article-shop__action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(132, 22, 24, 0.22);
}

/* --- компактная карточка в боковой колонке --- */

.rail-card--shop {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(132, 22, 24, 0.16);
  background:
    radial-gradient(circle at top right, rgba(132, 22, 24, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 241, 0.96));
}

.rail-card--shop .rail-card__eyebrow {
  color: var(--news-accent);
}

.rail-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--news-font-small);
  font-weight: 700;
  color: var(--news-accent);
  text-decoration: none;
}

.rail-card__link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.rail-card__link:hover::after,
.rail-card__link:focus-visible::after {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .article-shop {
    padding: 22px;
    gap: var(--news-space-md);
  }

  .article-shop__title {
    font-size: 21px;
  }

  .article-shop__action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-shop__action,
  .rail-card__link::after {
    transition: none;
  }
}

/* --- карточка мотоцикла в сетке «Похожие материалы» --- */

.news-card--shop {
  border: 1px solid rgba(132, 22, 24, 0.2);
  background:
    radial-gradient(circle at top right, rgba(132, 22, 24, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 241, 0.96));
}

.news-card--shop .news-card__media {
  background: #ffffff;
}

.news-card--shop .news-card__media img {
  object-fit: contain;
  padding: 12px;
}

.news-card--shop .news-card__meta span:first-child {
  color: var(--news-accent);
  font-weight: 800;
}

.news-card--shop .news-card__cta {
  color: var(--news-accent);
}

/* --- ссылка на близкий материал внутри текста статьи --- */

.article-content .article-inline-related {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 28px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--news-accent);
  background: rgba(132, 22, 24, 0.04);
  border-radius: 0 var(--news-radius-lg) var(--news-radius-lg) 0;
  font-size: var(--news-font-small);
}

.article-content .article-inline-related span {
  font-size: var(--news-font-meta);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--news-accent);
}

.article-content .article-inline-related a {
  font-size: var(--news-font-body);
  font-weight: 700;
  color: var(--news-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(132, 22, 24, 0.35);
}

.article-content .article-inline-related a:hover,
.article-content .article-inline-related a:focus-visible {
  color: var(--news-accent);
  border-bottom-color: var(--news-accent);
}

/* подпись под заголовком секции салона — класс был, стилей не было */
.news-section__intro {
  margin: 10px 0 0;
  max-width: 56ch;
  color: var(--news-text-muted);
  font-size: var(--news-font-small);
  line-height: 1.5;
}

/*
 * Раньше здесь был отступ снизу 96 px, чтобы плавающая кнопка не легла на
 * ссылки подвала. Кнопка выше отступа (106 px), поэтому задачу он не решал,
 * зато внизу страницы зияла пустота. Теперь кнопка сама прячется над подвалом
 * (см. initContactsDockAutoHide), а подвалу хватает обычного отступа.
 */
@media (max-width: 760px) {
  .news-footer {
    padding-bottom: 28px;
  }
}

/* кнопка контактов уходит, когда виден подвал: там те же контакты */
.news-contacts-dock {
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.news-contacts-dock.is-over-footer {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .news-contacts-dock {
    transition: none;
  }
}

/*
 * На телефоне ссылки-документы переносятся по строкам, и разделитель «|»
 * оказывается в начале строки — выглядит как опечатка. Убираем его:
 * строки и так стоят раздельно.
 */
@media (max-width: 560px) {
  .news-footer__docs {
    /* по вертикали разводим строки, по горизонтали оставляем воздух —
       иначе соседние ссылки в одной строке слипаются в одно слово */
    gap: 12px 22px;
  }

  .news-footer__docs a + a::before {
    content: none;
  }
}

/* ===== 10-widgets.css ===== */
/* ==========================================================================
   Плавающие кнопки связи — как на основном сайте: столбик круглых кнопок
   в правом нижнем углу, у каждой свой фирменный цвет сервиса.
   ========================================================================== */

.news-contacts-dock {
  position: fixed;
  /* точка отсчёта для выпадающей группы */
  right: 20px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.news-contacts-dock__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-contacts-dock__link:hover,
.news-contacts-dock__link:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.news-contacts-dock__link svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.news-contacts-dock__link--phone {
  background: #2f2f2f;
}

.news-contacts-dock__link--whatsapp {
  background: #25d366;
}

.news-contacts-dock__link--telegram {
  background: #2aabee;
}

.news-contacts-dock__link--email {
  background: var(--news-accent);
}

@media (max-width: 760px) {
  .news-contacts-dock {
    right: 14px;
    bottom: 16px;
    gap: 10px;
  }

  .news-contacts-dock__link {
    width: 48px;
    height: 48px;
  }

  .news-contacts-dock__link svg {
    width: 22px;
    height: 22px;
  }
}

/* при открытом мобильном меню кнопки не должны перекрывать его */
body.news-menu-open .news-contacts-dock {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .news-contacts-dock__link {
    transition: none;
  }
}

/* --- кнопка возврата наверх: появляется, когда есть куда возвращаться --- */

.news-contacts-dock__link--top {
  background: var(--news-surface);
  color: var(--news-text);
  border: 1px solid var(--news-stroke);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.news-contacts-dock--scrolled .news-contacts-dock__link--top {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.news-contacts-dock__link--top:hover,
.news-contacts-dock__link--top:focus-visible {
  color: var(--news-accent);
  border-color: rgba(132, 22, 24, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .news-contacts-dock__link--top {
    transition: none;
  }
}

/* --- сворачивание: по умолчанию виден только круг вызова --- */

/* группа вынесена из потока: скрытые кнопки не должны занимать место,
   иначе между «наверх» и кругом вызова остаётся пустота в четыре кнопки */
.news-contacts-dock__group {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.news-contacts-dock__group .news-contacts-dock__link {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* кнопки вылетают одна за другой, снизу вверх */
.news-contacts-dock--open .news-contacts-dock__group .news-contacts-dock__link {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.news-contacts-dock--open .news-contacts-dock__group .news-contacts-dock__link:nth-last-child(1) { transition-delay: 0s; }
.news-contacts-dock--open .news-contacts-dock__group .news-contacts-dock__link:nth-last-child(2) { transition-delay: 0.04s; }
.news-contacts-dock--open .news-contacts-dock__group .news-contacts-dock__link:nth-last-child(3) { transition-delay: 0.08s; }
.news-contacts-dock--open .news-contacts-dock__group .news-contacts-dock__link:nth-last-child(4) { transition-delay: 0.12s; }

.news-contacts-dock__toggle {
  background: var(--news-accent);
  border: 0;
  cursor: pointer;
}

.news-contacts-dock__toggle svg {
  position: absolute;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.news-contacts-dock__icon-close,
.news-contacts-dock--open .news-contacts-dock__icon-open {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.news-contacts-dock--open .news-contacts-dock__icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.news-contacts-dock__toggle {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .news-contacts-dock__group .news-contacts-dock__link,
  .news-contacts-dock__toggle svg {
    transition: none;
  }
}

/* пока выбирают контакт, кнопка «наверх» не мешает */
.news-contacts-dock--open .news-contacts-dock__link--top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

/* ===== 11-a11y.css ===== */
/* ==========================================================================
   Доступность и краевые случаи вёрстки.
   Правила собраны по итогам разбора: видимый фокус, пальцевые зоны,
   планшетный промежуток, широкий контент в статье.
   ========================================================================== */

/* --- фокус с клавиатуры был невидим: обводку срезал контейнер карточки --- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--news-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.news-card:focus-within {
  outline: 2px solid var(--news-accent);
  outline-offset: 2px;
}

.news-card__link:focus-visible {
  outline: none;
}

/* --- якоря прятались под липкой шапкой --- */

html {
  scroll-padding-top: 96px;
}

/* --- широкий контент в статье не должен растягивать страницу --- */

.article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content {
  overflow-wrap: break-word;
}

.article-content pre,
.article-content code {
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- пальцевые зоны: точки были 9–10 пикселей --- */

.listing-showcase__carousel-dot,
.article-gallery__dot {
  position: relative;
}

.listing-showcase__carousel-dot::after,
.article-gallery__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.news-socials__link,
.news-footer__socials a {
  position: relative;
}

.news-socials__link::after,
.news-footer__socials a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}

/* Строка «Поделиться» и «Открыть материал» в карточке — 16 px высотой:
   текст без вертикальной набивки. Промах вверх по «Поделиться» открывал
   статью (карточка целиком накрыта ссылкой), то есть кнопка была
   недостижима. Растим ЗОНУ нажатия, высоту карточки не трогаем. */
.news-card__share,
.news-card__cta {
  position: relative;
}

.news-card__share::after,
.news-card__cta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 40px;
  transform: translateY(-50%);
}

/* Точки слайдера выпусков — 8x8 px, а стрелок на телефоне нет вовсе:
   других способов листать не остаётся. */
.episodes__dot {
  position: relative;
}

.episodes__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
}

/* --- планшетный промежуток: десктопная шапка уже не помещается,
       а мобильная ещё не включилась --- */

@media (max-width: 1100px) {
  .news-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    text-align: center;
  }

  /* Сетку схлопываем здесь, значит и детей надо снимать с жёстких колонок
     здесь же. Раньше сбрасывался только текст, а логотип и соцсети до 760px
     оставались на колонках 1 и 5 со сдвигом на 5px: в полосе 761-1100 подвал
     выглядел центрованным, но иконки висели у правого края. */
  .news-footer__logo,
  .news-footer__text,
  .news-footer__socials {
    grid-column: auto;
    transform: none;
  }

  .news-footer__socials {
    justify-content: center;
  }

  .news-nav {
    gap: 14px;
  }

  .news-nav__item,
  .news-nav__button {
    font-size: 15px;
  }
}

/* --- пагинация из 22 номеров на узком экране: одна прокручиваемая строка
       вместо четырёх рядов --- */

@media (max-width: 560px) {
  /* кнопки перехода остаются на месте, прокручиваются только номера,
     а у правого края полосы — растушёвка-намёк, что список продолжается */
  .news-archive__pagination {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .news-archive__pagination-link--nav {
    flex: 0 0 auto;
  }

  .news-archive__pagination-track {
    min-width: 0;
    flex: 1 1 auto;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .news-archive__pagination-link {
    scroll-snap-align: center;
    flex: 0 0 auto;
  }
}

/* --- уважение к системной настройке «меньше движения» --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .news-card,
  .news-mobile-menu,
  .news-mobile-menu__panel,
  .listing-showcase__fresh-card,
  .listing-showcase__carousel-track {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== 12-telegram.css ===== */
/* ==========================================================================
   Блок подписки на Telegram-канал: в конце статьи и на витрине.
   Фирменный синий Telegram как акцент — единственное место, где он уместен.
   ========================================================================== */

.news-tg {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--news-space-lg);
  margin: var(--news-space-lg) 0 0;
  padding: 24px 28px;
  border: 1px solid rgba(42, 171, 238, 0.22);
  border-radius: var(--news-radius-lg);
  background:
    radial-gradient(circle at top left, rgba(42, 171, 238, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 252, 0.98));
  box-shadow: var(--news-shadow);
}

.news-tg__body {
  display: grid;
  gap: 5px;
  min-width: 200px;
  flex: 1 1 300px;
}

.news-tg__eyebrow {
  margin: 0;
  font-size: var(--news-font-meta);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2aabee;
}

.news-tg__title {
  margin: 0;
  font-family: var(--news-font-sans);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--news-text);
}

.news-tg__note {
  margin: 0;
  font-size: var(--news-font-small);
  color: var(--news-text-muted);
}

.news-tg__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--news-action-height);
  padding: 0 24px;
  border-radius: 999px;
  background: #2aabee;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-tg__action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.news-tg__action:hover,
.news-tg__action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(42, 171, 238, 0.28);
}

/* на витрине блок идёт отдельной секцией, а не внутри статьи */
.listing-layout .news-tg {
  margin-top: 24px;
}

@media (max-width: 640px) {
  .news-tg {
    padding: 22px;
  }

  .news-tg__title {
    font-size: 20px;
  }

  .news-tg__action {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-tg__action {
    transition: none;
  }
}

/* ===== 13-shorts.css ===== */
/* Полоса коротких видео канала. Живёт по правилам соседних блоков:
   тот же каркас .news-section, те же токены, та же ссылка-пилюля справа.
   Обложки свои, до нажатия страница не обращается к YouTube. */

/* Сетка, а не полоса: три карточки в том же ритме, что лента и блок салона.
   Полоса из двенадцати не помещалась в экран и читалась как свалка. */
.shorts-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--news-space-md);
  margin-top: var(--news-space-md);
}

.shorts-card {
  display: grid;
  grid-template-rows: auto auto;
  padding: 0;
  border: 1px solid var(--news-stroke);
  border-radius: 20px;
  overflow: hidden;
  background: var(--news-surface);
  color: var(--news-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.shorts-card:hover {
  transform: translateY(-3px);
  border-color: rgba(132, 22, 24, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.shorts-card__media {
  position: relative;
  display: block;
}

.shorts-card__shot {
  display: block;
  width: 100%;
  /* четыре в ряд — карточка уже, и настоящая вертикаль 9:16 садится ровно */
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* значок воспроизведения — тем же рецептом, что плашки на фото витрины */
.shorts-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(15, 15, 17, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.shorts-card__play::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 11px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #ffffff;
}

/* название ПОД обложкой: в нижнюю треть кадров вшиты субтитры роликов */
.shorts-card__title {
  padding: 10px 12px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 760px) {
  .shorts-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .shorts-card {
    border-radius: 16px;
  }

  /* третья карточка на узком экране занимает всю ширину, а не половину */


  .shorts-card__title {
    font-size: 12px;
    padding: 9px 10px 11px;
  }
}

/* Окно просмотра: подключается только по нажатию */
.shorts-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
}

.shorts-viewer[hidden] {
  display: none;
}

.shorts-viewer__frame {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 9 / 16;
  max-height: 86vh;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.shorts-viewer__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.shorts-viewer__close {
  position: absolute;
  top: -46px;
  right: 0;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.shorts-viewer__close:hover {
  border-color: #ffffff;
}


/* Карточка видео в правой колонке статьи: колонка узкая, поэтому одна
   карточка на всю ширину и обложка вертикальнее, чем в блоке на главной. */
.rail-card--video {
  display: grid;
  gap: 10px;
}

.shorts-strip--rail {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.shorts-strip--rail .shorts-card__shot {
  aspect-ratio: 4 / 5;
}


/* Карточка ролика в ленте: тот же каркас, что у новости, чтобы ряд не
   рассыпался. Вертикальную обложку кадрируем по центру — иначе она либо
   ломает высоту ряда, либо оставляет поля. */
.news-card--video .news-card__media {
  position: relative;
}

.news-card--video .news-card__media img {
  object-fit: cover;
  object-position: center 30%;
}

.news-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(15, 15, 17, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.news-card__play::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 15px;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent #ffffff;
}

/* метка «Видео» в мета-строке — акцентом, чтобы карточка читалась сразу */
.news-card--video .news-card__meta span:first-child {
  color: var(--news-accent);
}


/* Низ карточки видео в колонке — те же действия, что у карточек ленты,
   иначе блок читается недоделанным. */
.rail-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}


/* Выпуски «Мотоновости» слайдами: один выпуск на экран, листается свайпом
   и стрелками. Прокрутка нативная, с прилипанием — второй самодельный
   механизм листания рядом с витриной порталу не нужен. */
.episodes__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: var(--news-space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-top: var(--news-space-md);
}

.episodes__track::-webkit-scrollbar {
  display: none;
}

.episode-slide {
  scroll-snap-align: start;
  display: grid;
  gap: var(--news-space-md);
  align-content: start;
}

.episode-slide__link {
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
  gap: var(--news-space-lg);
  align-items: center;
}

.episode-slide__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--news-surface-soft);
}

.episode-slide__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.episode-slide__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.episode-slide__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.06;
  letter-spacing: var(--news-track-title);
  font-weight: 800;
  color: var(--news-text);
}

.episode-slide__lead {
  margin: 0;
  color: var(--news-text-muted);
  font-size: 15.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-slide__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--news-text-muted);
  font-variant-numeric: tabular-nums;
}

.episode-slide__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: var(--news-space-sm);
  border-top: 1px solid var(--news-stroke);
}

.episodes__nav {
  display: flex;
  gap: 8px;
}

.episodes__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--news-stroke);
  border-radius: 999px;
  background: var(--news-surface);
  color: var(--news-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.episodes__arrow:hover {
  border-color: rgba(132, 22, 24, 0.32);
  color: var(--news-accent);
}

.episodes__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--news-space-md);
}

.episodes__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--news-stroke);
  cursor: pointer;
}

.episodes__dot.is-active {
  background: var(--news-accent);
}

@media (max-width: 760px) {
  .episode-slide__link {
    grid-template-columns: 1fr;
    gap: var(--news-space-md);
  }

  .episodes__nav {
    display: none;
  }

  .episode-slide__media {
    border-radius: 16px;
  }
}


/* Разделы в подвале. Существуют, но ссылок на них не было ни одной —
   поисковик считает вес по ссылкам, а подвал есть на каждой странице. */
.news-footer__tax {
  /* подвал — сетка из пяти колонок; без этой строки блок попадал в первую,
     140 пикселей шириной, и ссылки сыпались в столбик */
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--news-space-md) 64px;
  margin-top: var(--news-space-md);
  padding-top: var(--news-space-md);
  border-top: 1px solid var(--news-stroke);
}

.news-footer__tax-heading {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--news-text-muted);
}

.news-footer__tax-list {
  /* колонками, а не переносом: иначе ссылки встают рвано, как рассыпанные */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px 20px;
}

.news-footer__tax-link {
  font-size: 13.5px;
  color: var(--news-text-muted);
  text-decoration: none;
}

.news-footer__tax-link:hover {
  color: var(--news-accent);
}

@media (max-width: 900px) {
  .news-footer__tax {
    /* подвал на телефоне центрирует содержимое по ширине текста —
       блоку разделов нужна вся строка, иначе он сжимается в столбик */
    justify-self: stretch;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .news-footer__tax-list {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

/* ===== 07-responsive.css ===== */
@media (max-width: 1180px) {
  .listing-showcase,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .news-topbar__inner {
    gap: 22px;
  }

  .news-brand {
    flex-basis: 205px;
  }

  .news-brand__logo {
    width: 205px;
  }

  .news-nav {
    gap: 22px;
    margin-left: 0;
  }

  .news-contact {
    flex-basis: auto;
    margin-left: 0;
  }

  .news-topbar__inner > .news-socials {
    margin-left: 0;
  }

  .news-nav__item,
  .news-nav__button {
    font-size: 15px;
  }

  .news-grid,
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chip-cloud {
    max-width: min(360px, 82vw);
  }

  .listing-showcase__promo {
    padding: 0;
  }

  .listing-showcase__feature,
  .listing-showcase__promo {
    height: 680px;
    min-height: 680px;
  }

  .listing-showcase__feature-overlay {
    right: 24px;
    max-width: 78%;
  }

  .listing-showcase__carousel-head {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .listing-showcase__carousel-footer {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

}

@media (max-width: 760px) {
  :root {
    --news-topbar-sticky-offset: 88px;
    --news-shell-pad-inline: var(--news-space-md);
    --news-panel-pad: 20px;
    --news-panel-radius-mobile: 20px;
    --news-stack-gap-mobile: var(--news-font-lead);
    --news-feature-card-radius-mobile: var(--news-space-lg);
    --news-feature-inset-mobile: var(--news-space-md);
    --news-feature-overlay-pad-mobile: 18px 18px 20px;
    --news-feature-overlay-gap-mobile: 12px;
    --news-carousel-pad-mobile: 10px var(--news-space-sm) var(--news-space-sm);
    --news-fresh-body-pad-mobile: 20px 20px var(--news-space-lg);
  }

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

  body.news-body {
    background:
      linear-gradient(180deg, var(--news-page-top) 0 84px, transparent 84px),
      var(--news-page);
  }

  .news-topbar,
  .news-footer,
  .listing-layout,
  .article-layout,
  .not-found-layout,
  .news-section {
    padding-left: var(--news-shell-pad-inline);
    padding-right: var(--news-shell-pad-inline);
  }

  .news-topbar__inner {
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--news-space-md) - 2px);
    min-height: 0;
    padding: 14px 0 18px;
  }

  .news-brand__logo {
    width: min(180px, 54vw);
  }

  .news-brand {
    flex-basis: auto;
  }

  .news-nav,
  .news-topbar > .news-contact,
  .news-topbar > .news-socials,
  .news-topbar__inner .news-contact,
  .news-topbar__inner .news-socials {
    display: none;
  }

  .news-menu-toggle,
  .news-mobile-menu {
    display: flex;
  }

  .filters-panel,
  .news-section,
  .article,
  .rail-card {
    padding: var(--news-panel-pad);
    border-radius: var(--news-panel-radius-mobile);
  }

  .news-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 0;
    text-align: center;
  }

  .news-footer__logo,
  .news-footer__text,
  .news-footer__socials {
    grid-column: auto;
    transform: none;
  }

  .news-footer__socials {
    justify-content: center;
  }

  .news-grid,
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .chip-cloud {
    position: static;
    display: none;
    margin-top: 8px;
    max-width: 100%;
    box-shadow: none;
  }

  .chip-dropdown[data-open="1"] .chip-cloud {
    display: flex;
  }

  .listing-layout,
  .article-layout,
  .not-found-layout {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .listing-showcase {
    gap: var(--news-stack-gap-mobile);
  }

  .news-card__title {
    font-size: calc(var(--news-font-title) - 6px);
  }

  .listing-showcase__feature,
  .listing-showcase__promo {
    border-radius: var(--news-feature-card-radius-mobile);
  }

  .listing-showcase__feature {
    min-height: clamp(460px, 128vw, 560px);
  }

  .listing-showcase__feature-title,
  .section-heading h2 {
    font-size: clamp(28px, 8.6vw, 40px);
  }

  .article-title {
    font-size: clamp(34px, 10.5vw, 52px);
    line-height: 0.98;
  }

  .article-title {
    max-width: none;
  }

  .article-back {
    top: auto;
    min-height: var(--news-pill-height);
    padding: 0 var(--news-pill-pad-x);
    font-size: var(--news-font-meta);
  }

  .listing-showcase__promo {
    height: auto;
    min-height: 760px;
    padding: 0;
  }

  .listing-showcase__feature-overlay {
    left: var(--news-feature-inset-mobile);
    right: var(--news-feature-inset-mobile);
    bottom: var(--news-feature-inset-mobile);
    max-width: none;
    min-height: 0;
    padding: var(--news-feature-overlay-pad-mobile);
    gap: var(--news-feature-overlay-gap-mobile);
    border-radius: var(--news-feature-card-radius-mobile);
  }

  .listing-showcase__feature-badge {
    top: var(--news-feature-inset-mobile);
    left: var(--news-feature-inset-mobile);
    min-height: 30px;
    padding: 0 11px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .listing-showcase__feature-title {
    max-width: 12.5ch;
    -webkit-line-clamp: 5;
  }

  .listing-showcase__feature-excerpt {
    font-size: calc(var(--news-font-body) - 2px);
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .listing-showcase__feature-meta span,
  .listing-showcase__feature-tags span {
    min-height: calc(var(--news-pill-height) - 4px);
    padding: 0 12px;
    font-size: 10px;
  }

  .listing-showcase__feature-footer {
    align-items: start;
    flex-direction: column;
    gap: var(--news-feature-overlay-gap-mobile);
  }

  .listing-showcase__feature-link {
    min-height: var(--news-control-height);
    padding: 0 var(--news-space-md);
    font-size: var(--news-font-meta);
  }

  .listing-showcase__carousel-head,
  .listing-showcase__carousel-footer {
    align-items: start;
    flex-direction: column;
  }

  .listing-showcase__carousel-stage {
    border-radius: inherit;
  }

  .listing-showcase__carousel-head {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .listing-showcase__carousel-footer {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }


  /*
   * Телефон: разбираем каркас карусели.
   *
   * Блок держал фиксированную высоту, заголовок и подпись висели поверх
   * абсолютом, а список был прижат отступами «на глаз». Отсюда две беды:
   * 82 px пустоты под заголовком и растянутые до одной высоты карточки,
   * у которых под коротким заголовком зияла дыра.
   *
   * Ставим обычный поток: высота по содержимому, карточка по своему тексту.
   * Правило живёт здесь, а не в 05-listing.css: этот файл подключается позже
   * и перебивал бы правку.
   */
  .listing-showcase__promo,
  .listing-showcase__carousel,
  .listing-showcase__carousel-stage {
    height: auto;
    min-height: 0;
  }

  /* полоса растягивалась на все строки сетки и наезжала на заголовок */
  .listing-showcase__carousel-stage {
    grid-row: auto;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .listing-showcase__carousel {
    grid-template-rows: auto auto auto;
    gap: 14px;
    padding: 16px;
  }

  .listing-showcase__carousel-head,
  .listing-showcase__carousel-footer {
    position: static;
    inset: auto;
  }

  .listing-showcase__fresh-list {
    position: static;
    inset: auto;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .listing-showcase__carousel-intro h2 {
    max-width: none;
    font-size: calc(var(--news-font-title) - 6px);
    white-space: nowrap;
    line-height: 1;
  }




  .news-archive__hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-archive__title {
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .news-archive__intro {
    font-size: calc(var(--news-font-body) + 1px);
    line-height: 1.56;
  }

  .news-archive__summary {
    flex-direction: column;
    align-items: stretch;
  }

  .news-archive__summary-pill {
    justify-content: center;
  }

  .news-section__archive-link,
  .news-archive__back {
    width: 100%;
  }

  /* «Назад» и «Дальше» стояли в одной строке с лентой номеров и съедали её:
     на 390 ленте оставалось 143 px из 328 — три номера из двадцати трёх.
     Отправляем ленту на свою строку, кнопки уходят под неё. */
  .news-archive__pagination {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .news-archive__pagination-track {
    flex: 1 0 100%;
    order: -1;
    gap: 8px;
  }

  .article-content {
    font-size: 17px;
    line-height: 1.66;
  }

  .article-visual-deck__intro,
  .article-gallery__meta {
    align-items: start;
    flex-direction: column;
  }

  .article-gallery__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .news-footer__inner {
    gap: var(--news-space-md);
  }
}

@media (max-width: 560px) {
  :root {
    --news-topbar-sticky-offset: 84px;
    --news-shell-pad-inline: 12px;
    --news-panel-pad: 18px;
    --news-panel-radius-mobile: 18px;
    --news-stack-gap-mobile: 16px;
    --news-feature-inset-mobile: 12px;
    --news-feature-overlay-pad-mobile: var(--news-space-md);
    --news-feature-overlay-gap-mobile: 10px;
  }

  .news-topbar,
  .news-footer,
  .listing-layout,
  .article-layout,
  .news-section {
    padding-left: var(--news-shell-pad-inline);
    padding-right: var(--news-shell-pad-inline);
  }

  .news-topbar__inner {
    gap: var(--news-feature-overlay-gap-mobile);
    padding-bottom: 16px;
  }

  .news-mobile-menu__panel {
    padding: 16px 18px 28px;
    font-family: "Inter", Helvetica, Arial, sans-serif;
  }

  .news-mobile-menu__nav {
    gap: 18px;
  }

  .news-mobile-menu__nav a {
    font-size: var(--news-font-lead);
  }

  .news-brand__logo {
    width: min(164px, 48vw);
  }

  .news-contact span,
  .news-socials__link {
    font-size: var(--news-font-meta);
  }

  .filters-panel,
  .news-section,
  .article,
  .rail-card {
    padding: var(--news-panel-pad);
    border-radius: var(--news-panel-radius-mobile);
  }

  .listing-showcase__feature {
    min-height: clamp(420px, 124vw, 520px);
  }

  .listing-showcase__feature-overlay {
    left: var(--news-feature-inset-mobile);
    right: var(--news-feature-inset-mobile);
    bottom: var(--news-feature-inset-mobile);
    padding: var(--news-feature-overlay-pad-mobile);
    gap: var(--news-feature-overlay-gap-mobile);
  }

  .listing-showcase__feature-title {
    max-width: 13.5ch;
  }

  .listing-showcase__feature-badge {
    top: var(--news-feature-inset-mobile);
    left: var(--news-feature-inset-mobile);
    min-height: 28px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .listing-showcase__feature-title,
  .section-heading h2 {
    font-size: clamp(26px, 8.2vw, 34px);
  }

  .article-title {
    font-size: clamp(30px, 10.2vw, 44px);
    line-height: 0.98;
  }

  .article-title,
  .article-lead,
  .article-content .article-opening {
    max-width: none;
  }

  .article-back {
    top: auto;
    width: fit-content;
    justify-content: flex-start;
  }

  .listing-showcase__feature-excerpt {
    font-size: calc(var(--news-font-body) - 2px);
  }

  .listing-showcase__feature-link {
    width: 100%;
    justify-content: center;
  }

  .listing-showcase__carousel-head {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .listing-showcase__carousel-footer {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }


  .listing-showcase__carousel-intro h2 {
    max-width: none;
    font-size: calc(var(--news-font-title) - 8px);
    white-space: nowrap;
    line-height: 1;
  }



  .news-card__body {
    padding: 18px 18px 16px;
  }

  .news-card__title {
    font-size: 24px;
    line-height: 1.06;
  }

  .news-section__footer {
    margin-top: 24px;
    padding-top: 18px;
  }

  .news-section__archive-link,
  .news-archive__back,
  .news-archive__pagination-link {
    min-height: 38px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .news-archive__title {
    font-size: clamp(28px, 8vw, 34px);
  }

  .news-archive__intro {
    font-size: var(--news-font-body);
  }

  .news-archive__summary-pill {
    width: 100%;
  }

  .article-content h1,
  .article-content h2,
  .article-content h3 {
    font-size: 26px;
    line-height: 1.1;
  }

  .article-visual-deck {
    margin-top: 22px;
    padding: 18px;
  }

  .article-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Заголовок статьи на телефоне: 42 px было слишком крупно — длинное слово
   («электровелосипедах») занимало 443 px при доступных 328 и вылезало за край.
   При 30 px такое слово помещается целиком. */
@media (max-width: 560px) {
  .article-title {
    font-size: clamp(26px, 7.6vw, 38px);
    letter-spacing: -0.03em;
    line-height: 1;
  }
}


/* Планшетная полоса 761-1100 px. Десктопной шапке нужно ~1075 px, а бургер
   включался только с 760 — между ними страница уезжала вбок: на 768 px вылаз
   доходил до 292 px, на 1024 (iPad альбомный) — до 51. Переключаем ТОЛЬКО
   шапку; остальная раскладка на этих ширинах остаётся десктопной. */
@media (max-width: 1100px) {
  .news-topbar__inner .news-nav,
  .news-topbar > .news-contact,
  .news-topbar > .news-socials,
  .news-topbar__inner .news-contact,
  .news-topbar__inner .news-socials {
    display: none;
  }

  .news-menu-toggle,
  .news-mobile-menu {
    display: flex;
  }
}
