/* ================= Блог /blog/ и /ru/blog/ =================
   Режим «чтение»: узкая колонка, крупный спокойный текст,
   ответ в первом абзаце, таблицы с цифрами. Токены — из site.css. */

.blog{background:var(--paper)}
.wrap-read{max-width:760px;margin:0 auto;padding:0 24px}
::selection{background:var(--gold);color:#fff}

/* Шапка списка */
.blog-head{background:var(--mist);padding:72px 0 56px;border-bottom:var(--hairline)}
.blog-head h1{font-size:clamp(2rem,4vw,2.9rem);letter-spacing:-.025em;text-wrap:balance}
.blog-head p{margin-top:16px;font-size:1.1rem;color:#444;max-width:40rem}

/* Список статей */
.blog-list{padding:24px 0 72px}
.post-row{padding:28px 0;border-bottom:var(--hairline)}
.post-row:last-child{border-bottom:0}
.post-row h2,.post-row h3{font-size:clamp(1.3rem,2.4vw,1.6rem);letter-spacing:-.015em;text-wrap:balance}
.post-row h3{font-size:1.2rem}
.post-row a{background-image:linear-gradient(var(--gold),var(--gold));background-size:0 2px;background-position:0 100%;background-repeat:no-repeat;transition:background-size .3s var(--ease-out),color .2s ease}
@media (hover:hover){.post-row a:hover{background-size:100% 2px;color:var(--gold)}}
.post-meta{font-size:.86rem;color:var(--ink-soft);margin-bottom:8px;font-variant-numeric:tabular-nums}
.post-desc{margin-top:10px;color:#444;font-size:1.02rem}

/* Статья */
.post{padding:40px 0 56px}
.crumbs{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.9rem;margin-bottom:28px}
.crumbs a{color:var(--ink-soft);border-bottom:1px solid transparent;display:inline-flex;align-items:center;min-height:44px}
.crumbs a:first-child::before{content:"←";margin-right:8px;color:var(--gold)}
.crumbs a:hover{color:var(--green);border-bottom-color:var(--gold)}
.lang-alt{font-weight:600}
.post h1{font-size:clamp(1.9rem,4.2vw,2.7rem);line-height:1.15;letter-spacing:-.025em;text-wrap:balance}
.post-byline{display:flex;align-items:center;gap:12px;margin:20px 0 28px;font-size:.92rem;color:var(--ink-soft)}
.post-byline img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}
.post-byline b{color:var(--green);font-weight:600}

.answer{background:var(--mist);border-radius:var(--radius);padding:22px 24px;margin-bottom:36px}
.answer-k{font-family:var(--serif);font-weight:700;font-size:.95rem;color:var(--gold);margin-bottom:6px}
.answer p:last-child{font-size:1.1rem;line-height:1.6;color:var(--ink)}
.answer strong{color:var(--green)}

.post-body{font-size:1.08rem;line-height:1.75;color:#2a2a2a}
.post-body p{margin-bottom:1.1em;max-width:68ch}
.post-body h2{font-size:clamp(1.35rem,2.6vw,1.65rem);margin:2em 0 .6em;letter-spacing:-.015em;text-wrap:balance}
.post-body ul,.post-body ol{margin:0 0 1.2em 1.3em;max-width:66ch}
.post-body ul{list-style:disc}.post-body ol{list-style:decimal}
.post-body li{margin-bottom:.5em;padding-left:.2em}
.post-body li::marker{color:var(--gold)}
.post-body a{color:var(--green);font-weight:600;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px;text-decoration-thickness:1.5px}
.post-body a:hover{color:var(--gold)}
.post-body strong{color:var(--green);font-weight:600}

/* Таблица с цифрами */
.nums{width:100%;border-collapse:collapse;margin:8px 0 1.6em;font-size:.97rem;line-height:1.5}
.nums th{text-align:left;font-family:var(--serif);font-size:.82rem;font-weight:600;color:var(--ink-soft);padding:10px 12px 10px 0;border-bottom:2px solid var(--green)}
.nums td{padding:12px 12px 12px 0;border-bottom:var(--hairline);vertical-align:top}
.nums td:nth-child(2){font-weight:600;color:var(--green);white-space:nowrap;font-variant-numeric:tabular-nums}
.nums td:nth-child(3){color:var(--ink-soft);font-size:.92rem}
.nums tr.total td{border-bottom:0;border-top:2px solid var(--green);font-weight:700;color:var(--green)}
.nums tr.total td:nth-child(3){font-weight:400}
.nums th:first-child:empty{width:0}

/* Вопросы */
.post-faq{margin-top:48px}
.post-faq h2{font-size:1.45rem;margin-bottom:14px}
.post-faq details{border-bottom:var(--hairline)}
.post-faq summary{list-style:none;cursor:pointer;padding:18px 40px 18px 0;font-weight:600;color:var(--green);position:relative;font-size:1.02rem}
.post-faq summary::-webkit-details-marker{display:none}
.post-faq summary::after{content:"+";position:absolute;right:4px;top:50%;transform:translateY(-50%);font-family:var(--serif);font-size:1.4rem;color:var(--gold);transition:transform .2s var(--ease-out)}
.post-faq details[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.post-faq details p{padding:0 0 18px;color:#444;max-width:66ch}

/* Автор */
.author{display:flex;gap:20px;align-items:flex-start;margin-top:48px;padding:24px;border:var(--hairline);border-radius:var(--radius)}
.author img{width:96px;height:120px;object-fit:cover;object-position:50% 10%;border-radius:4px;flex-shrink:0}
.author-name{font-family:var(--serif);font-weight:700;color:var(--green);margin-bottom:6px}
.author p:not(.author-name){color:#444;font-size:.97rem}

/* Источники */
.sources{margin-top:40px}
.sources h2{font-size:1.1rem;margin-bottom:10px}
.sources ul{list-style:disc;margin-left:1.2em}
.sources li{margin-bottom:6px;font-size:.95rem}
.sources a{color:var(--ink-soft);text-decoration:underline;text-underline-offset:3px}
.sources a:hover{color:var(--green)}
.disclaimer{margin-top:14px;font-size:.84rem;color:var(--ink-soft)}

/* Призыв и «читайте также» */
.blog-cta{background:var(--green);color:#fff;padding:64px 0}
.blog-cta h2{color:#fff;font-size:clamp(1.5rem,3vw,2rem);text-wrap:balance}
.blog-cta p{color:rgba(255,255,255,.82);margin:14px 0 26px;max-width:36rem;font-size:1.05rem}
.blog-cta :focus-visible{outline-color:#fff}
.more{padding:56px 0 72px}
.more h2{font-size:1.45rem}

@media(max-width:640px){
  .blog-head{padding:48px 0 36px}
  .post{padding:20px 0 40px}
  .post-body{font-size:1.03rem}
  .nums,.nums thead,.nums tbody,.nums tr,.nums td{display:block;width:100%}
  .nums thead{display:none}
  .nums tr{padding:12px 0;border-bottom:var(--hairline)}
  .nums td{border:0;padding:2px 0}
  .nums td:nth-child(2){white-space:normal}
  .nums tr.total{border-top:2px solid var(--green);border-bottom:0}
  .nums tr.total td{border-top:0}
  .author{flex-direction:column}
  .blog-cta .btn{width:100%;justify-content:center}
}
@media (prefers-reduced-motion:reduce){.post-row a{transition:none}}

/* Раскрытие партнёрства в статье */
.post-note{margin-top:28px;padding:14px 18px;border-left:2px solid rgba(0,0,0,.18);background:var(--mist);font-size:.88rem;color:var(--ink-soft)}

/* Таблица-сравнение с текстом (class="nums cmp"): колонки равные, без nowrap;
   на телефоне перед каждой ячейкой подпись колонки из data-label */
.nums.cmp td{font-size:.94rem;color:var(--ink);font-weight:400;white-space:normal}
.nums.cmp td:first-child{font-weight:600;color:var(--green);width:22%}
.nums.cmp td:not(:first-child){width:auto}
@media(max-width:700px){
  .nums.cmp td:first-child{font-family:var(--serif);font-size:1rem;width:100%;padding-bottom:6px}
  .nums.cmp td[data-label]{padding:3px 0}
  .nums.cmp td[data-label]::before{content:attr(data-label) ": ";font-weight:600;color:var(--gold)}
}
