/* Блог «Новогоднее чудо». Собрано blog-paket.mjs - правки вносить в scripts/blog-paket-assets/blog.css и пересобирать. */
@font-face{font-family:"Cygre";src:url("https://cdn.novogodnee-chudo.ru/fonts/cyrge/Cygre-Light.woff2") format("woff2"),url("https://cdn.novogodnee-chudo.ru/fonts/cyrge/Cygre-Light.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Cygre";src:url("https://cdn.novogodnee-chudo.ru/fonts/cyrge/Cygre-Regular.woff2") format("woff2"),url("https://cdn.novogodnee-chudo.ru/fonts/cyrge/Cygre-Regular.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Cygre";src:url("https://cdn.novogodnee-chudo.ru/fonts/cyrge/Cygre-Medium.woff2") format("woff2"),url("https://cdn.novogodnee-chudo.ru/fonts/cyrge/Cygre-Medium.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Cygre";src:url("https://cdn.novogodnee-chudo.ru/fonts/cyrge/Cygre-SemiBold.woff2") format("woff2"),url("https://cdn.novogodnee-chudo.ru/fonts/cyrge/Cygre-SemiBold.woff") format("woff");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Arodora Pro";src:url("https://cdn.novogodnee-chudo.ru/fonts/arodora_pro/ArodoraPro-Light.woff2") format("woff2"),url("https://cdn.novogodnee-chudo.ru/fonts/arodora_pro/ArodoraPro-Light.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}
/* Вид по сайту: шоколадные шапка и подвал, золотые кнопки-пилюли, заголовки Arodora Pro, текст Cygre
   (business/assets/brand-guidelines.md). Тело статьи - на светлом кремовом: длинный текст на тёмном читать тяжело. */
:root {
  --choc-900: #1D0C09;
  --choc-800: #26120C;
  --choc-700: #2E1811;
  --cream: #FAF1E3;
  --gold: #FBDCB3;
  --gold-base: #F8CD8F;
  --paper: #F7F1EC;
  --paper-2: #FFFAF4;
  --line: #E8D9C6;
  --brown-900: #582F00;
  --brown-700: #6E5535;
  --brown-500: #81643F;
  --red: #971710;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--brown-900);
  font: 400 17px/1.65 Cygre, Arial, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: #6d0f0a; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold-base); outline-offset: 2px; }
strong { font-weight: 600; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap--wide { max-width: 1200px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; }

/* шапка */
.hdr { background: var(--choc-900); color: var(--cream); }
.hdr__in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.hdr__logo img { height: 48px; width: auto; }
.hdr__nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; font-weight: 500; }
.hdr__nav a { color: var(--cream); text-decoration: none; opacity: .9; }
.hdr__nav a:hover { color: var(--gold); }
.hdr__nav a[aria-current] { color: var(--gold); opacity: 1; }
.hdr__cta { margin-left: auto; }

/* кнопки как на сайте: золотой градиент, чёрный текст */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font: 600 16px/1.2 Cygre, Arial, sans-serif; text-decoration: none; text-align: center;
}
.btn--gold { background-color: var(--gold-base); background-image: linear-gradient(90deg, #DBBB8F 0%, #FFEFD5 100%); color: #000; }
.btn--gold:hover { color: #000; filter: brightness(1.05); }
.hdr__cta { min-height: 40px; padding: 9px 16px; font-size: 14px; }

/* первый экран статьи и списка */
.hero { background: radial-gradient(120% 140% at 50% 0%, #3c1f15 0%, var(--choc-900) 70%); color: var(--cream); padding: 24px 0 32px; }
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; color: var(--gold); }
.crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .7; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { opacity: .75; }
.chip { display: inline-block; margin-bottom: 12px; padding: 3px 12px; border: 1px solid rgba(251, 220, 179, .5); border-radius: 999px; font-size: 13px; color: var(--gold); }
.chip--light { margin-bottom: 0; color: var(--red); border-color: #E5B8B2; align-self: flex-start; }
h1 { margin: 0 0 14px; font: 300 34px/1.15 "Arodora Pro", Georgia, serif; color: var(--cream); }
.meta { margin: 0; font-size: 14px; color: rgba(250, 241, 227, .8); }
.meta time { color: var(--gold); }
.meta__i { white-space: nowrap; }
/* на телефоне название статьи в цепочке повторяет H1 строкой ниже - оставляем «Главная › Блог» */
@media (max-width: 640px) { .crumbs [aria-current] { display: none; } }
.hero__lead { margin: 0; max-width: 720px; font-size: 18px; color: rgba(250, 241, 227, .9); }

/* тело статьи */
.post__b { padding-top: 28px; padding-bottom: 40px; }
.lead p:first-child { font-size: 19px; line-height: 1.6; }
h2 { margin: 48px 0 16px; font: 300 28px/1.2 "Arodora Pro", Georgia, serif; color: var(--brown-900); scroll-margin-top: 16px; }
h3 { margin: 30px 0 10px; font: 600 20px/1.3 Cygre, Arial, sans-serif; color: var(--brown-900); scroll-margin-top: 16px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--brown-500); }
.cover { margin: 24px 0; }
.cover img, .fig img { border-radius: var(--radius); }
.fig { margin: 28px 0; }
figcaption { margin-top: 8px; font-size: 14px; color: var(--brown-500); }

/* «Что вы узнаете» и оглавление */
.intro { display: grid; gap: 16px; margin: 24px 0 8px; }
.learn, .toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.learn ul, .toc ol { margin: 0; }
.learn li:last-child, .toc li:last-child { margin-bottom: 0; }
.box-t { margin: 0 0 10px; font-weight: 600; }
.toc a { color: var(--brown-700); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }

/* плашка «Коротко» (TL;DR) */
.tldr { margin: 0 0 20px; padding: 14px 18px; background: #FBEBD3; border-radius: 14px; }
.tldr__label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.tldr p { margin: 0; }

/* шаги */
.block-t { margin: 28px 0 12px; font-weight: 600; font-size: 18px; }
.block-note { margin: 8px 0 0; font-size: 14px; color: var(--brown-500); }
.steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: st; }
.steps li { position: relative; margin-bottom: 10px; padding: 14px 16px 14px 60px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; counter-increment: st; }
.steps li::before {
  content: counter(st); position: absolute; left: 14px; top: 13px;
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EAA173, #BF8353); color: #fff; font-weight: 600;
}
.steps__t { display: block; font-weight: 600; }
.steps__m { display: block; font-size: 14px; color: var(--red); }
.steps__x { display: block; }

/* таблица; на телефоне строки - карточки */
.tbl { margin: 24px 0; }
.tbl table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; line-height: 1.5; }
.tbl caption { caption-side: top; margin-bottom: 12px; text-align: left; font-weight: 600; font-size: 18px; color: var(--brown-900); }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl thead th { background: var(--choc-700); color: var(--cream); font-weight: 600; }
.tbl thead th.hl { background: #5a3324; color: var(--gold); }
.tbl tbody th { font-weight: 600; }
.tbl td.hl { background: #FBEBD3; }
@media (max-width: 640px) {
  .tbl table, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl table { background: none; border: 0; border-radius: 0; overflow: visible; }
  .tbl caption { display: block; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl tr { margin-bottom: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .tbl tbody th { background: var(--choc-700); color: var(--cream); }
  .tbl td { border-bottom: 1px solid var(--line); }
  .tbl tr > :last-child { border-bottom: 0; }
  .tbl td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brown-500); }
}

/* образец письма - разлинованный лист */
.letter {
  margin: 16px 0 20px; padding: 16px 20px;
  background: #FFFDF8 repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #EFE3D3 31px, #EFE3D3 32px);
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px;
  font-size: 17px; line-height: 32px; color: var(--brown-900);
}
.letter p { margin: 0; }

/* чек-лист */
.check { margin: 24px 0; padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.check .block-t { margin-top: 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; margin-bottom: 10px; padding-left: 34px; }
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--choc-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23FBDCB3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* цифры и было-стало - для будущих статей */
.stats dl { display: grid; gap: 12px; margin: 0 0 24px; }
.stats__i { padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; }
.stats dt { font-size: 14px; color: var(--brown-700); }
.stats dd { margin: 0; font: 300 30px/1.2 "Arodora Pro", Georgia, serif; }
.stats small { display: block; font: 400 13px/1.4 Cygre, Arial, sans-serif; color: var(--brown-500); }
.ba__cols { display: grid; gap: 12px; margin-bottom: 24px; }
.ba__c { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-2); }
.ba__c--after { background: #FBEBD3; }
.ba__t { font-weight: 600; }

/* врезки */
.callout { margin: 24px 0; padding: 16px 18px; border: 1px solid; border-radius: 14px; }
.callout--tip, .callout--info { background: #F4F0E2; border-color: #DCCDA4; }
.callout--warn { background: #FBECEA; border-color: #E5B8B2; }
.callout__t { margin: 0 0 6px; font-weight: 600; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* призывы - тёмные панели как секции сайта */
.cta { margin: 32px 0; padding: 24px 20px; color: var(--cream); background: radial-gradient(120% 160% at 0% 0%, #3c1f15 0%, var(--choc-900) 70%); border-radius: 22px; }
.cta__t { margin: 0 0 10px; font: 300 24px/1.25 "Arodora Pro", Georgia, serif; color: var(--cream); }
.cta__x { color: rgba(250, 241, 227, .85); }
.cta .btn { margin-top: 4px; }

/* вопросы и источники */
.faq__i { border-top: 1px solid var(--line); }
.faq__i h3 { margin: 18px 0 8px; font-size: 18px; }
.sources { font-size: 15px; color: var(--brown-700); }
.sources h2 { font-size: 24px; }
.sources a { overflow-wrap: anywhere; }
.sources__d { font-size: 14px; color: var(--brown-500); }

/* карточки: список и «Читайте также» */
.related { padding: 8px 0 48px; }
.related h2 { margin-top: 0; }
.list { padding-top: 32px; padding-bottom: 56px; }
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.card__b { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 20px; }
.card__t { margin: 0; font: 300 22px/1.25 "Arodora Pro", Georgia, serif; }
.card__t a { color: var(--brown-900); text-decoration: none; }
.card__t a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__t a { color: var(--red); }
.card__x { margin: 0; font-size: 15px; color: var(--brown-700); }
.card__d { margin: auto 0 0; font-size: 13px; color: var(--brown-500); }

/* подвал */
.ftr { background: var(--choc-900); color: var(--cream); padding: 32px 0; }
.ftr__in { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; gap: 16px; }
.ftr__logo img { height: 72px; width: auto; }
.ftr__s { margin: 0; color: var(--gold); }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr a { color: var(--cream); text-decoration: none; opacity: .9; }
.ftr a:hover { color: var(--gold); }
.ftr__c { margin: 0; font-size: 13px; opacity: .6; }

@media (min-width: 700px) {
  .intro { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats dl { grid-template-columns: repeat(3, 1fr); }
  .ba__cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .hdr__logo img { height: 64px; }
  .hdr__nav { order: 0; width: auto; gap: 24px; font-size: 16px; }
  .hdr__cta { min-height: 48px; padding: 12px 28px; font-size: 16px; }
  .hero { padding: 36px 0 44px; }
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  .cta { padding: 32px 36px; }
  .cta__t { font-size: 30px; }
  .ftr__in { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; }
  .ftr nav, .ftr__c { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
