.partner {
  margin-bottom: 20px;

  .partner__logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    list-style: none;

    @media only screen and (max-width: 1180px) {
      grid-template-columns: repeat(3, 1fr);
    }

    @media only screen and (max-width: 768px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media only screen and (max-width: 576px) {
      grid-template-columns: 1fr;
      gap: 30px 20px;
    }
  }

  .partner__item {
    display: flex;
    justify-content: center;

    img {
      height: 200px;

      @media only screen and (max-width: 576px) {
        height: 150px;
      }
    }
  }
}

.emp {
  margin-bottom: 20px;

  .emp__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;

    @media only screen and (max-width: 1180px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media only screen and (max-width: 576px) {
      grid-template-columns: 1fr;
      gap: 10px;
    }
  }

  .emp__item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;

    @media only screen and (max-width: 576px) {
      gap: 10px;
    }

    img {
      aspect-ratio: 1/1;
      object-fit: cover;
    }

    p {
      font-family: 'Hind', sans-serif;
      line-height: 1.4em;
      font-size: 16px;
      margin: 0;
    }
  }
}

.container__alfa {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;

  @media only screen and (max-width: 1180px) {
    width: 100%;
    max-width: 100%;
  }
}

.heading__alfa {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1em;

  @media only screen and (max-width: 1180px) {
    padding-bottom: 10px;
    font-size: 28px;
  }
}

.heading__beta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1em;
  letter-spacing: -0.025em;

  @media only screen and (max-width: 1180px) {
    font-size: 28px;
  }
}

.offers,
.offers-bottom {
  --font-alfa: 'Montserrat', sans-serif;
  --font-beta: 'Hind', sans-serif;

  --text-alfa: 36px;
  --text-beta: 40px;
  --text-gamma: 14px;
  --text-delta: 18px;
  --text-epsilon: 16px;
  --text-zeta: 24px;
  --text-eta: 28px;

  --color-alfa: #0099ce;
  --color-beta: #010101;
  --color-gamma: #004a68;
  --color-delta: #b1dfee;

  font-family: var(--font-alfa);
  color: var(--color-beta);

  .offers__container {
    @media only screen and (max-width: 1220px) {
      padding: 0 20px;
    }

    @media only screen and (max-width: 576px) {
      padding: 0 10px;
    }
  }

  @media only screen and (max-width: 1180px) {
    --text-alfa: 28px;
    --text-beta: 28px;
    --text-gamma: 12px;
    --text-delta: 16px;
    --text-epsilon: 14px;
    --text-zeta: 18px;
    --text-eta: 20px;
  }
}

/* SECTIONS */
.offers {
  padding-top: 35px;

  @media only screen and (max-width: 1180px) {
    padding-top: 30px;
  }

  .offers__container {
    h2 {
      color: var(--color-beta);
      text-transform: none;
      padding-bottom: 15px;
    }
  }

  .offers__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 40px;
    padding-bottom: 20px;

    @media only screen and (max-width: 1180px) {
      padding-top: 20px;
    }
  }

  .offers__clear {
    display: flex;
    align-items: center;
    border: none;
    background-color: transparent;
    gap: 10px;
    font-size: var(--text-delta);
    font-family: var(--font-alfa);
    color: var(--color--beta);
    line-height: 1em;
    letter-spacing: -0.025em;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease-in-out;

    &:hover {
      opacity: 0.6;
    }
  }

  .offers__clear-icon {
    color: red;
    transform: rotate(45deg);
    font-size: 40px;

    @media only screen and (max-width: 1180px) {
      font-size: 30px;
    }
  }

  .offers__filters {
    border-top: 1px solid #c3c3c3;
    margin-top: 20px;

    @media only screen and (max-width: 1180px) {
      margin-top: 10px;
    }

    h3 {
      font-family: var(--font-alfa);
      font-weight: 700;
      font-size: var(--text-delta);
      line-height: 1em;
      letter-spacing: -0.025em;
      text-transform: none;
      color: var(--color--beta);
      padding-bottom: 0;
      padding-top: 0;
    }
  }

  .offers__form {
    display: flex;
    gap: 5px;

    @media only screen and (max-width: 1180px) {
      flex-wrap: wrap;
    }

    .selectric-wrapper {
      width: 100%;
      height: 55px;

      @media only screen and (max-width: 1180px) {
        width: calc(25% - 5px);
      }

      @media only screen and (max-width: 992px) {
        width: calc(33.333% - 5px);
      }

      @media only screen and (max-width: 768px) {
        width: calc(50% - 5px);
      }

      @media only screen and (max-width: 576px) {
        height: 48px;
      }

      @media only screen and (max-width: 400px) {
        width: 100%;
      }

      .selectric {
        height: 100%;
        display: flex;
        align-items: center;
        background-color: transparent;
        border-radius: 5px;
        border-color: var(--color-gamma);
        transition: all 0.3s ease-in-out;

        &:hover {
          border-color: #c3c3c3;
        }

        span.label {
          display: flex;
          align-items: center;
          line-height: 1em;
          height: 100%;
          font-family: var(--font-beta);
          font-weight: 300;
          font-size: var(--text-epsilon);
          letter-spacing: -0.025em;
          text-transform: none;
          color: var(--color--beta);
        }

        b.button {
          top: 55%;
          transform: translateY(-50%);
          background-color: transparent;
          font-size: 0em;

          &::before {
            content: '';
            background: url(./img/arrow-down.png) no-repeat;
            width: 13px;
            height: 13px;
            display: block;
            z-index: 10;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 13px;
            background-size: 100%;
          }
        }
      }

      .selectric-items {
        top: 105%;
        border: none;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);

        li {
          transition: all 0.3s ease-in-out;

          &.selected,
          &.highlighted,
          &:hover {
            background-color: var(--color-alfa);
            color: #fff;
          }
        }
      }
    }
  }

  .offers__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 230px;
    width: 100%;
    height: 55px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    background-color: var(--color-alfa);
    color: #fff;
    border: none;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;

    @media only screen and (max-width: 576px) {
      height: 48px;
    }

    &:hover {
      opacity: 0.6;
    }
  }

  .offers__results {
    overflow: auto;
  }

  .offers__table {
    margin-top: 35px;

    @media only screen and (max-width: 1180px) {
      margin-top: 25px;
    }

    thead {
      font-family: var(--font-alfa);
      font-weight: 700;
      font-size: 12px;
      line-height: 1em;
      letter-spacing: -0.025em;
      border-bottom: solid 3px var(--color-alfa);

      th {
        padding: 0 clamp(5px, 0.52vw, 10px) clamp(10px, 1.04vw, 20px)
          clamp(5px, 0.52vw, 10px);
        color: var(--color-alfa);
      }
    }

    tbody {
      font-family: var(--font-beta);
      font-weight: 300;
      font-size: var(--text-epsilon);
      line-height: 1.4em;
      letter-spacing: -0.025em;

      tr {
        border-bottom: solid 1px #c3c3c3;

        td {
          padding: clamp(10px, 1.82vw, 35px) clamp(5px, 0.52vw, 10px);
          min-width: 180px;

          p {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            overflow: hidden;
          }
        }

        td:first-child {
          font-weight: 700;
        }

        td:last-child {
          white-space: nowrap;
          padding: clamp(10px, 1.82vw, 35px) clamp(5px, 1.56vw, 30px);
          vertical-align: middle;
          min-height: 100%;
          text-transform: uppercase;
          font-weight: 700;
          font-family: var(--font-alfa);
          font-size: var(--text-gamma);
          line-height: 1;
          text-align: center;

          a {
            color: var(--color-alfa);
            transition: opacity 0.3s ease-in-out;
          }

          a:hover {
            opacity: 0.6;
          }
        }
      }
    }
  }

  .offers__pagination {
    display: flex;
    align-items: center;
    list-style: none;
    margin-top: 30px;
    justify-content: flex-end;
    flex-wrap: wrap;

    @media only screen and (max-width: 1180px) {
      margin-top: 20px;
    }
  }

  .offers__pagination-item {
    a {
      padding: 10px 20px;
      font: var(--font-beta);
      font-weight: 300;
      font-size: var(--text-delta);
      line-height: 1em;
      transition: all 0.3s ease-in-out;

      @media only screen and (max-width: 1180px) {
        padding: 5px 10px;
      }

      @media only screen and (max-width: 768px) {
        font-size: 14px;
      }
    }

    &:hover {
      a {
        color: var(--color-alfa);
      }
    }

    &.active {
      a {
        color: var(--color-alfa);
        font-weight: 700;
      }
    }
  }

  .offers__pagination-item:not(:last-child) {
    border-right: solid 1px #b2c8d1;
  }
}

.offers-bottom {
  background-color: #f7fcfd;
  padding: 90px 0 80px 0;
  margin-top: 50px;

  @media only screen and (max-width: 1180px) {
    margin-top: 20px;
    padding: 25px 0 20px 0;
  }

  .offers__heading {
    font-family: var(--font-alfa);
    font-weight: 800;
    font-size: var(--text-alfa);
    line-height: 1em;
    color: var(--color-gamma);
    letter-spacing: -0.025em;
    text-align: center;
    text-transform: uppercase;
  }

  .offers__wrapper {
    position: relative;
  }

  .offers__list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px 40px;
    list-style: none;
    position: relative;

    @media only screen and (max-width: 1380px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 40px;
    }

    @media only screen and (max-width: 1180px) {
      margin-top: 5px;
      gap: 30px 20px;
    }

    @media only screen and (max-width: 768px) {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    @media only screen and (min-width: 1380px) {
      .offers__item:not(:nth-child(-n + 3)) {
        .offers__top {
          flex-direction: column;
          align-items: flex-start;

          h3 {
            padding: 0 0 15px 0;
          }
        }

        .offers__arrow {
          right: clamp(-180px, -9.375vw, -100px);
        }
      }
    }
  }

  .offers__item {
    counter-increment: counter;
  }

  .offers__top {
    display: flex;
    align-items: center;
    gap: 15px;

    .offers__icon {
      height: 60px;

      @media only screen and (max-width: 1180px) {
        height: 50px;
      }
    }
  }

  .offers__info {
    display: flex;
    align-items: center;
    position: relative;

    h3 {
      font-family: var(--font-alfa);
      font-weight: 700;
      font-size: var(--text-delta);
      line-height: 1.05em;
      letter-spacing: -0.025em;
      text-transform: none;
      min-width: 180px;
      width: 180px;

      @media only screen and (max-width: 1380px) {
        &::before {
          display: inline;
          content: counter(counter) '. ';
          counter-increment: h3;
        }
      }
    }
  }

  .offers__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: clamp(-120px, -6.25vw, 40px);
    width: clamp(80px, 8.33vw, 160px);

    @media only screen and (max-width: 1380px) {
      display: none;
    }

    img {
      width: 100%;
    }
  }

  .offers__arrow--long {
    position: absolute;
    top: 40px;
    left: -70px;
    height: 340px;

    @media only screen and (max-width: 1380px) {
      display: none;
    }

    img {
      height: 100%;
    }
  }

  .offers__text {
    font-family: var(--font-beta);
    font-weight: 300;
    font-size: var(--text-epsilon);
    line-height: 1.4em;
    letter-spacing: -0.025em;
  }
}

.career {
  --font-alfa: 'Montserrat', sans-serif;
  --font-beta: 'Hind', sans-serif;

  --text-alfa: 36px;
  --text-beta: 40px;
  --text-gamma: 14px;
  --text-delta: 18px;
  --text-epsilon: 16px;
  --text-zeta: 24px;

  --color-alfa: #0099ce;
  --color-beta: #010101;
  --color-gamma: #004a68;
  --color-delta: #b1dfee;

  font-family: var(--font-alfa);
  color: var(--color-beta);

  @media only screen and (max-width: 1180px) {
    --text-alfa: 28px;
    --text-beta: 28px;
    --text-gamma: 12px;
    --text-delta: 16px;
    --text-epsilon: 14px;
    --text-zeta: 18px;
  }

  .career__card {
    padding: 0 20px 10px 20px;
  }

  .career__container {
    @media only screen and (max-width: 1220px) {
      padding: 0 20px;
    }

    @media only screen and (max-width: 576px) {
      padding: 0 10px;
    }
  }
}

.career-top {
  h2 {
    color: var(--color-beta);
    text-transform: none;
  }

  .career__card {
    display: flex;
    align-items: end;
    height: 330px;
    padding: 0 50px 20px 50px;
    gap: 20px;
    position: relative;
    isolation: isolate;
    color: #fff;

    @media only screen and (max-width: 1180px) {
      padding: 0 20px 20px 20px;
    }

    @media only screen and (max-width: 576px) {
      flex-direction: column;
      align-items: start;
      justify-content: end;
      height: 400px;
    }

    &::before {
      content: '';
      background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
      height: 100%;
      width: 100%;
      top: 0;
      left: 0;
      position: absolute;
      z-index: -1;
    }

    h3 {
      color: #fff;
      text-transform: none;
      padding: 0;
    }
  }

  .career__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 290px;
    width: 100%;
    height: 46px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    background-color: var(--color-alfa);
    color: #fff;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;

    @media only screen and (max-width: 576px) {
      height: 42px;
    }

    &:hover {
      box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    }
  }
}

.career__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.career-benefits {
  margin: 80px 0;

  @media only screen and (max-width: 1180px) {
    margin: 30px 0;
  }

  @media only screen and (max-width: 576px) {
    margin: 10px 0 20px 0;
  }

  h2 {
    text-transform: none;
    color: var(--color-beta);
  }

  .career__benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    list-style: none;
    margin-top: 30px;

    @media only screen and (max-width: 1180px) {
      gap: 20px;
      grid-template-columns: repeat(2, 1fr);
      margin-top: 20px;
    }

    @media only screen and (max-width: 576px) {
      grid-template-columns: 1fr;
      margin-top: 15px;
    }
  }

  .career__benefit {
    img {
      height: 54px;

      @media only screen and (max-width: 1180px) {
        height: 40px;
      }
    }

    h3 {
      color: var(--color-beta);
      font-weight: 700;
      font-size: var(--text-delta);
      letter-spacing: -0.025em;
      padding: 0;
      text-transform: none;
      margin: 10px 0;
    }

    p {
      font-family: var(--font-beta);
      font-size: var(--text-epsilon);
      letter-spacing: -0.025em;
      line-height: 1.4em;
      font-weight: 300;
    }
  }
}

.career-offers {
  .career__offers {
    position: relative;
    padding: 50px 100px 40px 100px;
    background-color: var(--color-delta);
    isolation: isolate;
    text-align: center;
    margin-bottom: 50px;

    @media only screen and (max-width: 1180px) {
      padding: 30px 20px;
      margin-bottom: 30px;
    }

    h2 {
      padding: 0;
    }
  }

  .career__bg {
    object-position: top;
  }

  .career__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 60px;
    gap: 50px;

    @media only screen and (max-width: 1180px) {
      grid-template-columns: repeat(2, 1fr);
      margin-top: 40px;
      gap: 20px;
    }

    @media only screen and (max-width: 576px) {
      grid-template-columns: 1fr;
      margin-top: 30px;
    }

    img {
      height: 70px;

      @media only screen and (max-width: 1180px) {
        height: 50px;
      }
    }

    h3 {
      font-weight: 700;
      font-size: var(--text-delta);
      letter-spacing: -0.025em;
      color: var(--color-beta);
      text-transform: none;
      padding: 0;
      margin-top: 15px;

      @media only screen and (max-width: 1180px) {
        max-width: 200px;
        margin: 0 auto;
      }
    }
  }

  .career__motto {
    font-family: var(--font-beta);
    font-size: var(--text-zeta);
    color: var(--color-beta);
    letter-spacing: -0.025em;
    margin-top: 60px;

    @media only screen and (max-width: 1180px) {
      margin-top: 40px;
    }

    @media only screen and (max-width: 576px) {
      margin-top: 30px;
    }

    strong {
      display: block;
      margin-bottom: 5px;
    }
  }
}

.departments {
  --font-alfa: 'Montserrat', sans-serif;
  --font-beta: 'Hind', sans-serif;

  --text-alfa: 36px;
  --text-beta: 40px;
  --text-gamma: 14px;
  --text-delta: 18px;
  --text-epsilon: 16px;
  --text-zeta: 24px;
  --text-eta: 28px;

  --color-alfa: #0099ce;
  --color-beta: #010101;
  --color-gamma: #004a68;
  --color-delta: #b1dfee;

  font-family: var(--font-alfa);
  color: var(--color-beta);

  @media only screen and (max-width: 1180px) {
    --text-alfa: 28px;
    --text-beta: 28px;
    --text-gamma: 12px;
    --text-delta: 16px;
    --text-epsilon: 14px;
    --text-zeta: 18px;
    --text-eta: 20px;
  }
}

.departments__container {
  h2 {
    color: var(--color-beta);
    text-transform: none;
    padding-bottom: 15px;
  }

  @media only screen and (max-width: 1220px) {
    padding: 0 20px;
  }

  @media only screen and (max-width: 576px) {
    padding: 0 10px;
  }
}

.departments__heading {
  padding-top: 30px;
}

.departments__description {
  color: var(--color-beta);
  font-size: var(--text-delta);
  font-weight: 300;
}

.departments__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin-top: 50px;
  margin-bottom: 70px;
  gap: 1px;
  background-color: #b2b2b2;

  @media only screen and (max-width: 1180px) {
    margin-top: 30px;
    margin-bottom: 40px;
  }

  @media only screen and (max-width: 576px) {
    grid-template-columns: 1fr;
    margin-top: 10px;
    margin-bottom: 30px;
  }
}

.departments__item {
  padding: 50px 40px 80px 40px;
  background-color: #fff;

  @media only screen and (max-width: 1180px) {
    padding: 20px 20px 30px 20px;
  }

  @media only screen and (max-width: 576px) {
    padding: 20px 0 30px 0;
  }

  img {
    height: 54px;

    @media only screen and (max-width: 1180px) {
      height: 40px;
    }
  }

  h3 {
    color: var(--color-beta);
    font-weight: 700;
    font-size: var(--text-delta);
    letter-spacing: -0.025em;
    padding: 0;
    text-transform: none;
    margin: 10px 0;
  }

  p {
    font-family: var(--font-beta);
    font-size: var(--text-epsilon);
    letter-spacing: -0.025em;
    line-height: 1.4em;
    font-weight: 300;
  }
}

.departments__top {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 15px;

  @media only screen and (max-width: 1180px) {
    gap: 15px;
  }

  h3 {
    color: var(--color-gamma);
    font-weight: 800;
    font-size: var(--text-eta);
    letter-spacing: -0.025em;
    padding: 0;
    text-transform: uppercase;
    margin: 10px 0;
  }
}

.w-full {
  @media only screen and (max-width: 1180px) {
    width: 100% !important;
  }
}
