/* =========================
   ARTICLE PAGE — PREMIUM LOOK
   ========================= */

.article-page{
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.10), transparent 30%),
    radial-gradient(circle at top right, rgba(79,70,229,.10), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  color: var(--text);
}

/* Загальна ширина сторінки */
.article-page .page{
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}

/* Назад */
.article-page .back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(229,231,235,.95);
  box-shadow: 0 8px 22px rgba(15,23,42,.05);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.article-page .back-link:hover{
  transform: translateY(-1px);
  border-color: #dbeafe;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  color: #111827;
}

/* Основна картка статті */
.article-page .article{
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 34px 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,253,.98));
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 28px;
  box-shadow:
    0 22px 60px rgba(15,23,42,.10),
    0 2px 0 rgba(255,255,255,.7) inset;
}

.article-page .article::before{
  content:"";
  position:absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.article-page .article::after{
  content:"";
  position:absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.12), transparent 68%);
  pointer-events:none;
}

/* Заголовок */
.article-page .article-title{
  position: relative;
  margin: 4px 0 0;
  font-size: clamp(30px, 4.1vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #0f172a;
  text-wrap: balance;
}

/* Мета */
.article-page .article-meta{
  position: relative;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-page .article-meta span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border: 1px solid #e5e7eb;
}

/* CTA-кнопка */
.article-page .btn-primary{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow:
    0 14px 30px rgba(37,99,235,.24),
    0 1px 0 rgba(255,255,255,.20) inset;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.article-page .btn-primary:hover{
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(37,99,235,.30),
    0 1px 0 rgba(255,255,255,.22) inset;
  filter: saturate(1.03);
}

/* Контент */
.article-page .article-content{
  position: relative;
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.85;
  color: #334155;
}

/* Вступні абзаци */
.article-page .article-content p{
  margin: 0 0 16px;
  max-width: 78ch;
}

.article-page .article-content p:first-of-type{
  font-size: 18px;
  line-height: 1.9;
  color: #1f2937;
}

/* Заголовки */
.article-page .article-content h2{
  margin: 30px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.article-page .article-content h3{
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
  color: #0f172a;
}

/* Списки */
.article-page .article-content ul{
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.article-page .article-content ul > li{
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
}

.article-page .article-content ul > li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

/* Жирний текст */
.article-page .article-content strong{
  color: #0f172a;
}

/* Блок дисциплін */
.article-page .disciplines{
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.article-page .discipline-group{
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.article-page .discipline-group::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.article-page .discipline-group:hover{
  transform: translateY(-2px);
  border-color: #dbeafe;
  box-shadow: 0 16px 32px rgba(15,23,42,.08);
}

.article-page .discipline-group h3{
  margin-left: 6px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #0f172a;
}

.article-page .discipline-group ul{
  margin: 0;
}

.article-page .discipline-group li{
  margin-bottom: 8px;
  color: #334155;
}

/* Коли в статті будуть лінки */
.article-page .article-content a{
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.article-page .article-content a:hover{
  text-decoration: underline;
}

/* Якщо додаси зображення */
.article-page .article-content img{
  display: block;
  width: 100%;
  height: auto;
  margin: 22px 0;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
}

/* Дрібні декоративні блоки, якщо захочеш додати */
.article-page .note{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1.65;
}

/* Відступи між секціями */
.article-page .article-content > * + *{
  margin-top: 0;
}

/* Мобілка */
@media (max-width: 720px){
  .article-page .page{
    padding: 18px 14px 40px;
  }

  .article-page .article{
    padding: 22px 16px 18px;
    border-radius: 20px;
  }

  .article-page .article-title{
    font-size: 28px;
  }

  .article-page .article-content{
    font-size: 15px;
    line-height: 1.78;
  }

  .article-page .article-content p:first-of-type{
    font-size: 16px;
  }

  .article-page .article-content h2{
    font-size: 19px;
  }

  .article-page .btn-primary{
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}