.newsMain {
    background: #fff;
    color: #111;
}

/* TOP GRID */
.newsWrap {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 24px;
    display: grid;
    gap: 24px;
    align-items: start;
}

/* ПК: article 900 + sidebar 500 */
.newsWrap--rightAds {
    grid-template-columns: 900px 500px;
}

/* Sidebar */
.newsSidebar {
    position: sticky;
    top: 18px;
}

.newsSideBox {
    border: 1px solid #ededed;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.newsSideTitle {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 12px;
}

.newsSideList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Article */
.newsTitle {
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.newsLead {
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 14px;
    color: #222;
}

.newsMetaRow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
    color: #555;
}

.newsLabel {
    color: #777777;
    margin-right: 6px;
}

.newsTags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 8px;
}

.newsTag {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    background: #fff;
    transition: transform .12s ease, border-color .12s ease;
}

.newsTag:hover {
    transform: translateY(-1px);
    border-color: #bfbfbf;
}

.newsHero {
    margin: 14px 0 0;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f3f3;
}

.newsHero img {
    width: 100%;
    display: block;
    height: auto;
}

.newsHero figcaption {
    padding: 10px 12px;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #eaeaea;
    background: #fff;
}

.newsPhotoCredit {
    color: #777;
    margin-left: 8px;
}

.newsBody {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.7;
    color: #1b1b1b;
}

.newsBody h2 {
    font-size: 30px;
    line-height: 1.2;
    margin: 22px 0 10px;
    letter-spacing: -0.01em;
}

.newsBody p {
    margin: 0 0 14px;
}

/* Read more */
/* ===== Onet-like author/meta box ===== */

.newsReadMore--end{
  margin-top: 26px;
  padding: 0;
  background: none;
  border: 0;
}

.onetMetaBox{
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px 14px;
}

.onetMetaTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.onetAuthor{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.onetAvatar{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffd400;
  flex: 0 0 auto;
}

.onetAvatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.onetAuthorText{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.onetName{
  font-size: 16px;
  font-weight: 900;
  color: #111;
  line-height: 1.1;
}

.onetRole{
  font-size: 13px;
  color: #666;
  line-height: 1.2;
}

.onetLink{
  font-size: 13px;
  color: #0b6bd3;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.onetLink:hover{ text-decoration: underline; }

.onetFollow{
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: #ffd400;
  color: #111;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform .12s ease, filter .12s ease;
}

.onetFollow:hover{
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.onetDivider{
  height: 1px;
  background: #ededed;
  margin: 12px 0 12px;
}

.onetMetaRow{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #333;
  align-items: center;
}

.onetMetaItem span{
  color: #666;
  margin-right: 6px;
}

.onetTags{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* tags like your .newsTag but self-contained */
.onetTag{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  background: #fff;
  transition: transform .12s ease, border-color .12s ease;
}

.onetTag:hover{
  transform: translateY(-1px);
  border-color: #bfbfbf;
}

/* ===== Mobile adaptation ===== */
@media (max-width: 720px){
  .onetMetaTop{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .onetFollow{
    width: 100%;
    justify-content: center;
  }

  .onetLink{
    max-width: 100%;
  }

  .onetMetaRow{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .onetTag{
    height: 36px;
  }
}

/*  */

.newsBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #111;
    background: #ffd400;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, .08);
    transition: transform .12s ease, filter .12s ease;
}

.newsBtn:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

/* Mobile ad slots in article */
.newsAdSlot {
    margin: 16px 0;
}

/* Ads card */
.newsAdCard {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ededed;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: transform .12s ease, box-shadow .12s ease;
}

.newsAdCard:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}

.newsAdThumb {
    width: 180px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f2f2;
}

.newsAdThumb img,
.newsAdThumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newsAdKicker {
    font-size: 12px;
    color: #0040ffce;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.newsAdTitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    color: #111;
}

.newsAdDesc {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #555;
}

/* BELOW WRAP */
.newsBelowWrap {
    padding: 18px 0 40px;
    border-top: 1px solid #ededed;
}

.newsBelowInner {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

/* Related header */
.newsRelatedHead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.newsDot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffd400;
    display: inline-block;
}

.newsRelatedHead h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

/* ПК: 3 columns => 6 items => 2 rows */
.newsRelatedGrid--2x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Related card (more solid) */
.newsRelCard {
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .07);
    transition: transform .12s ease, box-shadow .12s ease;
}

.newsRelCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
}

/* Related media: NO bars, fill box */
.newsRelImg {
    width: 100%;
    height: 210px;
    background: #f2f2f2;
    overflow: hidden;
    border-bottom: 1px solid #ededed;
}

.newsRelImg img,
.newsRelImg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* без полос, возможно небольшая обрезка */
    object-position: center;
    display: block;
}

.newsRelBody {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsRelKicker {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.newsRelTitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
    color: #111;
}

.newsRelDesc {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #5b5b5b;
}

/* Tablet/Mobile: hide sidebar and change grids */
@media (max-width: 1180px) {
    .newsWrap--rightAds {
        grid-template-columns: 1fr;
    }

    .newsSidebar {
        display: none;
    }

    .newsTitle {
        font-size: 36px;
    }

    /* планшет: 2 columns */
    .newsRelatedGrid--2x2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsRelImg {
        height: 190px;
    }
}

/* Mobile: column */
@media (max-width: 640px) {
    .newsWrap {
        width: min(1400px, calc(100% - 28px));
    }

    .newsBelowInner {
        width: min(1400px, calc(100% - 28px));
    }

    .newsTitle {
        font-size: 30px;
    }

    .newsLead {
        font-size: 18px;
    }

    .newsAdCard {
        grid-template-columns: 160px 1fr;
    }

    .newsAdThumb {
        width: 160px;
        height: 120px;
    }

    .newsRelatedGrid--2x2 {
        grid-template-columns: 1fr;
    }

    .newsRelImg {
        height: 190px;
    }
}
.newsLead--strong{
  font-size: 22px;
  line-height: 1.55;
  font-weight: 800;
  color: #111111d2;
  margin: 0 0 14px;
}

.newsLead--strong strong{
  font-weight: 900;
}

@media (max-width: 640px){
  .newsLead--strong{
    font-size: 19px;
    font-weight: 800;
  }
}
/*  */
.onetTag1{
  appearance: none;
  border: none;
  background: #f3f3f300;           /* мягкий серый фон */
  color: #111;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;          /* pill-shape */
  cursor: default;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease;
}

/* hover — очень деликатный, как у Onet */
.onetTag1:hover{
  background: #fcf261b3;
}

/* для button */
.onetTag1:focus{
  outline: none;
}

/* мобильная версия — чуть больше тач-зона */
@media (max-width: 640px){
  .onetTag1{
    padding: 8px 16px;
    font-size: 14px;
  }
}

/*  */
/* Clickable image */
.pcstrip__adImage{
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  overflow: hidden;      /* важно */
  position: relative;

  /* рамки блока */
  height: 100px;         /* фикс высота, чтобы ничего не вылезало */
  border-radius: 14px;
  background: #f2f2f200;
}

/* Image itself */
.pcstrip__adImage img{
  display: block;

  /* КЛЮЧЕВО: не даём выйти за рамки */
  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;   /* не режем баннер */
  transform: translateZ(0); /* стабилизация на некоторых браузерах */

  animation: adPulse 4.5s ease-in-out infinite;
  transition: transform .25s ease;
}

/* Hover effect (desktop only) */
@media (hover: hover){
  .pcstrip__adImage:hover img{
    transform: scale(1.03);
  }
}

/* Smooth attention animation */
@keyframes adPulse{
  0%, 55%, 100% { transform: scale(1); filter: none; }
  70% { transform: scale(1.03); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0)); }
}

/* Mobile */
@media (max-width: 640px){
  .pcstrip__adImage{
    height: 140px;
    border-radius: 12px;
  }
}
