/* Newcareer Blog — Web Lab-inspired journal styling.
   Белый фон, сериф Prata в заголовках, sans Inter в тексте, минимализм,
   светлые тёплые акценты под бренд (без сильного "тёплого" фона). */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f3ee;        /* очень мягкий cream для cover-карточек */
  --ink: #1a1612;
  --ink-soft: #4a4239;
  --muted: #8a7e72;
  --line: #ebe5dc;
  --accent: #c98b6b;          /* терракот — тёплый, без агрессии */
  --accent-hover: #b67454;
  --accent-soft: #f0d8c8;
  --pill-fill: #1a1612;
  --pill-ink: #ffffff;
  --shadow-sm: 0 1px 0 rgba(26,22,18,0.04), 0 4px 14px rgba(26,22,18,0.04);
  --shadow-md: 0 8px 30px rgba(26,22,18,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .15s, border-color .15s; }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

h1, h2, h3 {
  font-family: 'Prata', Georgia, serif;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 1.4em; }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-family: 'Inter'; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--ink-soft); }

ul, ol { padding-left: 1.4em; }
li { margin: 0.3em 0; }

blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  padding: 18px 22px;
  margin: 1.5em 0;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
  word-break: break-word;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote a { overflow-wrap: anywhere; word-break: break-word; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Eyebrow / small label --- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

/* --- Header --- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  border: none;
}
.brand:hover { color: var(--ink); border: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: 'Prata', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
  align-items: center;
}
.nav a { color: var(--ink-soft); border: none; }
.nav a:hover { color: var(--accent); border: none; }
/* Внутри nav pill сохраняет белый текст (специфичность .nav a выше чем .pill) */
.nav a.pill { color: var(--pill-ink); }
.nav a.pill:hover { color: var(--pill-ink); }

/* Pill button — для CTA в навигации и hero */
.pill {
  display: inline-block;
  padding: 10px 20px;
  background: var(--pill-fill);
  color: var(--pill-ink);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  transition: opacity .15s;
}
.pill:hover { color: var(--pill-ink); opacity: 0.85; border: none; }
.pill.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.pill.outline:hover { background: var(--ink); color: var(--bg); }
.pill.accent {
  background: var(--accent);
  color: var(--bg);
}
.pill.accent:hover { background: var(--accent-hover); opacity: 1; }

/* --- Hero --- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Hero visual block: иллюстрация-маскоты с edge-fade (магазинный стиль).
   mock-window парит сверху-сбоку, как стикер. */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.hero-visual .cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Edge-fade — тот же градиент, что на /about-портретах */
  -webkit-mask-image: radial-gradient(ellipse at center,
      rgba(0,0,0,1) 56%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0) 96%);
          mask-image: radial-gradient(ellipse at center,
      rgba(0,0,0,1) 56%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0) 96%);
}
.mock-window {
  position: absolute;
  right: -4%;
  bottom: 6%;
  width: 62%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px 20px;
  box-shadow: 0 12px 30px rgba(26,22,18,0.12);
}
@media (max-width: 860px) {
  .hero-visual { aspect-ratio: 5/4; }
  .mock-window { right: 4%; bottom: 4%; width: 68%; }
}
.mock-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.mock-tabs span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.mock-tabs span:first-child { background: #e07a5f; }
.mock-tabs span:nth-child(2) { background: #ebc06a; }
.mock-tabs span:nth-child(3) { background: #99b89c; }
.mock-title {
  font-family: 'Prata', serif;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}
.mock-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Sections --- */
section.block { padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
section.block:first-of-type { border-top: none; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }

/* --- Story grid (used on home for editorial picks / articles) --- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; } }
.story {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  transition: transform .15s, box-shadow .15s;
  cursor: default;
}
a.story { cursor: pointer; }
a.story:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  border-color: var(--line);
}
/* COVER: большой цветной блок, в нём — белая «карточка» с категорией + сериф-заголовком */
.story-cover {
  background: var(--bg-soft);
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 28px;
  overflow: hidden;
}
.story-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* "Faded edge" — иллюстрация растворяется в фоне карточки.
     Эффект «премиум-журнал» (та же техника, что на /about). */
  -webkit-mask-image: radial-gradient(ellipse at center,
      rgba(0,0,0,1) 55%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0) 96%);
          mask-image: radial-gradient(ellipse at center,
      rgba(0,0,0,1) 55%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0) 96%);
  background: transparent;
}
.cover-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 18px 16px;
  box-shadow: 0 2px 0 rgba(26,22,18,0.04);
  text-align: left;
  min-width: 58%;
  max-width: 78%;
}
.cover-card small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2px;
  font-weight: 600;
}
.cover-card strong {
  font-family: 'Prata', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
}
.story-body { padding: 22px 24px 26px; }
.story-body small {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.story-body h3 {
  font-family: 'Prata', serif;
  font-size: 21px;
  line-height: 1.25;
  margin: 8px 0 8px;
}
.story-body p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* --- Articles list (archive) --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  margin-top: 60px;
  color: var(--ink-soft);
}
.site-footer h4 {
  color: var(--ink);
  margin: 0 0 12px;
}
.site-footer a { color: var(--ink); border-bottom-color: var(--line); }
.site-footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
  gap: 36px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer p { margin: 0 0 8px; font-size: 14px; }
.site-footer .humor {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

/* --- Article body (для /articles/*) --- */
article.post {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px var(--gutter);
}
article.post h1 { margin-bottom: 12px; font-size: clamp(30px, 4.5vw, 44px); }
article.post .post-meta { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* Длинные URL-ссылки (advcake deeplink с query-string) ломали layout.
   Переносим по символам когда нужно — поверх контейнера не вылезает. */
article.post a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
article.post img {
  max-width: 100%;
  height: auto;
  /* Тот же «магазинный» эффект: волнистые fading-края + текст обтекает.
     Нечётные картинки уходят вправо, чётные — влево. Чередуем через :nth-of-type. */
  -webkit-mask-image: radial-gradient(ellipse at center,
      rgba(0,0,0,1) 52%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0) 94%);
          mask-image: radial-gradient(ellipse at center,
      rgba(0,0,0,1) 52%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0) 94%);
  background: transparent;
  width: clamp(180px, 38%, 320px);
  height: auto;
  margin: 4px 0 8px 24px;
  float: right;
  shape-outside: ellipse(48% 50% at 50% 50%);
}
/* Чётные иллюстрации в статье — слева (визуальный зигзаг по чтению) */
article.post p:nth-of-type(even) > img:only-child,
article.post img.left {
  float: left;
  margin: 4px 24px 8px 0;
}
@media (max-width: 640px) {
  article.post img {
    float: none;
    width: 80%;
    display: block;
    margin: 16px auto;
  }
}
article.post .brand-duo {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 44px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* Ad disclosure (ФЗ-38 / 274-ФЗ) — пометка рекламы под H1 */
article.post .ad-disclosure {
  background: #fbf6ec;
  border: 1px solid #e8dcc0;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 16px 0 24px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b5f4a;
}
article.post .ad-disclosure strong {
  color: #2a2218;
  margin-right: 4px;
}

/* Consent-чекбокс на lead-форме (152-ФЗ) */
.lead-form .consent-field {
  margin: 16px 0 8px;
}
.lead-form .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}
.lead-form .consent-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Key Takeaways — hero summary block после post-meta */
article.post .key-takeaways {
  background: var(--accent-soft, #f0d8c8);
  border-radius: var(--radius);
  padding: 22px 26px 20px;
  margin: 28px 0 32px;
  border-left: 4px solid var(--accent, #b85c3b);
}
article.post .key-takeaways .kt-title {
  font-family: 'Prata', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--ink);
}
article.post .key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
article.post .key-takeaways li {
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
article.post .key-takeaways li strong {
  font-weight: 600;
  color: var(--ink);
}

/* TOC — оглавление статьи */
article.post .article-toc {
  background: var(--bg-soft, #f4ede5);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin: 0 0 32px;
  font-size: 15px;
}
article.post .article-toc .toc-title {
  font-family: 'Prata', Georgia, serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 10px;
}
article.post .article-toc ol {
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
}
article.post .article-toc li {
  padding: 3px 0;
}
article.post .article-toc a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
article.post .article-toc a:hover {
  border-bottom-color: var(--accent);
}

/* figure + figcaption обёртка для inline-картинок */
article.post .article-figure {
  margin: 24px 0;
}
article.post .article-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  line-height: 1.5;
}

/* --- Guide announce page --- */
.guide-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(32px, 5vw, 56px);
  background: var(--bg);
}
.guide-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 880px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-preview h2 {
  font-family: 'Inter';
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0;
}
.guide-toc {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 12px 0 20px;
}
.guide-toc ol { margin: 0; padding-left: 1.2em; }
.guide-toc li { margin: 6px 0; color: var(--ink-soft); }
.guide-excerpt {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.guide-excerpt blockquote {
  border-left-color: var(--muted);
  background: transparent;
  padding-left: 16px;
  margin: 0;
}

/* --- Lead form (только на guide-страницах) --- */
.lead-form {
  background: var(--bg);
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 20px;
}
.lead-form h3 {
  font-family: 'Inter';
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
}
.lead-form .field { margin: 14px 0; }
.lead-form label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.lead-form input[type=email],
.lead-form input[type=text] {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.channel-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.channel-picker label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
  font-size: 13px;
  transition: all .15s;
  margin: 0;
  color: var(--ink-soft);
}
.channel-picker input[type=radio] { display: none; }
.channel-picker label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.lead-form button {
  display: block;
  width: 100%;
  padding: 14px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--bg);
  background: var(--ink);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity .15s;
}
.lead-form button:hover { opacity: 0.88; }
.lead-form .legal {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}
.lead-form .legal a { color: var(--muted); }

/* --- /about: семейный дуэт с обтекаемыми портретами --- */
.about-page .duo-portrait {
  width: clamp(110px, 16vw, 150px);
  height: auto;
  /* Волнистая размытая граница, растворяющаяся в фоне */
  -webkit-mask-image: radial-gradient(ellipse at center,
      rgba(0,0,0,1) 50%, rgba(0,0,0,0.55) 72%, rgba(0,0,0,0) 92%);
          mask-image: radial-gradient(ellipse at center,
      rgba(0,0,0,1) 50%, rgba(0,0,0,0.55) 72%, rgba(0,0,0,0) 92%);
  background: transparent;
}
.about-page .duo-portrait.left {
  float: left;
  margin: 0 18px 4px -18px;       /* слева, торчит чуть наружу */
}
.about-page .duo-portrait.right {
  float: right;
  margin: 12px -18px 4px 18px;    /* чуть ниже */
}
@media (max-width: 640px) {
  .about-page .duo-portrait.left,
  .about-page .duo-portrait.right {
    float: none;
    display: block;
    margin: 12px auto;
    width: 55%;
  }
}

/* --- GUIDE FULL PAGE --- */
/* Простой одноколоночный layout. TOC сверху (нумерованный список),
   текст и картинки центрированы, ничего не вылезает. */
article.guide {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  overflow-wrap: anywhere;
}
.guide-body { max-width: 100%; }
.guide-body > p:first-of-type {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}
.guide-body h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
}
.guide-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1em; }
.guide-body h3 { font-size: 20px; margin-top: 1.4em; }
.guide-body p, .guide-body li { font-size: 17px; line-height: 1.7; color: var(--ink); }

/* Картинки гайда — не на всю ширину, центрированы, ограничены по высоте */
.guide-body p > img,
.guide-body img.fig {
  display: block;
  max-width: 560px;
  width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
/* картинка как единственный child <p> — убираем bottom-margin у <p>, чтобы не плавала */
.guide-body p:has(> img:only-child) { margin: 0; }

/* TOC сверху, нумерованный, в плашке */
.guide-toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 20px;
  margin: 0 0 36px;
  font-size: 14px;
}
.guide-toc h4 {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
}
.guide-toc ol {
  margin: 0;
  padding-left: 22px;
  counter-reset: toc;
  list-style: none;
}
.guide-toc li {
  counter-increment: toc;
  margin: 6px 0;
  line-height: 1.45;
  position: relative;
}
.guide-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: -22px;
  top: 1px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.guide-toc a {
  color: var(--ink-soft);
  border: none;
}
.guide-toc a:hover { color: var(--accent); }

/* Чистый текстовый title-блок (без картинок) — PDF/book look. */
.guide-title {
  margin: 0 0 36px;
  padding: 36px 0 24px;
  border-bottom: 2px solid var(--ink);
}
.guide-title .kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.guide-title h1 {
  margin: 0 0 14px;
  font-family: 'Prata', Georgia, serif;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.15;
  font-weight: 400;
}
.guide-title .meta {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.guide-title .meta span { margin-right: 12px; }
.guide-title .meta span::before { content: "·"; margin-right: 12px; color: var(--line); }
.guide-title .meta span:first-child::before { content: ""; margin: 0; }

/* Буквица в самом первом параграфе — придаёт «журнальное» ощущение */
.guide-body > p:first-of-type::first-letter {
  font-family: 'Prata', Georgia, serif;
  font-size: 3.2em;
  float: left;
  line-height: 0.9;
  margin: 6px 8px 0 0;
  color: var(--accent);
}

/* Callout — тёплая выделенная плашка */
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 22px 0;
}
.callout strong { display: block; margin-bottom: 4px; color: var(--accent-hover); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.callout p:last-child { margin-bottom: 0; }

/* Чек-лист — список с зелёными галочками */
.checklist { list-style: none; padding-left: 0; margin: 22px 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  background: #a7c4ad;
  color: #1a1612;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

/* Numbered step block */
.step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--bg-soft);
  padding: 22px 24px;
  border-radius: 12px;
  margin: 18px 0;
}
.step .num {
  font-family: 'Prata', serif;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}
.step h3 { margin: 0 0 6px; font-family: 'Inter'; font-weight: 700; font-size: 18px; }
.step p:last-child { margin-bottom: 0; }

/* Tip — мягкая подсказка */
.tip {
  background: #f0e9d8;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
}
.tip::before {
  content: "💡";
  font-size: 22px;
  line-height: 1.2;
}
.tip p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.tip strong { color: var(--ink); }

/* Сравнение направлений / опций */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 680px) { .compare { grid-template-columns: 1fr; } }
.compare > div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.compare h4 { margin: 0 0 8px; font-family: 'Prata'; font-weight: 400; font-size: 18px; text-transform: none; letter-spacing: normal; color: var(--ink); }

/* Thank-you bar over guide */
.thanks-bar {
  background: #a7c4ad;
  color: #1a1612;
  padding: 14px 22px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 15px;
}
.thanks-bar strong { font-weight: 700; }

/* CTA в конце гайда — тёплый брендовый peachy-cream, не "траурный" */
.guide-end-cta {
  background: var(--accent-soft);     /* #f0d8c8 — мягкий терракот */
  color: var(--ink);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  margin: 40px 0 0;
  text-align: center;
  border: 1px solid #e7c6b1;          /* чуть подсвеченная граница */
}
.guide-end-cta h3 {
  color: var(--ink);
  font-family: 'Prata', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 28px);
  margin: 0 0 10px;
}
.guide-end-cta p { color: var(--ink-soft); margin: 0 0 20px; }
.guide-end-cta a.pill {
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(201, 139, 107, 0.25);
}
.guide-end-cta a.pill:hover { background: var(--accent-hover); }

/* --- Admin (минимальный) --- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.admin-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-table tr:last-child td { border-bottom: none; }

/* --- Story cover colour variants --- */
.story-cover.green { background: #9ec0a4; }
.story-cover.blue  { background: #c3d8e6; }
.story-cover.beige { background: #d9c9b3; }
.story-cover.cream { background: #ece5d9; }

/* «Рубрики» — поменьше высота cover, прямоугольнее, без сильной грид-карточки */
.rubric-grid .story-cover { aspect-ratio: 16/9; padding: 22px; }
.rubric-grid .cover-card { padding: 12px 16px; min-width: 52%; max-width: 72%; }
.rubric-grid .cover-card strong { font-family: 'Inter'; font-weight: 700; font-size: 16px; }
.rubric-grid .cover-card small { font-size: 11px; }
.rubric-grid .story-body { padding: 16px 22px 22px; }
.rubric-grid .story-body p { color: var(--accent-hover); font-size: 14px; }

/* --- Pins preview block: чёрная декоративная секция --- */
.pins-section {
  background: #1a1612;
  color: #fff;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: none;
}
.pins-section .eyebrow { color: #c98b6b; }
.pins-section h2 { color: #fff; }
.pins-section .lead { color: #b5ada3; }
.pin-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
@media (max-width: 900px) { .pin-row { grid-template-columns: repeat(2, 1fr); } }
.pin {
  background: var(--bg);
  border-radius: 12px;
  padding: 18px 20px;
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}
.pin.beige { background: #ece5d9; }
.pin.green { background: #a7c4ad; }
.pin.blue { background: #c1d8e8; }
.pin.yellow { background: #ecd58b; }
.pin small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.pin strong {
  font-family: 'Prata', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
}
.pin .wl {
  align-self: flex-start;
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

/* === Quiz CTA в подвале статей (after Источники) === */
.quiz-cta-article {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #f3e6d8 100%);
  border-left: 4px solid var(--accent);
  padding: 28px 32px;
  margin: 32px 0 8px;
  border-radius: var(--radius);
}
.quiz-cta-article h3 {
  margin: 0 0 10px;
  font-family: 'Prata', Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.quiz-cta-article p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}
.quiz-cta-article .pill {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  font-size: 15px;
  transition: background .15s, transform .1s;
}
.quiz-cta-article .pill:hover {
  background: var(--accent-hover);
  color: #fff;
  border: none;
  transform: translateY(-1px);
}

/* === Sticky mobile CTA для статей === */
.sticky-quiz-cta {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 50;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  box-shadow: 0 6px 20px rgba(26,22,18,0.22);
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.sticky-quiz-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  border: none;
  transform: translateY(-2px);
}
@media (min-width: 1024px) {
  .sticky-quiz-cta { bottom: 24px; right: 24px; padding: 13px 20px; font-size: 15px; }
}

/* === Hero trust-line под главной (#7) === */
.hero-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-trust-line span { display: inline-flex; align-items: center; gap: 4px; }
.hero-trust-line .dot { color: var(--accent); }

/* Иконки мессенджеров в подвале — монохром в тёплом акценте */
.foot-soc { display: flex; align-items: center; gap: 9px; }
.foot-soc a { border-bottom: none; }
.foot-ico { width: 17px; height: 17px; flex: 0 0 auto; color: var(--accent); }
