:root {
  --black: #000000;
  --pink: #fdf3ff;
  --yellow: #fff8f2;
  --red: #e73a33;
  --purple: #410773;
  --white: #fffaff;
  --orange: #f18515;
}

@font-face {
  font-family: "Roboto";
  src:
    url("./fonts/Roboto-SemiBold.woff2") format("woff2"),
    url("./fonts/Roboto-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("./fonts/Roboto-Medium.woff2") format("woff2"),
    url("./fonts/Roboto-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("./fonts/Roboto-Regular.woff2") format("woff2"),
    url("./fonts/Roboto-Regular.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--black);
  background-image:
    url("/images/background-top-left.png"),
    url("/images/background-top-right.png"),
    url("/images/background-bottom-right.png");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position:
    top left,
    top right,
    bottom right;
}

.container {
  padding: 0 6.7vw;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header {
  background-image: url("images/header-bckgr.png");
  background-size: cover;
  background-repeat: no-repeat;
  padding: 90px 0 109px;
}

.header__logo {
  width: 507px;
  height: 138px;
  margin: 0 auto;
}

.vacancy {
  padding: 103px 0 70px;
}

.vacancy--article {
  padding: 105px 0 167px;
}

.vacancy__wrapper {
  display: grid;
  grid-template-columns: 1fr 290px;
  align-items: start;
  gap: 17vw;
  padding: 0 10px 0 60px;
}

.vacancy__title {
  font-size: 48px;
  line-height: 100%;
  font-weight: 500;
  padding: 0 0 105px;
  text-align: center;
}

.vacancy__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6.5vw 11vw;
  grid-auto-rows: 1fr;
}

.vacancy__card {
  height: 100%;
  background: var(--pink);
  padding: 56px 35px 35px;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vacancy__card--article {
  width: 100%;
  background: none;
  padding: 0;
  gap: 57px;
}

.vacancy__card--yellow {
  background: var(--yellow);
}

.vacancy__card--long-title {
  padding: 24px 35px 35px;
}

.vacancy__card-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 100%;
}

.vacancy__card-title span {
  font-weight: 400;
  font-size: 32px;
}

.vacancy__card-title--article,
.vacancy__card-title--article span {
  font-size: 44px;
}

.vacancy__sublist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.vacancy__sublist--stack {
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
}

.vacancy__subitem {
  font-size: 16px;
  font-weight: 400;
  line-height: 34px;
  display: flex;
  gap: 10px;
}

.vacancy__subitem::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--orange);
  flex-shrink: 0;
  transform: translateY(50%);
}

.vacancy__subitem--mobile {
  display: none;
}

.vacancy__subrequirements {
  font-size: 15px;
  font-weight: 400;
  line-height: 31px;
}

.vacancy__subrequirements span {
  color: #5e5e5e;
}

.vacancy__subrequirements--article {
  font-size: 20px;
  line-height: 42px;
}

.vacancy__subitem--article {
  font-size: 20px;
  line-height: 42px;
}

.vacancy__subitem--article::before {
  width: 20px;
  height: 20px;
}

.vacancy__subitem--stack {
  font-size: 20px;
  line-height: 42px;
}

.vacancy__subitem--stack span {
  font-size: 20px;
  line-height: 42px;
  color: #9626a9;
}

.vacancy__subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 34px;
  margin: 0 0 10px;
  padding: 0;
}

.vacancy__subtitle--article {
  font-size: 30px;
  line-height: 100%;
  margin: 0 0 25px;
}

.vacancy__extra-space {
  margin: 0 0 15px;
}

.vacancy__link {
  text-decoration: none;
  color: var(--red);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  margin: auto 40px 0 auto;
}

.contacts {
  padding: 70px 0 189px;
}

.contacts--article {
  padding: 0;
  position: sticky;
  top: 20px;
}

.contacts .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contacts--article .container {
  padding: 0;
  align-items: flex-end;
}

.contacts__title {
  font-weight: 500;
  font-size: 33px;
  line-height: 100%;
  margin: 0 0 38px;
}

.contacts__title--article {
  padding: 20px 0 0;
}

.contacts__image {
  width: 278px;
  height: 278px;
  margin: 0 0 22px;
}

.contacts__caption {
  font-weight: 400;
  font-size: 27px;
  line-height: 100%;
  max-width: 278px;
  margin: 0 0 38px;
}

.contacts__caption--article {
  text-align: right;
}

.contacts__toggle {
  display: none;
}

.contacts__btn {
  border: none;
  background: none;
  font-weight: 500;
  font-size: 24px;
  line-height: 100%;
  color: var(--red);
  margin: 0 0 10px;
  cursor: pointer;
}

.contacts__btn--hide {
  display: none;
}

.contacts__item {
  display: none;
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  text-decoration: none;
  color: var(--black);
}

.contacts__item:not(:last-child) {
  margin: 0 0 10px;
}

.contacts__toggle:checked ~ .contacts__btn--show {
  display: none;
}

.contacts__toggle:checked ~ .contacts__btn--hide {
  display: block;
}

.contacts__toggle:checked ~ .contacts__item {
  display: block;
}

.footer {
  background: var(--purple);
  padding: 81px 64px 88px;
}

.footer .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 45px;
}

.footer__logo {
  width: 67px;
  height: 98px;
}

.footer__text {
  color: var(--white);
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px 0 0;
}

.footer__title {
  font-weight: 400;
  font-size: 32px;
  line-height: 100%;
}

.footer__address {
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
}

@media (max-width: 1817px) {
  .container {
    padding: 0 50px;
  }

  .vacancy__sublist--stack {
    flex-direction: column;
    gap: 8px;
  }

  .vacancy__wrapper {
    gap: 18px;
    padding: 0 20px;
  }
}

/* mobile version */
@media (max-width: 795px) {
  body {
    background-image: none;
  }

  /* .container {
    padding: 0 50px;
  } */

  .header {
    background-image: url("images/header-bckgr-mobile.png");
    padding: 35px 0 40px;
  }

  .header__logo {
    width: 176px;
    height: 48px;
    margin: 0 auto;
  }

  .vacancy {
    padding: 32px 0 14px;
  }

  .vacancy__wrapper {
    grid-template-columns: 1fr;
    padding: 0;
    /* gap: 18px; */
  }

  .vacancy__title {
    font-weight: 600;
    font-size: 14px;
    padding: 0 0 15px;
  }

  .vacancy__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vacancy__card {
    background: none;
    padding: 15px 22px 5px;
    gap: 8px;
  }

  .vacancy__card--article {
    padding: 0;
    gap: 22px;
  }

  .vacancy__card-title,
  .vacancy__card-title span {
    font-size: 10px;
    line-height: 105%;
  }

  .vacancy__card-title--article,
  .vacancy__card-title--article span {
    font-size: 14px;
  }

  .vacancy__sublist--requirements {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .vacancy__subrequirements {
    font-size: 8px;
    line-height: 12px;
    padding: 0;
  }

  .vacancy__subrequirements--article {
    font-size: 10px;
    line-height: 15px;
  }

  .vacancy__subtitle--article {
    font-weight: 600;
    font-size: 11px;
    margin: 0 0 14px;
  }

  .vacancy__sublist--mobile {
    gap: 6px;
  }

  .vacancy__subitem--mobile {
    display: flex;
  }

  .vacancy__extra-space {
    margin: 0 0 3px;
  }

  .vacancy__subitem,
  .vacancy__subitem span {
    font-size: 10px;
    line-height: 130%;
  }

  .vacancy__subitem--article::before {
    width: 7px;
    height: 7px;
  }

  .vacancy__tasks {
    display: none;
  }

  .vacancy__link {
    font-size: 9px;
    margin: -15px 0 0 auto;
  }

  .vacancy__tasks--article {
    display: block;
  }

  .vacancy__sublist--terms {
    gap: 5px;
  }

  .contacts {
    padding: 14px 0 49px;
  }

  .contacts--article {
    padding: 14px 0 45px;
  }

  .contacts--article .container {
    align-items: flex-start;
  }

  .contacts__title {
    font-weight: 600;
    font-size: 11px;
    margin: 0 0 12px;
  }

  .contacts__image {
    width: 109px;
    height: 109px;
    margin: 0 0 5px;
  }

  .contacts__caption {
    font-size: 10px;
    max-width: 109px;
    margin: 0 0 15px;
  }

  .contacts__caption--mobile {
    text-align: left;
  }

  .contacts__btn {
    font-size: 10px;
  }

  .contacts__item {
    font-size: 10px;
  }

  .footer {
    padding: 18px 0;
  }

  .footer .container {
    padding: 0 35px;
    gap: 7px;
  }

  .footer__logo {
    width: 25px;
    height: 36px;
  }

  .footer__text {
    gap: 4px;
  }

  .footer__title {
    font-size: 12px;
  }

  .footer__address {
    font-size: 9px;
  }
}
