body {
  font-family: 'Jost', sans-serif;
  margin: 0;
  box-sizing: border-box; 
}

html, body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

article {
  max-width: 700px;
  align-self: flex-start;
}

.main-content {
  max-width: 1200px;
  padding: 20px 20px 100px 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.main-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.64px;
  align-self: flex-start;
}

.main-article-title {
  color: #020817;
  font-size: 47.813px;
  font-weight: 700;
  line-height: 48px;
  margin-bottom: 16px;
  font-family: "Golos Text";
}

.main-article-image {
  max-width: 800px;
  width: 100%;
  margin-bottom: 40px;
  margin-top: 32px;
}

.share-icon {
  width: 20px;
  height: 20px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: #FFF;
  display: flex;
  cursor: pointer;
}

.article-meta-data {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 30.8px;
  letter-spacing: 0.56px;
  color: #1D2023;
}

.author-info {
  display: flex;
  gap: 8px;
}

.article-meta-avatar {
  height: 40px;
  flex-shrink: 0;
  width: 40px;
  border-radius: 50%;
}

.article-meta-author {
  color: #1D2023;
  font-family: "Golos Text";
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  letter-spacing: 0.28px;
}

.article-meta-date {
  font-family: "Golos Text";
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  letter-spacing: 0.28px;
  color: #626C77;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
  margin-top: 15px;
}

.article-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content {
  padding: 12px 0;
}

.article-content h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color:#1D2023;
  font-size: 24px;
  font-weight: 700;
  line-height: 26px;
  margin-bottom: 12px;
}

.article-main-text {
  font-size: 20px;
}

.article-main-text h2 {
  font-size: 28px;
  font-weight: 600;
}

.article-main-text h3 {
  font-size: 24px;
  font-weight: 600;
}

.article-content .description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #969FA8;
  font-family: "Golos Text";
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  letter-spacing: 0.28px;
  margin-bottom: 10px;
}

.article-meta {
  font-family: "Golos Text";
  font-size: 14px;
  font-weight: 400;
  line-height: 160%;
  letter-spacing: 0.28px;
  color: #969FA8;
}

.article-card h2 a {
  color: inherit;
  text-decoration: none !important;
}

.article-card h2 a:visited {
  color: #6C86FF !important;
  text-decoration: none !important;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}

.meta-text {
  display: flex;
  flex-direction: column;
}

.author {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.date {
  font-size: 12px;
  color: #999;
}

.article-card.hidden {
  display: none;
}

.description {
  margin-bottom: 20px;
}

.tag-btn {
  all: unset;
  display: inline-block;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: 0.32px;
  color: #000;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.tag-btn:first-child {
  padding-left: 0;
}

.tag-btn.active {
  text-decoration: underline;
  text-decoration-color: #6C86FF;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  
}

.tag-btn:not(.active):hover {
  background: rgba(108, 134, 255, 0.1);
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  align-self: flex-start;
  margin-top: 20px;
}

.pagination button {
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 20.8px;
  letter-spacing: 0.32px;
  color: #000;
  padding: 7px 11px 6px 11px;
}

.pagination button.active {
  background-color: #e0e0e0;
  background:#EEF1FF;
  border-radius: 4px;
}

.banners {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 30px;
}

.tags-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
  align-self: flex-start;
  margin-left: 0;
  width: 100%;
}

.tags {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.tags-wrapper::-webkit-scrollbar {
  display: none;
}

.tags-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.breadcrumbs {
  font-size: 16px;
  color: #969FA8;
  display: flex;
  gap: 8px;
  align-self: flex-start;
}

.breadcrumbs a {
  color: #6C86FF;
  text-decoration: none;
}

.breadcrumbs span {
  color: #969FA8;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.related-posts {
  margin-top: 40px;
}

.reading-time {
  display: flex;
  gap: 8px;
  font-family: "Golos Text";
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  letter-spacing: 0.28px;
  color: #626C77;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 15px;
}

.regulation-content .article-content {
  font-size: 20px;
  line-height: 1.6;
  font-family: 'Golos Text', sans-serif;
  color: #333;
}

.regulation-content .article-content p {
  margin-bottom: 1.5em;
}

.regulation-content .article-content h2,
.regulation-content .article-content h3,
.regulation-content .article-content h4 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

@media (max-width: 1450px) {
  .banners {
    flex-direction: column;
  }
}

@media (max-width: 999px) {
  .main-content {
    padding: 20px 15px;
  }

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

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(1, 1fr);
  }
     
  .article-main-text {
    max-width: 320px;
  }

  .tags-wrapper {
    margin: 0 -15px;
    padding: 0 15px;
  }

  .breadcrumbs {
    display: none;
  }

  .main-article-title {
    font-size: 24px;
    line-height: 28px;
  }

  .main-article-image {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}