/* Раздел «Статьи» (/articles/). Базовые стили повторяют главную (index.html):
   фирменные цвета и шрифты логобука, шапка, кнопки, подвал, баннер cookie. */
:root{
  --purple:#834F8D; --lilac:#AE79B3; --green:#5BB56C;
  --brown:#AE5819; --orange-d:#D86B15; --orange:#F28A04; --yellow:#F7A700; --ink:#1D1D1B;
  --purple-d:#6B3F74; --purple-soft:#F4ECF5; --green-soft:#E7F4E9; --yellow-soft:#FEF1CE; --orange-soft:#FDEBDA;
  --bg:#FAF7F3; --paper:#FFFFFF; --muted:#67615C; --line:#ECE4DC;
  --font-head:"Uncage","Tilda Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Tilda Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r:22px; --shadow:0 1px 2px rgba(29,29,27,.06),0 10px 28px rgba(29,29,27,.07);
  --wrap:1160px;
}
@font-face{font-family:"Uncage";src:url(/assets/fonts/Uncage-Medium.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Tilda Sans";src:url(/assets/fonts/TildaSans-Medium.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Tilda Sans";src:url(/assets/fonts/TildaSans-Bold.woff2) format("woff2");font-weight:700;font-display:swap}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:500 17px/1.6 var(--font-body);overflow-x:hidden}
img{max-width:100%;display:block;height:auto}
a{color:inherit}
h1,h2,h3{font-family:var(--font-head);font-weight:500;line-height:1.15;margin:0;letter-spacing:-.01em}
h2{font-size:clamp(25px,4.2vw,44px)}
h3{font-size:21px}
p{margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 16px}
@media (min-width:720px){.wrap{padding:0 28px}}
.narrow{max-width:780px}
section{padding:64px 0}
.section-head{max-width:720px;margin-bottom:36px}
.section-head p{color:var(--muted);font-size:18px;margin-top:14px}
.kicker{display:inline-block;font:500 13px/1 var(--font-head);letter-spacing:.08em;text-transform:uppercase;color:var(--purple);margin-bottom:14px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border-radius:999px;font:700 16px/1 var(--font-body);text-decoration:none;border:2px solid transparent;transition:transform .15s,background .15s;cursor:pointer;white-space:nowrap}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--purple);color:#fff;box-shadow:0 6px 18px rgba(131,79,141,.3)}
.btn-primary:hover{background:var(--purple-d)}
.btn-ghost{border-color:var(--ink);color:var(--ink);background:none}
.btn-ghost:hover{background:var(--ink);color:#fff}
.btn-sm{min-height:42px;padding:0 18px;font-size:15px}
.link{font-weight:700;color:var(--purple);text-decoration:none;border-bottom:2px solid var(--purple-soft)}
.link:hover{border-color:var(--purple)}

.top{position:sticky;top:0;z-index:20;background:rgba(250,247,243,.9);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:28px;height:68px}
.logo{display:flex;align-items:center;text-decoration:none}
.logo img{height:44px;width:auto}
.top nav{display:none;gap:24px;margin-left:auto}
.top nav a{text-decoration:none;font-weight:600;font-size:15px;color:var(--muted)}
.top nav a:hover,.top nav a[aria-current]{color:var(--ink)}
.top .btn{margin-left:auto}
@media (min-width:980px){.top nav{display:flex}.top .btn{margin-left:0}}
@media (max-width:420px){.top .wrap{gap:12px;height:60px}.logo img{height:34px}.top .btn{padding:0 14px;font-size:14px;min-height:38px}}

/* статья */
.art{padding:36px 0 8px}
@media (min-width:900px){.art{padding:56px 0 8px}}
.crumbs{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted);margin-bottom:26px}
.crumbs a{text-decoration:none;color:var(--muted)}
.crumbs a:hover{color:var(--purple)}
.art h1{font-size:clamp(30px,4.4vw,50px);margin:0 0 18px}
.art-lead{font-size:clamp(18px,2vw,21px);color:var(--muted);line-height:1.5}
.byline{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;margin:26px 0 30px;padding-top:22px;border-top:1px solid var(--line)}
.byline img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:var(--purple-soft)}
.byline div{display:flex;flex-direction:column;line-height:1.3}
.byline b{font-size:16px}
.byline span{font-size:14px;color:var(--muted)}
.byline small{margin-left:auto;color:var(--muted);font-size:14px}
@media (max-width:560px){.byline small{margin-left:62px}}
.art-cover{margin:0 auto 36px}
.art-cover img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--r);box-shadow:var(--shadow);background:#fff}
.art-cover figcaption{font-size:13px;color:var(--muted);margin-top:8px;text-align:right}
.art-body{font-size:18px;line-height:1.72;color:#2E2A27}
.art-body>*+*{margin-top:1.05em}
.art-body h2{font-size:clamp(24px,3vw,32px);margin-top:1.8em;color:var(--ink)}
.art-body h3{font-size:21px;margin-top:1.5em;color:var(--ink)}
.art-body a{font-weight:700;color:var(--purple);text-decoration:none;border-bottom:2px solid var(--purple-soft)}
.art-body a:hover{border-color:var(--purple)}
.art-body ul,.art-body ol{padding-left:0;list-style:none;display:grid;gap:10px}
.art-body ul li{position:relative;padding-left:28px}
.art-body ul li::before{content:"";position:absolute;left:4px;top:.62em;width:10px;height:10px;border-radius:50%;background:var(--lilac)}
.art-body ol{counter-reset:n}
.art-body ol li{counter-increment:n;position:relative;padding-left:40px}
.art-body ol li::before{content:counter(n);position:absolute;left:0;top:.1em;width:28px;height:28px;border-radius:50%;background:var(--orange-soft);color:var(--brown);font-weight:700;display:grid;place-items:center;font-size:14px;line-height:1}
.art-body blockquote{margin:1.6em 0;padding:22px 26px;border-radius:18px;background:var(--yellow-soft);color:#4A4236;font-size:18px}
.art-body blockquote p+p{margin-top:.6em}
.art-body b,.art-body strong{color:var(--ink)}
.art-body .sign{font-family:var(--font-head);font-size:22px;color:var(--brown);margin-top:1.6em}

.art-join{padding:48px 0 16px}
.join-box{background:var(--purple);color:#fff;border-radius:32px;padding:44px 24px;text-align:center;position:relative;overflow:hidden}
@media (min-width:720px){.join-box{padding:56px 48px}}
.join-box::before,.join-box::after{content:"";position:absolute;border-radius:50%;opacity:.16;background:#fff}
.join-box::before{width:240px;height:240px;left:-90px;top:-120px}
.join-box::after{width:180px;height:180px;right:-60px;bottom:-90px}
.join-box h2{color:#fff;position:relative;font-size:clamp(24px,3.4vw,36px)}
.join-box p{max-width:520px;margin:14px auto 0;color:rgba(255,255,255,.86);font-size:17px;position:relative}
.channels{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:28px;position:relative}
.ch{min-width:220px}
.ch-vk{background:#fff;color:var(--purple-d)}
.ch-vk:hover{background:#F3F3EE}
.ch-tg{border-color:rgba(255,255,255,.6);color:#fff}
.ch-tg:hover{background:rgba(255,255,255,.12)}
@media (max-width:480px){.ch{width:100%}}

/* карточки статей: список, «ещё почитать», блок на главной */
.reads-page{padding:48px 0 72px}
.reads-page h1{font-size:clamp(34px,4.6vw,56px)}
.reads-grid{display:grid;gap:16px}
@media (min-width:720px){.reads-grid{grid-template-columns:repeat(2,1fr);gap:20px}}
@media (min-width:1000px){.reads-grid{grid-template-columns:repeat(3,1fr);gap:24px}}
.read-card{background:var(--paper);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);text-decoration:none;display:flex;flex-direction:column;transition:transform .2s}
.read-card:hover{transform:translateY(-2px)}
.read-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.read-card div{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.read-card .kicker{margin:0;font-size:12px}
.read-card h3{font-size:20px}
.read-card p{color:var(--muted);font-size:15px;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.read-card small{color:var(--muted);font-size:13px}
.read-card .read-more{font-style:normal;font-weight:700;color:var(--purple);font-size:15px;margin-top:4px}
.read-card:hover .read-more{text-decoration:underline;text-underline-offset:3px}
/* свежая статья в списке - широкой карточкой: фото 3:2 слева, текст справа */
@media (min-width:1000px){
  .reads-grid.all .featured{grid-column:1/-1;display:grid;grid-template-columns:1.1fr 1fr;align-items:stretch}
  .reads-grid.all .featured img{aspect-ratio:3/2;height:100%;max-height:420px}
  .reads-grid.all .featured div{padding:36px 40px;justify-content:center;gap:12px}
  .reads-grid.all .featured h3{font-size:30px}
  .reads-grid.all .featured p{font-size:17px;-webkit-line-clamp:4;flex:none}
}
.more{background:var(--paper)}
.more h2{font-size:clamp(24px,3.4vw,36px)}
.empty{color:var(--muted)}

footer{padding:40px 0 48px;color:var(--muted);font-size:14px}
footer .wrap{display:flex;flex-wrap:wrap;gap:12px 32px;justify-content:space-between}
footer a{color:var(--muted)}

.cookie{position:fixed;left:12px;right:12px;bottom:12px;z-index:40;max-width:560px;margin:0 auto;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 40px rgba(29,29,27,.18);padding:18px 20px;display:none;gap:14px;flex-wrap:wrap;align-items:center;font-size:15px;line-height:1.5}
.cookie.show{display:flex}
.cookie p{flex:1 1 260px;color:#3E3A36}
.cookie .btns{display:flex;gap:8px}
.cookie .btn{min-height:40px;padding:0 16px;font-size:14px}
