/* CHB Luxury Architectural Theme Stylesheet */
:root {
  /* === D0.2 design tokens — источник: прода (post-63.css .elementor-kit-63 + phlox custom.css) ===
     Прямые значения:
  --chb-dark: #0C0C0C;                e-global-color-primary (и text)
  --chb-paper: #FFFFFF;               e-global-color-secondary (e-global-color-accent тоже #FFFFFF)
  --chb-accent: #0463CC;              e-global-color-6227cbb
  --chb-overlay: rgba(0,0,0,0.9);     e-global-color-e29ba1f (#000000E6)
  --chb-container: 1140px;            boxed container (1024/767 в media — из кита)
  --chb-widget-gap: 20px;             kit widget spacing
  --chb-font: 'Montserrat';           custom.css: body{font-family:'Montserrat'}
  --chb-font-headings: 'Poppins';     custom.css: заголовки/элементы
     Производные (прода рендерит их виджетами Elementor; в D2 сверять покомпонентно с DOM-эталоном):
  */
  --chb-dark: #0C0C0C;
  --chb-dark-elevated: #16181a;
  --chb-dark-card: #1d2023;
  --chb-accent: #0463CC;
  --chb-accent-dark: #034FA3;
  --chb-accent-light: #E8EFFA;
  --chb-accent-glow: rgba(4, 99, 204, 0.18);
  --chb-gold: #c5a880; /* источник в проде не найден — проверить использование в D2, иначе удалить */
  --chb-ink: #0C0C0C;
  --chb-muted: #5b5f63;
  --chb-line: #e3e4e6;
  --chb-line-dark: #26282b;
  --chb-paper: #ffffff;
  --chb-warm: #ffffff; /* фон тела прода — сверить на первом parity-прогоне */
  --chb-overlay: rgba(0, 0, 0, 0.9);
  --chb-container: 1140px;
  --chb-widget-gap: 20px;
  --chb-bp-tablet: 1024px;
  --chb-bp-mobile: 767px;
  --chb-radius: 4px;
  --chb-radius-lg: 8px;
  --chb-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --chb-shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.1);
  --chb-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --chb-font-headings: "Poppins", "Montserrat", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--chb-font);
  color: var(--chb-ink);
  background: var(--chb-warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--chb-accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--chb-accent-dark); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(var(--chb-container), calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.chb-header {
  background: rgba(18, 20, 23, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--chb-line-dark);
}
.chb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.chb-logo {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.chb-logo-main { font-size: 1.25rem; line-height: 1.1; color: #fff; text-transform: uppercase; }
.chb-logo-sub { font-size: 0.65rem; letter-spacing: 0.22em; color: var(--chb-accent); text-transform: uppercase; }
.chb-nav { display: flex; align-items: center; gap: 28px; }
.chb-nav-link {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.chb-nav-link:hover, .chb-nav-link.active { color: #fff; }
.chb-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chb-accent);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: var(--chb-radius);
  transition: background 0.15s ease;
}
.chb-nav-btn:hover { background: var(--chb-accent-dark); }
.chb-burger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.chb-hero {
  background: linear-gradient(135deg, #121417 0%, #1e242c 100%);
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--chb-line-dark);
}
.chb-hero-badge {
  display: inline-block;
  background: rgba(35, 141, 181, 0.15);
  border: 1px solid rgba(35, 141, 181, 0.35);
  color: var(--chb-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: var(--chb-radius);
  margin-bottom: 24px;
}
.chb-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
}
.chb-hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #94a3b8;
  max-width: 780px;
  line-height: 1.55;
  margin-bottom: 40px;
}
.chb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.chb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chb-accent);
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--chb-radius);
  transition: all 0.15s ease;
}
.chb-btn-primary:hover { background: var(--chb-accent-dark); transform: translateY(-1px); }
.chb-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff !important;
  border: 1px solid #475569;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--chb-radius);
  transition: all 0.15s ease;
}
.chb-btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* Quick Estimator Router */
.chb-estimator-section {
  padding: 60px 0;
  background: #fff;
  border-bottom: 1px solid var(--chb-line);
}
.chb-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.chb-eyebrow {
  color: var(--chb-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}
.chb-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--chb-dark);
  margin-bottom: 14px;
}
.chb-section-subtitle {
  color: var(--chb-muted);
  font-size: 1.05rem;
}
.chb-estimator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.chb-estimator-card {
  border: 1px solid var(--chb-line);
  border-radius: var(--chb-radius-lg);
  padding: 32px;
  background: var(--chb-warm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chb-estimator-card:hover {
  border-color: var(--chb-accent);
  box-shadow: var(--chb-shadow);
  transform: translateY(-2px);
}
.chb-card-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--chb-accent);
  margin-bottom: 12px;
}
.chb-card-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--chb-dark);
  margin-bottom: 12px;
}
.chb-card-desc {
  color: var(--chb-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}
.chb-card-link {
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Value Props */
.chb-pillars {
  padding: 70px 0;
  background: var(--chb-dark);
  color: #fff;
}
.chb-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}
.chb-pillar-card {
  background: var(--chb-dark-card);
  padding: 28px;
  border-radius: var(--chb-radius);
  border-top: 2px solid var(--chb-accent);
}
.chb-pillar-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}
.chb-pillar-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* General Page Layout */
.chb-page-header {
  background: var(--chb-dark);
  color: #fff;
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--chb-line-dark);
}
.chb-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.chb-page-lede {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 800px;
}
.chb-content-area {
  padding: 60px 0;
}
.chb-prose {
  max-width: 840px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}
.chb-prose h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--chb-dark);
  margin: 40px 0 16px;
}
.chb-prose h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--chb-dark);
  margin: 28px 0 12px;
}
.chb-prose p { margin-bottom: 20px; }
.chb-prose ul, .chb-prose ol { margin: 0 0 24px 24px; }
.chb-prose li { margin-bottom: 8px; }

/* Contact Section / Page */
.chb-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 40px;
}
.chb-form-card {
  background: #fff;
  border: 1px solid var(--chb-line);
  border-radius: var(--chb-radius-lg);
  padding: 36px;
  box-shadow: var(--chb-shadow);
}
.chb-info-card {
  background: var(--chb-dark);
  color: #fff;
  border-radius: var(--chb-radius-lg);
  padding: 36px;
}
.chb-info-block {
  margin-bottom: 24px;
}
.chb-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--chb-accent);
  margin-bottom: 6px;
  font-weight: 700;
}
.chb-info-val { font-size: 1.05rem; color: #f1f5f9; }

/* Form Elements */
.chb-form-group { margin-bottom: 20px; }
.chb-form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.chb-form-input, .chb-form-select, .chb-form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--chb-line);
  border-radius: var(--chb-radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.chb-form-input:focus, .chb-form-select:focus, .chb-form-textarea:focus {
  outline: 2px solid rgba(35, 141, 181, 0.25);
  border-color: var(--chb-accent);
}

/* Portfolio & Blog Cards */
.chb-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.chb-article-card {
  background: #fff;
  border: 1px solid var(--chb-line);
  border-radius: var(--chb-radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.chb-article-card:hover {
  border-color: var(--chb-accent);
  box-shadow: var(--chb-shadow);
  transform: translateY(-2px);
}
.chb-article-date { font-size: 0.78rem; color: var(--chb-muted); margin-bottom: 8px; }
.chb-article-title { font-size: 1.3rem; font-weight: 600; color: var(--chb-dark); margin-bottom: 12px; }
.chb-article-desc { font-size: 0.92rem; color: var(--chb-muted); margin-bottom: 20px; flex-grow: 1; }

/* Footer */
.chb-footer {
  background: var(--chb-dark);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid var(--chb-line-dark);
}
.chb-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.chb-footer-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.chb-footer-links { list-style: none; }
.chb-footer-links li { margin-bottom: 10px; font-size: 0.88rem; }
.chb-footer-links a { color: #94a3b8; }
.chb-footer-links a:hover { color: #fff; }
.chb-footer-bottom {
  border-top: 1px solid var(--chb-line-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .chb-nav { display: none; }
  .chb-burger { display: block; }
  .chb-contact-grid, .chb-footer-grid { grid-template-columns: 1fr; }
  .chb-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Multilingual Language Switcher */
.chb-lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: var(--chb-radius);
  border: 1px solid var(--chb-line-dark);
}
.chb-lang-btn {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  transition: all 0.15s ease;
}
.chb-lang-btn:hover { color: #fff; }
.chb-lang-btn.active {
  color: #fff;
  background: var(--chb-accent);
}

/* D2.4: Calculator side drawer */
.chb-drawer-btn {
  display: inline-block;
  background: var(--chb-dark);
  color: #fff;
  font-family: var(--chb-font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.chb-drawer-btn:hover { background: var(--chb-accent); }

.chb-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--chb-overlay);
  z-index: 9990;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.chb-drawer-backdrop.is-open { opacity: 1; }

.chb-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(520px, 100vw);
  background: #fff;
  z-index: 9991;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
}
.chb-drawer.is-open { transform: translateX(0); }

.chb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--chb-dark);
  color: #fff;
  flex-shrink: 0;
}
.chb-drawer-title {
  font-family: var(--chb-font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chb-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.chb-drawer-close:hover { color: var(--chb-accent-light); }

.chb-drawer-body {
  flex: 1;
  overflow: hidden;
}
.chb-drawer-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* D5.3 fix: mobile header collapse (prod hides inline nav <768px via auxin JS;
   we replicate pure CSS — chb.js opens the fs-popup menu) */
@media (min-width: 768px) {
  .aux-elementor-header .aux-burger-box {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .aux-elementor-header .menu-header-menu-container,
  .aux-elementor-header .aux-logo-text,
  .aux-elementor-header .aux-menu-icon {
    display: none !important;
  }
  .aux-elementor-header .aux-burger-box {
    display: inline-block !important;
    cursor: pointer;
  }
  .aux-elementor-header .aux-burger-box .aux-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 6px 0;
  }
  .aux-burger-box .aux-burger span.mid-line,
  .aux-burger-box .aux-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
  }
  .aux-elementor-header .e-con-inner {
    justify-content: space-between;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0 !important;
  }
  .aux-elementor-header .elementor-widget-aux_logo,
  .aux-elementor-header .elementor-widget-aux_menu_box {
    padding: 0 !important;
    margin: 0 !important;
  }
  .aux-elementor-header .aux-nav-menu-element {
    line-height: 1;
  }
  .aux-elementor-header .aux-widget-logo img {
    max-height: 44px;
    width: auto;
    height: auto;
  }
  .aux-elementor-header .aux-logo-anchor {
    padding: 0 !important;
  }
  .aux-elementor-header .elementor-widget-aux_menu_box {
    display: flex;
    justify-content: flex-end;
  }
}

.aux-fs-popup .aux-fs-menu ul.aux-master-menu {
  display: block;
  margin: 0;
  padding: 24px;
  list-style: none;
}
.aux-fs-popup .aux-fs-menu .aux-menu-item {
  display: block;
  margin: 0 0 18px;
}
.aux-fs-popup .aux-panel-close { background-color: #FFF;
    border-radius: 0;
    right: 30px;
    top: 30px;
    width: 47px;
    height: 47px;
    padding: 13px; }

.aux-fs-popup .aux-panel-close .aux-cross-symbol { top: 9px; }
/* Goto top */
.aux-goto-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(12px);
}
.aux-goto-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.aux-goto-top-btn .aux-arrow-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--chb-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--chb-line-dark);
}
.aux-goto-top-btn .aux-arrow-nav:hover { background: var(--chb-accent); }

/* === Prod customizer CSS, missed by D1 vendor port (blog archive parity, 2026-09-08) === */
.site-header-section { background: transparent !important; }
.aux-content-top-margin .aux-primary { padding-top: 200px; }

/* === Prod customizer CSS: Single Post (missed by D1 vendor port, 2026-09-08) === */
.single-post .entry-header, .single-post .entry-info, .single-post .entry-content, .single-post .entry-meta {
	max-width: 60%;
	margin: 0 auto;
}

.single-post .entry-header {
	text-align: center;
}

.single-post .entry-info {
	margin-top: 25px;
	margin-bottom: 25px;
	text-align: center;
}

.single-post .entry-meta {
	margin-top: 80px;
}

.single-post .entry-author::before {
	height: 9px !important;
	width: 1px !important;
	border-radius: 0 !important;
	background-color: rgba(0,0,0,0.5);
}

/* === Aux-shell normalization: calculators/projects/service tail (prod has no such pages;
       shell + components prod-derived, cards flattened to prod dialect: square/white/#ddd) === */
.chb-estimator-card {
  border-radius: 0;
  background: #fff;
  border-color: #ddd;
  box-shadow: none;
}
.chb-aux-cta {
  margin-top: 48px;
  padding: 36px;
  background: #fff;
  border: 1px solid #ddd;
  text-align: center;
}
