/* Журнал eSIMD — стили по макету Figma «27 · Журнал — RU» (Projects-STB-1).
   Светлая тема — по умолчанию, тёмная — html[data-theme="dark"]. Шрифт Inter (OFL) лежит в assets/fonts. */

@font-face{font-family:Inter;font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/inter-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#f6f5f4; --surface:#fff; --surface-bd:#e8e8e8; --surface-alt:#f8f9fb; --pill:rgba(255,255,255,.7); --line:#e8e8e8;
  --text:#131313; --text2:#606060; --muted:#8b8f98; --accent:#0075ff; --accent-hover:#0062d6; --on-accent:#fff;
  --link:#0075ff;                                  /* цвет ссылок/акцентного текста (в тёмной теме светлее кнопок) */
  --soft:#f6f5f4; --code:#f1f2f4;
  --tag-howto-bg:#e6f0ff; --tag-howto:#0075ff;
  --tag-guide-bg:#dcfce7; --tag-guide:#16a34a;
  --tag-story-bg:#fdf6e8; --tag-story:#92400e;
  --tag-news-bg:#f3e8ff; --tag-news:#7e22ce;
  --note-bg:#fdf6e8; --note-bd:#f3dca8; --note:#92400e; --note-ic:#fef3c7;
  --foot-bg:#1c1c1e; --foot-text:#fff; --foot-link:rgba(255,255,255,.7); --foot-muted:#606060; --foot-line:#606060;
  --shadow:0 4px 16px rgba(13,23,41,.08); --shadow-pop:0 12px 28px -6px rgba(18,23,38,.14);
  --wrap:1040px; --gutter:32px;                   /* как --container-max и --gutter на esimd.ru */
  color-scheme:light;
}
html[data-theme="dark"]{
  --bg:#1c1d21; --surface:#26282d; --surface-bd:#363940; --surface-alt:#30333a; --pill:rgba(38,40,45,.7); --line:#363940;
  --text:#fff; --text2:#b4b8c0; --muted:#a5a5a5; --accent:#2f80ff; --accent-hover:#5aa9ff; --on-accent:#fff; --link:#5aa9ff;
  --soft:#30333a; --code:#30333a;
  --tag-howto-bg:#16233a; --tag-howto:#5aa9ff;
  --tag-guide-bg:#12301f; --tag-guide:#4ade80;
  --tag-story-bg:#3b2c0c; --tag-story:#fcd34d;
  --tag-news-bg:#2a1a3d; --tag-news:#c084fc;
  --note-bg:#22242c; --note-bd:#6a5220; --note:#fcd34d; --note-ic:#3b2c0c;
  --shadow:0 4px 16px rgba(0,0,0,.35); --shadow-pop:0 12px 28px -6px rgba(0,0,0,.5);
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:110px}
body.j{margin:0;background:var(--bg);color:var(--text);font:400 16px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100vh}
.j img{max-width:100%;height:auto}
.j a{color:inherit;text-decoration:none}
.j :focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.wrap{width:100%;max-width:calc(var(--wrap) + 2*var(--gutter));margin:0 auto;padding:0 var(--gutter)}
main.wrap{flex:1}
.ic{display:block;flex:0 0 auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- шапка ---------- */
.hdr{position:sticky;top:0;z-index:50;padding:16px var(--gutter) 0;height:90px}
.hdr__in{display:flex;justify-content:center;gap:16px;max-width:992px;margin:0 auto}
.pill{flex:0 1 auto;display:flex;align-items:center;gap:32px;height:58px;padding:0 24px;border-radius:16px;background:var(--pill);border:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.logo{display:flex;align-items:center;flex:0 0 auto}
.logo img{height:29px;width:auto;display:block}
html[data-theme="dark"] .logo img{filter:brightness(0) invert(1)}   /* на сайте в тёмной теме логотип белый */
.menu{display:flex;align-items:center;gap:28px;font-size:14px;line-height:17px;white-space:nowrap}
.menu a:hover{color:var(--link)}
.iconbtn{display:flex;align-items:center;justify-content:center;width:58px;height:58px;flex:0 0 58px;border-radius:16px;background:var(--pill);border:1px solid var(--line);color:var(--text);cursor:pointer;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.iconbtn:hover{background:var(--surface)}
.iconbtn .ic--moon{display:none}
html[data-theme="dark"] .iconbtn .ic--sun{display:none}
html[data-theme="dark"] .iconbtn .ic--moon{display:block}
.signin{display:flex;align-items:center;gap:8px;height:58px;padding:0 28px;border-radius:16px;background:var(--accent);color:var(--on-accent)!important;font-size:17px;line-height:17px;font-weight:600;white-space:nowrap}
.signin:hover{background:var(--accent-hover)}
.burger{display:none}
.mnav{display:none}

/* ---------- хлебные крошки ---------- */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:16px 0 32px;font-size:14px;line-height:20px;font-weight:600}
.crumbs a{font-weight:600}
.crumbs a:hover{color:var(--link)}
.crumbs .ic{width:16px;height:16px;color:var(--muted)}
.crumbs span{color:var(--muted);font-weight:400}
.crumbs__item{display:contents}

/* ---------- теги-категории ---------- */
.tag{display:inline-flex;align-self:flex-start;align-items:center;padding:5px 10px;border-radius:999px;font-size:11px;line-height:13px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;background:var(--tag-howto-bg);color:var(--tag-howto)}
.tag--guide{background:var(--tag-guide-bg);color:var(--tag-guide)}
.tag--story{background:var(--tag-story-bg);color:var(--tag-story)}
.tag--news{background:var(--tag-news-bg);color:var(--tag-news)}
.tag--lg{padding:7px 14px}

/* ---------- шапка раздела ---------- */
.hero{display:flex;flex-direction:column;gap:12px}
.hero h1{margin:0;font-size:40px;line-height:48px;font-weight:700}
.hero p{margin:0;max-width:760px;font-size:16px;line-height:24px;color:var(--text2)}
.j .filters{display:flex;flex-wrap:wrap;gap:10px;padding-top:20px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:14px;line-height:17px;font-weight:500;white-space:nowrap}
.chip:hover{border-color:#d5d5d5}
.chip[aria-current]{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}
.chip small{font-size:12px;color:var(--muted)}

/* ---------- карточки ---------- */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}
.card{position:relative;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--surface-bd);border-radius:20px;overflow:hidden;transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.card__img{display:block;aspect-ratio:331/186;background:var(--soft);overflow:hidden}
.card__img img{width:100%;height:100%;object-fit:cover;display:block}
.card__img--empty{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--tag-howto-bg),var(--surface));color:var(--tag-howto)}
.card__img--empty .ic{width:56px;height:56px;opacity:.55;stroke-width:1.4}
.card__img--empty.guide{color:var(--tag-guide)}.card__img--empty.story{color:var(--tag-story)}.card__img--empty.news{color:var(--tag-news)}
.card__img--empty.guide{background:linear-gradient(135deg,var(--tag-guide-bg),var(--surface))}
.card__img--empty.story{background:linear-gradient(135deg,var(--tag-story-bg),var(--surface))}
.card__img--empty.news{background:linear-gradient(135deg,var(--tag-news-bg),var(--surface))}
.card__body{display:flex;flex-direction:column;gap:10px;flex:1;padding:20px}
.card h3{margin:0;font-size:17px;line-height:23px;font-weight:700}
.card h3 a::after{content:"";position:absolute;inset:0}
.card h3 a:hover{color:var(--link)}
.card p{margin:0;font-size:13.5px;line-height:19px;color:var(--text2)}
.card .meta{margin-top:auto;font-size:12.5px;line-height:15px;font-weight:500;color:var(--muted)}
.empty{margin:24px 0 0;color:var(--muted)}

/* ---------- пагинация ---------- */
.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:28px}
.pager__sum{font-size:12px;color:var(--muted);margin-right:14px}
.pager a,.pager b,.pager i{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 6px;border-radius:10px;background:var(--surface);border:1px solid var(--line);font-size:13px;font-style:normal}
.pager a:hover{border-color:var(--muted)}
.pager b{border-color:var(--muted);font-weight:700}
.pager i{border-color:transparent;background:none;color:var(--muted)}

/* ---------- блок стран на главной журнала ---------- */
.countries{margin-top:48px}
.countries h2{margin:0 0 14px;font-size:20px;line-height:26px;font-weight:700}
.j .countries .filters{padding:0}

/* ---------- статья ---------- */
.post__head{display:flex;flex-direction:column;gap:14px;padding:0 0 20px}
.post__head h1{margin:0;font-size:40px;line-height:48px;font-weight:700}
.post__head .lead{margin:0;font-size:17px;line-height:26px;color:var(--text2)}
.post__meta{font-size:13.5px;line-height:16px;font-weight:500;color:var(--muted)}
.post__meta a{color:var(--text)}
.cover{display:block;width:100%;aspect-ratio:1040/420;object-fit:cover;border-radius:24px;margin-bottom:8px;background:var(--soft)}
.post__card{margin-top:24px;padding:48px;background:var(--surface);border:1px solid var(--surface-bd);border-radius:24px}

.toc{margin:0 0 28px;padding:18px 22px;border-radius:16px;background:var(--soft)}
.toc strong{display:block;margin-bottom:8px;font-size:15px}
.toc ul{margin:0;padding:0;list-style:none;font-size:15px;line-height:24px}
.toc li.l3{padding-left:16px;font-size:14px}
.toc a{color:var(--text2)}
.toc a:hover{color:var(--link)}

.body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:17px;line-height:30px;color:var(--text2);overflow-wrap:break-word}
.body>*:first-child{margin-top:0}
.body p{margin:0 0 20px}
.body h2{margin:36px 0 14px;font-size:24px;line-height:32px;font-weight:700;color:var(--text)}
.body h3{margin:28px 0 12px;font-size:20px;line-height:28px;font-weight:700;color:var(--text)}
.body h4{margin:24px 0 10px;font-size:17px;line-height:26px;font-weight:700;color:var(--text)}
.body strong{color:var(--text);font-weight:700}
.body a{color:var(--link);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.body a:hover{text-decoration-thickness:2px}
.body ul,.body ol{margin:0 0 20px;padding:0;list-style:none}
.body li{position:relative}
.body li+li{margin-top:10px}
.body ul>li{padding-left:20px}
.body ul>li::before{content:"";position:absolute;left:1px;top:12px;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.body ol{counter-reset:n}
.body ol>li{counter-increment:n;padding-left:38px}
.body ol>li::before{content:counter(n);position:absolute;left:0;top:2px;width:26px;height:26px;border-radius:50%;background:var(--tag-howto-bg);color:var(--tag-howto);font-size:14px;line-height:26px;font-weight:700;text-align:center}
.body blockquote{position:relative;margin:4px 0 24px;padding:18px 22px 18px 70px;border-radius:18px;background:var(--note-bg);border:1px solid var(--note-bd);color:var(--note);font-size:15px;line-height:22px}
.body blockquote::before{content:"";position:absolute;left:22px;top:18px;width:34px;height:34px;border-radius:10px;background:var(--note-ic) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392400e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E") center/17px no-repeat}
html[data-theme="dark"] .body blockquote::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcd34d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E")}
.body blockquote p{margin:0;min-height:34px;display:flex;flex-direction:column;justify-content:center}
.body blockquote p+p{margin-top:8px}
.body blockquote strong:first-child{color:inherit;font-size:18px;line-height:24px}
.body blockquote a{color:inherit}
.body code{padding:.12em .42em;border-radius:6px;background:var(--code);color:var(--text);font:500 .86em/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.body pre{margin:0 0 20px;padding:16px 18px;border-radius:14px;background:var(--code);overflow:auto;font-size:14px;line-height:22px}
.body pre code{padding:0;background:none;font-size:inherit}
.body hr{margin:32px 0;border:0;border-top:1px solid var(--line)}
.body figure{margin:28px 0}
.body figure img{display:block;width:auto;max-width:100%;max-height:720px;margin:0 auto;border-radius:16px;border:1px solid var(--line)}
.body figure video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000;border-radius:16px;border:1px solid var(--line)}
.body figcaption{margin-top:10px;font-size:14px;line-height:20px;color:var(--muted)}
.body>img{border-radius:16px}
.body .table{margin:4px 0 24px;overflow-x:auto;border:1px solid var(--line);border-radius:14px}
.body table{width:100%;border-collapse:collapse;font-size:15px;line-height:22px}
.body th{padding:12px 14px;background:var(--soft);color:var(--text);font-weight:600;text-align:left;white-space:nowrap}
.body td{padding:12px 14px;border-top:1px solid var(--line);vertical-align:top}
.body td:first-child{color:var(--text)}
.body td code{white-space:nowrap}

.post__countries{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.post__countries .chip{padding:8px 14px;font-size:13px}
.author{display:flex;gap:14px;align-items:center;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.author__ava{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:var(--tag-howto-bg);color:var(--tag-howto);font-weight:800;font-size:17px}
.author small{display:block;font-size:12.5px;color:var(--muted)}
.author strong{display:block;font-size:16px;line-height:22px}
.author p{margin:4px 0 0;font-size:14px;line-height:20px;color:var(--text2)}

/* ---------- синий CTA ---------- */
.cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;padding:32px 40px;border-radius:24px;background:linear-gradient(90deg,#1a85ff 0%,#0061e5 100%);color:#fff}  /* --gradient-brand-card сайта */
.cta strong{display:block;font-size:26px;line-height:32px;font-weight:800}
.cta p{margin:8px 0 0;font-size:16px;line-height:24px;opacity:.92}
.cta__btns{display:flex;flex-wrap:wrap;gap:12px;flex:0 0 auto}
.cta .btn{display:inline-flex;align-items:center;justify-content:center;padding:16px 28px;border-radius:12px;background:#fff;color:#0075ff!important;font-size:16px;line-height:19px;font-weight:600;white-space:nowrap;text-decoration:none!important}
.cta .btn:hover{background:#eef5ff}
.cta .btn--ghost{background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.55)}
.cta .btn--ghost:hover{background:rgba(255,255,255,.12)}
/* CTA, вставленный шорткодом {{plan:...}} внутрь текста */
.body .cta{margin:28px 0;padding:22px 26px;border-radius:18px}
.body .cta strong{color:#fff;font-size:20px;line-height:26px}
.body .cta p{margin:4px 0 0;font-size:15px;line-height:22px}
.body .cta .btn{padding:13px 22px;font-size:15px}

.related{margin-top:36px}
.related h2{margin:0 0 16px;font-size:24px;line-height:29px;font-weight:700}
.related .cards{margin-top:0}

/* ---------- подвал (как на esimd.ru) ---------- */
.foot{margin-top:72px;background:var(--foot-bg);color:var(--foot-link);font-size:14px;line-height:22px}
.foot__in{max-width:calc(1216px + 2*var(--gutter));margin:0 auto;padding:48px var(--gutter) 56px}
.foot a:hover{color:var(--foot-text)}
.foot__top{display:flex;justify-content:space-between;gap:48px}
.foot__brand{display:flex;flex-direction:column;gap:20px}
.foot__brand img.logo-w{height:37px;width:auto;display:block}
.foot__row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0;color:var(--foot-text);font-size:15px;line-height:23px}
.foot__social p{margin:0 0 12px;color:var(--foot-text);font-size:15px;line-height:23px}
.foot__social ul{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.foot__social a{display:inline-flex;align-items:center;gap:10px;color:var(--foot-text);font-size:15px;line-height:23px}
.foot__social a:hover{opacity:.8}
.foot__social img{width:20px;height:20px;display:block;flex:0 0 20px}
.foot__social b{font-weight:600}
.foot__row img{height:20px;width:auto;display:block}
.foot__cols{display:grid;grid-template-columns:repeat(3,minmax(160px,auto));gap:24px 32px}
.foot__col{display:flex;flex-direction:column;gap:12px}
.foot__col strong{margin-bottom:4px;color:var(--foot-text);font-size:16px;line-height:24px;font-weight:400}
.foot__bottom{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px 24px;margin-top:72px;padding-top:24px;border-top:1px solid var(--foot-line);font-size:12px;line-height:16px;color:var(--foot-muted)}
.foot__bottom>span{justify-self:center}
.foot__bottom>a{justify-self:end}
.foot__legal{display:flex;flex-wrap:wrap;gap:8px 24px}
.foot__legal button{padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.foot__legal button:hover{color:var(--foot-text)}

/* ---------- согласие на cookie (как на esimd.ru: cookie_consent) ---------- */
.btn-s{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 16px;border-radius:12px;border:1px solid transparent;font:600 14px/17px Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.btn-s--primary{background:var(--accent);color:var(--on-accent)}
.btn-s--primary:hover{background:var(--accent-hover)}
.btn-s--secondary{background:var(--surface);border-color:var(--line);color:var(--text)}
.btn-s--secondary:hover{border-color:#d5d5d5}
.btn-s--block{width:100%;min-height:49px;font-size:17px}
.cc{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;display:flex;align-items:center;gap:16px 24px;max-width:var(--wrap);margin:0 auto;padding:16px 20px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:var(--shadow-pop)}
.cc[hidden]{display:none}
.cc p{flex:1;margin:0;color:var(--text2);font-size:14px;line-height:20px}
.cc p a{color:var(--link);text-decoration:underline}
.cc__btns{display:flex;flex-shrink:0;gap:8px}
.ccd{width:min(520px,calc(100% - 32px));padding:32px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--text);box-shadow:0 24px 60px -12px rgba(13,18,31,.24)}
.ccd::backdrop{background:rgba(10,15,28,.45)}
.ccd h2{margin:0 40px 8px 0;font-size:22px;line-height:28px;font-weight:700}
.ccd__lead{margin:0 0 20px;color:var(--text2);font-size:15px;line-height:23px}
.ccd__x{position:absolute;top:20px;right:20px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:10px;background:none;color:var(--muted);cursor:pointer}
.ccd__x:hover{background:var(--surface-alt);color:var(--text)}
.ccd ul{display:flex;flex-direction:column;gap:10px;margin:0 0 20px;padding:0;list-style:none}
.ccd label{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-alt);cursor:pointer}
.ccd label:has(input:disabled){cursor:default}
.ccd input{width:20px;height:20px;flex-shrink:0;margin:0;accent-color:var(--accent)}
.ccd label b{display:block;font-size:15px;line-height:23px;font-weight:600}
.ccd label small{display:block;margin-top:4px;color:var(--text2);font-size:13px;line-height:18px}
.ccd__act{display:flex;flex-direction:column;gap:10px}
.ccd__pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* ---------- адаптив ---------- */
@media (max-width:1199px){
  .pill{gap:24px}
  .menu{gap:20px}
  .foot__top{flex-direction:column}
}
@media (max-width:1023px){
  .hdr{padding:16px var(--gutter) 0;height:94px}
  .hdr__in{gap:10px}
  .pill{flex:1;height:62px;gap:8px;padding:0 12px 0 20px}
  .pill .menu{display:none}
  .logo{margin-right:auto}
  .hdr__in>.iconbtn,.hdr__in>.signin{display:none}
  .pill .signin--m{display:flex;height:36px;padding:8px 16px;border-radius:12px;font-size:14px;line-height:17px;font-weight:600}
  .burger{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;background:none;color:var(--text);cursor:pointer;border-radius:10px}
  .burger .ic--close{display:none}
  .hdr.open .burger .ic--menu{display:none}
  .hdr.open .burger .ic--close{display:block}
  .mnav{position:absolute;left:16px;right:16px;top:calc(100% - 2px);display:none;flex-direction:column;padding:8px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
  .hdr.open .mnav{display:flex}
  .mnav a,.mnav button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 12px;border:0;border-radius:10px;background:none;color:var(--text);font:inherit;font-size:16px;text-align:left;cursor:pointer}
  .mnav a[aria-current]{color:var(--link);font-weight:600}
  .mnav a:hover,.mnav button:hover{background:var(--soft)}
  .mnav .ic--moon{display:none}
  html[data-theme="dark"] .mnav .ic--sun{display:none}
  html[data-theme="dark"] .mnav .ic--moon{display:block}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .post__card{padding:36px 32px}
}
@media (min-width:1024px){ .pill .signin--m{display:none} }
@media (max-width:767px){
  :root{--gutter:16px}
  .crumbs{padding:12px 0 20px}
  .crumbs .crumbs__cur{display:none}
  .hero h1{font-size:28px;line-height:34px}
  .j .filters{gap:8px;flex-wrap:nowrap;overflow-x:auto;margin:0 calc(-1*var(--gutter));padding:16px var(--gutter) 4px;scrollbar-width:none}
  .j .filters::-webkit-scrollbar{display:none}
  .j .countries .filters{flex-wrap:wrap;overflow:visible;margin:0;padding:0}
  .cards{grid-template-columns:1fr;gap:16px}
  .post__head{padding:0 0 16px}
  .post__head h1{font-size:28px;line-height:34px}
  .post__head .lead{font-size:16px;line-height:24px}
  .cover{aspect-ratio:16/10;border-radius:18px}
  .post__card{margin-top:16px;padding:22px 18px;border-radius:20px}
  .body{font-size:16px;line-height:27px}
  .body h2{font-size:21px;line-height:28px;margin-top:30px}
  .body h3{font-size:18px;line-height:25px}
  .body blockquote{padding:16px 16px 16px 60px;font-size:14.5px}
  .body blockquote::before{left:14px;top:16px}
  .body table{font-size:14px}
  .body th,.body td{padding:10px 12px}
  .cta{flex-direction:column;align-items:stretch;padding:24px 20px;border-radius:20px}
  .cta strong{font-size:22px;line-height:28px}
  .cta .btn{width:100%}
  .body .cta{padding:20px}
  .pager__sum{width:100%;text-align:center;margin:0 0 4px}
  .foot{margin-top:32px;font-size:16px;line-height:24px}
  .foot__in{padding:24px var(--gutter) 48px}
  .foot__top{gap:32px}
  .foot__cols{grid-template-columns:1fr;gap:24px}
  .foot__col{gap:16px}
  .foot__col strong{margin-bottom:0}
  .foot__bottom{display:flex;flex-direction:column;align-items:flex-start;margin-top:32px;padding-top:0;border-top:0;font-size:14px;line-height:20px}
  .foot__bottom>span,.foot__bottom>a{justify-self:auto}
  .foot__legal{flex-direction:column;gap:16px}
  .cc{left:8px;right:8px;bottom:8px;flex-direction:column;align-items:stretch}
  .cc__btns{display:grid;grid-template-columns:1fr 1fr}
  .cc__btns>:first-child{grid-column:1/-1}
  .ccd{padding:24px 20px}
  .ccd__pair{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){ .card{transition:none} .card:hover{transform:none} }
