/*
Theme Name: Universal Rating Theme
Theme URI: http://rating.local
Author: Antigravity Team
Description: Универсальный шаблон рейтинга компаний на WordPress с подгрузкой полей через Carbon Fields и темной темой.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: rating-theme
*/

/* ===== ЛОКАЛЬНЫЕ ШРИФТЫ (INTER LOCAL WOFF2) ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-400.woff2') format('woff2'),
       url('assets/fonts/inter-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-500.woff2') format('woff2'),
       url('assets/fonts/inter-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-600.woff2') format('woff2'),
       url('assets/fonts/inter-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-700.woff2') format('woff2'),
       url('assets/fonts/inter-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-800.woff2') format('woff2'),
       url('assets/fonts/inter-latin-800.woff2') format('woff2');
}

:root {

  --bg-page: #f5f7fb;
  --bg-header: #ffffff;
  --bg-container: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8faff;
  --bg-subtle-2: #f1f5f9;
  --bg-badge: #eef3ff;
  --bg-tag: #ffffff;
  --bg-hover: #eef2ff;
  
  --border-header: #edf0f5;
  --border-color: #edf0f5;
  --border-card: #eef1f6;
  --border-card-hover: #dce1e9;
  --border-tag: #e4e8ee;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-subhead: #5b677b;
  --text-desc: #334155;
  --text-heading: #0b0f1a;
  
  --brand-primary: #1d4ed8;
  --brand-primary-hover: #1e40af;
  --star-color: #f59e0b;
  
  --link-color: #2563eb;
  --link-hover: #1d4ed8;
  --link-underline: rgba(37, 99, 235, 0.35);
  --link-hover-bg: rgba(37, 99, 235, 0.06);
  
  --shadow-header: 0 2px 12px rgba(0,0,0,0.03);

  --shadow-container: 0 25px 60px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 6px rgba(0,0,0,0.015);
  --shadow-hover: 0 8px 18px rgba(0,0,0,0.03);
}

[data-theme="dark"] {
  --bg-page: #0b0f17;
  --bg-header: #131927;
  --bg-container: #131927;
  --bg-card: #1a2336;
  --bg-subtle: #1e293b;
  --bg-subtle-2: #1e293b;
  --bg-badge: #1e2942;
  --bg-tag: #1a2336;
  --bg-hover: #223254;
  
  --border-header: #1e293b;
  --border-color: #1e293b;
  --border-card: #243047;
  --border-card-hover: #3b82f6;
  --border-tag: #2a3854;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subhead: #94a3b8;
  --text-desc: #cbd5e1;
  --text-heading: #ffffff;
  
  --brand-primary: #3b82f6;
  --brand-primary-hover: #60a5fa;
  --star-color: #fbbf24;
  
  --link-color: #60a5fa;
  --link-hover: #93c5fd;
  --link-underline: rgba(96, 165, 250, 0.4);
  --link-hover-bg: rgba(96, 165, 250, 0.15);
  
  --shadow-header: 0 2px 12px rgba(0,0,0,0.25);

  --shadow-container: 0 25px 60px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 12px rgba(0,0,0,0.2);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-desc);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== ШАПКА ===== */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-header);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-header);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ===== ШАПКА ===== */
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-block {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.logo-icon img,
.site-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.logo-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-title-br {
  display: none;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  font-weight: 500;
  line-height: 1.2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.header-phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.25;
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-phone-link:hover {
  color: var(--brand-primary);
}

.header-phone-icon {
  color: var(--brand-primary);
  flex-shrink: 0;
}

.header-phone-caption {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
}

.header-consult-btn {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  padding: 0.58rem 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.header-consult-btn:hover {
  background: var(--brand-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

[data-theme="dark"] .header-consult-btn {
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

/* Кнопка темы и бургер-меню */
.theme-toggle-btn,
.mobile-menu-toggle {
  background: var(--bg-subtle-2);
  border: 1px solid var(--border-tag);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.theme-toggle-btn:hover,
.mobile-menu-toggle:hover {
  background: var(--bg-hover);
  color: var(--brand-primary);
  transform: scale(1.03);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

@media screen and (max-width: 768px) {
  .site-header {
    padding: 0.65rem 1rem;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .logo-block {
    width: auto;
    flex-shrink: 0;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    flex-shrink: 0;
  }

  .logo-title {
    font-size: 1.05rem;
    line-height: 1.12;
    white-space: normal;
  }

  .logo-title-br {
    display: block;
  }

  .logo-subtitle {
    display: none !important;
  }

  .header-right {
    margin-left: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
    border-top: none;
    flex-shrink: 0;
  }

  .header-phone-block {
    align-items: flex-end;
    text-align: right;
    width: auto;
  }

  .header-phone-link {
    font-size: 0.94rem;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .header-phone-caption {
    font-size: 0.65rem;
    margin-top: 0.05rem;
    white-space: nowrap;
  }

  .header-consult-btn {
    display: none !important;
  }
}

@media screen and (max-width: 420px) {
  .site-header {
    padding: 0.6rem 0.75rem;
  }

  .header-inner {
    gap: 0.4rem;
  }

  .logo {
    gap: 0.4rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
  }

  .logo-title {
    font-size: 0.92rem;
    line-height: 1.1;
  }

  .header-phone-link {
    font-size: 0.85rem;
    gap: 0.25rem;
  }

  .header-phone-icon {
    width: 14px;
    height: 14px;
  }

  .header-phone-caption {
    font-size: 0.58rem;
  }
}

@media screen and (max-width: 375px) {
  .site-header {
    padding: 0.55rem 0.55rem;
  }

  .logo-title {
    font-size: 0.85rem;
  }

  .logo-icon {
    width: 25px;
    height: 25px;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
  }

  .header-phone-link {
    font-size: 0.8rem;
  }
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
  flex: 1;
  padding: 2rem 1rem;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg-container);
  border-radius: 32px;
  box-shadow: var(--shadow-container);
  padding: 2.5rem 2rem;
  transition: background-color 0.3s ease;
}

@media screen and (max-width: 640px) {
  .main-content {
    padding: 1rem 0.5rem;
  }
  .container {
    padding: 1.5rem 1rem;
    border-radius: 24px;
  }
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 0.4rem;
  color: var(--text-heading);
}

.subhead {
  font-size: 1.05rem;
  color: var(--text-subhead);
  line-height: 1.6;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.badge {
  background: var(--bg-badge);
  color: var(--brand-primary);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
}

.company-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.company-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-card);
  gap: 0.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}

.rank {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  min-width: 34px;
  opacity: 0.9;
  letter-spacing: -0.5px;
}

.logo-placeholder {
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-primary);
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  display: block;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
  flex: 1;
  min-width: 160px;
}

.company-name a {
  color: inherit;
  text-decoration: none;
}

.company-name a:hover {
  color: var(--brand-primary);
}

.rating-stars {
  color: var(--star-color);
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  white-space: nowrap;
  margin-left: auto;
}

.projects-count {
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-subtle-2);
  padding: 0.15rem 0.6rem;
  border-radius: 30px;
  font-size: 0.75rem;
  white-space: nowrap;
  margin-left: 0.3rem;
}

.card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 0.8rem;
  margin-top: 0.1rem;
}

.card-details {
  flex: 1 1 300px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.short-description {
  font-size: 0.92rem;
  color: var(--text-desc);
  line-height: 1.55;
  width: 100%;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags .tag {
  cursor: default;
}

.tag {
  background: var(--bg-tag);
  border: 1px solid var(--border-tag);
  padding: 0.22rem 0.75rem;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text-desc);
  white-space: nowrap;
  text-decoration: none;
  cursor: default;
}

a.tag {
  cursor: pointer;
}

a.tag:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.legal-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-subtle);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  width: fit-content;
  border: 1px solid var(--border-color);
  margin-top: 0.1rem;
}

.legal-info svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: auto;
}

.price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.price span {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media screen and (max-width: 640px) {
  h1 {
    font-size: 1.65rem;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin-bottom: 0.3rem;
  }

  .subhead {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
  }

  .page-content h2,
  .company-content h2,
  .sitemap-card-header h2 {
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
  }

  .page-content h3,
  .company-content h3 {
    font-size: 1.15rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .page-content h4,
  .company-content h4 {
    font-size: 1.02rem;
  }

  .error-badge {
    font-size: 3.5rem;
    padding: 0.4rem 1.5rem;
  }

  .company-card {
    padding: 1rem 1.1rem;
    gap: 0.3rem;
  }
  .rank {
    font-size: 1.4rem;
    min-width: 28px;
  }
  .logo-placeholder {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  .company-name {
    font-size: 1.05rem;
    min-width: 120px;
  }
  .rating-stars {
    font-size: 0.85rem;
  }
  .card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .price-block {
    align-items: flex-start;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 0;
    gap: 0.25rem;
  }
  .short-description {
    font-size: 0.85rem;
  }
}


hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 1.8rem 0 1.2rem;
}

.accompanying-text {
  background: var(--bg-subtle);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  color: var(--text-desc);
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid var(--border-color);
}

.accompanying-text p {
  margin-bottom: 0.7rem;
}

.accompanying-text p:last-child {
  margin-bottom: 0;
}

/* ===== ФУТЕР ===== */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-header);
  padding: 2.5rem 2rem 1.5rem;
  margin-top: auto;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  max-width: 460px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .footer-logo {
    font-size: 0.95rem;
    white-space: normal;
  }
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  letter-spacing: -0.2px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  max-width: 1240px;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  line-height: 1.55;
  width: 100%;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--brand-primary);
}

@media screen and (max-width: 640px) {
  .site-footer {
    padding: 1.8rem 1rem 1.2rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-links {
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* ===== ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS) ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.breadcrumbs .separator {
  color: var(--text-muted);
  font-size: 0.75rem;
  user-select: none;
  opacity: 0.6;
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== HTML КАРТА САЙТА (SITEMAP) ===== */
.html-sitemap-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sitemap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow-card);
}

.sitemap-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.sitemap-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-subtle);
  color: var(--brand-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sitemap-card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0;
}

.sitemap-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem 1.5rem;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  display: flex;
  align-items: center;
}

.sitemap-list li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 550;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sitemap-list li a:hover {
  color: var(--brand-primary);
}

/* Теги в карте сайта (соответствие стилям .tag на главной) */
.sitemap-list.sitemap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sitemap-list.sitemap-tags li a {
  background: var(--bg-tag);
  border: 1px solid var(--border-tag);
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-desc);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sitemap-list.sitemap-tags li a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--bg-subtle);
}

/* ===== СТИЛИ 404 И ТЕГОВ ===== */
.error-badge {
  font-size: 5rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  letter-spacing: -2px;
  background: var(--bg-badge);
  width: fit-content;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  border-radius: 24px;
}

.tag.active-tag {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* ===== СТАТИЧЕСКИЕ СТРАНИЦЫ И КОНТЕНТ (.page-content / .company-content) ===== */
.page-content,
.company-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-desc);
}

.page-content p,
.company-content p {
  margin-bottom: 1.2rem;
}

.page-content p:last-child,
.company-content p:last-child {
  margin-bottom: 0;
}

.page-content h2,
.page-content h3,
.page-content h4,
.company-content h2,
.company-content h3,
.company-content h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.3px;
}

.page-content strong,
.page-content b,
.company-content strong,
.company-content b {
  color: var(--text-primary);
  font-weight: 650;
}

.page-content ul,
.page-content ol,
.company-content ul,
.company-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

.page-content li,
.company-content li {
  margin-bottom: 0.4rem;
}

.page-content a,
.company-content a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  padding: 0.1rem 0.25rem;
  margin: -0.1rem -0.25rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-content a:hover,
.company-content a:hover {
  color: var(--link-hover);
  background: var(--link-hover-bg);
  text-decoration-color: var(--link-hover);
}

/* ===== СТИЛИ ДЛЯ РЕЙТИНГА БФЛ (БАНКРОТСТВО ФИЗЛИЦ) ===== */

/* Текстовые триггеры доверия под H1 */
.rating-intro-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.intro-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text-secondary);
}

.intro-feature svg {
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* Заголовок и юр.лицо в шапке карточки */
.company-title-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  gap: 0.15rem;
}

.company-legal-inline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Блок оценки и звезд */
.company-rating-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  margin-left: auto;
}

.score-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.score-num {
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--bg-badge);
  color: var(--brand-primary);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  line-height: 1.2;
}

.score-stars {
  color: var(--star-color);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.reviews-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Статистика БФЛ (дела, списано млн) */
.bfl-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-subtle-2);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.stat-pill svg {
  color: var(--brand-primary);
  flex-shrink: 0;
}

.stat-pill strong {
  color: var(--text-primary);
}

/* Бейджи преимуществ */
.bfl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle-2);
  border: 1px solid var(--border-tag);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

[data-theme="dark"] .badge-feature {
  color: var(--text-secondary);
  background: var(--bg-subtle-2);
  border-color: var(--border-tag);
}

.badge-feature svg {
  color: var(--text-muted);
}

/* Локальные контакты в городе (в 1 строчку) */
.bfl-local-contacts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.2rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-item svg {
  color: var(--brand-primary);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* Финансовая колонка и кнопки */
.bfl-action-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  margin-left: auto;
  flex-shrink: 0;
}

.bfl-action-side .price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.price-installment {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand-primary);
  line-height: 1.15;
  letter-spacing: -0.5px;
  display: block;
}

.price-terms {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

.price-total {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  width: fit-content;
  display: inline-block;
  margin-top: 0.15rem;
}

.card-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-detail {
  display: inline-block;
  background: var(--brand-primary);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-detail:hover {
  background: var(--brand-primary-hover);
}

.btn-site {
  display: inline-block;
  background: var(--bg-tag);
  border: 1px solid var(--border-tag);
  color: var(--text-desc) !important;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-site:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary) !important;
}

/* ===== СТРАНИЦА КОМПАНИИ (SINGLE COMPANY) ===== */
.bfl-single-article {
  margin-top: 1rem;
}

.single-company-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.single-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rank-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-badge);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.single-h1-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.single-h1-row .logo-placeholder.large {
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.single-h1-row h1 {
  font-size: 1.85rem;
  margin: 0;
  line-height: 1.2;
}

.legal-info-line {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.single-rating-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
}

.score-large {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Плитки ключевых показателей (Метрики) */
.bfl-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-card.highlight {
  border-color: var(--brand-primary);
  background: var(--bg-badge);
}

.metric-card.fcb-green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.metric-card.fcb-green .metric-label {
  color: #166534;
  font-weight: 550;
}

.metric-card.fcb-green .metric-value {
  color: #15803d;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.metric-card.highlight .metric-value {
  color: var(--brand-primary);
}

.metric-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Контакты в шапке компании (в одну строчку) */
.single-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.single-contacts-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.single-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
}

/* Команда / Сотрудники: карусель */
.team-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.team-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
}

.team-carousel-track::-webkit-scrollbar {
  display: none;
}

.team-carousel-track .team-card {
  flex: 0 0 calc((100% - 4rem) / 5);
  min-width: calc((100% - 4rem) / 5);
  scroll-snap-align: start;
  box-sizing: border-box;
}

@media screen and (max-width: 1100px) {
  .team-carousel-track .team-card {
    flex: 0 0 calc((100% - 3rem) / 4);
    min-width: calc((100% - 3rem) / 4);
  }
}

@media screen and (max-width: 860px) {
  .team-carousel-track .team-card {
    flex: 0 0 calc((100% - 2rem) / 3);
    min-width: calc((100% - 2rem) / 3);
  }
}

@media screen and (max-width: 640px) {
  .team-carousel-track .team-card {
    flex: 0 0 calc((100% - 0.8rem) / 2);
    min-width: calc((100% - 0.8rem) / 2);
  }
}

@media screen and (max-width: 420px) {
  .team-carousel-track .team-card {
    flex: 0 0 78%;
    min-width: 78%;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.team-portrait-photo {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  background: var(--bg-subtle-2);
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-portrait-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.team-portrait-icon {
  width: 48px;
  height: 48px;
  color: var(--brand-primary);
  opacity: 0.85;
}

.team-initials {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.3px;
}

.team-info {
  padding: 1.1rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}

.team-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.team-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Таблица услуг */
.services-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.services-table th {
  background: var(--bg-subtle);
  padding: 1rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.services-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.92rem;
  vertical-align: middle;
  color: var(--text-desc);
}

.services-table tr:last-child td {
  border-bottom: none;
}

.services-table tr:hover td {
  background: var(--bg-subtle-2);
}

.service-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 400;
}

.price-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.84rem;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.price-badge.free {
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.25);
}

[data-theme="dark"] .price-badge.free {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

/* Отзывы: карусель */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.carousel-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.reviews-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.reviews-carousel-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
}

.reviews-carousel-track::-webkit-scrollbar {
  display: none;
}

.reviews-carousel-track .review-card {
  flex: 0 0 calc((100% - 2.4rem) / 3);
  min-width: calc((100% - 2.4rem) / 3);
  scroll-snap-align: start;
  box-sizing: border-box;
  margin-bottom: 0;
}

@media screen and (max-width: 992px) {
  .reviews-carousel-track .review-card {
    flex: 0 0 calc((100% - 1.2rem) / 2);
    min-width: calc((100% - 1.2rem) / 2);
  }
}

@media screen and (max-width: 640px) {
  .reviews-carousel-track .review-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.review-stars {
  color: var(--star-color);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.review-body {
  position: relative;
  display: flex;
  flex-direction: column;
}

.review-text-wrap {
  position: relative;
  max-height: 98px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.review-text-wrap.no-truncate {
  max-height: none;
  overflow: visible;
}

.review-body.is-expanded .review-text-wrap {
  max-height: 1200px;
}

.review-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-desc);
  line-height: 1.6;
}

/* Эффект полупрозрачного затухания свернутого текста */
.review-text-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg-card) 95%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

[data-theme="dark"] .review-text-fade {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0) 0%, var(--bg-card) 95%);
}

.review-body.is-expanded .review-text-fade {
  opacity: 0;
}

/* Воздушная кнопка "Читать дальше" / "Свернуть" без нижнего подчеркивания */
.btn-review-toggle {
  background: transparent;
  border: none;
  padding: 0.4rem 0 0 0;
  margin: 0.15rem 0 0 0;
  color: var(--brand-primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  text-decoration: none;
  width: fit-content;
  letter-spacing: 0.1px;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.btn-review-toggle:hover {
  opacity: 1;
  color: var(--brand-primary-hover);
  text-decoration: none;
}

.btn-review-toggle .toggle-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.review-body.is-expanded .btn-review-toggle .toggle-arrow {
  transform: rotate(180deg);
}

.review-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px dashed var(--border-color);
}

.review-source {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.1px;
}

/* Форма отзыва */
.review-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-card);
}

.review-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
}

.review-form-top-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.review-form-top-row .form-group {
  margin-bottom: 0;
}

.form-group-rating {
  min-width: 175px;
}

.form-group-rating .star-rating-select {
  height: 44px;
  display: inline-flex;
  align-items: center;
}

.company-review-form .form-group {
  margin-bottom: 1.1rem;
}

.company-review-form .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.star-rating-select {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.3rem;
  font-size: 1.7rem;
  line-height: 1;
}

.star-rating-select input {
  display: none;
}

.star-rating-select label {
  cursor: pointer;
  color: #cbd5e1;
  transition: color 0.15s ease;
}

.star-rating-select label:hover,
.star-rating-select label:hover ~ label,
.star-rating-select input:checked ~ label {
  color: var(--star-color);
}

.company-review-form .form-input,
.company-review-form .form-textarea {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.company-review-form .form-input:focus,
.company-review-form .form-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.consent-group .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.45;
}

.consent-group input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--brand-primary);
  width: 16px;
  height: 16px;
}

.consent-group a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-group a:hover {
  color: var(--brand-primary-hover);
}

.btn-submit-review {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-submit-review:hover {
  background: var(--brand-primary-hover);
}

.review-success-msg {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #16a34a;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 1.2rem;
}

[data-theme="dark"] .review-success-msg {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

/* Баннер консультации на странице компании */
.single-banner-cta {
  background: linear-gradient(135deg, var(--bg-subtle-2) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 2.2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-card);
}

.single-banner-content .banner-badge {
  display: inline-block;
  background: var(--bg-badge);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.single-banner-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.4px;
}

.single-banner-content p {
  font-size: 0.95rem;
  color: var(--text-desc);
  margin: 0;
  line-height: 1.55;
  max-width: 600px;
}

.btn-single-banner-consult {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-single-banner-consult:hover {
  background: var(--brand-primary-hover);
}

.short-desc-highlight {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 1.15rem 1.35rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Плюсы и минусы */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.pros-box, .cons-box {
  border-radius: 14px;
  padding: 1.3rem;
}

.pros-box {
  background: rgba(22, 163, 74, 0.04);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.cons-box {
  background: rgba(220, 38, 38, 0.04);
  border: 1px solid rgba(220, 38, 38, 0.22);
}

[data-theme="dark"] .pros-box {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .cons-box {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

.pros-box h3, .cons-box h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.pros-box ul, .cons-box ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.pros-box li, .cons-box li {
  font-size: 0.92rem;
  color: var(--text-desc);
  margin-bottom: 0.4rem;
}

/* Мобильная адаптивность для БФЛ */
@media screen and (max-width: 768px) {
  .card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.15rem;
  }

  .card-details {
    width: 100%;
    min-width: 0;
    flex: none;
    gap: 0.35rem;
  }

  .bfl-local-contacts {
    margin-top: 0.15rem;
    gap: 0.25rem 0.9rem;
  }

  .bfl-action-side {
    align-items: flex-start;
    margin-left: 0;
    width: 100%;
    margin-top: 0.35rem;
    padding-top: 0;
    border-top: none;
    gap: 0.35rem;
  }

  .price-block,
  .bfl-action-side .price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.15rem;
    white-space: normal;
  }

  .price-installment {
    font-size: 1.25rem;
    line-height: 1.15;
    display: block;
  }

  .price-terms {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
  }

  .price-total {
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.1rem;
  }

  .card-buttons {
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.2rem;
  }

  .btn-detail, .btn-site {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .company-rating-block {
    margin-left: 0;
    align-items: flex-start;
    width: 100%;
    margin-top: 0.3rem;
  }

  .single-company-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
  }

  .single-h1-row {
    align-items: center;
    gap: 0.65rem;
  }

  .single-h1-row h1 {
    font-size: 1.45rem;
  }

  .single-h1-row .logo-placeholder.large {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .single-rating-box {
    width: 100%;
  }

  .team-card {
    padding: 0;
  }

  .team-info {
    padding: 0.8rem 0.75rem 0.9rem;
  }

  .review-form-card {
    padding: 1.4rem 1.2rem;
  }

  .review-form-top-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .single-banner-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 1.3rem;
    gap: 1.2rem;
  }

  .single-banner-action,
  .btn-single-banner-consult {
    width: 100%;
    text-align: center;
  }
}

/* ===== МОДАЛЬНОЕ ОКНО КОНСУЛЬТАЦИИ ===== */
.consult-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  padding: 1.5rem 1rem;
}

.consult-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.consult-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
  animation: modalFadeIn 0.2s ease forwards;
}

.consult-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: auto;
}

.consult-modal-dialog {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .consult-modal-dialog {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.consult-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle-2);
  border: 1px solid var(--border-tag);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consult-modal-close:hover {
  background: var(--bg-hover);
  color: var(--brand-primary);
  transform: rotate(90deg);
}

.consult-modal-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--bg-badge);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.7rem;
}

.consult-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.consult-modal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Стили полей CF7 */
.consult-form-group {
  margin-bottom: 1.1rem;
}

.consult-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.consult-form-label .required {
  color: #ef4444;
}

.consult-input,
.consult-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-tag);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.consult-input:focus,
.consult-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--bg-card);
}

.consult-textarea {
  min-height: 85px;
  resize: vertical;
}

.consult-consent-group {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 1.3rem;
}

.consult-consent-group .wpcf7-list-item {
  margin: 0;
}

.consult-consent-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}

.consult-consent-group input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--brand-primary);
  width: 16px;
  height: 16px;
}

.consult-consent-group a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consult-consent-group a:hover {
  color: var(--brand-primary-hover);
}

.consult-submit-btn {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.consult-submit-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

/* Статусные сообщения Contact Form 7 */
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #16a34a !important;
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 1rem 0 0;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 1rem 0 0;
}

.wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 0.25rem;
}

.wpcf7 .wpcf7-spinner {
  margin: 0.6rem auto 0;
  display: block;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media screen and (max-width: 600px) {
  .consult-modal-dialog {
    padding: 1.6rem 1.3rem;
    border-radius: 16px;
  }
  .consult-modal-title {
    font-size: 1.25rem;
  }
}

/* ===== СЕКЦИИ ГЛАВНОЙ СТРАНИЦЫ ===== */
.home-section {
  margin-top: 3.5rem;
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 780px;
}

/* 2. Баннер "Нет времени выбирать?" */
.banner-cta-section {
  margin-top: 2.8rem;
}

.banner-cta-card {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.07) 0%, rgba(37, 99, 235, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  padding: 2.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

[data-theme="dark"] .banner-cta-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(30, 41, 59, 0.5) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.banner-cta-content {
  flex: 1;
}

.banner-cta-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-badge);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.7rem;
}

.banner-cta-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.banner-cta-desc {
  font-size: 0.95rem;
  color: var(--text-desc);
  line-height: 1.6;
  max-width: 720px;
}

.banner-cta-action {
  flex-shrink: 0;
}

.btn-banner-consult {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
  transition: all 0.2s ease;
}

.btn-banner-consult:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
}

/* 3. Блок "Топ-юристы по банкротству физ. лиц" */
.lawyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.lawyer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.lawyer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-subtle-2);
  border: 1px solid var(--border-tag);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lawyer-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.lawyer-role {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.8rem;
}

.lawyer-stats {
  display: flex;
  gap: 1.2rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-subtle);
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.lawyer-stat-item {
  display: flex;
  flex-direction: column;
}

.lawyer-stat-item strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.lawyer-stat-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lawyer-bio {
  font-size: 0.88rem;
  color: var(--text-desc);
  line-height: 1.55;
}

/* 4. Блок "Методология" (краткая) */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.methodology-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.methodology-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary);
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.methodology-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.methodology-card p {
  font-size: 0.88rem;
  color: var(--text-desc);
  line-height: 1.5;
  margin-bottom: 0;
}

.methodology-link-wrap {
  text-align: center;
}

.methodology-badge-link {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-size: 0.92rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.methodology-badge-link:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* 5. Блок с сео-текстом */
.seo-text-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 2rem 2.4rem;
  box-shadow: var(--shadow-card);
}

.seo-text-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.seo-text-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.4rem 0 0.6rem;
}

.seo-text-content p {
  font-size: 0.95rem;
  color: var(--text-desc);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.seo-text-content ul {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.seo-text-content li {
  font-size: 0.92rem;
  color: var(--text-desc);
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

/* 6. Блок "Вопрос-ответ" (FAQ) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: rgba(37, 99, 235, 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--brand-primary);
}

.faq-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-primary);
}

.faq-answer {
  display: none;
  padding: 0 1.4rem 1.2rem;
}

.faq-item.active .faq-answer {
  display: block;
  animation: modalFadeIn 0.25s ease forwards;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-desc);
  line-height: 1.6;
  margin: 0;
}

/* Кнопка онлайн-консультации и правый блок в футере */
.footer-right-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-action-top {
  display: flex;
  justify-content: flex-end;
}

.btn-footer-consult {
  margin-top: 0;
  background: var(--bg-subtle-2);
  border: 1px solid var(--border-tag);
  color: var(--text-primary);
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-footer-consult:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

[data-theme="dark"] .btn-footer-consult {
  background: var(--bg-subtle);
  border-color: var(--border-tag);
}

/* Мобильная адаптивность для секций */
@media screen and (max-width: 768px) {
  .footer-action-top {
    width: 100%;
    justify-content: stretch;
  }

  .btn-footer-consult {
    width: 100%;
    text-align: center;
  }

  .banner-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 1.4rem;
    gap: 1.2rem;
  }

  .banner-cta-action {
    width: 100%;
  }

  .btn-banner-consult {
    width: 100%;
    text-align: center;
  }

  .seo-text-card {
    padding: 1.4rem 1.2rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 1rem 1.1rem;
  }

  .faq-answer {
    padding: 0 1.1rem 1rem;
  }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  right: auto;
  max-width: 440px;
  width: calc(100% - 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  z-index: 9998;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .cookie-banner {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  background: var(--bg-card);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.cookie-icon {
  color: var(--brand-primary);
  flex-shrink: 0;
}

.cookie-banner-content a {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cookie-banner-content a:hover {
  color: var(--brand-primary-hover);
}

.btn-cookie-accept {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.btn-cookie-accept:hover {
  background: var(--brand-primary-hover);
}

@media screen and (max-width: 640px) {
  .cookie-banner {
    bottom: 1rem;
    padding: 0.85rem 1rem;
  }
}

/* ===== БЛОК ОФИСА И КОНТАКТОВ НА СТРАНИЦЕ КОМПАНИИ ===== */
.office-contacts-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.office-map-wrap {
  min-height: 380px;
  width: 100%;
  position: relative;
  background: var(--bg-subtle-2);
}

.office-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

.office-info-card {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
}

.office-info-header {
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.7rem;
}

.office-branch-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-badge);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.35rem;
}

.office-info-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.office-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.office-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.office-info-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.office-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.office-info-icon svg {
  display: block;
}

.office-info-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.office-info-val a {
  color: var(--brand-primary);
  text-decoration: none;
}

.office-info-val a:hover {
  text-decoration: underline;
}

/* Блок графика и времени работы (Terminal Work) */
.terminal-work-wrapper {
  margin-top: 0.35rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.terminal-work {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 5px;
  width: 100%;
  min-width: 290px;
}

.terminal-work__dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 8px 3px 6px;
  border-radius: 6px;
  min-height: 72px;
  background: transparent;
  border: 1px solid transparent;
  color: #7e888b;
  margin: 0;
  transition: box-shadow 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  user-select: none;
}

.terminal-work__dl_active {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.04);
  color: #0f172a;
  background-color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  transform: translateY(-2px);
  position: relative;
}

.terminal-work__dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 14px;
  border-bottom: 2px solid #2fc9c8;
  padding-bottom: 4px;
  margin-bottom: 6px;
  width: calc(100% - 6px);
  letter-spacing: 0.02em;
  color: #334155;
}

.terminal-work__dt_red {
  border-color: #d54c1d !important;
  color: #c2410c;
}

.terminal-work__dd {
  font-size: 11px;
  line-height: 14px;
  margin: 0;
  color: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.terminal-work__dd_empty {
  margin-top: 10px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

@media screen and (max-width: 900px) {
  .office-contacts-grid {
    grid-template-columns: 1fr;
  }
  .office-info-card {
    border-left: none;
    border-top: 1px solid var(--border-card);
    padding: 1.4rem 1.3rem;
  }
  .office-map-wrap {
    min-height: 280px;
  }
  .office-map-wrap iframe {
    min-height: 280px;
  }
}


/* ===== СТРАНИЦА МЕТОДИКИ ===== */
.methodology-page {
  max-width: 900px;
  line-height: 1.65;
  color: var(--text-main, #334155);
}
.methodology-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-title, #0f172a);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}
@media (max-width: 768px) {
  .principles-grid {
    grid-template-columns: 1fr !important;
  }
}
.principle-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.principle-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-title, #0f172a);
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.principle-card p {
  font-size: 0.95rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 0;
  line-height: 1.5;
}
.criterion-item {
  margin-bottom: 1.75rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--color-primary, #2563eb);
}
.criterion-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-title, #0f172a);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* ===== СТРАНИЦА РЕКЛАМЫ И СОТРУДНИЧЕСТВА ===== */
.ad-formats-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem !important;
  width: 100% !important;
}
.ad-formats-grid > p {
  display: none !important;
}
@media (max-width: 768px) {
  .ad-formats-grid,
  .principles-grid,
  .partner-form-grid {
    grid-template-columns: 1fr !important;
  }
}
.ad-format-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}
.partner-form-section .wpcf7-form-control-wrap {
  display: block;
}
.partner-form-section .form-control,
.partner-form-section input[type="text"],
.partner-form-section input[type="tel"],
.partner-form-section input[type="email"],
.partner-form-section textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-main, #334155);
  background: var(--bg-card, #ffffff);
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.partner-form-section .form-control:focus,
.partner-form-section input:focus,
.partner-form-section textarea:focus {
  outline: none;
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.partner-form-section input[type="submit"] {
  background: var(--color-primary, #2563eb);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.partner-form-section input[type="submit"]:hover {
  background: var(--color-primary-hover, #1d4ed8);
}
