.article-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.article-container {
  width: 100%;
  max-width: 1560px;
  min-width: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.article-main,
.article-content,
.article-cover,
.article-video,
.related-news,
.comments-section,
.comment-list,
.comment-item,
.comment-body {
  min-width: 0;
  max-width: 100%;
}

.article-title,
.article-summary,
.article-content,
.article-content p,
.comment-item p,
.related-card h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content img,
.article-content video,
.article-content iframe,
.article-content table,
.article-content pre,
.article-content blockquote {
  max-width: 100%;
}

.article-content iframe,
.article-content video {
  width: 100%;
}

.article-content pre,
.article-content table {
  overflow-x: auto;
}

.article-sidebar {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 110px);
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 196, 0, 0.55) transparent;
}

.article-sidebar::-webkit-scrollbar {
  width: 5px;
}

.article-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 196, 0, 0.55);
  border-radius: 999px;
}

.article-ad-card,
.article-sidebar-block {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 18, 22, 0.98), rgba(5, 5, 7, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid #ffc400;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.article-ad-card::after {
  content: "";
  position: absolute;
  inset: -120% 0 auto;
  height: 42%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  filter: blur(5px);
  transition: opacity 0.2s ease;
}

.article-ad-card:hover::after {
  opacity: 1;
  animation: articleAdSweep 1.15s ease-out;
}

.article-ad-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 16px 0 0 16px;
  padding: 6px 11px;
  background: #fff;
  color: #090909;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-ad-visual {
  position: relative;
  min-height: 230px;
  margin: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 70% 35%, rgba(45, 107, 255, 0.55), transparent 35%), radial-gradient(circle at 30% 80%, rgba(232, 58, 142, 0.38), transparent 38%), linear-gradient(145deg, #07080d, #10192c 58%, #07080d);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-ad-visual::before {
  content: attr(data-ad-mark);
  max-width: 100%;
  font-family: "Oswald", sans-serif;
  font-size: 78px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 30px rgba(62, 125, 255, 0.7);
  transform: rotate(-7deg);
  white-space: nowrap;
}

.article-ad-card--compact .article-ad-visual {
  min-height: 170px;
}

.article-ad-card--compact .article-ad-visual::before {
  font-size: 54px;
}

.article-ad-card--pink {
  border-top-color: #ff2f92;
}

.article-ad-card--pink .article-ad-visual {
  background: radial-gradient(circle at 75% 25%, rgba(255, 47, 146, 0.55), transparent 35%), radial-gradient(circle at 20% 80%, rgba(93, 47, 255, 0.42), transparent 38%), linear-gradient(145deg, #0d0710, #24102a 58%, #08070d);
}

.article-ad-card--green {
  border-top-color: #61ff7a;
}

.article-ad-card--green .article-ad-visual {
  background: radial-gradient(circle at 70% 35%, rgba(97, 255, 122, 0.44), transparent 35%), radial-gradient(circle at 25% 78%, rgba(52, 128, 255, 0.38), transparent 38%), linear-gradient(145deg, #050b07, #102217 58%, #050807);
}

.article-ad-card--orange {
  border-top-color: #ff7a18;
}

.article-ad-card--orange .article-ad-visual {
  background: radial-gradient(circle at 70% 35%, rgba(255, 122, 24, 0.5), transparent 35%), radial-gradient(circle at 25% 80%, rgba(255, 210, 40, 0.3), transparent 38%), linear-gradient(145deg, #100805, #28160d 58%, #080605);
}

.article-ad-copy {
  min-width: 0;
  padding: 0 18px 20px;
}

.article-ad-copy h2 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  font-family: "Oswald", sans-serif;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.article-ad-card--compact .article-ad-copy h2 {
  font-size: 24px;
}

.article-ad-kicker {
  margin-bottom: 14px;
  color: #ffc400;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-ad-copy p {
  margin-bottom: 18px;
  color: #bdb8c4;
  font-size: 14px;
  line-height: 1.55;
}

.article-ad-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.article-ad-button:hover {
  background: #ffc400;
  border-color: #ffc400;
  color: #050505;
}

.article-sidebar-block {
  padding: 18px;
  border-top-color: rgba(255, 255, 255, 0.85);
}

.article-sidebar-block h3 {
  margin-bottom: 14px;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-sidebar-news {
  display: flex;
  min-width: 0;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-sidebar-news:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.article-sidebar-news img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  flex: 0 0 auto;
}

.article-sidebar-news span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.article-sidebar-news:hover span {
  color: #ffc400;
}

.mobile-ad-templates,
.article-inline-ad {
  display: none;
}

@keyframes articleAdSweep {
  from { transform: translateY(-80%); }
  to { transform: translateY(520%); }
}

@media (max-width: 1320px) {
  .article-layout {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 18px;
  }

  .article-ad-card--compact .article-ad-visual {
    min-height: 145px;
  }

  .article-ad-card--compact .article-ad-visual::before {
    font-size: 46px;
  }
}

@media (max-width: 1120px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }

  .article-sidebar-left {
    display: none;
  }
}

@media (max-width: 940px) {
  .article-page,
  .article-container,
  .article-layout,
  .article-main,
  .comments-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .article-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .article-layout {
    display: block;
  }

  .article-sidebar {
    display: none;
  }

  .article-main {
    padding: 26px 22px;
  }

  .article-title {
    max-width: 100%;
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.08;
  }

  .article-summary {
    font-size: clamp(16px, 4.5vw, 19px);
  }

  .article-meta-row,
  .article-meta,
  .article-share-inline {
    max-width: 100%;
  }

  .article-meta {
    overflow-wrap: anywhere;
  }

  .article-inline-ad {
    display: block;
    width: min(100%, 620px);
    max-width: 100%;
    margin: 30px auto;
  }

  .article-inline-ad .article-ad-visual {
    min-height: 190px;
  }

  .article-inline-ad .article-ad-visual::before {
    font-size: clamp(48px, 15vw, 82px);
  }

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

@media (max-width: 640px) {
  .article-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .article-main {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .article-title {
    margin: 14px 0;
    font-size: clamp(30px, 9.8vw, 40px);
    letter-spacing: -0.015em;
  }

  .article-meta-row {
    align-items: flex-start;
    gap: 14px;
  }

  .article-share-inline {
    flex-wrap: wrap;
  }

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

  .article-inline-ad {
    margin: 24px auto;
  }

  .article-inline-ad .article-ad-visual {
    min-height: 150px;
    margin: 12px;
  }

  .article-inline-ad .article-ad-copy {
    padding: 0 14px 16px;
  }

  .article-inline-ad .article-ad-copy h2 {
    font-size: 25px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .comments-head,
  .comment-item,
  .comment-top {
    min-width: 0;
    max-width: 100%;
  }

  .comment-item {
    padding: 15px;
  }
}

@media (max-width: 420px) {
  .article-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .article-main {
    padding: 18px 13px;
  }

  .article-title {
    font-size: clamp(28px, 9.4vw, 36px);
  }

  .article-ad-label {
    margin-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-ad-card:hover::after {
    animation: none;
  }
}