/* Инлун · блог — общие стили для листинга и статей.
   Наследует систему из основного сайта: палитра, типографика, кнопки. */

:root{
  --navy:#0B1B3D;
  --ink:#1E2D52;
  --pearl:#FAFAF7;
  --cream:#F2EFE5;
  --sand:#E4E2DA;
  --steel:#5F6B85;
  --gold:#C9A961;
  --hairline:0.5px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:hidden}
body{
  font-family:'Inter Tight',system-ui,-apple-system,sans-serif;
  font-weight:400;
  background:var(--navy);
  color:var(--pearl);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
  width:100%;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}

.container{max-width:1360px;margin:0 auto;padding:0 40px}
.container--narrow{max-width:760px}
@media (max-width:720px){ .container{padding:0 24px} }
@media (max-width:420px){ .container{padding:0 20px} }

/* Type */
.h-display{
  font-family:'Inter Tight',sans-serif;
  font-weight:500;
  letter-spacing:-0.04em;
  line-height:0.98;
  font-size:clamp(40px,6.6vw,108px);
}
.h-section{
  font-weight:500;
  letter-spacing:-0.035em;
  line-height:0.98;
  font-size:clamp(36px,4.6vw,72px);
}
.h-sub{
  font-weight:500;
  letter-spacing:-0.02em;
  line-height:1.15;
  font-size:clamp(22px,2.2vw,32px);
}
.italic-gold{
  font-style:italic;
  font-weight:300;
  color:var(--gold);
}
.label{
  text-transform:uppercase;
  letter-spacing:0.3em;
  font-size:11px;
  color:var(--steel);
  font-weight:500;
}
.label--gold{color:var(--gold)}
.label-row{display:flex;align-items:center;gap:14px}
.label-row::before{
  content:"";
  width:28px;height:var(--hairline);
  background:var(--gold);
  display:inline-block;
}
.muted{color:var(--steel)}
.body-l{font-size:18px;line-height:1.55;color:var(--pearl)}

/* Buttons — matches main site */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  padding:16px 28px;
  min-height:48px;
  border-radius:0;
  font-size:14px;
  letter-spacing:0.02em;
  transition:all .25s ease;
  border:var(--hairline) solid transparent;
  text-align:center;
}
.btn-primary{
  background:var(--gold);
  color:var(--navy);
  font-weight:500;
}
.btn-primary:hover{
  background:#d4b370;
  box-shadow:0 8px 24px -8px rgba(201,169,97,0.55);
  transform:translateY(-1px);
}
.btn-ghost{
  background:transparent;
  border:var(--hairline) solid var(--pearl);
  color:var(--pearl);
}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold);background:rgba(201,169,97,0.06)}
.arrow{display:inline-block;transition:transform .25s ease}
.btn:hover .arrow{transform:translateX(4px)}

/* Header — same as main site */
header.nav{
  position:fixed;top:0;left:0;right:0;
  z-index:50;
  padding:14px 40px;
  display:flex;justify-content:space-between;align-items:center;
  background:rgba(11,27,61,0.85);
  backdrop-filter:saturate(140%) blur(0px);
  border-bottom:var(--hairline) solid rgba(250,250,247,0.08);
}
.logo{display:inline-flex;align-items:center;gap:0;transition:opacity .2s;line-height:0}
.logo:hover{opacity:.8}
.logo img{display:block;width:auto}
.logo-mark{
  height:40px;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.45))
    drop-shadow(0 4px 10px rgba(0,0,0,0.4))
    drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}
.logo-word{height:44px;margin-left:-8px}
@media (max-width:600px){
  .logo-mark{
    height:32px;
    filter:
      drop-shadow(0 1px 2px rgba(0,0,0,0.45))
      drop-shadow(0 3px 8px rgba(0,0,0,0.35));
  }
  .logo-word{height:36px;margin-left:-6px}
}
nav.primary-nav ul{display:flex;gap:32px;list-style:none}
nav.primary-nav a{
  font-size:13px;letter-spacing:0.02em;
  color:var(--pearl);opacity:.85;
  transition:color .2s,opacity .2s;
  position:relative;padding-bottom:4px;
}
nav.primary-nav a::after{
  content:"";
  position:absolute;left:0;right:0;bottom:0;
  height:1px;background:var(--gold);
  transform:scaleX(0);transform-origin:left center;
  transition:transform .3s cubic-bezier(.22,.61,.36,1);
}
nav.primary-nav a:hover{color:var(--gold);opacity:1}
nav.primary-nav a:hover::after{transform:scaleX(1)}
nav.primary-nav a.is-active{color:var(--gold);opacity:1}
nav.primary-nav a.is-active::after{transform:scaleX(1)}
.nav-cta{font-size:13px;letter-spacing:0.02em;min-height:auto;padding:12px 20px}
@media (max-width:880px){
  nav.primary-nav ul{display:none}
  header.nav{padding:18px 20px}
  .nav-cta{display:none}
}

/* Blog listing hero */
.blog-hero{
  padding:160px 0 80px;
  border-bottom:var(--hairline) solid rgba(250,250,247,0.08);
}
.blog-hero-inner{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:56px;
  align-items:center;
}
.blog-hero-mark{
  width:140px;height:140px;
  flex-shrink:0;
  position:relative;
}
.blog-hero-mark::before{
  content:"";
  position:absolute;
  inset:-30% -30% -35% -30%;
  background:radial-gradient(closest-side, rgba(201,169,97,0.18) 0%, rgba(201,169,97,0.06) 40%, rgba(11,27,61,0) 72%);
  filter:blur(4px);
  z-index:0;
  pointer-events:none;
}
.blog-hero-mark img{
  width:100%;height:100%;
  position:relative;
  z-index:1;
  filter:
    drop-shadow(0 2px 6px rgba(0,0,0,0.35))
    drop-shadow(0 14px 34px rgba(0,0,0,0.5))
    drop-shadow(0 28px 60px rgba(0,0,0,0.35));
}
.blog-hero-title{margin-top:16px}
.blog-hero-sub{
  margin-top:20px;
  max-width:640px;
  font-size:clamp(16px,1.4vw,20px);
  line-height:1.55;
  color:var(--steel);
}
@media (max-width:720px){
  .blog-hero{padding:140px 0 56px}
  .blog-hero-inner{grid-template-columns:1fr;gap:32px}
  .blog-hero-mark{width:100px;height:100px}
}

/* Article cards on listing */
.articles{padding:80px 0 120px}
.articles-list{display:flex;flex-direction:column;gap:0}
.article-card{
  display:grid;
  grid-template-columns:200px 1fr;
  gap:48px;
  padding:40px 0;
  border-top:var(--hairline) solid rgba(250,250,247,0.12);
  transition:background .2s ease;
}
.articles-list .article-card:last-child{border-bottom:var(--hairline) solid rgba(250,250,247,0.12)}
.article-card:hover{background:rgba(250,250,247,0.02)}
.article-card-meta{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.article-card-date{
  font-size:14px;
  color:var(--steel);
  font-variant-numeric:tabular-nums;
}
.article-card-cat{
  text-transform:uppercase;
  letter-spacing:0.24em;
  font-size:11px;
  color:var(--gold);
  font-weight:500;
}
.article-card-title{
  font-weight:500;
  letter-spacing:-0.02em;
  line-height:1.15;
  font-size:clamp(24px,2.4vw,34px);
  color:var(--pearl);
  transition:color .2s ease;
}
.article-card:hover .article-card-title{color:var(--gold)}
.article-card-lead{
  margin-top:14px;
  font-size:16px;
  line-height:1.55;
  color:var(--steel);
  max-width:640px;
}
.article-card-more{
  margin-top:20px;
  display:inline-flex;align-items:center;gap:10px;
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--gold);
}
.article-card-more .arrow{transition:transform .25s ease}
.article-card:hover .article-card-more .arrow{transform:translateX(4px)}
@media (max-width:720px){
  .article-card{grid-template-columns:1fr;gap:16px;padding:32px 0}
  .article-card-meta{flex-direction:row;gap:16px;align-items:center}
}

/* Article page */
.article-hero{
  padding:150px 0 40px;
}
.breadcrumbs{
  font-size:13px;
  color:var(--steel);
  margin-bottom:32px;
  letter-spacing:0.01em;
}
.breadcrumbs a{
  color:var(--steel);
  transition:color .2s ease;
  border-bottom:1px solid transparent;
}
.breadcrumbs a:hover{color:var(--gold)}
.breadcrumbs .sep{margin:0 8px;color:rgba(95,107,133,0.6)}
.article-cat{
  text-transform:uppercase;
  letter-spacing:0.3em;
  font-size:11px;
  color:var(--gold);
  font-weight:500;
  margin-bottom:24px;
  display:block;
}
h1.article-title{
  font-weight:500;
  letter-spacing:-0.035em;
  line-height:1.05;
  font-size:clamp(36px,4.8vw,64px);
  color:var(--pearl);
  max-width:900px;
}
.article-lead{
  margin-top:32px;
  font-size:clamp(18px,1.6vw,22px);
  line-height:1.5;
  color:var(--pearl);
  opacity:.92;
  max-width:760px;
}
.article-meta{
  margin-top:40px;
  display:flex;
  align-items:center;
  gap:20px;
  font-size:13px;
  color:var(--steel);
  padding-bottom:32px;
  border-bottom:var(--hairline) solid rgba(250,250,247,0.12);
}
.article-meta .dot{width:3px;height:3px;background:var(--steel);border-radius:50%}

/* Article body */
.article-body{
  padding:56px 0 80px;
}
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body h2,
.article-body h3,
.article-body figure,
.article-body .callout{
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}
.article-body p{
  font-size:18px;
  line-height:1.7;
  color:var(--pearl);
  margin-bottom:24px;
}
.article-body h2{
  font-weight:500;
  letter-spacing:-0.025em;
  line-height:1.1;
  font-size:clamp(26px,2.6vw,36px);
  color:var(--gold);
  margin:56px auto 20px;
}
.article-body h2:first-child{margin-top:0}
.article-body h3{
  font-weight:500;
  letter-spacing:-0.015em;
  line-height:1.2;
  font-size:clamp(20px,1.8vw,24px);
  color:var(--gold);
  margin:36px auto 16px;
}
.article-body ul,
.article-body ol{
  padding-left:24px;
  margin-bottom:24px;
}
.article-body li{
  font-size:18px;
  line-height:1.65;
  color:var(--pearl);
  margin-bottom:10px;
}
.article-body li::marker{color:var(--gold)}
.article-body strong{color:var(--pearl);font-weight:500}
.article-body em{font-style:italic;color:var(--gold);font-weight:300}
.article-body a{
  color:var(--gold);
  border-bottom:1px solid rgba(201,169,97,0.4);
  transition:border-color .2s ease;
}
.article-body a:hover{border-bottom-color:var(--gold)}
.article-body blockquote{
  border-left:2px solid var(--gold);
  padding:8px 0 8px 24px;
  margin:32px auto;
  font-style:italic;
  font-weight:300;
  color:var(--cream);
  font-size:20px;
  line-height:1.5;
}
.article-body .callout{
  background:rgba(201,169,97,0.06);
  border:var(--hairline) solid rgba(201,169,97,0.25);
  padding:24px 28px;
  margin:32px auto;
}
.article-body .callout p{margin-bottom:0}
.article-body .callout p + p{margin-top:12px}
.article-body .callout-label{
  text-transform:uppercase;
  letter-spacing:0.24em;
  font-size:11px;
  color:var(--gold);
  font-weight:500;
  margin-bottom:10px;
  display:block;
}
.article-body hr{
  border:none;
  border-top:var(--hairline) solid rgba(250,250,247,0.12);
  max-width:760px;
  margin:56px auto;
}

/* Inline code — для user_id, команд бота, версий политики */
.article-body code{
  font-family:'JetBrains Mono','SF Mono',ui-monospace,Menlo,Consolas,monospace;
  font-size:0.88em;
  background:rgba(201,169,97,0.08);
  border:var(--hairline) solid rgba(201,169,97,0.22);
  color:var(--cream);
  padding:2px 8px;
  border-radius:2px;
  white-space:nowrap;
}
@media (max-width:520px){
  .article-body code{white-space:normal;word-break:break-word}
}

/* Data tables — штрафы и ставки */
.article-body .table-wrap{
  max-width:760px;
  margin:32px auto 40px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:var(--hairline) solid rgba(201,169,97,0.22);
  background:rgba(250,250,247,0.02);
}
.article-body table.data-table{
  width:100%;
  border-collapse:collapse;
  font-size:15px;
  line-height:1.45;
  color:var(--pearl);
}
.article-body table.data-table thead th{
  text-align:left;
  padding:16px 22px;
  font-weight:500;
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:11px;
  background:rgba(201,169,97,0.06);
  border-bottom:var(--hairline) solid rgba(201,169,97,0.3);
  vertical-align:middle;
  white-space:nowrap;
}
.article-body table.data-table tbody td{
  padding:14px 22px;
  vertical-align:top;
  border-bottom:var(--hairline) solid rgba(250,250,247,0.07);
  transition:background .15s ease;
}
.article-body table.data-table tbody tr:last-child td{border-bottom:none}
.article-body table.data-table tbody tr:hover td{background:rgba(201,169,97,0.045)}
.article-body table.data-table td:not(:first-child),
.article-body table.data-table th:not(:first-child){
  text-align:right;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  color:var(--cream);
}
.article-body table.data-table td:first-child{
  padding-right:32px;
}
@media (max-width:720px){
  .article-body table.data-table{font-size:14px}
  .article-body table.data-table thead th{padding:12px 14px;letter-spacing:0.12em}
  .article-body table.data-table tbody td{padding:12px 14px}
  .article-body table.data-table td:first-child{padding-right:18px}
}

/* Checklist — интерактивный, с сохранением в localStorage */
.article-body ul.checklist{
  list-style:none;
  padding-left:0;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:20px;
}
.article-body ul.checklist li{
  margin-bottom:10px;
  padding:0;
  font-size:17px;
  line-height:1.55;
  color:var(--pearl);
}
/* Подзаголовок группы внутри чек-листа — золотой капслок, без чекбокса */
.article-body ul.checklist li.checklist-group-title{
  margin:26px 0 6px;
  padding:0;
  text-transform:uppercase;
  letter-spacing:0.24em;
  font-size:11px;
  color:var(--gold);
  font-weight:500;
  line-height:1.4;
}
.article-body ul.checklist li.checklist-group-title:first-child{margin-top:4px}
.article-body ul.checklist li::marker{content:none}
.article-body ul.checklist label{
  display:flex;
  align-items:flex-start;
  gap:14px;
  cursor:pointer;
  padding:8px 12px 8px 10px;
  margin:0 -12px 0 -10px;
  border-radius:2px;
  transition:background .15s ease;
}
.article-body ul.checklist label:hover{
  background:rgba(201,169,97,0.05);
}
.article-body ul.checklist input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:20px;
  height:20px;
  flex-shrink:0;
  margin:0;
  margin-top:0.15em;
  border:1.2px solid rgba(201,169,97,0.55);
  background:rgba(201,169,97,0.04);
  cursor:pointer;
  position:relative;
  transition:border-color .15s ease, background .15s ease;
  box-sizing:border-box;
}
.article-body ul.checklist input[type="checkbox"]:hover{
  border-color:var(--gold);
  background:rgba(201,169,97,0.1);
}
.article-body ul.checklist input[type="checkbox"]:focus-visible{
  outline:2px solid rgba(201,169,97,0.6);
  outline-offset:2px;
}
.article-body ul.checklist input[type="checkbox"]:checked{
  background:rgba(201,169,97,0.18);
  border-color:var(--gold);
}
.article-body ul.checklist input[type="checkbox"]:checked::after{
  content:"";
  position:absolute;
  left:3px;
  top:1px;
  width:11px;
  height:6px;
  border-left:2px solid var(--gold);
  border-bottom:2px solid var(--gold);
  transform:rotate(-45deg);
}
.article-body ul.checklist label > span{
  flex:1;
  transition:color .2s ease, opacity .2s ease;
}
.article-body ul.checklist input[type="checkbox"]:checked ~ span,
.article-body ul.checklist label:has(input:checked) > span{
  color:var(--steel);
  text-decoration:line-through;
  text-decoration-color:rgba(201,169,97,0.5);
  text-decoration-thickness:1px;
  text-underline-offset:2px;
}
.article-body .checklist-hint{
  max-width:760px;
  margin:0 auto 28px;
  font-size:13px;
  line-height:1.5;
  color:var(--steel);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.article-body .checklist-reset{
  font:inherit;
  font-size:13px;
  color:var(--gold);
  background:none;
  border:none;
  border-bottom:1px solid rgba(201,169,97,0.4);
  padding:0 0 1px;
  cursor:pointer;
  transition:border-color .2s ease;
}
.article-body .checklist-reset:hover{border-bottom-color:var(--gold)}
.article-body .checklist-hint.is-empty{opacity:0.6}

/* Lists inside callouts — компактнее, чем в основном тексте */
.article-body .callout ul,
.article-body .callout ol{
  margin:8px 0 14px;
  padding-left:22px;
}
.article-body .callout ul:last-child,
.article-body .callout ol:last-child{margin-bottom:0}
.article-body .callout li{
  font-size:17px;
  line-height:1.55;
  margin-bottom:6px;
}
.article-body .callout li:last-child{margin-bottom:0}

/* Mock chat buttons — пример кнопок бота в диалоге */
.article-body .chat-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:18px;
  font-style:normal;
}
.article-body .chat-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 22px;
  font-size:14px;
  font-weight:500;
  font-style:normal;
  letter-spacing:0.02em;
  line-height:1;
  border:1px solid transparent;
  user-select:none;
  cursor:default;
}
.article-body .chat-btn--primary{
  background:var(--gold);
  color:var(--navy);
  border-color:var(--gold);
  box-shadow:0 6px 18px -8px rgba(201,169,97,0.5);
}
.article-body .chat-btn--ghost{
  background:transparent;
  color:var(--gold);
  border-color:rgba(201,169,97,0.55);
}
/* Mock link (плейсхолдер в мокапе диалога) — не реальная ссылка */
.article-body .mock-link{
  color:var(--gold);
  border-bottom:1px solid rgba(201,169,97,0.4);
  cursor:default;
  font-style:normal;
}
@media (max-width:520px){
  .article-body .chat-buttons{flex-direction:column;align-items:stretch;gap:10px}
  .article-body .chat-btn{width:100%;padding:12px 18px}
}

/* Callout variants */
.article-body .callout--key{
  background:linear-gradient(180deg, rgba(201,169,97,0.14) 0%, rgba(201,169,97,0.06) 100%);
  border-color:rgba(201,169,97,0.35);
  border-left:3px solid var(--gold);
  padding-left:32px;
}
.article-body .callout--key .callout-label{
  font-size:12px;
  letter-spacing:0.28em;
}
.article-body .callout--offer{
  background:linear-gradient(180deg, rgba(201,169,97,0.12) 0%, rgba(201,169,97,0.05) 100%);
  border-color:rgba(201,169,97,0.4);
}
.article-body .callout--offer a{
  color:var(--gold);
  border-bottom-color:var(--gold);
  font-weight:500;
  white-space:nowrap;
}
.article-body .callout--teaser{
  background:rgba(250,250,247,0.03);
  border-color:rgba(250,250,247,0.15);
}
.article-body .callout--teaser .callout-label{color:var(--steel)}
.article-body .callout--muted{
  background:transparent;
  border-color:rgba(250,250,247,0.1);
}
.article-body .callout--muted .callout-label{color:var(--steel)}
.article-body .callout--muted p{
  color:var(--steel);
  font-style:italic;
  font-weight:300;
  font-size:15px;
  line-height:1.6;
}

/* Тренажёр «Законно или нет?» — интерактивный блок под конкретную статью */
.article-body .trainer{
  max-width:760px;
  margin:36px auto 40px;
  padding:28px 30px 26px;
  background:linear-gradient(180deg, rgba(201,169,97,0.08) 0%, rgba(201,169,97,0.03) 100%);
  border:var(--hairline) solid rgba(201,169,97,0.28);
  border-left:2px solid var(--gold);
}
.trainer-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}
.trainer-label{
  text-transform:uppercase;
  letter-spacing:0.28em;
  font-size:11px;
  color:var(--gold);
  font-weight:500;
  flex-shrink:0;
}
.trainer-progress{
  display:flex;
  gap:6px;
  flex:1;
  align-items:center;
}
.trainer-dot{
  width:22px;
  height:2px;
  background:rgba(201,169,97,0.22);
  transition:background .2s ease;
}
.trainer-dot.is-current{background:var(--gold)}
.trainer-dot.is-done{background:rgba(201,169,97,0.55)}
.trainer-counter{
  font-size:12px;
  color:var(--steel);
  font-variant-numeric:tabular-nums;
  letter-spacing:0.04em;
  flex-shrink:0;
}
.trainer-question{
  font-size:17px;
  line-height:1.55;
  color:var(--pearl);
  margin:0 0 20px !important;
  max-width:none !important;
}
.trainer-choices{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.trainer-choice{
  flex:1 1 auto;
  min-width:120px;
  padding:12px 18px;
  font-size:14px;
  font-family:inherit;
  letter-spacing:0.02em;
  color:var(--pearl);
  background:rgba(11,27,61,0.4);
  border:var(--hairline) solid rgba(201,169,97,0.35);
  cursor:pointer;
  transition:color .18s ease, border-color .18s ease, background .18s ease, transform .1s ease;
}
.trainer-choice:hover:not(:disabled){
  color:var(--gold);
  border-color:var(--gold);
  background:rgba(201,169,97,0.09);
}
.trainer-choice:active:not(:disabled){transform:translateY(1px)}
.trainer-choice:disabled{cursor:default}
.trainer-choice.is-correct{
  color:var(--navy);
  background:var(--gold);
  border-color:var(--gold);
  font-weight:500;
}
.trainer-choice.is-wrong{
  color:#F2A6A6;
  border-color:rgba(232,120,120,0.5);
  background:rgba(232,120,120,0.08);
  text-decoration:line-through;
  text-decoration-color:rgba(232,120,120,0.5);
}
.trainer-feedback{
  margin-top:22px;
  padding-top:20px;
  border-top:var(--hairline) solid rgba(201,169,97,0.22);
  animation:trainerFadeIn .25s ease-out;
}
@keyframes trainerFadeIn{
  from{opacity:0;transform:translateY(4px)}
  to{opacity:1;transform:translateY(0)}
}
.trainer-verdict{
  display:inline-block;
  text-transform:uppercase;
  letter-spacing:0.24em;
  font-size:11px;
  font-weight:500;
  padding:4px 10px;
  border:var(--hairline) solid;
  margin-bottom:12px;
}
.trainer-verdict.is-correct{color:var(--gold);border-color:var(--gold)}
.trainer-verdict.is-wrong{color:#F2A6A6;border-color:rgba(232,120,120,0.55)}
.trainer-explain{
  font-size:16px !important;
  line-height:1.6 !important;
  color:var(--cream);
  margin:0 0 18px !important;
  max-width:none !important;
}
.trainer-next{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 22px;
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--navy);
  background:var(--gold);
  border:var(--hairline) solid var(--gold);
  font-family:inherit;
  font-weight:500;
  cursor:pointer;
  transition:background .2s ease, box-shadow .2s ease, transform .1s ease;
}
.trainer-next:hover{
  background:#d4b370;
  box-shadow:0 6px 18px -8px rgba(201,169,97,0.55);
  transform:translateY(-1px);
}
.trainer-next .arrow{transition:transform .25s ease}
.trainer-next:hover .arrow{transform:translateX(4px)}

.trainer-result{
  text-align:left;
  padding:4px 0;
}
.trainer-result .trainer-label{margin-bottom:14px;display:block}
.trainer-result-score{
  font-size:22px !important;
  line-height:1.35 !important;
  color:var(--pearl);
  margin:0 0 14px !important;
  font-weight:500;
  letter-spacing:-0.01em;
  max-width:none !important;
}
.trainer-result-score span[data-trainer-score],
.trainer-result-score span[data-trainer-total]{color:var(--gold)}
.trainer-result-score span[data-trainer-verdict-final]{
  color:var(--cream);
  font-style:italic;
  font-weight:300;
}
.trainer-result-hint{
  font-size:16px !important;
  line-height:1.6 !important;
  color:var(--cream);
  margin:0 0 22px !important;
  max-width:none !important;
}
.trainer-restart{
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--gold);
  background:transparent;
  border:var(--hairline) solid rgba(201,169,97,0.55);
  padding:10px 20px;
  font-family:inherit;
  cursor:pointer;
  transition:color .2s ease, border-color .2s ease, background .2s ease;
}
.trainer-restart:hover{
  border-color:var(--gold);
  background:rgba(201,169,97,0.08);
}
@media (max-width:520px){
  .article-body .trainer{padding:22px 20px 20px}
  .trainer-head{flex-wrap:wrap;gap:10px}
  .trainer-progress{order:3;flex:1 0 100%;margin-top:2px}
  .trainer-choice{flex:1 1 100%}
  .trainer-question{font-size:16px}
}

/* Chapter break — визуальный разделитель между частями большой статьи.
   Семантически это h2 (чтобы не ломать иерархию заголовков), поэтому
   перекрываем встроенные стили h2 из .article-body. */
.article-body h2.chapter-break{
  max-width:760px;
  margin:72px auto 40px;
  display:flex;
  align-items:center;
  gap:20px;
  scroll-margin-top:100px;
  font-size:12px;
  font-weight:400;
  line-height:1;
  letter-spacing:normal;
  color:inherit;
}
.article-body .chapter-break-line{
  flex:1;
  height:var(--hairline);
  background:linear-gradient(90deg, rgba(201,169,97,0) 0%, rgba(201,169,97,0.55) 50%, rgba(201,169,97,0) 100%);
}
.article-body .chapter-break-label{
  text-transform:uppercase;
  letter-spacing:0.32em;
  font-size:12px;
  color:var(--gold);
  font-weight:500;
  white-space:nowrap;
}
@media (max-width:520px){
  .article-body .chapter-break{margin:56px auto 32px;gap:14px}
  .article-body .chapter-break-label{font-size:11px;letter-spacing:0.28em}
}

/* Timeline — цепочка касаний после выдачи материала.
   Линия рисуется на каждом элементе кроме последнего, чтобы не торчать за нижним кружком. */
.article-body ul.timeline{
  list-style:none;
  padding-left:0;
  max-width:760px;
  margin:24px auto 32px;
}
.article-body ul.timeline li{
  position:relative;
  padding:2px 0 18px 40px;
  margin:0;
  font-size:17px;
  line-height:1.6;
  color:var(--pearl);
}
.article-body ul.timeline li::marker{content:none}
.article-body ul.timeline li::before{
  content:"";
  position:absolute;
  left:6px;
  top:4px;
  width:11px;
  height:11px;
  border:1.5px solid var(--gold);
  background:var(--navy);
  border-radius:50%;
  box-shadow:0 0 0 3px rgba(11,27,61,1);
  z-index:1;
}
.article-body ul.timeline li:not(:last-child)::after{
  content:"";
  position:absolute;
  left:11px;
  top:20px;
  bottom:-2px;
  width:1px;
  background:rgba(201,169,97,0.45);
}
.article-body ul.timeline li:last-child{padding-bottom:0}
.article-body .timeline-label{
  display:block;
  text-transform:uppercase;
  letter-spacing:0.22em;
  font-size:11px;
  color:var(--gold);
  font-weight:500;
  margin-bottom:4px;
}
@media (max-width:520px){
  .article-body ul.timeline li{padding-left:32px;font-size:16px}
  .article-body ul.timeline li::before{left:4px;top:4px;width:10px;height:10px}
  .article-body ul.timeline li:not(:last-child)::after{left:9px;top:19px}
}

/* Пронумерованные пункты с золотыми кружочками — ключевые точки в статье */
.article-body ol.numbered-points{
  list-style:none;
  padding-left:0;
  counter-reset:np;
  max-width:760px;
  margin:24px auto 32px;
}
.article-body ol.numbered-points li{
  position:relative;
  padding:6px 0 6px 62px;
  min-height:44px;
  counter-increment:np;
  font-size:17px;
  line-height:1.65;
  color:var(--pearl);
  margin-bottom:20px;
}
.article-body ol.numbered-points li:last-child{margin-bottom:0}
.article-body ol.numbered-points li::marker{content:none}
.article-body ol.numbered-points li::before{
  content:counter(np);
  position:absolute;
  left:0;
  top:2px;
  width:40px;
  height:40px;
  border:1.5px solid var(--gold);
  border-radius:50%;
  color:var(--gold);
  font-weight:500;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(201,169,97,0.06);
  font-variant-numeric:tabular-nums;
  letter-spacing:0.02em;
}
@media (max-width:520px){
  .article-body ol.numbered-points li{padding-left:50px;font-size:16px}
  .article-body ol.numbered-points li::before{width:34px;height:34px;font-size:14px}
}

/* Article CTA */
.article-cta{
  padding:80px 0;
  border-top:var(--hairline) solid rgba(250,250,247,0.12);
  background:var(--ink);
}
.article-cta-inner{
  max-width:760px;
  margin:0 auto;
  text-align:center;
}
.article-cta h2{
  font-weight:500;
  letter-spacing:-0.025em;
  line-height:1.1;
  font-size:clamp(28px,3vw,42px);
  color:var(--pearl);
  margin-bottom:20px;
}
.article-cta p{
  font-size:18px;
  line-height:1.55;
  color:var(--steel);
  margin-bottom:32px;
}
.article-cta-buttons{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

/* Footer — единая линия, как на главной: Инлунчик слева, всё справа */
footer.site-foot{
  background:var(--navy);
  border-top:var(--hairline) solid rgba(250,250,247,0.12);
  padding:56px 0 40px;
  color:var(--steel);
  font-size:13px;
}
.foot-inner{
  display:flex;
  align-items:center;
  gap:56px;
}
.foot-logo{flex-shrink:0}
footer.site-foot .logo-mark{
  height:96px;
  filter:
    drop-shadow(0 3px 5px rgba(0,0,0,0.55))
    drop-shadow(0 10px 26px rgba(0,0,0,0.5))
    drop-shadow(0 22px 44px rgba(0,0,0,0.3));
}
.foot-content{
  flex:1;
  display:flex;flex-direction:column;
  gap:18px;
}
.foot-links{display:flex;gap:28px;flex-wrap:wrap;align-items:center}
.foot-links a{
  color:var(--pearl);opacity:.75;
  transition:color .2s,opacity .2s;
  font-size:13px;letter-spacing:0.02em;
}
.foot-links a:hover{color:var(--gold);opacity:1}
.foot-legal-block{display:flex;flex-direction:column;gap:4px}
.foot-legal-info{color:#8A8378;font-size:12px;line-height:1.5;margin:0}
.foot-copyright{color:var(--steel);font-size:13px;margin-top:6px}
.foot-legal{
  color:var(--steel);font-size:13px;
  align-self:flex-start;
  border-bottom:1px solid rgba(95,107,133,0.4);
  transition:color .2s;
}
.foot-legal:hover{color:var(--gold)}
@media (max-width:720px){
  .foot-inner{flex-direction:column;align-items:center;text-align:center;gap:28px}
  .foot-content{align-items:center}
  .foot-links{justify-content:center;gap:16px 22px}
  .foot-legal-block{align-items:center}
  .foot-legal{align-self:center;font-size:12px}
  footer.site-foot .logo-mark{
    height:64px;
    filter:
      drop-shadow(0 1px 2px rgba(0,0,0,0.55))
      drop-shadow(0 6px 16px rgba(0,0,0,0.45))
      drop-shadow(0 12px 24px rgba(0,0,0,0.22));
  }
}

/* Nav toggle for mobile */
.nav-toggle{
  display:none;
  width:32px;height:32px;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:6px;
}
.nav-toggle span{
  display:block;
  height:1.5px;
  background:var(--pearl);
  transition:transform .3s ease, opacity .3s ease;
}
@media (max-width:880px){
  .nav-toggle{display:flex}
  nav.primary-nav.is-open ul{
    display:flex;
    position:fixed;
    top:64px;left:0;right:0;
    background:rgba(11,27,61,0.98);
    flex-direction:column;
    gap:0;
    padding:20px;
    border-bottom:var(--hairline) solid rgba(250,250,247,0.12);
  }
  nav.primary-nav.is-open ul li{padding:14px 0;border-top:var(--hairline) solid rgba(250,250,247,0.08)}
  nav.primary-nav.is-open ul li:first-child{border-top:none}
  nav.primary-nav.is-open a{font-size:16px}
}

/* Reading progress bar — тонкая золотая полоска сверху экрана */
.reading-progress{
  position:fixed;
  top:0;left:0;right:0;
  height:2px;
  background:transparent;
  z-index:100;
  pointer-events:none;
}
.reading-progress span{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg, var(--gold) 0%, #E5C97E 100%);
  transition:width .12s ease-out;
  box-shadow:0 0 8px rgba(201,169,97,0.4);
}

/* Table of contents — оглавление после лида */
.article-toc{
  max-width:760px;
  margin:36px auto 48px;
  padding:24px 28px;
  background:rgba(201,169,97,0.05);
  border:var(--hairline) solid rgba(201,169,97,0.22);
  border-left:2px solid var(--gold);
}
.article-toc-label{
  display:block;
  text-transform:uppercase;
  letter-spacing:0.24em;
  font-size:11px;
  color:var(--gold);
  font-weight:500;
  margin-bottom:14px;
}
.article-toc ol{
  list-style:none;
  padding:0;
  margin:0;
  columns:2;
  column-gap:32px;
}
.article-toc li{
  break-inside:avoid;
  margin-bottom:8px;
  font-size:15px;
  line-height:1.4;
  padding-left:26px;
  position:relative;
  counter-increment:toc-item;
}
.article-toc ol{counter-reset:toc-item}
.article-toc li::before{
  content:counter(toc-item, decimal-leading-zero);
  position:absolute;
  left:0;top:0.05em;
  font-size:11px;
  letter-spacing:0.1em;
  color:var(--gold);
  font-weight:500;
  font-variant-numeric:tabular-nums;
}
.article-toc a{
  color:var(--pearl);
  border-bottom:1px solid transparent;
  transition:color .18s ease, border-color .18s ease;
}
.article-toc a:hover{
  color:var(--gold);
  border-bottom-color:rgba(201,169,97,0.4);
}
@media (max-width:640px){
  .article-toc ol{columns:1}
  .article-toc{padding:20px 22px}
}

/* Плавный скролл к якорям с offset под фиксированную шапку */
.article-body h2[id]{scroll-margin-top:100px}
.article-body h3[id]{scroll-margin-top:100px}

/* Share block — кнопки поделиться перед подписью */
.share-block{
  max-width:760px;
  margin:56px auto 32px;
  padding:28px 0;
  border-top:var(--hairline) solid rgba(250,250,247,0.12);
  border-bottom:var(--hairline) solid rgba(250,250,247,0.12);
}
.share-label{
  display:block;
  text-transform:uppercase;
  letter-spacing:0.24em;
  font-size:11px;
  color:var(--steel);
  font-weight:500;
  margin-bottom:16px;
}
.share-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.share-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--pearl);
  background:transparent;
  border:var(--hairline) solid rgba(250,250,247,0.2);
  font-family:inherit;
  cursor:pointer;
  transition:color .2s ease, border-color .2s ease, background .2s ease;
}
.share-btn:hover{
  color:var(--gold);
  border-color:var(--gold);
  background:rgba(201,169,97,0.06);
}
.share-btn svg{flex-shrink:0}
.share-btn.is-copied{
  color:var(--gold);
  border-color:var(--gold);
  background:rgba(201,169,97,0.1);
}
.share-btn--copy{font:inherit}

/* Золотой вводный абзац — открывает список или карточную сетку */
.article-body p.gold-intro{
  color:var(--gold);
  font-weight:500;
}

/* Pull-lead — выделенная фраза, открывающая мини-мысль внутри раздела */
.article-body p.pull-lead{
  font-size:20px;
  font-weight:500;
  line-height:1.4;
  color:var(--pearl);
  letter-spacing:-0.008em;
  margin:36px auto 20px;
}
@media (max-width:520px){
  .article-body p.pull-lead{font-size:18px}
}

/* Форматы лид-магнита — карточная сетка после «Что работает лучше всего» */
.article-body .format-grid{
  max-width:760px;
  margin:24px auto 32px;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
  counter-reset:fmt;
}
.article-body .format-card{
  position:relative;
  background:rgba(250,250,247,0.03);
  border:var(--hairline) solid rgba(201,169,97,0.22);
  border-left:2px solid rgba(201,169,97,0.5);
  padding:24px 26px 22px;
  transition:background .25s ease, border-color .25s ease;
  counter-increment:fmt;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.article-body .format-card:hover{
  background:rgba(201,169,97,0.05);
  border-color:rgba(201,169,97,0.4);
  border-left-color:var(--gold);
}
.article-body .format-card::before{
  content:counter(fmt, decimal-leading-zero);
  font-size:11px;
  letter-spacing:0.28em;
  color:var(--gold);
  font-weight:500;
  font-variant-numeric:tabular-nums;
  display:block;
  margin-bottom:2px;
}
.article-body .format-card h3{
  font-weight:500;
  font-size:17px;
  line-height:1.3;
  color:var(--pearl);
  letter-spacing:-0.01em;
  margin:0;
  max-width:none;
}
.article-body .format-card p{
  font-size:15px;
  line-height:1.6;
  color:var(--pearl);
  opacity:.88;
  margin:0;
  max-width:none;
}
@media (max-width:640px){
  .article-body .format-grid{grid-template-columns:1fr;gap:12px}
  .article-body .format-card{padding:22px 22px 20px}
}

/* Список с «золотым прочерком» — жирный подзаголовок в золоте + текст описания.
   Используется и внутри ниш, и в основном теле статьи (метрики, признаки). */
.article-body ul.dash-list{
  max-width:760px;
  list-style:none;
  padding:0;
  margin:14px auto 24px;
}
.article-body ul.dash-list > li{
  padding:16px 0 16px 26px;
  border-top:var(--hairline) solid rgba(201,169,97,0.18);
  position:relative;
  font-size:16px;
  line-height:1.6;
  color:var(--pearl);
  margin:0;
}
.article-body ul.dash-list > li:first-child{border-top:none;padding-top:8px}
.article-body ul.dash-list > li:last-child{padding-bottom:8px}
.article-body ul.dash-list > li::marker{content:none}
.article-body ul.dash-list > li::before{
  content:"";
  position:absolute;
  left:0;
  top:28px;
  width:14px;
  height:1px;
  background:var(--gold);
}
.article-body ul.dash-list > li:first-child::before{top:20px}
.article-body ul.dash-list .dash-title{
  display:block;
  color:var(--gold);
  font-weight:500;
  font-size:16px;
  letter-spacing:-0.005em;
  margin-bottom:6px;
}
.article-body ul.dash-list p{
  margin:0 0 8px;
  font-size:15px;
  line-height:1.6;
  max-width:none;
  opacity:.92;
}
.article-body ul.dash-list p:last-child{margin-bottom:0}
/* Внутри ниши — компактнее, без бокового auto-центрирования */
.article-body .niche-body ul.dash-list{
  max-width:none;
  margin:6px 0 12px;
}
.article-body .niche-body ul.dash-list > li{font-size:15px}
.article-body .niche-body ul.dash-list .dash-title{font-size:15px}
/* Постскриптум-нотка «что работает хуже» — компактно, курсивом стил-серым */
.article-body .niche-note{
  margin:14px 0 0;
  padding:12px 0 0;
  border-top:var(--hairline) solid rgba(201,169,97,0.18);
  font-size:14px;
  line-height:1.6;
  color:var(--steel);
  font-style:italic;
  font-weight:300;
}
.article-body .niche-note strong{
  color:var(--gold);
  font-style:normal;
  font-weight:500;
  margin-right:6px;
}
@media (max-width:520px){
  .article-body ul.dash-list > li{padding-left:22px}
  .article-body ul.dash-list > li::before{width:12px}
}

/* Прайс — горизонтальные карточки: слева название и описание, справа цена */
.article-body .price-list{
  max-width:760px;
  margin:24px auto 20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.article-body .price-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:28px;
  align-items:center;
  padding:20px 26px;
  background:rgba(250,250,247,0.03);
  border:var(--hairline) solid rgba(201,169,97,0.22);
  border-left:2px solid rgba(201,169,97,0.5);
  transition:background .2s ease, border-color .2s ease;
}
.article-body .price-row:hover{
  background:rgba(201,169,97,0.05);
  border-left-color:var(--gold);
}
.article-body .price-row--emph{
  background:linear-gradient(180deg, rgba(201,169,97,0.09) 0%, rgba(201,169,97,0.04) 100%);
  border-color:rgba(201,169,97,0.4);
  border-left-color:var(--gold);
}
.article-body .price-info{min-width:0}
.article-body .price-title{
  font-weight:500;
  font-size:16px;
  color:var(--pearl);
  letter-spacing:-0.005em;
  line-height:1.3;
  margin-bottom:5px;
}
.article-body .price-row .price-desc{
  margin:0;
  font-size:14px;
  line-height:1.55;
  color:var(--steel);
  max-width:none;
}
.article-body .price-side{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  flex-shrink:0;
  white-space:nowrap;
}
.article-body .price-from{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:0.28em;
  color:var(--steel);
  font-weight:500;
}
.article-body .price-num{
  font-size:22px;
  font-weight:500;
  color:var(--gold);
  font-variant-numeric:tabular-nums;
  letter-spacing:-0.01em;
  line-height:1;
}
.article-body .price-note{
  max-width:760px;
  margin:0 auto 24px;
  font-size:14px;
  line-height:1.6;
  color:var(--steel);
  font-style:italic;
  font-weight:300;
  padding-left:26px;
  position:relative;
}
.article-body .price-note::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  width:14px;
  height:1px;
  background:rgba(201,169,97,0.5);
}
@media (max-width:520px){
  .article-body .price-row{
    grid-template-columns:1fr;
    gap:12px;
    padding:18px 22px;
  }
  .article-body .price-side{
    flex-direction:row;
    align-items:baseline;
    gap:10px;
  }
  .article-body .price-num{font-size:20px}
}

/* Сценарии — два варианта «если так / если иначе» с золотым лейблом */
.article-body .scenario-list{
  max-width:760px;
  margin:20px auto 28px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.article-body .scenario{
  padding:22px 26px;
  background:rgba(250,250,247,0.03);
  border:var(--hairline) solid rgba(201,169,97,0.22);
  border-left:2px solid var(--gold);
  transition:background .2s ease;
}
.article-body .scenario:hover{background:rgba(201,169,97,0.04)}
.article-body .scenario-label{
  display:block;
  text-transform:uppercase;
  letter-spacing:0.22em;
  font-size:11px;
  color:var(--gold);
  font-weight:500;
  margin-bottom:12px;
}
.article-body .scenario p{
  margin:0 0 10px;
  max-width:none;
  font-size:16px;
  line-height:1.65;
}
.article-body .scenario p:last-child{margin-bottom:0}
@media (max-width:520px){
  .article-body .scenario{padding:20px 22px}
}

/* Ниши — раскрывающиеся блоки с примерами материалов под конкретную сферу */
.article-body details.niche{
  max-width:760px;
  margin:14px auto;
  background:rgba(250,250,247,0.03);
  border:var(--hairline) solid rgba(201,169,97,0.22);
  border-left:2px solid rgba(201,169,97,0.5);
  transition:border-color .25s ease, background .25s ease;
}
.article-body details.niche[open]{
  border-color:rgba(201,169,97,0.4);
  border-left-color:var(--gold);
  background:rgba(201,169,97,0.05);
}
.article-body details.niche > summary{
  padding:18px 26px;
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  gap:16px;
  font-size:17px;
  font-weight:500;
  line-height:1.35;
  color:var(--pearl);
  transition:color .2s ease;
  user-select:none;
}
.article-body details.niche > summary::-webkit-details-marker{display:none}
.article-body details.niche > summary::marker{content:""}
.article-body details.niche > summary::after{
  content:"";
  margin-left:auto;
  width:9px;height:9px;
  border-right:1.5px solid var(--gold);
  border-bottom:1.5px solid var(--gold);
  transform:rotate(45deg);
  transition:transform .25s ease;
  flex-shrink:0;
}
.article-body details.niche[open] > summary::after{transform:rotate(-135deg)}
.article-body details.niche > summary:hover{color:var(--gold)}
.article-body .niche-body{padding:2px 28px 22px}
.article-body .niche-body p{
  max-width:none;
  margin:0 0 14px;
  font-size:16px;
  line-height:1.65;
}
.article-body .niche-body p:last-child{margin-bottom:0}
.article-body .niche-body em{
  font-style:italic;
  font-weight:400;
  color:var(--steel);
}
@media (max-width:520px){
  .article-body details.niche > summary{padding:16px 20px;font-size:15px}
  .article-body .niche-body{padding:2px 20px 20px}
}

/* Author byline — короткая подпись автора */
.author-byline{
  max-width:760px;
  margin:0 auto 32px;
  padding:20px 24px;
  background:rgba(250,250,247,0.03);
  border-left:2px solid rgba(201,169,97,0.5);
}
.author-byline p{
  font-size:15px;
  line-height:1.6;
  color:var(--steel);
  margin:0;
}
.author-byline strong{
  color:var(--pearl);
  font-weight:500;
}

