@import "_variables";

html, body {
  height: 100%;
}

body{
  --font: var(--font-comfortaa), -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-family: var(--font);
  background-color: #ffffff;
}


.b-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.b-content {
  flex: 1 0 auto;
  position: relative;
  padding-bottom: 16px;

  @media (min-width: 768px) {
    padding-bottom: 80px;
  }
}

.b-inner{
  width: 100%;
  padding-right: 16px;
  padding-left: 16px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 768px) {
  .b-inner {
    max-width: 750px;
  }
}

@media (min-width: 992px) {
  .b-inner {
    max-width: 990px;
  }
}

@media (min-width: 1200px) {
  .b-inner {
    max-width: 1290px;
  }
}

.title-h1 {
  color: #2C7873;
  @include rem(18);
  font-style: normal;
  font-weight: 600;
  line-height: normal;

  @media (min-width: 576px) {
    @include rem(30);
  }

  @media (min-width: 768px) {
    @include rem(42);
  }
}

.title-h2 {
  color: #6FB98F;
  @include rem(18);
  font-style: normal;
  font-weight: 500;
  line-height: 133.333%;

  @media (min-width: 768px) {
    @include rem(24);
  }
}

.title-h3 {
  color: #6FB98F;
  @include rem(18);
  font-style: normal;
  font-weight: 500;
  line-height: 133.333%;
}


.b-article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(147deg, #E4F5FA 1.06%, #FFF 100%);
  box-shadow: 0px 4px 8px 0px rgba(102, 165, 173, 0.16);

  &__image {
    width: 100%;
    height: 197px;

    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      display: block;
    }
  }

  &__inner {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
    flex: 1 0 auto;
    height: 122px;
  }

  &__title {
    color: #003B46;
    @include rem(15);
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
  }

  &__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #66A5AD;
    @include rem(13);
    font-style: normal;
    font-weight: 500;
    line-height: 123.077%;
    flex: 1 0 auto;
  }

  &__link {
    color: #FF8A00;
    @include rem(15);
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }
}

.b-popular {
  display: flex;
  flex-direction: column;
  gap: 8px;

  &__image {
    width: 100%;
    height: 200px;
    background: lightgray 50%;
    border-radius: 16px;
    overflow: hidden;

    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      display: block;
    }
  }

  &__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 46px;
  }

  &__title {
    overflow: hidden;
    color: #003B46;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    @include rem(18);
    font-style: normal;
    font-weight: 600;
    line-height: 133.333%;
    width: 100%;
  }

  &__wrap-link {
    display: flex;
    gap: 4px;
    color: #C4DFE6;
    @include rem(15);
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
  }

  &__link {
    text-decoration: none;
    color: #2C7873;
    @include rem(15);
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
  }
}

//lang button
.b-lang-button {
  border-radius: 8px;
  background: #66A5AD;
  display: inline-flex;
  color: #fff;
  padding: 8px;
  gap: 10px;
  outline: none;
  border: none;
  cursor: pointer;
}

//switcher
.base-switcher {
  position: relative;
  display: block;
  width: 48px;
  height: 24px;
  cursor: pointer;

  &__circle {
    background: #C4DFE6;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    top: 0;
    left: 0;
    position: absolute;
    transition: left .25s ease,  background .25s ease;
  }

  &__line {
    background-color: #F8F8F7;
    border: none;
    border-radius: 24px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 24px;
  }

  &__input {
    opacity: 0;
    &:checked {
      + .base-switcher__line {

        + .base-switcher__circle {
          background: #66A5AD;
          left: 24px;
        }
      }
    }
  }
}

.b-filter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;

  &__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 16px;
  }

  &__range {
    width: 100%;
    margin-bottom: 16px;
  }

  &__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
    gap: 16px;
  }

  &__title {
    color: $black;
    @include rem(15);
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
  }
}

.base-btn {
  user-select: none;
  outline: none;
  border: none;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0px 2px 4px 0px rgba(252, 214, 70, 0.16);
  display: flex;
  gap: 10px;
  height: 54px;
  padding: 8px 31px;
  justify-content: center;
  align-items: center;
  @include rem(15);
  font-style: normal;
  font-weight: 400;
  line-height: 160%;

  @media (max-width: 767px) {
    padding: 8px;
    height: 40px;
  }
}

.btn-edit {
  user-select: none;
  outline: none;
  border: none;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  background: #66A5AD;
  box-shadow: 0px 2px 4px 0px rgba(102, 165, 173, 0.32);
  display: flex;
  gap: 10px;
  height: 54px;
  padding: 8px 31px;
  justify-content: center;
  align-items: center;
  color: $white;
  @include rem(15);
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.btn-add {
  user-select: none;
  outline: none;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  background: $white;
  border: 1px solid #66A5AD;
  box-shadow: none;
  display: flex;
  gap: 10px;
  height: 54px;
  padding: 8px 31px;
  justify-content: center;
  align-items: center;
  color: #66A5AD;
  @include rem(15);
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.btn-cancel {
  user-select: none;
  outline: none;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  background: $white;
  border: 1px solid #D93E5C;
  box-shadow: none;
  display: flex;
  gap: 10px;
  height: 54px;
  padding: 8px 31px;
  justify-content: center;
  align-items: center;
  color: #D93E5C;
  @include rem(15);
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.btn-apply {
  user-select: none;
  outline: none;
  border: none;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  background: #FFBD00;
  box-shadow: 0px 2px 4px 0px rgba(252, 214, 70, 0.16);
  display: flex;
  gap: 10px;
  height: 54px;
  padding: 8px 31px;
  justify-content: center;
  align-items: center;
  color: #003B46;
  @include rem(15);
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.btn-back {
  user-select: none;
  outline: none;
  border: none;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  background: #2C7873;
  box-shadow: 0px 2px 4px 0px rgba(252, 214, 70, 0.16);
  display: flex;
  gap: 10px;
  height: 54px;
  padding: 8px 31px;
  justify-content: center;
  align-items: center;
  color: $white;
  @include rem(15);
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.btn-video {
  user-select: none;
  outline: none;
  border: none;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  background: #DFF5FB;
  box-shadow: 0px 2px 4px 0px rgba(252, 214, 70, 0.16);
  display: flex;
  gap: 10px;
  height: 54px;
  padding: 8px 31px;
  justify-content: center;
  align-items: center;
  color: #003B46;
  @include rem(15);
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

//
.card-profile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #C4DFE6;

  &__header {
    display: flex;
    padding-bottom: 8px;
    align-items: center;
    gap: 16px;
    align-self: stretch;

    &__portrait {
      width: 86px;
      height: 86px;
      border-radius: 16px;
      border: 2px solid #FFF;
      background: lightgray 50%;
      box-shadow: 0px 8px 16px 0px rgba(102, 165, 173, 0.32);
      overflow: hidden;

      img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 16px;
      }
    }

    &__inner {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      flex: 1 0 0;
    }

    &__name {
      overflow: hidden;
      color: #003B46;
      text-overflow: ellipsis;
      white-space: nowrap;
      @include rem(18);
      font-style: normal;
      font-weight: 600;
      line-height: 133.333%;
    }

    &__price {
      color: #6FB98F;
      @include rem(15);
      font-style: normal;
      font-weight: 600;
      line-height: 120%;

      span {
        color: #B7B7B7;
      }
    }
  }

  &__skills {}

  &__title {
    color: #003B46;
    @include rem(18);
    font-style: normal;
    font-weight: 600;
    line-height: 133.333%;
  }

  &__subtitle {
    color: #003B46;
    @include rem(15);
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
  }

  &__desc {
    color: #66A5AD;
    @include rem(13);
    font-style: normal;
    font-weight: 500;
    line-height: 123.077%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  &__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    a {
      text-decoration: none;
      color: #FF8A00;
      @include rem(15);
      font-style: normal;
      font-weight: 400;
      line-height: 160%;
      display: inline-flex;
      align-items: center;
    }
  }
}

.skills__list {
  display: flex;
  flex-flow: wrap;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;

  &__item {
    height: 22px;
    border-radius: 4px;
    background: #2C7873;
    display: inline-flex;
    padding: 4px;
    color: #FFF;
    @include rem(12);
    font-style: normal;
    font-weight: 300;
    line-height: 116.667%;
    align-items: center;
  }

  &__more {
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #2C7873;
    color: #2C7873;
    @include rem(12);
    font-style: normal;
    font-weight: 300;
    line-height: 116.667%;
  }
}

.pagination {
  display: flex;
  gap: 8px;

  .page-item {
    border-radius: 8px;
    display: inline-flex;
    height: 40px;
    width: 40px;

    .page-link {
      border-radius: 8px;
      border: 1px solid #2C7873;
      display: inline-flex;
      padding: 8px 16px;
      justify-content: center;
      align-items: center;
      background: $white;
      height: 40px;
      width: 40px;
      color: #2C7873;
      text-align: center;
      font-family: 'Inter', sans-serif;
      @include rem(16);
      font-style: normal;
      font-weight: 400;
      line-height: 150%;
      text-decoration: none;
    }

    &.active {
      .page-link {
        background: #2C7873;
        color: $white;
      }
    }
  }
}

.expert-card {
  position: relative;
  border-radius: 16px;
  background: #66A5AD;
  padding: 16px;
  flex-flow: wrap;
  display: flex;

  &__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid $white;
    background: lightgray 50%;
    box-shadow: 0px 8px 16px 0px rgba(102, 165, 173, 0.32);

    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      display: block;
      border-radius: 16px;
    }
  }

  &__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
    margin-bottom: 16px;
  }

  &__wrap-btn {
    flex: 0 0 100%;
    display: flex;
    gap: 16px;

    .btn-apply,
    .btn-video {
      @media (max-width: 767px) {
        padding: 8px;
        height: 40px;
      }
    }
  }

  &__title {
    color: $white;
    @include rem(18);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }

  &__info {
    color: $white;
    @include rem(13);
    font-style: normal;
    font-weight: 500;
    line-height: 123.077%;
    display: flex;
    flex-flow: column;
    gap: 8px;

    i {
      display: none;
      font-style: normal;
    }
  }

  &__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-flow: wrap;

    span {
      display: block;
      color: #2C7873;
      @include rem(13);
      font-style: normal;
      font-weight: 500;
      line-height: 123.077%;
    }

    img {
      width: 120px;
      object-fit: cover;
    }
  }

  &__wrap {
    display: flex;
  }

  @media (min-width: 992px) {
    padding: 38px 24px 38px 24px;
    flex-flow: nowrap;
    justify-content: space-between;

    &__avatar {
      width: 220px;
      height: 220px;
      position: absolute;
      top: 24px;
      left: 24px;
    }

    &__inner {
      padding-left: 244px;
      gap: 16px;
      margin-bottom: 0;
    }

    &__wrap-btn {
      flex: 0 0 auto;
      width: 168px;

      .btn-video {
        position: absolute;
        padding: 0;
        gap: 0;
        left: 24px;
        bottom: -32px;
        width: 64px;
        height: 64px;
        font-size: 0;
        color: transparent;
        border-radius: 50%;
        background: $white;
        box-shadow: 0px 2px 4px 0px rgba(102, 165, 173, 0.32);

        img {
          width: 32px;
          height: 32px;
          object-fit: cover;
        }

      }
    }

    &__title {
      @include rem(48);
    }

    &__info {
      @include rem(18);
      flex-flow: nowrap;
      gap: 16px;
      i {
        display: block;
      }
    }

    &__rating {
      @include rem(15);
      gap: 16px;

      img {
        width: 168px;
      }
    }
  }
}

.base-text {
  color: #66A5AD;
  @include rem(13);
  font-style: normal;
  font-weight: 500;
  line-height: 123.077%;
  margin-bottom: 16px;
}


.offers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.form-link {
  display: flex;
  justify-content: center;

  a {
    color: #003B46;
    @include rem(18);
    font-style: normal;
    font-weight: 600;
    line-height: 133.333%;
  }

  @media (min-width: 768px) {
    justify-content: flex-start;
  }
}

.breadcrumb {
  margin-bottom: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  flex-flow: wrap;

  .breadcrumb-item {
    color: #6FB98F;
    @include rem(18);
    font-style: normal;
    font-weight: 500;
    line-height: 133.333%;

    a {
      color: #2C7873;
    }

    +.breadcrumb-item {
      padding-left: 0.5rem;

      &:before {
        float: left;
        padding-right: 0.5rem;
        color: #6FB98F;
        content: "/";
      }
    }
  }

  @media (min-width: 768px) {
    margin-bottom: 24px;

    .breadcrumb-item {
      @include rem(24);
    }
  }
}





