/*
Theme Name: НейроРенессанс
Version: 1.2.0
Text Domain: neuro-renaissance
*/

:root{--ink:#171b34;--muted:#62657c;--line:#e4e4ef;--purple:#6750ba;--paper:#f7f7fb}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.6 Arial,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #6750ba;outline-offset:4px}.wrap{max-width:1240px;margin:auto;padding:0 32px}.notice{background:#eeebf7;text-align:center;font-size:13px;padding:7px 20px;color:#514765}header{background:#fff;border-bottom:1px solid var(--line)}.head{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:104px}.brand{display:flex;align-items:center;gap:14px}.logo{width:43px;height:53px}.brand strong{font:25px Georgia,serif;letter-spacing:1px}.brand small{display:block;font-size:10px;letter-spacing:3px;color:var(--muted)}.btn{display:inline-block;border:1px solid var(--purple);background:var(--purple);color:#fff;padding:11px 22px;border-radius:5px;font-size:14px}.btn.light{color:var(--ink);background:transparent;border-color:var(--line)}.nav{display:flex;gap:25px;align-items:center;font-size:14px}.intro{padding:54px 0 34px;display:flex;justify-content:space-between;gap:35px;align-items:end}.eyebrow{color:var(--purple);text-transform:uppercase;letter-spacing:2px;font-size:12px;font-weight:bold}.intro h1{font:48px/1.13 Georgia,serif;font-weight:normal;max-width:760px;margin:14px 0}.intro p{color:var(--muted);max-width:650px;margin:16px 0 0}.issue{font:italic 18px Georgia,serif;color:#777183;min-width:155px;padding-bottom:10px}.feature{display:grid;grid-template-columns:1.55fr 1fr;gap:25px}.lead{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.art{height:250px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at 50% 95%,#fff8dc,transparent 40%),linear-gradient(125deg,#e7ecff,#e8e1fb 60%,#f9f8fc);position:relative}.art svg{width:170px;height:220px;opacity:.85}.art .caption{position:absolute;left:25px;top:21px;font-size:12px;letter-spacing:3px;color:#5b5278}.leadcopy{padding:25px 29px}.meta{font-size:12px;color:var(--purple);letter-spacing:.5px}.lead h2{font:31px/1.18 Georgia,serif;margin:12px 0}.lead p{font-size:15px;color:var(--muted);margin:12px 0}.read{font-size:14px;color:var(--purple);background:none;border:0;padding:0}.side{display:flex;flex-direction:column;border-top:1px solid var(--line)}.side article{padding:22px 0;border-bottom:1px solid var(--line);flex:1}.side h3{font:24px/1.25 Georgia,serif;margin:9px 0}.side p{font-size:14px;color:var(--muted);margin:8px 0}.section{padding:60px 0}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.sectionhead h2{font:35px Georgia,serif;margin:0}.filters{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:24px}.filters button{background:#fff;border:1px solid var(--line);border-radius:25px;padding:8px 16px;font-size:13px;color:var(--muted)}.filters button.active{background:var(--ink);color:#fff;border-color:var(--ink)}input{border:1px solid var(--line);padding:10px 14px;border-radius:5px;background:white;max-width:100%;width:245px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{border-top:2px solid #cfc7eb;padding:20px;background:white;border-radius:0 0 8px 8px;min-height:245px}.card h3{font:25px/1.25 Georgia,serif;margin:14px 0}.card p{font-size:14px;color:var(--muted)}.club{background:#efedf8;border:1px solid #dfd9f0;border-radius:14px;padding:46px;display:grid;grid-template-columns:1.6fr 1fr;gap:55px}.club h2{font:39px/1.17 Georgia,serif;margin:15px 0}.club p{color:var(--muted)}.price{border-left:1px solid #d4cbe7;padding-left:35px;display:flex;flex-direction:column;justify-content:center}.price strong{font:42px Georgia,serif}.price ul{padding-left:18px;font-size:14px}.price .btn{align-self:start}.about{display:grid;grid-template-columns:1fr 1fr;gap:80px;padding-bottom:60px}.about h2{font:32px Georgia,serif}.about p{color:var(--muted)}details{border-bottom:1px solid var(--line);padding:16px 0}summary{cursor:pointer;font-size:16px}details p{font-size:14px}footer{border-top:1px solid var(--line);padding:25px 0;background:#fff;color:var(--muted);font-size:13px}.foot{display:flex;justify-content:space-between;gap:25px}.empty{padding:30px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:14px;max-width:580px;width:calc(100% - 32px);padding:32px;color:var(--ink)}dialog::backdrop{background:#14132888}dialog h2{font:29px Georgia,serif}dialog p{color:var(--muted)}.close{float:right;background:none;border:0;font-size:24px}[hidden]{display:none!important}@media(max-width:800px){.wrap{padding:0 20px}.head{min-height:88px}.brand strong{font-size:19px}.brand small{font-size:8px;letter-spacing:2px}.nav a:not(.btn){display:none}.nav .btn{padding:9px 12px}.intro{padding:32px 0 24px}.intro h1{font-size:36px}.issue{display:none}.feature,.club,.about{grid-template-columns:1fr}.cards{grid-template-columns:1fr 1fr}.club{padding:28px;gap:20px}.price{border-left:0;border-top:1px solid #d4cbe7;padding:24px 0 0}.section{padding:40px 0}.about{gap:10px}.sectionhead{align-items:start;flex-direction:column}.foot{flex-direction:column;gap:8px}}@media(max-width:480px){.cards{grid-template-columns:1fr}.brand strong{font-size:16px}.brand small{letter-spacing:1px}.logo{width:31px}.head{gap:10px}.intro h1{font-size:32px}.lead h2{font-size:27px}.club h2{font-size:31px}.art{height:210px}}

.wp-post-image{width:100%;height:250px;object-fit:cover}.entry{max-width:820px;margin:40px auto 70px;background:white;padding:38px;border-radius:18px}.entry h1{font:42px/1.15 Georgia,serif}.entry p,.entry li{font-size:18px}.entry img{max-width:100%;height:auto}.entry a{text-decoration:underline;color:#5942b7}.entry figure{max-width:100%;margin:25px 0}.entry iframe{max-width:100%}.pagination{padding:25px 0}.pagination a,.pagination span{padding:8px}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:fixed;top:0;left:0;width:auto;height:auto;clip-path:none;background:white;z-index:1000;padding:12px}.search-form{display:flex;gap:8px;flex-wrap:wrap}.art{height:250px}.entry .meta{font-size:14px}.content-area{min-height:50vh}@media(max-width:520px){.entry{padding:24px 18px}.entry h1{font-size:31px}.entry p,.entry li{font-size:16px}}
/* Первый вариант: мягкие скругления */
.lead,.card,.club,.entry{border-radius:22px;overflow:hidden}
.card{border:1px solid var(--line);padding:24px;background:#fff}
.card .wp-post-image{border-radius:14px;height:200px;margin-bottom:18px}
.btn,input{border-radius:12px}.filters{gap:10px}.filters .btn{border-radius:24px;padding:8px 16px}
.side{border-top:0;gap:14px}.side article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px 24px}
.lead .wp-post-image{display:block;height:270px;width:100%;object-fit:cover}
.lead .art{border-radius:0;background:linear-gradient(130deg,#c7d9ff,#b7b2ff 65%,#f2f4f8)}
.pagination .page-numbers{display:inline-block;border:1px solid var(--line);border-radius:10px;margin:3px}
.sectionhead .search-form{justify-content:flex-end}.feature{margin-top:8px}.leadcopy h2 a{color:inherit}
@media(max-width:800px){.sectionhead .search-form{justify-content:flex-start}.side article{padding:20px}.lead .wp-post-image{height:230px}}

/* Compact rhythm and a news grid that fits the actual number of posts. */
.wrap{max-width:1160px}
.head{min-height:90px}
.intro{padding:34px 0 22px;gap:24px}
.intro h1{font-size:clamp(32px,4vw,46px);margin:12px 0}
.intro p{margin-top:12px}
.issue{min-width:0;max-width:180px;flex:0 0 180px}
.section{padding:32px 0}
.intro + .section{padding-top:12px}
.sectionhead{margin-bottom:16px}
.sectionhead h2{font-size:32px}
.filters{margin-bottom:16px}
.filters:empty,.pagination:empty{display:none}
.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px}
.card{min-height:0;padding:24px}
.card:only-child h3{max-width:32ch;font-size:30px}
.card:only-child p{max-width:75ch;font-size:16px}
.card:only-child .wp-post-image{height:240px}
.feature{gap:18px;margin-top:0}
.side{gap:12px}
.side article{padding:18px 22px}
.club{padding:32px;gap:32px}
.club h2{font-size:34px;margin:10px 0}
.about{gap:40px;padding-bottom:32px}
.entry{margin:28px auto 40px}
.entry h1{font-size:clamp(30px,3.4vw,40px);margin:20px 0}
@media(max-width:800px){
 .intro{padding:26px 0 16px}.section{padding:26px 0}
 .intro + .section{padding-top:10px}
 .sectionhead{gap:14px}.sectionhead .search-form{width:100%}
 .search-form input{flex:1;min-width:0;width:auto}
 .club{padding:26px;gap:20px}.about{gap:16px}
}
@media(max-width:480px){
 .head{min-height:80px}.wrap{padding:0 18px}
 .card{padding:20px}.card:only-child h3{font-size:26px}
 .sectionhead h2{font-size:29px}.club h2{font-size:30px}
}
/* Hero artwork is a background layer, keeping the editorial text readable. */
.intro{position:relative;isolation:isolate;min-height:390px;overflow:hidden;border-radius:0 0 22px 22px}.introcopy{position:relative;z-index:2;max-width:700px;padding:12px 0 28px}.introvisual{position:absolute;z-index:-1;inset:0;pointer-events:none}.introvisual::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f7f7fb 0%,#f7f7fbe8 34%,#f7f7fb98 62%,#f7f7fb45 100%)}.introvisual img{display:block;width:100%;height:100%;object-fit:cover;object-position:center right;opacity:.62}@media(max-width:800px){.intro{min-height:430px}.introcopy{padding-bottom:20px}.introvisual img{object-position:62% center;opacity:.5}.introvisual::after{background:linear-gradient(180deg,#f7f7fbe8 0%,#f7f7fb9c 48%,#f7f7fb45 100%)}}

.introcta{margin-top:18px;border-radius:12px}.club .price .btn{border-radius:12px}.club ul{line-height:1.8}
.founder{margin-top:24px;padding-top:18px;border-top:1px solid #e1dcf3}.founder p{margin:0 0 12px}.founder-links{display:flex;flex-wrap:wrap;gap:10px}.founder-links a,.club .price .btn.light{background:#faf9ff;color:#5f45c1;border:1px solid #ddd7f4;border-radius:12px}.founder-links a{display:inline-flex;padding:10px 16px;font-size:15px;text-decoration:none}.founder-links a:hover,.club .price .btn.light:hover{background:#f0edff}.founder-links a:focus-visible{outline:2px solid #5f45c1;outline-offset:3px}

.channel{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 32px;margin:0 0 28px;background:#f0edfa;border:1px solid #e1dcf3;border-radius:24px}.channel h2{font-size:clamp(26px,3vw,34px);margin:10px 0}.channel p{margin:0;max-width:650px}.channel .btn{flex-shrink:0;background:#fff;color:#5f45c1;border:1px solid #d9d1ee;border-radius:12px}.channel .btn:hover{background:#e7e1f7}.channel .btn:focus-visible{outline:2px solid #5f45c1;outline-offset:4px}@media(max-width:800px){.channel{flex-direction:column;align-items:flex-start;padding:24px}.channel .btn{white-space:normal}}

.nav{gap:10px}.nav>a{border-radius:12px;padding:12px 16px}.nav>a.nav-active{background:#f0edff;color:#5f45c1}.nav>a.light{background:#faf9ff;border:1px solid #ddd7f4;color:#5f45c1}.nav>a.light:hover{background:#f0edff}
/* Keep editorial covers intact and long article text inside the viewport. */
.card,.lead,.side,.entry{min-width:0}
.card .wp-post-image,.lead .wp-post-image{display:block;width:100%;height:auto;object-fit:contain;object-position:center}
.entry{width:100%;overflow:visible}
.entry h1,.entry h2,.entry h3,.entry p,.entry li,.entry a,.card h3,.lead h2{overflow-wrap:anywhere}
.entry pre,.entry .wp-block-table{max-width:100%;overflow-x:auto}
.entry h2{font:clamp(25px,3vw,32px)/1.25 Georgia,serif;margin:36px 0 16px;scroll-margin-top:32px}
.entry h3{font-size:22px;line-height:1.35;margin:28px 0 12px}
.entry li{margin-bottom:10px}.entry code{font-size:.9em;background:#f0edf8;padding:2px 5px;border-radius:4px;overflow-wrap:anywhere}
.article-toc{background:#f4f1fb;border:1px solid var(--line);border-radius:18px;padding:22px 26px;margin:24px 0 30px}
.article-toc ol{padding-left:22px;margin:12px 0 0}.entry .article-toc li{font-size:16px;margin:7px 0}
.entry .article-toc a{text-decoration:none}.entry .article-toc a:hover{text-decoration:underline}
@media(max-width:520px){.article-toc{padding:18px}.entry h2{margin-top:28px}}
.entry table{width:100%;border-collapse:collapse;min-width:520px;font-size:16px;line-height:1.5}
.entry th,.entry td{padding:14px;text-align:left;vertical-align:top;border:1px solid var(--line)}
.entry th{background:#f0edf8}.entry .article-sources{font-size:14px;color:var(--muted)}
.entry blockquote{margin:24px 0;padding:10px 22px;border-left:3px solid #b7a5e6;background:#f7f5fb;border-radius:0 14px 14px 0}
