/**
 * Custom styles — Handyman site
 * Текстовый логотип с иконкой, название и слоган
 */

/* ========== Text logo (icon + name + tagline) ========== */
.site_logo .logo.logo-text,
.hamburger_logo .logo.logo-text,
.footer-logo .logo.logo-text {
  max-width: none;
}

.site_logo .logo-text,
.hamburger_logo .logo-text,
.footer-logo .logo-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.site_logo .logo-text:hover,
.hamburger_logo .logo-text:hover,
.footer-logo .logo-text:hover {
  opacity: 0.9;
  color: inherit;
}

.site_logo .logo-icon,
.hamburger_logo .logo-icon,
.footer-logo .logo-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  border-radius: 10px;
  font-size: 22px;
}

.site_logo .logo-body,
.hamburger_logo .logo-body,
.footer-logo .logo-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site_logo .logo-name,
.hamburger_logo .logo-name,
.footer-logo .logo-name {
  font-family: var(--tj-ff-heading);
  font-size: 22px;
  font-weight: var(--tj-fw-sbold);
  color: var(--tj-color-heading-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site_logo .logo-tagline,
.hamburger_logo .logo-tagline,
.footer-logo .logo-tagline {
  font-size: 12px;
  font-weight: var(--tj-fw-regular);
  color: var(--tj-color-text-body-3);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* Footer: светлый текст на тёмном фоне */
.footer-logo .logo-name {
  color: var(--tj-color-common-white);
}

.footer-logo .logo-tagline {
  color: var(--tj-color-text-body-5);
}

/* Hamburger/offcanvas: светлый текст на тёмном фоне */
.tj-offcanvas-area .hamburger_logo .logo-name,
.hamburger-area .hamburger_logo .logo-name {
  color: var(--tj-color-common-white);
}

.tj-offcanvas-area .hamburger_logo .logo-tagline,
.hamburger-area .hamburger_logo .logo-tagline {
  color: var(--tj-color-text-body-5);
}

/* Header absolute (light text on dark/bg) */
.header-absolute .site_logo .logo-name {
  color: var(--tj-color-common-white);
}

.header-absolute .site_logo .logo-tagline {
  color: var(--tj-color-text-body-5);
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
  .site_logo .logo-icon,
  .hamburger_logo .logo-icon,
  .footer-logo .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .site_logo .logo-text,
  .hamburger_logo .logo-text,
  .footer-logo .logo-text {
    gap: 10px;
  }

  .site_logo .logo-name,
  .hamburger_logo .logo-name,
  .footer-logo .logo-name {
    font-size: 18px;
  }

  .site_logo .logo-tagline,
  .hamburger_logo .logo-tagline,
  .footer-logo .logo-tagline {
    font-size: 11px;
  }
}

@media (max-width: 575px) {
  .site_logo .logo-icon,
  .hamburger_logo .logo-icon,
  .footer-logo .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .site_logo .logo-text,
  .hamburger_logo .logo-text,
  .footer-logo .logo-text {
    gap: 8px;
  }

  .site_logo .logo-name,
  .hamburger_logo .logo-name,
  .footer-logo .logo-name {
    font-size: 16px;
  }

  .site_logo .logo-tagline,
  .hamburger_logo .logo-tagline,
  .footer-logo .logo-tagline {
    font-size: 10px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ========== Image logo variants (light/dark) ========== */
.site_logo .logo-image--light,
.site_logo .logo-image--dark,
.hamburger_logo .logo-image--light,
.footer-logo .logo-image--light {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Default (non-sticky header): light logo */
.site_logo .logo-image--dark {
  display: none;
}

/* Sticky header: dark logo */
.header-sticky .site_logo .logo-image--light {
  display: none;
}
.header-sticky .site_logo .logo-image--dark {
  display: block;
}

@media (max-width: 991px) {
  .site_logo .logo-image--light,
  .site_logo .logo-image--dark,
  .hamburger_logo .logo-image--light,
  .footer-logo .logo-image--light {
    height: 42px;
  }
}

@media (max-width: 575px) {
  .site_logo .logo-image--light,
  .site_logo .logo-image--dark,
  .hamburger_logo .logo-image--light,
  .footer-logo .logo-image--light {
    height: 38px;
  }
}

/* ========== Callback widget (floating) ========== */
.callback-widget {
  position: fixed;
  left: 34px;
  bottom: 24px;
  z-index: 999;
  pointer-events: none;
}

@keyframes callback-widget-pulse {
  0%, 40%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(30, 138, 138, 0.4);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 6px rgba(30, 138, 138, 0.25), 0 6px 28px rgba(30, 138, 138, 0.5);
  }
  60% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(30, 138, 138, 0.4);
  }
}

.callback-widget__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 20px;
  background: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  border: none;
  border-radius: 50px;
  font-family: var(--tj-ff-heading);
  font-size: 15px;
  font-weight: var(--tj-fw-sbold);
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30, 138, 138, 0.4);
  transition: background 0.25s ease, box-shadow 0.3s ease;
  animation: callback-widget-pulse 4s ease-in-out infinite;
}

.callback-widget__btn:hover {
  background: var(--tj-color-theme-dark);
  color: var(--tj-color-common-white);
  /* transform: translateY(-2px); */
  box-shadow: 0 6px 24px rgba(12, 30, 33, 0.35);
  /* animation: none; */
}

.callback-widget__btn:focus {
  outline: 2px solid var(--tj-color-theme-primary);
  outline-offset: 2px;
}

.callback-widget__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.callback-widget__label {
  white-space: nowrap;
}

@media (max-width: 575px) {
  .callback-widget {
    left: 16px;
    bottom: 20px;
  }

  .callback-widget__btn {
    padding: 12px 16px 12px 18px;
    font-size: 14px;
    gap: 8px;
  }

  .callback-widget__label {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ========== Callback modal ========== */
.callback-modal .modal-dialog {
  max-width: 440px;
  margin: 16px auto;
}

.callback-modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(12, 30, 33, 0.2);
}

.callback-modal .modal-header {
  position: relative;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--tj-color-border-1);
  background: var(--tj-color-common-white);
}

.callback-modal .modal-title {
  font-family: var(--tj-ff-heading);
  font-size: 20px;
  font-weight: var(--tj-fw-sbold);
  color: var(--tj-color-heading-primary);
  margin: 0;
}

.callback-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--tj-color-text-body-3);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.callback-modal__close:hover {
  color: var(--tj-color-theme-primary);
  background: var(--tj-color-theme-bg);
}

.callback-modal .modal-body {
  padding: 24px;
  background: var(--tj-color-common-white);
}

.callback-modal__desc {
  color: var(--tj-color-text-body);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Callback form */
.callback-form__row {
  margin-bottom: 18px;
}

.callback-form__label {
  display: block;
  font-size: 14px;
  font-weight: var(--tj-fw-medium);
  color: var(--tj-color-heading-primary);
  margin-bottom: 6px;
}

.callback-form__label .required {
  color: var(--tj-color-theme-primary);
}

.callback-form__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--tj-color-text-body);
  background-color: var(--tj-color-common-white);
  border: 1px solid var(--tj-color-border-1);
  border-radius: 10px;
  transition: border-color 0.2s ease, outline 0.2s ease;
}

.callback-form__input::placeholder {
  color: var(--tj-color-text-body-2);
}

.callback-form__input:focus {
  border-color: var(--tj-color-theme-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 138, 138, 0.15);
}

.callback-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.callback-form__submit {
  margin-top: 24px;
}

.callback-form__success-text {
  color: var(--tj-color-theme-primary);
  font-weight: var(--tj-fw-sbold);
  margin: 0;
}

/* CF7 внутри модалки «Заказать звонок»: обёртки и сообщения */
.callback-modal .callback-form .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}
.callback-modal .callback-form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  border: none;
}
.callback-modal .callback-form .wpcf7-mail-sent-ok {
  background: var(--tj-color-theme-bg);
  color: var(--tj-color-theme-dark);
}
.callback-modal .callback-form .wpcf7-validation-errors,
.callback-modal .callback-form .wpcf7-mail-sent-ng {
  background: #fef2f2;
  color: #b91c1c;
}
.callback-modal .callback-form input[type="file"].callback-form__input {
  padding: 10px 14px;
  font-size: 14px;
}

@media (max-width: 575px) {
  .callback-modal .modal-dialog {
    margin: 12px auto;
  }

  .callback-modal .modal-header,
  .callback-modal .modal-body {
    padding: 16px 18px;
  }

  .callback-modal .modal-title {
    font-size: 18px;
  }

  .callback-form__submit .tj-primary-btn {
    width: 100%;
    justify-content: center;
  }
}
.padding-top-0{
  padding-top: 0!important;
}
.padding-bottom-0{
  padding-bottom: 0!important;
}

/* ========== Home banner: подзаголовок (lead) под заголовком ========== */
.h5-banner-section .h5-banner-content .banner-lead {
  max-width: 520px;
  margin: 0 0 28px 0;
  color: var(--tj-color-common-white);
  font-size: 18px;
  line-height: 1.5;
  font-weight: var(--tj-fw-regular);
  opacity: 0.95;
}

@media only screen and (min-width: 992px) {
  .h5-banner-section .h5-banner-content .banner-lead {
    font-size: 20px;
    margin-bottom: 32px;
  }
}

@media only screen and (max-width: 767px) {
  .h5-banner-section .h5-banner-content .banner-lead {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 100%;
  }
}

/* ========== Quality metrics card (strategy section) ========== */
.h5-strategy .row > .col-12,
.h5-strategy .row > .col-12.col-md-6.col-lg-4,
.h5-strategy .row > .col-12.col-lg-4 {
  display: flex;
}

.h5-strategy .h5-strategy-item {
  width: 100%;
}

.quality-metrics-card {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--tj-color-common-white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
}

.quality-metrics-card__subtitle {
  font-size: 14px;
  color: var(--tj-color-text-body);
  margin: 0;
}

.quality-metrics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quality-metrics-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--tj-color-theme-bg);
}

.quality-metrics-item__label {
  font-size: 14px;
  color: var(--tj-color-heading-primary);
}

.quality-metrics-item__value {
  font-family: var(--tj-ff-heading);
  font-weight: var(--tj-fw-sbold);
  font-size: 16px;
  color: var(--tj-color-theme-primary);
}

.quality-metrics-card__note {
  font-size: 12px;
  color: var(--tj-color-text-body-2);
  margin: 0;
}

@media (max-width: 991px) {
  .quality-metrics-card {
    margin-top: 24px;
    min-height: 0;
  }
}

/* First strategy card: steps instead of avatar */
.h5-strategy-steps-card {
  padding: 20px 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
}

.h5-strategy-steps-card__subtitle {
  font-size: 14px;
  color: var(--tj-color-text-body);
  margin: 0;
}

.h5-strategy-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h5-strategy-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.h5-strategy-step__badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--tj-fw-sbold);
}

.h5-strategy-step__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.h5-strategy-step__title {
  font-size: 14px;
  font-weight: var(--tj-fw-medium);
  color: var(--tj-color-heading-primary);
}

.h5-strategy-step__text {
  font-size: 13px;
  color: var(--tj-color-text-body);
}

.h5-strategy-steps-card__footer {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--tj-color-border-1);
  display: flex;
  align-items: baseline;
  gap: 8px;
  align-items: center;
}

.h5-strategy-steps-card__counter {
  font-family: var(--tj-ff-heading);
  font-size: 22px;
  font-weight: var(--tj-fw-sbold);
  color: var(--tj-color-heading-primary);
}

.h5-strategy-steps-card__note {
  font-size: 12px;
  color: var(--tj-color-text-body-2);
}

@media (max-width: 991px) {
  .h5-strategy-steps-card {
    margin-top: 24px;
    min-height: 0;
  }
}

/* Footer badges instead of award logos */
.footer-badges {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--tj-color-text-body-5);
}

.footer-badge__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--tj-color-common-white);
}

.footer-badge__text {
  line-height: 1.4;
}

/* Header contact + callback button */
.header-area.header-2.header-absolute .header-wrapper,
.header-area.header-2.header-sticky .header-wrapper {
  padding-inline: 26px;
}

.header-contact-cta {
  align-items: center;
  gap: 26px;
}

.header-contact-cta__phone {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.header-contact-cta__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.header-contact-cta__number {
  font-size: 15px;
  font-weight: var(--tj-fw-sbold);
  color: var(--tj-color-common-white);
  letter-spacing: 0.01em;
}

.header-contact-cta__number:hover {
  color: var(--tj-color-theme-bg);
}

/* Sticky header variant: dark text on light background */
.header-area.header-2.header-sticky .header-contact-cta__label {
  color: var(--tj-color-text-body-3);
}

.header-area.header-2.header-sticky .header-contact-cta__number {
  color: var(--tj-color-heading-primary);
}

.header-area.header-2.header-sticky .header-contact-cta__number:hover {
  color: var(--tj-color-theme-primary);
}

.header-contact-cta__btn {
  padding-inline-start: 26px;
  padding-inline-end: 10px;
  background-color: var(--tj-color-theme-primary) !important;
  color: #fff !important;
}

.header-contact-cta__btn .btn-text,
.header-contact-cta__btn .btn-text span {
  font-size: 14px;
  color: #fff !important;
}

.header-contact-cta__btn .btn-icon i {
  color: #fff !important;
}

.header-contact-cta__btn:hover {
  background-color: var(--tj-color-theme-dark) !important;
  color: #fff !important;
}

.header-contact-cta__btn:hover .btn-text,
.header-contact-cta__btn:hover .btn-text span,
.header-contact-cta__btn:hover .btn-icon i {
  color: #fff !important;
}

/* ========== Services grid: ровные карточки ========== */
.tj-service-section.service-4 .row > [class*="col-"] {
  display: flex;
}

.tj-service-section.service-4 .service-item.style-4 {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.tj-service-section.service-4 .service-item.style-4 .service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Заголовок всегда занимает 2 строки по высоте */
.tj-service-section.service-4 .service-item.style-4 .service-content .title {
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.tj-service-section.service-4 .service-item.style-4 .service-content .desc {
  margin-top: 10px;
}

.tj-service-section.service-4 .service-item.style-4 .service-content .majstertu-service-children {
  margin-top: 10px;
}

/* Кнопку всегда прижимаем вниз */
.tj-service-section.service-4 .service-item.style-4 .service-content .text-btn {
  margin-top: auto;
  padding-top: 12px;
}

/* ========== Universal page: content typography + lists (screen-like) ========== */
/* Applies only to template universal-content.php via added class */
.post-details-wrapper .blog-text--universal section {
  margin-top: 30px;
}

.post-details-wrapper .blog-text--universal section:first-child {
  margin-top: 0;
}

.post-details-wrapper .blog-text--universal section > h2,
.post-details-wrapper .blog-text--universal section > h3,
.post-details-wrapper .blog-text--universal section > h4 {
  margin-top: 22px;
}

.post-details-wrapper .blog-text--universal section > h2:first-child,
.post-details-wrapper .blog-text--universal section > h3:first-child,
.post-details-wrapper .blog-text--universal section > h4:first-child {
  margin-top: 0;
}

.post-details-wrapper .blog-text--universal ul {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
  column-count: 1;
}

.post-details-wrapper .blog-text--universal ul li {
  position: relative;
  display: block;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.post-details-wrapper .blog-text--universal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(30, 138, 138, 0.22);
  box-shadow: inset 0 0 0 4px var(--tj-color-theme-primary);
}

@media (max-width: 991px) {
  .post-details-wrapper .blog-text--universal section {
    margin-top: 24px;
  }
}

/* ========== Universal page: TOC widget (sidebar) ========== */
.toc-widget--universal .widget-title {
  margin-bottom: 18px;
}

.toc-widget--universal .toc-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.toc-widget--universal .toc-list > li {
  margin-bottom: 8px;
}

.toc-widget--universal .toc-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tj-color-heading-primary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

.toc-widget--universal .toc-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(30, 138, 138, 0.22);
  box-shadow: inset 0 0 0 2px var(--tj-color-theme-primary);
  flex-shrink: 0;
}

.toc-widget--universal .toc-list a:hover {
  color: var(--tj-color-theme-primary);
  transform: translateX(2px);
}

.toc-widget--universal .toc-list a:hover::before {
  background: var(--tj-color-theme-primary);
  box-shadow: inset 0 0 0 2px var(--tj-color-theme-bg);
}

.toc-widget--universal .toc-list li ul {
  margin-top: 4px;
  margin-bottom: 4px;
  padding-left: 18px;
  list-style: none;
  border-left: 1px solid rgba(20, 24, 33, 0.08);
}

.toc-widget--universal .toc-list li ul li {
  margin-bottom: 4px;
}

.toc-widget--universal .toc-list li ul a::before {
  width: 5px;
  height: 5px;
  box-shadow: inset 0 0 0 2px var(--tj-color-theme-primary);
  background: rgba(30, 138, 138, 0.16);
}

.post-details-wrapper .blog-text--universal ul li:last-child {
  margin-bottom: 0;
}

/* "Key: description" — keep inline and readable */
.post-details-wrapper .blog-text--universal ul li strong:first-child {
  font-weight: var(--tj-fw-sbold);
  color: var(--tj-color-heading-primary);
  margin-right: 0;
}

/* Nested lists */
.post-details-wrapper .blog-text--universal ul ul {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(20, 24, 33, 0.08);
}

.post-details-wrapper .blog-text--universal ul ul li::before {
  width: 9px;
  height: 9px;
  box-shadow: inset 0 0 0 3px var(--tj-color-theme-primary);
  background: rgba(30, 138, 138, 0.16);
}

/* Avoid splitting items across columns (safe even with 1 column) */
.post-details-wrapper .blog-text--universal ul li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

/* ========== Universal page: WP content typography (scoped) ========== */
/* Applies ONLY to content inside universal-content.php block */
.post-details-wrapper .blog-text--universal-template {
  color: var(--tj-color-text-body);
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .post-details-wrapper .blog-text--universal-template {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* Vertical rhythm */
.post-details-wrapper .blog-text--universal-template > * {
  margin-top: 0;
  margin-bottom: 16px;
}

.post-details-wrapper .blog-text--universal-template > *:last-child {
  margin-bottom: 0;
}

/* Headings */
.post-details-wrapper .blog-text--universal-template h1,
.post-details-wrapper .blog-text--universal-template h2,
.post-details-wrapper .blog-text--universal-template h3,
.post-details-wrapper .blog-text--universal-template h4,
.post-details-wrapper .blog-text--universal-template h5,
.post-details-wrapper .blog-text--universal-template h6 {
  font-family: var(--tj-ff-heading);
  color: var(--tj-color-heading-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 26px;
  margin-bottom: 10px;
  scroll-margin-top: 110px;
}

.post-details-wrapper .blog-text--universal-template h1 { font-size: 34px; }
.post-details-wrapper .blog-text--universal-template h2 { font-size: 28px; }
.post-details-wrapper .blog-text--universal-template h3 { font-size: 22px; }
.post-details-wrapper .blog-text--universal-template h4 { font-size: 18px; }
.post-details-wrapper .blog-text--universal-template h5 { font-size: 16px; }
.post-details-wrapper .blog-text--universal-template h6 { font-size: 14px; letter-spacing: 0; text-transform: uppercase; }

@media (max-width: 767px) {
  .post-details-wrapper .blog-text--universal-template h1 { font-size: 28px; }
  .post-details-wrapper .blog-text--universal-template h2 { font-size: 24px; }
  .post-details-wrapper .blog-text--universal-template h3 { font-size: 20px; }
}

.post-details-wrapper .blog-text--universal-template h1:first-child,
.post-details-wrapper .blog-text--universal-template h2:first-child,
.post-details-wrapper .blog-text--universal-template h3:first-child,
.post-details-wrapper .blog-text--universal-template h4:first-child,
.post-details-wrapper .blog-text--universal-template h5:first-child,
.post-details-wrapper .blog-text--universal-template h6:first-child {
  margin-top: 0;
}

/* Paragraphs + inline */
.post-details-wrapper .blog-text--universal-template p {
  margin-bottom: 16px;
}

.post-details-wrapper .blog-text--universal-template strong,
.post-details-wrapper .blog-text--universal-template b {
  font-weight: var(--tj-fw-sbold);
  color: var(--tj-color-heading-primary);
}

.post-details-wrapper .blog-text--universal-template em,
.post-details-wrapper .blog-text--universal-template i {
  font-style: italic;
}

.post-details-wrapper .blog-text--universal-template small {
  font-size: 0.92em;
  color: var(--tj-color-text-body-2);
}

.post-details-wrapper .blog-text--universal-template a {
  color: var(--tj-color-theme-primary);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.post-details-wrapper .blog-text--universal-template a:hover {
  color: var(--tj-color-theme-dark);
  text-decoration: underline;
}

/* Separators */
.post-details-wrapper .blog-text--universal-template hr,
.post-details-wrapper .blog-text--universal-template .wp-block-separator {
  border: 0;
  height: 1px;
  background: rgba(20, 24, 33, 0.10);
  margin: 24px 0;
}

.post-details-wrapper .blog-text--universal-template .wp-block-separator.is-style-wide {
  margin: 28px 0;
}

/* Quotes */
.post-details-wrapper .blog-text--universal-template blockquote,
.post-details-wrapper .blog-text--universal-template .wp-block-quote {
  margin: 22px 0;
  padding: 18px 18px 18px 20px;
  border-left: 4px solid var(--tj-color-theme-primary);
  background: var(--tj-color-theme-bg);
  border-radius: 14px;
  color: var(--tj-color-heading-primary);
}

.post-details-wrapper .blog-text--universal-template blockquote p,
.post-details-wrapper .blog-text--universal-template .wp-block-quote p {
  margin-bottom: 10px;
}

.post-details-wrapper .blog-text--universal-template blockquote p:last-child,
.post-details-wrapper .blog-text--universal-template .wp-block-quote p:last-child {
  margin-bottom: 0;
}

.post-details-wrapper .blog-text--universal-template blockquote cite,
.post-details-wrapper .blog-text--universal-template .wp-block-quote cite {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--tj-color-text-body-2);
}

.post-details-wrapper .blog-text--universal-template .wp-block-pullquote {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(20, 24, 33, 0.10);
  border-radius: 16px;
  background: #fff;
}

.post-details-wrapper .blog-text--universal-template .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Lists */
.post-details-wrapper .blog-text--universal-template ul,
.post-details-wrapper .blog-text--universal-template ol {
  margin: 0 0 18px 0;
  padding-left: 22px;
}

.post-details-wrapper .blog-text--universal-template ul {
  list-style: none;
  padding-left: 0;
}

.post-details-wrapper .blog-text--universal-template ul > li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.post-details-wrapper .blog-text--universal-template ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(30, 138, 138, 0.22);
  box-shadow: inset 0 0 0 4px var(--tj-color-theme-primary);
}

.post-details-wrapper .blog-text--universal-template ol {
  padding-left: 22px;
}

.post-details-wrapper .blog-text--universal-template ol > li {
  margin-bottom: 10px;
}

.post-details-wrapper .blog-text--universal-template li > ul,
.post-details-wrapper .blog-text--universal-template li > ol {
  margin-top: 10px;
  margin-bottom: 10px;
}

.post-details-wrapper .blog-text--universal-template ul ul {
  padding-left: 14px;
  border-left: 1px solid rgba(20, 24, 33, 0.08);
}

.post-details-wrapper .blog-text--universal-template ul ul > li::before {
  width: 9px;
  height: 9px;
  box-shadow: inset 0 0 0 3px var(--tj-color-theme-primary);
  background: rgba(30, 138, 138, 0.16);
}

.post-details-wrapper .blog-text--universal-template ul li:last-child,
.post-details-wrapper .blog-text--universal-template ol li:last-child {
  margin-bottom: 0;
}

/* "Key: description" pattern */
.post-details-wrapper .blog-text--universal-template li strong:first-child {
  color: var(--tj-color-heading-primary);
  font-weight: var(--tj-fw-sbold);
}

/* Definition lists */
.post-details-wrapper .blog-text--universal-template dl {
  margin: 0 0 18px 0;
}

.post-details-wrapper .blog-text--universal-template dt {
  font-weight: var(--tj-fw-sbold);
  color: var(--tj-color-heading-primary);
  margin-top: 10px;
}

.post-details-wrapper .blog-text--universal-template dd {
  margin: 6px 0 0 0;
  color: var(--tj-color-text-body);
}

/* Code */
.post-details-wrapper .blog-text--universal-template code,
.post-details-wrapper .blog-text--universal-template kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.94em;
  background: rgba(30, 138, 138, 0.10);
  color: var(--tj-color-heading-primary);
  border: 1px solid rgba(20, 24, 33, 0.10);
  border-radius: 8px;
  padding: 2px 7px;
}

.post-details-wrapper .blog-text--universal-template pre,
.post-details-wrapper .blog-text--universal-template .wp-block-code,
.post-details-wrapper .blog-text--universal-template .wp-block-preformatted {
  background: rgba(12, 30, 33, 0.04);
  border: 1px solid rgba(20, 24, 33, 0.10);
  border-radius: 14px;
  padding: 16px 18px;
  overflow: auto;
  margin: 18px 0;
}

.post-details-wrapper .blog-text--universal-template pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

/* Tables */
.post-details-wrapper .blog-text--universal-template table,
.post-details-wrapper .blog-text--universal-template .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(20, 24, 33, 0.10);
  border-radius: 14px;
  overflow: hidden;
  margin: 18px 0;
  background: #fff;
}

.post-details-wrapper .blog-text--universal-template th,
.post-details-wrapper .blog-text--universal-template td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20, 24, 33, 0.08);
  border-right: 1px solid rgba(20, 24, 33, 0.08);
  vertical-align: top;
}

.post-details-wrapper .blog-text--universal-template tr:last-child td {
  border-bottom: 0;
}

.post-details-wrapper .blog-text--universal-template th:last-child,
.post-details-wrapper .blog-text--universal-template td:last-child {
  border-right: 0;
}

.post-details-wrapper .blog-text--universal-template th {
  background: var(--tj-color-theme-bg);
  color: var(--tj-color-heading-primary);
  font-weight: var(--tj-fw-sbold);
}

.post-details-wrapper .blog-text--universal-template .wp-block-table figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--tj-color-text-body-2);
}

/* Images, media, captions */
.post-details-wrapper .blog-text--universal-template img,
.post-details-wrapper .blog-text--universal-template video,
.post-details-wrapper .blog-text--universal-template iframe {
  max-width: 100%;
  height: auto;
}

.post-details-wrapper .blog-text--universal-template figure {
  margin: 18px 0;
}

.post-details-wrapper .blog-text--universal-template figcaption,
.post-details-wrapper .blog-text--universal-template .wp-caption-text {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tj-color-text-body-2);
}

.post-details-wrapper .blog-text--universal-template .wp-caption {
  max-width: 100%;
}

.post-details-wrapper .blog-text--universal-template .wp-caption img {
  border-radius: 14px;
}

.post-details-wrapper .blog-text--universal-template .wp-block-image img,
.post-details-wrapper .blog-text--universal-template img.size-full,
.post-details-wrapper .blog-text--universal-template img.size-large {
  border-radius: 14px;
}

/* Classic editor alignment helpers */
.post-details-wrapper .blog-text--universal-template .alignleft {
  float: left;
  margin: 6px 18px 12px 0;
  max-width: 50%;
}

.post-details-wrapper .blog-text--universal-template .alignright {
  float: right;
  margin: 6px 0 12px 18px;
  max-width: 50%;
}

.post-details-wrapper .blog-text--universal-template .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-details-wrapper .blog-text--universal-template::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 767px) {
  .post-details-wrapper .blog-text--universal-template .alignleft,
  .post-details-wrapper .blog-text--universal-template .alignright {
    float: none;
    margin: 0 0 14px 0;
    max-width: 100%;
  }
}

/* Gutenberg blocks */
.post-details-wrapper .blog-text--universal-template .wp-block-image,
.post-details-wrapper .blog-text--universal-template .wp-block-gallery,
.post-details-wrapper .blog-text--universal-template .wp-block-embed,
.post-details-wrapper .blog-text--universal-template .wp-block-video {
  margin: 18px 0;
}

.post-details-wrapper .blog-text--universal-template .wp-block-embed__wrapper iframe {
  width: 100%;
  border-radius: 14px;
}

.post-details-wrapper .blog-text--universal-template .wp-block-gallery {
  gap: 12px;
}

.post-details-wrapper .blog-text--universal-template .wp-block-gallery img {
  border-radius: 14px;
}

/* Buttons block */
.post-details-wrapper .blog-text--universal-template .wp-block-button__link {
  background: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--tj-ff-heading);
  font-weight: var(--tj-fw-sbold);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
}

.post-details-wrapper .blog-text--universal-template .wp-block-button__link:hover {
  background: var(--tj-color-theme-dark);
  transform: translateY(-1px);
}

/* Utility: slightly nicer lead paragraph if editor adds it */
.post-details-wrapper .blog-text--universal-template .has-drop-cap:first-letter {
  font-family: var(--tj-ff-heading);
}

/* ========== Contact page: "difference" section (scoped) ========== */
.tj-contact-diff .sub-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tj-ff-heading);
  font-size: 13px;
  font-weight: var(--tj-fw-sbold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tj-color-theme-primary);
  margin-bottom: 10px;
}

.tj-contact-diff h2 {
  margin: 0 0 14px 0;
}

.tj-contact-diff p {
  margin: 0 0 12px 0;
  color: var(--tj-color-text-body);
  line-height: 1.7;
}

.tj-contact-diff p:last-of-type {
  margin-bottom: 0;
}

.tj-contact-diff__cta {
  margin-top: 18px;
}

.tj-contact-diff__card {
  position: relative;
  border-radius: 18px;
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(30, 138, 138, 0.16) 0%, rgba(30, 138, 138, 0.05) 55%, rgba(255, 255, 255, 0) 100%),
    #fff;
  border: 1px solid rgba(20, 24, 33, 0.10);
  box-shadow: 0 20px 60px rgba(12, 30, 33, 0.08);
  overflow: hidden;
  padding: 22px;
}

.tj-contact-diff__card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 16px;
  pointer-events: none;
  background-image: url("../images/shape/pattern-3.svg");
  background-repeat: no-repeat;
  background-position: right -20px bottom -20px;
  background-size: 240px auto;
  opacity: 0.35;
}

.tj-contact-diff__badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tj-contact-diff__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 24, 33, 0.08);
  color: var(--tj-color-heading-primary);
  font-size: 15px;
  line-height: 1.4;
  backdrop-filter: blur(6px);
}

.tj-contact-diff__badge img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .tj-contact-diff__card {
    padding: 18px;
  }
}

@media (max-width: 575px) {
  .tj-contact-diff__card {
    padding: 14px;
  }
  .tj-contact-diff__card::after {
    inset: 14px;
    background-size: 200px auto;
  }
  .tj-contact-diff__badge {
    font-size: 13px;
  }
}

/* ========== Contact Form 7 — в стиле темы (страница Контакты) ========== */
.tj-contact-section-2 .contact-form .wpcf7 {
  margin: 0;
  padding: 0;
}

.tj-contact-section-2 .contact-form .wpcf7-form {
  margin: 0;
  padding: 0;
}

.tj-contact-section-2 .contact-form .wpcf7-form .row {
  margin-left: -12px;
  margin-right: -12px;
}

.tj-contact-section-2 .contact-form .wpcf7-form .form-input {
  margin-bottom: 27px;
  position: relative;
}

/* CF7 оборачивает поля в <p> — убираем отступы, чтобы высота строк была ровной */
.tj-contact-section-2 .contact-form .wpcf7-form .form-input p {
  margin: 0;
}

.tj-contact-section-2 .contact-form .wpcf7-form .cf-label {
  font-size: 16px;
  color: var(--tj-color-text-body-3);
  position: absolute;
  top: 10px;
  inset-inline-start: 0;
  pointer-events: none;
  transition: opacity 0.2s linear, visibility 0.2s linear;
}

.tj-contact-section-2 .contact-form .wpcf7-form .cf-label span {
  color: var(--tj-color-theme-primary);
}

.tj-contact-section-2 .contact-form .wpcf7-form .form-input:focus-within .cf-label {
  opacity: 0;
  visibility: hidden;
}

/* Когда поле заполнено — прячем лейбл (чтобы не накладывался на введённый текст) */
.tj-contact-section-2 .contact-form .wpcf7-form .form-input.has-value .cf-label {
  opacity: 0;
  visibility: hidden;
}

/* Select: лейбл выше, чтобы не накладывался на текст option */
.tj-contact-section-2 .contact-form .wpcf7-form .form-input--select .cf-label {
  top: -10px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.tj-contact-section-2 .contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.tj-contact-section-2 .contact-form .wpcf7-form-control {
  width: 100%;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  box-sizing: border-box;
}

/* Одинаковая высота и отступы у текстовых полей и select — нижняя черта строго на одном уровне (в т.ч. при валидации) */
.tj-contact-section-2 .contact-form .wpcf7-form input[type="text"],
.tj-contact-section-2 .contact-form .wpcf7-form input[type="email"],
.tj-contact-section-2 .contact-form .wpcf7-form input[type="tel"],
.tj-contact-section-2 .contact-form .wpcf7-form select.wpcf7-form-control {
  /* height: 52px; */
  min-height: 47px;
  padding: 11px 0;
  line-height: 1.4;
  font-size: 16px;
  border: none;
  border-bottom: 1px dashed var(--tj-color-border-1);
  background: transparent;
  color: var(--tj-color-text-body-3);
  vertical-align: middle;
}

.tj-contact-section-2 .contact-form .wpcf7-form select.wpcf7-form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  --cf7-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23141821' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-image: var(--cf7-select-arrow);
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 30px;
}

.tj-contact-section-2 .contact-form .wpcf7-form input[type="text"]:focus,
.tj-contact-section-2 .contact-form .wpcf7-form input[type="email"]:focus,
.tj-contact-section-2 .contact-form .wpcf7-form input[type="tel"]:focus,
.tj-contact-section-2 .contact-form .wpcf7-form select.wpcf7-form-control:focus {
  border-bottom-color: var(--tj-color-theme-dark);
  --cf7-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%231E8A8A' d='M6 4l5 5H1z'/%3E%3C/svg%3E");
  outline: none;
}

/* Select: стрелка красная при ошибке */
.tj-contact-section-2 .contact-form .wpcf7-form select.wpcf7-not-valid {
  --cf7-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23dc3545' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.tj-contact-section-2 .contact-form .wpcf7-form textarea.wpcf7-form-control {
  resize: vertical;
  min-height: 120px;
  padding: 16px 0 11px 0;
  border: none;
  border-bottom: 1px dashed var(--tj-color-border-1);
  background: transparent;
  color: var(--tj-color-text-body-3);
}

.tj-contact-section-2 .contact-form .submit-btn {
  margin-top: 0;
  margin-bottom: 0;
}

.tj-contact-section-2 .contact-form .submit-btn input[type="submit"].tj-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  min-height: 54px;
  padding: 7px 60px 7px 28px;
  background-color: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  font-size: 16px;
  font-weight: var(--tj-fw-sbold);
  line-height: 1.2;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.tj-contact-section-2 .contact-form .submit-btn input[type="submit"].tj-primary-btn:hover {
  background-color: var(--tj-color-theme-dark);
}

.tj-contact-section-2 .contact-form .submit-btn input[type="submit"].tj-primary-btn::after {
  content: "\e916";
  font-family: "bexon-icons";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tj-color-theme-dark);
  border-radius: 50%;
  font-size: 20px;
  color: var(--tj-color-common-white);
  transition: transform 0.3s ease;
}

.tj-contact-section-2 .contact-form .submit-btn input[type="submit"].tj-primary-btn:hover::after {
  transform: translateY(-50%) rotate(0);
}

.tj-contact-section-2 .contact-form .wpcf7-response-output {
  margin: 22px 0 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(20, 24, 33, 0.10);
  border-left: 4px solid rgba(20, 24, 33, 0.18);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tj-color-heading-primary);
  background: rgba(12, 30, 33, 0.03);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tj-contact-section-2 .contact-form .wpcf7-response-output::before {
  content: "\e929";
  font-family: "bexon-icons";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(20, 24, 33, 0.08);
  color: rgba(20, 24, 33, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.tj-contact-section-2 .contact-form .wpcf7-mail-sent-ok {
  background: rgba(30, 138, 138, 0.10);
  border-color: rgba(30, 138, 138, 0.22);
  border-left-color: rgba(30, 138, 138, 0.55);
}

.tj-contact-section-2 .contact-form .wpcf7-mail-sent-ok::before {
  content: "\e911";
  background: rgba(30, 138, 138, 0.14);
  color: rgba(30, 138, 138, 0.95);
}

.tj-contact-section-2 .contact-form .wpcf7-validation-errors,
.tj-contact-section-2 .contact-form .wpcf7-mail-sent-ng {
  background: rgba(220, 53, 69, 0.06);
  border-color: rgba(220, 53, 69, 0.18);
  border-left-color: rgba(220, 53, 69, 0.55);
}

.tj-contact-section-2 .contact-form .wpcf7-validation-errors::before,
.tj-contact-section-2 .contact-form .wpcf7-mail-sent-ng::before {
  content: "\e937";
  background: rgba(220, 53, 69, 0.10);
  color: rgba(220, 53, 69, 0.95);
}

.tj-contact-section-2 .contact-form .wpcf7-not-valid-tip {
  font-size: 13px;
  color: var(--tj-color-red-1, #dc3545);
  /* margin-top: 6px; */
}

.tj-contact-section-2 .contact-form .wpcf7-form .wpcf7-not-valid {
  border-bottom-color: var(--tj-color-red-1, #dc3545) !important;
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .tj-contact-section-2 .contact-form .submit-btn input[type="submit"].tj-primary-btn {
    width: 100%;
    padding-left: 20px;
    padding-right: 52px;
  }
}

.callback-form__row br{
  display: none;
}

.blog-images img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}