/* ============================================================
   CONTENT BLOCKS — shared styles for generated landing content
   ------------------------------------------------------------
   Sandbox stage: linked directly from _test/index.html via a
   plain <link>, kept OUT of the site's __all.min.css build on
   purpose so it can be iterated on freely without touching the
   real per-brand asset pipeline.

   Once validated across more than one generated page, promote
   the proven rules into _common/css/ (e.g. extend content.css)
   so they join __all.min.css for every brand site.

   Conventions:
   - All classes are namespaced "cb-" (content block) so nothing
     here can collide with the site's own theme classes.
   - Everything reads color/spacing tokens from --cb-* custom
     properties instead of hardcoded values. Fonts and font
     sizes are intentionally NOT set here — headings and body
     text inherit the theme (--base-font-family, and the
     .content-txt h1/h2/h3 sizes already defined in content.css)
     so generated content always matches the site's typography.
   - .cb-block is the root wrapper for one generated page. A
     per-niche modifier class (.cb-block--<niche>) overrides the
     --cb-* tokens below to give each niche its own accent/
     background while reusing the same structural CSS.
   ============================================================ */

.cb-block {
  /* Background layers (niche-specific; transparent = inherit page background) */
  --cb-bg: transparent;
  --cb-bg-2: rgba(0, 0, 0, 0.03);
  --cb-bg-3: rgba(0, 0, 0, 0.05);
  --cb-line: #e5e5e5;

  /* Text (niche-specific; default = inherit .content-txt text color) */
  --cb-paper: inherit;
  --cb-paper-dim: inherit;
  --cb-paper-mute: inherit;

  /* Accent(s) — default to the site's own button colors so a niche
     that defines no modifier still looks native to the theme. */
  --cb-accent: var(--main-color);
  --cb-accent-2: var(--hover-color);
}

/* Typography floor (PC): headings always bold, body text never below
   14px. One rule here instead of per-template overrides, since every
   template's heading/paragraph tags live inside .cb-block regardless of
   which file defines them — e.g. this is what makes range-calculator-v1's
   bare <h2> bold without a dedicated .cb-calc-copy h2 rule. */
.cb-block h1,
.cb-block h2,
.cb-block h3 {
  font-weight: 700;
}

.cb-block section {
  padding: 50px 0;
  border-bottom: 1px solid var(--cb-line);
}
.cb-block section:last-child {
  border-bottom: none;
}
@media (max-width: 768px) {
  .cb-block section {
    padding: 40px 0;
  }
}

.cb-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 600px) {
  .cb-wrap {
    padding: 0 20px;
  }
}

/* ---------------------------------------------------------- */
/* Eyebrow label                                                */
/* ---------------------------------------------------------- */
.cb-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cb-accent);
  margin: 0 0 10px;
}

/* ---------------------------------------------------------- */
/* Image placeholder (development only — replace before publish) */
/* ---------------------------------------------------------- */
.cb-ph {
  position: relative;
  background: #111;
  border: 1px solid var(--cb-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 220px;
}
.cb-ph::before {
  content: attr(data-label);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  padding: 14px;
  border: 1px dashed #444;
}

/* Real image inside a .cb-ph slot: fills the box exactly (whatever
   aspect-ratio the block's own CSS set on .cb-ph — e.g. 4/5 for a hero
   visual) via object-fit: cover, so a source photo with different
   proportions gets cropped instead of stretched/squished. Stacks above
   the ::before dev-label automatically (an absolutely positioned element
   paints after in-flow/pseudo content in the same stacking context), so
   a filled slot simply hides the dashed placeholder instead of needing
   a separate "has image" class. object-position defaults to center;
   revisit with a per-image override only once a real crop is proven to
   need one. */
.cb-ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------------------------------------------------------- */
/* Live badge / pulsing dot (social-proof counters)             */
/* ---------------------------------------------------------- */
.cb-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--cb-accent);
  border: 1px solid currentColor;
  padding: 7px 14px;
  border-radius: 20px;
}
.cb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex: none;
  animation: cbPulse 2s infinite;
}
@keyframes cbPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* ---------------------------------------------------------- */
/* Trust bar                                                    */
/* ---------------------------------------------------------- */
.cb-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cb-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cb-trust-icon {
  flex: none;
  width: 48px;
  height: 16px;
  border-radius: 2px;
  /*border: 1px solid var(--cb-accent);*/
  color: var(--cb-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.cb-trust-item h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
}
.cb-trust-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cb-paper-mute);
}
.cb-trust-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--cb-line);
  display: flex;
  gap: 24px;
  font-size: 14px;
  flex-wrap: wrap;
  color: var(--cb-paper-mute);
}
.cb-trust-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
}
@media (max-width: 980px) {
  .cb-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cb-trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------- */
/* Section intro — eyebrow/h2 block + its lede paragraph, and    */
/* the "see also" link style used inside SEO text columns.       */
/* Exists so pages never need a one-off inline <style> for       */
/* this (very common) spacing/color combination.                */
/* ---------------------------------------------------------- */
.cb-intro {
  max-width: 640px;
  margin-bottom: 28px;
}
.cb-intro--wide {
  max-width: 700px;
}
.cb-lede {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cb-paper-dim);
  max-width: 60ch;
}
.cb-int-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--cb-accent);
  margin-top: 10px;
}
.cb-int-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------- */
/* Text grid — reused for SEO strips (hero intro + closing block) */
/* ---------------------------------------------------------- */
.cb-text-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
}
.cb-text-col {
  padding: 0 36px 0 0;
  margin-right: 36px;
  border-right: 1px solid var(--cb-line);
}
.cb-text-col:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.cb-text-col h2,
.cb-text-col h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--cb-paper);
}
.cb-text-col p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 10px;
  color: var(--cb-paper-dim);
}
.cb-text-col p:last-child {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .cb-text-grid {
    grid-template-columns: 1fr;
  }
  .cb-text-col {
    border-right: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--cb-line);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .cb-text-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

/* ---------------------------------------------------------- */
/* How it works                                                 */
/* ---------------------------------------------------------- */
.cb-how-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.cb-how-steps {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}
.cb-how-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--cb-line);
  align-items: start;
}
.cb-how-step:first-child {
  padding-top: 0;
}
.cb-how-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cb-how-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--cb-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex: none;
}
.cb-how-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cb-paper);
}
.cb-how-step p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: var(--cb-paper-dim);
}
@media (max-width: 980px) {
  .cb-how-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------- */
/* Comparison table ("us" vs "them" columns)                    */
/* ---------------------------------------------------------- */
.cb-compare {
  display: grid;
  margin-top: 28px;
  border: 1px solid var(--cb-line);
  border-radius: 4px;
  overflow: hidden;
}
.cb-compare--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cb-compare--4 {
  grid-template-columns: repeat(4, 1fr);
}
.cb-compare-col {
  padding: 24px 20px;
  border-right: 1px solid var(--cb-line);
}
.cb-compare-col:last-child {
  border-right: none;
}
.cb-compare-col-head {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cb-line);
  margin-bottom: 16px;
  color: var(--cb-paper-mute);
}
.cb-compare-col.us .cb-compare-col-head {
  color: var(--cb-accent);
}
.cb-compare-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--cb-paper-mute);
}
.cb-compare-col.us .cb-compare-item {
  color: var(--cb-paper-dim);
}
.cb-compare-item:last-child {
  margin-bottom: 0;
}
.cb-compare-mark {
  flex: none;
  margin-top: 1px;
  color: var(--cb-compare-mark-neg, #f00);
}
.cb-compare-col.us .cb-compare-mark {
  color: var(--cb-accent);
}
@media (max-width: 980px) {
  .cb-compare {
    grid-template-columns: 1fr !important;
  }
  .cb-compare-col {
    border-right: none;
    border-bottom: 1px solid var(--cb-line);
  }
  .cb-compare-col:last-child {
    border-bottom: none;
  }
}

/* ---------------------------------------------------------- */
/* FAQ (native <details>, no JS required)                       */
/* ---------------------------------------------------------- */
.cb-faq-list {
  border-top: 1px solid var(--cb-line);
}
details.cb-faq-item {
  border-bottom: 1px solid var(--cb-line);
  padding: 20px 0;
}
details.cb-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cb-paper);
}
details.cb-faq-item summary::-webkit-details-marker {
  display: none;
}
details.cb-faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--cb-accent);
  flex: none;
}
details.cb-faq-item[open] summary::after {
  content: "\2013";
}
details.cb-faq-item p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  color: var(--cb-paper-dim);
}

/* ---------------------------------------------------------- */
/* City grid (local SEO)                                        */
/* ---------------------------------------------------------- */
.cb-city-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--cb-line);
  border-left: 1px solid var(--cb-line);
}
.cb-city-link {
  display: block;
  padding: 16px 18px;
  border-right: 1px solid var(--cb-line);
  border-bottom: 1px solid var(--cb-line);
  transition: background 0.15s;
}
.cb-city-link:hover {
  background: var(--cb-bg-3);
}
.cb-city-link .cn {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cb-paper);
}
.cb-city-link .cc {
  display: block;
  font-size: 14px;
  color: var(--cb-accent);
  margin-top: 3px;
}
@media (max-width: 980px) {
  .cb-city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cb-city-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------- */
/* Final CTA                                                     */
/* ---------------------------------------------------------- */
.cb-final-cta {
  text-align: center;
}
.cb-final-inner {
  max-width: 600px;
  margin: 0 auto;
}
.cb-final-inner p {
  font-size: 16px;
  color: var(--cb-paper-dim);
}
.cb-final-inner .btn {
  margin-top: 20px;
}
.cb-final-trust {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--cb-paper-mute);
}
.cb-final-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cb-final-trust .cb-dot {
  width: 4px;
  height: 4px;
  animation: none;
  color: var(--cb-accent);
}

/* Buttons intentionally NOT redefined here — generated content
   uses the theme's own .btn / .btn-primary / .btn-outline-primary
   (see _common/css/buttons.css) so hover states stay in sync with
   the rest of the site automatically. */

@media (prefers-reduced-motion: reduce) {
  .cb-dot {
    animation: none !important;
  }
}



/*. .................................................. */

.btn-primary {
  background-color: #7a1864;
  color: #fff;
  border: 2px solid #7a1864;
}

/*для hover:*/
.btn-primary:active,
.btn-primary:hover {
  background-color: #fff !important;
  color: #7a1864 !important;
  border: 2px solid #7a1864 !important;
}

/* common */
.btn-primary ,
.btn-outline-primary {
  text-decoration: none !important;
}

.content-common-blocks {
  padding-top: 0;
}

/* JSON blocks are rendered inside the legacy article container. Break only
   their outer wrapper out to the viewport width; .cb-wrap keeps each block's
   readable content centered and constrained. */
.content-common-blocks--full-width {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

/* Remove the legacy article width limit only when it contains JSON blocks. */
.spec-pos:has(.content-txt_is_json) {
  width: 100%;
  max-width: none;
}

/* for web view -------------------------------------------------------- */ 

.content-common-blocks .cb-hero-top {
  margin-top: -80px;
}

.content-common-blocks .cb-block section {
  border-bottom: 1px solid var(--cb-line);
}

.cb-hero-lede{ max-width: 100ch !important }

.content-common-blocks .cb-ph,
.cb-hero-section .cb-hero-visual .cb-ph {
  border-radius: 30px !important;
}


.cb-sw-options .cb-sw-opt-icon {
  font-size: 32px;
}

@media (min-width: 980px) {
  .cb-hero-section .cb-hero-visual .cb-ph {
    aspect-ratio: 1;
  }  
}

  