@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap&subset=cyrillic');

:root {
  --bg:      #08080e;
  --bg2:     #0f0f18;
  --bg3:     #16161f;
  --card:    #12121b;
  --violet:  #c084fc;
  --rose:    #e879a4;
  --silver:  #e0d8f0;
  --muted:   #7a7090;
  --border:  #252035;
  --grad:    linear-gradient(135deg, #c084fc, #e879a4);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{background:var(--bg);color:var(--silver);font-family:'Jost',sans-serif;line-height:1.75;min-height:100vh;overflow-x:hidden}
a{text-decoration:none;transition:color .2s}
img{max-width:100%;height:auto;display:block}

/* ═══ HEADER ═══ */
.site-header{
  background:rgba(8,8,14,.92);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:100;
  backdrop-filter:blur(12px);
}
.header-inner{
  max-width:1200px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:.85rem 2rem;
  gap:1.5rem;
}
.site-logo{display:flex;align-items:center;gap:.6rem}
.logo-psi{
  font-family:'Spectral',serif;font-size:1.6rem;font-weight:300;
  background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  line-height:1;
}
.logo-text-wrap{display:flex;flex-direction:column}
.logo-name{
  font-family:'Spectral',serif;font-size:1.1rem;font-weight:600;
  background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  letter-spacing:.02em;line-height:1.1;
}
.logo-sub{font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
nav.main-nav{display:flex;align-items:center;gap:1.5rem}
nav.main-nav a{font-size:.82rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:500}
nav.main-nav a:hover{color:var(--violet)}
.header-cats{
  display:flex;gap:.5rem;overflow-x:auto;scrollbar-width:none;
  padding:.4rem 0;
}
.header-cats::-webkit-scrollbar{display:none}
.header-cats a{
  white-space:nowrap;font-size:.72rem;letter-spacing:.06em;
  padding:.25rem .75rem;border:1px solid var(--border);border-radius:20px;
  color:var(--muted);transition:all .2s;
}
.header-cats a:hover{border-color:var(--violet);color:var(--violet)}

/* ═══ HERO с анимированными кольцами ═══ */
.hero{
  position:relative;
  min-height:520px;display:flex;align-items:center;justify-content:center;
  text-align:center;padding:5rem 1.5rem 4rem;
  overflow:hidden;
}
.hero-rings{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:600px;height:600px;
  pointer-events:none;
}
.hero-ring{
  position:absolute;top:50%;left:50%;
  border-radius:50%;
  border:1px solid;
  transform:translate(-50%,-50%);
}
.hero-ring:nth-child(1){
  width:120px;height:120px;
  border-color:rgba(192,132,252,.5);
  animation:ring-pulse 4s ease-in-out infinite;
}
.hero-ring:nth-child(2){
  width:220px;height:220px;
  border-color:rgba(232,121,164,.3);
  animation:ring-pulse 4s ease-in-out infinite .8s;
}
.hero-ring:nth-child(3){
  width:340px;height:340px;
  border-color:rgba(192,132,252,.18);
  animation:ring-pulse 4s ease-in-out infinite 1.6s;
}
.hero-ring:nth-child(4){
  width:470px;height:470px;
  border-color:rgba(232,121,164,.1);
  animation:ring-pulse 4s ease-in-out infinite 2.4s;
}
.hero-ring:nth-child(5){
  width:600px;height:600px;
  border-color:rgba(192,132,252,.05);
  animation:ring-pulse 4s ease-in-out infinite 3.2s;
}
@keyframes ring-pulse{
  0%,100%{opacity:.4;transform:translate(-50%,-50%) scale(1)}
  50%{opacity:1;transform:translate(-50%,-50%) scale(1.04)}
}
.hero-dot{
  position:absolute;top:50%;left:50%;
  width:8px;height:8px;
  background:var(--grad);
  border-radius:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 0 20px rgba(192,132,252,.8);
}
.hero-content{position:relative;z-index:1;max-width:680px;margin:0 auto}
.hero-tag{
  display:inline-block;
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  background:linear-gradient(135deg,rgba(192,132,252,.15),rgba(232,121,164,.1));
  border:1px solid rgba(192,132,252,.3);
  padding:.35rem 1rem;border-radius:20px;
  color:var(--violet);margin-bottom:1.5rem;
}
.hero-title{
  font-family:'Spectral',serif;
  font-size:clamp(2rem,5vw,3.2rem);
  font-weight:300;line-height:1.2;
  color:var(--silver);margin-bottom:1rem;
}
.hero-title em{
  font-style:italic;
  background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.hero-sub{
  font-size:1rem;color:var(--muted);
  max-width:520px;margin:0 auto 2rem;line-height:1.8;
}
.hero-stat{
  font-size:.8rem;letter-spacing:.06em;color:var(--muted);
  border-top:1px solid var(--border);padding-top:1.2rem;
  display:block;
}

/* ═══ SECTIONS ═══ */
.section{max-width:1200px;margin:0 auto;padding:3rem 2rem;position:relative;z-index:1}
.section-head{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}
.section-title{
  font-family:'Spectral',serif;font-size:1rem;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);white-space:nowrap;
}
.section-line{flex:1;height:1px;background:linear-gradient(to right,var(--border),transparent)}

/* ═══ POSTS GRID (двухколоночный) ═══ */
.posts-grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.5rem;
}
.post-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:6px;
  overflow:hidden;
  transition:border-color .25s,transform .25s;
  display:flex;flex-direction:column;
}
.post-card:hover{
  border-color:rgba(192,132,252,.4);
  transform:translateY(-2px);
}
.card-img{aspect-ratio:16/9;overflow:hidden;position:relative}
.card-img img{width:100%;height:100%;object-fit:cover;opacity:.8;transition:transform .5s,opacity .3s}
.post-card:hover .card-img img{transform:scale(1.03);opacity:1}
.card-img-placeholder{
  width:100%;height:100%;
  background:linear-gradient(135deg,var(--bg3),var(--bg2));
  display:flex;align-items:center;justify-content:center;
}
.card-img-placeholder::after{
  content:'ψ';
  font-family:'Spectral',serif;font-size:2.5rem;
  color:rgba(192,132,252,.2);
}
.card-body{padding:1.25rem 1.35rem;flex:1;display:flex;flex-direction:column}
.card-cat{
  font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--violet);margin-bottom:.5rem;display:inline-block;
}
.card-title{
  font-family:'Spectral',serif;font-size:1.1rem;font-weight:600;
  line-height:1.35;margin-bottom:.6rem;
}
.card-title a{color:var(--silver)}
.card-title a:hover{color:var(--violet)}
.card-excerpt{font-size:.83rem;color:var(--muted);flex:1;line-height:1.65;margin-bottom:.9rem}
.card-footer{
  display:flex;align-items:center;justify-content:space-between;
  border-top:1px solid var(--border);padding-top:.75rem;
}
.card-date{font-size:.72rem;color:var(--muted);letter-spacing:.03em}
.card-link{
  display:inline-flex;align-items:center;gap:.3rem;
  font-size:.78rem;letter-spacing:.05em;
  color:var(--violet);
}
.card-link:hover{color:var(--rose)}
.card-link svg{width:12px;height:12px;flex-shrink:0}

/* Первая карточка — широкая */
.posts-grid-2 .post-card:first-child{
  grid-column:span 2;
  flex-direction:row;
}
.posts-grid-2 .post-card:first-child .card-img{
  width:42%;flex-shrink:0;aspect-ratio:auto;
}
.posts-grid-2 .post-card:first-child .card-body{
  padding:1.75rem 1.75rem;
}
.posts-grid-2 .post-card:first-child .card-title{
  font-size:1.4rem;
}

/* ═══ ORNAMENT ═══ */
.ornament-divider{
  text-align:center;padding:2rem 0;
  color:var(--border);letter-spacing:.6em;font-size:.7rem;
}

/* ═══ PAGINATION ═══ */
.page-numbers-wrap{display:flex;justify-content:center;margin-top:2.5rem}
.page-numbers-wrap ul{display:flex;gap:.5rem;list-style:none;padding:0;margin:0}
.page-numbers-wrap li a,
.page-numbers-wrap li span{
  display:flex;align-items:center;justify-content:center;
  width:2.2rem;height:2.2rem;
  border:1px solid var(--border);border-radius:4px;
  font-size:.82rem;color:var(--muted);
  transition:all .2s;
}
.page-numbers-wrap li a:hover{border-color:var(--violet);color:var(--violet)}
.page-numbers-wrap li .current{border-color:var(--violet);color:var(--violet)}

/* ═══ SINGLE ═══ */
.single-wrap{max-width:800px;margin:2rem auto;padding:0 2rem 3rem;position:relative;z-index:1}
.single-post-head{margin-bottom:2.5rem}
.single-cat{
  font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--violet);margin-bottom:.75rem;display:inline-block;
}
.single-post-head h1{
  font-family:'Spectral',serif;font-size:clamp(1.6rem,4vw,2.4rem);
  font-weight:600;line-height:1.25;margin-bottom:.75rem;color:var(--silver);
}
.single-meta{font-size:.78rem;color:var(--muted);display:flex;gap:1rem;align-items:center}
.single-featured{margin-bottom:2rem;border-radius:6px;overflow:hidden}
.single-featured img{width:100%;max-height:420px;object-fit:cover}
.post-content{font-size:1rem;line-height:1.9}
.post-content h2{
  font-family:'Spectral',serif;font-size:1.35rem;
  margin:2rem 0 .75rem;color:var(--silver);
  padding-left:1rem;
  border-left:3px solid var(--violet);
}
.post-content h3{font-family:'Spectral',serif;font-size:1.1rem;margin:1.5rem 0 .5rem;color:var(--silver)}
.post-content p{margin-bottom:1.1rem;color:var(--muted)}
.post-content a{color:var(--violet)}
.post-content a:hover{color:var(--rose)}
.post-content ul,
.post-content ol{margin:0 0 1.1rem 1.5rem;color:var(--muted)}
.post-content li{margin-bottom:.35rem}
.post-content blockquote{
  margin:1.5rem 0;
  padding:1.2rem 1.5rem;
  background:var(--bg2);
  border-left:3px solid;
  border-image:var(--grad) 1;
  border-radius:0 4px 4px 0;
  font-family:'Spectral',serif;font-size:1.05rem;font-style:italic;
  color:var(--silver);
}
.post-content img{border-radius:4px;margin:1rem 0}

/* CTA блок в тексте */
.cta-inline{
  margin:2rem 0;
  padding:1.5rem 1.75rem;
  background:linear-gradient(135deg,rgba(192,132,252,.08),rgba(232,121,164,.05));
  border:1px solid rgba(192,132,252,.2);
  border-radius:6px;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  flex-wrap:wrap;
}
.cta-inline p{color:var(--silver);font-size:.9rem;margin:0}
.cta-btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.6rem 1.4rem;
  background:var(--grad);
  color:#fff;font-size:.82rem;font-weight:600;letter-spacing:.05em;
  border-radius:3px;white-space:nowrap;
  transition:opacity .2s;
}
.cta-btn:hover{opacity:.85;color:#fff}

/* FAQ */
.faq-item{
  background:var(--bg2);border:1px solid var(--border);
  padding:1.1rem 1.35rem;margin-bottom:.65rem;
  border-left:2px solid var(--border);transition:border-color .2s;
  border-radius:2px;
}
.faq-item:hover{border-left-color:var(--violet)}
.faq-q{font-family:'Spectral',serif;color:var(--silver);font-size:.95rem;margin:0 0 .4rem;font-weight:600}
.faq-a{color:var(--muted);font-size:.875rem;margin:0;line-height:1.6}

/* Breadcrumbs */
.breadcrumbs{font-size:.78rem;color:var(--muted);margin-bottom:1rem;max-width:800px;margin-left:auto;margin-right:auto;padding:0 2rem}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs span{color:var(--violet)}

/* 404 */
.not-found{text-align:center;padding:5rem 1rem}
.not-found h1{font-family:'Spectral',serif;font-size:5rem;color:var(--violet);font-weight:300;line-height:1}

/* ═══ FOOTER ═══ */
.site-footer{
  background:var(--bg2);border-top:1px solid var(--border);
  padding:2.5rem;text-align:center;
  color:var(--muted);font-size:.78rem;
  position:relative;
}
.site-footer::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(192,132,252,.3),rgba(232,121,164,.2),transparent);
}
.footer-logo{
  font-family:'Spectral',serif;font-size:1.1rem;
  background:var(--grad);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  margin-bottom:.5rem;display:block;letter-spacing:.04em;
}
.footer-links{display:flex;justify-content:center;gap:1.5rem;margin:.75rem 0;flex-wrap:wrap}
.footer-links a{color:var(--muted);font-size:.78rem}
.footer-links a:hover{color:var(--violet)}
.footer-ornament{margin:.75rem 0;color:var(--border);letter-spacing:.5em;font-size:.7rem}
.site-footer a{color:var(--muted)}
.site-footer a:hover{color:var(--violet)}

/* ═══ MOBILE ═══ */
@media(max-width:900px){
  .posts-grid-2{grid-template-columns:1fr}
  .posts-grid-2 .post-card:first-child{grid-column:span 1;flex-direction:column}
  .posts-grid-2 .post-card:first-child .card-img{width:100%;aspect-ratio:16/9}
  nav.main-nav{display:none}
}
@media(max-width:600px){
  .header-inner{padding:.7rem 1rem}
  .hero{padding:3.5rem 1rem 3rem}
  .hero-rings{width:360px;height:360px}
  .hero-ring:nth-child(4),
  .hero-ring:nth-child(5){display:none}
  .section{padding:2rem 1rem}
  .single-wrap{padding:0 1rem 2rem}
  .single-post-head h1{font-size:1.5rem}
}

/* ═══ CTA БЛОКИ ═══ */
.btn-primary{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.7rem 1.5rem;
  background:linear-gradient(135deg,#c084fc,#e879a4);
  color:#fff;font-size:.88rem;font-weight:600;letter-spacing:.04em;
  border-radius:4px;white-space:nowrap;
  transition:opacity .2s,transform .15s;
  text-decoration:none;
}
.btn-primary:hover{opacity:.88;transform:translateY(-1px);color:#fff}

.btn-primary-lg{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.9rem 2.2rem;
  background:linear-gradient(135deg,#c084fc,#e879a4);
  color:#fff;font-size:1rem;font-weight:600;letter-spacing:.05em;
  border-radius:4px;
  transition:opacity .2s,transform .15s;
  text-decoration:none;
}
.btn-primary-lg:hover{opacity:.88;transform:translateY(-1px);color:#fff}

.cta-top{
  margin:1.5rem 0;
  padding:1rem 1.5rem;
  background:linear-gradient(135deg,rgba(192,132,252,.1),rgba(232,121,164,.07));
  border:1px solid rgba(192,132,252,.25);
  border-left:3px solid #c084fc;
  border-radius:4px;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  flex-wrap:wrap;
}
.cta-top a.btn-primary{font-size:.82rem;white-space:normal}

.cta-middle{
  margin:2rem 0;
  padding:1.75rem 2rem;
  background:linear-gradient(135deg,rgba(192,132,252,.08),rgba(232,121,164,.05));
  border:1px solid rgba(192,132,252,.2);
  border-radius:6px;
  display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;
  position:relative;overflow:hidden;
}
.cta-middle::before{
  content:;position:absolute;top:-30px;right:-30px;
  width:120px;height:120px;
  background:radial-gradient(circle,rgba(192,132,252,.12),transparent 70%);
  border-radius:50%;pointer-events:none;
}
.cta-icon{font-size:2rem;flex-shrink:0}
.cta-text{flex:1;min-width:160px}
.cta-text h3{
  font-family:Spectral,serif;font-size:1.1rem;color:#e0d8f0;
  margin-bottom:.35rem;font-weight:600;
}
.cta-text p{color:#7a7090;font-size:.87rem;margin:0;line-height:1.55}

.cta-bottom{
  margin:2.5rem 0;
  padding:2.5rem 2rem;
  background:linear-gradient(135deg,rgba(192,132,252,.12),rgba(232,121,164,.08));
  border:1px solid rgba(192,132,252,.25);
  border-radius:8px;
  text-align:center;position:relative;overflow:hidden;
}
.cta-bottom::after{
  content:ψ;
  position:absolute;right:2rem;top:50%;transform:translateY(-50%);
  font-family:Spectral,serif;font-size:6rem;font-weight:300;
  color:rgba(192,132,252,.06);line-height:1;pointer-events:none;
}
.cta-bottom h2{
  font-family:Spectral,serif;font-size:1.5rem;font-weight:600;
  color:#e0d8f0;margin-bottom:.75rem;border:none;padding:0;
}
.cta-bottom p{color:#7a7090;font-size:.9rem;margin-bottom:1.5rem;max-width:480px;margin-left:auto;margin-right:auto}
.cta-bottom .btn-primary-lg{margin:0 auto}

@media(max-width:600px){
  .cta-top{flex-direction:column;align-items:flex-start}
  .cta-middle{flex-direction:column;text-align:center}
  .cta-bottom{padding:1.75rem 1.25rem}
  .cta-bottom::after{display:none}
}

/* Fix: .post-content a переопределял цвет кнопок */
.post-content .btn-primary,
.post-content .btn-primary:hover,
.post-content .btn-primary-lg,
.post-content .btn-primary-lg:hover{color:#fff!important;-webkit-text-fill-color:#fff!important}
