/* ===== Elpis Sweets · блог в стиле «живая линия» ===== */
.skb .visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skb section{padding:80px 0}
.skb-crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;color:var(--ink2);margin-bottom:18px}
.skb-crumbs a{text-decoration:none;border-bottom:1px dashed rgba(43,29,26,.35)}
.skb-crumbs a:hover{color:var(--cherry);border-color:var(--cherry)}
.skb-crumbs [aria-current]{color:var(--ink);font-weight:600;max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- hero блога ---------- */
.skb .skb-hero{padding:56px 0 40px}
.skb-hero .wrap{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:56px;align-items:center}
.skb-hero h1{font-size:62px}
.skb-hero .lead{font-size:19px;color:var(--ink2);max-width:54ch;margin-bottom:30px}
.skb .actions{display:flex;flex-wrap:wrap;gap:18px}
.skb-note{position:relative;justify-self:center;width:min(300px,80vw)}
.skb-note .pic{padding:12px 12px 14px;transform:rotate(2.5deg)}
.skb-note .pic img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 15%}
.skb-note .cap{font:700 26px/1 var(--hand);text-align:center;margin-top:10px}
.skb-note .stick{position:absolute;left:-58px;bottom:42px;padding:14px 18px;display:flex;gap:10px;align-items:center;transform:rotate(-5deg)}
.skb-note .stick b{font:800 44px/1 var(--display);color:var(--cherry)}
.skb-note .stick span{font:700 20px/1 var(--hand)}
.skb .doodle{position:absolute;overflow:visible;pointer-events:none}
.skb-note .d1{width:58px;height:58px;right:-48px;top:24px}
.skb-note .d2{width:40px;height:40px;right:-28px;bottom:-14px}

/* ---------- быстрые ответы ---------- */
.skb .skb-quick{padding:40px 0 56px}
.skb-qgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.skb-q{display:grid;gap:10px;padding:22px 20px 20px;text-decoration:none;align-content:start}
.skb-q:nth-child(odd){transform:rotate(-1deg)}.skb-q:nth-child(even){transform:rotate(1deg)}
.skb-q:hover{transform:rotate(0) translateY(-3px)}
.skb-q .ic{width:56px;height:56px;display:grid;place-items:center}
.skb-q .ic svg{width:36px;height:36px;overflow:visible}
.skb-q b{font:800 20px/1.2 var(--display)}
.skb-q .hand{font-size:21px;color:var(--cherry)}

/* ---------- лента: поиск и темы ---------- */
.skb .skb-list{background:var(--paper2)}
.skb-tools{display:flex;flex-wrap:wrap;gap:18px 28px;align-items:center;justify-content:space-between;margin:-16px 0 14px}
.skb-chips{display:flex;flex-wrap:wrap;gap:12px}
.skb-chip{font:700 16px/1 var(--body);padding:12px 18px;background:none;border:0;cursor:pointer;color:var(--ink)}
.skb-chip small{font:700 18px/1 var(--hand);color:var(--ink2);margin-left:4px}
.skb-chip[aria-pressed="true"]{color:#fff}
.skb-chip[aria-pressed="true"] small{color:#fff}
.skb-chip:hover{transform:rotate(-1.5deg)}
.skb-search{display:flex;align-items:center;gap:10px;padding:0 16px;min-height:50px;flex:0 1 380px}
.skb-search svg{width:22px;height:22px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;flex:0 0 auto}
.skb-search input{border:0;background:transparent;font:500 16px var(--body);color:var(--ink);width:100%;outline:none;min-height:48px}
.skb-search input::placeholder{color:#8A776E}
.skb-search:focus-within{outline:3px dashed var(--cherry);outline-offset:6px}
.skb-found{min-height:30px;font-size:23px;color:var(--ink2);margin-bottom:22px}

/* ---------- карточки ---------- */
.skb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 36px}
.skb-card{transition:transform .2s steps(3)}
.skb-card:nth-child(3n+1){transform:rotate(-.8deg)}.skb-card:nth-child(3n+2){transform:rotate(.7deg)}.skb-card:nth-child(3n){transform:rotate(-.3deg)}
.skb-card:hover{transform:rotate(0) translateY(-4px)}
.skb-card[hidden]{display:none}
.skb-link{display:flex;flex-direction:column;height:100%;padding:12px 12px 20px;text-decoration:none}
.skb-img{position:relative}
.skb-img img{width:100%;aspect-ratio:4/3;object-fit:cover;height:auto}
.skb-img .tape{width:90px;margin-left:-45px;top:-14px;height:28px}
.skb-card:nth-child(even) .skb-img .tape{background:repeating-linear-gradient(45deg,rgba(201,168,76,.7) 0 3px,rgba(201,168,76,.3) 3px 7px);transform:rotate(5deg)}
.skb-txt{padding:16px 6px 0;display:flex;flex-direction:column;gap:10px;flex:1}
.skb-meta{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;font-size:14px;color:var(--ink2)}
.skb-tag{display:inline-block;font:700 13px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;padding:6px 10px;color:var(--ink);border:2px solid var(--ink);transform:rotate(-2deg)}
.skb-tag.t-pink{background:repeating-linear-gradient(-38deg,rgba(212,132,154,.45) 0 2px,transparent 2px 6px)}
.skb-tag.t-gold{background:repeating-linear-gradient(-35deg,rgba(201,168,76,.55) 0 2px,transparent 2px 6px)}
.skb-card h3{font-size:22px;line-height:1.22}
.skb-card p{font-size:16px;color:var(--ink2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.skb-card .more{margin-top:auto;font-size:22px;color:var(--cherry)}
.skb-card:hover .more{text-decoration:underline wavy rgba(200,56,45,.5) 1.5px;text-underline-offset:5px}
/* главная карточка — во всю ширину */
.skb-card.big{grid-column:1/-1;transform:rotate(-.4deg)}
.skb-card.big .skb-link{display:grid;grid-template-columns:1.1fr 1fr;gap:36px;align-items:center;padding:16px}
.skb-card.big .skb-img img{aspect-ratio:3/2}
.skb-card.big .skb-txt{padding:8px 16px 8px 0}
.skb-card.big h3{font-size:36px;line-height:1.12}
.skb-card.big p{font-size:17px;-webkit-line-clamp:4}
.skb-card.big .more{font-size:26px}
.stamp{position:absolute;right:-10px;bottom:18px;font:700 22px/1 var(--hand);color:#fff;background:var(--cherry);padding:10px 16px;transform:rotate(-6deg);border:2px solid var(--ink);box-shadow:4px 4px 0 rgba(43,29,26,.25)}
.skb-empty{text-align:center;padding:40px 0}
.skb-empty .hand{font-size:28px;color:var(--ink2);margin-bottom:22px}

/* ---------- CTA ---------- */
.skb-cta-box{display:grid;grid-template-columns:auto 1fr auto;gap:32px;align-items:center;padding:36px 40px}
.skb .cta-ic{width:84px;height:84px;overflow:visible}
.skb-cta-box h2{font-size:36px}
.skb-cta-box p{margin-top:8px;max-width:48ch}
.skb .btns{display:flex;flex-wrap:wrap;gap:16px}

/* ===================== СТАТЬЯ ===================== */
.skb-progress{position:fixed;left:0;right:0;top:var(--header-h,82px);height:5px;z-index:998;pointer-events:none}
.skb-progress i{display:block;height:100%;background:var(--cherry,#C8382D);transform-origin:0 50%;transform:scaleX(0);
  background-image:repeating-linear-gradient(40deg,rgba(142,34,25,.55) 0 2px,transparent 2px 6px)}
.skb .skb-phero{padding:48px 0 40px}
.skb-phero .wrap{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:56px;align-items:center}
.skb-phero h1{font-size:50px;line-height:1.1;margin:18px 0 26px}
.skb-byline{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px}
.skb .ava{width:56px;height:56px;border-radius:50%;object-fit:cover;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--pink)}
.skb-byline b{display:block;font:700 16px/1.2 var(--body)}
.skb-byline span{font-size:14px;color:var(--ink2)}
.skb-byline ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;width:100%;font:700 21px/1.1 var(--hand);color:var(--cherry)}
.skb-byline li+li::before{content:'·';margin-right:14px;color:var(--ink2)}
.skb-cover{padding:12px;transform:rotate(1.5deg);margin:0}
.skb-cover img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}

.skb-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:64px;align-items:start;padding-top:40px!important;padding-bottom:96px!important;max-width:1120px}
.skb-side{position:sticky;top:calc(var(--header-h,82px) + 28px);display:grid;gap:26px}
.skb-tocw{padding:0 0 6px}.skb-toc{padding:0}.skb-toc ol{padding-bottom:2px}
.skb-toc summary{font:800 20px/1 var(--display);cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.skb-toc summary::-webkit-details-marker{display:none}
.skb-toc summary::after{content:'+';font:700 26px/1 var(--hand);color:var(--cherry)}
.skb-toc[open] summary::after{content:'–'}
.skb-toc ol{list-style:none;counter-reset:t;display:grid;gap:10px;margin-top:16px}
.skb-toc li{counter-increment:t;display:grid;grid-template-columns:26px 1fr;gap:6px;font-size:14px;line-height:1.35}
.skb-toc li::before{content:counter(t);font:700 19px/1 var(--hand);color:var(--cherry)}
.skb-toc a{text-decoration:none;color:var(--ink2)}
.skb-toc a:hover,.skb-toc a.on{color:var(--ink);text-shadow:.35px 0 0 currentColor,-.35px 0 0 currentColor}
.skb-toc a.on{text-decoration:underline wavy rgba(200,56,45,.6) 1.5px;text-underline-offset:4px}
.skb-share{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.skb-share .hand{font-size:21px;width:100%}
.skb-share a,.skb-share button{width:46px;height:46px;display:grid;place-items:center;background:none;border:0;cursor:pointer;color:var(--ink)}
.skb-share svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.skb-share a:hover,.skb-share button:hover{transform:rotate(-8deg);color:var(--cherry)}
.skb-share .copied{width:auto;font-size:19px;color:var(--cherry)}

/* ---------- типографика текста ---------- */
.skb-body{font-size:18px;line-height:1.75;color:#3A2A25;max-width:720px}
.skb-body>*+*{margin-top:1.05em}
.skb-body p.lead{font-size:21px;line-height:1.6;color:var(--ink)}
.skb-body p.lead::first-letter{float:left;font:800 74px/.82 var(--display);color:var(--cherry);margin:8px 12px 0 0}
.skb-body h2{font-size:34px;line-height:1.15;margin-top:2em;padding-bottom:16px;scroll-margin-top:calc(var(--header-h,82px) + 24px);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12'%3E%3Cpath d='M2 7Q55 2 110 6T218 5' fill='none' stroke='%23C8382D' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M10 10Q80 7 160 9' fill='none' stroke='%23C8382D' stroke-width='1.6' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") left bottom/180px 12px no-repeat}
.skb-body h3{font-size:24px;margin-top:1.6em;scroll-margin-top:calc(var(--header-h,82px) + 24px)}
.skb-body strong{font-weight:700;color:var(--ink);background:linear-gradient(transparent 58%,rgba(232,160,180,.45) 58%,rgba(232,160,180,.45) 92%,transparent 92%)}
.skb-body a:not(.skh-btn){color:#B8332A;text-decoration:underline;text-decoration-color:rgba(200,56,45,.4);text-decoration-thickness:2px;text-underline-offset:4px}
.skb-body a:not(.skh-btn):hover{text-decoration-color:var(--cherry)}
.skb-body ul,.skb-body ol{list-style:none;display:grid;gap:.6em}
.skb-body ul>li{position:relative;padding-left:36px}
.skb-body ul>li::before{content:'';position:absolute;left:0;top:.3em;width:24px;height:24px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 17L13 25L28 6' fill='none' stroke='%23C8382D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 18L13 23L26 8' fill='none' stroke='%23C8382D' stroke-width='1.6' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") center/contain no-repeat}
.skb-body ol{counter-reset:o}
.skb-body ol>li{counter-increment:o;position:relative;padding-left:40px}
.skb-body ol>li::before{content:counter(o);position:absolute;left:4px;top:-.1em;font:700 30px/1 var(--hand);color:var(--cherry)}
.skb-body em{font-style:italic}
/* фото внутри статьи — как полароид (обёртку делает JS) */
.skb-pol{margin:2em auto!important;padding:12px 12px 14px;max-width:560px}
.skb-pol:nth-of-type(odd){transform:rotate(-1.2deg)}.skb-pol:nth-of-type(even){transform:rotate(1deg)}
.skb-pol img{width:100%;height:auto}
.skb-pol figcaption{font:700 22px/1.2 var(--hand);text-align:center;margin-top:10px;color:var(--ink)}
.skb-body img.post-inline-img{width:100%;height:auto}
/* таблицы */
.skb-table{padding:6px;margin:1.6em 0!important}
.skb-table-in{overflow-x:auto;-webkit-overflow-scrolling:touch}
.skb-body table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.45;min-width:480px}
.skb-body th{font:800 16px/1.3 var(--display);text-align:left;padding:14px 16px;background:repeating-linear-gradient(-38deg,rgba(212,132,154,.28) 0 2px,transparent 2px 7px);border-bottom:2px solid var(--ink)}
.skb-body td{padding:12px 16px;border-bottom:1.5px dashed rgba(43,29,26,.25);vertical-align:top}
.skb-body tr:last-child td{border-bottom:0}
.skb-body td strong{background:none}
/* совет кондитера */
.skb-body .post-tip{padding:22px 24px 22px 24px;margin:1.8em 0!important;display:block}
.skb-body .post-tip>i{display:none}
.skb-body .post-tip::before{content:'совет кондитера';display:block;font:700 24px/1 var(--hand);color:var(--cherry);margin-bottom:8px}
.skb-body .post-tip strong{background:none}
/* автор и CTA в конце */
.skb-author{display:grid;grid-template-columns:80px 1fr;gap:20px;align-items:center;padding:22px 24px;margin-top:3em!important}
.skb-author .ava{width:80px;height:80px}
.skb-author b{display:block;font:800 22px/1.2 var(--display);margin:4px 0}
.skb-author p{font-size:16px;color:var(--ink2);line-height:1.55}
.skb-pcta{text-align:center;padding:36px 28px 32px;margin-top:2.6em!important}
.skb-pcta .cta-ic{margin:0 auto 6px;display:block}
.skb-pcta h2{background:none;padding:0;margin:0;font-size:34px}
.skb-pcta p{color:var(--ink2);margin:10px auto 22px;max-width:44ch}
.skb-pcta .btns{justify-content:center}
.skb .skb-related{padding:80px 0 96px}
.skb-related .skb-card h3{font-size:20px}

/* ---------- адаптив ---------- */
@media (max-width:1100px){
  .skb-qgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .skb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .skb-layout{grid-template-columns:minmax(0,1fr);gap:28px}
  .skb-side{position:static}
  .skb-body{max-width:none}
}
@media (max-width:900px){
  .skb-hero .wrap,.skb-phero .wrap{grid-template-columns:minmax(0,1fr);gap:40px}
  .skb-note{width:min(240px,64vw)}
  .skb-card.big .skb-link{grid-template-columns:minmax(0,1fr);gap:6px;padding:12px 12px 20px}
  .skb-card.big .skb-txt{padding:16px 6px 0}
  .skb-card.big h3{font-size:28px}
  .skb-cta-box{grid-template-columns:minmax(0,1fr);text-align:center;justify-items:center}
  .skb-cta-box .btns{justify-content:center}
}
@media (max-width:760px){
  .skb section{padding:56px 0}
  .skb-hero h1{font-size:42px}
  .skb-phero h1{font-size:32px}
  .skb-qgrid{gap:18px}
  .skb-q{padding:16px 14px}
  .skb-q b{font-size:17px}
  .skb-q .hand{font-size:18px}
  .skb-grid{grid-template-columns:minmax(0,1fr);gap:36px}
  .skb-tools{margin-top:-24px}
  .skb-search{flex:1 1 100%}
  .skb-note .stick{left:-34px;bottom:24px}
  .skb-note .stick b{font-size:34px}
  .skb-body{font-size:17px}
  .skb-body p.lead{font-size:19px}
  .skb-body p.lead::first-letter{font-size:60px}
  .skb-body h2{font-size:27px}
  .skb-body h3{font-size:21px}
  .skb-author{grid-template-columns:minmax(0,1fr);text-align:center;justify-items:center}
  .skb-cta-box h2,.skb-pcta h2{font-size:28px}
  .skb-crumbs [aria-current]{max-width:22ch}
}
@media (max-width:420px){.skb-qgrid{grid-template-columns:minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){.skb-card,.skb-q{transition:none}}

@media (max-width:520px){.skb-hero h1{font-size:36px}.skb-hero h1 .accent{white-space:normal}}
@media (max-width:760px){.skb-body table{min-width:0;font-size:16px}.skb-body th,.skb-body td{padding:10px}}
