/* WhisperDeal — блог. Канон: монохром, Wix Madefor, радужная коническая кромка —
   единственный акцент, радиусы pill-999 / 24px, две темы. */

@property --ga{syntax:'<angle>';initial-value:0deg;inherits:false}
@keyframes garot{to{--ga:360deg}}

:root{
  --bg:#09090b; --bg2:#0d0d10; --card:#121215; --card2:#17171b;
  --ink:#fafafa; --mut:#a1a1aa; --mut2:#7d7d86;
  --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.15);
  --tile:rgba(255,255,255,.05); --hoverbg:rgba(255,255,255,.06);
  --btn-bg:linear-gradient(to bottom,#ffffff,#e9e9ee); --btn-fg:#0b0b0d;
  --logo-bg:#ffffff; --logo-fg:#0b0b0d;
  --navbg:rgba(9,9,11,.72);
  --sh-card:0 1px 2px rgba(0,0,0,.5),0 12px 34px -14px rgba(0,0,0,.6);
  --r:24px;
  --font:'Wix Madefor Text',-apple-system,'SF Pro Text',system-ui,sans-serif;
  --font-d:'Wix Madefor Display',-apple-system,'SF Pro Display',system-ui,sans-serif;
  --glow:conic-gradient(from var(--ga),#2dd4bf,#818cf8 28%,#e879f9 48%,#f59e0b 68%,#f43f5e 84%,#2dd4bf);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#fafafa; --bg2:#f4f4f5; --card:#ffffff; --card2:#ffffff;
  --ink:#18181b; --mut:#52525b; --mut2:#6e6e77;
  --line:rgba(0,0,0,.08); --line2:rgba(0,0,0,.15);
  --tile:rgba(0,0,0,.04); --hoverbg:rgba(0,0,0,.05);
  --logo-bg:#18181b; --logo-fg:#ffffff;
  --navbg:rgba(250,250,250,.8);
  --sh-card:0 1px 2px rgba(0,0,0,.06),0 12px 34px -16px rgba(0,0,0,.18);
  color-scheme:light;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-family:var(--font);
  font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}

/* ── Навигация ── */
.nav{position:sticky;top:0;z-index:50;background:var(--navbg);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line)}
.nav__in{max-width:1080px;margin:0 auto;padding:.85rem 1.4rem;display:flex;align-items:center;gap:1.2rem}
.logo{display:flex;align-items:center;gap:.55rem;font-family:var(--font-d);font-weight:800;
  font-size:1.12rem;letter-spacing:-.02em}
.logo .m{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;
  background:var(--logo-bg);color:var(--logo-fg)}
.logo .m svg{width:17px;height:17px}
.logo b{font-weight:800}.logo b span{color:var(--mut)}
.nav__sp{flex:1}
.nav__links{display:flex;gap:1.4rem;align-items:center;font-size:.92rem;color:var(--mut);font-weight:500}
.nav__links a:hover{color:var(--ink)}
.nav__cta{padding:.5rem 1.1rem;border-radius:999px;background:var(--btn-bg);color:var(--btn-fg);
  font-weight:700;font-size:.9rem;border:none;cursor:pointer;white-space:nowrap}
.themetog{background:none;border:1px solid var(--line);border-radius:999px;width:34px;height:34px;
  cursor:pointer;color:var(--mut);display:grid;place-items:center;flex-shrink:0}
.themetog:hover{color:var(--ink);background:var(--hoverbg)}
@media(max-width:640px){.nav__links{display:none}}

/* ── Радужная кромка (единственный акцент) ── */
.glow-edge{position:relative;isolation:isolate}
/* Мягкое ВНЕШНЕЕ свечение при наведении — как блоки «Как это работает» на лендинге
   (blur + вынос за край), а не резкая внутренняя кромка. */
.glow-edge::before{content:'';position:absolute;z-index:-1;inset:-4px -4px -11px;border-radius:inherit;
  background:var(--glow);filter:blur(18px);opacity:0;transition:opacity .4s;animation:garot 12s linear infinite}
.glow-edge:hover::before{opacity:.5}

/* ── Обёртка блога (список) ── */
.blog-wrap{max-width:1080px;margin:0 auto;padding:3.5rem 1.4rem 5rem}
.blog-head{margin-bottom:2.6rem}
.blog-head .kicker{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--mut2);
  font-weight:700;margin-bottom:.7rem}
.blog-head h1{font-family:var(--font-d);font-weight:800;font-size:clamp(1.9rem,4vw,2.7rem);
  letter-spacing:-.03em;line-height:1.08}
.blog-head p{color:var(--mut);margin-top:.9rem;max-width:620px;font-size:1.05rem}

.posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.3rem}
.post-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);padding:1.6rem 1.6rem 1.5rem;box-shadow:var(--sh-card);
  transition:transform .3s,border-color .3s;min-height:230px}
.post-card:hover{transform:translateY(-3px);border-color:var(--line2)}
.post-card .tag{align-self:flex-start;font-size:.72rem;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--mut2);border:1px solid var(--line);border-radius:999px;
  padding:.28rem .7rem;margin-bottom:1rem}
.post-card h2{font-family:var(--font-d);font-weight:800;font-size:1.24rem;letter-spacing:-.02em;
  line-height:1.22}
.post-card p{color:var(--mut);font-size:.95rem;margin-top:.6rem;flex:1}
.post-card .more{margin-top:1.1rem;font-weight:700;font-size:.9rem;display:inline-flex;
  align-items:center;gap:.4rem}
.post-card .more svg{width:15px;height:15px;transition:transform .25s}
.post-card:hover .more svg{transform:translateX(3px)}

/* ── Статья ── */
.article{max-width:720px;margin:0 auto;padding:3rem 1.4rem 4.5rem}
.breadcrumb{font-size:.86rem;color:var(--mut2);margin-bottom:1.4rem}
.breadcrumb a:hover{color:var(--ink)}
.article h1{font-family:var(--font-d);font-weight:800;font-size:clamp(1.9rem,4.4vw,2.6rem);
  letter-spacing:-.03em;line-height:1.12;margin-bottom:1rem}
.article .byline{display:flex;flex-wrap:wrap;gap:.5rem 1rem;color:var(--mut2);font-size:.88rem;
  padding-bottom:1.6rem;margin-bottom:2rem;border-bottom:1px solid var(--line)}
.article h2{font-family:var(--font-d);font-weight:800;font-size:1.5rem;letter-spacing:-.02em;
  margin:2.6rem 0 .9rem;line-height:1.2}
.article h3{font-family:var(--font-d);font-weight:700;font-size:1.18rem;margin:1.9rem 0 .6rem}
.article p{margin:0 0 1.15rem;color:var(--ink)}
.article ul,.article ol{margin:0 0 1.3rem 1.3rem;color:var(--ink)}
.article li{margin-bottom:.5rem}
.article a{color:inherit;text-decoration:underline;text-decoration-color:var(--line2);
  text-underline-offset:3px}
.article a:hover{text-decoration-color:currentColor}
.article strong{font-weight:700}
.article table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.94rem;
  display:block;overflow-x:auto}
.article th,.article td{border:1px solid var(--line);padding:.6rem .8rem;text-align:left}
.article th{background:var(--tile);font-weight:700}
.article blockquote{border-left:2px solid var(--line2);padding-left:1.1rem;margin:1.4rem 0;
  color:var(--mut)}
/* answer-first блок наверху статьи */
.answer-first{background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:1.2rem 1.4rem;margin-bottom:2rem;color:var(--ink);font-size:1.02rem;box-shadow:var(--sh-card)}
.answer-first strong{font-weight:700}

/* CTA в конце статьи */
.article-cta{margin-top:3rem;background:var(--card);border:1px solid var(--line);border-radius:var(--r);
  padding:2rem;text-align:center;box-shadow:var(--sh-card)}
.article-cta h3{font-family:var(--font-d);font-weight:800;font-size:1.35rem;letter-spacing:-.02em;margin-bottom:.5rem}
.article-cta p{color:var(--mut);margin-bottom:1.3rem}
.article-cta .btn{display:inline-block;padding:.75rem 1.6rem;border-radius:999px;background:var(--btn-bg);
  color:var(--btn-fg);font-weight:700;border:none;cursor:pointer}

/* ── Подвал ── */
footer{border-top:1px solid var(--line);background:var(--bg2)}
.foot{max-width:1080px;margin:0 auto;padding:2.4rem 1.4rem;display:flex;flex-wrap:wrap;
  align-items:center;gap:1.2rem}
.foot .links{display:flex;flex-wrap:wrap;gap:1.1rem;color:var(--mut);font-size:.88rem}
.foot .links a:hover{color:var(--ink)}
.foot .c{color:var(--mut2);font-size:.84rem;margin-left:auto}
.foot-contacts{width:100%;padding-top:14px;border-top:1px solid var(--line);font-size:.84rem;color:var(--mut)}
.foot-contacts a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:3px}
@media(max-width:560px){.foot .c{margin-left:0;width:100%}}
