
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f2f4f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #222;
  font-size: 16px;
}


.news-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 120px; 
}


.news-article {
  background: #ffffff;
  padding: 42px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.news-title {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111;
}

.news-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.news-author, .news-date {
  margin-right: 8px;
}

.news-image img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 8px;
}

.news-image figcaption {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}


.news-body {
  font-size: 17px;
  line-height: 1.5;
  color: #333;
}

.news-paragraph {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 5px;
  color: #333;
}

.news-subtitle {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  margin: 30px 0 15px;
  color: #111;
}

.news-list {
  margin-left: 20px;
  margin-bottom: 20px;
  line-height: 1.5;
}


.news-ad {
  background: transparent;
  flex-shrink: 0;
}

.ad-box {
  border: 2px dashed #c9ccd6;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  font-size: 14px;
  color: #777;
}
.ad-box + .ad-box {
  margin-top: 12px;
}


@media (min-width: 900px) {
  .news-article {
    width: calc(100% - 300px - 32px); 
  }
  .news-ad {
    width: 300px;
    position: sticky; 
    top: 120px; 
    align-self: flex-start;
  }
}


@media (max-width: 899px) {
  .news-page {
    flex-direction: column;
  }

  .news-ad {
    position: relative; 
    width: 100%;
    margin-top: 1px; 
  }

  .news-article {
    width: 100%;
    padding: 26px 20px;
  }

  .news-title {
    font-size: 24px;
  }

  .news-paragraph {
    font-size: 16px;
  }

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