* , *::before, *::after { box-sizing: border-box; }
html { color: #fafafa; font: 16px/1.5 Arial, Helvetica, sans-serif; }
body { margin: 0; background: #333333; }
.main_content_box { width: 70%; max-width: 1320px; margin: 0 auto; }
.site-header { display: flex; justify-content: center; padding: 40px 20px 32px; }
.site-logo { display: inline-block; border-radius: 6px; }
.site-logo img { display: block; width: 220px; height: 240px; object-fit: contain; }
.site-logo:focus-visible { outline: 2px solid #ff8634; outline-offset: 8px; }
.main { padding: 16px 32px; min-width: 0; }
.articles-list { display: flex; flex-direction: column; gap: 24px; width: 100%; min-width: 0; }
.article-card { position: relative; width: 100%; padding: 32px 40px 36px; background: #333; border: 1px solid #4a4a4a; border-left: 4px solid #ff6b00; border-radius: 4px; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.article-card:hover, .article-card:focus-within { background: #40382f; border-color: #ff8634; box-shadow: 0 0 24px rgba(255,107,0,.14); }
.article-card__label { display: block; margin-bottom: 16px; color: #b5b5b5; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.article-card__title { max-width: 1000px; margin: 0; color: #ff6b00; font-size: clamp(28px,3.4vw,44px); font-weight: 700; line-height: 1.16; letter-spacing: -.025em; overflow-wrap: anywhere; }
.article-card__title a, .article-card__title a:hover, .article-card__title a:focus, .article-card__title a:visited { color: inherit; text-decoration: none; }
.article-card__title a::after { content: ''; position: absolute; inset: 0; }
.article-card__title a:focus-visible { outline: 2px solid #ffb783; outline-offset: 5px; border-radius: 2px; }
.article-card__description { max-width: 880px; margin: 18px 0 0; color: #b5b5b5; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.article-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; font-size: 18px; }
.articles-list > p { margin: 0; line-height: 1.7; color: #c6c6c6; overflow-wrap: anywhere; }
.site-footer { margin-top: 64px; border-top: 1px solid #4a4a4a; padding: 28px 24px; text-align: center; color: #b5b5b5; }
.site-footer small { font-size: 12px; }
@media (max-width: 1000px) { .main_content_box { width: calc(100% - 40px); } }
@media (max-width: 760px) {
  .main_content_box { width: 100%; }
  .site-header { padding: 28px 20px 24px; }
  .site-logo img { width: 165px; height: 180px; }
  .main { padding: 16px; }
  .articles-list { gap: 20px; }
  .article-card { padding: 24px 20px; }
  .article-card__title { font-size: clamp(26px,6vw,36px); }
  .article-card__description { font-size: 16px; }
  .site-footer { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .article-card { transition: none; } }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.pagination__item { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #666; border-radius: 4px; color: #fafafa; text-decoration: none; font-size: 15px; }
.pagination a:hover { background: #40382f; border-color: #ff8634; }
.pagination a:focus-visible { outline: 2px solid #ffb783; outline-offset: 3px; }
.pagination__item[aria-current="page"] { background: #ff6b00; border-color: #ff6b00; color: #1f1f1f; font-weight: 700; }
.pagination__item[aria-disabled="true"] { color: #aaa; border-color: #4a4a4a; }
.pagination__gap { color: #b5b5b5; padding: 0 2px; }

.article-image { display: block; max-width: 100%; height: auto; border-radius: 6px; align-self: flex-start; }

.article-card__author { margin: 20px 0 0; color: #c6c6c6; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
