/* ================================================
   SINGLE NEWS
   ================================================ */

.single-news {
  background: #191919;
  color: #fff;
  font-family: 'Alumni Sans', sans-serif;
  position: relative;
  width: 100%;
  padding-bottom: 100px;
}

@media (min-width: 768px) {
  .single-news {
    padding-bottom: 140px;
  }
}

@media (min-width: 1025px) {
  .single-news {
    padding-bottom: 180px;
  }
}

@media (min-width: 1400px) {
  .single-news {
    padding-bottom: 220px;
  }
}

/* Section gaps */
.single-news__hero-wrap,
.single-news__meta-wrap,
.single-news__content,
.single-news__products {
  margin-bottom: 100px;
}
@media (min-width: 768px) {
  .single-news__hero-wrap,
  .single-news__meta-wrap,
  .single-news__content,
  .single-news__products {
    margin-bottom: 120px;
  }
}
@media (min-width: 1025px) {
  .single-news__hero-wrap,
  .single-news__meta-wrap,
  .single-news__content,
  .single-news__products {
    margin-bottom: 140px;
  }
}
@media (min-width: 1400px) {
  .single-news__hero-wrap,
  .single-news__meta-wrap,
  .single-news__content,
  .single-news__products {
    margin-bottom: 160px;
  }
}
.single-news__related-section {
  margin-bottom: 0;
}

/* ================================================
   HERO
   ================================================ */
.single-news__hero-wrap {
  position: relative;
  width: 100%;
  max-width: 1198px;
  margin: 40px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.single-news__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1198 / 516;
  overflow: hidden;
  background: #0E0C0C;
}

.single-news__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================
   META
   ================================================ */
.single-news__meta-wrap {
  max-width: 1198px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.single-news__meta {
  max-width: 958px;
  margin: 0 auto;
  padding: 40px 60px;
  background: #0E0C0C;
  border: 1px solid #191919;
  box-sizing: border-box;
}

.single-news__meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.single-news__date {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 100%;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.single-news__category {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 100%;
  text-transform: uppercase;
  color: #E13122;
  text-decoration: none;
  transition: opacity 0.2s;
}

.single-news__category:hover {
  opacity: 0.8;
}

.single-news__title {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 900;
  font-size: 55px;
  line-height: 100%;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px;
}

.single-news__excerpt {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 160%;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ================================================
   CONTENT
   ================================================ */
.single-news__content {
  max-width: 832px;
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: border-box;
}

.single-news__content > p,
.single-news__content > ul,
.single-news__content > ol,
.single-news__content > dl,
.single-news__content > blockquote,
.single-news__content > figure,
.single-news__content > table,
.single-news__content > .wp-caption,
.single-news__content > img,
.single-news__content > .gallery,
.single-news__content > .alignleft,
.single-news__content > .alignright,
.single-news__content > .aligncenter,
.single-news__content > .alignnone {
  margin-top: 0;
  margin-bottom: 40px;
}

.single-news__content > h2,
.single-news__content > h3 {
  margin-top: 0;
  margin-bottom: 56px;
}

/* floated images need breathing room */
.single-news__content > img.alignleft,
.single-news__content > img.alignright,
.single-news__content > .wp-caption.alignleft,
.single-news__content > .wp-caption.alignright {
  margin-bottom: 40px;
}

.single-news__content > *:last-child {
  margin-bottom: 0;
}

/* Clearfix for floated images */
.single-news__content::after {
  content: "";
  display: table;
  clear: both;
}

.single-news__content p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 180%;
  color: rgba(255, 255, 255, 0.6);
}

.single-news__content h2 {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 100%;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.single-news__content h3 {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 100%;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

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

.single-news__content figure {
  margin: 0;
  width: 100%;
}

.single-news__content figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 160%;
  color: #fff;
}

.single-news__content figcaption::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url('/images/icon-thunder.svg') center / contain no-repeat;
  flex-shrink: 0;
}

.single-news__content .wp-caption .wp-caption-text {
  display: block;
  margin-top: 0.5em;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}
.single-news__content .wp-caption .wp-caption-text::before {
  content: none;
}

/* WordPress alignments */
.single-news__content .alignleft {
  float: left;
  margin: 0 2em 0 0;
}
.single-news__content .alignright {
  float: right;
  margin: 0 0 0 2em;
}
.single-news__content .aligncenter {
  display: block;
  margin: 0 auto;
}
.single-news__content .alignnone {
  margin: 0;
}
.single-news__content .wp-caption {
  max-width: 100%;
}
.single-news__content .wp-caption img {
  display: block;
  margin: 0 auto;
}

.single-news__content::after {
  display: none;
}

.single-news__content > div:empty,
.single-news__content > p:empty,
.single-news__content > span:empty {
  display: none;
}

.single-news__content > br {
  display: block;
}

.single-news__content ul,
.single-news__content ol {
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.single-news__content ul {
  list-style: none;
}

.single-news__content ul li {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 180%;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 24px;
  position: relative;
}

.single-news__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #E13122;
  flex-shrink: 0;
}

.single-news__content ol {
  list-style: none;
  counter-reset: news-counter;
}

.single-news__content ol li {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 180%;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 36px;
  position: relative;
  counter-increment: news-counter;
}

.single-news__content ol li::before {
  content: counter(news-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #E13122;
  line-height: 160%;
}

.single-news__content table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 160%;
  margin: 0;
}

.single-news__content table th {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #E13122;
  background: #0E0C0C;
}

.single-news__content table td {
  color: rgba(255, 255, 255, 0.6);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.single-news__content table tr:last-child td {
  border-bottom: none;
}

.single-news__content table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

.single-news__content blockquote {
  margin: 0;
  padding: 24px 32px;
  border-left: 4px solid #E13122;
  background: #0E0C0C;
  width: 100%;
}

.single-news__content blockquote p {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  line-height: 130%;
  margin-bottom: 0;
}

/* ================================================
   WORDPRESS GALLERY
   ================================================ */
.single-news__content .gallery {
  display: block !important;
  margin: 0 !important;
}

.single-news__content .gallery::before,
.single-news__content .gallery::after {
  content: none !important;
}

.single-news__content .gallery-columns-1 .gallery-item,
.single-news__content .gallery-columns-2 .gallery-item,
.single-news__content .gallery-columns-3 .gallery-item,
.single-news__content .gallery-columns-4 .gallery-item,
.single-news__content .gallery-columns-5 .gallery-item,
.single-news__content .gallery-columns-6 .gallery-item,
.single-news__content .gallery-columns-7 .gallery-item,
.single-news__content .gallery-columns-8 .gallery-item,
.single-news__content .gallery-columns-9 .gallery-item {
  max-width: none !important;
  width: auto !important;
}

.single-news__content .gallery-item {
  margin: 0 !important;
  padding: 0 !important;
}

.single-news__content .gallery-icon {
  margin: 0 !important;
}

.single-news__content .gallery-icon img {
  margin: 0 !important;
  display: block;
}

.single-news__gallery-wrap {
  position: relative;
  max-width: 832px;
  margin: 0 auto 40px;
}

.single-news__gallery-viewport {
  overflow: hidden;
  width: 100%;
  transition: height 0.3s ease;
}

.single-news__content .gallery-inner {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.single-news__content .gallery-item {
  flex: 0 0 100%;
  min-width: 0;
}

.single-news__content .gallery-item .gallery-icon {
  overflow: hidden;
  width: 100%;
}

.single-news__content .gallery-item .gallery-icon a {
  display: block;
  width: 100%;
}

.single-news__content .gallery-item .gallery-icon img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.single-news__content .gallery-item .gallery-icon img:hover {
  transform: scale(1.03);
}

.single-news__gallery-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 832px;
  margin: 0 auto 40px;
}
.single-news__gallery-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.single-news__gallery-wrap .slider-arrow {
  position: static;
  transform: none;
  flex-shrink: 0;
}

.slider-arrow.is-disabled {
  opacity: 0.2;
  pointer-events: none;
}

/* ================================================
   RELATED PRODUCTS — стили как в каталоге
   ================================================ */
.single-news__products {
  max-width: 832px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.single-news__products-title {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 100%;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 40px;
}

.single-news__products .catalog-products__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.single-news__products .catalog-products__grid::-webkit-scrollbar {
  display: none;
}

.single-news__products .catalog-product {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 120px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .single-news__products .catalog-products__grid {
    gap: 20px;
  }
  .single-news__products .catalog-product {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

@media (min-width: 1025px) {
  .single-news__products .catalog-products__grid {
    gap: 40px;
  }
  .single-news__products .catalog-product {
    flex: 0 0 calc((100% - 80px) / 3);
  }
}

/* Badges */
.footer__badges {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  pointer-events: none;
}
.footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-family: 'Alumni Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.footer__badge--sale {
  background: #E13122;
}
.footer__badge--new {
  background: #fff;
  color: #0E0C0C;
}

/* Product card — 1:1 из каталога */
.product-card {
  position: relative;
  container: product-card / inline-size;
  --product-card-media-height: 151.643cqw;
  --product-card-action-height: clamp(58px, 30.5cqw, 65px);
  --product-card-action-padding-x: 10px;
  --product-card-action-padding-y: 10px;
  --product-card-action-gap: clamp(12px, 9.4cqw, 20px);
  --product-card-action-bottom: var(--product-card-panel-line);
  --product-card-favorite-size: 45px;
  --product-card-icon-size: 29px;
  --product-card-cart-height: 45px;
  --product-card-cart-padding-x: clamp(12px, 6.5cqw, 20px);
  --product-card-cart-font-size: 21px;
  --product-card-line-gap: 2px;
  --product-card-line-split: 66.666%;
  --product-card-panel-bg: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  --product-card-panel-hover-bg: rgba(255, 255, 255, 0.14);
  --product-card-panel-line: 4px;
  --product-card-line-fill: 0%;
}

.catalog-product__link,
.product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.catalog-product__media,
.product-card__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #0E0C0C;
}

.catalog-product__image,
.product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card__content {
  padding-top: 5px;
}

.product-card__content p {
  font-family: 'Alumni Sans', sans-serif;
  text-transform: uppercase;
  font-size: 21px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.product-card__content p + p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.4);
}

.product-card__content p ins {
  text-decoration: none;
  color: #fff;
}
.product-card__content p del {
  color: rgba(255, 255, 255, 0.4);
  margin-right: 8px;
}

.product-card__hover-panel {
  position: absolute;
  top: calc(
    var(--product-card-media-height) - var(--product-card-action-bottom) -
      var(--product-card-action-height)
  );
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--product-card-action-gap);
  height: var(--product-card-action-height);
  padding: var(--product-card-action-padding-y)
    var(--product-card-action-padding-x);
  overflow: hidden;
  background: var(--product-card-panel-bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.product-card__line {
  position: absolute;
  top: calc(var(--product-card-media-height) - var(--product-card-panel-line));
  z-index: 4;
  height: var(--product-card-panel-line);
  overflow: hidden;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.product-card__line::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--product-card-line-fill);
  background: #E13122;
  transition: width 260ms ease;
}

.product-card__line--favorite {
  left: 0;
  width: calc(var(--product-card-line-split) - var(--product-card-line-gap));
}

.product-card__line--cart {
  right: 0;
  width: calc(100% - var(--product-card-line-split));
}

.product-card.is-favorite .product-card__line--favorite::before {
  width: 100%;
}

.product-card.is-in-cart .product-card__line--cart::before {
  width: 100%;
}

.product-card__favorite {
  appearance: none;
  border: 0;
  flex: 0 0 var(--product-card-favorite-size);
  flex-shrink: 0;
  width: var(--product-card-favorite-size);
  min-width: var(--product-card-favorite-size);
  height: var(--product-card-favorite-size);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  font: inherit;
  transition: background-color 180ms ease;
}

.product-card__favorite-icon {
  flex: 0 0 var(--product-card-icon-size);
  width: var(--product-card-icon-size);
  height: var(--product-card-icon-size);
  background: url("/images/icon-heart-outline.svg") center / contain no-repeat;
}

.product-card__favorite.is-active,
.product-card.is-favorite .product-card__favorite,
.product-card--favorite .product-card__favorite {
  color: #E13122;
}

.product-card__favorite.is-active .product-card__favorite-icon,
.product-card.is-favorite .product-card__favorite-icon,
.product-card--favorite .product-card__favorite-icon {
  background-image: url("/images/icon-heart-filled.svg");
}

.product-card__cart {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: var(--product-card-cart-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px var(--product-card-cart-padding-x);
  font-size: var(--product-card-cart-font-size);
  white-space: nowrap;
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  background: #E13122;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.product-card__cart:hover {
  opacity: 0.9;
}

/* TI Wishlist inside product card */
.product-card__favorite .tinv-wraper {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card__favorite .tinv-wraper a {
  display: block;
  width: 100%;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:not(.is-favorite):hover .product-card__line--favorite::before,
  .product-card:not(.is-favorite)
    .product-card__media:hover
    .product-card__line--favorite::before {
    width: 50%;
  }

  .product-card:hover .product-card__line {
    opacity: 1;
  }

  .product-card:hover .product-card__hover-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .product-card.is-favorite:hover .product-card__line--favorite::before {
    width: 100%;
  }

  .product-card.is-in-cart:hover .product-card__line--cart::before {
    width: 100%;
  }

  .product-card__favorite:hover,
  .product-card__favorite:focus-visible {
    background-color: transparent !important;
  }
  .product-card__favorite:hover .product-card__favorite-icon,
  .product-card__favorite:focus-visible .product-card__favorite-icon {
    opacity: 1;
    transform: scale(1.15);
    transition: opacity 180ms ease, transform 180ms ease;
  }
}

@container product-card (min-width: 280px) {
  .product-card__hover-panel {
    --product-card-action-height: 85px;
    --product-card-action-padding-x: 20px;
    --product-card-action-padding-y: 10px;
    --product-card-action-gap: 20px;
    --product-card-action-bottom: 14px;
    --product-card-favorite-size: 45px;
    --product-card-icon-size: 34px;
    --product-card-cart-height: 45px;
    --product-card-cart-padding-x: 20px;
  }
}

@media (max-width: 767px) {
  .product-card__content p {
    font-size: 16px;
  }
}

/* ================================================
   SUBSCRIBE — SendPulse
   ================================================ */
.single-news__subscribe {
  width: 100%;
  max-width: 832px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 20px;
  background: #E13122;
  box-shadow: 0px -30px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: row;
  gap: 80px;
  align-items: stretch;
  box-sizing: border-box;
  margin-bottom: 100px;
}

.single-news__subscribe-left {
  width: 335px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-news__subscribe-right {
  width: 217px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.single-news__subscribe-title {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 100%;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.single-news__subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.single-news__subscribe-label {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 120%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.single-news__subscribe-input-wrap {
  margin-bottom: 16px;
}

/* Inputs: force transparent + bottom border */
.single-news__subscribe-form .single-news__subscribe-input,
.single-news__subscribe-form .single-news__subscribe-input:focus {
  width: 100%;
  padding: 0 0 8px;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 0 !important;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 160%;
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.single-news__subscribe-form .single-news__subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  opacity: 1 !important;
}

.single-news__subscribe-form .single-news__subscribe-input:focus {
  border-bottom-color: #fff !important;
}

/* Button: перебиваем WooCommerce + тему */
.single-news__subscribe .single-news__subscribe-btn.button.button--light {
  width: 100%;
  height: 45px;
  font-family: 'Alumni Sans', sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: #fff !important;
  color: #0E0C0C !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  left: auto !important;
  overflow: visible !important;
  display: inline-block !important;
  cursor: pointer !important;
  text-decoration: none !important;
  position: relative !important;
}

.single-news__subscribe .single-news__subscribe-btn.button.button--light::before,
.single-news__subscribe .single-news__subscribe-btn.button.button--light::after {
  display: none !important;
  content: none !important;
}

.single-news__subscribe-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.single-news__subscribe-socials {
  display: flex;
  gap: 10px;
}

.single-news__subscribe-social {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}

.single-news__subscribe-social-icon {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .single-news__subscribe {
    margin-bottom: 140px;
  }
  .single-news__subscribe-label {
    margin-bottom: 10px;
  }
  .single-news__subscribe-input-wrap {
    margin-bottom: 20px;
  }
  .single-news__subscribe-divider {
    width: 1px;
    height: auto;
    align-self: stretch;
  }
}

@media (min-width: 1025px) {
  .single-news__subscribe {
    padding: 40px 60px;
    margin-bottom: 180px;
  }
  .single-news__subscribe-form .single-news__subscribe-input,
  .single-news__subscribe-form .single-news__subscribe-input:focus {
    padding-bottom: 10px;
  }
  .single-news__subscribe .single-news__subscribe-btn.button.button--light {
    height: 45px;
  }
}

@media (min-width: 1400px) {
  .single-news__subscribe {
    margin-bottom: 220px;
  }
}

@media (max-width: 1024px) {
  .single-news__subscribe {
    max-width: none;
    padding: 40px 35px;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .single-news__subscribe {
    flex-direction: column;
    padding: 20px;
    gap: 32px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
  }
  .single-news__subscribe-left,
  .single-news__subscribe-right {
    width: 100%;
    gap: 16px;
  }
  .single-news__subscribe .single-news__subscribe-btn.button.button--light {
    height: 39px;
    font-size: 16px;
  }
  .single-news__subscribe-title {
    font-size: 26px;
  }
  .single-news__subscribe-label {
    font-size: 16px;
  }
  .single-news__subscribe-form .single-news__subscribe-input,
  .single-news__subscribe-form .single-news__subscribe-input:focus {
    font-size: 14px;
  }
}

/* ================================================
   RELATED NEWS (home-news styles inlined below)
   ================================================ */

/* ================================================
   TABLET  (768px – 1024px)
   ================================================ */
@media (max-width: 1024px) {
  .single-news__hero-wrap {
    margin-top: 50px;
  }
  .single-news__meta-wrap {
    margin-top: -50px;
  }
  .single-news__meta {
    padding: 40px;
  }
  .single-news__content {
    padding: 60px 20px;
  }
  .single-news__gallery-wrap .slider-arrow--prev {
    right: calc(100% + 12px);
  }
  .single-news__gallery-wrap .slider-arrow--next {
    left: calc(100% + 12px);
  }
}

/* ================================================
   MOBILE  (≤ 767px)
   ================================================ */
@media (max-width: 767px) {

  .single-news__content {
    gap: 48px;
  }

  .single-news__subscribe-left,
  .single-news__subscribe-right {
    gap: 16px;
  }

  .single-news__related-title {
    margin-bottom: 40px;
  }

  .single-news__hero-wrap {
    margin-top: 32px;
    padding: 0;
  }
  .single-news__hero {
    aspect-ratio: 375 / 161.52;
  }

  .single-news__meta-wrap {
    margin-top: 0;
    padding: 0;
  }
  .single-news__meta {
    padding: 32px 20px;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  .single-news__meta-row {
    gap: 24px;
    margin-bottom: 16px;
  }
  .single-news__date,
  .single-news__category {
    font-size: 16px;
  }
  .single-news__title {
    font-size: 34px;
    margin-bottom: 16px;
  }
  .single-news__excerpt {
    font-size: 14px;
  }

  .single-news__content {
    padding: 60px 20px;
  }
  .single-news__content p,
  .single-news__content ul li,
  .single-news__content ol li {
    font-size: 14px;
    line-height: 180%;
  }
  .single-news__content h2 {
    font-size: 26px;
  }
  .single-news__content h3 {
    font-size: 21px;
  }
  .single-news__content figcaption {
    font-size: 14px;
  }
  .single-news__content table {
    font-size: 14px;
  }
  .single-news__content table th,
  .single-news__content table td {
    padding: 8px 10px;
  }

  .single-news__related {
    margin-bottom: 60px;
    padding: 0 20px;
  }
  .single-news__related-title {
    font-size: 34px;
    margin-bottom: 60px;
  }
}

/* ----- home-news (1:1 from home.html) ----- */
.single-news__related-section {
  position: relative;
  padding-top: 100px;
}
@media (min-width: 1025px) {
  .single-news__related-section {
    padding-top: 120px;
  }
}
@media (min-width: 1400px) {
  .single-news__related-section {
    padding-top: 140px;
  }
}

.home-news__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-news__title {
  margin-bottom: 40px;
}
@media (min-width: 1025px) {
  .home-news__title {
    margin-bottom: 50px;
  }
}
@media (min-width: 1400px) {
  .home-news__title {
    margin-bottom: 60px;
  }
}

.home-news__slider {
  --home-news-gap: 40px;
  width: min(calc(100% + var(--container-pad-mobile) + var(--container-pad-mobile)), 453px);
  margin-inline: max(calc(var(--container-pad-mobile) * -1), calc((100% - 453px) / 2));
  overflow-x: hidden;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-news__list {
  display: flex;
  gap: 0;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-news__item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.home-news__item:nth-child(n + 2) {
  display: block;
}

.home-news__link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.home-news__media {
  width: 100%;
  overflow: hidden;
  background: #0E0C0C;
}

.home-news__image {
  width: 100%;
  aspect-ratio: 375 / 161.52;
  object-fit: cover;
  display: block;
}

.home-news__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline: var(--container-pad-mobile);
}

.home-news__meta {
  display: flex;
  gap: 16px;
}

.home-news__date {
  color: rgba(255, 255, 255, 0.4);
}

.home-news__category {
  color: #E13122;
}

.home-news__name {
  color: #fff;
}

.home-news__arrows {
  position: absolute;
  top: var(--home-news-arrows-top, 80px);
  right: auto;
  left: 50%;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  width: min(calc(100vw - 40px), 1606px);
  margin-inline: 0;
  margin-top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-news__arrow {
  pointer-events: auto;
}

.home-news__slider::-webkit-scrollbar {
  display: none;
}

.home-news__button {
  margin-top: 40px;
}

@media (min-width: 768px) {
  .home-news__slider {
    width: min(100%, 453px);
    margin-inline: auto;
  }
  .home-news__media {
    width: 100%;
    margin-inline: 0;
  }
  .home-news__content {
    padding-inline: 0;
  }
}

/* 1025–1399: 2 колонки, 3-я скрыта */
@media (min-width: 1025px) and (max-width: 1399px) {
  .home-news__slider {
    width: 100%;
    overflow: visible;
    scroll-snap-type: none;
    scrollbar-width: auto;
  }
  .home-news__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 453px));
    justify-content: center;
    width: 100%;
    gap: 40px;
  }
  .home-news__item {
    display: block;
    flex: initial;
    width: auto;
    scroll-snap-align: none;
  }
  .home-news__item:nth-child(n + 3) {
    display: none;
  }
  .home-news__link {
    gap: 20px;
    max-width: 453px;
  }
  .home-news__media {
    max-width: 453px;
  }
  .home-news__image {
    aspect-ratio: 453 / 195;
  }
  .home-news__arrows {
    display: none;
  }
  .home-news__button {
    margin-top: 40px;
  }
}

/* 1400+: 3 колонки, 4-я скрыта */
@media (min-width: 1400px) {
  .home-news__slider {
    width: 100%;
    overflow: visible;
    scroll-snap-type: none;
    scrollbar-width: auto;
  }
  .home-news__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 453px));
    justify-content: center;
    width: 100%;
    gap: 32px;
  }
  .home-news__item {
    display: block;
    flex: initial;
    width: auto;
    scroll-snap-align: none;
  }
  .home-news__item:nth-child(-n + 3) {
    display: block;
  }
  .home-news__item:nth-child(n + 4) {
    display: none;
  }
  .home-news__link {
    gap: 20px;
    max-width: 453px;
  }
  .home-news__media {
    max-width: 453px;
  }
  .home-news__image {
    aspect-ratio: 453 / 195;
  }
  .home-news__arrows {
    display: none;
  }
  .home-news__button {
    margin-top: 40px;
  }
}
/* --- Галерея: ограничить высоту --- */
.single-news__gallery-viewport {
  max-height: min(75vh, 720px);
}
.single-news__gallery-viewport .gallery-icon img {
  max-height: min(75vh, 720px);
  object-fit: contain;
}

/* --- Стрелки галереи: консистентный ховер для SVG --- */
.slider-arrow svg {
  width: var(--slider-arrow-size);
  height: var(--slider-arrow-size);
  transition: var(--transition-opacity);
}
@media (hover: hover) and (pointer: fine) {
  .slider-arrow:hover svg {
    opacity: 0;
  }
}
