/*
Theme Name: RussaCom
Theme URI: https://russacom.ru/
Author: RussaCom
Description: SEO-first SaaS theme for RussaCom link placement and content distribution service.
Version: 0.2.6
Text Domain: russacom
*/

:root{
  --bg:#f6f8fb;
  --surface:#ffffff;
  --surface-2:#f0f4f8;
  --text:#111827;
  --muted:#667085;
  --border:#e6eaf0;
  --accent:#3457ff;
  --accent-2:#6a7cff;
  --success:#067647;
  --warning:#b54708;
  --danger:#b42318;
  --radius:18px;
  --shadow:0 12px 34px rgba(17,24,39,.07);
}
*{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.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(1180px,calc(100% - 32px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(246,248,251,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(230,234,240,.8)}
.header-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{font-size:24px;font-weight:800;letter-spacing:-.04em}
.brand span{color:var(--accent)}
.main-nav{display:flex;align-items:center;gap:24px;color:#344054;font-size:14px}
.header-actions{display:flex;gap:10px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:12px;border:1px solid var(--border);font-weight:700;font-size:14px;cursor:pointer;transition:.18s ease;background:#fff}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 10px 20px rgba(52,87,255,.18)}
.btn-ghost{background:transparent}
.hero{padding:84px 0 56px}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:48px;align-items:center}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;background:#eef1ff;color:#3047c7;font-size:13px;font-weight:700}
h1,h2,h3{margin:0 0 16px;line-height:1.08;letter-spacing:-.035em}
h1{font-size:clamp(42px,6vw,72px);max-width:780px}
h2{font-size:clamp(30px,4vw,48px)}
h3{font-size:20px}
.lead{font-size:20px;color:var(--muted);max-width:680px;margin:0 0 28px}
.hero-points{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px;color:#475467;font-size:14px}
.hero-points span{padding:8px 10px;border:1px solid var(--border);border-radius:999px;background:#fff}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.lead-form{padding:24px}
.form-title{font-size:20px;font-weight:800;margin-bottom:4px}
.form-sub{color:var(--muted);font-size:14px;margin-bottom:20px}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.field label{font-size:13px;font-weight:700;color:#344054}
.field input,.field select,.field textarea{width:100%;border:1px solid #dfe4ea;background:#fff;border-radius:12px;padding:13px 14px;font:inherit;outline:none;transition:.18s ease}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#93a3ff;box-shadow:0 0 0 4px rgba(52,87,255,.08)}
.field textarea{min-height:106px;resize:vertical}
.form-note{font-size:12px;color:#98a2b3;margin-top:10px}
.section{padding:76px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}
.section-head p{max-width:620px;color:var(--muted);margin:0}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.step{padding:22px}
.step-num{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#eef1ff;color:var(--accent);font-weight:800;margin-bottom:18px}
.step p,.feature p,.price-card p{margin:0;color:var(--muted)}
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feature{padding:22px}
.feature-badge{font-size:12px;font-weight:800;color:var(--accent);margin-bottom:14px}
.progress-demo{padding:28px;display:grid;grid-template-columns:1fr 300px;gap:36px;align-items:center}
.progress-meta{display:flex;justify-content:space-between;font-size:13px;color:#667085;margin-bottom:10px}
.progress{height:12px;background:#eef1f5;border-radius:999px;overflow:hidden}
.progress > span{display:block;height:100%;width:76%;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:999px}
.progress-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.stat{padding:16px;background:var(--surface-2);border-radius:14px}
.stat strong{display:block;font-size:26px;letter-spacing:-.04em}
.stat span{font-size:12px;color:var(--muted)}
.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.price-card{padding:24px;position:relative}
.price-card.featured{border-color:#aab5ff;box-shadow:0 16px 40px rgba(52,87,255,.13)}
.price{font-size:34px;font-weight:850;letter-spacing:-.05em;margin:18px 0 4px}
.price small{font-size:14px;color:var(--muted);font-weight:600}
.list{padding:0;margin:18px 0 0;list-style:none;display:grid;gap:10px;color:#475467;font-size:14px}
.list li:before{content:"✓";color:var(--success);font-weight:900;margin-right:9px}
.cta{padding:34px;display:flex;justify-content:space-between;gap:24px;align-items:center;background:#111827;color:#fff}
.cta p{color:#cbd5e1;margin:6px 0 0}
.site-footer{padding:40px 0 26px;color:#667085;font-size:13px}
.footer-grid{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;border-top:1px solid var(--border);padding-top:28px}
.footer-links{display:flex;gap:18px;flex-wrap:wrap}

/* Dashboard shell */
.dashboard-shell{display:grid;grid-template-columns:240px 1fr;min-height:calc(100vh - 72px)}
.sidebar{padding:24px 16px;border-right:1px solid var(--border);background:#fff}
.sidebar-nav{display:grid;gap:6px}
.sidebar-nav a{padding:11px 12px;border-radius:10px;color:#475467;font-size:14px;font-weight:650}
.sidebar-nav a:hover,.sidebar-nav a.active{background:#f2f4f7;color:#111827}
.dashboard-main{padding:32px}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0 28px}
.metric{padding:18px}
.metric span{color:var(--muted);font-size:12px}
.metric strong{display:block;font-size:28px;margin-top:4px;letter-spacing:-.04em}
.table-card{overflow:hidden}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{padding:14px 16px;border-bottom:1px solid var(--border);text-align:left;font-size:13px}
th{color:#667085;font-weight:700;background:#fafbfc}
.badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#f2f4f7;color:#475467}
.badge.success{background:#ecfdf3;color:#067647}
.badge.warn{background:#fffaeb;color:#b54708}

@media (max-width:900px){
  .main-nav{display:none}.hero-grid,.progress-demo{grid-template-columns:1fr}.steps,.features,.pricing,.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-shell{grid-template-columns:1fr}.sidebar{display:none}
}
@media (max-width:640px){
  .container{width:min(100% - 22px,1180px)}.header-inner{height:64px}.header-actions .btn-ghost{display:none}.hero{padding:54px 0 36px}.hero-grid{gap:28px}.lead{font-size:17px}.section{padding:52px 0}.steps,.features,.pricing,.dashboard-grid{grid-template-columns:1fr}.section-head,.cta,.footer-grid{align-items:flex-start;flex-direction:column}.dashboard-main{padding:20px}.lead-form{padding:18px}
}

/* v0.2 SEO homepage */
.hero-seo{padding-top:72px;padding-bottom:52px;background:radial-gradient(circle at 74% 12%,rgba(52,87,255,.09),transparent 30%),linear-gradient(180deg,#f8faff 0%,var(--bg) 100%)}
.hero-copy h1{font-size:clamp(44px,5.4vw,68px);max-width:800px}
.hero-copy .lead{max-width:760px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:30px 0 0}
.btn-lg{min-height:50px;padding:0 22px;font-size:15px}
.hero-benefits{margin-top:22px}
.form-kicker{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin-bottom:8px}
.trust-strip{border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:#fff}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.trust-grid>div{padding:20px 24px;border-right:1px solid var(--border)}
.trust-grid>div:last-child{border-right:0}
.trust-grid strong,.trust-grid span{display:block}
.trust-grid strong{font-size:14px;margin-bottom:3px}
.trust-grid span{font-size:12px;color:var(--muted)}
.two-col{display:grid;grid-template-columns:.8fr 1.2fr;gap:72px;align-items:start}
.copy-grid h2{max-width:520px}
.rich-copy{font-size:17px;color:#475467;line-height:1.75}
.rich-copy p{margin:0 0 18px}
.rich-copy strong{color:var(--text)}
.section-soft{background:#eef3f8;border-top:1px solid #e4eaf1;border-bottom:1px solid #e4eaf1}
.benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.benefit-card{padding:24px;min-height:230px}
.icon-tile{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eef1ff;color:var(--accent);font-size:12px;font-weight:900;margin-bottom:24px}
.pro-section{padding-top:30px}
.pro-box{padding:42px;border-radius:26px;background:#111827;color:#fff;display:grid;grid-template-columns:.8fr 1.2fr;gap:54px;box-shadow:0 22px 55px rgba(17,24,39,.16)}
.pro-intro p{color:#b9c2d0;font-size:16px;line-height:1.7}
.eyebrow-dark{background:#202c46;color:#c7d2fe}
.pro-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.pro-grid>div{padding:18px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.035)}
.pro-grid strong,.pro-grid span{display:block}
.pro-grid strong{font-size:15px;margin-bottom:5px}
.pro-grid span{font-size:12px;color:#aab4c4;line-height:1.5}
.example-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;align-items:stretch}
.article-example{padding:30px;background:linear-gradient(180deg,#fff,#fbfcff)}
.article-domain{font-size:12px;color:var(--accent);font-weight:800;margin-bottom:24px}
.article-example h3{font-size:28px;max-width:720px}
.article-example p{font-size:16px;color:var(--muted);max-width:720px}
.link-example{margin-top:28px;padding:16px;border-radius:12px;background:#f1f4ff;display:flex;gap:10px;flex-wrap:wrap;font-size:14px}
.link-example span{color:#667085}.link-example strong{color:#253bba}
.example-notes{display:grid;gap:12px}
.example-notes>div{padding:20px;border:1px solid var(--border);border-radius:16px;background:#fff;display:grid;grid-template-columns:38px 1fr;gap:12px;align-items:start}
.example-notes span{width:32px;height:32px;border-radius:9px;background:#eef1ff;color:var(--accent);display:grid;place-items:center;font-size:11px;font-weight:900}
.example-notes p{margin:3px 0 0;color:var(--muted);font-size:14px;line-height:1.6}
.placement-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.placement-card{padding:30px}.placement-card p{color:var(--muted)}
.placement-featured{border-color:#aab5ff;box-shadow:0 16px 40px rgba(52,87,255,.1)}
.tag{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eef1ff;color:#3047c7;font-size:11px;font-weight:800;margin-bottom:18px}
.progress-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}
.progress-steps span{font-size:11px;color:#98a2b3}.progress-steps .done{color:#067647}.progress-steps .active{color:var(--accent);font-weight:800}
.narrow-content{width:min(920px,calc(100% - 32px));margin:0 auto}
.seo-text-section{background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.seo-text-section h2{max-width:800px;margin-top:16px}
.columns-copy{columns:2;column-gap:46px;margin-top:28px;font-size:15px}
.columns-copy p{break-inside:avoid}
.faq-list{display:grid;gap:10px}
.faq-item{padding:0;overflow:hidden;box-shadow:none}
.faq-item summary{list-style:none;cursor:pointer;padding:20px 24px;font-size:16px;font-weight:800;position:relative;padding-right:54px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:after{content:"+";position:absolute;right:22px;top:17px;font-size:24px;color:#98a2b3;font-weight:400}
.faq-item[open] summary:after{content:"−"}
.faq-item p{margin:0;padding:0 24px 22px;color:var(--muted);line-height:1.7;font-size:14px;max-width:860px}
.cta-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#aab5ff}
@media(max-width:1000px){.trust-grid,.benefit-grid{grid-template-columns:repeat(2,1fr)}.trust-grid>div:nth-child(2){border-right:0}.trust-grid>div:nth-child(-n+2){border-bottom:1px solid var(--border)}.two-col,.pro-box,.example-layout{grid-template-columns:1fr}.pro-box{gap:28px}}
@media(max-width:700px){.hero-seo{padding-top:48px}.hero-copy h1{font-size:42px}.trust-grid,.benefit-grid,.pro-grid,.placement-grid{grid-template-columns:1fr}.trust-grid>div{border-right:0;border-bottom:1px solid var(--border)!important}.trust-grid>div:last-child{border-bottom:0!important}.two-col{gap:24px}.pro-box{padding:26px 20px}.columns-copy{columns:1}.progress-steps{grid-template-columns:1fr 1fr}.article-example{padding:22px}.article-example h3{font-size:24px}}

/* RussaCom Core dashboard compatibility */
.russacom-dashboard-page{min-height:calc(100vh - 72px);padding:1px 0 40px}
.russacom-dashboard-page .rc-dashboard{width:min(1280px,calc(100% - 32px));max-width:none}
@media(max-width:800px){.russacom-dashboard-page .rc-dashboard{width:auto}}


/* v0.2.2: real RussaCom Core dashboard styling fallback */
.russacom-dashboard-page{background:var(--bg)}
.russacom-dashboard-page .rc-dashboard{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;width:min(1280px,calc(100% - 32px));max-width:none;margin:32px auto}
.russacom-dashboard-page .rc-dashboard-nav{display:flex;flex-direction:column;gap:6px;padding:18px;background:#fff;border:1px solid var(--border);border-radius:16px;height:max-content;box-shadow:0 8px 24px rgba(16,24,40,.04)}
.russacom-dashboard-page .rc-dashboard-nav a{padding:11px 14px;border-radius:10px;color:#475467;font-size:14px;font-weight:700}
.russacom-dashboard-page .rc-dashboard-nav a:hover,.russacom-dashboard-page .rc-dashboard-nav a.active{background:#f2f4f7;color:#111827}
.russacom-dashboard-page .rc-dashboard-main{min-width:0}
.russacom-dashboard-page .rc-dashboard-main h1{font-size:38px;margin:0 0 6px}
.russacom-dashboard-page .rc-heading-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.russacom-dashboard-page .rc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 28px}
.russacom-dashboard-page .rc-stat,.russacom-dashboard-page .rc-card,.russacom-dashboard-page .rc-order-card{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 8px 24px rgba(16,24,40,.05)}
.russacom-dashboard-page .rc-stat{padding:18px}
.russacom-dashboard-page .rc-stat strong{display:block;font-size:28px;line-height:1.1;letter-spacing:-.04em}
.russacom-dashboard-page .rc-stat span{display:block;margin-top:6px;color:var(--muted);font-size:13px}
.russacom-dashboard-page .rc-card,.russacom-dashboard-page .rc-order-card{padding:22px;margin-bottom:18px}
.russacom-dashboard-page .rc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.russacom-dashboard-page .rc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:10px;padding:0 16px;text-decoration:none;border:1px solid transparent;cursor:pointer;font-weight:700;font-size:14px}
.russacom-dashboard-page .rc-btn-primary{background:var(--accent);color:#fff;box-shadow:0 8px 18px rgba(52,87,255,.18)}
.russacom-dashboard-page .rc-btn-secondary{background:#fff;color:#344054;border-color:#d0d5dd}
.russacom-dashboard-page .rc-form{display:grid;gap:14px}
.russacom-dashboard-page .rc-form label{display:grid;gap:7px;font-weight:700;color:#344054;font-size:14px}
.russacom-dashboard-page .rc-form input,.russacom-dashboard-page .rc-form textarea,.russacom-dashboard-page .rc-form select{width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}
.russacom-dashboard-page .rc-table-wrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:14px}
.russacom-dashboard-page .rc-table{width:100%;border-collapse:collapse;background:#fff}
.russacom-dashboard-page .rc-table th,.russacom-dashboard-page .rc-table td{text-align:left;padding:13px 15px;border-bottom:1px solid #eaecf0;font-size:13px}
.russacom-dashboard-page .rc-table th{color:#667085;background:#fafbfc}
.russacom-dashboard-page .rc-progress{height:9px;background:#eaecf0;border-radius:999px;overflow:hidden;margin:16px 0 7px}
.russacom-dashboard-page .rc-progress span{display:block;height:100%;background:var(--accent);border-radius:inherit}
.russacom-dashboard-page .rc-progress-meta{display:flex;justify-content:space-between;color:#667085;font-size:13px}
.russacom-dashboard-page .rc-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:12px;font-weight:700}
.russacom-dashboard-page .rc-muted{color:var(--muted)}
@media(max-width:800px){.russacom-dashboard-page .rc-dashboard{grid-template-columns:1fr;width:auto;margin:18px}.russacom-dashboard-page .rc-dashboard-nav{flex-direction:row;overflow:auto;padding:10px}.russacom-dashboard-page .rc-stats,.russacom-dashboard-page .rc-grid{grid-template-columns:1fr 1fr}.russacom-dashboard-page .rc-heading-row{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.russacom-dashboard-page .rc-stats,.russacom-dashboard-page .rc-grid{grid-template-columns:1fr}}


/* v0.2.4 — client auth forms fallback. Kept in theme so account screens stay styled even if Core CSS is delayed/combined. */
.rc-auth-card{max-width:520px;margin:0 auto;background:transparent;border:0;box-shadow:none;padding:0}
.rc-auth-card h2{margin:0 0 8px;font-size:28px;line-height:1.15;letter-spacing:-.03em;color:var(--text)}
.rc-auth-card .rc-muted{color:var(--muted);font-size:14px;line-height:1.55}
.rc-form{display:grid;gap:15px;margin-top:18px}
.rc-form label{display:grid;gap:7px;font-size:14px;font-weight:700;color:#344054}
.rc-form input,.rc-form textarea,.rc-form select,
#loginform input[type="text"],#loginform input[type="password"],#loginform input[type="email"]{
  width:100%;box-sizing:border-box;min-height:46px;border:1px solid #d0d5dd;border-radius:10px;padding:11px 13px;background:#fff;color:#101828;font:inherit;outline:none;transition:border-color .15s,box-shadow .15s
}
.rc-form input:focus,.rc-form textarea:focus,.rc-form select:focus,
#loginform input:focus{border-color:#6b7cff;box-shadow:0 0 0 4px rgba(52,87,255,.10)}
.rc-btn,.rc-form button,.rc-form input[type="submit"],#loginform #wp-submit{
  display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:0;border-radius:10px;padding:0 18px;background:var(--accent);color:#fff;font:inherit;font-weight:800;cursor:pointer;text-decoration:none;box-shadow:0 8px 18px rgba(52,87,255,.18);transition:transform .15s,box-shadow .15s,background .15s
}
.rc-btn:hover,.rc-form button:hover,.rc-form input[type="submit"]:hover,#loginform #wp-submit:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(52,87,255,.22)}
#loginform{display:grid;gap:14px;margin-top:18px}
#loginform p{margin:0}
#loginform label{display:grid;gap:7px;font-size:14px;font-weight:700;color:#344054}
#loginform .login-remember label{display:flex;align-items:center;gap:8px;font-weight:600;color:#667085}
#loginform .login-remember input{width:auto;min-height:auto}
#loginform .login-submit{margin-top:2px}
#loginform #wp-submit{width:100%}
.page-template-page-register .lead-form,
.page-template-page-login .lead-form,
.page-template-page-verify-email .lead-form{padding:28px;border-radius:18px;background:#fff;border:1px solid var(--border);box-shadow:0 18px 50px rgba(16,24,40,.08)}
.page-template-page-register main.section,
.page-template-page-login main.section,
.page-template-page-verify-email main.section{min-height:calc(100vh - 150px);display:flex;align-items:flex-start;padding-top:70px;background:var(--bg)}
.rc-notice{padding:12px 14px;border-radius:10px;margin:12px 0;font-size:14px}
.rc-notice-error{background:#fef3f2;color:#b42318}.rc-notice-success{background:#ecfdf3;color:#027a48}.rc-notice-info{background:#eff8ff;color:#175cd3}
@media(max-width:600px){.page-template-page-register .lead-form,.page-template-page-login .lead-form,.page-template-page-verify-email .lead-form{padding:20px}.page-template-page-register main.section,.page-template-page-login main.section,.page-template-page-verify-email main.section{padding-top:32px}}

/* v0.2.5 unified Core account shell */
.rc-account-page{min-height:calc(100vh - 150px);padding:68px 0 80px;background:var(--bg)}
.rc-account-wrap{max-width:560px}.rc-account-page .rc-auth-card{max-width:none;margin:0;background:#fff;border:1px solid var(--border);border-radius:18px;padding:30px;box-shadow:0 18px 50px rgba(16,24,40,.08)}
.rc-account-page .rc-auth-card h2{font-size:30px}.rc-account-page .rc-btn{width:auto}.rc-account-page .rc-form .rc-btn{width:100%}
@media(max-width:600px){.rc-account-page{padding:32px 0 50px}.rc-account-page .rc-auth-card{padding:20px}}
