/* Лекторий Эээкзамена — статичные статьи. Язык тот же, что у главной (contralabs-стиль): бумага, мята, тонкая антиква, плоско, радиус 8px. */
:root {
  --paper: #fbfaf6; --paper2: #f3f2ec; --line: #e4e2d9; --ink: #2b2b29; --ink2: rgba(43,43,41,.72); --mute: rgba(43,43,41,.5);
  --mint: #c8e1dd; --mint2: #a5beba; --mint3: #e7f2f0; --teal: #387478; --teal-d: #296a6c;
  --serif: "Source Serif 4", Georgia, serif; --sans: "Inter Tight", system-ui, sans-serif;
  --r: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body.lk { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }

/* шапка — копия с главной (style.css) */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251,250,246,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(43,43,41,.06); }
.nav-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; align-items: center; gap: 36px; }
.nav a { text-decoration: none; }
.nav button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.nav img { display: block; max-width: 100%; }
.ribbon { position: absolute; left: 32px; top: 0; width: 48px; height: 92px; background: var(--mint2); display: grid; place-items: start center; padding-top: 30px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); transition: height .25s; }
.ribbon:hover { height: 102px; }
.ribbon img { width: 26px; height: 26px; object-fit: contain; }
.logo { margin-left: 68px; flex: none; display: block; line-height: 0; }
.logo img { height: 30px; width: auto; max-width: none; }
.links { display: flex; gap: 4px; font-size: 15px; line-height: 1.35; }
.links a { padding: 8px 12px; border-radius: 99px; color: var(--ink2); transition: color .2s, background .2s; }
.links a:hover { color: var(--ink); background: rgba(43,43,41,.05); }
.links a.cur { color: var(--ink); background: var(--mint3); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43,43,41,.2); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.nav.open .burger i:first-child { top: 21.5px; transform: rotate(45deg); } .nav.open .burger i:last-child { top: 21.5px; transform: rotate(-45deg); }
.mnav { display: none; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 22px; border-radius: 99px; background: var(--ink); color: var(--paper); font: 500 14px/1.35 var(--sans); white-space: nowrap; transition: background .2s, transform .15s, box-shadow .2s; }
.pill:hover { background: #000; }
.pill:active { transform: scale(.97); }
.pill.big { height: 52px; padding: 0 30px; font-size: 16px; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(43,43,41,.25); }
.pill.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 1080px) {
  .links { display: none; }
  .burger { display: block; }
  .mnav { display: grid; max-height: 0; overflow: hidden; padding: 0 16px; transition: max-height .4s cubic-bezier(.2,.7,.2,1), padding .4s; background: var(--paper); }
  .nav.open .mnav { max-height: 80vh; padding: 10px 16px 22px; border-top: 1px solid var(--line); }
  .mnav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); font: 400 28px/1.05 var(--serif); letter-spacing: -.04em; }
  .mnav a span { width: 30px; font: 400 italic 15px/1 var(--serif); color: var(--teal); }
  .mnav-b { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; } .mnav-b .pill { flex: 1; }
  .mnav .mnav-b a { align-items: center; gap: 8px; padding: 0 30px; border-bottom: 0; font: 500 16px/1.35 var(--sans); letter-spacing: 0; }
}
@media (max-width: 640px) {
  .nav-in { padding: 0 16px; gap: 10px; height: 64px; }
  .nav-r > .pill { display: none !important; }
  .ribbon { left: 16px; width: 38px; height: 78px; padding-top: 26px; } .ribbon img { width: 22px; height: 22px; }
  .logo { margin-left: 50px; }
  .logo img { height: 24px; }
}

.lk-pill { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 22px; border-radius: 99px; background: var(--ink); color: #fff; font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background .2s, transform .15s; }
.lk-pill:hover { background: #000; }
.lk-pill:active { transform: scale(.97); }
.lk-pill.big { margin-left: 0; height: 52px; padding: 0 30px; font-size: 16px; }

.lk-main { max-width: 1200px; margin: 0 auto; padding: 0 32px 96px; }

/* крошки */
.lk-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mute); }
.lk-crumbs li + li::before { content: "→"; margin-right: 6px; }
.lk-crumbs a { text-decoration: none; }
.lk-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lk-crumbs [aria-current] { color: var(--ink2); }

/* статья */
.lk-article { max-width: 680px; margin: 0 auto; padding-top: 36px; }
.lk-hero { padding: 28px 0 8px; }
[hidden] { display: none !important; }

/* говорящий портрет: лицо слева, пузырь справа (на мобиле — снизу); пузырь лицо не перекрывает */
.lk-quip { display: flex; align-items: flex-start; gap: 22px; background: var(--mint3); border-radius: var(--r); padding: 20px; margin-bottom: 32px; }
.lk-quip-who { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.lk-face { position: relative; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--mint); }
.lk-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.lk-face img.b { opacity: 0; }
.lk-quip-cap b { display: block; font: 400 19px/1.1 var(--serif); letter-spacing: -.03em; }
.lk-quip-cap span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--ink2); }
.lk-bubble { position: relative; flex: 1; min-width: 0; background: var(--paper); border: 1px solid var(--mint); border-radius: var(--r); padding: 16px 18px 14px; margin-top: 6px; }
.lk-bubble::before { content: ""; position: absolute; left: -7px; top: 30px; width: 12px; height: 12px; background: var(--paper); border-left: 1px solid var(--mint); border-bottom: 1px solid var(--mint); transform: rotate(45deg); }
.lk-quip-t { position: relative; font: italic 400 19px/1.4 var(--serif); letter-spacing: -.01em; }
.lk-quip.js .lk-ghost { visibility: hidden; }
.lk-typed { position: absolute; inset: 0; }
.lk-quip:not(.js) .lk-typed { display: none; }
.lk-quip.typing:not(.done) .lk-typed::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--teal); animation: lkBlink .8s steps(1) infinite; }
@keyframes lkBlink { 50% { opacity: 0; } }
.lk-bubble small { display: block; margin-top: 8px; font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

@media (max-width: 640px) {
  .lk-quip { flex-direction: column; gap: 14px; padding: 16px; }
  .lk-quip-who { width: auto; flex-direction: row; text-align: left; gap: 14px; }
  .lk-quip .lk-face { width: 64px; height: 64px; }
  .lk-bubble { width: 100%; margin-top: 4px; }
  .lk-bubble::before { left: 26px; top: -7px; border-left: 1px solid var(--mint); border-bottom: 0; border-top: 1px solid var(--mint); }
  .lk-quip-t { font-size: 18px; }
}
.lk-lecturer { display: flex; align-items: center; gap: 14px; }
.lk-lecturer img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--mint); }
.lk-lecturer b { display: block; font: 400 21px/1.1 var(--serif); letter-spacing: -.03em; }
.lk-lecturer span { display: block; margin-top: 3px; font-size: 14px; color: var(--ink2); }
.lk-lecturer.sm img { width: 44px; height: 44px; }
.lk-lecturer.sm b { font-size: 17px; }
.lk-lecturer.sm span { font-size: 13px; }
.lk-hero h1 { font-size: clamp(34px, 5.6vw, 54px); }
.lk-lead { margin-top: 20px; font-size: 20px; line-height: 1.5; color: var(--ink2); }
.lk-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }

.lk-toc { margin: 28px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); }
.lk-toc-k, .lk-ex-k { font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.lk-toc ol { margin-top: 12px; padding-left: 20px; font-size: 15px; display: grid; gap: 6px; }
.lk-toc a { text-decoration: none; }
.lk-toc a:hover { color: var(--teal); }

/* тело: антиква 19px — лонгрид читается спокойнее */
.lk-body { margin-top: 32px; font: 400 19px/1.62 var(--serif); letter-spacing: -.005em; }
.lk-body > * + * { margin-top: 18px; }
.lk-body h2 { font-size: clamp(27px, 3.6vw, 34px); margin-top: 52px; }
.lk-body h3 { font-size: 24px; margin-top: 36px; }
.lk-body h4 { font: 600 17px/1.3 var(--sans); letter-spacing: 0; margin-top: 28px; }
.lk-body h2 + *, .lk-body h3 + *, .lk-body h4 + * { margin-top: 12px; }
.lk-body ul, .lk-body ol { padding-left: 24px; }
.lk-body li + li { margin-top: 8px; }
.lk-body li::marker { color: var(--teal); }
.lk-body strong { font-weight: 600; }
.lk-body a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lk-body a:hover { color: var(--teal-d); }
.lk-body blockquote { border-left: 3px solid var(--mint); background: var(--paper2); border-radius: 0 var(--r) var(--r) 0; padding: 14px 18px; font-size: 18px; }
.lk-body blockquote > * + * { margin-top: 8px; }

/* упражнение */
.lk-ex { margin-top: 56px; background: var(--mint); border-radius: var(--r); padding: 26px 28px 28px; }
.lk-ex-k { display: flex; justify-content: space-between; gap: 12px; color: var(--teal-d); }
.lk-ex-t { margin-top: 12px; font-size: 30px; }
.lk-ex ol { margin-top: 16px; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; }
.lk-ex-why { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(56,116,120,.25); font-size: 15px; color: var(--ink2); }
.lk-ex-why b { color: var(--ink); font-weight: 600; }

/* CTA */
.lk-cta { margin-top: 40px; background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 36px 32px; text-align: center; }
.lk-cta h2 { font-size: clamp(28px, 4vw, 38px); max-width: 560px; margin: 0 auto; }
.lk-cta p { margin: 14px auto 24px; max-width: 480px; font-size: 16px; color: rgba(251,250,246,.72); }
.lk-cta .lk-pill { background: var(--paper); color: var(--ink); }
.lk-cta .lk-pill:hover { background: #fff; }
.lk-cta.wide { margin-top: 64px; }

/* карточки */
.lk-more { margin-top: 88px; }
.lk-more h2 { font-size: 34px; margin-bottom: 22px; }
.lk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lk-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--paper2); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: background .2s, border-color .2s; }
.lk-card:hover { background: var(--mint3); border-color: var(--mint); }
.lk-card h3 { font-size: 25px; }
.lk-card p { font-size: 15px; line-height: 1.45; color: var(--ink2); flex: 1; }
.lk-card-m { font-size: 13px; color: var(--mute); }

/* индекс */
.lk-index-head { max-width: 760px; padding: 40px 0 40px; }
.lk-index-head h1 { margin-top: 28px; font-size: clamp(42px, 7vw, 76px); }
.lk-index-head .lk-lead { max-width: 620px; }

/* подвал */
.lk-foot { border-top: 1px solid var(--line); }
.lk-foot-in { max-width: 1200px; margin: 0 auto; padding: 24px 32px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--mute); }

@media (max-width: 960px) { .lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lk-main, .lk-foot-in { padding-left: 16px; padding-right: 16px; }
  .lk-pill { height: 36px; padding: 0 16px; font-size: 13px; }
  .lk-pill.big { height: 52px; width: 100%; }
  .lk-article { padding-top: 22px; }
  .lk-lead { font-size: 18px; }
  .lk-body { font-size: 18px; }
  .lk-ex { padding: 22px 18px; }
  .lk-ex-t { font-size: 26px; }
  .lk-cta { padding: 28px 18px; }
  .lk-grid { grid-template-columns: 1fr; }
  .lk-index-head { padding: 24px 0 28px; }
}

.lk-sticky { display: none; }
/* ================= Интерактив (раунд 3) ================= */
/* Ритм: 56px вокруг каждого блока-виджета (44px на мобиле), внутри — щедрые поля. */
:root { --gap-w: 56px; --pad-w: 40px; --cream: #f6f0e1; --red-pen: #e0402e; }
.lk-body > section, .lk-body > section + *, .lk-body h2 + section { margin-top: var(--gap-w); }
.lk-body > section + section { margin-top: var(--gap-w); }
.lk-daily, .lk-ex, .lk-cta { margin-top: var(--gap-w); }
.lk-body .lk-tr *, .lk-body .lk-quiz * { margin-top: 0; }

/* общий каркас карточки-виджета */
.lk-tr, .lk-quiz, .lk-daily { position: relative; border-radius: var(--r); padding: var(--pad-w); font-family: var(--sans); }
/* бумага билета через border-image: уголки-орнаменты не растягиваются при любой высоте карточки */
.lk-tr, .lk-daily { background: var(--cream); border: 0; border-radius: 0; border-image: url(img/ticket-paper.webp) 92 fill / 40px stretch; padding: 52px 52px 48px; }
.lk-quiz { background: var(--mint); border: 1px solid #a5beba; }
.lk-w-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-d); }
.lk-w-k span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.lk-w-k span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-pen); }
.lk-w-k span + span { color: var(--mute); font-weight: 500; }
.lk-body .lk-w-t, .lk-w-t { margin-top: 14px; font: 400 clamp(28px, 3.6vw, 36px)/1.08 var(--serif); letter-spacing: -.04em; }
.lk-body .lk-w-sub, .lk-w-sub { margin-top: 10px; font: 400 16px/1.45 var(--sans); color: var(--ink2); }
.lk-w-err { margin-top: 16px; font: 400 15px/1.45 var(--sans); color: var(--ink2); }
.lk-body .lk-tr .lk-pill, .lk-body .lk-quiz .lk-pill, .lk-daily .lk-pill { color: #fff; text-decoration: none; }

/* переводчик */
.lk-body .lk-tr-in, .lk-tr-in { display: block; width: 100%; margin-top: 22px; padding: 16px 18px; border: 1px solid rgba(43,43,41,.2); border-radius: var(--r); background: rgba(255,255,255,.7); color: var(--ink); font: 400 18px/1.5 var(--sans); resize: vertical; }
.lk-tr-in:focus { outline: none; border-color: var(--teal); background: #fff; }
.lk-body .lk-tr-go, .lk-tr-go { margin-top: 16px; }
.lk-tr-go:disabled { opacity: .5; }
.lk-body .lk-tr-out, .lk-tr-out { margin-top: 28px; padding-top: 24px; border-top: 1px dashed rgba(56,116,120,.45); }
.lk-tr-lbl { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.lk-body .lk-tr-src, .lk-body .lk-tr-clean, .lk-tr-src, .lk-tr-clean { margin: 10px 0 24px; font: 400 21px/1.65 var(--serif); }
.lk-f { position: relative; white-space: nowrap; transition: color .3s; }
.lk-pen { position: absolute; left: -3px; top: 50%; width: calc(100% + 6px); height: 14px; transform: translateY(-45%); overflow: visible; pointer-events: none; }
.lk-pen path { fill: none; stroke: var(--red-pen); stroke-width: 2.6px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .32s ease-out; }
.lk-f.maybe .lk-pen path { stroke-width: 2px; }
.lk-tr-out.play .lk-pen path { stroke-dashoffset: 0; }
.lk-tr-out.play .lk-f { color: var(--mute); }
.lk-tr-clean, .lk-tr-stat, .lk-tr-out > .lk-pill, .lk-tr-out > .lk-tr-lbl:nth-of-type(2) { opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s; transition-delay: var(--clean-delay, 0s); }
.lk-tr-out.play .lk-tr-clean, .lk-tr-out.play .lk-tr-stat, .lk-tr-out.play > .lk-pill, .lk-tr-out.play > .lk-tr-lbl:nth-of-type(2) { opacity: 1; transform: none; }
.lk-body .lk-tr-clean, .lk-tr-clean { padding: 14px 18px; background: rgba(200,225,221,.6); border-radius: var(--r); }
.lk-body .lk-tr-stat, .lk-tr-stat { margin-bottom: 20px; font: 600 16px/1.4 var(--sans); }

/* тест */
.lk-body .lk-quiz-bar, .lk-quiz-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 24px; }
.lk-quiz-bar i { height: 4px; border-radius: 2px; background: rgba(56,116,120,.2); }
.lk-quiz-bar i.on { background: var(--teal); }
.lk-quiz-bar i.cur { background: rgba(56,116,120,.55); }
.lk-body .lk-quiz-q, .lk-quiz-q { margin-top: 20px; font: 400 23px/1.3 var(--serif); letter-spacing: -.02em; }
.lk-quiz-q span { font: 600 13px/1 var(--sans); color: var(--teal-d); letter-spacing: 0; margin-right: 6px; }
.lk-body .lk-quiz-a, .lk-quiz-a { display: grid; gap: 10px; margin-top: 18px; }
.lk-quiz-a button { text-align: left; padding: 15px 18px; border: 1px solid #a5beba; border-radius: var(--r); background: var(--paper); color: var(--ink); font: 400 17px/1.35 var(--sans); cursor: pointer; transition: border-color .15s, background .15s; }
.lk-quiz-a button:hover { border-color: var(--ink); }
.lk-quiz-a button:active { background: var(--mint3); }
.lk-body .lk-quiz-res, .lk-quiz-res { display: flex; gap: 22px; align-items: flex-start; margin-top: 24px; }
.lk-elem { flex: none; width: 108px; height: 120px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--r); }
.lk-elem small { position: absolute; top: 8px; left: 10px; font-size: 11px; color: var(--teal-d); }
.lk-elem b { font: 400 48px/1 var(--serif); letter-spacing: -.04em; }
.lk-elem span { margin-top: 6px; font-size: 13px; color: var(--ink2); }
.lk-quiz-k { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-d); }
.lk-body .lk-quiz-name, .lk-quiz-name { margin-top: 8px; font: 400 32px/1.1 var(--serif); letter-spacing: -.04em; }
.lk-body .lk-quiz-tip, .lk-quiz-tip { margin-top: 10px; font: 400 16px/1.5 var(--sans); color: var(--ink2); }
.lk-body .lk-quiz-more, .lk-quiz-more { display: inline-block; margin-top: 12px; font: 500 15px/1.3 var(--sans); color: var(--teal-d); }
.lk-body .lk-quiz-f, .lk-quiz-f { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.lk-quiz-again { border: 0; background: none; font: 500 15px/1 var(--sans); color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* билет дня */
.lk-daily-t { margin-top: 16px; font: 400 26px/1.3 var(--serif); letter-spacing: -.03em; }
.lk-daily-t b { font-weight: 400; font-style: italic; }
.lk-daily-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; font-size: 14px; color: var(--mute); }
.lk-daily-f .lk-pill { margin-left: 0; }

.lk-cta-mode { display: block; margin-top: 14px; font-size: 13px; color: rgba(251,250,246,.55); }
.lk-cta { padding: 48px 40px; }
.lk-ex { padding: var(--pad-w); }
.lk-ex-t { margin-top: 14px; }

/* подсветка паразита из счётчика */
mark.lk-hl { background: none; color: inherit; transition: background .3s; border-radius: 3px; }
.lk-hl-on mark.lk-hl { background: rgba(224,64,46,.16); box-shadow: inset 0 -2px 0 var(--red-pen); }
.lk-hl-on mark.lk-hl.cur { background: rgba(224,64,46,.32); }

/* ---- правая колонка (≥1100px) ---- */
.lk-side { display: none; }
@media (min-width: 1100px) {
  .lk-layout { display: grid; grid-template-columns: minmax(0, 680px) 300px; gap: 64px; justify-content: center; }
  .lk-layout .lk-article { margin: 0; max-width: 680px; }
  .lk-side { display: block; padding-top: 36px; }
  .lk-side-in { position: sticky; top: 96px; display: grid; gap: 16px; }
}
.lk-side-exam { padding: 24px; background: var(--mint); border: 1px solid #a5beba; border-radius: var(--r); }
.lk-side-who { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.lk-side-who p { font: 400 20px/1.25 var(--serif); letter-spacing: -.02em; }
.lk-side-who small { display: block; margin-top: 6px; font: 500 12px/1 var(--sans); color: var(--ink2); }
.lk-face.sm { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--paper); }
.lk-face.sm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.lk-face.sm img.b { opacity: 0; }
.lk-side-exam .lk-pill { width: 100%; margin-top: 20px; }
.lk-side-daily { padding: 30px 30px 28px; background: var(--cream); border-image: url(img/ticket-paper.webp) 92 fill / 30px stretch; }
.lk-side-daily .lk-daily-topic { margin-top: 10px; font: italic 400 18px/1.3 var(--serif); letter-spacing: -.02em; }
.lk-side-daily a { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; height: 44px; padding: 0 20px; border-radius: 99px; background: var(--ink); color: #fff !important; font: 500 14px/1 var(--sans); text-decoration: none !important; transition: background .2s; }
.lk-side-daily a:hover { background: #000; }
.lk-side-count { padding: 18px 20px; border: 1px dashed rgba(43,43,41,.3); border-radius: var(--r); font-size: 15px; line-height: 1.4; }
.lk-side-count b { font: 400 30px/1 var(--serif); color: var(--red-pen); font-variant-numeric: tabular-nums; vertical-align: -3px; }
.lk-side-count button { margin-top: 12px; border: 0; background: none; padding: 0; font: 600 14px/1 var(--sans); color: var(--teal-d); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- поп-апы: белая карточка, мягкая тень разрешена только здесь ---- */
.lk-pop { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.lk-pop-bg { position: absolute; inset: 0; background: rgba(43,43,41,.38); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.lk-pop.on .lk-pop-bg { opacity: 1; }
.lk-pop-card { position: absolute; pointer-events: auto; background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 18px 50px rgba(43,43,41,.18), 0 2px 8px rgba(43,43,41,.08); font-family: var(--sans); transition: transform .3s cubic-bezier(.2,.8,.25,1), opacity .25s; opacity: 0; }
.lk-pop.on .lk-pop-card { opacity: 1; }
.lk-pop-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink2); font: 300 28px/1 var(--sans); cursor: pointer; }
.lk-pop-x:hover { background: var(--paper2); color: var(--ink); }
.lk-pop-who { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.lk-pop-who b { display: block; font: 400 20px/1.1 var(--serif); letter-spacing: -.03em; }
.lk-pop-who span { display: block; margin-top: 3px; font-size: 13px; color: var(--mute); }
.lk-pop-t { margin-top: 18px; font: 400 30px/1.1 var(--serif); letter-spacing: -.04em; }
.lk-pop-line { position: relative; margin-top: 14px; font: 400 18px/1.45 var(--serif); }
.lk-pop-line .lk-ghost { visibility: hidden; }
.lk-pop-line .lk-typed { position: absolute; inset: 0; }
.lk-pop-f { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.lk-pop-later { border: 0; background: none; font: 500 15px/1 var(--sans); color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lk-pop .lk-pill { color: #fff; }
/* слайд-ин справа снизу */
.lk-pop-slide .lk-pop-card { right: 24px; bottom: 24px; width: 380px; transform: translateY(24px); }
.lk-pop-slide.on .lk-pop-card { transform: none; }
/* модалка по центру */
.lk-pop-modal .lk-pop-card { left: 50%; top: 50%; width: min(480px, calc(100% - 32px)); transform: translate(-50%, -46%); }
.lk-pop-modal.on .lk-pop-card { transform: translate(-50%, -50%); }
/* нижняя шторка (мобила) */
.lk-pop-sheet .lk-pop-card, .lk-pop-sheet-lite .lk-pop-card { left: 0; right: 0; bottom: 0; border-radius: 16px 16px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); }
.lk-pop-sheet.on .lk-pop-card, .lk-pop-sheet-lite.on .lk-pop-card { transform: none; }
.lk-pop-sheet .lk-pop-card::before, .lk-pop-sheet-lite .lk-pop-card::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
.lk-pop-sheet .lk-pill, .lk-pop-sheet-lite .lk-pill { flex: 1 1 100%; }
.lk-pop-sheet .lk-pop-f, .lk-pop-sheet-lite .lk-pop-f { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .lk-pop-card, .lk-pop-bg, .lk-sticky, .lk-tr-clean, .lk-tr-stat, .lk-pen path { transition: none !important; }
}

/* ---- мобила ---- */
@media (max-width: 640px) {
  :root { --gap-w: 44px; --pad-w: 26px; }
  .lk-tr, .lk-daily { padding: 38px 30px 34px; border-image-width: 30px; }
  .lk-quiz { padding: 26px 20px; }
  .lk-body .lk-w-t, .lk-w-t { font-size: 27px; }
  .lk-tr-go, .lk-tr-out > .lk-pill, .lk-quiz-f .lk-pill, .lk-daily-f .lk-pill { width: 100%; }
  .lk-body .lk-tr-src, .lk-body .lk-tr-clean, .lk-tr-src, .lk-tr-clean { font-size: 19px; }
  .lk-quiz-res { gap: 16px; }
  .lk-elem { width: 86px; height: 98px; }
  .lk-elem b { font-size: 38px; }
  .lk-quiz-f { justify-content: center; }
  .lk-daily-t { font-size: 22px; }
  .lk-cta { padding: 36px 20px; }
  .lk-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,250,246,.95); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(110%); transition: transform .25s ease; }
  .lk-sticky.on { transform: none; }
  .lk-sticky .lk-pill { width: 100%; }
  body.lk[data-mode] { padding-bottom: 76px; }
  .lk-pop-slide .lk-pop-card { left: 0; right: 0; bottom: 0; width: auto; border-radius: 16px 16px 0 0; }
}

/* всплывашки: классик обращается лично и понятно, что предлагают */
.lk-face.md { flex: none; width: 76px; height: 76px; }
.lk-face.md img { width: 76px; height: 76px; }
.lk-pop-who span { color: var(--wine, #a8412f); }
.lk-pop-t { font-size: 24px !important; line-height: 1.1 !important; }
.lk-pop-how { margin-top: 10px; font: 400 14px/1.45 var(--sans); color: var(--ink2, rgba(43,43,41,.7)); padding: 10px 12px; border-radius: 8px; background: #e7f2f0; }
.lk-pop { z-index: 300 !important; }
