/*
Theme Name: WBexpert Journal
Theme URI: https://example.com/
Author: OpenAI
Description: Content-first WordPress theme for WBexpert: Wildberries, PVZ and moderated directories.
Version: 1.6.0
Text Domain: wbexpert-journal
*/
:root{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --surface-soft:#fafafe;
  --text:#19191f;
  --muted:#707584;
  --line:#e6e8ef;
  --line-strong:#d9dce6;
  --brand:#7c3aed;
  --brand-hover:#6d28d9;
  --brand-soft:#f3ecff;
  --green:#16803b;
  --green-soft:#ecfdf3;
  --amber:#f59e0b;
  --danger:#b91c1c;
  --radius:16px;
  --shadow:0 7px 24px rgba(30,23,55,.055);
  --container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.wrap{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:20px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.header-row{min-height:68px;display:flex;align-items:center;gap:14px}
.text-logo{font-size:23px;font-weight:950;letter-spacing:-.045em;color:#111827;white-space:nowrap}
.text-logo:before{content:'WB';display:inline-grid;place-items:center;width:30px;height:30px;margin-right:9px;border-radius:9px;background:linear-gradient(135deg,var(--brand),#d946ef);color:#fff;font-size:11px;letter-spacing:0;vertical-align:middle}
.header-search{display:flex;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#f5f6f9}
.header-search-wide{flex:1;max-width:610px;margin-left:auto}
.header-search input{width:100%;min-width:0;border:0;background:transparent;padding:11px 13px;outline:none;color:var(--text)}
.header-search button{border:0;background:#111827;color:#fff;font-weight:800;padding:11px 18px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:1px solid var(--brand);border-radius:10px;background:var(--brand);color:#fff;font-weight:800;line-height:1.2;transition:.16s ease}
.btn:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.btn.secondary{background:#fff;color:var(--brand)}
.specialist-btn{white-space:nowrap}

/* Layout */
.home-grid,.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px;align-items:start}
.home-grid{margin-top:26px}
.home-main{min-width:0}
.home-wide-v13{margin-top:24px}
.section-card,.sidebar-box,.article,.archive-card,.profile-single-v2,.profile-reviews,.profile-review-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 12px rgba(20,20,40,.025)}
.section-card{padding:22px;margin-bottom:22px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}
.section-head h2{margin:0;font-size:26px;line-height:1.14;letter-spacing:-.025em}
.section-head a{flex:0 0 auto;color:var(--brand);font-size:13px;font-weight:800}
.eyebrow{display:block;margin-bottom:4px;color:var(--brand);font-size:11px;font-weight:900;letter-spacing:.075em;text-transform:uppercase}
.section-intro{max-width:800px;margin:-7px 0 18px;color:var(--muted);font-size:14px}

/* Hero */
.hero{padding:0 0 22px}
.hero-box{padding:34px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#fff 0%,#fbf8ff 60%,#f4eaff 100%);box-shadow:var(--shadow)}
.hero-kicker{margin-bottom:9px;color:var(--brand);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.hero h1{max-width:820px;margin:0 0 14px;font-size:42px;line-height:1.08;letter-spacing:-.034em}
.hero p{max-width:760px;margin:0 0 23px;color:#4b5563;font-size:17px}
.hero-search{display:flex;max-width:760px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.035)}
.hero-search input{flex:1;min-width:0;border:0;padding:14px 16px;outline:none}
.hero-search button{border:0;background:var(--brand);color:#fff;font-weight:800;padding-inline:24px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.chip{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#4b5563;font-size:12px;font-weight:650}
.chip:hover{border-color:#cbb7fb;color:var(--brand)}

/* Home content */
.featured-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}
.featured-main,.mini-post{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff}
.featured-main .visual{height:210px;background:linear-gradient(135deg,#4c1d95,#c026d3)}
.featured-main .body,.mini-post .body{padding:16px}
.featured-main h3{margin:0 0 8px;font-size:24px;line-height:1.15;letter-spacing:-.02em}
.featured-main p{margin:0;color:var(--muted);font-size:14px}
.mini-stack{display:grid;gap:12px}
.mini-post{display:grid;grid-template-columns:110px minmax(0,1fr);min-height:90px}
.mini-post .visual{background:linear-gradient(135deg,#ede9fe,#c4b5fd)}
.mini-post h4{margin:0 0 6px;font-size:15px;line-height:1.25}
.meta{display:flex;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:12px}
.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.topic-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.topic-card:hover{border-color:#cab7f7;box-shadow:0 5px 18px rgba(73,38,130,.06)}
.topic-icon{display:grid;place-items:center;width:36px;height:36px;margin-bottom:10px;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-weight:900}
.topic-card strong{display:block;margin-bottom:4px}
.topic-card>span:last-child{display:block;color:var(--muted);font-size:13px}

/* Sidebar */
.sidebar{position:sticky;top:88px;display:grid;gap:18px;min-width:0}
.sidebar-box{padding:18px}
.sidebar-box h3{margin:0 0 14px;font-size:18px}
.sidebar-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.sidebar-title-row h3{margin:0}
.sidebar-title-row a{color:var(--brand);font-size:12px;font-weight:800}
.news-list,.rank-list{display:grid}
.news-item{display:grid;gap:3px;padding:11px 0;border-top:1px solid var(--line)}
.news-item:first-child{padding-top:0;border-top:0}
.news-date{color:var(--muted);font-size:10px}
.news-item strong{font-size:13px;line-height:1.35}
.rank-list{counter-reset:item}
.rank-item{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:11px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.32}
.rank-item:first-child{padding-top:0;border-top:0}
.rank-item:before{counter-increment:item;content:counter(item);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:900}
.directory-cta{background:linear-gradient(135deg,#20142e,#5b21b6);color:#fff}
.directory-cta p{color:#e9d5ff}
.directory-cta .btn{width:100%;border-color:#fff;background:#fff;color:#4c1d95}
.sidebar-empty{color:var(--muted);font-size:13px}

/* Full-width directory sections */
.directory-section-full,.comments-full-v13{width:100%;margin-bottom:22px}
.profile-grid-v2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.profile-card-v2{display:grid;grid-template-rows:auto auto minmax(48px,1fr) auto;min-width:0;height:100%;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 2px 10px rgba(24,24,39,.025);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.profile-card-v2:hover{transform:translateY(-2px);border-color:#d7c8f7;box-shadow:0 10px 26px rgba(45,24,75,.075)}
.profile-card-head{display:grid;grid-template-columns:62px minmax(0,1fr);gap:14px;padding:18px 18px 14px;border-bottom:1px solid #f0f1f5}
.profile-avatar-v2{display:grid;place-items:center;width:62px;height:62px;overflow:hidden;border:1px solid #eadffb;border-radius:15px;background:linear-gradient(135deg,#f7efff,#e9ddff)}
.profile-avatar-v2 img{width:100%;height:100%;object-fit:cover}
.profile-avatar-v2:empty:before{content:'WB';color:var(--brand);font-size:14px;font-weight:950}
.profile-card-title{min-width:0}
.profile-badge-v2{display:inline-flex;max-width:100%;padding:4px 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:10px;font-weight:850;line-height:1.2}
.profile-card-title h3{margin:6px 0 6px;font-size:17px;line-height:1.25;letter-spacing:-.015em;overflow-wrap:anywhere}
.profile-card-title h3 a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.profile-rating{display:flex;align-items:center;gap:5px;min-width:0;color:#4b5563;font-size:12px}
.profile-rating .rating-star{color:var(--amber);font-size:16px;line-height:1}
.profile-rating strong{color:#25252d;font-size:13px}
.profile-rating.is-empty{color:var(--muted)}
.rating-count{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-facts-v2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-bottom:1px solid #f0f1f5}
.profile-facts-v2>div{min-width:0;padding:12px 18px;border-top:1px solid #f0f1f5}
.profile-facts-v2>div:nth-child(-n+2){border-top:0}
.profile-facts-v2>div:nth-child(odd){border-right:1px solid #f0f1f5}
.profile-facts-v2 span{display:block;margin-bottom:3px;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.035em}
.profile-facts-v2 strong{display:block;min-width:0;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.profile-summary-v2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:0;padding:14px 18px;color:#555b68;font-size:13px;line-height:1.5}
.profile-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;border-top:1px solid var(--line);background:#fcfcfe}
.profile-status-v2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 8px;border-radius:999px;background:var(--green-soft);color:var(--green);font-size:10px;font-weight:800}
.profile-actions-v2{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.profile-review-link,.profile-main-link{padding:7px 9px;border-radius:8px;font-size:11px;font-weight:800;white-space:nowrap}
.profile-review-link{color:#5d6470;background:#f2f3f6}
.profile-main-link{background:var(--brand);color:#fff}
.profile-main-link:hover{background:var(--brand-hover)}
.directory-empty{grid-column:1/-1;display:grid;gap:4px;padding:18px;border:1px dashed #d8dce6;border-radius:12px;background:#fafbfc;color:var(--muted)}
.directory-empty strong{color:var(--text)}

/* Comments home */
.comments-center-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
.comment-center-item{display:grid;grid-template-columns:44px minmax(0,1fr);gap:11px;padding:15px 0;border-top:1px solid var(--line)}
.comment-center-item:nth-child(-n+2){border-top:0}
.avatar,.comment-center-item .avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#ddd}
.comment-center-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}
.comment-center-meta strong{font-size:13px}
.comment-center-meta span{color:var(--muted);font-size:11px}
.comment-center-item p{margin:4px 0 5px;color:#4b5563;font-size:13px;line-height:1.45}
.comment-center-item a{color:var(--brand);font-size:12px;font-weight:750}

/* Archives / articles */
.page-head,.directory-archive-head{padding:28px 0 18px}
.breadcrumbs{margin-bottom:10px;color:var(--muted);font-size:12px}
.breadcrumbs a{color:var(--brand)}
.page-head h1,.directory-archive-head h1{margin:4px 0 9px;font-size:38px;line-height:1.12;letter-spacing:-.028em}
.page-head p,.directory-archive-head p{max-width:780px;margin:0;color:var(--muted)}
.article{padding:30px}
.article h1{margin:0 0 12px;font-size:40px;line-height:1.12;letter-spacing:-.03em}
.article .lead{color:#4b5563;font-size:19px}
.article h2{margin-top:38px;font-size:28px;line-height:1.2}
.article h3{margin-top:28px;font-size:22px}
.article p,.article li{font-size:17px}
.article blockquote{margin:24px 0;padding:18px 20px;border-left:4px solid var(--brand);border-radius:0 10px 10px 0;background:#faf7ff}
.article table{width:100%;margin:24px 0;border-collapse:collapse}
.article td,.article th{padding:10px;border:1px solid var(--line);text-align:left}
.toc{margin:24px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fafafa}
.toc strong{display:block;margin-bottom:8px}.toc a{color:var(--brand)}
.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.related-card{padding:14px;border:1px solid var(--line);border-radius:10px}.related-card strong{display:block;margin-bottom:5px}.related-card span{color:var(--muted);font-size:12px}
.archive-list{display:grid;gap:14px}
.archive-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:18px}
.archive-card .visual{min-height:92px;overflow:hidden;border-radius:10px;background:linear-gradient(135deg,#ede9fe,#c4b5fd)}
.archive-card h2{margin:0 0 6px;font-size:20px;line-height:1.2}.archive-card p{margin:0 0 8px;color:var(--muted);font-size:14px}
.pagination{display:flex;gap:8px;margin-top:20px}.pagination .page-numbers{padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}

/* Profile single */
.directory-single-layout>div:first-child{min-width:0}
.profile-single-v2{overflow:hidden;padding:0}
.profile-single-v2 .breadcrumbs{padding:22px 26px 0}
.profile-single-hero{display:grid;grid-template-columns:104px minmax(0,1fr);gap:20px;padding:20px 26px 24px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#fff,#fbf8ff)}
.profile-avatar-single{display:grid;place-items:center;width:104px;height:104px;overflow:hidden;border:1px solid #e6daf8;border-radius:22px;background:linear-gradient(135deg,#f7efff,#e7dbfc)}
.profile-avatar-single img{width:100%;height:100%;object-fit:cover}
.profile-avatar-single:empty:before{content:'WB';color:var(--brand);font-size:20px;font-weight:950}
.profile-single-main{min-width:0}
.profile-single-main h1{margin:7px 0 8px;font-size:34px;line-height:1.13;letter-spacing:-.03em;overflow-wrap:anywhere}
.profile-review-cta{margin-top:14px}
.profile-facts-single{grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line)}
.profile-facts-single>div{border-top:0!important;border-right:1px solid #f0f1f5!important;padding:16px 18px}
.profile-facts-single>div:last-child{border-right:0!important}
.profile-entry-content{padding:24px 26px}
.profile-entry-content p,.profile-entry-content li{font-size:16px}

/* Reviews */
.profile-reviews,.profile-review-form{margin-top:22px;padding:24px}
.profile-reviews-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.profile-reviews-head h2,.profile-review-form h2{margin:2px 0 0;font-size:25px;line-height:1.2}
.review-list{display:grid;gap:12px}
.review-card{padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff}
.review-card-top{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center}
.review-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover}
.review-card-top strong{display:block;font-size:14px}
.review-card-top time{align-self:start;color:var(--muted);font-size:11px}
.review-stars{color:var(--amber);font-size:15px;letter-spacing:1px;line-height:1.2}
.review-stars span{color:#e2e4e9}
.review-text p{margin:10px 0 0;color:#4f5561;font-size:14px;line-height:1.55}
.profile-review-form-head{margin-bottom:16px}.profile-review-form-head p{max-width:680px;margin:6px 0 0;color:var(--muted);font-size:13px}
.comment-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.comment-form>*{min-width:0}
.comment-form .logged-in-as,.comment-form .comment-form-cookies-consent,.comment-form .form-submit,.review-comment-field{grid-column:1/-1}
.review-form-field{margin:0}.review-form-field label,.review-comment-field>label,.review-rating-field legend{display:block;margin-bottom:6px;color:#444a55;font-size:12px;font-weight:800}
.review-form-field input,.review-comment-field textarea{width:100%;border:1px solid var(--line-strong);border-radius:10px;background:#fff;padding:11px 12px;outline:none}
.review-form-field input:focus,.review-comment-field textarea:focus{border-color:#bca4ef;box-shadow:0 0 0 3px #f4effe}
.review-rating-field{margin:0 0 14px;padding:0;border:0}
.review-rating-input{display:inline-flex;flex-direction:row-reverse;gap:3px}
.review-rating-input input{position:absolute;opacity:0;pointer-events:none}
.review-rating-input label{color:#d8dae0;font-size:30px;line-height:1;cursor:pointer;transition:color .12s ease,transform .12s ease}
.review-rating-input label:hover,.review-rating-input label:hover~label,.review-rating-input input:checked~label{color:var(--amber)}
.review-rating-input label:hover{transform:scale(1.08)}
.review-submit{border:0;border-radius:10px;background:var(--brand);color:#fff;padding:11px 18px;font-weight:850}
.review-submit:hover{background:var(--brand-hover)}

/* Standard comments */
.comments-area{margin-top:22px;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff}
.comment-list{list-style:none;padding:0}.comment-list li{padding:14px 0;border-top:1px solid var(--line)}.comment-list li:first-child{border-top:0}
.comment-form textarea,.comment-form input{max-width:100%}

/* Footer */
.site-footer{margin-top:42px;background:#151119;color:#ddd}
.footer-grid{display:grid;grid-template-columns:1.2fr repeat(3,minmax(0,1fr));gap:28px;padding:36px 0}
.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:900}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--brand),#d946ef);color:#fff}.brand small{display:block;color:#a8a1ad;font-size:11px;font-weight:500;line-height:1.2}.site-footer h4{margin:0 0 10px;color:#fff}.site-footer a{display:block;margin:7px 0;color:#c9c4ce;font-size:14px}.site-footer p{color:#a8a1ad;font-size:14px}.footer-bottom{padding:16px 0;border-top:1px solid #2c2533;color:#9d96a5;font-size:12px}
.screen-reader-text{position:absolute;left:-9999px}

@media(max-width:980px){
  .home-grid,.content-grid{grid-template-columns:1fr}
  .sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  .header-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;height:auto;padding-block:10px}
  .header-search-wide{max-width:none}
  .hero h1{font-size:37px}
  .featured-grid{grid-template-columns:1fr}
  .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-facts-single{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-facts-single>div:nth-child(2){border-right:0!important}
  .profile-facts-single>div:nth-child(n+3){border-top:1px solid #f0f1f5!important}
  .comments-center-list{grid-template-columns:1fr}
  .comment-center-item:nth-child(2){border-top:1px solid var(--line)}
}

@media(max-width:720px){
  .wrap{padding-inline:14px}
  .header-row{grid-template-columns:1fr}
  .text-logo{justify-self:start}
  .header-search-wide,.specialist-btn{width:100%;max-width:none;margin:0}
  .specialist-btn{display:flex}
  .hero{padding-top:0}.hero-box{padding:24px 19px}.hero h1{font-size:31px}.hero p{font-size:16px}.hero-search{display:grid}.hero-search button{padding:12px}
  .section-card{padding:17px}.section-head{align-items:flex-start}.section-head h2{font-size:23px}
  .featured-main .visual{height:180px}.mini-post{grid-template-columns:88px minmax(0,1fr)}
  .topic-grid{grid-template-columns:1fr}
  .sidebar{grid-template-columns:1fr}
  .profile-grid-v2{grid-template-columns:1fr;gap:14px}
  .profile-card-head{grid-template-columns:56px minmax(0,1fr);padding:15px}.profile-avatar-v2{width:56px;height:56px}
  .profile-facts-v2>div{padding:11px 15px}.profile-summary-v2{padding:13px 15px}.profile-card-foot{padding:12px 15px}
  .profile-actions-v2{gap:6px}
  .page-head h1,.directory-archive-head h1{font-size:30px}
  .article{padding:20px}.article h1{font-size:30px}.article p,.article li{font-size:16px}
  .archive-card{grid-template-columns:1fr}.archive-card .visual{height:150px}
  .related-grid{grid-template-columns:1fr}
  .profile-single-hero{grid-template-columns:76px minmax(0,1fr);gap:14px;padding:18px}.profile-avatar-single{width:76px;height:76px;border-radius:17px}.profile-single-main h1{font-size:27px}
  .profile-facts-single{grid-template-columns:1fr}.profile-facts-single>div{border-right:0!important;border-top:1px solid #f0f1f5!important}.profile-facts-single>div:first-child{border-top:0!important}
  .profile-entry-content{padding:20px 18px}
  .profile-reviews,.profile-review-form{padding:18px}.profile-reviews-head{align-items:flex-start;flex-direction:column}
  .review-card-top{grid-template-columns:40px minmax(0,1fr)}.review-card-top time{grid-column:2}.review-avatar{width:40px;height:40px}
  .comment-form{grid-template-columns:1fr}
  .comment-form>*{grid-column:1!important}
  .footer-grid{grid-template-columns:1fr}
}

@media(max-width:440px){
  .profile-facts-v2{grid-template-columns:1fr}.profile-facts-v2>div{border-right:0!important;border-top:1px solid #f0f1f5!important}.profile-facts-v2>div:first-child{border-top:0!important}
  .profile-card-foot{align-items:flex-start;flex-direction:column}.profile-actions-v2{width:100%}.profile-review-link,.profile-main-link{flex:1;text-align:center}
  .comment-center-item{grid-template-columns:38px minmax(0,1fr)}.comment-center-item .avatar{width:38px;height:38px}.comment-center-meta{align-items:flex-start;flex-direction:column;gap:1px}
}

/* Generic directory cards used by vacancies and moderated review lists */
.directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.directory-card{min-width:0;padding:17px;border:1px solid var(--line);border-radius:13px;background:#fff}
.directory-card h3{margin:0 0 7px;font-size:18px;line-height:1.25}.directory-card p{margin:0 0 10px;color:var(--muted);font-size:13px}.directory-meta{display:flex;gap:8px;flex-wrap:wrap}.tag{padding:5px 8px;border-radius:999px;background:#f3f4f6;color:#555b68;font-size:11px}.notice{grid-column:1/-1;padding:16px;border:1px solid #bbf7d0;border-radius:12px;background:#f0fdf4;color:#166534}
@media(max-width:720px){.directory-grid{grid-template-columns:1fr}}


/* ===== Directory cards v1.5 — catalog-only refresh ===== */
.profile-grid-v2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.profile-card-v3{display:flex;flex-direction:column;min-width:0;height:100%;overflow:hidden;border:1px solid #e6e7eb;border-radius:18px;background:#fff;box-shadow:0 3px 16px rgba(25,25,35,.045);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.profile-card-v3:hover{transform:translateY(-2px);border-color:#d8c6f5;box-shadow:0 12px 30px rgba(56,36,84,.09)}
.profile-card-v3-top{display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:center;gap:18px;padding:22px 22px 18px}
.profile-avatar-v3{display:grid;place-items:center;width:96px;height:96px;overflow:hidden;border:1px solid #e7dcf7;border-radius:20px;background:linear-gradient(135deg,#faf6ff,#eee6fb)}
.profile-avatar-v3 img{width:100%;height:100%;object-fit:cover}
.profile-avatar-v3:empty:before{content:'WB';color:var(--brand);font-size:19px;font-weight:950}
.profile-card-v3-identity{min-width:0;align-self:center}
.profile-card-v3-identity h3{margin:0 0 7px;font-size:21px;line-height:1.18;letter-spacing:-.022em;overflow-wrap:anywhere}
.profile-card-v3-identity h3 a{color:var(--text)}
.profile-role-v3{color:#6b7280;font-size:13px;font-weight:650;line-height:1.35}
.profile-card-v3-rating{align-self:start;justify-self:end;min-width:92px;padding:11px 12px;border:1px solid #f0dfae;border-radius:14px;background:#fffaf0;text-align:center}
.profile-card-v3-rating .profile-rating{display:grid;grid-template-columns:auto auto;justify-content:center;gap:2px 5px;color:#6b7280}
.profile-card-v3-rating .rating-star{grid-row:1/3;align-self:center;font-size:27px;line-height:1}
.profile-card-v3-rating .profile-rating strong{font-size:22px;line-height:1;color:#202127;font-weight:900}
.profile-card-v3-rating .rating-count{grid-column:2;display:block;max-width:92px;font-size:10px;line-height:1.2;white-space:normal;color:#7a7f89}
.profile-card-v3-rating .profile-rating.is-empty{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px}
.profile-card-v3-rating .profile-rating.is-empty .rating-star{font-size:24px}
.profile-facts-v3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 22px;border:1px solid #eff0f3;border-radius:13px;background:#fafbfc}
.profile-facts-v3>div{min-width:0;padding:13px 14px;border-left:1px solid #eff0f3}
.profile-facts-v3>div:first-child{border-left:0}
.profile-facts-v3 span{display:block;margin-bottom:4px;color:#8a8f99;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.profile-facts-v3 strong{display:block;min-width:0;font-size:13px;line-height:1.38;overflow-wrap:anywhere}
.profile-summary-v3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;padding:16px 22px 18px;color:#5b606b;font-size:13px;line-height:1.55;min-height:74px}
.profile-card-v3-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:auto;padding:15px 22px;border-top:1px solid #eff0f3;background:#fcfcfd}
.profile-status-v3{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#317052;font-size:11px;font-weight:800}
.profile-main-link-v3{flex:0 0 auto;padding:9px 13px;border-radius:9px;background:var(--brand);color:#fff;font-size:12px;font-weight:850;white-space:nowrap}
.profile-main-link-v3:hover{background:var(--brand-hover);color:#fff}
.directory-section .section-head h2{margin-top:0}
@media(max-width:860px){
  .profile-grid-v2{grid-template-columns:1fr}
  .profile-card-v3-top{grid-template-columns:86px minmax(0,1fr) auto;padding:18px}
  .profile-avatar-v3{width:86px;height:86px;border-radius:18px}
  .profile-facts-v3{margin:0 18px}
  .profile-summary-v3{padding-left:18px;padding-right:18px}.profile-card-v3-foot{padding-left:18px;padding-right:18px}
}
@media(max-width:560px){
  .profile-card-v3-top{grid-template-columns:76px minmax(0,1fr);gap:13px;padding:16px}
  .profile-avatar-v3{width:76px;height:76px;border-radius:16px}
  .profile-card-v3-identity h3{font-size:18px}
  .profile-card-v3-rating{grid-column:1/-1;justify-self:stretch;min-width:0;padding:9px 12px}
  .profile-card-v3-rating .profile-rating{display:flex;justify-content:flex-start}.profile-card-v3-rating .rating-count{max-width:none;white-space:nowrap}
  .profile-facts-v3{grid-template-columns:1fr;margin:0 16px}.profile-facts-v3>div{border-left:0;border-top:1px solid #eff0f3}.profile-facts-v3>div:first-child{border-top:0}
  .profile-summary-v3{min-height:0;padding:14px 16px 16px}.profile-card-v3-foot{padding:13px 16px}
}

/* ===== Moscow PVZ catalog v1.6 ===== */
.pvz-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;max-width:760px;margin-top:16px}
.pvz-search-form input{width:100%;min-width:0;padding:13px 14px;border:1px solid var(--line-strong);border-radius:11px;background:#fff;font-size:15px;outline:none}
.pvz-search-form input:focus{border-color:#bca4ef;box-shadow:0 0 0 3px #f4effe}
.catalog-count{margin:16px 0;color:var(--muted);font-size:13px}
.catalog-pagination{margin:26px 0 10px}
.catalog-pagination .page-numbers{display:flex;flex-wrap:wrap;gap:7px;align-items:center;list-style:none;margin:0;padding:0}
.catalog-pagination a,.catalog-pagination span{display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);font-size:13px;font-weight:750}
.catalog-pagination .current{border-color:var(--brand);background:var(--brand);color:#fff}
.profile-rating.source-rating .rating-count{color:#8a6b00;font-weight:750}
@media(max-width:560px){.pvz-search-form{grid-template-columns:1fr}.pvz-search-form .btn{width:100%}}
