/* Спільні стилі розділу «Бізнес»: підтримка підприємництва,
   місцеві та державні програми підтримки. */

.bsup-page__body {
  padding-top: 20px;
  padding-bottom: 64px;
}

.bsup {
  color: #1C2633;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- Вступний блок з ілюстрацією ---------- */

.bsup__intro {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 40px;
  margin-top: -95px;
  padding: 0 30px 16px;
}

.bsup__intro-content {
  min-width: 0;
  padding-top: 95px;
}

.bsup__intro p {
  max-width: 640px;
  margin: 0;
  color: #253349;
}

.bsup__intro-art {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  justify-self: end;
}

/* ---------- Типографіка секцій ---------- */

.bsup__section {
  margin-top: 32px;
}

.bsup__section-title {
  margin: 0 0 18px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.bsup__section-lead {
  margin: -10px 0 20px;
  color: #53677D;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Кнопки ---------- */

.bsup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 1px solid #123C6E;
  border-radius: 6px;
  background: #123C6E;
  color: #fff;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.bsup__btn:hover,
.bsup__btn:focus {
  border-color: #0C2B51;
  background: #0C2B51;
  color: #fff;
  text-decoration: none;
}

/* ---------- 1. Напрями підтримки ---------- */

.bsup__directions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsup__direction {
  min-width: 0;
  padding: 30px 20px 32px;
  border: 1px solid rgba(37, 51, 73, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 27, 38, 0.05);
  text-align: center;
}

/* У макеті друга картка виділена світлою заливкою. */
.bsup__direction_accent {
  background: #F1F5FA;
}

/* Іконки напрямів — без кольорових підкладок, одним синім, як у макеті. */
.bsup__direction-icon {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #1B5FAF;
}

.bsup__direction-icon svg {
  display: block;
  width: auto;
  height: 100%;
  fill: currentColor;
}

.bsup__direction-icon .fa {
  font-size: 50px;
  line-height: 1;
}

.bsup__direction h3 {
  margin: 0 0 10px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.bsup__direction p {
  margin: 0;
  color: #65717F;
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- 1. Корисні посилання + контакти ---------- */

.bsup__links-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
}

.bsup__links {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsup__link-card {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(37, 51, 73, 0.1);
  border-radius: 10px;
  background: #F5F8FC;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.bsup__link-card:hover,
.bsup__link-card:focus {
  border-color: rgba(27, 95, 175, 0.45);
  background: #EDF4FC;
  box-shadow: 0 10px 24px rgba(18, 27, 38, 0.07);
  color: inherit;
  text-decoration: none;
}

.bsup__link-card-title {
  display: block;
  color: #1B5FAF;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.bsup__link-card-text {
  display: block;
  margin-top: 4px;
  color: #65717F;
  font-size: 13px;
  line-height: 1.5;
}

.bsup__link-card-arrow {
  color: #1B5FAF;
  font-size: 18px;
  transition: transform .18s ease;
}

.bsup__link-card:hover .bsup__link-card-arrow {
  transform: translateX(3px);
}

.bsup__contact {
  padding: 26px 26px 28px;
  border: 1px solid rgba(27, 95, 175, 0.16);
  border-radius: 10px;
  background: #EAF2FB;
}

.bsup__contact h2 {
  margin: 0 0 10px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.bsup__contact p {
  margin: 0 0 18px;
  color: #53677D;
  font-size: 14px;
  line-height: 1.55;
}

.bsup__contact-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.bsup__contact-list li {
  display: grid;
  align-items: start;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: #253349;
  font-size: 14px;
  line-height: 1.5;
}

.bsup__contact-list i {
  margin-top: 2px;
  color: #1B5FAF;
  font-size: 15px;
  text-align: center;
}

.bsup__contact-list a {
  color: #253349;
  text-decoration: none;
  word-break: break-word;
}

.bsup__contact-list a:hover,
.bsup__contact-list a:focus {
  color: #1B5FAF;
  text-decoration: underline;
}

.bsup__contact .bsup__btn {
  width: 100%;
}

/* ---------- 2. Картка програми ---------- */

.bsup__program {
  display: grid;
  align-items: center;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 26px;
  padding: 28px 30px;
  border: 1px solid rgba(37, 51, 73, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 27, 38, 0.05);
}

.bsup__program-icon {
  display: flex;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #EAF2FB;
  color: #1B5FAF;
  font-size: 42px;
}

.bsup__program-title {
  margin: 0 0 10px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.bsup__program-text {
  margin: 0;
  color: #53677D;
  font-size: 14px;
  line-height: 1.6;
}

.bsup__program-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1B5FAF;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.bsup__program-action:hover,
.bsup__program-action:focus {
  color: #123C6E;
  text-decoration: none;
}

.bsup__program-action i {
  transition: transform .18s ease;
}

.bsup__program-action:hover i {
  transform: translateX(3px);
}

/* ---------- Таблиці ---------- */

.bsup__table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(37, 51, 73, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 27, 38, 0.04);
}

.bsup__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.bsup__table th {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(37, 51, 73, 0.12);
  background: #F5F8FC;
  color: #10254B;
  font-weight: 700;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.bsup__table td {
  padding: 18px;
  border-bottom: 1px solid rgba(37, 51, 73, 0.08);
  color: #53677D;
  vertical-align: top;
}

.bsup__table tbody tr:last-child td {
  border-bottom: 0;
}

.bsup__table tbody tr:hover {
  background: #FAFCFE;
}

.bsup__table-num {
  width: 52px;
  color: #1B5FAF;
  font-weight: 700;
  text-align: center;
}

.bsup__table-name {
  color: #10254B;
  font-weight: 600;
}

/* Таблиця державних програм має сім колонок — щоб рядки не стискались
   до нечитабельного стану, тримаємо мінімальну ширину і вмикаємо
   горизонтальне гортання у .bsup__table-wrap. */
.bsup__table_programs {
  min-width: 1060px;
}

.bsup__table_programs th,
.bsup__table_programs td {
  padding: 16px 14px;
}

/* ---------- 2. Заклик до дії ---------- */

.bsup__cta {
  display: grid;
  align-items: center;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  margin-top: 34px;
  padding: 24px 28px;
  border: 1px solid rgba(27, 95, 175, 0.16);
  border-radius: 10px;
  background: #EAF2FB;
}

.bsup__cta-icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1B5FAF;
  color: #fff;
  font-size: 26px;
}

.bsup__cta-title {
  margin: 0 0 6px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.bsup__cta-text {
  margin: 0;
  color: #53677D;
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- 3. Фільтри ---------- */

.bsup__filters {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(37, 51, 73, 0.1);
  border-radius: 10px;
  background: #F5F8FC;
}

.bsup__filter {
  min-width: 0;
}

.bsup__filter-label {
  display: block;
  margin-bottom: 8px;
  color: #53677D;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.bsup__filter select {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(37, 51, 73, 0.18);
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("../img/general/select-chevron.svg");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  color: #1C2633;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
}

.bsup__filter select:focus {
  border-color: #1B5FAF;
  outline: none;
}

.bsup__filters .bsup__btn {
  height: 46px;
  padding: 0 30px;
}

.bsup__empty {
  display: none;
  margin: 18px 0 0;
  padding: 26px 22px;
  border: 1px dashed rgba(37, 51, 73, 0.2);
  border-radius: 10px;
  color: #53677D;
  font-size: 15px;
  text-align: center;
}

.bsup__empty_visible {
  display: block;
}

/* ---------- 3. Заголовок списку ---------- */

.bsup__list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bsup__list-header .bsup__section-title {
  margin: 0;
}

.bsup__help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1B5FAF;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.bsup__help-link:hover,
.bsup__help-link:focus {
  color: #123C6E;
  text-decoration: underline;
}

/* ---------- 3. Таблиця державних програм ---------- */

.bsup__program-cell {
  display: grid;
  min-width: 250px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
}

.bsup__program-badge {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #EAF2FB;
  color: #1B5FAF;
  font-size: 20px;
}

.bsup__program-badge_green {
  background: #E7F5EC;
  color: #2E7D53;
}

.bsup__program-badge_dark {
  background: #1C2633;
  color: #fff;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.bsup__program-badge_orange {
  background: #FDF0E3;
  color: #C2691A;
}

.bsup__program-badge_violet {
  background: #F0EBFA;
  color: #6A4BA8;
}

.bsup__program-badge_amber {
  background: #FFF6DE;
  color: #C08A06;
}

.bsup__program-name {
  display: block;
  color: #10254B;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.bsup__program-desc {
  display: block;
  margin-top: 5px;
  color: #65717F;
  font-size: 13px;
  line-height: 1.5;
}

.bsup__program-link {
  color: inherit;
  text-decoration: none;
}

.bsup__program-link:hover .bsup__program-name,
.bsup__program-link:focus .bsup__program-name {
  color: #1B5FAF;
  text-decoration: underline;
}

.bsup__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bsup__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: #EAF2FB;
  color: #1B5FAF;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.bsup__tag_finance {
  background: #E7F5EC;
  color: #2E7D53;
}

.bsup__tag_grant {
  background: #E8F1FB;
  color: #1B5FAF;
}

.bsup__tag_credit {
  background: #EEF2F7;
  color: #47597A;
}

.bsup__tag_compensation {
  background: #FDF0E3;
  color: #C2691A;
}

.bsup__tag_support {
  background: #E7F3FA;
  color: #17699E;
}

.bsup__tag_infrastructure {
  background: #F0EBFA;
  color: #6A4BA8;
}

.bsup__external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(27, 95, 175, 0.35);
  border-radius: 6px;
  background: #fff;
  color: #1B5FAF;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.bsup__external:hover,
.bsup__external:focus {
  border-color: #123C6E;
  background: #123C6E;
  color: #fff;
  text-decoration: none;
}

.bsup__external i {
  font-size: 12px;
}

/* ---------- 3. Панель консультації ---------- */

.bsup__consult {
  display: grid;
  align-items: center;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 24px;
  margin-top: 34px;
  padding: 28px 30px;
  border: 1px solid rgba(27, 95, 175, 0.16);
  border-radius: 10px;
  background: #EAF2FB;
}

.bsup__consult-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1B5FAF;
  color: #fff;
  font-size: 28px;
}

.bsup__consult h2 {
  margin: 0 0 8px;
  color: #10254B;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.bsup__consult p {
  margin: 0;
  color: #53677D;
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1199.98px) {
  .bsup__intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    padding-right: 20px;
    padding-left: 20px;
  }

  .bsup__directions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsup__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsup__filters .bsup__btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bsup__consult {
    grid-template-columns: 64px minmax(0, 1fr);
    row-gap: 18px;
  }

  .bsup__consult-contacts,
  .bsup__consult .bsup__btn {
    grid-column: 2;
  }

  .bsup__consult .bsup__btn {
    justify-self: start;
  }
}

@media (max-width: 991.98px) {
  .bsup__intro,
  .bsup__links-layout {
    grid-template-columns: 1fr;
  }

  .bsup__intro {
    gap: 18px;
    margin-top: 0;
  }

  .bsup__intro-content {
    padding-top: 0;
  }

  .bsup__intro-art {
    width: min(100%, 450px);
    justify-self: center;
  }

  .bsup__program {
    grid-template-columns: 72px minmax(0, 1fr);
    row-gap: 18px;
  }

  .bsup__program-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }

  .bsup__program-action {
    grid-column: 2;
  }

  .bsup__cta {
    grid-template-columns: 56px minmax(0, 1fr);
    row-gap: 18px;
  }

  .bsup__cta .bsup__btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .bsup-page__body {
    padding-top: 8px;
    padding-bottom: 44px;
  }

  .bsup__intro {
    padding: 12px 0 28px;
  }

  .bsup__section {
    margin-top: 32px;
  }

  .bsup__section-title {
    font-size: 24px;
  }

  .bsup__filters {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .bsup__list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .bsup__program,
  .bsup__cta,
  .bsup__consult,
  .bsup__contact {
    padding: 20px;
  }

  /* Таблиці перетворюються на картки */
  .bsup__table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bsup__table,
  .bsup__table tbody,
  .bsup__table tr,
  .bsup__table td {
    display: block;
    width: 100%;
  }

  .bsup__table_programs {
    min-width: 0;
  }

  .bsup__table_programs td {
    padding: 8px 0;
  }

  .bsup__table thead {
    display: none;
  }

  .bsup__table tr {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(37, 51, 73, 0.1);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(18, 27, 38, 0.05);
  }

  .bsup__table tbody tr:hover {
    background: #fff;
  }

  .bsup__table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(37, 51, 73, 0.07);
  }

  .bsup__table tr td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .bsup__table td[data-label]::before {
    display: block;
    margin-bottom: 4px;
    color: #8894A3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .bsup__table-num {
    width: auto;
    padding-top: 0;
    text-align: left;
  }

  .bsup__program-cell {
    min-width: 0;
  }

  .bsup__external {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .bsup {
    font-size: 16px;
  }

  .bsup__directions {
    grid-template-columns: 1fr;
  }

  .bsup__program {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .bsup__program-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
}
