/* ==========================================================================
   Блог клиники «Олеандра»
   Листинг статей + страница статьи (оглавление-якоря, шкала прогресса чтения,
   перелинковка на услуги, типографика в фирменных стилях).
   Опирается на палитру и токены style.css (бирюза #00c2b6/#02a4a0, оранж #ff9505).
   ========================================================================== */

:root {
  --blog-teal: #00c2b6;
  --blog-teal-dark: #02a4a0;
  --blog-teal-ink: #0f5f5b;
  --blog-orange: #ff9505;
  --blog-orange-dark: #f7821b;
  --blog-ink: #222;
  --blog-ink-soft: #4c4c4c;
  --blog-ink-mute: #6b7573;
  --blog-line: rgb(0 194 182 / 18%);
  --blog-surface: #f7fbfb;
  --blog-surface-2: #f0fbfa;
  --blog-chip: #e9f7f6;
  --blog-shadow-lg: 0 24px 70px rgb(0 40 38 / 8%);
  --blog-shadow-md: 0 14px 34px rgb(0 40 38 / 6%);
  --blog-shadow-sm: 0 8px 22px rgb(0 40 38 / 5%);
  --blog-radius: 26px;
  --blog-gradient: linear-gradient(90deg, #00c2b6 0%, #ff9505 100%);
}

/* ---- shared bits ------------------------------------------------------- */
.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 15px;
  border: 1px solid rgb(0 194 182 / 26%);
  border-radius: 999px;
  background: #fff;
  color: var(--blog-teal-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blog-chip);
  color: var(--blog-teal-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

/* ==========================================================================
   ЛИСТИНГ
   ========================================================================== */
.blog-list {
  margin-top: 40px;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 48px;
  border: 1px solid var(--blog-line);
  border-radius: 34px;
  background:
    radial-gradient(120% 140% at 100% 0%, #e7f8f6 0%, rgb(231 248 246 / 0) 55%),
    radial-gradient(120% 160% at 0% 100%, #fff4e6 0%, rgb(255 244 230 / 0) 45%),
    #fbfefe;
  box-shadow: var(--blog-shadow-lg);
}

.blog-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.blog-hero__title {
  margin: 18px 0 0;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.08;
  color: var(--blog-ink);
}

.blog-hero__title span {
  color: var(--blog-teal-dark);
}

.blog-hero__text {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--blog-ink-soft);
}

.blog-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 88% 30%, rgb(0 194 182 / 10%) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 72%, rgb(255 149 5 / 12%) 0 2px, transparent 3px);
  background-size: 26px 26px;
  opacity: 0.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius);
  background: #fff;
  box-shadow: var(--blog-shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgb(0 194 182 / 40%);
  box-shadow: var(--blog-shadow-lg);
}

.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #00c2b6 0%, #02a4a0 100%);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__media--t2 { background: linear-gradient(135deg, #06b6c4 0%, #0e7d8c 100%); }
.blog-card__media--t3 { background: linear-gradient(135deg, #17a89b 0%, #f7821b 130%); }

.blog-card__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.blog-card__glyph svg {
  width: 40%;
  max-width: 130px;
  height: auto;
  color: rgb(255 255 255 / 92%);
}

.blog-card__cat {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: var(--blog-teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 12px;
  padding: 26px 26px 24px;
}

.blog-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--blog-ink);
  transition: color 0.25s ease;
}

.blog-card:hover .blog-card__title {
  color: var(--blog-teal-dark);
}

.blog-card__excerpt {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--blog-ink-mute);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgb(0 0 0 / 6%);
  font-size: 13px;
  font-weight: 700;
  color: var(--blog-ink-mute);
}

.blog-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card__meta svg { width: 15px; height: 15px; color: var(--blog-teal); }

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--blog-teal-dark);
  font-weight: 800;
}

.blog-card__more svg { transition: transform 0.3s ease; }
.blog-card:hover .blog-card__more svg { transform: translateX(4px); }

.blog-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  font-size: 0;
}

/* featured (first) card spans the row on desktop */
.blog-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.blog-card--featured .blog-card__media {
  flex: 0 0 46%;
  aspect-ratio: auto;
  min-height: 320px;
}

.blog-card--featured .blog-card__body {
  justify-content: center;
  padding: 40px 44px;
  gap: 16px;
}

.blog-card--featured .blog-card__title { font-size: 30px; }
.blog-card--featured .blog-card__excerpt { font-size: 17px; }

/* ==========================================================================
   ПРОГРЕСС ЧТЕНИЯ
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: 4px;
  background: rgb(0 194 182 / 12%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reading-progress.is-visible { opacity: 1; }

.reading-progress__bar {
  height: 100%;
  width: var(--reading, 0%);
  background: var(--blog-gradient);
  border-radius: 0 4px 4px 0;
  transition: width 0.08s linear;
}

/* ==========================================================================
   СТАТЬЯ
   ========================================================================== */
.article {
  margin-top: 34px;
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 48px 40px;
  border: 1px solid var(--blog-line);
  border-radius: 32px;
  background:
    radial-gradient(120% 150% at 100% 0%, #e7f8f6 0%, rgb(231 248 246 / 0) 52%),
    #fbfefe;
  box-shadow: var(--blog-shadow-md);
}

.article-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.article-hero__cat {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--blog-teal-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article-hero__title {
  margin: 20px 0 0;
  max-width: 860px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.12;
  color: var(--blog-ink);
}

.article-hero__excerpt {
  margin: 18px 0 0;
  max-width: 720px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--blog-ink-soft);
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgb(0 0 0 / 7%);
}

.article-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blog-ink-mute);
}

.article-hero__meta-item svg { width: 17px; height: 17px; color: var(--blog-teal); }

.article-hero__time {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--blog-line);
  color: var(--blog-teal-ink);
}

.article-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.article-hero--has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 350px);
  gap: 42px;
  align-items: center;
}

.article-hero__body {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.article-hero__media {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--blog-shadow-md);
  background: linear-gradient(135deg, #eaf6f5 0%, #fff 100%);
}

.article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- layout: content + sticky TOC ------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 46px;
  align-items: start;
  margin-top: 40px;
}

/* ---- table of contents ------------------------------------------------ */
.article-toc {
  position: sticky;
  top: 156px; /* clears the fixed site header (~140px) */
  align-self: start;
  padding: 24px 22px;
  border: 1px solid var(--blog-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--blog-shadow-sm);
}

.article-toc__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blog-ink-mute);
}

.article-toc__title svg { width: 16px; height: 16px; color: var(--blog-teal); }

.article-toc__list {
  position: relative;
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  counter-reset: toc;
}

.article-toc__list::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: rgb(0 194 182 / 18%);
}

.article-toc__item { position: relative; margin: 2px 0; }

.article-toc__link {
  display: block;
  padding: 7px 8px 7px 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--blog-ink-mute);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.article-toc__item::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgb(0 194 182 / 35%);
  transition: all 0.25s ease;
}

.article-toc__link:hover { color: var(--blog-teal-dark); }

.article-toc__item.is-active > .article-toc__link {
  color: var(--blog-teal-dark);
  font-weight: 800;
  background: var(--blog-surface-2);
}

.article-toc__item.is-active::before {
  background: var(--blog-teal);
  border-color: var(--blog-teal);
  box-shadow: 0 0 0 4px rgb(0 194 182 / 15%);
}

.article-toc__cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgb(0 0 0 / 7%);
}

.article-toc__cta .article-toc__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blog-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.article-toc__btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* mobile TOC (accordion), hidden on desktop */
.article-toc-mobile { display: none; }

/* ==========================================================================
   ТЕЛО СТАТЬИ — типографика (стилизуем обычные теги, чтобы контент из админки
   тоже выглядел красиво без спец-классов)
   ========================================================================== */
.article__body {
  min-width: 0;
  font-size: 17px;
  line-height: 1.72;
  color: var(--blog-ink-soft);
}

.article__body > *:first-child { margin-top: 0; }

.article__body h2.article-heading,
.article__body h2 {
  scroll-margin-top: 156px; /* clears the fixed site header (~140px) */
  margin: 46px 0 18px;
  padding-top: 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--blog-ink);
}

.article__body h2::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--blog-gradient);
}

.article__body h3 {
  margin: 32px 0 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--blog-teal-dark);
}

.article__body p { margin: 0 0 18px; }

.article__body a.article__link,
.article__body p a,
.article__body li a {
  color: var(--blog-teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(0 194 182 / 40%);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article__body a.article__link:hover,
.article__body p a:hover,
.article__body li a:hover {
  color: var(--blog-orange-dark);
  text-decoration-color: var(--blog-orange);
}

.article-lead {
  margin: 0 0 22px !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--blog-ink);
}

/* --- lists --- */
.article__body ul,
.article__body ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.article__body ul li,
.article__body ol.article-list--num li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  line-height: 1.6;
}

.article__body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blog-teal);
}

.article-list--check li::before {
  content: "";
  top: 0.28em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blog-chip) url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 7.2 5.6 10.2 11.6 3.8' fill='none' stroke='%2302a4a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.article-list--check li { padding-left: 32px; }

.article__body ol.article-list--num {
  counter-reset: nlist;
}

.article__body ol.article-list--num li { counter-increment: nlist; }

.article__body ol.article-list--num li::before {
  content: counter(nlist);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blog-teal-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* --- steps --- */
.article-steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0 0 24px !important;
  padding: 0;
  list-style: none;
}

.article-steps__item {
  counter-increment: step;
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 20px 18px 62px;
  border: 1px solid var(--blog-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--blog-shadow-sm);
}

.article-steps__item::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blog-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.article-steps__title { font-size: 17px; font-weight: 800; color: var(--blog-ink); line-height: 1.3; }
.article-steps__text { font-size: 15.5px; color: var(--blog-ink-soft); line-height: 1.55; }

/* --- callouts --- */
.article-callout {
  display: flex;
  gap: 14px;
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--blog-line);
  background: var(--blog-surface);
}

.article-callout::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px;
}

.article-callout__title { margin: 0 0 6px; font-size: 16.5px; font-weight: 800; color: var(--blog-ink); }
.article-callout__text { margin: 0; font-size: 15.5px; line-height: 1.55; }
.article-callout__body { min-width: 0; }

.article-callout--info {
  background: var(--blog-surface-2);
  border-color: rgb(0 194 182 / 22%);
}
.article-callout--info::before {
  background-color: var(--blog-chip);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2302a4a0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='8'/%3E%3Cpath d='M10 9v5M10 6.2v.2'/%3E%3C/svg%3E");
}

.article-callout--tip {
  background: #eefaf4;
  border-color: rgb(23 168 111 / 24%);
}
.article-callout--tip::before {
  background-color: #d9f3e6;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23148f5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2a6 6 0 0 0-3 11v2h6v-2a6 6 0 0 0-3-11zM8 18h4'/%3E%3C/svg%3E");
}

.article-callout--warn {
  background: #fff7ef;
  border-color: rgb(247 130 27 / 30%);
}
.article-callout--warn::before {
  background-color: #ffe9cf;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23e07800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3 2.5 16h15L10 3zM10 8v4M10 14.4v.2'/%3E%3C/svg%3E");
}

/* --- quote --- */
.article-quote {
  margin: 30px 0;
  padding: 26px 28px 26px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2fbfa 0%, #fff 100%);
  border: 1px solid var(--blog-line);
  border-left: 5px solid var(--blog-orange);
}

.article-quote blockquote {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  color: var(--blog-ink);
}

.article-quote figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blog-teal-dark);
}

.article-quote figcaption::before { content: "— "; }

/* --- stats --- */
.article-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.article-stat {
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, #063f3c 0%, #0b6b64 100%);
  color: #fff;
  box-shadow: var(--blog-shadow-sm);
}

.article-stat__value {
  display: block;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.article-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: rgb(255 255 255 / 82%);
}

/* --- table --- */
.article-table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--blog-line);
  box-shadow: var(--blog-shadow-sm);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
}

.article-table caption {
  caption-side: top;
  padding: 16px 20px;
  text-align: left;
  font-weight: 800;
  color: var(--blog-ink);
  background: var(--blog-surface);
  border-bottom: 1px solid var(--blog-line);
}

.article-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 800;
  color: #fff;
  background: var(--blog-teal-dark);
  vertical-align: top;
}

.article-table td {
  padding: 13px 18px;
  vertical-align: top;
  border-bottom: 1px solid rgb(0 0 0 / 7%);
  line-height: 1.5;
}

.article-table tbody tr:nth-child(even) td { background: #f7fbfb; }
.article-table tbody tr:last-child td { border-bottom: none; }
.article-table td:first-child { font-weight: 700; color: var(--blog-ink); }

/* --- inline service card --- */
.article-service {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 18px;
  margin: 26px 0;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgb(0 194 182 / 28%);
  background: linear-gradient(120deg, #f0fbfa 0%, #fff 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-service:hover {
  transform: translateY(-3px);
  border-color: var(--blog-teal);
  box-shadow: var(--blog-shadow-md);
}

.article-service__title { grid-column: 1; font-size: 18px; font-weight: 800; color: var(--blog-ink); }
.article-service__text { grid-column: 1; font-size: 15px; font-weight: 500; color: var(--blog-ink-mute); }
.article-service__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blog-teal-dark);
  color: #fff;
  font-size: 22px;
  transition: transform 0.3s ease;
}
.article-service:hover .article-service__arrow { transform: translateX(4px); }

/* ==========================================================================
   ПЕРЕЛИНКОВКА / СВЯЗАННЫЕ УСЛУГИ
   ========================================================================== */
.article-related {
  margin-top: 46px;
  padding: 34px;
  border: 1px solid var(--blog-line);
  border-radius: 26px;
  background: var(--blog-surface);
}

.article-related__title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--blog-ink);
}

.article-related__sub { margin: 0 0 22px; font-size: 15px; color: var(--blog-ink-mute); font-weight: 600; }

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-related__card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--blog-line);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-related__card:hover {
  transform: translateY(-4px);
  border-color: var(--blog-teal);
  box-shadow: var(--blog-shadow-md);
}

.article-related__name { grid-column: 1; font-size: 17px; font-weight: 800; color: var(--blog-ink); line-height: 1.25; }
.article-related__note { grid-column: 1; font-size: 14px; font-weight: 500; color: var(--blog-ink-mute); }
.article-related__ico {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blog-chip);
  color: var(--blog-teal-dark);
  font-size: 19px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.article-related__card:hover .article-related__ico { background: var(--blog-teal-dark); color: #fff; transform: translateX(3px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.article-faq { margin-top: 40px; }

.article-faq__title { margin: 0 0 20px; font-size: 26px; font-weight: 800; color: var(--blog-ink); }
.article-faq__title span { color: var(--blog-teal-dark); }

.article-faq__item {
  border: 1px solid var(--blog-line);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-faq__item[open] { border-color: rgb(0 194 182 / 40%); box-shadow: var(--blog-shadow-sm); }

.article-faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
  color: var(--blog-ink);
}

.article-faq__q::-webkit-details-marker { display: none; }

.article-faq__q::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-left: auto;
  border-right: 2.5px solid var(--blog-teal-dark);
  border-bottom: 2.5px solid var(--blog-teal-dark);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.article-faq__item[open] .article-faq__q::after { transform: rotate(-135deg); }

.article-faq__a {
  padding: 0 24px 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--blog-ink-soft);
}

.article-faq__a a { color: var(--blog-teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   CTA + подвал статьи
   ========================================================================== */
.article-cta {
  position: relative;
  overflow: hidden;
  margin-top: 44px;
  padding: 40px 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, #02a4a0 0%, #017772 100%);
  color: #fff;
  box-shadow: var(--blog-shadow-lg);
}

.article-cta__inner { position: relative; z-index: 2; max-width: 620px; }
.article-cta__title { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.15; }
.article-cta__text { margin: 14px 0 26px; font-size: 17px; font-weight: 600; line-height: 1.5; color: rgb(255 255 255 / 90%); }

.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 8px 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9505 0%, #f7821b 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.article-cta__btn:hover { filter: brightness(1.06); transform: translateY(-2px); }

.article-cta__decor {
  position: absolute;
  right: -40px;
  bottom: -60px;
  z-index: 1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 12%) 0%, rgb(255 255 255 / 0) 70%);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--blog-teal-dark);
  font-weight: 800;
}

.article-disclaimer {
  margin-top: 26px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--blog-surface);
  border: 1px solid var(--blog-line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--blog-ink-mute);
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (width <= 74.375em) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; }
}

@media (width <= 61.99875em) {
  .blog-hero { padding: 40px 32px; }
  .blog-hero__title { font-size: 38px; }
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-card--featured { flex-direction: column; }
  .blog-card--featured .blog-card__media { flex-basis: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .blog-card--featured .blog-card__body { padding: 26px; }
  .blog-card--featured .blog-card__title { font-size: 24px; }

  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { display: none; }             /* desktop sticky TOC hidden */
  .article-toc-mobile { display: block; margin-bottom: 26px; }
  .article-related__grid { grid-template-columns: 1fr; }
}

@media (width <= 47.99875em) {
  .article-hero { padding: 30px 22px 28px; border-radius: 22px; }

  .article-hero--has-media {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-hero__media {
    min-height: 190px;
    order: -1;
  }

  .article-hero__title { font-size: 30px; }
  .blog-hero__title { font-size: 30px; }
  .article__body { font-size: 16px; }
  .article__body h2, .article__body h2.article-heading { font-size: 25px; margin-top: 38px; }
  .article__body h3 { font-size: 19px; }
  .article-lead { font-size: 18px; }
  .article-related, .article-cta { padding: 26px 22px; }
  .article-cta__title { font-size: 24px; }
  .article-service { grid-template-columns: 1fr; }
  .article-service__arrow { grid-row: auto; grid-column: 1; justify-self: start; }
}

/* --- mobile TOC accordion --- */
.article-toc-mobile__box {
  border: 1px solid var(--blog-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--blog-shadow-sm);
  overflow: hidden;
}

.article-toc-mobile__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--blog-ink);
}

.article-toc-mobile__head::-webkit-details-marker { display: none; }
.article-toc-mobile__head svg { width: 18px; height: 18px; color: var(--blog-teal); }

.article-toc-mobile__head::after {
  content: "";
  width: 10px; height: 10px;
  margin-left: auto;
  border-right: 2.5px solid var(--blog-teal-dark);
  border-bottom: 2.5px solid var(--blog-teal-dark);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.article-toc-mobile__box[open] .article-toc-mobile__head::after { transform: rotate(-135deg); }

.article-toc-mobile__list { margin: 0; padding: 4px 20px 18px; list-style: none; counter-reset: mtoc; }
.article-toc-mobile__list li { counter-increment: mtoc; margin: 2px 0; }
.article-toc-mobile__list a {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blog-ink-soft);
  border-bottom: 1px solid rgb(0 0 0 / 5%);
}
.article-toc-mobile__list li:last-child a { border-bottom: none; }
.article-toc-mobile__list a::before {
  content: counter(mtoc);
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blog-chip);
  color: var(--blog-teal-dark);
  font-size: 12px; font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .blog-card, .article-service, .article-related__card, .reading-progress__bar,
  .article-cta__btn, .article-toc__link { transition: none; }
}
