/* =============================================================================
   styles.css — контентные классы (подключается ядром автоматически)
   Типографика макета и утилиты для разметки страниц / визуального редактора
   ============================================================================= */

/* --- 5. Типографика (классы текста) --- */
.text-h1 {
	font-family: var(--font-family-base);
	font-size: 48px;
	font-weight: var(--font-weight-black);
	line-height: 1.1;
	color: var(--color-text-primary);
}

.text-h2-27-upper {
	font-family: var(--font-family-base);
	font-size: 28px;
	font-weight: var(--font-weight-extrabold);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--color-text-primary);
}

.text-h2-26-upper {
	font-family: var(--font-family-base);
	font-size: 26px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--color-text-primary);
}

.text-h2-24 {
	font-family: var(--font-family-base);
	font-size: 24px;
	font-weight: var(--font-weight-bold);
	line-height: 1.25;
	color: var(--color-text-primary);
}

.text-h2-24-upper {
	font-family: var(--font-family-base);
	font-size: 24px;
	font-weight: var(--font-weight-bold);
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--color-text-primary);
}

.text-h3-20 {
	font-family: var(--font-family-base);
	font-size: 20px;
	font-weight: var(--font-weight-semibold);
	line-height: 1.3;
	color: var(--color-text-dark);
}

.text-body-24 {
	font-family: var(--font-family-base);
	font-size: 24px;
	font-weight: var(--font-weight-regular);
	line-height: 1.35;
	color: var(--color-text-primary);
}

.text-video-caption {
	font-family: var(--font-family-base);
	font-size: 22px;
	font-weight: var(--font-weight-regular);
	line-height: 1.2;
	color: var(--color-text-on-primary);
}

.text-body-22-medium {
	font-family: var(--font-family-base);
	font-size: 22px;
	font-weight: var(--font-weight-medium);
	line-height: 1.35;
	color: var(--color-text-primary);
}

.text-body-18 {
	font-family: var(--font-family-base);
	font-size: 18px;
	font-weight: var(--font-weight-regular);
	line-height: 1.4;
	color: var(--color-text-primary);
}

.text-body-18-medium {
	font-family: var(--font-family-base);
	font-size: 18px;
	font-weight: var(--font-weight-medium);
	line-height: 1.35;
	color: var(--color-text-primary);
}

.text-body-18-bold {
	font-family: var(--font-family-base);
	font-size: 18px;
	font-weight: var(--font-weight-bold);
	line-height: 1.35;
	color: var(--color-text-primary);
}

.text-body-18-bold-upper {
	font-family: var(--font-family-base);
	font-size: 18px;
	font-weight: var(--font-weight-bold);
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--color-text-primary);
}

.text-body-16 {
	font-family: var(--font-family-base);
	font-size: 16px;
	font-weight: var(--font-weight-regular);
	line-height: 1.35;
	color: var(--color-text-primary);
}

.text-body-16-medium {
	font-family: var(--font-family-base);
	font-size: 16px;
	font-weight: var(--font-weight-medium);
	line-height: 1.35;
	color: var(--color-text-primary);
}

.text-body-16-bold {
	font-family: var(--font-family-base);
	font-size: 16px;
	font-weight: var(--font-weight-bold);
	line-height: 1.35;
	color: var(--color-text-primary);
}

.text-body-16-lh20 {
	font-family: var(--font-family-base);
	font-size: 16px;
	font-weight: var(--font-weight-regular);
	line-height: 20px;
	color: var(--color-text-primary);
}

.text-body-14 {
	font-family: var(--font-family-base);
	font-size: 14px;
	font-weight: var(--font-weight-regular);
	line-height: 1.35;
	color: var(--color-text-secondary);
}

.text-body-14-lh20 {
	font-family: var(--font-family-base);
	font-size: 14px;
	font-weight: var(--font-weight-regular);
	line-height: 20px;
	color: var(--color-text-secondary);
}

.text-body-14-medium {
	font-family: var(--font-family-base);
	font-size: 14px;
	font-weight: var(--font-weight-medium);
	line-height: 1.35;
	color: var(--color-text-primary);
}

.text-nav {
	font-family: var(--font-family-base);
	font-size: 14px;
	font-weight: var(--font-weight-medium);
	line-height: 12px;
	color: var(--color-text-primary);
}

.text-ui-button {
	font-family: var(--font-family-base);
	font-size: 16px;
	font-weight: var(--font-weight-semibold);
	line-height: 1.2;
}

.text-price {
	font-family: var(--font-family-base);
	font-size: 20px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	color: var(--color-text-primary);
}

.text-metric-value {
	font-family: var(--font-family-base);
	font-size: 36px;
	font-weight: var(--font-weight-medium);
	line-height: 1.1;
}

.text-metric-label {
	font-family: var(--font-family-base);
	font-size: 16px;
	font-weight: var(--font-weight-medium);
	line-height: 1.3;
}

.text-caption-12 {
	font-family: var(--font-family-base);
	font-size: 12px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
}

.text-step {
	font-family: var(--font-family-base);
	font-size: 12px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.text-badge {
	font-family: var(--font-family-base);
	font-size: 10px;
	font-weight: var(--font-weight-black);
	line-height: 1.2;
}

.text-section-eyebrow {
	font-family: var(--font-family-base);
	font-size: 26px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--color-brand-secondary);
}

.text-section-title {
	font-family: var(--font-family-base);
	font-size: 48px;
	font-weight: var(--font-weight-black);
	line-height: 1.15;
	color: var(--color-text-primary);
}

.text-footer-heading {
	font-family: var(--font-family-base);
	font-size: 22px;
	font-weight: var(--font-weight-medium);
	line-height: 1.2;
	color: var(--color-text-primary);
}

.text-footer-link {
	font-family: var(--font-family-base);
	font-size: 16px;
	font-weight: var(--font-weight-regular);
	line-height: 1.35;
	color: var(--color-text-footer-link);
}

.text-footer-brand {
	font-family: var(--font-family-base);
	font-size: 22px;
	font-weight: var(--font-weight-medium);
	line-height: 20px;
	color: var(--color-text-primary);
}

.text-footer-desc {
	font-family: var(--font-family-base);
	font-size: 14px;
	font-weight: var(--font-weight-regular);
	line-height: 20px;
	color: var(--color-text-primary);
}

.text-footer-phone {
	font-family: var(--font-family-base);
	font-size: 20px;
	font-weight: var(--font-weight-medium);
	line-height: 1.2;
	color: var(--color-text-primary);
}

.text-footer-phone a {
	color: inherit;
	text-decoration: none;
}

.text-footer-phone a:hover,
.text-footer-phone a:focus-visible {
	color: inherit;
	text-decoration: none;
}

.text-footer-email {
	font-family: var(--font-family-base);
	font-size: 18px;
	font-weight: var(--font-weight-medium);
	line-height: 1.2;
	color: var(--color-text-primary);
}

.text-footer-legal {
	font-family: var(--font-family-base);
	font-size: 14px;
	font-weight: var(--font-weight-regular);
	line-height: 20px;
	color: var(--color-text-primary);
}

@media (max-width: 991.98px) {
	.text-h1,
	.text-section-title {
		font-size: 36px;
	}

	.text-h2-27-upper {
		font-size: 22px;
	}

	.section__lead,
	.section-about__text,
	.cta-section__text,
	.section-categories__lead {
		font-size: 16px;
		line-height: 20px;
	}
}

@media (max-width: 575.98px) {
	.text-h1,
	.text-section-title {
		font-size: 28px;
	}

	.text-section-eyebrow {
		font-size: 14px;
	}
}

/* --- 6. Утилиты контента --- */
.text-white {
	color: var(--color-text-on-primary) !important;
}

.text-center {
	text-align: center;
}

.mb-0 {
	margin-bottom: 0 !important;
}

.mt-section {
	margin-top: var(--space-16);
}


/* --- Кнопки --- */
.btn-acrit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-button);
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast), opacity var(--transition-fast);
}

.btn-acrit:focus {
  outline: 2px solid var(--color-brand-secondary);
  outline-offset: 2px;
}

.btn-acrit--primary {
  background: var(--color-brand-primary);
  color: var(--color-text-on-primary);
}

.btn-acrit--primary:hover {
  background: #a81213;
  color: var(--color-text-on-primary);
}

.btn-acrit--secondary {
  background: var(--color-brand-secondary);
  color: var(--color-text-on-primary);
}

.btn-acrit--secondary:hover {
  background: var(--color-brand-secondary-hover);
  color: var(--color-text-on-primary);
}

.btn-acrit--ghost {
  background: var(--color-surface-button-muted);
  color: var(--color-text-primary);
}

.btn-acrit--ghost:hover {
  background: #cfcfcf;
  color: var(--color-text-primary);
}

/* /shop/ и старые вёрстки: зелёная CTA-ссылка */
a.gray-button,
.gray-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: 2px solid var(--color-brand-secondary);
  border-radius: var(--radius-button);
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  background: var(--color-brand-secondary);
  color: var(--color-text-on-primary);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

a.gray-button:hover,
a.gray-button:focus-visible,
.gray-button:hover {
  background: var(--color-brand-secondary-hover);
  border-color: var(--color-brand-secondary-hover);
  color: var(--color-text-on-primary);
  text-decoration: none;
}

.btn-acrit--support {
  min-width: 121px;
  min-height: 27px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  border: 1px solid var(--color-brand-secondary);
  background: transparent;
  color: var(--color-brand-secondary);
}

.btn-acrit--support:hover {
  background: color-mix(in srgb, var(--color-brand-secondary) 8%, transparent);
  color: var(--color-brand-secondary);
}

.btn-acrit--support-footer {
  min-height: 34px;
  padding: 6px var(--space-5);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  border-radius: 10px;
  border: 1px solid var(--color-brand-secondary);
  background: transparent;
  color: var(--color-brand-secondary);
}

.btn-acrit--support-footer:hover {
  background: color-mix(in srgb, var(--color-brand-secondary) 8%, transparent);
  color: var(--color-brand-secondary);
}

.btn-acrit--wide-primary {
  min-width: 242px;
}

.btn-acrit--wide-secondary {
  min-width: 161px;
}

.btn-acrit--block {
  width: 100%;
}

/* Текстовые страницы: /about/licenses/, FAQ export и аналоги */
.site-main__container section.text-page a:not(.btn-acrit):not(.btn),
.site-main__container section.text-page a:not(.btn-acrit):not(.btn):visited,
section.text-page.licenses-page a:not(.btn-acrit):not(.btn),
section.text-page.licenses-page a:not(.btn-acrit):not(.btn):visited,
section.text-page.faq_export a:not(.btn-acrit):not(.btn),
section.text-page.faq_export a:not(.btn-acrit):not(.btn):visited {
  color: var(--color-brand-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--font-weight-medium, 500);
  transition: color var(--transition-fast, 0.15s ease);
}

.site-main__container section.text-page a:not(.btn-acrit):not(.btn):hover,
.site-main__container section.text-page a:not(.btn-acrit):not(.btn):focus-visible,
section.text-page.licenses-page a:not(.btn-acrit):not(.btn):hover,
section.text-page.licenses-page a:not(.btn-acrit):not(.btn):focus-visible,
section.text-page.faq_export a:not(.btn-acrit):not(.btn):hover,
section.text-page.faq_export a:not(.btn-acrit):not(.btn):focus-visible {
  color: var(--color-brand-secondary-hover);
}

.site-main__container section.text-page .site-search a:not(.btn-acrit):not(.btn),
.site-main__container section.text-page .site-search a:not(.btn-acrit):not(.btn):visited,
section.text-page.site-search-page .site-search a:not(.btn-acrit):not(.btn),
section.text-page.site-search-page .site-search a:not(.btn-acrit):not(.btn):visited {
  text-decoration: none;
  text-underline-offset: unset;
  font-weight: inherit;
}

.site-main__container section.text-page .site-search a:not(.btn-acrit):not(.btn):hover,
.site-main__container section.text-page .site-search a:not(.btn-acrit):not(.btn):focus-visible,
section.text-page.site-search-page .site-search a:not(.btn-acrit):not(.btn):hover,
section.text-page.site-search-page .site-search a:not(.btn-acrit):not(.btn):focus-visible {
  text-decoration: none;
}

section.text-page ul:not(.faq-sections):not(.faq-sections__item-articles):not(.site-search__results),
section.text-page ol {
  padding-left: 1.25rem;
}

section.text-page.faq_export ul.faq-sections {
  padding-left: 0;
  margin-left: 0;
}

section.text-page.achievements ul.achievements-partners__grid {
  padding-left: 0;
  margin-left: 0;
}

/* --- Юридические страницы: политика ПДн, оферта --- */
.site-main__container section.text-page.privacy-policy,
section.text-page.privacy-policy {
  margin-bottom: var(--space-10);
  color: var(--color-text-primary);
  line-height: 1.6;
}

section.text-page.privacy-policy .meta {
  margin: 0 0 var(--space-6);
  font-size: 15px;
  color: var(--color-text-phone-hours);
}

section.text-page.privacy-policy h2 {
  margin: var(--space-8) 0 var(--space-4);
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--color-text-primary);
}

section.text-page.privacy-policy h2:first-of-type {
  margin-top: 0;
}

section.text-page.privacy-policy h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  color: var(--color-text-primary);
}

section.text-page.privacy-policy ul,
section.text-page.privacy-policy ol {
  margin: 0 0 var(--space-4);
}

section.text-page.privacy-policy p {
  margin: 0 0 var(--space-4);
}

section.text-page.privacy-policy .note {
  margin: var(--space-4) 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--color-brand-secondary);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--color-brand-secondary) 12%, #fff);
}

section.text-page.privacy-policy code {
  padding: 0 0.35em;
  border-radius: 4px;
  background: var(--color-surface-wizard);
  font-size: 0.92em;
}

section.text-page.privacy-policy hr {
  margin: var(--space-8) 0;
  border: 0;
  border-top: 1px solid var(--color-border-default);
}

section.text-page.privacy-policy .privacy-policy__table-scroll {
  overflow-x: auto;
  margin: var(--space-4) 0 var(--space-6);
  -webkit-overflow-scrolling: touch;
}

section.text-page.privacy-policy table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

section.text-page.privacy-policy thead th {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-default);
  background: var(--color-text-dark);
  color: var(--color-text-on-primary);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  vertical-align: top;
}

section.text-page.privacy-policy tbody td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-default);
  vertical-align: top;
}

section.text-page.privacy-policy tbody tr:nth-child(even) {
  background: var(--color-surface-footer);
}

@media (max-width: 767.98px) {
  section.text-page.privacy-policy table {
    font-size: 14px;
  }

  section.text-page.privacy-policy thead th,
  section.text-page.privacy-policy tbody td {
    padding: var(--space-2) var(--space-3);
  }
}

/* --- Корзина /personal/cart/ (bootstrap_v4 → токены шаблона) --- */
.site-main__container section.text-page.order_cart,
section.text-page.order_cart {
  font-family: var(--font-family-base);
  color: var(--color-text-primary);
}

section.text-page.order_cart .catalog-block-header {
  border-bottom-color: var(--color-brand-secondary);
  font-family: var(--font-family-base);
}

section.text-page.order_cart .basket-checkout-container {
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-card);
}

section.text-page.order_cart .basket-items-list-header-filter-item {
  color: var(--color-brand-secondary);
}

section.text-page.order_cart .basket-items-list-header-filter-item:hover {
  color: var(--color-brand-secondary-hover);
}

section.text-page.order_cart .basket-items-list-item-removed-block a,
section.text-page.order_cart .basket-item-info-name-link {
  color: var(--color-brand-secondary);
}

section.text-page.order_cart .basket-items-list-item-removed-block a:hover,
section.text-page.order_cart .basket-item-info-name-link:hover {
  color: var(--color-brand-secondary-hover);
}

section.text-page.order_cart .basket-checkout-block-btn .btn.basket-btn-checkout,
section.text-page.order_cart .btn-primary.basket-btn-checkout,
section.text-page.order_cart #basket-root .btn.btn-primary.basket-btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-button);
  background-color: var(--color-brand-secondary);
  border-color: var(--color-brand-secondary);
  color: var(--color-text-on-primary);
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

section.text-page.order_cart .basket-checkout-block-btn .btn.basket-btn-checkout:hover,
section.text-page.order_cart .basket-checkout-block-btn .btn.basket-btn-checkout:focus,
section.text-page.order_cart .basket-checkout-block-btn .btn.basket-btn-checkout:focus-visible,
section.text-page.order_cart .basket-checkout-block-btn .btn.basket-btn-checkout:active,
section.text-page.order_cart .btn-primary.basket-btn-checkout:hover,
section.text-page.order_cart .btn-primary.basket-btn-checkout:focus,
section.text-page.order_cart .btn-primary.basket-btn-checkout:focus-visible,
section.text-page.order_cart .btn-primary.basket-btn-checkout:active,
section.text-page.order_cart #basket-root .btn.btn-primary.basket-btn-checkout:hover,
section.text-page.order_cart #basket-root .btn.btn-primary.basket-btn-checkout:focus,
section.text-page.order_cart #basket-root .btn.btn-primary.basket-btn-checkout:focus-visible,
section.text-page.order_cart #basket-root .btn.btn-primary.basket-btn-checkout:active,
section.text-page.order_cart #basket-root .btn.btn-primary.basket-btn-checkout:focus:hover,
section.text-page.order_cart #basket-root .btn.btn-primary.basket-btn-checkout:focus:active {
  background-color: var(--color-brand-secondary-hover);
  border-color: var(--color-brand-secondary-hover);
  color: var(--color-text-on-primary);
  box-shadow: none;
  outline: none;
}

section.text-page.order_cart #basket-root .btn.btn-primary.basket-btn-checkout:focus:not(:hover):not(:active),
section.text-page.order_cart .basket-checkout-block-btn .btn.basket-btn-checkout:focus:not(:hover):not(:active) {
  background-color: var(--color-brand-secondary);
  border-color: var(--color-brand-secondary);
  color: var(--color-text-on-primary);
}

section.text-page.order_cart .basket-checkout-block-btn .btn.basket-btn-checkout:disabled,
section.text-page.order_cart .basket-checkout-block-btn .btn.basket-btn-checkout.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

section.text-page.order_cart .basket-btn-checkout {
  border-radius: var(--radius-button);
}

section.text-page.order_cart .basket-item-label-text,
section.text-page.order_cart .basket-item-label-ring {
  right: 0;
}

section.text-page.order_cart .basket-gift-item-select-input:checked + .basket-gift-item-select-btn-radio {
  border-color: var(--color-brand-secondary);
}

section.text-page.order_cart .text-muted .basket-coupon-text:after {
  border-right-color: var(--color-brand-secondary);
  border-bottom-color: var(--color-brand-secondary);
}

section.text-page.order_cart .bx-sbb-empty-cart-desc a {
  color: var(--color-brand-secondary);
  font-weight: var(--font-weight-semibold);
}

section.text-page.order_cart .bx-sbb-empty-cart-desc a:hover {
  color: var(--color-brand-secondary-hover);
}

section.text-page.order_cart .btn-primary:not(.basket-btn-checkout) {
  background: var(--color-brand-secondary);
  border-color: var(--color-brand-secondary);
  color: var(--color-text-on-primary);
  border-radius: var(--radius-button);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
}

section.text-page.order_cart .btn-primary:not(.basket-btn-checkout):hover,
section.text-page.order_cart .btn-primary:not(.basket-btn-checkout):focus,
section.text-page.order_cart .btn-primary:not(.basket-btn-checkout):focus-visible,
section.text-page.order_cart .btn-primary:not(.basket-btn-checkout):active,
section.text-page.order_cart #basket-root .btn.btn-primary:not(.basket-btn-checkout):hover,
section.text-page.order_cart #basket-root .btn.btn-primary:not(.basket-btn-checkout):focus,
section.text-page.order_cart #basket-root .btn.btn-primary:not(.basket-btn-checkout):active {
  background-color: var(--color-brand-secondary-hover);
  border-color: var(--color-brand-secondary-hover);
  color: var(--color-text-on-primary);
  box-shadow: none;
  outline: none;
}

/* --- Оформление заказа /personal/order/make/ --- */
.site-main__container section.text-page.order_make,
section.text-page.order_make {
  font-family: var(--font-family-base);
  color: var(--color-text-primary);
}

section.text-page.order_make .bx-soa-section.bx-step-completed {
  border-color: var(--color-brand-secondary);
}

section.text-page.order_make .bx-soa-section.bx-step-completed .bx-soa-section-title-count {
  background: var(--color-brand-secondary);
  border-color: var(--color-brand-secondary);
}

section.text-page.order_make .bx-soa-section.bx-selected {
  border-color: color-mix(in srgb, var(--color-brand-secondary) 35%, var(--color-border-default));
}

section.text-page.order_make .bx-soa-editstep,
section.text-page.order_make .bx-soa-editstep:hover {
  color: var(--color-brand-secondary);
  border-bottom-color: var(--color-brand-secondary);
}

section.text-page.order_make .bx-soa-cart-total-line.bx-soa-cart-total-line-highlighted {
  background-color: color-mix(in srgb, var(--color-brand-secondary) 18%, #fff);
}

section.text-page.order_make .bx-soa-more-btn .btn.btn-default,
section.text-page.order_make #bx-soa-orderSave .btn.btn-default,
section.text-page.order_make .bx-soa-cart-total-button-container .btn.btn-order-save,
section.text-page.order_make .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-button);
  background: var(--color-brand-secondary);
  border-color: var(--color-brand-secondary);
  color: var(--color-text-on-primary);
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

section.text-page.order_make .bx-soa-more-btn .btn.btn-default:hover,
section.text-page.order_make .bx-soa-more-btn .btn.btn-default:focus-visible,
section.text-page.order_make #bx-soa-orderSave .btn.btn-default:hover,
section.text-page.order_make #bx-soa-orderSave .btn.btn-default:focus-visible,
section.text-page.order_make .bx-soa-cart-total-button-container .btn.btn-order-save:hover,
section.text-page.order_make .bx-soa-cart-total-button-container .btn.btn-order-save:focus-visible,
section.text-page.order_make .btn-primary:hover,
section.text-page.order_make .btn-primary:focus-visible {
  background: var(--color-brand-secondary-hover);
  border-color: var(--color-brand-secondary-hover);
  color: var(--color-text-on-primary);
  box-shadow: none;
}

section.text-page.order_make .btn-outline-secondary {
  margin-right: 10px;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border-default);
  background: var(--color-surface-button-muted);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  transition: background-color var(--transition-fast);
}

section.text-page.order_make .btn-outline-secondary:hover,
section.text-page.order_make .btn-outline-secondary:focus-visible {
  background: #cfcfcf;
  border-color: var(--color-border-default);
  color: var(--color-text-primary);
}

section.text-page.order_make .btn-link {
  color: var(--color-brand-secondary);
  font-weight: var(--font-weight-medium);
}

section.text-page.order_make .btn-link:hover,
section.text-page.order_make .btn-link:focus-visible {
  color: var(--color-brand-secondary-hover);
}

section.text-page.order_make .bx-soa-customer-field {
  padding: 10px 0;
}

section.text-page.order_make .bx-soa-coupon-label {
  padding-bottom: 5px;
}

/* вложенная корзина на шаге оформления */
section.text-page.order_make .basket-checkout-block-btn .btn.basket-btn-checkout,
section.text-page.order_make .btn-primary.basket-btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-button);
  background: var(--color-brand-secondary);
  color: var(--color-text-on-primary);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
}

section.text-page.order_make .basket-checkout-block-btn .btn.basket-btn-checkout:hover,
section.text-page.order_make .btn-primary.basket-btn-checkout:hover {
  background: var(--color-brand-secondary-hover);
  color: var(--color-text-on-primary);
}

/* поля ввода — корзина и оформление заказа */
section.text-page.order_cart .form-control,
section.text-page.order_make .form-control,
section.text-page.order_cart .basket-item-amount-filed,
section.text-page.order_make .basket-item-amount-filed,
section.text-page.order_cart .bx-soa-coupon-input input[type="text"].form-control,
section.text-page.order_make .bx-soa-coupon-input input[type="text"].form-control {
  border-color: var(--color-brand-secondary);
  border-radius: var(--radius-button);
  font-family: var(--font-family-base);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

section.text-page.order_cart .form-control:focus,
section.text-page.order_cart .form-control:focus-visible,
section.text-page.order_make .form-control:focus,
section.text-page.order_make .form-control:focus-visible,
section.text-page.order_cart .basket-item-amount-filed:focus,
section.text-page.order_make .basket-item-amount-filed:hover,
section.text-page.order_make .basket-item-amount-filed:focus,
section.text-page.order_cart .basket-item-amount-filed:hover {
  border-color: var(--color-brand-secondary-hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-secondary) 22%, transparent);
  outline: 2px solid var(--color-brand-secondary);
  outline-offset: 2px;
}

section.text-page.order_make #bx-soa-order-form .form-check-input:checked {
  background-color: var(--color-brand-secondary);
  border-color: var(--color-brand-secondary);
  accent-color: var(--color-brand-secondary);
}

section.text-page.order_make .bx-sls .form-control.dropdown-block,
section.text-page.order_make .bx-slst .form-control.dropdown-block {
  border-color: var(--color-brand-secondary);
  border-radius: var(--radius-button);
}

section.text-page.order_make .bx-sls .form-control.dropdown-block:focus-within,
section.text-page.order_make .bx-slst .form-control.dropdown-block:focus-within,
section.text-page.order_make .bx-sls .form-control.dropdown-block.bx-active,
section.text-page.order_make .bx-slst .form-control.dropdown-block.bx-active {
  border-color: var(--color-brand-secondary-hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-secondary) 22%, transparent);
}

section.text-page.order_cart .has-error .form-control,
section.text-page.order_make .has-error .form-control,
section.text-page.order_make .has-error .bx-sls .form-control.dropdown-block,
section.text-page.order_make .has-error .bx-slst .form-control.dropdown-block {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-primary) 18%, transparent);
}

/* /personal/profile/ — те же поля, что в order_make */
section.text-page.user_profile .form-control,
section.text-page.user_profile textarea.form-control,
section.text-page.user_profile select.form-control {
  border-color: var(--color-brand-secondary);
  border-radius: var(--radius-button);
  font-family: var(--font-family-base);
  color: var(--color-text-primary);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

section.text-page.user_profile .form-control:focus,
section.text-page.user_profile select.form-control:focus {
  border-color: var(--color-brand-secondary-hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-secondary) 22%, transparent);
  outline: 0;
}

section.text-page.user_profile .btn.btn-primary {
  border-color: var(--color-brand-secondary);
  background: var(--color-brand-secondary);
  color: var(--color-text-on-primary);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-button);
}

section.text-page.user_profile .btn.btn-primary:hover,
section.text-page.user_profile .btn.btn-primary:focus {
  border-color: var(--color-brand-secondary-hover);
  background: var(--color-brand-secondary-hover);
  color: var(--color-text-on-primary);
  box-shadow: none;
}

/* --- Мастер-классы /master-class/ --- */
section.text-page.master-class {
  margin-bottom: var(--space-10);
  color: var(--color-text-primary);
}

section.text-page.master-class .master-class-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

section.text-page.master-class .master-class-card {
  display: flex;
  align-items: stretch;
  gap: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--color-border-light, #e8e8e8);
  border-radius: var(--radius-card, 12px);
  background: var(--color-surface-card, #fff);
}

section.text-page.master-class a.master-class-card__media,
section.text-page.master-class .master-class-card__media {
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-image, 8px);
  overflow: hidden;
  background: var(--color-surface-muted, #f3f3f3);
}

section.text-page.master-class .master-class-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

section.text-page.master-class .master-class-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section.text-page.master-class .master-class-card__title {
  margin: 0 0 var(--space-3);
}

section.text-page.master-class .master-class-card__title a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: inherit;
}

section.text-page.master-class .master-class-card__title a:hover,
section.text-page.master-class .master-class-card__title a:focus-visible {
  color: var(--color-brand-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

section.text-page.master-class .master-class-card__preview {
  color: var(--color-text-muted, #656565);
}

section.text-page.master-class .master-class-pager {
  margin-top: var(--space-8);
}

section.text-page.master-class .master-class-detail__main {
  max-width: 100%;
}

section.text-page.master-class .news-detail {
  color: var(--color-text-primary);
  line-height: 1.6;
}

section.text-page.master-class .news-detail .detail_picture {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-image, 8px);
  margin-bottom: var(--space-4);
}

section.text-page.master-class .news-detail img.right {
  float: right;
  margin: 0 0 var(--space-4) var(--space-5);
  max-width: min(50%, 320px);
  height: auto;
  border-radius: var(--radius-image, 8px);
}

section.text-page.master-class .news-detail .video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: var(--space-5) 0;
  border-radius: var(--radius-image, 8px);
  overflow: hidden;
}

section.text-page.master-class .news-detail .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

section.text-page.master-class .news-detail .b24-form {
  padding-top: var(--space-8);
}

@media (max-width: 768px) {
  section.text-page.master-class .master-class-card {
    flex-direction: column;
    align-items: stretch;
  }

  section.text-page.master-class a.master-class-card__media,
  section.text-page.master-class .master-class-card__media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  section.text-page.master-class .news-detail img.right {
    float: none;
    max-width: 100%;
    margin: var(--space-4) 0;
  }
}
