/* HR Radar — visual refresh (27.10.2026).
   Only presentation: no markup logic, texts or scripts are touched.
   Loaded LAST. Full rollback also restores the changed templates. */

/* ---------- 1. Entry pages: login, Mini App registration, legal, closed ---------- */
body:has(.auth-shell),body:has(.legal-shell),body.closed-page{background:#f5f5ef;color:#172d2e;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}

body .auth-shell{box-sizing:border-box;max-width:480px;min-height:100vh;min-height:100dvh;margin:0 auto;padding:32px 20px 40px;display:flex;flex-direction:column;justify-content:center;gap:22px}
body .auth-shell .auth-brand{display:inline-flex;align-items:center;gap:12px;align-self:flex-start;font:700 15px/1 var(--heading,Unbounded,Arial,sans-serif);letter-spacing:.02em;color:#172d2e;text-decoration:none}
body .auth-shell .auth-brand::before{content:"HR";display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#1d3431;color:#d8ed69;font:800 13px/1 var(--heading,Unbounded,Arial,sans-serif);letter-spacing:-.02em;box-shadow:inset 0 0 0 1px rgba(216,237,105,.35)}

body .auth-shell .auth-card{margin:0;padding:34px 30px 30px;display:flex;flex-direction:column;gap:18px;background:#fff;border:1px solid #dce2d8;border-radius:26px!important;box-shadow:0 1px 2px rgba(23,45,46,.05),0 24px 48px -28px rgba(23,45,46,.28)}
body .auth-shell .auth-card>*{margin-top:0;margin-bottom:0}
body .auth-shell .auth-card .eyebrow{display:flex;align-items:center;gap:9px;font:700 11px/1.3 Inter,system-ui,sans-serif;letter-spacing:.12em;color:#52665b}
body .auth-shell .auth-card .eyebrow::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:#b9d24a}
body .auth-shell .auth-card h1{margin:0;font:500 28px/1.22 var(--heading,Unbounded,Arial,sans-serif);letter-spacing:-.03em;color:#172d2e}
body .auth-shell .auth-card p{font-size:16px;line-height:1.6;color:#3d514e}
body .auth-shell .auth-card .auth-note{padding:15px 18px;border-radius:16px!important;background:#edf3df;color:#2c3f39;font-size:15px;line-height:1.55}

body .auth-shell .auth-card button,body .auth-shell .auth-card .auth-link{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;padding:15px 24px;border:0;border-radius:999px!important;background:#1d3431;color:#fff;font:600 16px/1.2 Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer;transition:background .15s,transform .15s}
body .auth-shell .auth-card button:hover,body .auth-shell .auth-card .auth-link:hover{background:#27463f}
body .auth-shell .auth-card button:active,body .auth-shell .auth-card .auth-link:active{transform:scale(.985)}
body .auth-shell .auth-card button:focus-visible,body .auth-shell .auth-card .auth-link:focus-visible,body .auth-shell .auth-card a:focus-visible{outline:3px solid #b9d24a;outline-offset:3px}
body .auth-shell .auth-card .auth-secondary{background:#edf3df!important;color:#1d3431;box-shadow:inset 0 0 0 1px #d4dcd5}
body .auth-shell .auth-card .auth-secondary:hover{background:#e3ecd0!important}
body .auth-shell .auth-card button:disabled{opacity:.55;cursor:wait}

body .auth-shell .auth-card .auth-code{margin:0;padding:14px 12px;border-radius:16px;background:#f5f5ef;color:#1d3431;text-align:center;font:700 34px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.2em}
body .auth-shell .auth-card label{display:flex;align-items:flex-start;gap:12px;margin:0;font-size:15px;line-height:1.5;color:#2c3f39}
body .auth-shell .auth-card input[type=checkbox]{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:#1d3431}
body .auth-shell .auth-card a:not(.auth-link){color:#1d3431;text-decoration:underline;text-decoration-color:#b9d24a;text-decoration-thickness:2px;text-underline-offset:3px}
body .auth-shell .auth-card #auth-consents,body .auth-shell .auth-card #auth-challenge,body .auth-shell .auth-card #auth-complete{display:flex;flex-direction:column;gap:16px}
body .auth-shell .auth-card [hidden]{display:none!important}
body .auth-shell .auth-card .auth-hint{padding-top:4px;border-top:1px solid #e4e9e1;font-size:13px;line-height:1.55;color:#5d6a68}
body .auth-shell .auth-card #auth-error{min-height:0;font-size:14px;color:#a12c25}
body .auth-shell .auth-card #auth-error:empty{display:none}
body .auth-shell .auth-card #registration-state{font-size:15px;color:#52665b}

body .legal-shell{box-sizing:border-box;max-width:760px;margin:0 auto;padding:32px 22px 88px}
body .legal-shell>a:first-child{display:inline-block;margin-bottom:22px;font-size:15px;color:#1d3431;text-decoration:none;border-bottom:2px solid #b9d24a}
body .legal-shell h1{margin:0 0 6px;font:500 30px/1.2 var(--heading,Unbounded,Arial,sans-serif);letter-spacing:-.03em;color:#172d2e}
body .legal-shell>p{color:#586968;font-size:14px}
body .legal-shell .legal-text{margin-top:22px;font-size:16px;line-height:1.75;color:#2c3f39}

/* public "closed" page (templates/closed.html) */
body.closed-page main{box-sizing:border-box;max-width:640px;min-height:100vh;min-height:100dvh;margin:0 auto;padding:40px 22px;display:flex;flex-direction:column;justify-content:center;gap:18px}
body.closed-page small{display:inline-flex;align-items:center;gap:12px;font:700 15px/1 var(--heading,Unbounded,Arial,sans-serif);letter-spacing:.02em;color:#172d2e}
body.closed-page small::before{content:"HR";display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#1d3431;color:#d8ed69;font:800 13px/1 var(--heading,Unbounded,Arial,sans-serif)}
body.closed-page h1{margin:6px 0 0;font:500 clamp(28px,7vw,42px)/1.18 var(--heading,Unbounded,Arial,sans-serif);letter-spacing:-.035em;color:#172d2e}
body.closed-page p{margin:0;font-size:17px;line-height:1.65;color:#3d514e}
body.closed-page a{color:#1d3431;text-decoration:underline;text-decoration-color:#b9d24a;text-decoration-thickness:2px;text-underline-offset:4px}
body.closed-page a.cta{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:54px;padding:15px 26px;border-radius:999px!important;background:#1d3431;color:#fff;font-weight:600;text-decoration:none}
body.closed-page a.cta:hover{background:#27463f}
body.closed-page p:last-of-type{font-size:14px;color:#5d6a68}

@media(max-width:480px){
  body .auth-shell{padding:24px 16px 32px;justify-content:flex-start;gap:20px}
  body .auth-shell .auth-card{padding:26px 22px 24px;border-radius:22px!important;gap:16px}
  body .auth-shell .auth-card h1{font-size:24px}
  body .auth-shell .auth-card .auth-code{font-size:28px}
}

/* ---------- 2. Portal, phone width ---------- */
@media(max-width:620px){
  /* personal account tabs: one row that scrolls, instead of wrapping to two rows */
  .account-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding:2px 8px 6px 16px;-webkit-overflow-scrolling:touch}
  .account-tabs::-webkit-scrollbar{display:none}
  .account-tabs{gap:5px}
  .account .account-tabs button,.account-tabs a{flex:none;white-space:nowrap;font-size:13px;padding:9px 9px;gap:5px;min-height:42px}
  .account-tabs svg{width:14px;height:14px}

  /* search field: keep the hint on one line, with an ellipsis instead of a hard cut */
  .news-search input{text-overflow:ellipsis}
  .news-search input::placeholder{font-size:14px;text-overflow:ellipsis}

  /* feed text: calmer rhythm, more content per screen */
  .news-copy,.news-copy-preview,.news-copy-full{line-height:1.6}
}

/* keyboard focus must always be visible */
.nav a:focus-visible,.account-tabs a:focus-visible,.account-tabs button:focus-visible,.btn:focus-visible,.text-btn:focus-visible{outline:3px solid #b9d24a;outline-offset:3px;border-radius:8px}

/* ---------- 3. Remaining screens (28.10.2026) ---------- */
/* digests list: the "Опыт компаний → Разбор → Ваша практика" route read as a broken vertical list on desktop */
@media(min-width:621px){
  .catalog-route{flex-direction:row;align-items:center;align-self:end;flex-wrap:nowrap;gap:12px;border-left:0;padding:0 0 6px;min-width:0;white-space:nowrap;font-size:12px}
  .catalog-route i{font-size:14px}
}

/* onboarding: same pill buttons and soft cards as the rest of the product */
.onboarding .choice{border-radius:14px!important;border-color:#dce2d8;transition:border-color .15s,background .15s}
.onboarding .choice:hover{border-color:#b9c4b4}
.onboarding .choice:has(input:checked){border-color:#1d3431;background:#edf3df;color:#172d2e}
.onboarding .size-options .choice{border-radius:999px!important}
.onboarding input,.onboarding select{border-radius:12px!important}
.wizard-bottom button{border-radius:999px!important;min-height:54px;font-weight:600;transition:background .15s,transform .15s}
.wizard-bottom button:hover{background:#27463f}
.wizard-bottom button:active{transform:scale(.985)}
.wizard-bottom button:focus-visible,.onboarding .choice:has(input:focus-visible){outline:3px solid #b9d24a;outline-offset:3px}
.onboarding progress::-webkit-progress-value{background:#1d3431}

/* Обложки событий целиком, в исходных пропорциях: рамка по высоте картинки, без обрезки краёв
   (Антон и Николай, 29.10.2026 — обрезка съедала текст афиши). Файлы хранятся с исходными
   пропорциями (covers.encode_image, thumbnail). */
.event-cover{overflow:hidden;background:none;height:auto!important;max-height:none!important;aspect-ratio:auto!important;align-self:start;border:0}
.event-cover img{display:block;width:100%;height:auto;object-fit:contain}
.event-cover-detail{border-radius:18px!important}
.event-row .event-cover{border-radius:12px!important}
.event-detail .primary,.event-row-actions .button{border-radius:999px!important}

/* Review QA: consent links must remain part of a continuous sentence. */
body .auth-shell .auth-card label{display:block;position:relative;padding-left:34px}
body .auth-shell .auth-card label input[type=checkbox]{position:absolute;left:0;top:0}
@media(min-width:621px){.catalog-route{flex-wrap:wrap;white-space:normal}}

/* Local screen review: reuse the approved animated site logo. */
body.closed-page small.entry-brand::before,body .auth-shell .auth-brand.entry-brand::before{content:none}
.entry-brand .entry-radar-logo{display:block;flex:0 0 40px;width:40px;height:40px;background:#14221d;color:#dced83;border-radius:50%;overflow:hidden;line-height:0}
.entry-brand .entry-radar-logo svg{display:block;width:100%;height:100%}

body.closed-page button.cta{display:flex;align-items:center;justify-content:center;min-height:54px;padding:15px 26px;border:0;border-radius:999px;background:#1d3431;color:#fff;font:600 16px/1.3 Inter,system-ui,sans-serif;cursor:pointer}
body.closed-page [hidden],body .auth-shell [data-entry] [hidden],body [data-entry] [hidden]{display:none!important}
[data-entry-consents]{display:flex;flex-direction:column;gap:16px}
[data-entry-error]:empty{display:none}
[data-entry-error]{color:#a12c25}

/* Onboarding step 1: compact role pills (design only; markup and logic unchanged) */
.onboarding{max-width:600px}
.onboarding progress{height:5px;border-radius:5px}
.onboarding progress::-webkit-progress-bar{background:#dce2d8;border-radius:5px}
.onboarding progress::-webkit-progress-value{border-radius:5px}
.onboarding fieldset[data-step="1"] h1{font-size:30px;line-height:1.15;margin:18px 0 8px}
.onboarding fieldset[data-step="1"]>.quiet{margin:0 0 22px;font-size:15px;line-height:1.5}
.onboarding fieldset[data-step="1"] .role-options{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
.onboarding fieldset[data-step="1"] .role-options .choice{position:relative;display:block;width:auto;min-height:48px;padding:0;border-radius:999px!important;border:1px solid #d5dcd1;background:#fff}
.onboarding fieldset[data-step="1"] .role-options .choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.onboarding fieldset[data-step="1"] .role-options .choice span{display:flex;align-items:center;min-height:46px;padding:0 20px;font-size:16px;line-height:1.25}
.onboarding fieldset[data-step="1"] .role-options .choice:hover{border-color:#9fb09a}
.onboarding fieldset[data-step="1"] .role-options .choice:has(input:checked){background:#e6f0c8;border-color:#1d3431;box-shadow:inset 0 0 0 1px #1d3431;color:#172d2e}
.onboarding fieldset[data-step="1"] .role-options .choice:has(input:checked) span:before{content:"";width:7px;height:7px;margin-right:9px;border-radius:50%;background:#1d3431;flex:none}
.onboarding #wizard-other{padding:16px;background:#fff;border:1px solid #d5dcd1;border-radius:16px}
.onboarding #wizard-other label{font-size:14px;color:#5d6b66}
.onboarding #wizard-other select,.onboarding #wizard-other input{min-height:46px;margin-top:6px}

/* Onboarding steps 2-4: same pill language and summary card (design only) */
.onboarding fieldset[data-step="2"] h1,.onboarding fieldset[data-step="3"] h1,.onboarding fieldset[data-step="4"] h1{font-size:30px;line-height:1.15;margin:18px 0 8px}
.onboarding fieldset[data-step="2"]>.quiet,.onboarding fieldset[data-step="3"]>.quiet,.onboarding fieldset[data-step="4"]>.quiet{margin:0 0 22px;font-size:15px;line-height:1.5}
.onboarding fieldset[data-step="2"] h2{font-size:18px;margin:26px 0 12px}
.onboarding fieldset[data-step="2"] .size-options,.onboarding fieldset[data-step="3"] .role-options{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
.onboarding fieldset[data-step="2"] .size-options .choice,.onboarding fieldset[data-step="3"] .role-options .choice{position:relative;display:block;width:auto;min-height:48px;padding:0;border-radius:999px!important;border:1px solid #d5dcd1;background:#fff}
.onboarding fieldset[data-step="2"] .size-options .choice input,.onboarding fieldset[data-step="3"] .role-options .choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.onboarding fieldset[data-step="2"] .size-options .choice span,.onboarding fieldset[data-step="3"] .role-options .choice span{display:flex;align-items:center;min-height:46px;padding:0 20px;font-size:16px;line-height:1.25}
.onboarding fieldset[data-step="2"] .size-options .choice:hover,.onboarding fieldset[data-step="3"] .role-options .choice:hover{border-color:#9fb09a}
.onboarding fieldset[data-step="2"] .size-options .choice:has(input:checked),.onboarding fieldset[data-step="3"] .role-options .choice:has(input:checked){background:#e6f0c8;border-color:#1d3431;box-shadow:inset 0 0 0 1px #1d3431;color:#172d2e}
.onboarding fieldset[data-step="2"] .size-options .choice:has(input:checked) span:before{content:"";width:7px;height:7px;margin-right:9px;border-radius:50%;background:#1d3431;flex:none}
.onboarding fieldset[data-step="3"] .role-options .choice:has(input:checked) span:before{content:"✓";margin-right:8px;font-size:15px;font-weight:700;color:#1d3431;flex:none}
.onboarding fieldset[data-step="4"] .profile-summary{grid-template-columns:110px minmax(0,1fr);gap:0;margin:0 0 20px;padding:4px 18px;background:#fff;border:1px solid #d5dcd1;border-radius:16px}
.onboarding fieldset[data-step="4"] .profile-summary dt,.onboarding fieldset[data-step="4"] .profile-summary dd{margin:0;padding:14px 0;border-top:1px solid #edf0ea}
.onboarding fieldset[data-step="4"] .profile-summary dt:first-of-type,.onboarding fieldset[data-step="4"] .profile-summary dt:first-of-type+dd{border-top:0}
.onboarding fieldset[data-step="4"] .profile-summary dd{font-weight:500;line-height:1.4}

/* Onboarding: inactive "next" is clearly different from the active one */
.wizard-bottom button{transition:background .2s,color .2s,transform .15s}
.wizard-bottom button:disabled,.wizard-bottom button:disabled:hover{opacity:1;background:#e3e7df;color:#8b968f;box-shadow:inset 0 0 0 1px #d5dcd1;cursor:not-allowed;transform:none}

/* Entry cards: balanced line breaks, no dangling last word */
body .auth-shell .auth-card h1{text-wrap:balance}
body .auth-shell .auth-card p{text-wrap:pretty}

/* Entry start screen: consents inline, clear disabled state */
[data-entry-prefs]{display:flex;flex-direction:column;gap:12px}
[data-entry-prefs] p{font-size:15px;line-height:1.45;margin:0}
[data-entry-prefs] label{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.45;color:#3d514e}
[data-entry-prefs] input[type=checkbox]{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:#1d3431}
body .auth-shell .auth-card button:disabled{opacity:1;background:#e3e7df!important;color:#8b968f!important;box-shadow:inset 0 0 0 1px #d5dcd1;cursor:not-allowed}
[data-entry-wait]{display:flex;flex-direction:column;gap:18px}

/* Entry wait state: reopening Telegram is a quiet fallback, not the main action */
.auth-fallback{display:flex;flex-direction:column;gap:10px;margin-top:2px}
.auth-fallback span{font-size:14px;line-height:1.4;color:#5d6b66}
body .auth-shell .auth-card .auth-fallback .auth-link{min-height:48px;background:transparent!important;color:#172d2e!important;border:1px solid #cfd8cb!important;box-shadow:none;font-weight:500}
body .auth-shell .auth-card .auth-fallback .auth-link:hover{background:#f1f4ec!important;border-color:#9fb09a!important}

/* Mini App registration: short pitch and a light four-step visual */
body .auth-shell .auth-card #registration-state:empty{display:none}
body .auth-shell .auth-card .reg-lead{margin:0;font-size:17px;line-height:1.55;color:#3d514e}
body .auth-shell .auth-card .reg-time{margin:2px 0 0;font-size:15px;line-height:1.5;color:#5d6b66}
body .auth-shell .auth-card .reg-time b{font:500 15px/1.5 var(--heading,Unbounded,Arial,sans-serif);letter-spacing:-.01em;color:#172d2e}

/* Onboarding step 3: topics as an even 2x2 row-pair, each label on one line */
.onboarding fieldset[data-step="3"] .role-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.onboarding fieldset[data-step="3"] .role-options .choice span{justify-content:center;padding:0 8px;white-space:nowrap;font-size:clamp(12px,3.35vw,15px)}
.onboarding fieldset[data-step="3"] .role-options .choice:has(input:checked) span:before{margin-right:4px;font-size:12px}

/* Onboarding step 1: compact enough for a short phone screen; "next" stays reachable */
.onboarding .wizard-top{min-height:44px}
.onboarding fieldset[data-step="1"]{padding-top:6px;padding-bottom:12px}
.onboarding fieldset[data-step="1"] h1{font-size:26px;margin:12px 0 6px}
.onboarding fieldset[data-step="1"]>.quiet{margin:0 0 16px;font-size:14px}
.onboarding fieldset[data-step="1"] .role-options{gap:8px;margin:0 0 14px}
.onboarding fieldset[data-step="1"] .role-options .choice{min-height:42px}
.onboarding fieldset[data-step="1"] .role-options .choice span{min-height:40px;padding:0 16px;font-size:15px}
.onboarding .wizard-bottom{position:sticky;bottom:0;z-index:5;padding:12px 0 max(14px,env(safe-area-inset-bottom));border-top:0;background:linear-gradient(rgba(246,246,242,0),#f6f6f2 16px)}
.onboarding-mode main{padding-bottom:0;min-height:0}

/* Onboarding step 3: small line icons on topic chips (design only) */
.onboarding fieldset[data-step="3"] .role-options .choice span:before,.onboarding fieldset[data-step="3"] .role-options .choice:has(input:checked) span:before{content:"";display:block;flex:none;width:16px;height:16px;margin:0 5px 0 0;font-size:0;font-weight:400;background:currentColor;color:#6b7a73;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.onboarding fieldset[data-step="3"] .role-options .choice:has(input:checked) span:before{color:#1d3431}
.onboarding fieldset[data-step="3"] .role-options .choice:has(input[value="strategy"]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 17l6-6 4 4 8-8%22/%3E%3Cpath d=%22M15 7h6v6%22/%3E%3C/svg%3E")}
.onboarding fieldset[data-step="3"] .role-options .choice:has(input[value="learning"]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 9l10-5 10 5-10 5z%22/%3E%3Cpath d=%22M6 11.5V16c0 1.3 2.7 2.7 6 2.7s6-1.4 6-2.7v-4.5%22/%3E%3C/svg%3E")}
.onboarding fieldset[data-step="3"] .role-options .choice:has(input[value="team"]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%223%22/%3E%3Cpath d=%22M3 19c0-3 2.7-5 6-5s6 2 6 5%22/%3E%3Ccircle cx=%2217.2%22 cy=%229%22 r=%222.3%22/%3E%3Cpath d=%22M16.2 14.2c2.8.1 4.8 1.8 4.8 4.3%22/%3E%3C/svg%3E")}
.onboarding fieldset[data-step="3"] .role-options .choice:has(input[value="law"]){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 3h7l4 4v14H7z%22/%3E%3Cpath d=%22M13.5 3v5H18%22/%3E%3Cpath d=%22M10 13h5M10 17h5%22/%3E%3C/svg%3E")}

/* Closed / invite screens: quiet radar signals travelling out of the bottom-right corner */
.closed-page{position:relative;overflow-x:hidden}
.closed-page main{position:relative;z-index:1}
.radar-bg{--ra:.2;--ba:.2;position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.radar-bg ~ main{position:relative;z-index:1}
.radar-bg--soft{--ra:.14;--ba:.13}
.radar-bg .ring{position:absolute;right:0;bottom:0;width:150vmax;height:150vmax;border-radius:50%;border:1.5px solid rgba(29,52,49,var(--ra));transform:translate(50%,50%) scale(.04);opacity:0;animation:radar-ring 9s cubic-bezier(.2,.6,.3,1) infinite}
.radar-bg .ring:nth-child(2){animation-delay:3s}
.radar-bg .ring:nth-child(3){animation-delay:6s}
.radar-bg .beam{position:absolute;right:0;bottom:0;width:150vmax;height:150vmax;transform-origin:100% 100%;transform:rotate(-45deg);opacity:0;background:conic-gradient(from 270deg at 100% 100%,rgba(185,210,74,0) 0deg,rgba(185,210,74,var(--ba)) 28deg,rgba(185,210,74,0) 28.8deg);-webkit-mask-image:radial-gradient(circle at 100% 100%,#000 0,#000 18%,transparent 50%);mask-image:radial-gradient(circle at 100% 100%,#000 0,#000 18%,transparent 50%);animation:radar-beam 9s linear infinite}
@keyframes radar-ring{0%{transform:translate(50%,50%) scale(.04);opacity:.9}70%{opacity:.35}100%{transform:translate(50%,50%) scale(1);opacity:0}}
@keyframes radar-beam{0%{transform:rotate(-45deg);opacity:0}12%{opacity:1}82%{opacity:1}100%{transform:rotate(58deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.radar-bg .ring,.radar-bg .beam{animation:none}.radar-bg .ring{opacity:.35;transform:translate(50%,50%) scale(.3)}.radar-bg .ring:nth-child(2){transform:translate(50%,50%) scale(.55)}.radar-bg .ring:nth-child(3){transform:translate(50%,50%) scale(.8)}.radar-bg .beam{opacity:.7;transform:rotate(8deg)}}

/* Stub with inline consents: same quiet disabled state as the entry card */
body.closed-page [data-entry-prefs]{display:flex;flex-direction:column;gap:12px}
body.closed-page [data-entry-prefs] label,body.closed-page [data-entry-prefs] p{font-size:15px;line-height:1.45}
body.closed-page button.cta:disabled{opacity:1;background:#e3e7df;color:#8b968f;box-shadow:inset 0 0 0 1px #d5dcd1;cursor:not-allowed}

/* Home: compact two-colour header and a quiet ticker flowing out of "В фокусе сегодня" */
/* Slogan lives in the header next to the logo (web only) */
.brand-tagline{display:none}
@media(min-width:1000px){.header .brand-tagline{display:flex;flex-direction:column;margin-left:8px;font:500 clamp(12px,calc(2.67vw - 16px),19px)/1.2 var(--heading,Unbounded,Arial,sans-serif);letter-spacing:-.02em;color:#172d2e}.brand-tagline>span{display:block;white-space:nowrap}.brand-tagline>span+span{color:#4a6354}body[data-mini="1"] .brand-tagline{display:none}}
.today-column .section-title{display:flex;align-items:center;gap:20px}
.today-column .section-title h2{flex:none}
.focus-ticker{flex:1;min-width:0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent)}
.ticker-track{display:flex;width:max-content;animation:ticker-flow 46s linear infinite}
.ticker-set{display:flex;align-items:center;flex:none}
.ticker-set span{white-space:nowrap;font-size:13px;color:#7f8f87;padding-right:34px;position:relative}
.ticker-set span::after{content:"";position:absolute;right:14px;top:50%;width:4px;height:4px;margin-top:-2px;border-radius:50%;background:#b9d24a}
@keyframes ticker-flow{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:none}.ticker-set[aria-hidden=true],.ticker-set+.ticker-set{display:none}}

/* Home on phones: focus news first, then the week, then digests, then the nearest three events */
@media(max-width:780px){body[data-view=home] .homegrid{grid-template-areas:"today" "week" "aside";grid-template-rows:auto}}

/* News card: source and original appear only after "Читать далее" (short texts show them at once) */

/* "Что сделать сейчас": quiet white button with a lime accent on its left edge */
.news-card .practice-trigger{background:#fff;border:1px solid #d5dcd1;border-radius:11px;box-shadow:inset 3px 0 0 #b9d24a;padding-left:13px;color:#172d2e;font-weight:500}
.news-card .practice-trigger>svg{display:inline-block;width:17px;height:17px;flex:none;color:#4a6354}
.news-card .practice-trigger:hover{background:#f6f9ef}
.news-card .practice-trigger[aria-expanded=true]{background:#f3f7e8;border-color:#b9c7b6;box-shadow:inset 3px 0 0 #1d3431}
.news-card .practice-trigger .step-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border:0;border-radius:999px;background:#eef2e6;color:#1d3431;font-size:11px}
.news-card .iconbtn,.news-card .card-actions .text-btn{border-radius:11px}
.news-card .practice-trigger:focus-visible{outline:3px solid #b9d24a;outline-offset:2px}

/* Opened "Что сделать сейчас": compact numbered steps, inline "Что получится:", highlighted quote */
.news-card .news-steps{margin:10px 0 0;padding:0 12px;background:#f6f9ef;border:1px solid #e1ead0;border-left:3px solid #b9d24a;border-radius:10px}
.news-card .news-steps .step-list{counter-reset:step;list-style:none;margin:0;padding:0;background:none;border:0;border-radius:0;line-height:1.4}
.news-card .news-steps .step-list>li{counter-increment:step;position:relative;margin:0;padding:8px 0 8px 26px;border:0;border-top:1px solid #e3ebd3;color:#172d2e;font-weight:400}
.news-card .news-steps .step-list>li:first-child{border-top:0}
.news-card .news-steps .step-list>li::marker{content:""}
.news-card .news-steps .step-list>li::before{content:counter(step);position:absolute;left:0;top:9px;display:flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#1d3431;color:#b9d24a;font-size:10px;font-weight:600;line-height:1}
.news-card .news-steps .step-list>li>strong{display:block;font-size:13.5px;line-height:1.3;font-weight:600;color:#172d2e}
.news-card .news-steps .step-list .step-result{margin:3px 0 0;font-size:12.5px;line-height:1.4;color:#3b4d44}
.news-card .news-steps .step-result-label{display:inline;margin:0 4px 0 0;padding:0;font-size:12.5px;font-weight:700;color:#172d2e;background:none}
.news-card .news-steps .step-result-label::after{content:":"}
.news-card .news-steps .step-list blockquote{margin:5px 0 0;padding:4px 9px;background:#f1f6e1;border:0;border-left:2px solid #d3e29a;border-radius:0 8px 8px 0;font-size:11.5px;line-height:1.38;color:#3b4d44}
.news-card .news-steps .step-list blockquote b{display:inline;margin:0 4px 0 0;font-size:10.5px;font-weight:600;letter-spacing:.02em;color:#5d6b53}
.news-card .news-steps .step-list blockquote em{font-style:italic;color:#2f3f39}

/* Source and date share one quiet line at the top left; the original link closes the opened steps, bottom right. */
.news-card .news-head .news-meta{justify-content:flex-start;text-align:left;gap:0 6px;font-size:12px;line-height:1.5;color:var(--muted,#6b7a73)}
.news-card .news-head .news-meta time{margin:0;color:inherit;font-size:inherit;line-height:inherit}
.news-card .news-head .news-meta .news-source{color:inherit}

/* Top line of a card: source (a link to the original) on the left, date on the right. */
.news-card .news-head .news-meta{justify-content:space-between;align-items:baseline;gap:12px}
.news-card .news-head .news-meta .news-source{display:inline-flex;align-items:center;gap:4px;min-width:0;margin:0 auto 0 0;color:#3b4d44;text-decoration:none;border-bottom:1px solid #d3e29a}
.news-card .news-head .news-meta .news-source svg{width:12px;height:12px;flex:none;color:#6b7a73}
.news-card .news-head .news-meta .news-source:hover{border-bottom-color:#9db92f}
.news-card .news-head .news-meta time{margin:0 0 0 auto;white-space:nowrap}

/* Type scale: buttons 13px, article text 15px, week headlines 16px, so nothing in the cards is smaller than the buttons. */
.news-card .practice-trigger,.week-body .news-card .practice-trigger,.news-card .card-actions .practice-trigger{font-size:13px}
.news-card .news-copy-preview,.news-card .news-copy-full{font-size:15px;line-height:1.55}
.week-panel .weekly-news>summary h3,.week-panel .week-item>summary h3{font-size:16px;line-height:1.3;font-weight:600}
.week-panel .week-number{font-size:11px}

/* Action buttons: no outline, larger icons (24px in a 44px target); saved bookmark is filled. */
.news-card .card-actions{gap:2px 0}
.news-card .card-actions .iconbtn,.news-card .card-actions .share-action,.news-card .card-actions .hide-action{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;color:#3b4d44;font-size:0;gap:0}
.news-card .card-actions .iconbtn:hover,.news-card .card-actions .share-action:hover,.news-card .card-actions .hide-action:hover{background:#eef2e6}
.news-card .card-actions .iconbtn svg,.news-card .card-actions .share-action svg,.news-card .card-actions .hide-action svg{width:24px;height:24px;stroke-width:1.6}
.news-card .card-actions .iconbtn[aria-pressed=true]{background:transparent;border:0;color:#1d3431}
.news-card .card-actions .iconbtn[aria-pressed=true] svg{fill:currentColor}
.news-card .card-actions .iconbtn:focus-visible,.news-card .card-actions .share-action:focus-visible,.news-card .card-actions .hide-action:focus-visible{outline:3px solid #b9d24a;outline-offset:1px}
.news-card .card-actions .practice-trigger{margin-right:6px}
@media(max-width:380px){.news-card .card-actions .iconbtn,.news-card .card-actions .share-action,.news-card .card-actions .hide-action{width:40px;min-width:40px;height:40px}.news-card .card-actions .iconbtn svg,.news-card .card-actions .share-action svg,.news-card .card-actions .hide-action svg{width:22px;height:22px}}

/* Icons stay together: on narrow phones they drop to their own line as a group. */
.news-card .card-actions .nc-icons{display:flex;flex-wrap:nowrap;align-items:center}
.week-body .nc-icons{margin-left:auto}
@media(max-width:380px){.news-card .card-actions .nc-icons>*{width:40px!important;min-width:40px!important;height:40px!important}}

/* Hide button removed; icons sit at the right edge; the steps panel ends with a small original-article link. */
.news-card .card-actions .nc-icons{margin-left:auto}
.news-card .news-steps .steps-original{display:flex;align-items:center;gap:5px;justify-content:flex-end;margin:10px 0 0;font-size:12px;line-height:1.3;color:#6b7266;text-decoration:none}
.news-card .news-steps .steps-original:hover{color:#1f261b;text-decoration:underline}
.news-card .news-steps .steps-original svg{width:13px;height:13px}

/* News search: one thin outline around the whole pill (button included); filters wrap instead of scrolling. */
.news-search input[type=search],.news-search input[type=search]:focus,.news-search input[type=search]:focus-visible{outline:0!important;box-shadow:none!important}
.news-search:focus-within{border-color:#8fa38f;box-shadow:none;outline:0}
.feed-controls .filter-chips{display:flex;flex-wrap:wrap;gap:8px;overflow:visible;padding:0;border:0;margin:14px 0 4px}
.feed-controls .filter-chips a{flex:0 0 auto;white-space:nowrap;font-size:14px;padding:9px 14px;min-height:0}
.feed-controls .filter-chips::-webkit-scrollbar{display:none}
@media(max-width:600px){.feed-controls .filter-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 18px}.feed-controls .filter-chips a{white-space:normal;text-align:center;display:flex;align-items:center;justify-content:center;min-height:44px;line-height:1.2;padding:8px 10px}.feed-controls .filter-chips a:first-child{grid-column:1/-1}}

/* Filters as plain text with dividers; the active one is bold and underlined. */
.feed-controls .filter-chips{display:block;margin:16px 0 18px;line-height:2;font-size:15px}
.feed-controls .filter-chips a{display:inline;border:0;background:transparent;padding:0;min-height:0;font-size:15px;font-weight:500;color:#6b7266;text-decoration:none;white-space:nowrap;border-radius:0}
.feed-controls .filter-chips a+a::before{content:"·";margin:0 9px;color:#b4bbab;font-weight:400}
.feed-controls .filter-chips a[aria-current=page]{color:#1f261b;font-weight:700;text-decoration:underline;text-decoration-color:#b9d24a;text-decoration-thickness:3px;text-underline-offset:6px}
@media(max-width:600px){.feed-controls .filter-chips{display:block}.feed-controls .filter-chips a{display:inline;min-height:0;padding:0}.feed-controls .filter-chips a:first-child{grid-column:auto}}
.feed-controls .filter-chips{white-space:normal!important;overflow:visible!important;width:auto!important}
.feed-controls .filter-chips{display:flex!important;flex-wrap:wrap;align-items:center;row-gap:4px}
.feed-controls .filter-chips a+a::before{content:none}
.feed-controls .filter-chips a:not(:last-child)::after{content:"·";margin:0 9px;color:#b4bbab;font-weight:400;text-decoration:none;display:inline-block}
.feed-controls .filter-chips a[aria-current=page]{text-decoration:none;box-shadow:inset 0 -3px 0 #b9d24a;padding-bottom:3px}
.feed-controls .filter-chips a[aria-current=page]::after{box-shadow:none}

/* Mobile filters: compact chips in one swipeable row; the first ones are the reader's own topics. */
@media(max-width:600px){
.feed-controls .filter-chips{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:8px;margin:14px -16px 14px;padding:2px 16px 6px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.feed-controls .filter-chips::-webkit-scrollbar{display:none}
.feed-controls .filter-chips a{flex:0 0 auto;white-space:nowrap;display:inline-flex;align-items:center;min-height:38px;padding:0 14px;font-size:14px;font-weight:500;line-height:1;color:#40463a;background:#fff;border:1px solid #dfe4de;border-radius:999px;box-shadow:none;scroll-snap-align:start;text-decoration:none}
.feed-controls .filter-chips a::before,.feed-controls .filter-chips a::after{content:none!important}
.feed-controls .filter-chips a[aria-current=page]{background:#1d2d2b;border-color:#1d2d2b;color:#fff;font-weight:600;box-shadow:none;padding-bottom:0}
}
@media(min-width:601px){
.feed-controls .filter-chips{display:flex!important;flex-wrap:wrap!important;gap:8px;margin:16px 0 14px}
.feed-controls .filter-chips a{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;font-size:14px;font-weight:500;color:#40463a;background:#fff;border:1px solid #dfe4de;border-radius:999px;box-shadow:none;text-decoration:none}
.feed-controls .filter-chips a::before,.feed-controls .filter-chips a::after{content:none!important}
.feed-controls .filter-chips a[aria-current=page]{background:#1d2d2b;border-color:#1d2d2b;color:#fff;font-weight:600;padding-bottom:0}
}

/* Web: calm rectangular filter list, left aligned, no borders, no green accents. */
@media(min-width:601px){
.feed-controls .filter-chips,.feed-facets .filter-chips{display:flex!important;flex-direction:column;flex-wrap:nowrap!important;align-items:stretch;gap:2px;margin:6px 0 18px;padding:0;overflow:visible}
.feed-facets .filter-chips a{display:flex;align-items:center;justify-content:flex-start;min-height:0;padding:10px 14px;font-size:15px;font-weight:500;line-height:1.3;text-align:left;color:#40463a;background:transparent;border:0;border-radius:8px;box-shadow:none!important;text-decoration:none;white-space:normal}
.feed-facets .filter-chips a:hover{background:#ecefe6}
.feed-facets .filter-chips a[aria-current=page]{background:#1d2d2b;color:#fff;font-weight:600;box-shadow:none!important;border:0;padding-bottom:10px}
.feed-facets .filter-chips a::before,.feed-facets .filter-chips a::after{content:none!important;box-shadow:none!important}
}
.feed-facets .filter-chips a[aria-current=page]{box-shadow:none!important}
@media(min-width:601px){.feed-facets .filter-chips a[aria-current=page]{background:#e9ede1;color:#1d2d2b;font-weight:700}.feed-facets .filter-chips a:hover:not([aria-current=page]){background:#f0f2ea}}
/* Sticky filter column must stop below the sticky header, not under it. */
@media(min-width:601px){.feed-facets{top:96px}}

/* Digests: same decisions as news cards — airy text, borderless larger icons grouped at the right. */
.digest-tile .digest-editorial-body .meta{font-size:13px;color:#6b7266}
.digest-tile .digest-teaser-text{font-size:15px;line-height:1.55}
.digest-tile .teaser-toggle{font-size:13px}
.digest-tile .digest-actions{display:flex;align-items:center;gap:8px}
.digest-tile .digest-actions .nc-icons,.digest-top-actions,.end-actions{display:flex;align-items:center;gap:0}
.digest-tile .digest-actions .nc-icons{margin-left:auto}
.digest-actions .iconbtn,.digest-top-actions .iconbtn,.end-actions .iconbtn{width:44px;height:44px;min-width:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;color:#1f261b}
.digest-actions .iconbtn svg,.digest-top-actions .iconbtn svg,.end-actions .iconbtn svg{width:24px;height:24px}
.digest-actions .iconbtn[aria-pressed=true] svg,.digest-top-actions .iconbtn[aria-pressed=true] svg,.end-actions .iconbtn[aria-pressed=true] svg{fill:currentColor}
.digest-top-actions{justify-content:space-between}
.end-actions{justify-content:flex-end}
@media(max-width:380px){.digest-actions .iconbtn{width:40px;min-width:40px;height:40px}}
.digest-tile .digest-editorial-body .digest-teaser-text{font-size:15px;line-height:1.55;min-height:4.65em;max-height:none}
.js-enabled .digest-tile .digest-teaser-text{max-height:4.65em}
.js-enabled .digest-tile .digest-teaser[data-expanded=true] .digest-teaser-text{max-height:none}

/* Digest cover facts: one size and baseline for "7 кейсов" and "8 минут чтения". */
.digest-cover .cover-facts{font-size:14px;line-height:1.3;gap:18px;align-items:center}
.digest-cover .cover-facts>span{display:inline-flex;align-items:baseline;gap:5px}
.digest-cover .cover-facts b{font-family:inherit;font-size:inherit;font-weight:700;margin:0}
.digest-cover .cover-facts .cover-arrow{display:block;margin-left:auto;font-size:25px;line-height:1}

/* Digest page: each case is a calm white card; its parts are told apart by quiet tints, not by bright accents. */
.digest-body .cases-title{margin:36px 0 18px}
.digest-body .case{background:#fff;border:1px solid #e3e6dc;border-top:1px solid #e3e6dc;border-radius:14px;padding:26px 28px;margin:0 0 20px}
.digest-body .case h3{font-size:22px;line-height:1.35;margin:0 0 14px;color:#1d2d2b}
.digest-body .case>p:first-of-type{font-size:14px;line-height:1.5;color:#6b7266;margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid #eceee5}
.digest-body .case>p:first-of-type strong,.digest-body .case>p:first-of-type b{color:#40463a}
.digest-body .case h4{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#6f7e63;margin:20px 0 6px}
.digest-body .case p{font-size:16px;line-height:1.7;margin:0 0 12px}
.digest-body .case .practical{display:grid;grid-template-columns:1fr;gap:12px;margin:20px 0 8px}
.digest-body .case .try,.digest-body .case .check{padding:16px 18px;border-radius:10px}
.digest-body .case .try{background:#f6f2e8;border-left:3px solid #d9ccaa}
.digest-body .case .check{background:#edf2e8;border-left:3px solid #bccbad}
.digest-body .case .try h4,.digest-body .case .check h4{margin:0 0 6px;color:#5f6a54}
.digest-body .case .practical p:last-child{margin:0}
.digest-body .case .sources{font-size:13px;line-height:1.5;color:#7a8172;margin:16px 0 0;padding-top:12px;border-top:1px solid #eceee5}
@media(min-width:760px){.digest-body .case .practical{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.digest-body .case{padding:20px 18px;border-radius:12px}.digest-body .case h3{font-size:20px}}

/* Digest follow-ups: pine company name, tidy closing card with the actions in its corner, lime for the saved state. */
.digest-body .case>p:first-of-type{color:#1d3431}
.digest-body .case>p:first-of-type strong,.digest-body .case>p:first-of-type b{color:#6b7266;font-weight:600}
.digest-body .case>p:first-of-type{font-weight:600}
.digest-body .closing{position:relative;background:#fff;border:1px solid #e3e6dc;border-radius:14px;padding:26px 28px;margin:8px 0 24px;font-family:inherit}
.digest-body .closing h2{font-family:var(--heading);font-size:22px;font-weight:450;line-height:1.35;color:#1d2d2b;margin:0 0 14px;padding-right:100px}
.digest-body .closing p{font-size:16px;line-height:1.7;margin:0 0 12px}
.digest-body .closing ol{font-size:16px;line-height:1.7;padding-left:22px;margin:0 0 12px}
.digest-body .closing .closing-actions{position:absolute;top:14px;right:14px;margin:0}
@media(max-width:600px){.digest-body .closing{padding:20px 18px;border-radius:12px}.digest-body .closing h2{font-size:20px;padding-right:96px}.digest-body .closing .closing-actions{top:10px;right:8px}}
.iconbtn[aria-pressed=true] svg,.icon-button[aria-pressed=true] svg{fill:#d8ed69!important;stroke:#1d3431}
.iconbtn[data-share]:active svg,.share-action:active svg{fill:#d8ed69}

/* "Главное за одну минуту": the one tinted card on the page, so it stands apart from the white case cards. */
.digest-body .minute{background:#eef3d9;border:1px solid #d9e3b3;border-top:1px solid #d9e3b3;border-radius:14px;padding:26px 28px;margin:28px 0 8px}
.digest-body .minute h2{font-family:var(--heading);font-size:21px;font-weight:450;line-height:1.35;color:#1d3431;margin:0 0 18px}
.digest-body .minute ul{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.digest-body .minute li{position:relative;padding-left:22px;font-size:16px;line-height:1.65;color:#2a3a35}
.digest-body .minute li::before{content:"";position:absolute;left:2px;top:.62em;width:8px;height:8px;border-radius:50%;background:#b9d24a}
.digest-body .minute li strong{color:#1d3431}
@media(max-width:600px){.digest-body .minute{padding:20px 18px;border-radius:12px}.digest-body .minute h2{font-size:19px}}
/* Calmer tint for the summary card: pale sage instead of lime. */
.digest-body .minute{background:#e9efea;border-color:#d4dfd7}
.digest-body .minute li::before{background:#7f9a8c}
.digest-body .minute h2 .minute-accent{color:#5f8671}

/* Digest "try / check": white bordered cards with a round badge (variant Б). */
.digest-body .case .try,.digest-body .case .check{background:#fff;border:1px solid #d9d4c2;border-left:1px solid #d9d4c2;border-radius:12px;padding:16px 18px}
.digest-body .case .check{border-color:#c9d6cd}
.digest-body .case .try h4,.digest-body .case .check h4{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:12px;color:#1d3431}
.digest-body .case .pc-badge{flex:none;width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#1d3431;color:#fff}
.digest-body .case .check .pc-badge{background:#5f8671}
.digest-body .case .pc-badge .icon{width:16px;height:16px;stroke-width:2}

/* Section headings: the summary title is never smaller than the case titles; the lead-in to the cases is muted. */
.digest-body .minute h2{font-size:24px;line-height:1.3}
.digest-body .cases-title{font-size:22px;font-weight:450;color:#8a9484}
@media(max-width:600px){.digest-body .minute h2{font-size:21px}.digest-body .cases-title{font-size:20px}}
.digest-body .closing{scroll-margin-top:110px}
.rail .rail-closing{list-style:none}

/* Events: same decisions as news cards — calm tabs, borderless larger bookmark at the right, meta without a repeated date. */
.section-head+.tabs a[aria-current=page],.tabs a[aria-current=page]{background:#e9ede1;border-color:#e9ede1;color:#1d3431;font-weight:700}
.event-row .meta{font-size:13px;color:#6b7266}
.event-row-body>small{font-size:13px;color:#6b7266}
.event-row-body>p{font-size:15px;line-height:1.55}
.event-row-actions{display:flex;align-items:center;gap:8px}
.event-row-actions .nc-icons{margin-left:auto;display:flex;align-items:center}
.event-row-actions .iconbtn{width:44px;height:44px;min-width:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;color:#1f261b}
.event-row-actions .iconbtn svg{width:24px;height:24px}

/* Events "Подробнее": same shape as the digest button (text left, arrow right, fills the row), but white. */
.event-row-actions .event-more{flex:1 1 0;display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:10px 14px;font-size:12px;font-weight:600;border-radius:6px;background:#fff;border:1px solid #dfe4de;color:#1d3431;white-space:nowrap}
.event-row-actions .event-more:hover{background:#f8f9f4;border-color:#cfd6cb}
.event-row .event-row-actions a.event-more{border-radius:6px!important}

/* Event page: same actions row as the list; date and price like in the list. */
.event-detail .event-row-actions{display:flex;align-items:center;gap:8px;margin-top:18px}
.event-detail .event-row-actions a.event-more{border-radius:6px!important;max-width:none}
.event-detail .meta{font-size:13px;color:#6b7266}
.event-detail .event-free{font-size:13px;color:#6b7266;margin:0 0 4px}
.event-detail>p{font-size:15px;line-height:1.6}

/* Compact actions on wide screens; the digest button stays lime at every width. */
.digest-tile .digest-actions a.button.primary{background:#d8ed69;border-color:#d8ed69;color:#1d3431}
.digest-tile .digest-actions a.button.primary:hover{background:#cfe55a;border-color:#cfe55a}
@media(min-width:700px){
.event-row-actions .event-more,.event-detail .event-row-actions a.event-more{flex:0 0 auto;min-width:190px;width:auto;gap:24px}
.digest-tile .digest-actions a.button.primary{flex:0 0 auto;min-width:190px;gap:24px}
}

/* Home "Радар в Telegram": friendly copy and the same white button as the other secondary actions. */
.telegram p{font-size:15px;line-height:1.55}
.telegram a.telegram-open{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:15px;font-weight:600;color:#1d3431;text-decoration:underline;text-decoration-color:#b9d24a;text-decoration-thickness:2px;text-underline-offset:5px}
.telegram a.telegram-open:hover{text-decoration-color:#1d3431}

/* Profile: one language with the rest of the site — light active tab, one card and heading style, calm secondary actions. */
.account-tabs a,.account .account-tabs a{border:1px solid #dfe4de;border-radius:8px;background:transparent;color:#40463a;font-size:14px;font-weight:500;padding:10px 14px;min-height:44px}
.account-tabs a[aria-selected=true],.account .account-tabs a[aria-selected=true]{background:#e9ede1;border-color:#e9ede1;color:#1d3431;font-weight:700}
.account-card,.profile-card{background:#fff;border:1px solid #e3e6dc;border-radius:14px;padding:24px 26px;margin:0 0 18px;box-shadow:none;max-width:none}
.account-card h2,.profile-card h2{font-family:var(--heading);font-size:19px;font-weight:450;line-height:1.35;letter-spacing:0;color:#1d2d2b;margin:0 0 14px}
.account-card-head h2{margin:0}
.account-card p,.profile-card p{font-size:15px;line-height:1.55}
.account-login-row{padding:4px 0 10px;border-bottom:0;gap:6px 20px}
.account-login-row .quiet{font-size:13px;color:#6b7266}
.account-login-row b{font-size:16px;font-weight:600;color:#1d3431}
.account-card a[data-site-login]{font-size:15px;font-weight:600;color:#1d3431;text-decoration:underline;text-decoration-color:#b9d24a;text-decoration-thickness:2px;text-underline-offset:5px}
.account .account-logout{margin-top:6px}
.account .account-logout button{font-size:14px;font-weight:500;color:#6b7266;text-decoration:underline;text-underline-offset:4px;padding:0;border:0;background:transparent}
.account-card .button,.profile-card button:not(.primary){font-size:12px;font-weight:600;min-height:44px;padding:10px 14px;border-radius:6px;background:#fff;border:1px solid #dfe4de;color:#1d3431}
.account-card .button:hover,.profile-card button:not(.primary):hover{background:#f8f9f4;border-color:#cfd6cb}
@media(max-width:620px){.account-card,.profile-card{padding:20px 18px;border-radius:12px}.account-card h2,.profile-card h2{font-size:17px}.account .account-tabs a{font-size:13px;padding:10px 12px}.account-login-row{gap:6px}}

/* Profile: feed settings actions and the Telegram link share the site-wide look. */
.priority-footer{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.priority-footer .priority-save{background:#d8ed69!important;border:1px solid #d8ed69!important;color:#1d3431!important;font-size:12px;font-weight:600;min-height:44px;padding:10px 20px;border-radius:6px!important;min-width:150px}
.priority-footer .priority-save:hover{background:#cfe55a!important;border-color:#cfe55a!important}
.priority-footer .priority-feed{background:transparent;border:0;padding:0;font-size:15px;font-weight:600;color:#1d3431;text-decoration:underline;text-decoration-color:#b9d24a;text-decoration-thickness:2px;text-underline-offset:5px;min-height:0}
.account-card a.telegram-open{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font-size:15px;font-weight:600;color:#1d3431;text-decoration:underline;text-decoration-color:#b9d24a;text-decoration-thickness:2px;text-underline-offset:5px}

/* One shared material for someone without an account (Mini App page, no navigation). */
.shared-page{background:#f5f5ef}
.shared-shell{max-width:640px;margin:0 auto;padding:18px 16px 40px}
.shared-brand{display:block;font:600 15px/1 var(--heading);letter-spacing:.02em;color:#1d3431;margin:6px 0 16px}
.shared-card{background:#fff;border:1px solid #e3e6dc;border-radius:14px;padding:22px 22px 18px}
.shared-card h1{font-family:var(--heading);font-size:22px;font-weight:450;line-height:1.35;color:#1d2d2b;margin:8px 0 12px}
.shared-card h2{font-family:var(--heading);font-size:17px;font-weight:450;margin:20px 0 10px;color:#1d2d2b}
.shared-card p{font-size:15px;line-height:1.6;margin:0 0 12px}
.shared-card .meta{font-size:13px;color:#6b7266}
.shared-cases{padding-left:20px;font-size:15px;line-height:1.6}
.shared-card .original-link{font-size:14px;font-weight:600;color:#1d3431;text-decoration:underline;text-decoration-color:#b9d24a;text-decoration-thickness:2px;text-underline-offset:5px}
.shared-cta-box{margin-top:16px;background:#e9efea;border:1px solid #d4dfd7;border-radius:14px;padding:20px 22px}
.shared-cta-box h2{font-family:var(--heading);font-size:18px;font-weight:450;margin:0 0 8px;color:#1d3431}
.shared-cta-box p{font-size:15px;line-height:1.55;margin:0 0 14px}
.shared-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;background:#d8ed69;border:1px solid #d8ed69;border-radius:6px;font-size:13px;font-weight:600;color:#1d3431;text-decoration:none}
.news-single{margin-top:14px}

/* Mobile topic chips: the first chip keeps the page gutter even when scroll-snap is active (iOS). */
@media(max-width:600px){.feed-controls .filter-chips{scroll-padding-inline:16px;scroll-snap-type:none}}

/* iOS in-app browsers (Telegram on iPhone): keep the top bar and the bottom tabs glued to the screen while the page scrolls.
   Smooth scrolling and unpromoted sticky/fixed layers make them lag and "swim" there; the Mini App is not affected. */
@media(hover:none){
 html{scroll-behavior:auto}
}
.header,.bottomnav{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.bottomnav{contain:layout paint}
html,body{overscroll-behavior-y:none}
/* Кнопка «Далее» закреплена внизу (.wizard-bottom): запас, чтобы последние варианты не уходили под неё. */
.onboarding{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
/* Мобильная карточка события: маленькая обложка в левой колонке под числом, целиком (без обрезки и скруглений). */
@media(max-width:620px){
 .events-list .event-row.has-cover{grid-template-rows:auto 1fr auto;row-gap:10px}
 .events-list .event-row.has-cover .event-date{grid-column:1;grid-row:1}
 .events-list .event-row.has-cover .event-row-body{grid-column:2;grid-row:1/3}
 .events-list .event-row.has-cover .event-cover{grid-column:1;grid-row:2;align-self:start;width:54px;height:auto;max-width:54px;margin:0;background:none;border:0;border-radius:0!important;overflow:visible}
 .events-list .event-row.has-cover .event-cover img{width:100%;height:auto;object-fit:contain;border-radius:0}
 .events-list .event-row.has-cover .event-row-actions{grid-row:3;margin-top:6px}
}
/* галочки согласия под сводкой на шаге 4 анкеты (6.11.2026: перенесены с форм входа) */
.wizard-consents{display:flex;flex-direction:column;gap:12px;margin:22px 0 0;padding-top:18px;border-top:1px solid #dce2d8}
.wizard-consents p{margin:0;font-size:15px;line-height:1.45}
.onboarding label.wizard-check{display:flex;align-items:flex-start;gap:10px;margin:0;font-size:15px;line-height:1.45;color:#3d514e;cursor:pointer}
.wizard-check input[type=checkbox]{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:#1d3431}
