#barto-article,
    #barto-article * {
      box-sizing: border-box;
    }

    #barto-article {
      --ba-ink: #173746;
      --ba-ink-soft: #496a76;
      --ba-blue: #347fa6;
      --ba-blue-dark: #215f83;
      --ba-blue-light: #e9f5fb;
      --ba-pale: #f4fafd;
      --ba-white: #ffffff;
      --ba-line: rgba(30, 86, 116, 0.14);
      --ba-shadow: 0 26px 72px rgba(25, 80, 108, 0.15);
      --ba-shadow-soft: 0 17px 46px rgba(25, 80, 108, 0.10);
      --ba-container: 1280px;
      width: 100%;
      color: var(--ba-ink);
      background: #ffffff;
      font-family: "Manrope", Arial, sans-serif;
      font-size: 16px;
      line-height: 1.7;
    }

    #barto-article a {
      color: inherit;
      text-decoration: none;
    }

    #barto-article img {
      display: block;
      max-width: 100%;
    }

    #barto-article button,
    #barto-article input,
    #barto-article textarea,
    #barto-article select {
      font: inherit;
    }

    #barto-article button {
      cursor: pointer;
    }

    #barto-article h1,
    #barto-article h2,
    #barto-article h3,
    #barto-article h4,
    #barto-article p,
    #barto-article figure,
    #barto-article ul,
    #barto-article ol {
      margin-top: 0;
    }

    #barto-article h1,
    #barto-article h2 {
      color: var(--ba-ink);
      font-family: "Prata", Georgia, serif;
      font-weight: 500;
      letter-spacing: -0.025em;
    }

    #barto-article h1 {
      margin-bottom: 26px;
      font-size: clamp(40px, 5vw, 60px);
      line-height: 1.12;
    }

    #barto-article h2 {
      margin-bottom: 22px;
      font-size: clamp(32px, 3.2vw, 44px);
      line-height: 1.18;
    }

    #barto-article h3 {
      margin-bottom: 14px;
      color: var(--ba-ink);
      font-size: 25px;
      font-weight: 900;
      line-height: 1.35;
      letter-spacing: -0.018em;
    }

    #barto-article h4 {
      margin-bottom: 12px;
      font-size: 18px;
      line-height: 1.4;
    }

    #barto-article p,
    #barto-article li,
    #barto-article small {
      font-size: 16px;
      line-height: 1.72;
    }

    #barto-article p {
      color: var(--ba-ink-soft);
    }

    #barto-article .ba-container {
      width: min(calc(100% - 40px), var(--ba-container));
      margin-inline: auto;
    }

    #barto-article .ba-break-line {
      display: block;
    }

    #barto-article .ba-thin-arrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      font-family: Arial, sans-serif;
      font-size: 20px;
      line-height: 1;
      transition: transform .25s ease;
    }

    #barto-article a:hover .ba-thin-arrow,
    #barto-article button:hover .ba-thin-arrow {
      transform: translateX(4px);
    }

    /* BUTTONS */
    #barto-article .ba-btn {
      min-height: 54px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 11px;
      padding: 13px 25px;
      border: 1px solid transparent;
      border-radius: 999px;
      font-size: 16px;
      font-weight: 800;
      line-height: 1.2;
      white-space: nowrap;
      transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    }

    #barto-article .ba-btn:hover {
      transform: translateY(-2px);
    }

    #barto-article .ba-btn-primary {
      color: #ffffff;
      background:
        radial-gradient(circle at 25% 0%, rgba(255,255,255,.24), transparent 34%),
        linear-gradient(135deg, #4da5cd 0%, #3386ad 48%, #226488 100%);
      box-shadow: 0 15px 34px rgba(42, 121, 159, .28);
    }

    #barto-article .ba-btn-light {
      color: var(--ba-ink);
      border-color: rgba(48,122,159,.18);
      background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(240,248,253,.92));
      box-shadow: 0 9px 25px rgba(38,101,132,.07);
    }

    /* LOGO + MAX */
    #barto-article .ba-brand {
      width: 225px;
      min-width: 225px;
      height: 58px;
      display: block;
      flex: 0 0 225px;
      overflow: hidden;
    }

    #barto-article .ba-brand-logo {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: left center;
    }

    #barto-article .ba-max-mark {
      width: 28px;
      height: 28px;
      display: inline-block;
      flex: 0 0 28px;
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
    }

    #barto-article .ba-max-mark.is-white {
      background-image: url("https://4.web-ekonom.ru/wp-content/uploads/2026/07/max012.webp");
    }

    #barto-article .ba-max-mark.is-blue {
      background-image: url("https://4.web-ekonom.ru/wp-content/uploads/2026/07/max_messenger_symbol_3d.webp");
    }

    #barto-article .ba-max-color {
      width: 32px;
      height: 32px;
      display: block;
      object-fit: contain;
      border-radius: 9px;
      flex: 0 0 32px;
    }

    /* TOPBAR */
    #barto-article .ba-topbar {
      color: rgba(255,255,255,.96);
      background:
        radial-gradient(circle at 14% -60%, rgba(112,190,225,.3), transparent 42%),
        linear-gradient(100deg, #173e55 0%, #245f7c 52%, #1b4963 100%);
      font-size: 15px;
    }

    #barto-article .ba-topbar-inner {
      min-height: 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding-top: 10px;
      padding-bottom: 10px;
    }

    #barto-article .ba-topbar-left,
    #barto-article .ba-topbar-right {
      display: flex;
      align-items: center;
      gap: 22px;
    }

    #barto-article .ba-topbar a,
    #barto-article .ba-topbar span {
      font-size: 15px;
      line-height: 1.45;
    }

    #barto-article .ba-topbar-note {
      opacity: .76;
    }

    #barto-article .ba-topbar-phone {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      white-space: nowrap;
    }

    #barto-article .ba-social-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    #barto-article .ba-social-link {
      width: 27px;
      height: 27px;
      display: grid;
      place-items: center;
      color: #ffffff;
    }

    #barto-article .ba-social-link i {
      color: #ffffff;
      font-size: 21px;
    }

    #barto-article .ba-topbar .ba-max-mark {
      width: 23px;
      height: 23px;
      flex-basis: 23px;
    }

    /* HEADER */
    #barto-article .ba-header {
      position: sticky;
      z-index: 100;
      top: 0;
      border-bottom: 1px solid rgba(33,95,131,.08);
      background: linear-gradient(115deg, rgba(255,255,255,.98), rgba(247,252,255,.96));
      box-shadow: 0 8px 28px rgba(31,86,112,.05);
      backdrop-filter: blur(18px);
    }

    #barto-article .ba-header-inner {
      min-height: 82px;
      display: grid;
      grid-template-columns: 290px minmax(0,1fr) 165px;
      align-items: center;
      gap: 18px;
    }

    #barto-article .ba-brand-side {
      width: 290px;
      min-width: 290px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    #barto-article .ba-menu-btn {
      width: 42px;
      height: 42px;
      min-width: 42px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 0;
      color: var(--ba-blue);
      background: transparent;
      font-size: 22px;
    }

    #barto-article .ba-nav {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(10px, 1.05vw, 18px);
    }

    #barto-article .ba-nav > a {
      position: relative;
      padding: 28px 0 26px;
      color: #294954;
      font-size: 15px;
      font-weight: 800;
      line-height: 1.3;
      white-space: nowrap;
    }

    #barto-article .ba-nav > a::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 20px;
      left: 0;
      height: 2px;
      background: var(--ba-blue);
      transform: scaleX(0);
      transition: transform .25s ease;
    }

    #barto-article .ba-nav > a:hover::after,
    #barto-article .ba-nav > a.is-active::after {
      transform: scaleX(1);
    }

    #barto-article .ba-header-actions {
      width: 165px;
      display: flex;
      justify-content: flex-end;
    }

    #barto-article .ba-header-actions .ba-btn {
      width: 165px;
      min-height: 50px;
      padding: 12px 18px;
    }

    /* ARTICLE HERO */
    #barto-article .ba-article-hero {
      position: relative;
      overflow: hidden;
      padding: 80px 0 74px;
      background:
        radial-gradient(circle at 88% 8%, rgba(164,216,241,.34), transparent 31%),
        radial-gradient(circle at 6% 16%, rgba(129,203,235,.24), transparent 27%),
        linear-gradient(135deg, #f3fbff 0%, #ffffff 52%, #edf8fd 100%);
    }

    #barto-article .ba-article-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: .35;
      background-image:
        linear-gradient(rgba(52,127,166,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52,127,166,.045) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: linear-gradient(to right, #000, transparent 78%);
    }

    #barto-article .ba-breadcrumbs {
      position: relative;
      z-index: 2;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 9px;
      margin-bottom: 28px;
      color: #607b86;
      font-size: 15px;
      font-weight: 700;
    }

    #barto-article .ba-breadcrumbs a {
      color: var(--ba-blue-dark);
    }

    #barto-article .ba-hero-grid {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: minmax(0, 1.18fr) minmax(330px, .58fr);
      align-items: end;
      gap: clamp(44px, 6vw, 84px);
    }

    #barto-article .ba-hero-copy {
      max-width: 890px;
    }

    #barto-article .ba-kicker {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 18px;
      padding: 8px 13px;
      border: 1px solid rgba(52,127,166,.16);
      border-radius: 999px;
      color: var(--ba-blue-dark);
      background: rgba(255,255,255,.74);
      font-size: 15px;
      font-weight: 800;
      box-shadow: 0 10px 26px rgba(38,101,132,.06);
    }

    #barto-article .ba-hero-lead {
      max-width: 820px;
      margin-bottom: 0;
      color: var(--ba-ink-soft);
      font-size: 19px;
      line-height: 1.75;
    }

    #barto-article .ba-hero-summary {
      padding: 26px;
      border: 1px solid rgba(39,107,140,.14);
      border-radius: 26px;
      background: rgba(255,255,255,.94);
      box-shadow: var(--ba-shadow-soft);
      backdrop-filter: blur(16px);
    }

    #barto-article .ba-summary-label {
      display: block;
      margin-bottom: 13px;
      color: #758d97;
      font-size: 14px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    #barto-article .ba-cycle-row {
      display: grid;
      grid-template-columns: 78px minmax(0,1fr);
      align-items: center;
      gap: 15px;
      padding: 16px 0;
      border-top: 1px solid var(--ba-line);
    }

    #barto-article .ba-cycle-row:first-of-type {
      border-top: 0;
      padding-top: 0;
    }

    #barto-article .ba-cycle-row:last-child {
      padding-bottom: 0;
    }

    #barto-article .ba-cycle-day {
      min-height: 58px;
      display: grid;
      place-items: center;
      padding: 8px;
      border-radius: 18px;
      color: var(--ba-blue-dark);
      background: linear-gradient(145deg,#edf8fd,#d8edf7);
      font-family: "Prata", Georgia, serif;
      font-size: 19px;
      line-height: 1.1;
      text-align: center;
    }

    #barto-article .ba-cycle-row b {
      display: block;
      margin-bottom: 3px;
      color: var(--ba-ink);
      font-size: 16px;
    }

    #barto-article .ba-cycle-row span:not(.ba-cycle-day) {
      display: block;
      color: #607b86;
      font-size: 15px;
      line-height: 1.5;
    }

    /* ARTICLE LAYOUT */
    #barto-article .ba-article-section {
      position: relative;
      padding: 76px 0 100px;
      background:
        radial-gradient(circle at 92% 9%, rgba(184,224,244,.18), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fcfe 100%);
    }

    #barto-article .ba-article-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 320px;
      align-items: start;
      gap: clamp(46px, 6vw, 84px);
    }

    #barto-article .ba-article-body {
      min-width: 0;
      max-width: 880px;
    }

    #barto-article .ba-article-body > p,
    #barto-article .ba-content-block > p,
    #barto-article .ba-content-block li {
      color: #345866;
      font-size: 18px;
      line-height: 1.8;
    }

    #barto-article .ba-article-body > p,
    #barto-article .ba-content-block > p {
      margin-bottom: 22px;
    }

    #barto-article .ba-intro {
      margin-bottom: 34px;
      padding: 30px 32px;
      border: 1px solid rgba(39,107,140,.13);
      border-radius: 26px;
      background: #ffffff;
      box-shadow: 0 18px 48px rgba(29,88,116,.08);
    }

    #barto-article .ba-intro p:last-child {
      margin-bottom: 0;
    }

    #barto-article .ba-intro strong {
      color: var(--ba-ink);
    }

    #barto-article .ba-key-answer {
      position: relative;
      margin: 0 0 46px;
      padding: 30px 34px 30px 92px;
      overflow: hidden;
      border-radius: 27px;
      color: #ffffff;
      background:
        radial-gradient(circle at 92% 0%, rgba(113,195,229,.24), transparent 35%),
        linear-gradient(138deg, #203f52 0%, #2b5367 46%, #356779 72%, #1e4053 100%);
      box-shadow: 0 28px 70px rgba(20,64,86,.19);
    }

    #barto-article .ba-key-answer::before {
      content: "!";
      position: absolute;
      left: 28px;
      top: 29px;
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.22);
      border-radius: 15px;
      color: #ffffff;
      background: rgba(255,255,255,.10);
      font-family: "Prata", Georgia, serif;
      font-size: 24px;
    }

    #barto-article .ba-key-answer h2 {
      margin-bottom: 12px;
      color: #ffffff;
      font-size: 31px;
    }

    #barto-article .ba-key-answer p {
      margin-bottom: 0;
      color: rgba(255,255,255,.82);
      font-size: 18px;
      line-height: 1.72;
    }

    #barto-article .ba-content-block {
      scroll-margin-top: 28px;
      margin-bottom: 54px;
      padding-bottom: 52px;
      border-bottom: 1px solid var(--ba-line);
    }

    #barto-article .ba-content-block:last-of-type {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: 0;
    }

    #barto-article .ba-section-head {
      display: grid;
      grid-template-columns: 64px minmax(0,1fr);
      align-items: start;
      gap: 18px;
      margin-bottom: 22px;
    }

    #barto-article .ba-section-no {
      width: 64px;
      height: 64px;
      display: grid;
      place-items: center;
      border-radius: 20px;
      color: var(--ba-blue);
      background: linear-gradient(145deg,#edf8fd,#d8edf7);
      font-family: "Prata", Georgia, serif;
      font-size: 23px;
      box-shadow: 0 12px 30px rgba(38,101,132,.08);
    }

    #barto-article .ba-section-head h2 {
      margin: 4px 0 0;
      font-size: clamp(30px, 3vw, 40px);
    }

    #barto-article .ba-article-list {
      margin: 4px 0 26px;
      padding-left: 24px;
    }

    #barto-article .ba-article-list li {
      margin-bottom: 14px;
      padding-left: 7px;
    }

    #barto-article .ba-article-list li::marker {
      color: var(--ba-blue);
    }

    #barto-article .ba-figure {
      margin: 30px 0 36px;
      overflow: hidden;
      border: 1px solid rgba(39,107,140,.14);
      border-radius: 28px;
      background: #ffffff;
      box-shadow: 0 22px 58px rgba(29,88,116,.11);
    }

    #barto-article .ba-figure-link {
      position: relative;
      display: block;
      padding: 22px;
      background:
        radial-gradient(circle at 85% 8%, rgba(164,216,241,.24), transparent 26%),
        linear-gradient(145deg, #f7fcff 0%, #eef8fc 100%);
    }

    #barto-article .ba-figure-link::after {
      content: "Открыть изображение";
      position: absolute;
      right: 34px;
      bottom: 34px;
      padding: 9px 13px;
      border-radius: 999px;
      color: #ffffff;
      background: rgba(23,55,70,.82);
      font-size: 14px;
      font-weight: 800;
      opacity: 0;
      transform: translateY(5px);
      transition: opacity .25s ease, transform .25s ease;
      backdrop-filter: blur(10px);
    }

    #barto-article .ba-figure:hover .ba-figure-link::after {
      opacity: 1;
      transform: translateY(0);
    }

    #barto-article .ba-figure img {
      width: 100%;
      max-height: 620px;
      object-fit: contain;
      object-position: center;
      border-radius: 18px;
      background: #dceaf0;
    }

    #barto-article .ba-figure figcaption {
      padding: 20px 24px 23px;
      color: #607b86;
      font-size: 15px;
      font-style: italic;
      line-height: 1.65;
    }

    #barto-article .ba-note {
      margin: 28px 0;
      padding: 24px 26px;
      border-left: 4px solid var(--ba-blue);
      border-radius: 0 20px 20px 0;
      background: linear-gradient(135deg,#f3faff,#eaf6fb);
    }

    #barto-article .ba-note p {
      margin-bottom: 0;
      color: #345866;
      font-size: 17px;
    }

    #barto-article .ba-purpose-grid {
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: 16px;
      margin: 28px 0 30px;
    }

    #barto-article .ba-purpose-card {
      min-height: 148px;
      padding: 24px;
      border: 1px solid rgba(39,107,140,.13);
      border-radius: 22px;
      background: linear-gradient(145deg,#ffffff,#f3f9fd);
      box-shadow: 0 13px 34px rgba(29,87,115,.06);
    }

    #barto-article .ba-purpose-card i {
      margin-bottom: 16px;
      color: var(--ba-blue);
      font-size: 24px;
    }

    #barto-article .ba-purpose-card b {
      display: block;
      margin-bottom: 7px;
      color: var(--ba-ink);
      font-size: 17px;
      line-height: 1.45;
    }

    #barto-article .ba-purpose-card span {
      display: block;
      color: #607b86;
      font-size: 15px;
      line-height: 1.55;
    }

    #barto-article .ba-final-recommendation {
      margin-top: 42px;
      padding: 34px;
      border-radius: 28px;
      color: #ffffff;
      background:
        radial-gradient(circle at 90% 10%, rgba(104,190,225,.22), transparent 30%),
        linear-gradient(140deg,#173e55 0%,#225b76 52%,#12354a 100%);
      box-shadow: 0 28px 72px rgba(17,57,77,.23);
    }

    #barto-article .ba-final-recommendation h2,
    #barto-article .ba-final-recommendation p,
    #barto-article .ba-final-recommendation strong {
      color: #ffffff;
    }

    #barto-article .ba-final-recommendation h2 {
      font-size: 34px;
    }

    #barto-article .ba-final-recommendation p {
      margin-bottom: 0;
      color: rgba(255,255,255,.84);
      font-size: 18px;
    }

    #barto-article .ba-author-box {
      margin-top: 44px;
      padding: 30px;
      border: 1px solid rgba(39,107,140,.14);
      border-radius: 26px;
      background: #ffffff;
      box-shadow: var(--ba-shadow-soft);
      text-align: center;
    }

    #barto-article .ba-author-box p {
      margin-bottom: 8px;
    }

    #barto-article .ba-author-box p:last-child {
      margin-bottom: 0;
    }

    #barto-article .ba-author-box strong {
      color: var(--ba-ink);
    }

    /* ARTICLE SIDEBAR */
    #barto-article .ba-sidebar {
      position: relative;
      top: auto;
      align-self: start;
      height: auto;
      min-height: 0;
      max-height: none;
      display: grid;
      grid-template-rows: auto auto;
      gap: 18px;
      padding: 0;
      overflow: visible;
      border: 0;
      background: transparent;
      box-shadow: none;
      will-change: transform;
      transform: translate3d(0, var(--ba-sidebar-shift, 0px), 0);
    }

    /*
     * Небольшое содержание занимает только собственную высоту.
     * Прокрутка появляется лишь у длинного списка (7 и более пунктов).
     */
    #barto-article .ba-toc-card {
      min-height: 0;
      height: auto;
      overflow: visible;
    }

    #barto-article .ba-toc-card.is-scrollable {
      max-height: calc(100vh - 330px);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    #barto-article .ba-toc-card.is-scrollable::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
    }

    #barto-article .ba-sidebar.no-toc {
      grid-template-rows: auto;
    }

    #barto-article .ba-sidebar > .ba-sidebar-cta {
      position: relative;
      flex: none;
      overflow: visible;
    }

    #barto-article .ba-sidebar-card {
      padding: 26px;
      border: 1px solid rgba(43,111,145,.14);
      border-radius: 26px;
      background: linear-gradient(145deg,#ffffff,#eef8fc);
      box-shadow: 0 20px 52px rgba(27,85,113,.10);
    }

    #barto-article .ba-sidebar-card h3 {
      margin-bottom: 17px;
      font-family: "Prata", Georgia, serif;
      font-size: 25px;
      font-weight: 500;
    }

    #barto-article .ba-toc {
      display: grid;
      gap: 5px;
    }

    #barto-article .ba-toc a {
      display: grid;
      grid-template-columns: 25px minmax(0,1fr);
      gap: 10px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(16,47,56,.075);
      color: var(--ba-ink);
      font-size: 15px;
      font-weight: 750;
      line-height: 1.45;
      transition: color .2s ease, transform .2s ease;
    }

    #barto-article .ba-toc a:last-child {
      border-bottom: 0;
    }

    #barto-article .ba-toc a:hover {
      color: var(--ba-blue);
      transform: translateX(3px);
    }

    #barto-article .ba-toc span {
      color: var(--ba-blue);
      font-family: "Prata", Georgia, serif;
      font-size: 15px;
    }

    #barto-article .ba-sidebar-cta {
      color: #ffffff;
      background:
        radial-gradient(circle at 88% 8%, rgba(101,184,218,.2), transparent 28%),
        linear-gradient(135deg,#173e55 0%,#225a75 52%,#15394f 100%);
    }

    #barto-article .ba-sidebar-cta h3,
    #barto-article .ba-sidebar-cta p {
      color: #ffffff;
    }

    #barto-article .ba-sidebar-cta p {
      color: rgba(255,255,255,.74);
    }

    #barto-article .ba-sidebar-cta .ba-btn {
      width: 100%;
      margin-top: 4px;
    }



    /* FOOTER */
    #barto-article .ba-footer {
      position: relative;
      z-index: 80;
      padding: 68px 0 27px;
      color: rgba(255,255,255,.82);
      background: linear-gradient(135deg,#173e55 0%,#225a75 52%,#15394f 100%);
      isolation: isolate;
      overflow: visible;
      pointer-events: auto;
    }

    #barto-article .ba-footer-grid {
      display: grid;
      grid-template-columns: minmax(270px,1.2fr) minmax(150px,.72fr) minmax(170px,.78fr) minmax(245px,1fr);
      align-items: start;
      gap: clamp(28px,4vw,52px);
      padding-bottom: 45px;
    }

    #barto-article .ba-footer-logo {
      width: 245px;
      height: 62px;
      display: block;
    }

    #barto-article .ba-footer-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: left center;
      filter: brightness(0) invert(1);
    }

    #barto-article .ba-footer p {
      max-width: 440px;
      margin: 22px 0 0;
      color: rgba(255,255,255,.64);
    }

    #barto-article .ba-footer h4 {
      margin-bottom: 17px;
      color: #ffffff;
      font-size: 16px;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    #barto-article .ba-footer-links {
      display: grid;
      gap: 10px;
    }

    #barto-article .ba-footer-links a {
      min-height: 28px;
      display: inline-flex;
      align-items: center;
      width: fit-content;
      color: rgba(255,255,255,.74);
      font-size: 16px;
      transition: color .2s ease, transform .2s ease;
    }

    #barto-article .ba-footer-links a:hover {
      color: #ffffff;
      transform: translateX(3px);
    }

    #barto-article .ba-footer-contacts {
      margin: 0;
      font-style: normal;
    }

    #barto-article .ba-footer-contact-links a {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,.88);
    }

    #barto-article .ba-footer-contact-links a i {
      width: 18px;
      color: #d7f1fb;
      text-align: center;
      font-size: 17px;
    }

    #barto-article .ba-footer-contact-links .ba-max-mark {
      width: 18px;
      height: 18px;
      flex-basis: 18px;
    }

    #barto-article .ba-footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 25px;
      padding-top: 23px;
      border-top: 1px solid rgba(255,255,255,.1);
      color: rgba(255,255,255,.58);
      font-size: 15px;
    }

    #barto-article .ba-footer-bottom a {
      color: rgba(255,255,255,.72);
      font-size: 15px;
    }

    /* FLOAT CONTACTS */
    #barto-article .ba-float-wrap {
      position: fixed;
      z-index: 150;
      right: 22px;
      bottom: 22px;
      display: grid;
      justify-items: end;
      gap: 12px;
      pointer-events: none;
    }

    #barto-article .ba-float-menu {
      width: min(620px,calc(100vw - 30px));
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: 10px;
      padding: 14px;
      visibility: hidden;
      opacity: 0;
      border-radius: 22px;
      background: rgba(255,255,255,.98);
      box-shadow: 0 22px 60px rgba(7,46,53,.22);
      transform: translateY(12px) scale(.97);
      transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
      pointer-events: none;
    }

    #barto-article .ba-float-wrap.is-open .ba-float-menu {
      visibility: visible;
      opacity: 1;
      transform: none;
      pointer-events: auto;
    }

    #barto-article .ba-float-item {
      min-height: 76px;
      display: grid;
      grid-template-columns: 38px minmax(0,1fr);
      align-items: center;
      gap: 11px;
      padding: 12px 13px;
      border-radius: 16px;
      color: var(--ba-ink);
      background: linear-gradient(145deg,#f7fcff,#eaf5fb);
      pointer-events: auto;
    }

    #barto-article .ba-float-item > i {
      justify-self: center;
      color: var(--ba-blue);
      font-size: 25px;
    }

    #barto-article .ba-float-item b,
    #barto-article .ba-float-item small {
      display: block;
      font-size: 15px;
      line-height: 1.4;
    }

    #barto-article .ba-float-item small {
      color: #708791;
    }

    #barto-article .ba-float-toggle {
      min-width: 154px;
      min-height: 58px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 12px 20px;
      border: 1px solid rgba(255,255,255,.8);
      border-radius: 999px;
      color: #ffffff;
      background: linear-gradient(135deg,#4da5cd,#226488);
      box-shadow: 0 18px 44px rgba(24,76,102,.25);
      font-size: 16px;
      font-weight: 800;
      pointer-events: auto;
    }

    #barto-article .ba-float-wrap.is-on-dark .ba-float-toggle {
      color: var(--ba-blue-dark);
      border-color: rgba(52,127,166,.18);
      background: #ffffff;
    }

    /* DRAWER */
    #barto-article .ba-drawer-overlay {
      position: fixed;
      z-index: 99998;
      inset: 0;
      visibility: hidden;
      opacity: 0;
      background: rgba(5,26,31,.62);
      backdrop-filter: blur(4px);
      transition: opacity .3s ease, visibility .3s ease;
    }

    #barto-article .ba-drawer-overlay.is-open {
      visibility: visible;
      opacity: 1;
    }

    #barto-article .ba-drawer {
      position: fixed;
      z-index: 99999;
      top: 0;
      left: 0;
      width: min(520px,94vw);
      height: 100dvh;
      display: flex;
      flex-direction: column;
      padding: 27px;
      overflow-y: auto;
      background: linear-gradient(180deg,#ffffff 0%,#f2f9fd 100%);
      box-shadow: 22px 0 55px rgba(18,65,88,.22);
      transform: translateX(-105%);
      transition: transform .38s cubic-bezier(.2,.75,.25,1);
    }

    #barto-article .ba-drawer.is-open {
      transform: translateX(0);
    }

    #barto-article .ba-drawer-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding-bottom: 22px;
      border-bottom: 1px solid var(--ba-line);
    }

    #barto-article .ba-close-btn {
      width: 44px;
      height: 44px;
      min-width: 44px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid var(--ba-line);
      border-radius: 50%;
      color: var(--ba-ink);
      background: #ffffff;
      font-size: 24px;
    }

    #barto-article .ba-drawer-body {
      padding: 25px 0;
    }

    #barto-article .ba-menu-group {
      margin-bottom: 28px;
    }

    #barto-article .ba-menu-group h4 {
      margin-bottom: 11px;
      color: #758d97;
      font-size: 15px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    #barto-article .ba-menu-list {
      display: grid;
      gap: 4px;
    }

    #barto-article .ba-menu-list a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
      padding: 11px 0;
      border-bottom: 1px solid rgba(16,47,56,.075);
      color: var(--ba-ink);
      font-size: 16px;
      font-weight: 700;
    }

    #barto-article .ba-menu-list a::after {
      content: "\f061";
      color: var(--ba-blue);
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
    }

    #barto-article .ba-drawer-quick {
      margin-top: auto;
      display: grid;
      grid-template-columns: repeat(4,52px);
      justify-content: start;
      gap: 10px;
      padding-top: 20px;
      border-top: 1px solid var(--ba-line);
    }

    #barto-article .ba-drawer-quick a {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: var(--ba-blue);
      font-size: 25px;
      transition: background .2s ease, transform .2s ease;
    }

    #barto-article .ba-drawer-quick a:hover {
      background: #e8f5fb;
      transform: translateY(-2px);
    }

    /* MODAL */
    #barto-article .ba-modal-overlay {
      position: fixed;
      z-index: 100001;
      inset: 0;
      display: grid;
      place-items: center;
      padding: 20px;
      visibility: hidden;
      opacity: 0;
      background: rgba(4,26,31,.68);
      backdrop-filter: blur(8px);
      transition: opacity .3s ease, visibility .3s ease;
    }

    #barto-article .ba-modal-overlay.is-open {
      visibility: visible;
      opacity: 1;
    }

    #barto-article .ba-modal {
      width: min(760px,100%);
      padding: 34px;
      border-radius: 29px;
      background: #ffffff;
      box-shadow: 0 28px 80px rgba(0,0,0,.28);
      transform: translateY(18px) scale(.98);
      transition: transform .3s ease;
    }

    #barto-article .ba-modal-overlay.is-open .ba-modal {
      transform: translateY(0) scale(1);
    }

    #barto-article .ba-modal-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 22px;
    }

    #barto-article .ba-modal h3 {
      margin-bottom: 7px;
      font-family: "Prata",Georgia,serif;
      font-size: 30px;
      font-weight: 500;
    }

    #barto-article .ba-modal-options {
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: 12px;
    }

    #barto-article .ba-modal-option {
      min-height: 88px;
      display: grid;
      grid-template-columns: 48px minmax(0,1fr) auto;
      align-items: center;
      gap: 14px;
      padding: 14px 16px;
      border: 1px solid var(--ba-line);
      border-radius: 18px;
      background: #f8fcfe;
    }

    #barto-article .ba-modal-option > span:first-child {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 15px;
      color: var(--ba-blue);
      background: var(--ba-blue-light);
      font-size: 24px;
    }

    #barto-article .ba-modal-option small,
    #barto-article .ba-modal-option b {
      display: block;
      font-size: 16px;
      line-height: 1.45;
    }

    #barto-article .ba-modal-option small {
      color: #708791;
    }

    /* RESPONSIVE */
    @media (max-width: 1120px) {
      #barto-article .ba-header-inner {
        grid-template-columns: 275px minmax(0,1fr) 150px;
      }

      #barto-article .ba-brand-side {
        width: 275px;
        min-width: 275px;
      }

      #barto-article .ba-brand {
        width: 210px;
        min-width: 210px;
        flex-basis: 210px;
      }

      #barto-article .ba-nav {
        gap: 11px;
      }

      #barto-article .ba-nav > a {
        font-size: 14px;
      }

      #barto-article .ba-header-actions,
      #barto-article .ba-header-actions .ba-btn {
        width: 150px;
      }

      #barto-article .ba-article-layout {
        grid-template-columns: minmax(0,1fr) 290px;
      }
    }

    @media (max-width: 980px) {
      #barto-article .ba-nav {
        display: none;
      }

      #barto-article .ba-header-inner {
        grid-template-columns: 1fr auto;
      }

      #barto-article .ba-hero-grid,
      #barto-article .ba-article-layout {
        grid-template-columns: 1fr;
      }

      #barto-article .ba-hero-summary {
        max-width: 650px;
      }

      #barto-article .ba-article-body {
        max-width: none;
      }

      #barto-article .ba-sidebar {
        position: static;
        top: auto;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        grid-template-columns: repeat(2,minmax(0,1fr));
        grid-template-rows: none;
      }

      #barto-article .ba-toc-card,
      #barto-article .ba-toc-card.is-scrollable {
        max-height: none;
        overflow: visible;
      }

      #barto-article .ba-footer-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
      }
    }

    @media (max-width: 720px) {
      #barto-article .ba-container {
        width: min(calc(100% - 24px), var(--ba-container));
      }

      #barto-article .ba-topbar-inner {
        justify-content: space-between;
        gap: 10px;
      }

      #barto-article .ba-topbar-note,
      #barto-article .ba-topbar-right > span {
        display: none;
      }

      #barto-article .ba-topbar-left,
      #barto-article .ba-topbar-right {
        gap: 8px;
      }

      #barto-article .ba-header-actions {
        display: none;
      }

      #barto-article .ba-header-inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 74px;
      }

      #barto-article .ba-brand-side {
        width: 100%;
        min-width: 0;
      }

      #barto-article .ba-brand {
        width: min(205px, calc(100vw - 78px));
        min-width: 0;
        height: 52px;
        flex: 0 1 min(205px, calc(100vw - 78px));
      }

      #barto-article .ba-article-hero {
        padding: 54px 0 52px;
      }

      #barto-article h1 {
        font-size: 38px;
      }

      #barto-article .ba-hero-lead {
        font-size: 17px;
      }

      #barto-article .ba-article-section {
        padding: 50px 0 72px;
      }

      #barto-article .ba-intro,
      #barto-article .ba-key-answer,
      #barto-article .ba-final-recommendation,
      #barto-article .ba-author-box {
        padding: 25px 22px;
        border-radius: 23px;
      }

      #barto-article .ba-key-answer {
        padding-top: 82px;
      }

      #barto-article .ba-key-answer::before {
        top: 24px;
        left: 22px;
      }

      #barto-article .ba-article-body > p,
      #barto-article .ba-content-block > p,
      #barto-article .ba-content-block li {
        font-size: 17px;
        line-height: 1.75;
      }

      #barto-article .ba-section-head {
        grid-template-columns: 54px minmax(0,1fr);
        gap: 14px;
      }

      #barto-article .ba-section-no {
        width: 54px;
        height: 54px;
        border-radius: 17px;
        font-size: 20px;
      }

      #barto-article .ba-section-head h2 {
        font-size: 30px;
      }

      #barto-article .ba-figure-link {
        padding: 12px;
      }

      #barto-article .ba-figure-link::after {
        display: none;
      }

      #barto-article .ba-figure figcaption {
        padding: 17px 18px 20px;
      }

      #barto-article .ba-purpose-grid,
      #barto-article .ba-sidebar,
      #barto-article .ba-modal-options {
        grid-template-columns: 1fr;
      }

      #barto-article .ba-footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
      }

      #barto-article .ba-footer-bottom {
        flex-direction: column;
      }

      #barto-article .ba-float-menu {
        width: min(390px,calc(100vw - 20px));
      }

      #barto-article .ba-float-toggle {
        width: 58px;
        min-width: 58px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
      }

      #barto-article .ba-float-toggle i {
        font-size: 20px;
      }
    }

    @media (max-width: 430px) {
      #barto-article .ba-topbar-phone span {
        font-size: 12px;
      }

      #barto-article .ba-social-row {
        gap: 3px;
      }

      #barto-article .ba-brand {
        width: 154px;
        height: 48px;
        flex-basis: 154px;
      }

      #barto-article h1 {
        font-size: 34px;
      }

      #barto-article .ba-cycle-row {
        grid-template-columns: 68px minmax(0,1fr);
      }

      #barto-article .ba-drawer {
        padding: 20px;
      }

      #barto-article .ba-float-menu {
        grid-template-columns: 1fr;
        max-height: 360px;
        overflow-y: auto;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      #barto-article *,
      #barto-article *::before,
      #barto-article *::after {
        animation: none !important;
        transition-duration: .01ms !important;
      }
    }

/* WordPress template integration */
body.barto-smart-article-page {
  overflow-x: hidden;
  background: #ffffff;
}

#barto-article {
  width: 100%;
  margin: 0;
}

#barto-article .ba-hero-copy h1 {
  text-wrap: balance;
}

#barto-article .ba-auto-summary .ba-cycle-day {
  font-size: 18px;
}

#barto-article .ba-abbreviation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 24px 0 28px;
}

#barto-article .ba-abbreviation-item {
  padding: 17px 18px;
  border: 1px solid rgba(39,107,140,.13);
  border-radius: 18px;
  background: linear-gradient(145deg,#ffffff,#f3f9fd);
  box-shadow: 0 10px 28px rgba(29,87,115,.05);
  color: #496a76;
  font-size: 16px;
  line-height: 1.6;
}

#barto-article .ba-abbreviation-item strong {
  color: var(--ba-ink);
}

#barto-article .ba-content-block h3.ba-subheading {
  margin: 32px 0 14px;
  color: var(--ba-ink);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.35;
}

#barto-article .ba-figure .wp-block-image,
#barto-article .ba-figure figure {
  margin: 0;
}

#barto-article .ba-figure .wp-block-image img,
#barto-article .ba-figure > img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  background: #dceaf0;
}

#barto-article .ba-figure .wp-element-caption,
#barto-article .ba-figure figcaption {
  padding: 20px 24px 23px;
  color: #607b86;
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
}

#barto-article .ba-embedded {
  margin: 30px 0 36px;
}

#barto-article .ba-key-answer.is-auto-generated h2 {
  font-size: 31px;
}

#barto-article .ba-empty-intro {
  display: none;
}

@media (max-width: 720px) {
  #barto-article .ba-abbreviation-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 2.3 — точечные исправления
   ================================================================ */

/* Якоря не скрываются под липкой шапкой. */
#barto-article .ba-content-block,
#barto-article .ba-final-recommendation {
  scroll-margin-top: var(--ba-sticky-offset, 120px);
}

/* Любые подзаголовки и списки внутри тёмного итогового блока — белые. */
#barto-article .ba-final-recommendation h3,
#barto-article .ba-final-recommendation h4,
#barto-article .ba-final-recommendation h3.ba-subheading,
#barto-article .ba-final-recommendation li,
#barto-article .ba-final-recommendation b,
#barto-article .ba-final-recommendation strong {
  color: #ffffff !important;
}

#barto-article .ba-final-recommendation h3.ba-subheading {
  margin: 24px 0 10px;
}

#barto-article .ba-final-recommendation li::marker {
  color: #55b1dc;
}

/* Обычные текстовые абзацы всегда занимают всю ширину колонки. */
#barto-article .ba-content-block > p,
#barto-article .ba-content-block > .ba-note,
#barto-article .ba-content-block > .ba-embedded {
  width: 100%;
  max-width: none;
}

/* Более компактная вертикальная ритмика без уменьшения основного текста. */
#barto-article .ba-article-section {
  padding: 62px 0 78px;
}

#barto-article .ba-article-layout {
  gap: clamp(36px, 4.5vw, 64px);
}

#barto-article .ba-content-block {
  margin-bottom: 40px;
  padding-bottom: 38px;
}

#barto-article .ba-section-head {
  margin-bottom: 17px;
}

#barto-article .ba-article-body > p,
#barto-article .ba-content-block > p {
  margin-bottom: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}

#barto-article .ba-content-block li {
  line-height: 1.68;
}

#barto-article .ba-intro {
  margin-bottom: 25px;
  padding: 24px 26px;
}

#barto-article .ba-key-answer {
  margin-bottom: 35px;
  padding-top: 27px;
  padding-bottom: 27px;
}

#barto-article .ba-final-recommendation {
  margin-top: 34px;
  padding: 29px 31px;
}

#barto-article .ba-author-box {
  margin-top: 34px;
  padding: 25px;
}

#barto-article .ba-photo-credit {
  color: #607b86;
  font-size: 15px;
}

/* Сетка настоящих сокращений становится компактнее. */
#barto-article .ba-abbreviation-grid {
  gap: 10px 14px;
  margin: 18px 0 20px;
}

#barto-article .ba-abbreviation-item {
  min-height: 0;
  padding: 14px 16px;
}

/* Когда введение состоит только из сокращений, не оставляем лишнюю пустоту. */
#barto-article .ba-intro:has(> .ba-abbreviation-grid:only-child) {
  padding: 20px 22px;
}

/* Высота длинного содержания учитывает липкую шапку и отдельный CTA. */
#barto-article .ba-toc-card.is-scrollable {
  max-height: max(220px, calc(100vh - var(--ba-sticky-offset, 120px) - 300px));
}

/* Планшет */
@media (max-width: 980px) {
  #barto-article .ba-article-section {
    padding: 46px 0 60px;
  }

  #barto-article .ba-article-layout {
    gap: 32px;
  }

  #barto-article .ba-article-body,
  #barto-article .ba-sidebar {
    width: 100%;
    max-width: 820px;
    margin-inline: auto;
  }

  #barto-article .ba-sidebar {
    gap: 15px;
  }

  #barto-article .ba-sidebar.no-toc {
    max-width: 560px;
    margin-inline: auto;
  }

  #barto-article .ba-content-block {
    margin-bottom: 34px;
    padding-bottom: 32px;
  }

  #barto-article .ba-intro,
  #barto-article .ba-key-answer,
  #barto-article .ba-final-recommendation,
  #barto-article .ba-author-box {
    border-radius: 22px;
  }
}

/* Телефон */
@media (max-width: 720px) {
  #barto-article .ba-article-section {
    padding: 34px 0 48px;
  }

  #barto-article .ba-article-layout {
    gap: 26px;
  }

  #barto-article .ba-content-block {
    margin-bottom: 28px;
    padding-bottom: 26px;
  }

  #barto-article .ba-section-head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
  }

  #barto-article .ba-section-no {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 18px;
  }

  #barto-article .ba-section-head h2 {
    margin-top: 2px;
    font-size: 28px;
    line-height: 1.2;
  }

  #barto-article .ba-article-body > p,
  #barto-article .ba-content-block > p,
  #barto-article .ba-content-block li {
    font-size: 17px;
    line-height: 1.68;
  }

  #barto-article .ba-article-body > p,
  #barto-article .ba-content-block > p {
    margin-bottom: 15px;
  }

  #barto-article .ba-content-block h3.ba-subheading {
    margin: 22px 0 10px;
    font-size: 23px;
    line-height: 1.3;
  }

  #barto-article .ba-intro,
  #barto-article .ba-key-answer,
  #barto-article .ba-final-recommendation,
  #barto-article .ba-author-box {
    padding: 20px;
    border-radius: 20px;
  }

  #barto-article .ba-key-answer {
    padding-top: 72px;
    margin-bottom: 28px;
  }

  #barto-article .ba-final-recommendation {
    margin-top: 27px;
  }

  #barto-article .ba-author-box {
    margin-top: 27px;
  }

  #barto-article .ba-abbreviation-grid {
    gap: 8px;
    margin: 13px 0 15px;
  }

  #barto-article .ba-abbreviation-item {
    padding: 13px 14px;
    border-radius: 16px;
  }

  #barto-article .ba-intro:has(> .ba-abbreviation-grid:only-child) {
    padding: 15px;
  }

  #barto-article .ba-article-list {
    margin-bottom: 20px;
    padding-left: 20px;
  }

  #barto-article .ba-article-list li {
    margin-bottom: 10px;
    padding-left: 4px;
  }

  #barto-article .ba-sidebar-card {
    padding: 20px;
    border-radius: 20px;
  }

  #barto-article .ba-sidebar-card h3 {
    margin-bottom: 13px;
  }
}

@media (max-width: 430px) {
  #barto-article .ba-container {
    width: min(calc(100% - 20px), var(--ba-container));
  }

  #barto-article .ba-section-head h2 {
    font-size: 26px;
  }

  #barto-article .ba-article-body > p,
  #barto-article .ba-content-block > p,
  #barto-article .ba-content-block li {
    line-height: 1.64;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 2.4 — Hero и мобильное содержание
   ================================================================ */

/* После удаления информационных плашек Hero становится одноколоночным. */
#barto-article .ba-article-hero {
  padding-top: 66px;
  padding-bottom: 62px;
}

#barto-article .ba-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

#barto-article .ba-hero-copy {
  max-width: 1040px;
}

#barto-article .ba-breadcrumbs {
  margin-bottom: 22px;
}

/* Мобильные элементы по умолчанию скрыты. */
#barto-article .ba-mobile-toc-toggle,
#barto-article .ba-mobile-bottom-cta {
  display: none;
}

/* Кнопка-бургер содержания. */
#barto-article .ba-mobile-toc-toggle {
  width: 100%;
  min-height: 70px;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  padding: 14px 17px;
  border: 1px solid rgba(43,111,145,.16);
  border-radius: 20px;
  color: var(--ba-ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(164,216,241,.19), transparent 38%),
    linear-gradient(145deg,#ffffff,#eef8fc);
  box-shadow: 0 14px 34px rgba(27,85,113,.09);
  text-align: left;
}

#barto-article .ba-mobile-toc-burger {
  width: 43px;
  height: 43px;
  min-width: 43px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 11px;
  border-radius: 14px;
  background: linear-gradient(145deg,#dff2fb,#cce8f5);
}

#barto-article .ba-mobile-toc-burger i {
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--ba-blue-dark);
}

#barto-article .ba-mobile-toc-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#barto-article .ba-mobile-toc-copy b {
  color: var(--ba-ink);
  font-size: 17px;
  line-height: 1.3;
}

#barto-article .ba-mobile-toc-copy small {
  color: #6a838e;
  font-size: 14px;
  line-height: 1.3;
}

#barto-article .ba-mobile-toc-arrow {
  margin-left: auto;
  color: var(--ba-blue);
  font-size: 22px;
}

/* Выезжающее содержание. */
#barto-article .ba-toc-overlay {
  position: fixed;
  z-index: 100004;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(7,31,42,.64);
  backdrop-filter: blur(5px);
  transition: opacity .28s ease, visibility .28s ease;
}

#barto-article .ba-toc-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

#barto-article .ba-toc-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 94vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(164,216,241,.24), transparent 34%),
    linear-gradient(180deg,#ffffff,#edf7fc);
  box-shadow: -24px 0 70px rgba(10,45,61,.25);
  transform: translateX(105%);
  transition: transform .34s cubic-bezier(.2,.75,.25,1);
}

#barto-article .ba-toc-overlay.is-open .ba-toc-drawer {
  transform: translateX(0);
}

#barto-article .ba-toc-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ba-line);
}

#barto-article .ba-toc-drawer-head span {
  display: block;
  margin-bottom: 4px;
  color: #718892;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

#barto-article .ba-toc-drawer-head h2 {
  margin: 0;
  font-size: 31px;
}

#barto-article .ba-toc-drawer-links {
  flex: 1;
  margin-top: 14px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(52,127,166,.28) transparent;
}

#barto-article .ba-toc-drawer-links a {
  padding: 13px 4px;
  font-size: 16px;
}

/* CTA после статьи на планшете и телефоне. */
#barto-article .ba-mobile-bottom-cta {
  width: 100%;
  margin-top: 28px;
  padding: 27px;
  border-radius: 25px;
  box-shadow: 0 24px 60px rgba(17,57,77,.20);
}

#barto-article .ba-mobile-bottom-cta h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-family: "Prata", Georgia, serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.25;
}

#barto-article .ba-mobile-bottom-cta p {
  margin-bottom: 19px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.65;
}

#barto-article .ba-mobile-bottom-cta .ba-btn {
  width: 100%;
}

/* На планшете и телефоне боковая колонка полностью выключена:
   больше нет наложения содержания, CTA и плавающих кнопок. */
@media (max-width: 980px) {
  #barto-article .ba-sidebar {
    display: none !important;
  }

  #barto-article .ba-mobile-toc-toggle {
    display: flex;
  }

  #barto-article .ba-mobile-bottom-cta {
    display: block;
  }

  #barto-article .ba-article-layout {
    display: block;
  }

  #barto-article .ba-article-body {
    width: 100%;
    max-width: 820px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  #barto-article .ba-article-hero {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  #barto-article .ba-breadcrumbs {
    gap: 7px;
    margin-bottom: 18px;
    font-size: 14px;
  }

  #barto-article .ba-mobile-toc-toggle {
    min-height: 64px;
    gap: 12px;
    margin-bottom: 23px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  #barto-article .ba-mobile-toc-burger {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 13px;
  }

  #barto-article .ba-mobile-toc-copy b {
    font-size: 16px;
  }

  #barto-article .ba-mobile-bottom-cta {
    margin-top: 23px;
    padding: 22px 20px;
    border-radius: 21px;
  }

  #barto-article .ba-mobile-bottom-cta h3 {
    font-size: 27px;
  }

  #barto-article .ba-toc-drawer {
    width: min(390px, 96vw);
    padding: 20px 17px;
  }

  #barto-article .ba-toc-drawer-head h2 {
    font-size: 28px;
  }
}

@media (max-width: 430px) {
  #barto-article .ba-mobile-toc-copy small {
    font-size: 13px;
  }

  #barto-article .ba-mobile-toc-arrow {
    font-size: 19px;
  }

  #barto-article .ba-mobile-bottom-cta h3 {
    font-size: 25px;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 2.5
   ================================================================ */

/* Небольшая карточка содержания никогда не растягивает строки. */
#barto-article .ba-sidebar,
#barto-article .ba-toc-card,
#barto-article .ba-toc {
  align-content: start;
}

#barto-article .ba-toc {
  grid-auto-rows: max-content;
}

#barto-article .ba-toc-card:not(.is-scrollable) {
  height: fit-content;
  min-height: 0;
  max-height: none;
  padding-top: 22px;
  padding-bottom: 19px;
}

#barto-article .ba-toc-card:not(.is-scrollable) h3 {
  margin-bottom: 10px;
}

#barto-article .ba-toc-card:not(.is-scrollable) .ba-toc {
  gap: 0;
}

#barto-article .ba-toc-card:not(.is-scrollable) .ba-toc a {
  min-height: 0;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Длинное содержание начинается строго ниже всей липкой шапки. */
#barto-article .ba-toc-card.is-scrollable {
  max-height: max(230px, calc(100vh - var(--ba-sticky-offset, 150px) - 300px));
}

/* На компьютере кнопка в Hero скрыта, на планшете и телефоне — видна. */
#barto-article .ba-hero-toc-toggle {
  margin-top: 24px;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  #barto-article .ba-hero-copy .ba-mobile-toc-toggle {
    display: flex;
    max-width: 620px;
  }

  #barto-article .ba-article-section .ba-mobile-toc-toggle {
    display: none;
  }
}

@media (max-width: 720px) {
  #barto-article .ba-hero-toc-toggle {
    margin-top: 19px;
    margin-bottom: 0;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 2.6 — главное содержание и широкий Hero
   ================================================================ */

/* Заголовок и описание Hero используют всю ширину контейнера. */
#barto-article .ba-hero-grid,
#barto-article .ba-hero-copy,
#barto-article .ba-hero-copy h1,
#barto-article .ba-hero-lead {
  width: 100%;
  max-width: none;
}

#barto-article .ba-hero-copy h1 {
  text-wrap: pretty;
}

#barto-article .ba-hero-lead {
  text-wrap: pretty;
}

/* В главном содержании не бывает десятков строк, поэтому оно не растягивается. */
#barto-article .ba-toc-card,
#barto-article .ba-toc-card.is-scrollable {
  height: fit-content;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

#barto-article .ba-toc-card .ba-toc {
  grid-auto-rows: max-content;
  align-content: start;
}

#barto-article .ba-toc-card .ba-toc a {
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}


/* ================================================================
   BARTO SMART ARTICLES 2.7 — текст врача без пересказа
   ================================================================ */

/* Hero действительно использует всю доступную ширину. */
#barto-article .ba-article-hero .ba-container,
#barto-article .ba-article-hero .ba-hero-grid,
#barto-article .ba-article-hero .ba-hero-copy,
#barto-article .ba-article-hero .ba-hero-copy h1,
#barto-article .ba-article-hero .ba-hero-lead {
  width: 100% !important;
  max-width: none !important;
}

#barto-article .ba-article-hero .ba-hero-copy h1 {
  text-wrap: wrap;
  overflow-wrap: anywhere;
}

#barto-article .ba-article-hero .ba-hero-lead {
  max-width: 1180px !important;
}

/* Карточки содержат только исходные фразы автора. */
#barto-article .ba-purpose-card-source {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#barto-article .ba-purpose-card-source span {
  display: block;
  color: #345866;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

/* Длинный точный заголовок раздела переносится аккуратно. */
#barto-article .ba-section-head h2 {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

@media (max-width: 980px) {
  #barto-article .ba-purpose-grid-source {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #barto-article .ba-purpose-grid-source {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  #barto-article .ba-purpose-card-source {
    min-height: 0;
    padding: 18px;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 2.8
   ================================================================ */

/* Заголовок находится в контейнере сайта, но занимает всю его ширину. */
#barto-article .ba-article-hero .ba-container {
  width: min(calc(100% - 40px), var(--ba-container)) !important;
  max-width: var(--ba-container) !important;
  margin-inline: auto !important;
}

#barto-article .ba-article-hero .ba-hero-grid,
#barto-article .ba-article-hero .ba-hero-copy,
#barto-article .ba-article-hero .ba-hero-copy h1,
#barto-article .ba-article-hero .ba-hero-lead {
  width: 100% !important;
  max-width: none !important;
}

#barto-article .ba-article-hero .ba-hero-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

/* Пункт об овуляции и ограничении точности — обычный широкий блок. */
#barto-article .ba-purpose-wide {
  width: 100%;
  margin: 18px 0 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--ba-blue);
  border-radius: 0 20px 20px 0;
  background: linear-gradient(135deg, #f3faff, #eaf6fb);
}

#barto-article .ba-purpose-wide p {
  margin: 0;
  color: #345866;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
}

@media (max-width: 720px) {
  #barto-article .ba-article-hero .ba-container {
    width: min(calc(100% - 24px), var(--ba-container)) !important;
  }

  #barto-article .ba-article-hero .ba-hero-copy h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  #barto-article .ba-purpose-wide {
    margin: 14px 0 22px;
    padding: 18px;
    border-radius: 0 17px 17px 0;
  }

  #barto-article .ba-purpose-wide p {
    font-size: 17px;
    line-height: 1.68;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 2.9
   ================================================================ */

/* Единые размеры заголовков статьи. */
#barto-article h1,
#barto-article .ba-article-hero .ba-hero-copy h1 {
  font-size: 45px !important;
  line-height: 1.12;
}

#barto-article h2,
#barto-article .ba-section-head h2,
#barto-article .ba-final-recommendation h2 {
  font-size: 40px !important;
  line-height: 1.2;
}

#barto-article h3,
#barto-article .ba-content-block h3.ba-subheading,
#barto-article .ba-sidebar-card h3,
#barto-article .ba-mobile-bottom-cta h3 {
  font-size: 35px !important;
  line-height: 1.25;
}

/* Мобильная вертикальная навигация чтения. */
#barto-article .ba-mobile-reading-rail {
  display: none;
}

@media (max-width: 720px) {
  #barto-article h1,
  #barto-article .ba-article-hero .ba-hero-copy h1 {
    font-size: 45px !important;
  }

  #barto-article h2,
  #barto-article .ba-section-head h2,
  #barto-article .ba-final-recommendation h2 {
    font-size: 40px !important;
  }

  #barto-article h3,
  #barto-article .ba-content-block h3.ba-subheading,
  #barto-article .ba-sidebar-card h3,
  #barto-article .ba-mobile-bottom-cta h3 {
    font-size: 35px !important;
  }

  #barto-article .ba-mobile-reading-rail {
    position: fixed;
    z-index: 145;
    right: 8px;
    top: 50%;
    width: 34px;
    height: min(300px, 48vh);
    display: grid;
    grid-template-rows: 38px minmax(100px, 1fr) 38px;
    align-items: center;
    justify-items: center;
    gap: 6px;
    padding: 7px 5px;
    visibility: hidden;
    opacity: 0;
    border: 1px solid rgba(43,111,145,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 15px 38px rgba(20,64,86,.17);
    backdrop-filter: blur(12px);
    transform: translateY(-50%) translateX(9px);
    transition: opacity .24s ease, visibility .24s ease, transform .24s ease;
  }

  #barto-article .ba-mobile-reading-rail.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  #barto-article .ba-reading-jump {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--ba-blue-dark);
    background: #edf8fd;
    font-size: 13px;
  }

  #barto-article .ba-reading-track {
    position: relative;
    width: 20px;
    height: 100%;
    min-height: 100px;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    touch-action: none;
  }

  #barto-article .ba-reading-track::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 50%;
    width: 3px;
    border-radius: 999px;
    background: #d9eaf2;
    transform: translateX(-50%);
  }

  #barto-article .ba-reading-progress {
    position: absolute;
    z-index: 1;
    top: 7px;
    left: 50%;
    width: 3px;
    max-height: calc(100% - 14px);
    border-radius: 999px;
    background: linear-gradient(180deg,#4da5cd,#226488);
    transform: translateX(-50%);
  }

  #barto-article .ba-reading-thumb {
    position: absolute;
    z-index: 2;
    left: 50%;
    width: 13px;
    height: 13px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--ba-blue);
    box-shadow: 0 4px 12px rgba(33,95,131,.28);
    transform: translate(-50%, -50%);
  }

  #barto-article .ba-mobile-reading-rail.is-at-end .ba-reading-jump-down {
    opacity: .45;
  }

  /* Текст не оказывается под вертикальной навигацией. */
  #barto-article .ba-article-body {
    padding-right: 24px;
  }
}

@media (max-width: 430px) {
  #barto-article h1,
  #barto-article .ba-article-hero .ba-hero-copy h1 {
    font-size: 38px !important;
  }

  #barto-article h2,
  #barto-article .ba-section-head h2,
  #barto-article .ba-final-recommendation h2 {
    font-size: 32px !important;
  }

  #barto-article h3,
  #barto-article .ba-content-block h3.ba-subheading,
  #barto-article .ba-sidebar-card h3,
  #barto-article .ba-mobile-bottom-cta h3 {
    font-size: 27px !important;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 3.0 — единая иерархия заголовков
   ================================================================ */

#barto-article h1,
#barto-article .ba-article-hero .ba-hero-copy h1 {
  font-size: 40px !important;
  line-height: 1.14;
}

#barto-article h2,
#barto-article .ba-section-head h2,
#barto-article .ba-final-recommendation h2,
#barto-article .ba-key-answer h2,
#barto-article .ba-toc-drawer-head h2 {
  font-size: 35px !important;
  line-height: 1.2;
}

#barto-article h3,
#barto-article .ba-content-block h3.ba-subheading,
#barto-article .ba-sidebar-card h3,
#barto-article .ba-mobile-bottom-cta h3,
#barto-article .ba-modal h3 {
  font-size: 30px !important;
  line-height: 1.27;
}

#barto-article h4 {
  font-size: 25px !important;
  line-height: 1.32;
}

#barto-article h5 {
  font-size: 20px !important;
  line-height: 1.38;
}

#barto-article h6 {
  font-size: 15px !important;
  line-height: 1.45;
}

/* На планшете и мобильном сохраняем ту же иерархию. */
@media (max-width: 980px) {
  #barto-article h1,
  #barto-article .ba-article-hero .ba-hero-copy h1 {
    font-size: 40px !important;
  }

  #barto-article h2,
  #barto-article .ba-section-head h2,
  #barto-article .ba-final-recommendation h2,
  #barto-article .ba-key-answer h2,
  #barto-article .ba-toc-drawer-head h2 {
    font-size: 35px !important;
  }

  #barto-article h3,
  #barto-article .ba-content-block h3.ba-subheading,
  #barto-article .ba-sidebar-card h3,
  #barto-article .ba-mobile-bottom-cta h3,
  #barto-article .ba-modal h3 {
    font-size: 30px !important;
  }

  #barto-article h4 {
    font-size: 25px !important;
  }

  #barto-article h5 {
    font-size: 20px !important;
  }

  #barto-article h6 {
    font-size: 15px !important;
  }
}

@media (max-width: 430px) {
  #barto-article h1,
  #barto-article .ba-article-hero .ba-hero-copy h1 {
    font-size: 40px !important;
  }

  #barto-article h2,
  #barto-article .ba-section-head h2,
  #barto-article .ba-final-recommendation h2,
  #barto-article .ba-key-answer h2,
  #barto-article .ba-toc-drawer-head h2 {
    font-size: 35px !important;
  }

  #barto-article h3,
  #barto-article .ba-content-block h3.ba-subheading,
  #barto-article .ba-sidebar-card h3,
  #barto-article .ba-mobile-bottom-cta h3,
  #barto-article .ba-modal h3 {
    font-size: 30px !important;
  }

  #barto-article h4 {
    font-size: 25px !important;
  }

  #barto-article h5 {
    font-size: 20px !important;
  }

  #barto-article h6 {
    font-size: 15px !important;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 3.1 — уменьшение заголовков ещё на 5 px
   ================================================================ */

#barto-article h1,
#barto-article .ba-article-hero .ba-hero-copy h1 {
  font-size: 35px !important;
}

#barto-article h2,
#barto-article .ba-section-head h2,
#barto-article .ba-final-recommendation h2,
#barto-article .ba-key-answer h2,
#barto-article .ba-toc-drawer-head h2 {
  font-size: 30px !important;
}

#barto-article h3,
#barto-article .ba-content-block h3.ba-subheading,
#barto-article .ba-sidebar-card h3,
#barto-article .ba-mobile-bottom-cta h3,
#barto-article .ba-modal h3 {
  font-size: 25px !important;
}

#barto-article h4 {
  font-size: 20px !important;
}

#barto-article h5 {
  font-size: 15px !important;
}

#barto-article h6 {
  font-size: 10px !important;
}

@media (max-width: 980px) {
  #barto-article h1,
  #barto-article .ba-article-hero .ba-hero-copy h1 {
    font-size: 35px !important;
  }

  #barto-article h2,
  #barto-article .ba-section-head h2,
  #barto-article .ba-final-recommendation h2,
  #barto-article .ba-key-answer h2,
  #barto-article .ba-toc-drawer-head h2 {
    font-size: 30px !important;
  }

  #barto-article h3,
  #barto-article .ba-content-block h3.ba-subheading,
  #barto-article .ba-sidebar-card h3,
  #barto-article .ba-mobile-bottom-cta h3,
  #barto-article .ba-modal h3 {
    font-size: 25px !important;
  }

  #barto-article h4 {
    font-size: 20px !important;
  }

  #barto-article h5 {
    font-size: 15px !important;
  }

  #barto-article h6 {
    font-size: 10px !important;
  }
}

@media (max-width: 430px) {
  #barto-article h1,
  #barto-article .ba-article-hero .ba-hero-copy h1 {
    font-size: 35px !important;
  }

  #barto-article h2,
  #barto-article .ba-section-head h2,
  #barto-article .ba-final-recommendation h2,
  #barto-article .ba-key-answer h2,
  #barto-article .ba-toc-drawer-head h2 {
    font-size: 30px !important;
  }

  #barto-article h3,
  #barto-article .ba-content-block h3.ba-subheading,
  #barto-article .ba-sidebar-card h3,
  #barto-article .ba-mobile-bottom-cta h3,
  #barto-article .ba-modal h3 {
    font-size: 25px !important;
  }

  #barto-article h4 {
    font-size: 20px !important;
  }

  #barto-article h5 {
    font-size: 15px !important;
  }

  #barto-article h6 {
    font-size: 10px !important;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 3.2 — видео, клинические случаи и рубрики
   ================================================================ */

/* YouTube всегда выводится адаптивно и не превращается в простую ссылку. */
#barto-article .ba-video-figure {
  width: 100%;
  margin: 28px 0 34px;
  overflow: hidden;
  border: 1px solid rgba(39,107,140,.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 52px rgba(29,88,116,.10);
}

#barto-article .ba-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07131a;
}

#barto-article .ba-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

#barto-article .ba-video-figure figcaption {
  margin: 0;
  padding: 16px 20px 19px;
  color: #607b86;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
}

/* Данные пациента во всех «Интересных случаях» оформляются одинаково. */
#barto-article .ba-intro.ba-case-intro {
  position: relative;
  margin-bottom: 30px;
  padding: 26px 30px 26px 34px;
  border: 1px solid rgba(39,107,140,.14);
  border-left: 5px solid var(--ba-blue);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(164,216,241,.16), transparent 36%),
    #ffffff;
  box-shadow: 0 18px 46px rgba(29,88,116,.08);
}

#barto-article .ba-intro.ba-case-intro::before {
  content: "Клинический случай";
  display: block;
  margin-bottom: 13px;
  color: var(--ba-blue-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .07em;
}

#barto-article .ba-intro.ba-case-intro p {
  margin-bottom: 13px;
}

#barto-article .ba-intro.ba-case-intro p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  #barto-article .ba-video-figure {
    margin: 22px 0 27px;
    border-radius: 19px;
  }

  #barto-article .ba-video-figure figcaption {
    padding: 14px 16px 17px;
    font-size: 14px;
  }

  #barto-article .ba-intro.ba-case-intro {
    padding: 21px 19px 21px 22px;
    border-radius: 20px;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 3.3 — без повторных заголовков видео
   ================================================================ */

#barto-article .ba-content-block-no-heading {
  padding-top: 0;
}

#barto-article .ba-content-block-no-heading > .ba-video-figure:first-child,
#barto-article .ba-content-block-no-heading > .ba-figure:first-child {
  margin-top: 0;
}

/* Даже реальный длинный заголовок переносится внутри колонки. */
#barto-article .ba-section-head {
  min-width: 0;
}

#barto-article .ba-section-head h2 {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}


/* ================================================================
   BARTO SMART ARTICLES 3.5 — клиническая плашка и короткий TOC
   ================================================================ */

/* В плашке остаётся только строка с пациентом. */
#barto-article .ba-intro.ba-case-intro {
  margin-bottom: 24px;
}

/* Остальной анамнез и описание исследования — обычный полноширинный текст. */
#barto-article .ba-case-preface {
  width: 100%;
  margin: 0 0 34px;
}

#barto-article .ba-case-preface p {
  width: 100%;
  max-width: none;
  margin: 0 0 17px;
  color: var(--ba-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}

#barto-article .ba-case-preface p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  #barto-article .ba-case-preface {
    margin-bottom: 27px;
  }

  #barto-article .ba-case-preface p {
    font-size: 17px;
    line-height: 1.68;
    margin-bottom: 15px;
  }
}


/* ================================================================
   BARTO SMART ARTICLES 3.6 — без нумерации и длинных заголовков
   ================================================================ */

/* В тексте разделы больше не имеют плашек 01, 02, 03. */
#barto-article .ba-section-head {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

#barto-article .ba-section-no {
  display: none !important;
}

#barto-article .ba-section-head h2 {
  width: 100%;
  margin: 0 !important;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* В содержании также нет номеров. */
#barto-article .ba-toc a {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

#barto-article .ba-toc a > span {
  display: none !important;
}
