/* Katarse layout parity fixes, based on measured Fortemed header spacing. */

@media (max-width: 992px) {
  .header__block.right {
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
  }

  .header__block.right > .header__actions.right {
    flex: 0 1 auto;
    margin-right: 2rem;
    min-width: 0;
  }

  .header__block.right > .menu__btn {
    flex: 0 0 3rem;
  }

  .header__block.right .header__action:last-child {
    margin-right: 0;
  }

  .header .btn {
    max-width: calc(100vw - 21rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Service cards: keep arrow below long titles. */
.services__list .service__item {
  display: flex;
}

.services__list .service__item > a {
  display: flex;
  width: 100%;
}

.services__list .service__item-wrapper {
  box-sizing: border-box;
  height: auto;
  min-height: 25rem;
  width: 100%;
}

.services__list .service__title {
  margin-bottom: 3rem;
}

.services__list .service__link {
  flex: 0 0 5rem;
  margin-top: auto;
}

@media (max-width: 640px) {
  .services__list .service__item-wrapper {
    align-items: center;
    flex-direction: row;
    min-height: 10.4rem;
    padding: 2.2rem;
  }

  .services__list .service__title {
    font-size: 2.3rem;
    line-height: 1.25;
    margin-bottom: 0;
    min-width: 0;
    padding-right: 2rem;
  }

  .services__list .service__link {
    flex: 0 0 4.4rem;
    height: 4.4rem;
    margin-top: 0;
    width: 4.4rem;
  }

  .services__list .service__link:before {
    background-size: contain;
    height: 2rem;
    width: 2rem;
  }
}

@media (max-width: 420px) {
  .header .btn {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.services .accordion__item {
  border-bottom: 1px solid #ECECEC;
}

.services .accordion__item + .accordion__item {
  border-top: 0;
}

.prices-insurers {
  margin: -1.2rem 0 3rem;
}

.prices-insurers__title {
  color: #DD2B1C;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1.6rem;
  text-transform: uppercase;
}

.prices-insurers__viewport {
  display: flex;
  justify-content: center;
  overflow: visible;
  width: 100%;
}

.prices-insurers__logos {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 2.8rem;
  justify-content: center;
  max-width: 100%;
  transition: transform .35s ease;
  width: max-content;
}

.prices-insurers__logo {
  align-items: center;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 14rem;
  height: 7.4rem;
  justify-content: center;
  padding: 0;
  text-decoration: none;
}

.prices-insurers__logo img {
  display: block;
  max-height: 5.5rem;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .prices-insurers {
    margin: -1rem 0 3.2rem;
  }

  .prices-insurers__title {
    font-size: 2.4rem;
    margin-bottom: 1.4rem;
  }

  .prices-insurers__viewport {
    display: block;
    overflow: hidden;
  }

  .prices-insurers__logos {
    gap: 2rem;
    justify-content: flex-start;
    will-change: transform;
  }

  .prices-insurers__logo {
    flex-basis: 13.8rem;
    height: 6.9rem;
  }

  .prices-insurers__logo img {
    max-height: 5.1rem;
  }
}

@media (min-width: 641px) {
.prices__search-form {
  margin-bottom: 3rem;
}

.prices__search-form .form__row {
  align-items: center;
  gap: 2rem;
  justify-content: flex-start;
}

.prices__search-form .form__group {
  flex: 1 1 auto;
  width: auto;
}

.prices__search-form .form__group:nth-child(2) {
  flex: 0 0 30rem;
  width: 30rem;
}

.prices__search-form .form__group:last-child {
  flex: 0 0 auto;
  width: auto;
}

.prices__search-form .input {
  background-color: #fff !important;
  border: 1px solid #ececec;
}

.prices__search-form .input::placeholder {
  color: #cccccc;
  opacity: 1;
}

.prices-search-wrapper::before {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.8 18.1a7.3 7.3 0 1 1 0-14.6 7.3 7.3 0 0 1 0 14.6Zm0-2.2a5.1 5.1 0 1 0 0-10.2 5.1 5.1 0 0 0 0 10.2Z' fill='%23cccccc'/%3E%3Cpath d='m16.2 16.2 4.1 4.1' stroke='%23cccccc' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  height: 1.8rem;
  left: 1.5rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  z-index: 2;
}

#prices-search {
  padding-left: 4rem;
}

.prices__search-form .jq-selectbox.input {
  background-color: #fff !important;
  border: 1px solid #ececec;
  padding: 0;
}

.prices__search-form .jq-selectbox__select-text {
  align-items: center;
  display: flex;
  height: 100%;
  line-height: 1.25;
  padding-bottom: 0;
  padding-left: 3.5rem;
  padding-right: 3.5rem;
  padding-top: 0;
  white-space: nowrap;
  width: 100% !important;
}

.prices__search-form .jq-selectbox__select {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  height: 100%;
}

  .prices__search-form .label {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
}
