/* WP content bridge — uses main Tilda stack; no separate design system */
body.b501-blog-body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'TildaSans', Arial, sans-serif;
}
.b501-blog-shell {
  padding-top: 100px;
  padding-bottom: 60px;
}
.b501-blog-shell .t-card__col img,
.b501-blog-shell .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}
.b501-blog-shell .entry-content {
  max-width: 760px;
}
.b501-blog-shell .entry-content a {
  color: #0b6153;
}
.b501-blog-shell .t228 {
  background-color: #000 !important;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 720px) {
  .lead-form .form-grid { grid-template-columns: 1fr; }
}


/* Blog cards: equal height in row, CTA aligned to bottom */
.b501-blog-shell .b501-blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.b501-blog-shell .b501-blog-card {
  float: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 16px);
  max-width: 100%;
  box-sizing: border-box;
}
.b501-blog-shell .b501-blog-card__media img {
  width: 100%;
  height: auto;
  display: block;
}
.b501-blog-shell .b501-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 14px;
  min-height: 0;
}
.b501-blog-shell .b501-blog-card__title {
  color: #fff;
}
.b501-blog-shell .b501-blog-card__title a {
  color: #fff;
  text-decoration: none;
}
.b501-blog-shell .b501-blog-card__excerpt {
  color: #bbb;
}
.b501-blog-shell .b501-blog-card__btn {
  margin-top: auto;
  align-self: flex-start;
  background-color: #0b6153;
  color: #fff;
  padding-top: 12px;
}
@media (max-width: 980px) {
  .b501-blog-shell .b501-blog-card {
    width: calc(50% - 12px);
  }
}
@media (max-width: 640px) {
  .b501-blog-shell .b501-blog-card {
    width: 100%;
  }
}

/* Force T228 menu visible on blog (without waiting for tilda-menu JS) */
.b501-blog-body #rec1118556411 .t228__list,
.b501-blog-body #rec1118556411 .t-menu__list {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  list-style: none;
  margin: 0;
  padding: 0;
}
.b501-blog-body #rec1118556411 .t228__list_item {
  display: list-item;
  list-style: none;
}
.b501-blog-body #rec1118556411 .t228__centerside,
.b501-blog-body #rec1118556411 .t228__centercontainer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.b501-blog-body #rec1118556411 .t-menu__link-item {
  color: #ffffff !important;
  font-size: 18px !important;
  opacity: 1 !important;
  text-decoration: none;
}
.b501-blog-body #rec1118556411 .t228__maincontainer {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

/* === ARTICLE CONTENT (Excalibur) === */
.b501-blog-shell .b501-article {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px 80px;
  box-sizing: border-box;
}
.b501-blog-shell .b501-article__inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.b501-blog-shell .b501-article__eyebrow {
  color: #0b6153;
  margin: 0 0 10px;
}
.b501-blog-shell .b501-article__eyebrow a {
  color: #0b6153;
  text-decoration: none;
}
.b501-blog-shell .b501-article__title {
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
  font-size: clamp(28px, 4vw, 42px);
}
.b501-blog-shell .b501-article__meta {
  color: #999;
  margin: 0 0 28px;
}
.b501-blog-shell .b501-article__hero {
  margin: 0 0 32px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #141414;
}
.b501-blog-shell .b501-article__hero-img,
.b501-blog-shell .b501-article__hero img,
.b501-blog-shell .b501-article__content img,
.b501-blog-shell .entry-content img,
.b501-blog-shell .wp-post-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}
.b501-blog-shell .b501-article__content {
  color: #e8e8e8;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.b501-blog-shell .b501-article__content > *:first-child {
  margin-top: 0;
}
.b501-blog-shell .b501-article__content h2,
.b501-blog-shell .b501-article__content h3 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 2.2em 0 0.75em;
  scroll-margin-top: 110px;
}
.b501-blog-shell .b501-article__content h2 {
  font-size: clamp(22px, 3vw, 28px);
  padding-bottom: 10px;
  border-bottom: 1px solid #222;
}
.b501-blog-shell .b501-article__content h3 {
  font-size: 1.15em;
  color: #d8d8d8;
}
.b501-blog-shell .b501-article__content p,
.b501-blog-shell .b501-article__content ul,
.b501-blog-shell .b501-article__content ol {
  margin: 0 0 1.15em;
}
.b501-blog-shell .b501-article__content ul,
.b501-blog-shell .b501-article__content ol {
  padding-left: 1.25em;
}
.b501-blog-shell .b501-article__content li {
  margin: 0.35em 0;
}
.b501-blog-shell .b501-article__content a {
  color: #7dcbba;
}
.b501-blog-shell .b501-article__content a:hover {
  color: #fff;
}

/* Figures / inline images */
.b501-blog-shell .b501-article__content figure {
  margin: 1.75em 0;
  padding: 0;
  max-width: 100%;
  background: #121212;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
}
.b501-blog-shell .b501-article__content figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.45;
  border-top: 1px solid #222;
}

/* Tables — fit column, no horizontal scroll */
.b501-blog-shell .b501-article__content .b501-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 1.75em 0;
  overflow: visible;
}
.b501-blog-shell .b501-article__content table {
  display: table;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}
.b501-blog-shell .b501-article__content thead th {
  background: #0b6153;
  color: #fff;
  font-weight: 600;
  text-align: left;
}
.b501-blog-shell .b501-article__content th,
.b501-blog-shell .b501-article__content td {
  padding: 10px 10px;
  border-bottom: 1px solid #2a2a2a;
  border-right: 1px solid #2a2a2a;
  vertical-align: top;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.b501-blog-shell .b501-article__content th:last-child,
.b501-blog-shell .b501-article__content td:last-child {
  border-right: 0;
}
.b501-blog-shell .b501-article__content tbody tr:nth-child(even) td {
  background: #171717;
}
.b501-blog-shell .b501-article__content tbody tr:last-child td {
  border-bottom: 0;
}
/* Narrow screens: stack rows as cards — still no page scrollbar */
@media (max-width: 640px) {
  .b501-blog-shell .b501-article__content .b501-table-wrap table,
  .b501-blog-shell .b501-article__content .b501-table-wrap thead,
  .b501-blog-shell .b501-article__content .b501-table-wrap tbody,
  .b501-blog-shell .b501-article__content .b501-table-wrap th,
  .b501-blog-shell .b501-article__content .b501-table-wrap td,
  .b501-blog-shell .b501-article__content .b501-table-wrap tr {
    display: block;
    width: 100%;
  }
  .b501-blog-shell .b501-article__content .b501-table-wrap thead {
    display: none;
  }
  .b501-blog-shell .b501-article__content .b501-table-wrap tr {
    margin: 0 0 12px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background: #121212;
    overflow: hidden;
  }
  .b501-blog-shell .b501-article__content .b501-table-wrap td {
    border: 0;
    border-bottom: 1px solid #2a2a2a;
    padding: 10px 12px;
  }
  .b501-blog-shell .b501-article__content .b501-table-wrap td:last-child {
    border-bottom: 0;
  }
  .b501-blog-shell .b501-article__content .b501-table-wrap td::before {
    content: attr(data-label);
    display: block;
    color: #7dcbba;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

/* TOC-ish lists after intro */
.b501-blog-shell .b501-article__content nav,
.b501-blog-shell .b501-article__content .article-toc {
  margin: 1.5em 0 2em;
  padding: 16px 18px;
  background: #121212;
  border-left: 3px solid #0b6153;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 720px) {
  .b501-blog-shell .b501-article__content th,
  .b501-blog-shell .b501-article__content td {
    padding: 10px 10px;
    font-size: 14px;
  }
}


/* === FAQ accordion (MKB pattern, dark theme) === */
.b501-blog-shell .article-faq.faq-section,
.b501-blog-shell .article-faq {
  margin: 2.5em 0;
  padding: 0;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}
.b501-blog-shell .article-faq__title,
.b501-blog-shell .article-faq > h2 {
  margin: 0 !important;
  padding: 18px 20px 12px !important;
  border-bottom: 1px solid #2a2a2a !important;
  color: #fff !important;
  font-size: clamp(22px, 3vw, 26px) !important;
}
.b501-blog-shell .faq__list {
  padding: 0 20px;
}
.b501-blog-shell .faq__item {
  border-bottom: 1px solid #2a2a2a;
}
.b501-blog-shell .faq__item:last-child {
  border-bottom: 0;
}
.b501-blog-shell .faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  color: #7dcbba;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
}
.b501-blog-shell .faq__q::after {
  content: "+";
  color: #0b6153;
  font-size: 1.5rem;
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
}
.b501-blog-shell .faq__item.open .faq__q::after {
  content: "\2212";
}
.b501-blog-shell .faq__a {
  display: none;
  padding: 0 0 16px;
  color: #cfcfcf;
  font-size: 15px;
  line-height: 1.55;
  max-width: 62ch;
}
.b501-blog-shell .faq__item.open .faq__a {
  display: block;
}
.b501-blog-shell .faq__a p {
  margin: 0 0 0.6em;
}
.b501-blog-shell .faq__a p:last-child {
  margin-bottom: 0;
}
.b501-blog-shell .faq__a a {
  color: #7dcbba;
}



/* TOC list polish */
.b501-blog-shell .article-toc .article-toc__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
}
.b501-blog-shell .article-toc .article-toc__list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}
.b501-blog-shell .article-toc a {
  color: #7dcbba;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}
.b501-blog-shell .article-toc a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Lead form: narrower + neat consent */
.b501-lead-section .t-container {
  max-width: 560px !important;
}
.lead-form {
  max-width: 560px;
}
.lead-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-form .form-field--full { grid-column: 1 / -1; }
.lead-form input,
.lead-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 5px;
  padding: 12px 14px;
  font: inherit;
  text-align: left;
}
.lead-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #0b6153;
  display: inline-block;
  vertical-align: top;
  float: none;
}
.lead-form__consent {
  color: #bbb;
  font-size: 13px;
  line-height: 1.45;
  margin: 14px 0 16px;
  text-align: left !important;
}
.lead-form__consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  text-align: left !important;
  cursor: pointer;
  margin: 0;
}
.lead-form__consent-text {
  flex: 1 1 auto;
  text-align: left;
}
.lead-form__consent a {
  color: #7dcbba;
  text-decoration: underline;
}
.lead-form__actions {
  text-align: left;
}
.lead-form__actions .btn,
.lead-form__actions button {
  display: inline-block;
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 4px;
  padding: 12px 22px;
  cursor: pointer;
  font: inherit;
}
@media (max-width: 720px) {
  .lead-form .form-grid { grid-template-columns: 1fr; }
  .b501-lead-section .t-container,
  .lead-form { max-width: 100% !important; }
}


/* Product cards (t1073): align Купить buttons to bottom of each row */
.t1073 .t1073__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.t1073 .t1073__col.t-card__col {
  display: flex;
  flex-direction: column;
  float: none !important;
  height: auto !important;
  box-sizing: border-box;
}
.t1073 .t1073__textwrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0;
}
.t1073 .t1073__textwrapper .t-card__btn,
.t1073 .t1073__textwrapper .t-card__link {
  margin-top: auto;
  align-self: flex-start;
}


/* === Canonical page/section headings ================================
 * Reference: homepage about «Barber501 — это уверенность…»
 * (.t-section__title.t-title.t-title_xs) — desktop 42 / mid 38 / mobile 30,
 * TildaSans 600, line-height 1.23, letter-spacing normal.
 * Align comparable H1 / section titles / blog titles (not product card titles).
 * ================================================================== */
:root {
  --b501-heading-font: 'TildaSans', Arial, sans-serif;
  --b501-heading-weight: 600;
  --b501-heading-size: 42px;
  --b501-heading-lh: 1.23;
  --b501-heading-tracking: normal;
}
@media screen and (max-width: 1200px) {
  :root { --b501-heading-size: 38px; }
}
@media screen and (max-width: 640px) {
  :root { --b501-heading-size: 30px; }
}

#allrecords .t-section__title.t-title,
#allrecords .t181__title.t-title,
#allrecords #rec1118556466 .t181__title,
#lead-form h2.t-title,
.b501-lead-section h2.t-title,
.b501-blog-shell .t-section__title.t-title,
.b501-blog-shell .b501-article__title,
.b501-blog-shell .b501-pagehead__title,
.b501-pagehead__title,
body.b501-blog-body h1.b501-article__title,
body.b501-blog-body .b501-pagehead__title {
  font-family: var(--b501-heading-font) !important;
  font-weight: var(--b501-heading-weight) !important;
  font-size: var(--b501-heading-size) !important;
  line-height: var(--b501-heading-lh) !important;
  letter-spacing: var(--b501-heading-tracking) !important;
}

/* Article in-content H2: same family/weight as ref; slightly smaller scale */
.b501-blog-shell .b501-article__content h2 {
  font-family: var(--b501-heading-font) !important;
  font-weight: var(--b501-heading-weight) !important;
  letter-spacing: var(--b501-heading-tracking) !important;
  line-height: var(--b501-heading-lh) !important;
  font-size: clamp(22px, 3.2vw, 28px) !important;
}
