html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
.article-wrapper {
  padding: 144px 0 80px;
}
@media (max-width: 900px) {
  .article-wrapper {
    padding: 94px 0 80px;
  }
}
.article-wrapper-full {
  padding: 144px 0 64px;
}
@media (max-width: 900px) {
  .article-wrapper-full {
    padding: 94px 0 0px;
  }
}
.article-full {
  max-width: 960px;
  margin: auto;
  background: white;
  border-radius: 24px;
  padding: 32px 120px 48px 120px;
}
@media (max-width: 900px) {
  .article-full {
    padding: 32px 24px 48px 24px;
  }
}
.article-card {
  max-width: 472px;
  margin: auto;
  background: white;
  border-radius: 24px;
  padding: 24px 24px 16px 24px;
}
@media (max-width: 900px) {
  .article-card {
    max-width: 960px;
  }
}
.article-card:hover {
  transform: translateY(-4px);
  transition: 0.2s;
}
.article-card-title {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-montserrat);
  color: #030c23;
  flex: 1; /* занимает всё пространство */

  display: -webkit-box;
  -webkit-line-clamp: 2; /* максимум 3 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-text {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-montserrat);
  color: #030c23;

  flex: 1; /* занимает всё пространство */

  display: -webkit-box;
  -webkit-line-clamp: 5; /* максимум 3 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.date {
  color: #909294;
}
.share-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0px;
  display: flex;
  align-items: center;
}

.share-icon {
  color: #9aa3b2; /* серый */
  transition: 0.2s ease;
}

.share-btn:hover .share-icon {
  color: #0252a7; /* синий */
}
.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.article-content h2 {
  margin-top: 32px;
  font-size: 22px;
}
.article-content-full h1 {
  font-family: var(--font-montserrat);
  font-size: 36px;
  color: #030c23;
  font-weight: 600;
  margin-bottom: 12px;
}
.article-content-full h2 {
  font-family: var(--font-montserrat);
  font-size: 20px;
  color: #030c23;
  font-weight: 600;
  margin: 16px 0px;
}
.article-content-full h3 {
  font-family: var(--font-montserrat);
  font-size: 18px;
  color: #030c23;
  font-weight: 600;
  margin: 16px 0px;
}
.article-content-full li {
  font-family: var(--font-montserrat);
  font-size: 18px;
  color: #030c23;
  font-weight: 400;
  margin: 16px 0px;
}
.article-content-full p {
  font-family: var(--font-montserrat);
  font-size: 18px;
  color: #030c23;
  font-weight: 400;
  margin: 16px 0px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 472px));
  justify-content: center;
  gap: 16px;
  margin-top: 94px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: 1fr;
    margin-top: 94px;
  }
}
.articles-grid-full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 472px));
  justify-content: center;
  gap: 16px;
  margin: 24px 16px 32px 16px;
}
@media (max-width: 900px) {
  .articles-grid-full {
    grid-template-columns: 1fr;
  }
}
.article-preview {
  background: white;
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  color: black;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
}

.article-preview:hover {
  transform: translateY(-4px);
}
/* Toast снизу */
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: #0252a7;
  color: #fff;

  padding: 10px 18px;
  border-radius: 12px;

  font-size: 14px;
  font-weight: 500;

  opacity: 0;
  pointer-events: none;

  transition: 0.3s ease;
  z-index: 9999;
}

/* Активное состояние */
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
