/* Блог Повторите.рф — Apple-эстетика, синий бренд, светлая+тёмная тема.
   Один файл стилизует все страницы блога. */
:root{
  --bg:#eceef2; --bg2:#f5f5f7; --ink:#1d1d1f; --muted:#6e6e73;
  --line:#e6e6ea; --blue:#0071e3; --blue-d:#0060c0; --radius:20px;
  --panel:#ffffff; --border:rgba(0,0,0,.06);
  --shadow:0 1px 2px rgba(0,0,0,.04),0 10px 30px rgba(0,0,0,.05);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);
  font:18px/1.72 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased}

header.nav{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.8);
  backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--line);display:flex;gap:18px;align-items:center;height:54px;padding:0 20px}
header.nav>*{max-width:none}
/* текстовый логотип заменяем картинкой, не трогая HTML страниц */
header.nav a.logo{display:inline-block;width:150px;height:24px;overflow:hidden;
  text-indent:-9999px;white-space:nowrap;flex:none;
  background:url(/assets/logo.png) left center/contain no-repeat}
header.nav a:not(.logo){color:var(--ink);text-decoration:none;font-size:14px;margin-left:auto}

/* статья — белый «остров» на сером фоне (как лендинг/кабинет) */
.wrap{max-width:760px;margin:26px auto;padding:38px 40px 46px;background:var(--panel);
  border:1px solid var(--border);box-shadow:var(--shadow);border-radius:var(--radius)}
@media(max-width:640px){.wrap{margin:14px;padding:26px 20px 32px}}
h1{font-size:clamp(30px,5vw,42px);line-height:1.12;letter-spacing:-.03em;font-weight:700;margin:10px 0 14px}
h2{font-size:25px;letter-spacing:-.02em;margin:38px 0 12px;font-weight:650}
h3{font-size:19px;margin:24px 0 8px;font-weight:600}
p{margin:16px 0;color:#33333a}
ul,ol{margin:16px 0 16px 24px}li{margin:9px 0}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.lead{font-size:21px;color:var(--muted);margin:12px 0 10px;letter-spacing:-.01em}
.meta{color:var(--muted);font-size:14px;margin-bottom:8px}

.cta{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);
  padding:28px;margin:38px 0;text-align:center;font-size:19px;font-weight:600}
.cta a{display:inline-block;background:var(--blue);color:#fff;text-decoration:none;
  padding:13px 26px;border-radius:999px;font-weight:550;font-size:16px;margin-top:12px}
.cta a:hover{background:var(--blue-d);text-decoration:none}

.card{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin:22px 0}

.rel{margin-top:44px;border-top:1px solid var(--line);padding-top:24px}
.rel h3{font-size:13px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin-bottom:14px}
.rel a{display:block;padding:14px 16px;text-decoration:none;background:var(--bg2);
  border:1px solid var(--line);border-radius:14px;margin-bottom:10px;color:var(--ink);transition:.15s}
.rel a:hover{border-color:var(--blue);text-decoration:none;transform:translateY(-1px)}

footer{max-width:720px;margin:0 auto;padding:28px 20px;color:var(--muted);font-size:13px;border-top:1px solid var(--line)}

@media (prefers-color-scheme: dark){
  :root{--bg:#0e1014;--bg2:#1c1c1e;--ink:#f5f5f7;--muted:#98989d;--line:#2c2c2e;
    --panel:#16181d;--border:#262a32;--shadow:0 1px 2px rgba(0,0,0,.4)}
  header.nav{background:rgba(14,16,20,.75)}
  header.nav a.logo{filter:brightness(0) invert(1)}
  p{color:#c9c9ce}
}
