/*
Theme Name: EarlyStage
Theme URI: https://earlystage.io
Author: EarlyStage.io
Author URI: https://earlystage.io
Description: Editorial theme for independent ranking publications. Built-in Schema.org structured data for AI-readability. Supports custom post types: Company, Ranking, Author Profile.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: earlystage
Tags: editorial, business, custom-menu, featured-images, schema, structured-data
*/

/* ─── CSS VARIABLES ─── */
:root {
  --brand:        #0C5F52;
  --brand-mid:    #157A6B;
  --brand-dark:   #084D44;
  --brand-light:  #E6F3F1;
  --brand-pale:   #F2F9F8;
  --text-1:       #161614;
  --text-2:       #4A4A47;
  --text-3:       #8A8A86;
  --border:       #E4E3DF;
  --border-2:     #C9C8C3;
  --surface:      #FFFFFF;
  --surface-2:    #F8F7F4;
  --surface-3:    #F0EFEB;
  --gold:         #B8860B;
  --silver:       #7A7A7A;
  --bronze:       #8B5A2B;
  --radius:       8px;
  --radius-lg:    12px;
  --max-width:    860px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── FULL-WIDTH WP OVERRIDE ─── */
/* Neutralise any wrapper injected by WordPress, plugins, or leftover themes */
html, body {
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--surface-2);
  margin: 0 !important;
  padding: 0 !important;
}
/* Reset common WP structural wrappers so they don't constrain width */
#page, #content, #primary, #secondary,
.site, .site-content, .wp-site-blocks,
.entry-content, .post-content,
.hentry, #wpcontent {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ─── LAYOUT ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.page-wrap { max-width: var(--max-width); margin: 0 auto; padding: 24px 20px; overflow-x: clip; }
.two-col   { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; min-width: 0; }
.two-col > main { min-width: 0; }

/* ─── FULL-WIDTH BLOCKS ─── */
/* Sections that must span full viewport width */
.home-hero, .page-hero, .stats-bar, .filters-bar,
.content-block, .site-header, .site-footer,
.article-header, .author-header, .blog-header,
.cta-section {
  width: 100%;
  max-width: 100% !important;
  margin-left: 0;
  margin-right: 0;
}

/* ─── RESPONSIVE: Tablet 768px ─── */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  .home-hero h1     { font-size: 30px; }
  .home-hero .lead  { font-size: 15px; }
  .hero-actions     { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .stats-bar .inner { flex-wrap: wrap; }
  .stat-item        { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(even) { border-right: none; }

  .about-grid       { grid-template-columns: 1fr 1fr; }
  .team-grid        { grid-template-columns: 1fr; }

  .company-entry-header { grid-template-columns: 36px 44px 1fr; }
  .company-score-block  { display: none; }
  .company-facts    { grid-template-columns: 1fr 1fr; }

  .article-h1       { font-size: 22px; }
  .article-intro    { font-size: 15px; }

  .author-bio-row   { flex-direction: column; gap: 14px; }
  .author-stats     { flex-wrap: wrap; }
  .author-stat      { flex: 1 1 50%; }
}

/* ─── RESPONSIVE: Mobile 480px ─── */
@media (max-width: 480px) {
  .home-hero        { padding: 36px 16px 28px; text-align: left; }
  .home-hero h1     { font-size: 26px; }
  .home-hero .lead  { font-size: 14px; }
  .hero-trust       { justify-content: flex-start; gap: 10px; font-size: 12px; flex-direction: column; }
  .hero-actions     { align-items: flex-start; }
  .hero-actions .btn { max-width: 100%; }

  .stats-bar .inner { flex-direction: column; }
  .stat-item        { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  .page-hero        { padding: 24px 16px 18px; }
  .hero-h1          { font-size: 22px; }
  .hero-lead        { font-size: 14px; }
  .hero-meta        { flex-direction: column; gap: 6px; font-size: 12px; }

  .filters-bar .inner { gap: 5px; }
  .chip             { font-size: 12px; padding: 4px 10px; }
  .filter-label     { display: none; }

  .company-entry-header { padding: 12px 14px 10px; gap: 8px; }
  .company-name     { font-size: 15px; }
  .company-entry-body  { padding: 12px 14px; }
  .company-desc     { font-size: 13.5px; }
  .company-entry-footer { padding: 10px 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .company-facts    { grid-template-columns: 1fr 1fr; }
  .fact-val         { font-size: 13px; }

  .article-card     { grid-template-columns: 1fr; }
  .article-thumb    { display: none; }
  .article-title    { font-size: 15px; }

  .article-header   { padding: 20px 16px 18px; }
  .article-h1       { font-size: 20px; }
  .article-intro    { font-size: 14.5px; }
  .article-body     { padding: 18px 16px; }
  .article-body p   { font-size: 14.5px; }
  .article-body h2  { font-size: 18px; }
  .byline-row       { flex-wrap: wrap; gap: 8px; }
  .article-badges   { margin-left: 0; }

  .author-header    { padding: 20px 16px; }
  .author-name      { font-size: 22px; }
  .author-stats     { flex-direction: column; }
  .author-stat      { border-right: none; border-bottom: 1px solid var(--border); }
  .author-stat:last-child { border-bottom: none; }

  .about-grid       { grid-template-columns: 1fr; }
  .score-table      { font-size: 12.5px; }
  .score-table th,
  .score-table td   { padding: 8px 10px; }

  .site-header .inner { padding: 12px 16px; }
  .logo-sub         { display: none; }
  .site-name        { font-size: 14px; }

  .page-wrap        { padding: 16px; }
  .content-block    { padding: 28px 16px; }

  .breadcrumb       { padding: 10px 16px; font-size: 12px; }
  .breadcrumb .sep  { margin: 0 3px; }

  .method-box       { font-size: 12.5px; padding: 12px 14px; }

  .cta-box          { padding: 16px; }
  .sidebar-card     { padding: 14px; }
}

/* ─── SITE HEADER ─── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.site-header .inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.site-branding { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-branding:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: -.5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
/* Brand text: name on line 1, tagline on line 2 */
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--text-1); white-space: nowrap; }
.brand-name span { color: var(--brand); }
.brand-tagline { font-size: 11px; color: var(--text-3); white-space: nowrap; margin-top: 1px; }
/* Legacy */
.site-name { font-size: 16px; font-weight: 700; color: var(--text-1); line-height: 1.1; }
.site-description-small { font-size: 11px; color: var(--text-3); }
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.nav-cta {
  padding: 7px 16px; background: var(--brand); color: #fff !important;
  border-radius: var(--radius); font-size: 13px; font-weight: 700;
}
.nav-cta:hover { background: var(--brand-mid); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 14px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 4px; }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; }
  .site-header .inner { position: relative; }
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  max-width: var(--max-width); margin: 0 auto;
  padding: 11px 20px;
  font-size: 12.5px; color: var(--text-3);
  display: flex; gap: 6px; align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--border-2); }

/* ─── BADGES & CHIPS ─── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; }
.badge-brand { background: var(--brand-light); color: var(--brand-dark); }
.badge-gray  { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.badge-gold  { background: #FEF3C7; color: #92400E; }
.chip {
  padding: 5px 14px; border-radius: 20px; font-size: 12.5px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip:hover:not(.active) { border-color: var(--border-2); color: var(--text-1); }
.tag { padding: 3px 10px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; font-size: 12px; color: var(--text-2); display: inline-block; }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; border: 1px solid transparent; font-family: inherit; line-height: 1; box-sizing: border-box; vertical-align: middle; }
button.btn { appearance: none; -webkit-appearance: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-mid); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--text-1); border: 1px solid var(--border-2); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-sm { padding: 7px 16px; font-size: 13px; line-height: 1; }

/* ─── SIDEBAR ─── */
.sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 100%; }

/* Sticky sidebar — правильна реалізація без overflow */
@media (min-width: 769px) {
  .sidebar {
    position: sticky;
    top: 72px;
    align-self: start;
  }
}
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
}
.sidebar-title { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sidebar-item:last-child { border-bottom: none; padding-bottom: 0; }
.si-rank { font-size: 13px; font-weight: 700; color: var(--text-3); min-width: 18px; text-align: center; }
.si-name { flex: 1; font-weight: 600; color: var(--text-1); text-decoration: none; cursor: pointer; }
.si-name:hover { color: var(--brand); text-decoration: underline; }
.si-score { font-weight: 700; color: var(--brand); }

/* ─── CTA BOX (SKYPEEK) ─── */
.cta-box {
  background: var(--brand); border-radius: var(--radius-lg);
  padding: 20px; color: #fff;
}
.cta-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.cta-box p { font-size: 13px; opacity: .88; line-height: 1.55; margin-bottom: 16px; }
.btn-cta-white {
  display: block; text-align: center; padding: 11px;
  background: #fff; color: var(--brand); border-radius: var(--radius);
  font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.btn-cta-white:hover { opacity: .92; text-decoration: none; }

/* ─── COMPANY CARDS (listicle) ─── */
.company-entry {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 16px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.company-entry:hover { border-color: var(--border-2); box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.company-entry-header {
  display: grid; grid-template-columns: 44px 52px 1fr auto;
  gap: 14px; align-items: center; padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 540px) { .company-entry-header { grid-template-columns: 36px 44px 1fr; } .company-score-block { display: none; } }
.rank-num { font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1; text-align: center; }
.rank-num.gold   { color: var(--gold); }
.rank-num.silver { color: var(--silver); }
.rank-num.bronze { color: var(--bronze); }
.rank-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.company-logo-box {
  width: 50px; height: 50px; border-radius: var(--radius);
  background: var(--surface-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-2); flex-shrink: 0;
  overflow: hidden;
}
.company-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.company-name { font-size: 17px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.company-tagline { font-size: 12.5px; color: var(--text-3); }
.score-val { font-size: 26px; font-weight: 800; line-height: 1; }
.score-max { font-size: 13px; color: var(--text-3); }
.stars { color: #F59E0B; font-size: 12px; letter-spacing: 1px; margin: 3px 0; }
.review-ct { font-size: 11px; color: var(--text-3); }
.company-entry-body { padding: 16px 20px; }
.company-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.68; margin-bottom: 14px; }
.company-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 14px;
}
@media (max-width: 480px) { .company-facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--surface-2); padding: 10px 12px; }
.fact-label { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.fact-val { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.company-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.company-entry-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--surface-2); border-top: 1px solid var(--border);
}
.company-note { font-size: 12.5px; color: var(--text-2); }
.company-note strong { color: var(--brand); }

/* ─── ARTICLE CARDS ─── */
.article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  text-decoration: none; transition: border-color .15s;
}
.article-card:hover { border-color: var(--border-2); text-decoration: none; }
.article-category { font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.article-title { font-size: 16px; font-weight: 700; color: var(--text-1); line-height: 1.35; margin-bottom: 7px; }
.article-excerpt { font-size: 13.5px; color: var(--text-2); line-height: 1.58; margin-bottom: 10px; }
.article-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.article-thumb {
  width: 72px; height: 60px; border-radius: var(--radius);
  background: var(--surface-3); border: 1px solid var(--border);
  flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-3); align-self: start;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─── PAGE HEADERS ─── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: clip;
  padding: 36px 20px 28px;
}
.page-hero .inner { max-width: var(--max-width); margin: 0 auto; }
.page-eyebrow { font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.page-eyebrow::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero-h1 { font-size: 30px; font-weight: 800; line-height: 1.22; margin-bottom: 12px; max-width: 640px; }
.hero-lead { font-size: 16px; color: var(--text-2); line-height: 1.7; max-width: 580px; }
.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.hero-meta--stats { padding-top: 16px; border-top: 1px solid var(--border); margin-top: 18px; align-items: center; }
.hero-meta--authors { padding-top: 10px; align-items: center; }

/* ─── METHODOLOGY BOX ─── */
.method-box {
  background: var(--brand-pale); border: 1px solid var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px; margin: 20px 0;
  font-size: 13.5px; color: var(--text-2); line-height: 1.65;
}
.method-box strong { color: var(--text-1); }

/* ─── FILTERS BAR ─── */
.filters-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 11px 20px;
}
.filters-bar .inner { max-width: var(--max-width); margin: 0 auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-label { font-size: 12px; color: var(--text-3); }

/* ─── ARTICLE SINGLE ─── */
.article-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 30px 20px 24px; }
.article-header .inner { max-width: 680px; margin: 0 auto; }
.article-h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.article-intro { font-size: 17px; color: var(--text-2); line-height: 1.68; margin-bottom: 18px; }
.byline-row { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.byline-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-light); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--brand); flex-shrink: 0; overflow: hidden; }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-name { font-size: 14px; font-weight: 700; }
.byline-meta { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.article-badges { display: flex; gap: 8px; margin-left: auto; }
.article-body-wrap { max-width: var(--max-width); margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
@media (max-width: 700px) { .article-body-wrap { grid-template-columns: 1fr; } }
.article-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.article-body p { font-size: 15.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 18px; }
.article-body h2 { font-size: 20px; font-weight: 700; color: var(--text-1); margin: 28px 0 10px; }
.article-body h3 { font-size: 17px; font-weight: 700; color: var(--text-1); margin: 20px 0 8px; }
.article-body ul { margin: 0 0 18px 20px; list-style: disc; }
.article-body li { font-size: 15px; color: var(--text-2); line-height: 1.72; margin-bottom: 6px; }
.article-body a { color: var(--brand); text-decoration: underline; }
.pullquote { border-left: 4px solid var(--brand); padding: 12px 16px; margin: 20px 0; background: var(--brand-pale); border-radius: 0 var(--radius) var(--radius) 0; }
.pullquote p { font-size: 15px; font-weight: 600; color: var(--brand-dark); margin-bottom: 0; line-height: 1.55; }
.key-takeaway { background: var(--brand-pale); border: 1px solid var(--brand-light); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin: 12px 0; }
.key-takeaway strong { color: var(--brand); }
.question-block { border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 22px 0; overflow: hidden; }
.question-block h2 { font-size: 17px; font-weight: 700; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.q-num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.question-body { padding: 18px; }
.article-tags { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; margin-top: 14px; }
.tags-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── AUTHOR PAGE ─── */
.author-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 32px 20px; }
.author-header .inner { max-width: var(--max-width); margin: 0 auto; }
.author-bio-row { display: flex; gap: 24px; align-items: flex-start; }
.author-avatar-lg { width: 80px; height: 80px; border-radius: 50%; background: var(--brand-light); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--brand); flex-shrink: 0; border: 3px solid var(--brand-light); overflow: hidden; }
.author-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.author-role { font-size: 14px; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.author-bio-text { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.expertise-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.exp-chip { padding: 4px 12px; border: 1.5px solid var(--brand); border-radius: 20px; font-size: 12px; color: var(--brand); font-weight: 600; }
.social-links { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border: 1px solid var(--border-2); border-radius: var(--radius); font-size: 12.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.social-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.author-stats { display: flex; border-top: 1px solid var(--border); margin-top: 20px; }
.author-stat { flex: 1; padding: 14px 20px; border-right: 1px solid var(--border); text-align: center; }
.author-stat:last-child { border-right: none; }
.astat-num { font-size: 22px; font-weight: 800; color: var(--text-1); }
.astat-label { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

/* ─── HOME HERO ─── */
.home-hero {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 64px 20px 52px; text-align: center;
}
.home-hero .eyebrow { font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 16px; }
.home-hero h1 { font-size: 40px; font-weight: 800; line-height: 1.15; max-width: 600px; margin: 0 auto 16px; }
.home-hero .lead { font-size: 18px; color: var(--text-2); line-height: 1.65; max-width: 500px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 540px) { .home-hero h1 { font-size: 28px; } .home-hero .lead { font-size: 16px; } }

/* ─── STATS BAR ─── */
.stats-bar { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.stats-bar .inner { max-width: var(--max-width); margin: 0 auto; display: flex; }
.stat-item { flex: 1; padding: 20px; border-right: 1px solid var(--border); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--brand); }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ─── TABLE OF CONTENTS ─── */
.toc-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); text-decoration: none; }
.toc-item:last-child { border-bottom: none; }
.toc-item:hover { color: var(--brand); }
.toc-num { font-size: 11px; font-weight: 700; color: var(--brand); min-width: 16px; margin-top: 2px; }

/* ─── SITE FOOTER ─── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 20px; font-size: 13px; color: var(--text-3); }
.site-footer .inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-3); }
.footer-links a:hover { color: var(--brand); text-decoration: none; }
.footer-brand { font-weight: 700; color: var(--text-1); }

/* ─── ABOUT PAGE ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
@media (max-width: 540px) { .about-grid { grid-template-columns: 1fr; } }
.about-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.about-card-icon { font-size: 22px; margin-bottom: 8px; }
.about-card-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.about-card-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.score-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.score-table th { text-align: left; padding: 10px 14px; background: var(--surface-3); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.score-table td { padding: 12px 14px; border: 1px solid var(--border); color: var(--text-2); }
.score-table tr:nth-child(even) td { background: var(--surface-2); }
.score-pct { font-weight: 700; color: var(--brand); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.team-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-light); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--brand); flex-shrink: 0; }
.team-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.team-role { font-size: 12.5px; color: var(--brand); margin-bottom: 5px; }
.team-bio { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }

/* ─── CONTENT SECTION BLOCKS ─── */
.content-block { background: var(--surface); border-bottom: 1px solid var(--border); padding: 28px 20px; }
.content-block .inner { max-width: var(--max-width); margin: 0 auto; }
.content-block h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.content-block p { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }

/* ─── WORDPRESS SPECIFICS ─── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ══════════════════════════════════════════════
   GOOGLE PREFERRED SOURCES BUTTON
   Official Google brand style
══════════════════════════════════════════════ */
.gs-preferred-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 0 12px;
    height: 40px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Google Sans', Roboto, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    white-space: nowrap;
    transition: box-shadow .15s, border-color .15s;
    cursor: pointer;
    user-select: none;
}
.gs-preferred-link:hover {
    box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px rgba(60,64,67,.15);
    border-color: #c6c9cc;
    text-decoration: none;
    color: #3c4043;
}
.gs-preferred-link:active {
    background: #f8f9fa;
}
.gs-preferred-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.gs-preferred-text {
    line-height: 1;
}

/* Footer placement */
.gs-preferred-btn--footer {
    display: flex;
    align-items: center;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

/* Inline placement (after articles/rankings) */
.gs-preferred-btn--inline,
.gs-preferred-btn--ranking,
.gs-preferred-btn--article {
    display: inline-block;
    margin-top: 4px;
}

/* Hero badge — вбудований в hero-meta flex row */
.hero-preferred-badge { display:inline-flex; align-items:center; }
.hero-preferred-badge:hover img { opacity: 1 !important; }
@media (max-width: 600px) { .hero-preferred-badge { display:none; } }

/* Preferred source CTA block — used at end of articles/rankings */
.preferred-source-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 28px 0 0;
    flex-wrap: wrap;
}
.preferred-source-cta__text {
    flex: 1;
    min-width: 180px;
}
.preferred-source-cta__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 2px;
}
.preferred-source-cta__sub {
    font-size: 12px;
    color: var(--text-3);
}

@media (max-width: 480px) {
    .footer-top { flex-direction: column; align-items: flex-start; }
    .preferred-source-cta { flex-direction: column; align-items: flex-start; }
}

/* ── Ranking Intro ── */
.ranking-intro {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 680px;
}
.ranking-intro p { margin: 0 0 8px; }

/* ── Quick Picks ── */
.quick-picks {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
}
.quick-picks__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.quick-picks__caption {
    /* Прихована візуально але доступна для LLM/screen readers */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}
.quick-picks__table thead tr {
    background: var(--surface-2, #f8f7f4);
    border-bottom: 1px solid var(--border);
}
.quick-picks__table thead th {
    padding: 10px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
}
.quick-picks__table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}
.quick-picks__table tbody tr:last-child {
    border-bottom: none;
}
.quick-picks__table tbody tr:hover {
    background: var(--brand-pale, #f0faf8);
}
.quick-picks__use-case {
    padding: 11px 20px;
    color: var(--text-2);
    font-weight: 500;
    width: 35%;
}
.quick-picks__company {
    padding: 11px 20px;
    width: 28%;
}
.quick-picks__why {
    padding: 11px 20px;
    width: 37%;
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.5;
}
.quick-picks__link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}
.quick-picks__link:hover { text-decoration: underline; }
@media (max-width: 720px) {
    .quick-picks__why { display: none; }
    .quick-picks__use-case { width: 55%; }
    .quick-picks__company { width: 45%; }
}
@media (max-width: 480px) {
    .quick-picks__table thead { display: none; }
    .quick-picks__table tbody tr { display: flex; flex-direction: column; padding: 10px 16px; }
    .quick-picks__use-case,
    .quick-picks__company { padding: 2px 0; width: 100%; }
    .quick-picks__use-case { font-size: 11px; color: var(--text-3); }
    .quick-picks__why { display: none; }
}

/* ══════════════════════════════════════════════
   TEAM SECTION — Homepage (matches about page style)
══════════════════════════════════════════════ */
.team-section { background: var(--bg); }

/* ── Footer Revenue Disclosure ── */
.footer-disclosure {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-3);
    line-height: 1.6;
}
.footer-disclosure strong {
    color: var(--text-2);
    font-weight: 600;
}
.footer-disclosure a {
    color: var(--brand);
    text-decoration: underline;
    white-space: nowrap;
}
.footer-disclosure a:hover { color: var(--brand-mid); }

/* ══════════════════════════════════════════════
   EDITORIAL TRUST BAR
══════════════════════════════════════════════ */
.editorial-trust-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 14px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 80px;
    box-sizing: border-box;
}

.etb-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 16px;
}
.etb-divider:first-child { display: none; }

.etb-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.etb-name-link {
    text-decoration: none;
    color: inherit;
}
.etb-name-link:hover .etb-name {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.etb-avatar-link { display: block; text-decoration: none; }

.etb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.etb-avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.etb-initials {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.etb-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}
.etb-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-3);
}
.etb-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    transition: color .15s;
}
.etb-role {
    font-size: 11px;
    color: var(--text-3);
}

.etb-methodology {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
    white-space: nowrap;
    transition: color .15s;
    margin-left: auto;
}
.etb-methodology:hover { color: var(--brand); }
.etb-methodology svg { flex-shrink: 0; color: var(--text-3); transition: color .15s; }
.etb-methodology:hover svg { color: var(--brand); }

@media (max-width: 680px) {
    .editorial-trust-bar {
        flex-wrap: wrap;
        max-height: none;
        gap: 10px;
        padding: 12px 14px;
    }
    .etb-divider { display: none; }
    .etb-methodology { margin-left: 0; width: 100%; padding-top: 8px; border-top: 1px solid var(--border); }
}

/* ══════════════════════════════════════════════
   TRUST BADGES — Ranking hero
══════════════════════════════════════════════ */
.trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-bottom: 4px;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 8px;
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: .01em;
    white-space: nowrap;
    line-height: 1;
}
.trust-badge svg {
    flex-shrink: 0;
    opacity: .85;
}
@media (max-width: 480px) {
    .trust-badges { gap: 6px; }
    .trust-badge { font-size: 11px; padding: 3px 8px 3px 6px; }
}

/* ══════════════════════════════════════════════
   RANKINGS GRID — Homepage
══════════════════════════════════════════════ */
.rankings-grid-section { background: var(--bg); }

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.section-see-all {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
    transition: border-color .15s;
}
.section-see-all:hover { border-color: var(--brand); }

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 720px) {
    .rankings-grid { grid-template-columns: 1fr; }
}

/* ── Ranking Card ── */
.ranking-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.ranking-card:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 24px rgba(13,107,94,.1);
}

.ranking-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.ranking-card__updated {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .01em;
}

.ranking-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.35;
    margin: 0 0 16px;
}
.ranking-card__title-link {
    color: var(--text-1);
    text-decoration: none;
    transition: color .15s;
}
.ranking-card__title-link:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Company rows */
.ranking-card__companies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.ranking-card__company {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: var(--surface);
    border-radius: 7px;
    border: 1px solid var(--border);
}
.ranking-card__pos {
    font-size: 12px;
    font-weight: 800;
    color: var(--brand);
    min-width: 16px;
    text-align: center;
}
.ranking-card__logo {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.ranking-card__initials {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
}
.ranking-card__cname {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ranking-card__score {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-1);
    flex-shrink: 0;
}

.ranking-card__footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.ranking-card__cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
}
.ranking-card:hover .ranking-card__cta { text-decoration: underline; }

/* ══════════════════════════════════════════════
   PROFILE REVIEWED BADGE
══════════════════════════════════════════════ */
.profile-reviewed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #198754;
}
.profile-reviewed svg {
    flex-shrink: 0;
    width: 11px;
    height: 9px;
}
.company-score-block .profile-reviewed {
    justify-content: center;
}
@media (max-width: 540px) {
    .profile-reviewed { display: none; }
}

/* ── Ranking Section Title ── */
.ranking-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    margin: 0 0 20px;
    line-height: 1.25;
}

/* ── Section eyebrow / title helpers ── */
.section-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 8px;
}
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.2;
    margin: 0 0 8px;
}

/* ══════════════════════════════════════════════
   RESEARCH SOURCES BLOCK
══════════════════════════════════════════════ */
.research-sources {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    overflow: hidden;
}

.research-sources__header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.research-sources__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.research-sources__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 4px;
}
.research-sources__desc {
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.55;
    margin: 0;
}

.research-sources__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) {
    .research-sources__body { grid-template-columns: 1fr; gap: 16px; }
}

.research-sources__group-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-3);
    margin-bottom: 10px;
}
.research-sources__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.research-sources__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-2);
    text-decoration: none;
    transition: color .15s;
}
.research-sources__link svg {
    flex-shrink: 0;
    color: var(--text-3);
    transition: color .15s;
}
.research-sources__link:hover {
    color: var(--brand);
    text-decoration: none;
}
.research-sources__link:hover svg { color: var(--brand); }

/* Research Sources — show more */
.rs-hidden {
    /* В DOM для LLM/robots, прихована для юзера */
    display: none;
}
.rs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
}
.rs-toggle:hover { opacity: .75; }
.rs-toggle__less { display: none; }
.rs-toggle[aria-expanded="true"] .rs-toggle__more { display: none; }
.rs-toggle[aria-expanded="true"] .rs-toggle__less { display: inline; }

.research-sources__footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 12px;
    color: var(--text-3);
}
.research-sources__footer svg { flex-shrink: 0; color: var(--text-3); }
.research-sources__footer strong { color: var(--text-2); font-weight: 600; }

/* ══════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════ */

/* Hero */
.contact-page { max-width: 100%; }

.contact-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 52px 20px 40px;
}
.contact-hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-hero__left { flex: 1; min-width: 280px; }
.contact-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.contact-eyebrow::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}
.contact-h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-1);
    margin-bottom: 14px;
}
.contact-lead {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 480px;
}
.contact-hero__right { flex-shrink: 0; }
.contact-author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    min-width: 260px;
}

/* Email block */
.contact-email-block {
    background: var(--brand);
    padding: 48px 20px;
}
.contact-email-block__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.contact-email-block__label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255,255,255,.6);
    margin-bottom: 16px;
}
.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid rgba(255,255,255,.3);
    padding-bottom: 4px;
    transition: border-color .15s;
}
.contact-email-link:hover {
    border-color: #fff;
    text-decoration: none;
    color: #fff;
}
.contact-email-link svg { opacity: .8; }
.contact-email-block__hint {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    margin-top: 14px;
    line-height: 1.6;
}

/* Request types */
.contact-types {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    padding: 52px 20px;
}
.contact-types__inner { max-width: var(--max-width); margin: 0 auto; }
.contact-types__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 28px;
}
.contact-types__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 720px) { .contact-types__grid { grid-template-columns: 1fr; } }

.contact-type-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
}
.contact-type-card__icon {
    font-size: 24px;
    margin-bottom: 12px;
}
.contact-type-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}
.contact-type-card__desc {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.65;
}

/* FAQ */
.contact-faq {
    background: var(--surface);
    padding: 52px 20px 64px;
}
.contact-faq__inner { max-width: var(--max-width); margin: 0 auto; }
.contact-faq__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 28px;
}
.contact-faq__list { display: flex; flex-direction: column; gap: 0; }

.contact-faq__item {
    border-bottom: 1px solid var(--border);
}
.contact-faq__item:first-child { border-top: 1px solid var(--border); }

.contact-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    cursor: pointer;
    list-style: none;
    gap: 16px;
    user-select: none;
}
.contact-faq__question::-webkit-details-marker { display: none; }
.contact-faq__question::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--brand);
    flex-shrink: 0;
    transition: transform .2s;
    line-height: 1;
}
.contact-faq__item[open] .contact-faq__question::after {
    transform: rotate(45deg);
}
.contact-faq__question:hover { color: var(--brand); }

.contact-faq__answer {
    padding: 0 4px 20px;
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.75;
}
.contact-faq__answer a {
    color: var(--brand);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .contact-h1 { font-size: 24px; }
    .contact-email-link { font-size: 17px; }
    .contact-hero__inner { flex-direction: column; gap: 24px; }
    .contact-author-card { min-width: unset; }
    .contact-types, .contact-faq, .contact-hero, .contact-email-block { padding-left: 16px; padding-right: 16px; }
}

/* ══════════════════════════════════════════════
   EDITORIAL POLICY PAGE
══════════════════════════════════════════════ */
.ep-sections {
    background: var(--surface);
    padding: 52px 20px 64px;
}
.ep-inner {
    max-width: 740px;
    margin: 0 auto;
}
.ep-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 8px 0;
}
.ep-section__icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 2px;
}
.ep-section__body { flex: 1; }
.ep-section__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 8px;
}
.ep-section__text {
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.75;
    margin: 0 0 10px;
}
.ep-section__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s;
}
.ep-section__link:hover { border-color: var(--brand); text-decoration: none; }

.ep-divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}

/* Contact strip */
.ep-contact-strip {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 28px 20px;
}
.ep-contact-strip .ep-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.ep-contact-strip__text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}
.ep-contact-strip__text strong {
    display: block;
    font-size: 15px;
    color: var(--text-1);
    margin-bottom: 3px;
}
.ep-contact-strip__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.ep-contact-strip__btn:hover { background: var(--brand-mid); text-decoration: none; color: #fff; }

@media (max-width: 600px) {
    .ep-section { flex-direction: column; gap: 10px; }
    .ep-section__icon { width: 36px; height: 36px; font-size: 18px; }
    .ep-contact-strip .ep-inner { flex-direction: column; align-items: flex-start; }
}

/* ── EP shared label/title/lead ── */
.ep-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--brand);
    margin-bottom: 8px;
}
.ep-block-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-1);
    margin: 0 0 10px;
    line-height: 1.2;
}
.ep-block-lead {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 40px;
}

/* ── Research Process ── */
.ep-process {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 52px 20px;
}
.ep-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ep-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.ep-step:first-child { padding-top: 0; }
.ep-step:last-child { border-bottom: none; padding-bottom: 0; }
.ep-step__num {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    padding-top: 3px;
    opacity: .7;
}
.ep-step__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 8px;
}
.ep-step__text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.75;
    margin: 0;
}
@media (max-width: 540px) {
    .ep-step { grid-template-columns: 40px 1fr; gap: 12px; }
    .ep-step__num { font-size: 20px; }
}

/* ── Editorial Principles ── */
.ep-principles {
    background: var(--surface);
    padding: 52px 20px;
    border-bottom: 1px solid var(--border);
}
.ep-principles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 860px) { .ep-principles__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .ep-principles__grid { grid-template-columns: 1fr; } }

.ep-principle {
    background: var(--surface);
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ep-principle__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 7px;
}
.ep-principle__text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0;
}

/* ── Team ── */
.ep-team {
    background: var(--surface-2);
    padding: 52px 20px;
    border-bottom: 1px solid var(--border);
}
.ep-team__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 600px) { .ep-team__grid { grid-template-columns: 1fr; } }

.ep-team__card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}



/* ══════════════════════════════════════════════
   COMPARISON TABLE — ranking pages
══════════════════════════════════════════════ */
.comparison-table-wrap {
    margin: 32px 0 24px;
    /* Критично: не дозволяємо wrap вийти за межі grid колонки */
    min-width: 0;
    max-width: 100%;
    width: 100%;
}
.comparison-table__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.comparison-table__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
}
.comparison-table__scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-3);
    white-space: nowrap;
}
.comparison-table__scroll-hint svg {
    flex-shrink: 0;
}

/* Scroll wrapper — горизонтальний скрол за потреби */
.comparison-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 100%;
    position: relative;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--surface);
    /* auto — браузер сам визначає ширину колонок під вміст */
    table-layout: auto;
    /* Мінімальна ширина щоб таблиця не стискалась надто */
    min-width: 600px;
}
.comparison-table caption { display: none; }

/* Header */
.comparison-table thead tr {
    background: var(--surface-2);
    border-bottom: 2px solid var(--border);
}
.comparison-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-3);
    white-space: nowrap;
}

/* Body rows */
.comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--brand-pale); }

/* Всі td — перенос за замовчуванням, без обрізання */
.comparison-table td {
    padding: 10px 14px;
    color: var(--text-2);
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

/* Sticky перша колонка */
.ct-col--sticky {
    position: sticky;
    left: 0;
    z-index: 10;
    background: var(--surface);
    box-shadow: 3px 0 8px -1px rgba(0,0,0,.1);
    /* Критично: clip-path відрізає вміст що виходить за межі колонки */
    clip-path: inset(0 -20px 0 0);
}
.comparison-table thead tr { position: relative; z-index: 1; }
.comparison-table thead .ct-col--sticky {
    background: var(--surface-2);
    z-index: 11;
    clip-path: inset(0 -20px 0 0);
}
/* Явний background для кожного типу рядка */
.comparison-table tbody tr:nth-child(even) .ct-col--sticky {
    background: var(--surface);
}
.comparison-table tbody tr:nth-child(odd) .ct-col--sticky {
    background: var(--surface);
}
.comparison-table tbody tr:hover .ct-col--sticky {
    background: var(--brand-pale);
}

/* Company cell */
.ct-col--company {
    min-width: 150px;
    max-width: 200px;
}
.ct-company-inner {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}
.ct-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    min-width: 16px;
    flex-shrink: 0;
    opacity: .65;
    padding-top: 2px;
}
.ct-name {
    font-weight: 600;
    color: var(--text-1);
    text-decoration: none;
    transition: color .15s;
    word-break: break-word;
    hyphens: auto;
}
.ct-name:hover { color: var(--brand); text-decoration: underline; }

/* Score */
.ct-col--score {
    white-space: nowrap;
    min-width: 70px;
}
.ct-score-link {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
}
.ct-score-link strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-1);
}
.ct-score-link span {
    font-size: 11px;
    color: var(--text-3);
}
.ct-score-link:hover strong { color: var(--brand); }

/* Best for */
.ct-col--best {
    min-width: 130px;
    max-width: 180px;
}

/* Budget, team, location — мінімальна ширина щоб не стискались */
.comparison-table th:nth-child(4),
.comparison-table td:nth-child(4) { min-width: 110px; }

.comparison-table th:nth-child(5),
.comparison-table td:nth-child(5) { min-width: 85px; white-space: nowrap; }

.comparison-table th:nth-child(6),
.comparison-table td:nth-child(6) {
    min-width: 120px;
    white-space: normal;
    word-break: break-word;
}

/* Fixed column widths — prevents text overflow */
.comparison-table colgroup col:nth-child(1) { width: 175px; }
.comparison-table colgroup col:nth-child(2) { width: 78px; }
.comparison-table colgroup col:nth-child(3) { width: 155px; }
.comparison-table colgroup col:nth-child(4) { width: 120px; }
.comparison-table colgroup col:nth-child(5) { width: 95px; }
.comparison-table colgroup col:nth-child(6) { width: 130px; }

/* Header */
.comparison-table thead tr {
    background: var(--surface-2);
    border-bottom: 2px solid var(--border);
}
.comparison-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
}

/* Body rows */
.comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--brand-pale); }
.comparison-table td {
    padding: 10px 12px;
    color: var(--text-2);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sticky first column */
.ct-col--sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
}
.comparison-table thead .ct-col--sticky {
    background: var(--surface-2);
    z-index: 3;
}
.comparison-table tbody tr:hover .ct-col--sticky {
    background: var(--brand-pale);
}
.ct-col--sticky::after {
    content: '';
    position: absolute;
    top: 0; right: -6px; bottom: 0;
    width: 6px;
    background: linear-gradient(to right, rgba(0,0,0,.05), transparent);
    pointer-events: none;
}

/* Company cell — inner div, НЕ flex на td */
.ct-col--company { padding: 10px 12px; }
.ct-company-inner {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
}
.ct-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    min-width: 16px;
    flex-shrink: 0;
    opacity: .65;
}
.ct-name {
    font-weight: 600;
    color: var(--text-1);
    text-decoration: none;
    transition: color .15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.ct-name:hover { color: var(--brand); text-decoration: underline; }

/* Score */
.ct-score-link {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
}
.ct-score-link strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-1);
}
.ct-score-link span {
    font-size: 11px;
    color: var(--text-3);
}
.ct-score-link:hover strong { color: var(--brand); }

/* Best for — дозволяємо перенос */
.ct-col--best {
    white-space: normal !important;
    line-height: 1.4;
    font-size: 12.5px;
    vertical-align: middle;
}
/* Header */
.comparison-table thead tr {
    background: var(--surface-2);
    border-bottom: 2px solid var(--border);
}
.comparison-table thead th {
    padding: 11px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-3);
    white-space: nowrap;
}

/* Body rows */
.comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--brand-pale); }
.comparison-table td {
    padding: 11px 14px;
    color: var(--text-2);
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Sticky first column */
.ct-col--sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    background: inherit;
}
.comparison-table thead .ct-col--sticky {
    background: var(--surface-2);
    z-index: 3;
}
.comparison-table tbody tr:hover .ct-col--sticky {
    background: var(--brand-pale);
}
/* Shadow to indicate scroll */
.ct-col--sticky::after {
    content: '';
    position: absolute;
    top: 0; right: -8px; bottom: 0;
    width: 8px;
    background: linear-gradient(to right, rgba(0,0,0,.06), transparent);
    pointer-events: none;
}

/* Company cell — НЕ flex на td, використовуємо внутрішній div */
.ct-col--company { min-width: 170px; }
.ct-company-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ct-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    min-width: 16px;
    text-align: center;
    opacity: .7;
    flex-shrink: 0;
}
.ct-name {
    font-weight: 600;
    color: var(--text-1);
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
}
.ct-name:hover { color: var(--brand); text-decoration: underline; }

/* Score cell */
.ct-col--score { min-width: 72px; white-space: nowrap; }
.ct-score-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
}
.ct-score-link strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-1);
}
.ct-score-link span {
    font-size: 11px;
    color: var(--text-3);
}
.ct-score-link:hover strong { color: var(--brand); }

/* Best for cell */
.ct-col--best {
    min-width: 140px;
    max-width: 180px;
    white-space: normal;
    line-height: 1.4;
    font-size: 12.5px;
}

/* Budget, team, location */
.comparison-table td:nth-child(4),
.comparison-table td:nth-child(5),
.comparison-table td:nth-child(6) {
    min-width: 110px;
    white-space: nowrap;
}


/* ── Research Sources — Show more ── */
.rs-extra {
    /* Всі посилання в DOM для LLM/robots, частина прихована для юзера */
    display: none;
}
.rs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    background: none;
    border: none;
    padding: 3px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
    text-decoration: none;
}
.rs-toggle:hover { opacity: .7; }

/* ── Comparison table — Strengths column ── */
.ct-col--strengths {
    min-width: 160px;
    white-space: normal;
    word-break: break-word;
    color: var(--text-2);
    font-size: 13px;
}
.ct-empty {
    color: var(--text-3);
}