/* Блог «Идеи» (/blog, app/blog.py): читаемая колонка ~720px, тёмный фон, лаймовые акценты.
   Карточки кадров ведут на /k/<id> с меткой блога; большой блок CTA ведёт на витрину. */
.page-blog{ --ink:#DADBD6; }
.page-blog .hdr__link{ display:inline; }
.page-blog .hdr__right{ gap:14px; }
.page-blog .foot{ margin-top:56px; }

.blog{ max-width:752px; margin:0 auto; padding:calc(var(--hdr) + 20px) var(--gut) 24px; }
@media (min-width:900px){ .blog{ padding-top:calc(var(--hdr) + 48px); } }

/* Крошки */
.bc ol{ list-style:none; margin:0 0 20px; padding:0; display:flex; flex-wrap:wrap; gap:4px 0; }
.bc li{ display:inline-flex; align-items:center; color:var(--text-3); max-width:100%; }
.bc li + li::before{ content:"/"; margin:0 8px; color:var(--text-4); }
.bc a{ color:var(--text-2); }
.bc a:hover{ color:var(--text); }
.bc li[aria-current]{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:60vw; }

/* Шапка статьи */
.art__h{ margin:0 0 12px; overflow-wrap:anywhere; }
.art__meta{ margin:0 0 18px; }
.art__lead{ margin:0 0 28px; font-size:19px; line-height:1.45; color:var(--text-2); }
@media (min-width:900px){ .art__lead{ font-size:21px; } }

/* Текст статьи */
.md{ color:var(--ink); font-size:17px; line-height:1.65; }
@media (min-width:900px){ .md{ font-size:18px; } }
.md > :first-child{ margin-top:0; }
.md p{ margin:0 0 18px; }
.md h2{ font-family:var(--font-d); font-weight:800; font-stretch:30%; text-transform:uppercase; font-size:28px; line-height:1;
  color:var(--text); margin:40px 0 16px; text-wrap:balance; }
.md h3{ font-size:20px; line-height:1.3; font-weight:600; color:var(--text); margin:28px 0 10px; }
@media (min-width:900px){ .md h2{ font-size:36px; margin-top:48px; } .md h3{ font-size:22px; } }
.md ul,.md ol{ margin:0 0 18px; padding-left:22px; }
.md li{ margin:6px 0; padding-left:2px; }
.md ul li::marker{ color:var(--lime); }
.md ol li::marker{ color:var(--text-3); font-weight:600; }
.md strong{ color:var(--text); font-weight:600; }
.md em{ font-style:italic; }
.md :is(p,li,blockquote,h2,h3) a{ color:var(--text); text-decoration:underline; text-decoration-color:var(--lime-line); text-underline-offset:3px; text-decoration-thickness:1.5px; }
.md :is(p,li,blockquote,h2,h3) a:hover{ text-decoration-color:var(--lime); }
.md blockquote{ margin:0 0 18px; padding:4px 0 4px 18px; border-left:2px solid var(--lime); color:var(--text-2); }
.md blockquote p{ margin:0; }
.md .kr,.md .bcta{ margin:24px 0 28px; }

/* Шаги HowTo */
.steps{ margin:0; padding:0; list-style:none; counter-reset:st; display:grid; gap:10px; }
.steps li{ counter-increment:st; position:relative; padding:14px 16px 14px 56px; border-radius:16px; background:var(--s1);
  box-shadow:inset 0 0 0 1px var(--line); color:var(--ink); font-size:16px; line-height:1.5; }
.steps li::before{ content:counter(st); position:absolute; left:14px; top:12px; width:28px; height:28px; border-radius:50%;
  display:grid; place-items:center; background:var(--lime-tint); color:var(--lime); font-weight:600; font-size:14px; }

/* Разделы под статьёй */
.bsec{ margin-top:44px; }
.bsec__h{ font-family:var(--font-d); font-weight:800; font-stretch:30%; text-transform:uppercase; font-size:28px; line-height:1; margin:0 0 16px; }
@media (min-width:900px){ .bsec__h{ font-size:36px; } }

/* Карточки кадров */
.kr{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 10px; }
@media (min-width:640px){ .kr{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 14px; } }
.kc{ display:flex; flex-direction:column; gap:6px; min-width:0; color:var(--text); -webkit-tap-highlight-color:transparent; }
.kc__m{ position:relative; display:block; aspect-ratio:4/5; border-radius:var(--r-card); overflow:hidden; background:var(--s1); margin-bottom:4px; }
.kc__m img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform var(--dur-slower) var(--ease-out); }
.kc__ai{ position:absolute; left:8px; top:8px; }
.kc__t{ font-size:16px; font-weight:600; line-height:1.25; }
.kc__s{ font-size:13px; line-height:1.35; color:var(--text-3); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.kc__b{ margin-top:auto; display:flex; align-items:center; justify-content:center; text-align:center; min-height:42px; padding:8px 10px;
  border-radius:var(--r-pill); background:var(--lime); color:var(--on-lime); font-size:14px; font-weight:600; line-height:1.15;
  transition:transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.kc:active .kc__b{ transform:scale(.98); }
@media (hover:hover) and (pointer:fine){
  .kc:hover .kc__m img{ transform:scale(1.03); }
  .kc:hover .kc__b{ box-shadow:var(--sh-lime); }
}

/* Большой CTA */
.bcta{ margin-top:44px; padding:24px 20px; border-radius:var(--r-card); background:radial-gradient(120% 100% at 0% 0%, var(--lime-glow), transparent 60%), var(--s1);
  box-shadow:inset 0 0 0 1px var(--lime-line); }
.bcta__h{ margin:0 0 10px; }
.bcta__p{ margin:0 0 18px; color:var(--text-2); font-size:16px; line-height:1.5; }
.bcta__btn{ width:100%; }
@media (min-width:640px){ .bcta{ padding:28px 28px; } .bcta__btn{ width:auto; min-width:240px; } }

/* FAQ */
.faq__i{ border-top:1px dashed var(--line-dash); }
.faq__i:last-child{ border-bottom:1px dashed var(--line-dash); }
.faq__i summary{ list-style:none; cursor:pointer; padding:16px 36px 16px 0; position:relative; font-size:17px; font-weight:500; line-height:1.35; }
.faq__i summary::-webkit-details-marker{ display:none; }
.faq__i summary::after{ content:"+"; position:absolute; right:4px; top:12px; font-size:24px; line-height:1; color:var(--lime); transition:transform var(--dur-base) var(--ease-out); }
.faq__i[open] summary::after{ transform:rotate(45deg); }
.faq__i p{ margin:0 0 18px; color:var(--text-2); font-size:16px; line-height:1.6; }

/* Списки статей */
.al{ display:grid; gap:10px; }
@media (min-width:640px){ .al{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.ac{ display:flex; flex-direction:column; gap:6px; padding:16px 18px 18px; border-radius:18px; background:var(--s1); box-shadow:inset 0 0 0 1px var(--line);
  transition:background var(--dur-fast), box-shadow var(--dur-fast); }
.ac:hover{ background:var(--s2); box-shadow:inset 0 0 0 1px var(--lime-line); }
.ac__c{ color:var(--lime); }
.al--same .ac__c{ display:none; }    /* в хабе и в разделе раздел уже назван заголовком */
.ac__t{ font-size:18px; font-weight:600; line-height:1.3; color:var(--text); }
.ac__d{ font-size:15px; line-height:1.45; color:var(--text-2); }

/* Хаб и разделы */
.cn{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin:0 calc(var(--gut) * -1) 28px; padding:2px var(--gut); }
.cn::-webkit-scrollbar{ display:none; }
.cn__i{ flex:none; display:inline-flex; align-items:center; height:40px; padding:0 16px; border-radius:999px; background:var(--s2);
  box-shadow:inset 0 0 0 1px var(--line); color:var(--text-2); font-size:15px; font-weight:500; white-space:nowrap; }
.cn__i:hover{ color:var(--text); }
.cn__i[aria-current]{ background:var(--lime); color:var(--on-lime); box-shadow:none; font-weight:600; }
@media (min-width:900px){ .cn{ flex-wrap:wrap; overflow:visible; margin-left:0; margin-right:0; padding:0; } }
.hs{ margin-top:36px; }
.hs__h{ font-family:var(--font-d); font-weight:800; font-stretch:30%; text-transform:uppercase; font-size:28px; line-height:1; margin:0 0 14px; }
.hs__h a:hover{ color:var(--lime); }
@media (min-width:900px){ .hs__h{ font-size:36px; } }
.hs__more{ display:inline-block; margin-top:12px; color:var(--text-2); font-size:15px; font-weight:500; }
.hs__more:hover{ color:var(--text); }
.bmore{ margin:36px 0 0; text-align:center; }

/* Нижняя кнопка на телефоне */
.bdock{ background:linear-gradient(to top, rgba(11,12,14,.96) 60%, rgba(11,12,14,0)); }
@media (min-width:900px){ .bdock{ display:none; } }
