/*
  Article pages styling (scoped)
  - Does NOT touch global body typography
  - Keeps layout compatible with fixed navbar
*/

:root{
  --st-accent:#00aab2;
  --st-text:#111;
  --st-muted:#555;
  --st-bg:#fff;
  --st-soft:#f6f9fa;
  --st-border:#eaeaea;
}

.st-article{
  background:var(--st-bg);
  color:var(--st-text);
  padding-top:110px; /* запас под фиксированное меню */
  padding-bottom:56px;
}

/* Якори: чтобы заголовки не прятались под меню */
.st-article [id]{
  scroll-margin-top:120px;
}

.st-article .wrap{
  max-width:1040px;
  margin:0 auto;
  padding:24px 16px;
}

.st-article h1,
.st-article h2,
.st-article h3{
  line-height:1.25;
  margin:1.2em 0 .55em;
  color:#000;
}

.st-article h1{ font-size:clamp(28px, 3.2vw, 44px); }
.st-article h2{ font-size:clamp(22px, 2.4vw, 32px); }
.st-article h3{ font-size:clamp(18px, 2vw, 24px); }

.st-article p{ margin:.85em 0; }

.st-article .lead{
  font-size:1.12em;
  color:var(--st-muted);
}

.st-article .muted{ color:var(--st-muted); }

.st-article a{
  color:var(--st-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.st-article a:hover,
.st-article a:focus{
  color:#007f86;
}

/* Содержание / TOC */
.st-article .toc{
  background:#fbfbfb;
  border:1px solid var(--st-border);
  border-radius:14px;
  padding:14px 16px;
}

.st-article .toc strong{ display:block; margin-bottom:8px; }

.st-article .toc a{
  text-decoration:none;
  color:#222;
}

.st-article .toc a:hover{
  text-decoration:underline;
}

/* Списки */
.st-article .list{ padding-left:1.15em; }
.st-article .list li{ margin:.45em 0; }

/* Врезка */
.st-article .note{
  background:var(--st-soft);
  border-left:4px solid var(--st-accent);
  padding:12px 14px;
  margin:16px 0;
  border-radius:10px;
}

/* Разделитель */
.st-article .hr{
  height:1px;
  background:#eee;
  margin:24px 0;
}

/* CTA */
.st-article .cta{
  margin:24px 0;
  padding:18px;
  border:1px solid rgba(0, 170, 178, .35);
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff 0%, #fbffff 100%);
  box-shadow:0 12px 34px rgba(0,0,0,.06);
}

.st-article .cta-actions{
  margin-top:14px;
  display:grid;
  gap:12px;
}

.st-article .cta .btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:14px 18px;
  min-height:54px;
  border-radius:14px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
  border:1px solid transparent;
  line-height:1.2;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease, background-color .12s ease, border-color .12s ease;
}

.st-article .cta .btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(0,0,0,.12);
  filter:saturate(1.05);
}

.st-article .cta .btn:active{
  transform:translateY(0);
  box-shadow:0 8px 18px rgba(0,0,0,.10);
  filter:saturate(1);
}

.st-article .cta .btn:focus{ outline:none; }
.st-article .cta .btn:focus-visible{
  box-shadow:0 0 0 3px rgba(0, 170, 178, .22), 0 14px 30px rgba(0,0,0,.12);
}

.st-article .cta .btn.btn--primary{
  background:linear-gradient(180deg, #00b8c1 0%, var(--st-accent) 100%);
  color:#fff;
}

.st-article .cta .btn.btn--phone{
  background:linear-gradient(180deg, #17c290 0%, #0aa777 100%);
  color:#fff;
}

/* Карточки (используются в навигаторе статей) */
.st-article .cards{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin:18px 0;
}

@media (min-width: 760px){
  .st-article .cards{ grid-template-columns: 1fr 1fr; }
}

.st-article .card{
  border:1px solid var(--st-border);
  border-radius:16px;
  padding:14px 14px;
  background:#fff;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.st-article .card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  border-color:#dfeff0;
}

.st-article .card .title{
  margin:0 0 6px 0;
  font-size:18px;
  line-height:1.35;
}

.st-article .card .meta{
  font-size:13px;
  color:var(--st-muted);
  margin-bottom:10px;
}

.st-article .tag{
  display:inline-block;
  border:1px solid #dbeff0;
  background:#f3feff;
  color:#0b5f63;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  margin:0 8px 8px 0;
}

/* Узкие экраны */
@media (max-width: 360px){
  .st-article{ padding-top:98px; }
  .st-article .wrap{ padding:18px 12px; }
  .st-article h1{ font-size:26px; }
  .st-article .cta{ padding:16px; border-radius:16px; }
  .st-article .cta .btn{ font-size:14px; min-height:48px; padding:12px 14px; border-radius:12px; }
}
