/* ============================================================
   Blog ARTICLE template — editorial redesign (Konsol-like).
   Loaded AFTER blog-base.css / blog-extra.css in BaseLayout,
   so it may override .prose. List pages do not use .art-*.
   ============================================================ */

/* ---------- layout: narrow reading column ---------- */
.art-wrap {
  max-width: 740px;          /* 700px content + 2*20px padding */
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- article header ---------- */
.art-head { padding: 28px 0 8px; }

.art-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}
.art-crumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .15s;
}
.art-crumbs a:hover { color: var(--color-primary-strong); }
.art-crumbs .art-crumbs__sep {
  color: var(--color-text-subtle);
  opacity: .45;
  font-size: 12px;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.art-meta__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--color-primary-strong);
  background: rgba(104, 137, 255, .1);
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
  transition: background .15s;
}
.art-meta__cat:hover { background: rgba(104, 137, 255, .18); }
.art-meta__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--color-text-subtle);
  opacity: .5;
}
.art-meta__item {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--color-text-muted);
}

.art-title {
  font-size: 38px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--color-text-dark);
  margin: 0 0 20px;
}

.art-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
}
.art-byline__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--color-text-muted);
}
.art-byline__author { font-weight: 400; color: var(--color-text-dark); }

/* ---------- cover image under the byline ---------- */
.art-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 18px 0 22px;
}

/* аватар-кружок в байлайне */
.art-byline__ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  display: block;
}

/* ---------- table of contents: light editorial list ---------- */
.art-toc { margin: 28px 0 8px; }
.art-toc__label {
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.art-toc__list {
  list-style: none;
  margin: 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid rgba(104, 137, 255, .28);
}
.art-toc__list li { margin: 0; }
.art-toc__list li.is-h3 { padding-left: 16px; }
.art-toc__list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .15s;
}
.art-toc__list a:hover { color: var(--color-primary-strong); }
.art-toc__list a.is-active { color: var(--color-primary-strong); }

/* mobile-first: the rail is transparent, TOC stays in flow above the text */
.art-rail { display: contents; }
.art-main { min-width: 0; }

/* ---------- desktop >=1180px: sticky TOC in a left rail ---------- */
@media (min-width: 1180px) {
  .art-wrap { max-width: 1004px; }   /* 20 + 220 rail + 44 gap + 700 + 20 */
  .art-head { max-width: 700px; margin-left: 264px; }
  .art-cover { margin-top: 0; }
  .art-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 700px);
    column-gap: 44px;
  }
  .art-rail { display: block; grid-column: 1; }
  .art-main { grid-column: 2; }
  .art-toc {
    position: sticky;
    top: 100px;
    margin: 6px 0 0;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .art-toc::-webkit-scrollbar { display: none; }
  .art-toc__label { font-size: 11.5px; }
  .art-toc__list { padding-left: 14px; }
  .art-toc__list li.is-h3 { padding-left: 12px; }
  .art-toc__list a {
    font-size: 13.5px;
    line-height: 1.4;
    padding: 3.5px 0;
  }
  .art-toc__list a.is-active { font-weight: 500; }
}

/* ---------- body copy overrides (.prose) ---------- */
.art-wrap .prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-dark);
}
.art-wrap .prose h2 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: 48px;
  margin-bottom: 14px;
}
.art-wrap .prose h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  margin-top: 34px;
  margin-bottom: 10px;
}
.art-wrap .prose p { margin-bottom: 18px; }

/* вводную роль выполняет стандферст под заголовком (.art-standfirst) */
.art-wrap .prose ul,
.art-wrap .prose ol { margin-bottom: 18px; padding-left: 24px; }
.art-wrap .prose li { margin-bottom: 7px; }
.art-wrap .prose li::marker { color: var(--color-primary-strong); }

.art-wrap .prose blockquote {
  border-left: 3px solid var(--color-primary-strong);
  background: var(--color-bg-lavender);
  border-radius: 0 10px 10px 0;
  margin: 26px 0;
  padding: 14px 20px;
  color: var(--color-text-dark);
  font-size: 16.5px;
}
.art-wrap .prose blockquote p:last-child { margin-bottom: 0; }

/* ---------- colored callouts ---------- */
.art-wrap .prose .callout {
  border-radius: 14px;
  padding: 20px 22px;
  margin: 26px 0;
}
.art-wrap .prose .callout p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 10px;
}
.art-wrap .prose .callout p:last-child { margin-bottom: 0; }
.art-wrap .prose .callout .callout__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}
.art-wrap .prose .callout .callout__label svg { flex-shrink: 0; display: inline-block; margin: 0; }

.art-wrap .prose .callout--important { background: #eef2ff; }
.art-wrap .prose .callout--important .callout__label svg { color: #0439ff; }

.art-wrap .prose .callout--example { background: #f6f7f9; }

.art-wrap .prose .callout--law {
  background: var(--color-bg-light);
  border-left: 3px solid #6889ff;
  border-radius: 0 14px 14px 0;
  padding: 16px 22px 16px 20px;
  font-style: italic;
}
.art-wrap .prose .callout--law p { color: #3c454f; }

/* ---------- key figures row ---------- */
.art-wrap .prose .keyfigures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 14px;
  margin: 30px 0 34px;
  padding: 24px 26px;
  background: #f7f8fc;
  border-radius: 16px;
}
.art-wrap .prose .keyfigures__item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.art-wrap .prose .keyfigures__value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #0439ff;
  white-space: nowrap;
}
.art-wrap .prose .keyfigures__label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
}
@media (max-width: 720px) {
  .art-wrap .prose .keyfigures { grid-template-columns: repeat(2, 1fr); padding: 20px; }
}

/* tables: light header instead of the dark bar */
.art-wrap .prose table {
  font-size: 15.5px;
  line-height: 1.5;
  margin: 26px 0;
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
}
.art-wrap .prose th {
  background: var(--color-bg-lavender);
  color: var(--color-text-dark);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
}
.art-wrap .prose td { padding: 10px 14px; }
.art-wrap .prose tr:hover td { background: transparent; }

/* inline SVG diagrams keep the full column width */
.art-wrap .prose svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 26px auto;
}
.art-wrap .prose img { border-radius: 12px; margin: 26px 0; }

/* ---------- FAQ: flat list, thin separators ---------- */
.art-faq { margin-top: 56px; }
.art-faq__title {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--color-text-dark);
  margin: 0 0 8px;
}
.art-faq dl { margin: 0; }
.art-faq__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.art-faq__item:last-child { border-bottom: none; }
.art-faq dt {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text-dark);
  margin: 0 0 8px;
}
.art-faq dd {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- tags + share footer row ---------- */
.art-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.art-tags a {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-muted);
  background: var(--color-bg-lavender);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.art-tags a:hover {
  color: var(--color-primary-strong);
  background: rgba(104, 137, 255, .1);
}

/* ---------- related: three light compact cards ---------- */
.art-related { margin-top: 56px; }
.art-related__title {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--color-text-dark);
  margin: 0 0 18px;
}
.art-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.art-related__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  text-decoration: none;
  background: var(--color-bg-light);
  transition: border-color .2s, box-shadow .2s;
}
.art-related__thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630; /* обложка целиком, как в статье */
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 2px;
}
.art-related__card:hover {
  border-color: rgba(104, 137, 255, .35);
  box-shadow: 0 4px 16px rgba(155, 181, 253, .12);
}
.art-related__card h3 {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-dark);
  margin: 0;
  transition: color .15s;
}
.art-related__card:hover h3 { color: var(--color-primary-strong); }
.art-related__card time {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-subtle);
  margin-top: auto;
}

/* ---------- author signature ---------- */
.art-sign {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
}
.art-sign__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(104, 137, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-strong);
  flex-shrink: 0;
}
.art-sign__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin: 0;
}
.art-sign__role {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--color-text-muted);
  margin: 0;
}

/* keep the lead form comfortable inside the narrow column */
.art-wrap .gt-lead { margin: 56px 0 0; }
.art-wrap .gt-lead__card { border-radius: 32px; padding: 32px 32px; }
.art-wrap .gt-lead__title { font-size: 26px; margin-bottom: 24px; }
.art-wrap .gt-lead__input { height: 60px; border-radius: 14px; font-size: 15px; }
.art-wrap .gt-lead__submit { height: 60px; border-radius: 999px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .art-title { font-size: 29px; }
  .art-related__grid { grid-template-columns: 1fr; }
  .art-head { padding-top: 20px; }
}

/* ---------- standfirst: крупная подводка под заголовком (как дек в Т—Ж) ---------- */
.art-standfirst {
  margin: 14px 0 6px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 300;
  color: #5b6472;
  max-width: 640px;
}
@media (max-width: 640px) { .art-standfirst { font-size: 17.5px; } }

/* подпись-источник во врезках «Дословно из закона» */
.callout__src {
  margin: 10px 0 0 !important;
  font-size: 13.5px;
  font-style: normal;
  color: var(--color-text-muted);
}
.callout__src a { color: var(--color-primary-strong); text-decoration: none; }
.callout__src a:hover { text-decoration: underline; }

/* ссылки в тексте — с подчёркиванием, как в редакционных изданиях */
.art-wrap .prose a {
  text-decoration: underline;
  text-decoration-color: rgba(4, 57, 255, .3);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.art-wrap .prose a:hover { text-decoration-color: var(--color-primary-strong); }

/* ---------- лид-магнит: скачивание чек-листа ---------- */
.art-wrap .prose .magnet {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f7f8fc;
  border: 1px solid #e3e8fb;
  border-radius: 24px;
  padding: 20px 24px;
  margin: 30px 0;
}
.art-wrap .prose .magnet__icon { width: 40px; height: 48px; flex: none; }
.art-wrap .prose .magnet__body { flex: 1; min-width: 0; }
.art-wrap .prose .magnet .magnet__title { font-size: 16.5px; font-weight: 600; margin: 0 0 4px; color: #121212; }
.art-wrap .prose .magnet .magnet__sub { font-size: 13.5px; color: var(--color-text-muted); margin: 0; line-height: 1.45; }
.art-wrap .prose .magnet__btn {
  flex: none;
  background: #0439ff;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
}
.art-wrap .prose .magnet__btn:hover { background: #1d4fff; box-shadow: 0 6px 20px rgba(4,57,255,.3); }
@media (max-width: 640px) {
  .art-wrap .prose .magnet { flex-direction: column; align-items: flex-start; }
}

/* форма магнита: почта + телефон */
.art-wrap .prose .magnet__form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.art-wrap .prose .magnet__input {
  flex: 1 1 150px;
  min-width: 0;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid #dbe3fd;
  background: #ffffff;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 14.5px;
  color: #121212;
  padding: 0 14px;
  outline: none;
  transition: border-color .15s;
}
.art-wrap .prose .magnet__input:focus { border-color: #6889ff; }
.art-wrap .prose .magnet__input::placeholder { color: #9aa3b2; }
.art-wrap .prose .magnet .magnet__ok { font-size: 14.5px; color: #16a34a; margin: 12px 0 0; }
.art-wrap .prose .magnet { align-items: flex-start; }
.art-wrap .prose .magnet__btn { align-self: center; }
.art-wrap .prose .magnet__form .magnet__btn { align-self: auto; flex: none; border: none; cursor: pointer; height: 46px; padding: 0 20px; }
@media (max-width: 640px) { .art-wrap .prose .magnet__form { flex-direction: column; } }

/* Обложки в карточках списков: показываем кадр целиком (пропорция 1200:630),
   а не фикс-высотный кроп */
.pc-cover { height: auto !important; aspect-ratio: 1200 / 630; }
.pc-cover img { height: 100%; }
