@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/Manrope-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Marcellus';
  src: url('./assets/fonts/Marcellus-Regular.ttf') format('truetype');
}

body,
html {
  padding: 0;
  margin: 0;
  font-family: 'Manrope';
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  --black: #050318;
  --pink: #f6cbf6;
  --white: #fff;
  --bg: #f8f7f4;
  --grey: #e9ebef;
  --dark-grey: #8c8b88;
  --red: #db0034;
  color: var(--black);
}

a,
button {
  all: unset;
  cursor: pointer;
}

textarea {
  font-family: inherit;
  font-size: inherit;
  resize: none;
}

.container-inline {
  padding-inline: 205px;
}

.container-block {
  padding-block: 160px;
}

.subfont {
  font-family: 'Marcellus';
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-column {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-start {
  justify-content: start;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: start;
}

.gap-54px {
  gap: 54px;
}

.gap-12px {
  gap: 12px;
}

.gap-16px {
  gap: 16px;
}

.gap-32px {
  gap: 32px;
}

.gap-60px {
  gap: 60px;
}

.gap-20px {
  gap: 20px;
}

.d-none {
  display: none;
}

/* HEADER */

.header {
  padding-block: 25px 124px;
}

.logo {
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.44px;
}

.logo-img {
  margin-right: 5px;
}

.links {
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.3px;
}

/* MAIN */

.offers-plus {
  background: var(--pink);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 19.8px */
  letter-spacing: -0.36px;
  border-radius: 90px;
  padding: 10px 24px;
  margin-bottom: 12px;
}

.title {
  font-size: 74px;
  font-style: normal;
  line-height: 110%; /* 81.4px */
  letter-spacing: -1.48px;
  text-align: center;
}

.title-first-line {
  font-weight: 600;
}

.title-second-line {
  font-weight: 400;
  margin-bottom: 40px;
}

.subtitle {
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%; /* 22px */
  letter-spacing: -0.4px;
  margin-bottom: 40px;
  text-align: center;
}

.commencer-btn {
  color: var(--white);
  background: var(--black);
  padding: 16px 24px 18px 24px;
  border-radius: 90px;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 19.8px */
  letter-spacing: -0.36px;
}

.main-image {
  width: 100%;
  margin-block: 81px 20px;
}

/* ADVANTAGES */

.advantages {
  background: var(--bg);
}

.advantages-title {
  text-align: center;
  font-size: 48px;
  font-style: normal;
  line-height: 71px; /* 147.917% */
  letter-spacing: -1px;
  font-weight: 400;
  margin-bottom: 80px;
}

.advantages-title span {
  font-weight: 600;
  font-family: 'Manrope';
}

.grid-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 60px;
  row-gap: 54px;
}

.grid-item-title {
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 33.6px */
  letter-spacing: -0.56px;
}

.grid-item-text {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.grid-items img {
  margin-top: 6px;
}

/* RECRUTING */

.year {
  color: var(--red);
  font-size: 74px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -1.48px;
  display: inline-block;
  margin-top: 30px;
}

.recruting-title {
  font-family: Manrope;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.recruting-subtitle {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.48px;
  max-width: 607px;
}

.recruting-text {
  font-family: Manrope;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  max-width: 607px;
  margin-bottom: 30px;
}

/* SURVEY */

.survey {
  background: var(--bg);
}

.toggle-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: fit-content;
  border: 6px solid var(--red);
  border-radius: 16px;
  background: var(--red);
  font-weight: bold;
  color: var(--red);
  cursor: pointer;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 26.4px */
  letter-spacing: -0.48px;
}

.toggle-container div {
  padding: 12px 24px 14px 24px;
  border-radius: 12px;
  text-align: center;
  z-index: 1;
  color: var(--white);
  transition: background 0.3s ease, color 0.3s ease;
}

.toggle-container .active-btn {
  background: var(--white);
  color: var(--red);
}

.questions-container {
  margin-top: 80px;
  background: var(--white);
  padding: 54px 80px;
}

.steps {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.36px;
  margin-bottom: 16px;
}

.steps .active-step {
  color: var(--red);
  font-size: 28px;
  letter-spacing: -0.56px;
}

.steps-circles {
  margin-bottom: 40px;
}

.steps-circles div {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grey);
  transition: all 0.3s;
}

.steps-circles .active {
  background: var(--pink);
  transition: color 0.3s;
}

.steps-circles .prev {
  background: var(--red);
  transition: color 0.3s;
}

.steps-title {
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.56px;
  margin-bottom: 28px;
}

.steps-subtitle {
  font-family: Manrope;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  max-width: 520px;
  text-align: center;
  margin-bottom: 40px;
}

.preparation-subtitle {
  max-width: unset;
  margin-bottom: unset;
}

.preparation-items {
  margin-block: 32px 40px;
  gap: 24px;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.preparation-items-employer {
  width: 100%;
  justify-content: space-between;
}

.preparation-text {
  display: inline-block;
  max-width: 372px;
}

.preparation-item-icon {
  margin-right: 12px;
  transform: rotate(90deg);
  position: relative;
  top: 3px;
}

.preparation-btn {
  padding: 16px 24px 18px 24px;
  border-radius: 90px;
  border: 1px solid var(--black);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%; /* 19.8px */
  letter-spacing: -0.36px;
  width: 150px;
  text-align: center;
}

.prev-button {
  background: var(--white);
}

.next-button {
  background: var(--black);
  color: var(--white);
}

.disabled {
  cursor: not-allowed;
}

.steps-subtext {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  color: var(--dark-grey);
  margin-bottom: 40px;
}

.step-input-container {
  position: relative;
}

.step-input-container:not(.inputs-container) {
  margin-bottom: 40px;
}

.inputs-container {
  margin-bottom: 20px;
}

.step-input-container input,
.step-input-container textarea {
  border-radius: 8px;
  border: 1px solid var(--grey);
  outline: none;
  background: var(--white);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  padding: 10px 24px;
  width: 529px;
  height: 30px;
}

.step-input-container input:focus,
.step-input-container textarea:focus {
  border: 1px solid var(--black);
}

.step-input-container input.input-error,
.step-input-container textarea.input-error {
  border: 1px solid var(--red);
}

.error {
  color: var(--red);
  margin-top: 8px;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.date-error {
  text-align: center;
}

.step-input-container input[type='date'] {
  width: 125px;
}

.step-input-container label {
  display: none;
}

.step-input-container:has(input:focus) label,
.step-input-container:has(textarea:focus) label {
  display: block;
  color: var(--dark-grey);
  text-transform: uppercase;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 16.8px */
  position: absolute;
  background: var(--white);
  left: 20px;
  top: -8px;
  padding-inline: 10px;
}

.step-input-container input::placeholder,
.step-input-container textarea::placeholder,
input[type='date']::-webkit-datetime-edit-text,
input[type='date']::-webkit-datetime-edit-month-field,
input[type='date']::-webkit-datetime-edit-day-field,
input[type='date']::-webkit-datetime-edit-year-field {
  color: var(--dark-grey);
}

.step-input-container:has(input:focus) input::placeholder,
.step-input-container:has(textarea:focus) textarea::placeholder {
  color: transparent;
}

.file-input-container {
  width: 280px;
  height: 170px;
  border-radius: 4px;
  border: 1px dashed var(--black);
  margin-bottom: 40px;
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.file-input-container.label-error {
  border: 1px dashed var(--red);
}

.file-input-error {
  margin-top: -32px;
  margin-bottom: 40px;
}

input[type='file'] {
  display: none;
}

.steps-merci {
  color: var(--red);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; /* 43.2px */
  letter-spacing: -0.48px;
}

.step-input-container textarea {
  height: 120px;
}

/* FOOTER */

footer {
  background: var(--red);
  color: var(--white);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.3px;
  padding-block: 60px;
}

.footer-separator {
  width: 100%;
  height: 0.5px;
  margin-top: 32px;
  margin-bottom: 20px;
  background: var(--white);
}

.footer-top {
  gap: 80px;
}

.footer-bottom {
  gap: 64px;
}

.copyright {
  margin-right: 4px;
}

.footer-line {
  width: 100%;
  margin: 32px 0 20px 0;
  height: 1px;
  background-color: var(--white);
  margin-bottom: 40px;
}

@media screen and (max-width: 1024px) {
  .container-inline {
    padding-inline: 60px;
  }

  .container-block {
    padding-block: 80px;
  }

  .grid-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-us {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .about-us-image {
    border-radius: 24px;
    width: 100vw;
  }

  .year {
    margin-top: 0;
    margin-bottom: 32px;
  }
}

@media screen and (max-width: 768px) {
  .container-inline {
    padding-inline: 16px;
  }

  .grid-items {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 40px;
  }

  .header {
    padding-block: 28px 80px;
  }

  .links {
    display: none;
  }

  .logo,
  .recruting-subtitle,
  .steps span {
    font-size: 18px;
  }

  .logo-img {
    width: 21px;
    height: 21px;
  }

  .menu-icon {
    display: block;
    margin-right: 20px;
    width: 17px;
    height: 17px;
  }

  .menu-container {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
  }

  .menu {
    background: var(--white);
    display: flex;
    position: absolute;
    z-index: 3;
    width: 100vw;
  }

  .menu-header {
    padding: 28px 16px;
    border-bottom: 1px solid var(--grey);
    width: 100%;
  }

  .menu-links {
    padding: 28px 20px;
    width: 100%;
    gap: 24px;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.3px;
  }

  .offers-plus {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .title {
    font-size: 42px;
  }

  .title-second-line,
  .subtitle {
    margin-bottom: 32px;
  }

  .subtitle {
    font-size: 16px;
    max-width: 280px;
    line-height: 160%;
  }

  .commencer-btn {
    font-size: 13px;
  }

  .main-image {
    width: unset;
    margin-top: 54px;
  }

  .advantages-title {
    font-size: 32px;
    line-height: 36px;
    max-width: 280px;
    margin: auto;
    margin-bottom: 60px;
  }

  .grid-item-title {
    font-size: 24px;
  }

  .grid-item-text {
    font-size: 16px;
  }

  .gap-32px {
    gap: 20px;
  }

  .about-us-text {
    padding: 16px;
  }

  .recruting-text {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .toggleContainer {
    font-size: 13px;
  }

  .toggleContainer div {
    padding: 10px 14px 12px 14px;
  }

  .questions-container {
    margin-top: 32px;
    padding: 24px;
    margin-inline: 10px;
    border-radius: 16px;
    width: calc(100vw - 68px);
  }

  .steps-circles div {
    width: 18px;
    height: 18px;
  }

  .steps {
    font-size: 14px;
  }

  .steps-circles {
    margin-bottom: 32px;
  }

  .steps-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .steps-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
    max-width: 280px;
    line-height: normal;
  }

  .preparation-items {
    flex-direction: column;
    gap: 20px;
    margin-block: unset;
    margin-bottom: 32px;
    font-size: 15px;
  }

  .preparation-btn {
    padding: 16px 24px 18px 24px;
    font-size: 13px;
    width: 120px;
  }

  .gap-16px {
    gap: 8px;
  }

  .steps-subtext {
    font-size: 15px;
    margin-bottom: 32px;
    text-align: center;
    max-width: 280px;
    text-align: center;
  }

  .step-input-container input,
  .step-input-container textarea {
    width: 300px;
  }

  .step-input-container:has(input:focus) label,
  .step-input-container:has(textarea:focus) label {
    font-size: 10px;
    top: -6px;
  }

  .step-input-container:not(.inputs-container) {
    margin-bottom: 32px;
  }

  .steps-merci {
    font-size: 17px;
  }

  .file-input-container {
    width: 100%;
    margin-bottom: 32px;
  }

  .error {
    font-size: 12px;
  }

  .file-input-error {
    margin-top: -27px;
    margin-bottom: 32px;
  }

  footer {
    padding-block: 48px;
    font-size: 15px;
  }

  .footer-top,
  .footer-bottom,
  .footer-bottom-container {
    gap: 20px;
    flex-direction: column;
    align-items: start;
  }

  .footer-line {
    margin: 32px 0;
  }
}
