/* /for-business/ — підключається лише на шаблоні tmpl-for-business.php.
   Сторінка зібрана з компонентів сайту (main.min.css); тут — лише калькулятор,
   розширена форма і дрібні підгонки компонентів під цю сторінку. */

.fb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#calculator,
#form {
  scroll-margin-top: 5.5rem;
}

/* --- Підгонки компонентів --- */
.page-template-tmpl-for-business .course-text__content a {
  color: #ff4d00;
  white-space: nowrap;
}
.page-template-tmpl-for-business .course-text__content a:hover {
  text-decoration: underline;
}
.page-template-tmpl-for-business .course-text__content p + p {
  margin-top: 1.25rem;
}
.page-template-tmpl-for-business .course-text__content p {
  line-height: 150%;
}

/* --- Формати навчання --- */
.fb-formats {
  margin-bottom: clamp(3.75rem, 2.4rem + 6vw, 7.5rem);
}
.fb-formats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.fb-format {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border-radius: .875rem;
  background-color: #f4f7f6;
  transition: transform .3s ease, box-shadow .3s ease;
}
.fb-format:hover {
  transform: translateY(-.375rem);
  box-shadow: 0 1.25rem 2.5rem rgba(3, 9, 10, .12);
}
.fb-format__label {
  align-self: flex-start;
  padding: .375rem .875rem;
  font-weight: 600;
  font-size: .875rem;
  line-height: 130%;
  color: #fff;
  border-radius: 62.5rem;
  background: linear-gradient(90deg, #d72e00 0, #ff4d00 100%);
}
.fb-format h3 {
  margin: 1.25rem 0 1.25rem;
  font-weight: 600;
  font-size: clamp(1.375rem, 1.3rem + .35vw, 1.625rem);
  line-height: 125%;
}
.fb-format__list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
  padding-top: 1.25rem;
  border-top: .0625rem solid rgba(3, 9, 10, .1);
}
.fb-format__list li {
  position: relative;
  padding-left: 2rem;
  line-height: 140%;
  list-style: none;
}
.fb-format__list li::before {
  position: absolute;
  top: .0625rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  content: "";
  border-radius: 50%;
  background: #ff4d00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.fb-format__btn {
  width: 100%;
  margin-top: auto;
}
.fb-formats__note {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  line-height: 150%;
  border-radius: .875rem;
  box-shadow: inset .25rem 0 0 #ff4d00;
  background-color: #f4f7f6;
}
.fb-formats__note strong {
  font-weight: 600;
}

/* --- Напрями навчання --- */
.fb-stack {
  margin-bottom: clamp(3.75rem, 2.4rem + 6vw, 7.5rem);
}
.fb-stack__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.fb-stack__row {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) minmax(0, 21rem);
  gap: 1.5rem clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  line-height: 150%;
  border-radius: .875rem;
  background-color: #f4f7f6;
}
.fb-stack__num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  padding: 0 .5rem;
  font-weight: 600;
  font-size: .875rem;
  color: #fff;
  border-radius: .375rem;
  background-color: #ff4d00;
}
.fb-stack__head h3 {
  font-weight: 600;
  font-size: clamp(1.375rem, 1.3rem + .35vw, 1.625rem);
  line-height: 125%;
}
.fb-stack__head p {
  margin-top: .5rem;
  color: #555;
}
.fb-stack__label {
  margin-bottom: .75rem;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #ff4d00;
}
.fb-stack__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.fb-stack__pills li {
  padding: .4375rem .875rem;
  font-weight: 500;
  font-size: .9375rem;
  line-height: 130%;
  list-style: none;
  border-radius: 62.5rem;
  background-color: #fff;
}
.fb-stack__result {
  padding-left: clamp(1.5rem, 3vw, 3.5rem);
  border-left: .0625rem solid rgba(3, 9, 10, .1);
}
.fb-stack__result p:not(.fb-stack__label) {
  font-weight: 500;
}
.fb-stack__result .fb-stack__links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin-top: .875rem;
  font-size: 0;
}
.fb-stack__links a {
  font-weight: 600;
  font-size: 1rem;
  color: #ff4d00;
  white-space: nowrap;
}
.fb-stack__links a:hover {
  text-decoration: underline;
}

/* --- Кроки процесу --- */
.fb-steps {
  margin-bottom: clamp(3.75rem, 2.4rem + 6vw, 7.5rem);
}
.fb-steps__list {
  --fb-gap: clamp(1.25rem, 2.4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(var(--fb-cols), minmax(0, 1fr));
  gap: var(--fb-gap);
}
.fb-steps__item {
  position: relative;
  list-style: none;
}
.fb-steps__num {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.375rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(90deg, #d72e00 0, #ff4d00 100%);
}
/* Лінія від кружечка до наступного кроку */
.fb-steps__item::before {
  position: absolute;
  top: calc(1.75rem - .0625rem);
  right: calc(-1 * var(--fb-gap) + .75rem);
  left: 4.25rem;
  height: .125rem;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(255, 77, 0, .55) 0 .375rem, transparent .375rem .75rem);
}
.fb-steps__item:last-child::before {
  display: none;
}
.fb-steps__body {
  height: calc(100% - 5rem);
  padding: 1.5rem;
  line-height: 150%;
  border-radius: .875rem;
  background-color: #f4f7f6;
}
.fb-steps__body h3 {
  margin-bottom: .625rem;
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.13rem + .3vw, 1.375rem);
  line-height: 130%;
}
.fb-steps__body p {
  font-size: .9375rem;
  color: #333;
}

/* --- Список карток на темній смузі --- */
.fb-list__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.fb-list__item {
  flex: 1 1 calc((100% - (var(--fb-cols) - 1) * 1.25rem) / var(--fb-cols));
  min-width: 15rem;
  padding: 1.5rem;
  list-style: none;
  color: #fff;
  border: .0625rem solid rgba(255, 255, 255, .2);
  border-radius: 1.25rem;
  background-color: rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
}
.fb-list__num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  padding: 0 .5rem;
  font-weight: 600;
  font-size: .875rem;
  color: #fff;
  border-radius: .375rem;
  background-color: #ff4d00;
}
.fb-list__item h3 {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 135%;
}
.fb-list__item p {
  margin-top: .625rem;
  font-size: .9375rem;
  line-height: 150%;
  color: #c9cdcd;
}
.fb-list__item a {
  color: #ff4d00;
  white-space: nowrap;
}
.fb-list__item a:hover {
  text-decoration: underline;
}

/* --- Логотипи клієнтів --- */
.fb-clients {
  margin-bottom: clamp(3.75rem, 2.4rem + 6vw, 7.5rem);
}
.fb-clients__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
}
.fb-clients__item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 7.5rem;
  padding: 1.5rem 2rem;
  list-style: none;
  border-radius: .875rem;
  background-color: #f4f7f6;
}
.fb-clients__item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 2.75rem;
  object-fit: contain;
}

/* --- Калькулятор --- */
.fb-calc {
  margin-bottom: clamp(3.75rem, 2.4rem + 6vw, 7.5rem);
}
.fb-calc *,
.fb-form__body * {
  box-sizing: border-box;
}
.fb-calc__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.fb-calc__fields {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, .9rem + 1.6vw, 2.5rem);
  border-radius: .875rem;
  background-color: #f4f7f6;
}
.fb-calc__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.fb-calc__top label {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 135%;
}
.fb-calc__value {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .375rem;
  padding: .5rem .875rem;
  font-size: .875rem;
  color: #555;
  border: 1.5px solid rgba(0, 0, 0, .1);
  border-radius: .25rem;
  background-color: #fff;
}
.fb-calc__value:focus-within {
  border-color: #ff4d00;
}
.fb-calc__value input {
  width: 3.5rem;
  padding: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 150%;
  color: #03090a;
  text-align: right;
  border: 0;
  outline: 0;
  background: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.fb-calc__value input::-webkit-outer-spin-button,
.fb-calc__value input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.fb-range {
  --p: 0%;
  display: block;
  width: 100%;
  height: 1.5rem;
  margin-top: .875rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.fb-range::-webkit-slider-runnable-track {
  height: .375rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #ff4d00 var(--p), #d9dfdd var(--p));
}
.fb-range::-webkit-slider-thumb {
  width: 1.375rem;
  height: 1.375rem;
  margin-top: -.5rem;
  border: .3125rem solid #ff4d00;
  border-radius: 50%;
  background-color: #fff;
  -webkit-appearance: none;
}
.fb-range::-moz-range-track {
  height: .375rem;
  border-radius: 1rem;
  background-color: #d9dfdd;
}
.fb-range::-moz-range-progress {
  height: .375rem;
  border-radius: 1rem;
  background-color: #ff4d00;
}
.fb-range::-moz-range-thumb {
  width: .75rem;
  height: .75rem;
  border: .3125rem solid #ff4d00;
  border-radius: 50%;
  background-color: #fff;
}
.fb-calc__result {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, .9rem + 1.6vw, 2.5rem);
  color: #fff;
  line-height: 150%;
  border-radius: .875rem;
  background-color: #03090a;
  background-image: radial-gradient(26rem 18rem at 100% 0%, rgba(255, 77, 0, .38), transparent 70%);
}
.fb-calc__label {
  font-size: 1.125rem;
}
.fb-calc__year {
  margin-top: .5rem;
  font-size: 1.25rem;
}
.fb-calc__year strong {
  margin-right: .25rem;
  font-weight: 600;
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.75rem);
  line-height: 110%;
  color: #ff4d00;
  font-variant-numeric: tabular-nums;
}
.fb-calc__rows {
  margin: 1.75rem 0 1.5rem;
}
.fb-calc__rows li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding: .875rem 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.fb-calc__rows li > span {
  color: #d0d4d4;
}
.fb-calc__rows b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fb-calc__note {
  margin-bottom: 1.75rem;
  font-size: .875rem;
  line-height: 140%;
  color: #a9a9a9;
}
.fb-calc__btn {
  width: 100%;
  margin-top: auto;
}

/* --- Форма (панель .form сайту з розширеним набором полів) --- */
.fb-form .form__inner {
  align-items: flex-start;
  padding: 3.125rem 3.75rem;
}
.fb-form .form__title {
  width: 42%;
  flex-shrink: 0;
}
.fb-form .form__title p {
  line-height: 150%;
}
.fb-form .form__title .fb-form__alt {
  margin-top: 1.5rem;
  font-size: .9375rem;
}
.fb-form__alt a {
  font-weight: 600;
  white-space: nowrap;
}
.fb-form__alt a:hover {
  color: #ff4d00;
}
.fb-form__body {
  flex: 1 1 auto;
  min-width: 0;
}
.fb-form__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.fb-field--wide {
  grid-column: 1 / -1;
}
.fb-field input[type=text],
.fb-field input[type=email],
.fb-field input[type=tel],
.fb-field select,
.fb-field textarea {
  display: block;
  width: 100%;
  height: 3.0625rem;
  margin: 0;
  padding: .875rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 130%;
  color: #03090a;
  border: 1.5px solid rgba(0, 0, 0, .1);
  border-radius: .25rem;
  background-color: #fff;
}
.fb-field select {
  padding-block: 0;
  padding-right: 2.75rem;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2303090a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 1.25rem center / .75rem no-repeat;
  cursor: pointer;
}
.fb-field select.is-empty,
.fb-field ::placeholder {
  color: #757575;
}
.fb-field textarea {
  height: auto;
  min-height: 5.5rem;
  resize: vertical;
}
.fb-field input:focus,
.fb-field select:focus,
.fb-field textarea:focus {
  border-color: #ff4d00;
  outline: 0;
}
.fb-field .is-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, .45);
}
.fb-form .fb-field__err,
.fb-form .fb-form__status {
  max-width: none;
  font-weight: 500;
  font-size: .8125rem;
  line-height: 135%;
  color: #ff8a8a;
}
.fb-form .fb-field__err {
  margin-top: .3125rem;
}
.fb-form .fb-form__status {
  margin-bottom: .75rem;
  font-size: .9375rem;
}
.fb-field__err:empty,
.fb-form__status:empty {
  display: none;
}
.fb-form__consent {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  line-height: 140%;
  color: #fff;
  cursor: pointer;
}
.fb-form__consent input {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin: .0625rem 0 0;
  accent-color: #ff4d00;
  cursor: pointer;
}
.fb-form__consent a {
  text-decoration: underline;
}
.fb-form__submit {
  width: 100%;
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.fb-form__submit.is-loading {
  opacity: .65;
  pointer-events: none;
}
.fb-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.fb-form__success {
  padding: 2rem 0;
  outline: 0;
}
.fb-form__success h3 {
  margin-bottom: .75rem;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 125%;
  color: #ff4d00;
}
.fb-form .fb-form__success p {
  line-height: 150%;
}

/* --- Адаптив --- */
@media (max-width: 1023px) {
  .fb-formats__grid {
    grid-template-columns: 1fr;
  }
  .fb-format:hover {
    transform: none;
    box-shadow: none;
  }
  .fb-list__item {
    flex-basis: calc(50% - .625rem);
  }
  .fb-steps__list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .fb-steps__item {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
  }
  .fb-steps__num {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0;
    font-size: 1.125rem;
  }
  .fb-steps__item::before {
    top: 3.5rem;
    right: auto;
    bottom: -.5rem;
    left: calc(1.5rem - .0625rem);
    width: .125rem;
    height: auto;
    background: repeating-linear-gradient(180deg, rgba(255, 77, 0, .55) 0 .375rem, transparent .375rem .75rem);
  }
  .fb-steps__body {
    height: auto;
    padding: 1.25rem;
  }
  .fb-stack__row {
    grid-template-columns: 1fr;
  }
  .fb-stack__num {
    margin-bottom: .75rem;
  }
  .fb-stack__result {
    padding: 1.25rem 0 0;
    border-top: .0625rem solid rgba(3, 9, 10, .1);
    border-left: 0;
  }
  .fb-calc__inner {
    grid-template-columns: 1fr;
  }
  .fb-form .form__inner {
    flex-direction: column;
    padding: 3.125rem 1.875rem;
  }
  .fb-form .form__title {
    width: 100%;
  }
  .fb-form__body {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .fb-clients__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .fb-clients__item {
    height: 5.5rem;
    padding: 1rem 1.25rem;
  }
  .fb-clients__item img {
    height: 2rem;
  }
  .fb-formats__note {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  .fb-list__grid {
    gap: .75rem;
  }
  .fb-list__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0 .875rem;
    flex-basis: 100%;
    padding: 1rem;
    border-radius: .875rem;
  }
  .fb-list__num {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .fb-list__item h3 {
    font-size: 1rem;
  }
  .fb-list__item p {
    margin-top: .375rem;
  }
  .fb-calc__top {
    flex-direction: column;
    align-items: flex-start;
    gap: .625rem;
  }
  .fb-calc__top label {
    font-size: 1rem;
  }
  .fb-form .form__inner {
    padding: 2rem 1.25rem;
  }
  .fb-form__form {
    grid-template-columns: 1fr;
  }
}

/* --- Перший екран: hero головної сторінки (main.min.css) + надпис, друга кнопка, 4 картки --- */
.fb-hero__eyebrow {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
}
.fb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.fb-hero__actions .hero__btn {
  width: auto;
  min-width: 18rem;
  padding: 0 2rem;
  margin-top: 0;
  font-size: 1.25rem;
  color: #fff;
}
.fb-hero__actions .fb-hero__btn-ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .45);
  transition: border-color .2s ease, color .2s ease;
}
.fb-hero__actions .fb-hero__btn-ghost:hover {
  border-color: #ff4d00;
  color: #ff4d00;
}
.fb-hero__cards .hero__card {
  width: 25%;
}
@media (max-width: 767px) {
  .fb-hero__eyebrow {
    margin-bottom: .75rem;
    font-size: .75rem;
    letter-spacing: .2em;
  }
  .fb-hero__actions {
    margin-top: 1.875rem;
  }
  .fb-hero__actions .hero__btn {
    width: 100%;
    min-width: 0;
    font-size: 1.125rem;
  }
  .fb-hero__cards .hero__card {
    width: 100%;
  }
  .fb-hero .hero__description br {
    display: none;
  }
}
