/* Small, local responsive corrections for the original page. */

@media screen and (max-width: 639px) {
  /* Keep the back-to-top control away from the left-aligned details links. */
  .t190 {
    left: auto !important;
    right: 16px !important;
  }

  /* The schedule is authored as a desktop table. Turn each row into a readable
     card on narrow screens so the details link never disappears off-screen. */
  #rec1165445091 .t396__artboard,
  #rec1165445091 .t396__filter,
  #rec1165445091 .t396__carrier {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #rec1165445091 .tn-elem[data-elem-id="1752601655210"] {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    transform: none !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  #rec1165445091 .tn-elem[data-elem-id="1752601655210"] .tn-atom__html {
    width: 100% !important;
    overflow: visible !important;
  }

  #rec1165445091 table {
    display: block !important;
    width: 100% !important;
    font-size: 15px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  #rec1165445091 thead {
    display: none !important;
  }

  #rec1165445091 tbody {
    display: block !important;
  }

  #rec1165445091 tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px 14px !important;
    margin: 0 0 12px !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  #rec1165445091 tbody td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }

  #rec1165445091 tbody td:nth-child(1) {
    grid-column: 1 !important;
    font-weight: 600 !important;
  }

  #rec1165445091 tbody td:nth-child(1)::before,
  #rec1165445091 tbody td:nth-child(2)::before,
  #rec1165445091 tbody td:nth-child(4)::before {
    display: block;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.65;
    margin-bottom: 3px;
  }

  #rec1165445091 tbody td:nth-child(1)::before {
    content: "Дата";
  }

  #rec1165445091 tbody td:nth-child(2) {
    grid-column: 1 / -1 !important;
    font-size: 16px !important;
  }

  #rec1165445091 tbody td:nth-child(2)::before {
    content: "Семінар";
  }

  #rec1165445091 tbody td:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    justify-self: end !important;
  }

  #rec1165445091 tbody td:nth-child(4) {
    grid-column: 1 / -1 !important;
    padding-top: 4px !important;
  }

  #rec1165445091 tbody td:nth-child(4)::before {
    content: "Деталі";
  }

  #rec1165445091 tbody td:nth-child(4) a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 0 2px !important;
    font-size: 16px !important;
  }
}

@media screen and (max-width: 639px) {
  /* Keep the video carousel inside the viewport while preserving its controls. */
  #rec187662072 .t-slds__main,
  #rec187662072 .t-slds__container {
    max-width: 100% !important;
  }

  #rec187662072 .t-slds__arrow_wrapper-left {
    left: 8px !important;
  }

  #rec187662072 .t-slds__arrow_wrapper-right {
    right: 8px !important;
  }
}

@media screen and (max-width: 639px) {
  /* Reflow the disciplines comparison table into compact, readable cards. */
  #rec187660705 .t612__container,
  #rec187660705 .t612__content,
  #rec187660705 .t612__wrapper,
  #rec187660705 .t612__middle {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  #rec187660705 .t612__header {
    display: none !important;
  }

  #rec187660705 .t612__middle {
    display: block !important;
  }

  #rec187660705 .t612__middle_item {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  #rec187660705 .t612__middle_item > .t612__left,
  #rec187660705 .t612__middle_item > .t612__col {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }

  #rec187660705 .t612__middle_item > .t612__left {
    background: #f7f7f7 !important;
    font-weight: 600 !important;
  }

  #rec187660705 .t612__middle_item > :last-child {
    border-bottom: 0 !important;
  }

  #rec187660705 .t612__middle_item > .t612__col::before {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }

  #rec187660705 .t612__middle_item > .t612__col:nth-child(2)::before {
    content: "5 уроків Холдіс";
  }

  #rec187660705 .t612__middle_item > .t612__col:nth-child(3)::before {
    content: "Базовий курс";
  }

  #rec187660705 .t612__middle_item > .t612__col:nth-child(4)::before {
    content: "Повний курс";
  }

  #rec187660705 .t612__middle_item > .t612__col:nth-child(5)::before {
    content: "Підручник / посібник";
  }

  #rec187660705 .t612__middle_item > .t612__col:has(.t612__title:empty) {
    display: none !important;
  }

  #rec187660705 .t612__title {
    max-width: 100% !important;
    padding: 0 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  #rec187660705 .t612__middle_item > .t612__left .t612__title {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }
}
