:root {
  --primary: #0DB760;
  --primary-dark: #0ca757;
  --headers-font-color: #0B0C0C;
  --grey: #323433;
  --grey1: #92929D;
  --grey2: #BEC0BF;
  --reviuwers-font-color: #11142D;
}

.fonts {
  font-family: "Inter", sans-serif;
  font-size: 16px;

  .bold-green-font {
    font-size: 58px;
    font-weight: 700;
    letter-spacing: .024em;
    color: var(--primary);
  }

  .condensed-font {
    letter-spacing: .027em;
  }

  .condensed-font1 {
    letter-spacing: .009em;
  }

  .section-logo {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary);
  }

  .section-description h1 {
    font-size: 40px;
    font-weight: 600;
    line-height: 135%;
    color: var(--headers-font-color);
  }

  .section-description h1 span {
    color: var(--primary);
  }

  .section-description h1 span.sparse-font {
    color: var(--headers-font-color);
  }

  .section-description p {
    color: var(--grey);
  }

  .button {
    line-height: 150%;
    color: white;
  }

  .header-line {
    font-weight: 500;
  }

  .header-logo {
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 150%;
    color: var(--primary);
  }

  .nav li a {
    color: black;
    letter-spacing: .011em;
  }

  .header-main_left h1 {
    font-size: 60px;
    font-weight: 600;
    line-height: 117%;
    color: var(--headers-font-color);
    letter-spacing: .019em;
  }

  .header-main_left p {
    color: var(--grey);
    line-height: 150%;
  }

  .header-main_left p span {
    letter-spacing: .006em;
  }

  .header-main_buttons a:last-child {
    color: black;
    letter-spacing: .015em;
  }

  .header-main_right {
    color: var(--primary);
    letter-spacing: .022em;
  }

  .rewards {
    font-family: "Poppins", sans-serif;
  }

  .rewards h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 100%;
    color: var(--primary);
  }

  .rewards h2 {
    font-size: 28px;
    font-weight: 400;
    line-height: 100%;
  }

  .skills .section-description h1 {
    letter-spacing: .028em;
  }

  .skill_item h3 {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 70%;
  }

  .skill_item p {
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    color: var(--grey);
  }

  .portfolio .section-logo {
    letter-spacing: .021em;
  }

  .portfolio span.sparse-font {
    letter-spacing: .03em;
  }

  .portfolio .section-description p {
    line-height: 150%;
    letter-spacing: .007em;
  }

  .reviewer h3 {
    font-size: 16px;
    letter-spacing: .005em;
  }

  .reviewer p {
    font-size: 14px;
    line-height: 190%;
    letter-spacing: .008em;
    color: var(--grey1);
  }

  .reviews .section-description h1 {
    letter-spacing: .03em;
  }

  .reviews-carousel-cell {
    color: var(--reviuwers-font-color);
  }

  .reviews-carousel-cell p {
    letter-spacing: .004em;
  }

  .input-box input,
  textarea {
    font-family: "Inter", sans-serif;
    font-size: 16px;
  }

  .input-box input::placeholder {
    color: var(--grey1);
  }

  .feedback .button {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: .01em;
  }

  .contacts .section-description .section-logo {
    letter-spacing: .008em;
  }

  .contacts .section-description h1 {
    letter-spacing: .032em;
  }

  .contacts .section-description p {
    letter-spacing: .005em;
  }

  .contact {
    letter-spacing: -.005em;
    line-height: 200%;
  }

  .contact a {
    font-weight: 700;
    color: var(--reviuwers-font-color);
  }

  .contact p {
    letter-spacing: .008em;
    color: var(--grey1);
  }

  .footer-line p {
    letter-spacing: .003em;
  }
}

html {
  min-width: 320px;
}

body,
html {
  margin: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  padding: 0;
}

.container {
  width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* SECTION */

.section-description {
  width: fit-content;
}

.section-description h1 {
  margin: 10px 0 0 5px;
}

.section-description p {
  margin: 24px 0 0 5px;
}

.section-description a.button {
  display: inline-block;
  margin: 40px 0 0 5px;
}

.section-logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0.5px solid var(--primary);
  padding: 10px 5px;
  border-radius: 50%;
}

.button {
  width: 138px;
  padding: 16px 0px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  background-color: var(--primary);
  transition: background-color .4s ease;
}

.button:hover {
  background-color: var(--primary-dark);
}

/* HEADER */

.header-container {
  height: 785px;
  background-image: url(/assets/images/bg-header.svg);
  background-repeat: no-repeat;
  background-position: 30px 6.9px;
}

/* HEADER LINE */

.header-line {
  width: 1110px;
  margin-left: 169.1px;
  padding-top: 40.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  height: 48px;
  align-items: center;
}

.header-logo p {
  padding-left: .25em;
}

.header-logo img {
  background-color: var(--primary);
}

.menu-bg {
  display: none;
}

.nav {
  width: 362px;
  margin-left: -2px;
}

.nav ul {
  display: inline-flex;
  width: 362px;
  list-style: none;
  padding: 0;
}

nav li {
  padding-bottom: 0.5px;
  padding-left: 40px;
}

.nav li:first-child {
  padding-left: 0px;
}

.nav li a {
  text-decoration: none;
  transition: 0.3s ease;
}


.nav li a:hover {
  color: var(--primary);
  transform: scale(1.05);
}

.header-line_button {
  margin-top: -0.5px;
  margin-right: 0px;
  padding: 17.2px 23.5px;
  border: 2px solid var(--primary);
  border-radius: 13px;
  text-decoration: none;
  color: black;

  transition: background-color .4s ease;
}

.header-line_button:hover {
  background-color: var(--primary);
}

/* HEADER MAIN */

.header-main {
  display: flex;
  width: 1210px;
  margin: 76px 0px 0px 163px;
}

/* HEADER MAIN LEFT */

.header-main_left {
  width: 545px;
}

.header-main_logo {
  padding: 6px 5px;
  margin-top: 109px;
  width: 88px;
  height: 29px;
}

.header-main_left h1 {
  margin: 9px 0 0 5px;
}

.condensed-font1 {
  margin-left: -3px;
}

.header-main_left p {
  width: 530px;
  margin: 24px 0 0 5px;
}

.header-main_buttons {
  margin: 40px 0 0 5px;
  display: flex;
  align-items: center;
}

.header-main_buttons a:last-child {
  margin-left: 24px;
  display: flex;
  align-items: center;
  max-width: 142px;
  text-decoration: none;
}

/* HEADER MAIN PHOTO */

.header-main-photo-container {
  width: 464px;
  aspect-ratio: 464/544;
}

.header-main_photo {
  position: relative;
  left: 10.8%;
  width: 100%;
  height: 100%;
  margin-left: 22.85%;
  z-index: 1
}

.header-main_photo::before {
  content: "";
  position: absolute;
  background-color: var(--primary);
  border-radius: 2px;
  bottom: 8.05%;
  left: -1.4%;
  width: 90.5%;
  height: 77.2%;
  z-index: -1;
}

.header-main_photo::after {
  content: "";
  position: absolute;
  bottom: 0%;
  left: -10.9%;
  width: 85.3%;
  height: 72.8%;
  border: black solid 5px;
  border-radius: 5px;
  z-index: -1;
}

/* HEADER MAIN RIGHT */

.header-main_right {
  display: flex;
  margin: 113px 0 0 177px;
  width: 24px;
  height: 356px;
  writing-mode: vertical-lr;
  align-items: center;
}

.header-main_right_line {
  height: 64px;
  border-right: 0.5px solid var(--primary);
  margin: 32px 0 32px 4px;
}

.header-main_right a {
  margin-bottom: 32px;
  background-color: var(--primary);
  border-radius: 5px;
}

.header-main_right a:last-child {
  margin-bottom: 0px;
}

/* MAIN */

.main-container {
  margin-top: 44px;
  padding-top: 154px;
}

.main-bg-images {
  z-index: -1;
  position: absolute;
  width: 0px;
  height: 0px;
}

.main-bg-images img {
  position: relative;
}

.main-bg-images img:first-child {
  transform: scaleX(-1);
  left: 1402px;
  top: -156px;
}

.main-bg-images img:nth-child(2) {
  left: 15px;
  top: 257px;
}

.main-bg-images img:nth-child(3) {
  left: 1357px;
  top: -15px;
}

.main-bg-images img:nth-child(4) {
  transform: scaleX(-1);
  left: 25px;
  top: 578px;
}

.main-bg-images img:nth-child(5) {
  transform: scale3d(-1, -1, 1);
  left: 1400px;
  top: 481px;
}

.main-bg-images img:nth-child(6) {
  left: 1357px;
  top: 1026px;
}

.main-bg-images img:nth-child(7) {
  transform: scaleY(-1);
  left: 15px;
  top: 726.2px;
}

/* REWARDS */

.rewards {
  display: flex;
  width: 1110px;
  height: 100px;
  justify-content: space-between;
  margin: 118px 165px 0 170px;
}

.rewards h2 {
  margin-top: .857em;
}

.rewards_line {
  height: 97px;
  border-right: 1px solid var(--primary);
  margin-top: 2px;
}

/* MY SKILLS */

.skills {
  display: inline-flex;
  justify-content: space-between;
  margin-left: 166px;
  width: 1115px;
}

.skills .section-logo {
  height: 20px;
  width: 84px;
}

/* SKILLS LEFT */

.skills .section-description h1 {
  width: 440px;
}

.skills .section-description p {
  width: 500px;
  line-height: 150%;
}


/* SKILLS RIGHT */

.skills_right {
  margin-top: 9px;
  display: grid;
  width: 540px;
  height: 350px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 30px;
}

.skill_item {
  width: 255px;
  height: 160px;
  padding-left: 18px;
}

.skill_item h3 {
  margin-top: 16px;
}

.skill_item p {
  width: 245px;
  margin-top: 16px;
}

.skill_item:nth-child(2) {
  padding-left: 0px;
  grid-column: 2;
  grid-row: span 2;
  align-self: center;
}

/* PORTFOLIO */

.portfolio {
  width: 1280px;
  margin-top: 167px;
  margin-left: 165.5px;
  display: inline-flex;
  justify-content: space-between;
}

/* PORTFOLIO LEFT */

.portfolio .section-description {
  width: 355px;
  margin-top: 57px;
}

.portfolio .section-logo {
  height: 19px;
  width: 81px;
}

.portfolio h1.sparse-font {
  margin-top: 0px;
}

/* PORTFOLIO RIGHT */

.portfolio_right {
  width: 882px;
}

.main-carousel {
  height: 547px;
}

.carousel-cell {
  height: 547px;
  margin-right: 30px;
  overflow: hidden;
}

/* REVIEWS */

.reviews {
  margin: 187px 0 0 166px;
}

.reviews .section-description {
  width: 450px;
}

.reviews .section-description h1 {
  margin: 0;
  padding-left: 5px;
}

.reviews .section-logo {
  height: 18px;
  width: 79px;
}

.reviews-carousel {
  margin-top: 72px;
  margin-left: 5px;
}

.reviews-carousel-cell {
  padding-left: 31.5px;
  width: 478px;
}

.reviews-carousel-cell p {
  width: 440px;
  margin-top: 17px;
}

.reviewer {
  margin-top: 24px;
  display: grid;
  width: 143px;
  height: 41px;
  grid-template-columns: 56px 160px;
  grid-template-rows: 1fr 1fr;
}

.reviewer img {
  grid-column: 1;
  grid-row: span 2;
  align-self: center;
  margin-top: -3px;
}

.reviewer p {
  margin: 0;
}

/* CONTACTS */

.contacts {
  margin-left: 147px;
  margin-top: 220px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.contacts .section-description {
  width: 507px;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.contacts .section-description .section-logo {
  width: 76px;
  height: 17.5px;
}

.contacts .section-description h1 {
  margin-top: 11px;
}

.contacts .section-description p {
  line-height: 150%;
  text-align: center;
}

/* CONTACTS BODY */

.contacts-body {
  display: flex;
  justify-content: space-between;
  margin: 63px 0 0 48px;
  width: 1100px;
}

.contacts-body .contact:first-child {
  margin-top: 0;
}

.contact {
  margin-top: 24px;
  display: grid;
  width: 326px;
  height: 104px;
  grid-template-columns: 74px auto;
  grid-template-rows: 1fr;
}

.contact img {
  align-self: center;
  background-color: var(--primary);
  border-radius: 12px;
}

.contact .text-block {
  align-self: center;
}

.contact a {
  display: block;
  text-decoration: none;
}

/* FEEDBACK FORM */

.feedback form {
  display: grid;
  grid-template-columns: 365px 356px;
  grid-template-rows: 80px 80px 207px auto;
}

.input-box input,
textarea {
  border: 0.3px solid var(--grey2);
  padding: 0 0 0 24px;
  border-radius: 8px;
  width: 314px;
  height: 54px;
  outline: none;
}

.input-box input::placeholder {
  border-width: 0;
}

.message-box textarea {
  padding-top: 16px;
  resize: none;
  width: 684px;
  height: 170px;

}

.feedback .button {
  margin-top: 4px;
  margin-right: 15px;
  justify-self: flex-end;
  width: 176px;
  border: none;
  grid-column: 2;
  grid-row: 4;
}

/* FOOTER */

.footer-line {
  display: flex;
  width: 1106px;
  margin: 119px 0 32px 175px;
  padding-top: 40px;
  justify-content: space-between;
  border-top: 1px solid var(--grey2);
}

.footer-line p {
  margin-top: 1px;
  margin-left: -5px;
}

.social-media {
  display: flex;
  width: 144px;
  padding-left: 64px;
  justify-content: space-between;
}

.social-media a img {
  background-color: var(--primary);
  border-radius: 50%;
}

@media (max-width: 768px) {

  /*        FONTS         */

  .fonts {
    font-size: 12px;

    .section-logo {
      font-size: 11px;
    }

    .header-logo {
      font-size: 16px;
    }

    .nav li a {
      font-size: 20px;
    }

    .bold-green-font {
      font-size: 32px;
    }

    .section-description h1,
    .header-main_left h1 {
      margin: 0;
      font-size: 32px;
    }

    .header-main_buttons,
    .button {
      font-size: 16px;
    }

    .rewards h1 {
      font-size: 32px;
    }

    .rewards h2 {
      font-size: 16px;
    }
  }

  .container {
    width: 100%;
  }

  .header-container {
    height: auto;
    background-position: 0px 0px;
    background-size: calc(min(73.5%, 424px));
  }


  .section-description h1 {
    margin: 10px 0 0 0;
  }

  .section-description p {
    margin: 24px 0 0 5px;
  }

  /*        MAIN BG IMAGES        */

  .main-bg-images img:first-child {
    transform: scale(-0.5, 0.5);
    left: calc(max(100vw - 55px, 265px));
    top: 70px;
  }

  .main-bg-images img:nth-child(2) {
    transform: scale(0.5);
    left: -28px;
    top: 330px;
  }

  .main-bg-images img:nth-child(3) {
    transform: scale(0.5);
    left: calc(max(100vw - 85px, 235px));
    top: 330px;
  }

  .main-bg-images img:nth-child(4) {
    display: none;
  }

  .main-bg-images img:nth-child(5) {
    transform: scale(-0.5, -0.5);
    left: calc(max(100vw - 55px, 265px));
    top: 510px;
  }

  .main-bg-images img:nth-child(6) {
    transform: scale(0.5);
    left: calc(max(100vw - 85px, 235px));
    top: 1026px;
  }

  .main-bg-images img:nth-child(7) {
    transform: scale(-0.5, 0.5);
    left: calc(max(100vw - 55px, 265px));
    top: 1200px;
  }

  /*        HEADER-LINE         */

  .header-line {
    position: relative;
    width: calc(100% - 50px);
    min-width: 272px;
    height: 40px;
    margin: 0px;
    padding: 12px 0 12px 24px;
  }

  .header-logo {
    display: flex;
    align-items: center;
  }

  .header-logo img {
    width: 25px;
    height: auto;
  }

  .header-line_button {
    margin-right: 40px;
    padding: 10px 5px;
    border-radius: 19px;
  }

  /*        HAMBURGER MENU        */

  #menu {
    position: relative;
    width: 320px;
    z-index: 2;
  }

  #menu-bar {
    position: absolute;
    right: 0px;
    width: 24px;
    height: 24px;
    margin: 30px 0px 20px 0px;
    cursor: pointer;
  }

  .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    display: block;
    border-radius: 5px;
    transition: 0.3s ease;
  }

  #bar1 {
    transform: translateY(-4px);
  }

  #bar3 {
    transform: translateY(4px);
  }

  .nav {
    display: none;
  }

  .nav ul {
    max-width: 300px;
    padding-top: 40px;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: end;
    align-items: flex-end;
  }

  .nav li {
    padding: 12px 0;
  }

  .nav li a:hover {
    color: white;
  }

  #menu {
    top: 0;
    right: 0;
    position: absolute;
  }

  .menu-bg {
    top: 0;
    right: 0;
    position: fixed;
    display: block;
    z-index: 1;
    width: 0;
    height: 0;
    margin: 30px 0 20px 20px;
    background: radial-gradient(circle, var(--primary), var(--primary-dark));
    border-radius: 50%;
    transition: 0.3s ease;
  }

  .change {
    display: block;
  }

  .change .bar {
    background-color: white;
  }

  .change #bar1 {
    transform: translateY(2px) rotateZ(-45deg);
  }

  .change #bar2 {
    opacity: 0;
  }

  .change #bar3 {
    transform: translateY(-4px) rotateZ(45deg);
  }

  .change-bg {
    width: 520px;
    height: 460px;
    transform: translate(60%, -30%);
  }

  .nav.change {
    width: 100%;
  }

  /*        HEADER-MAIN         */

  .header-main {
    width: 92.5%;
    margin: 16px 0 0 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: right;
  }

  /* HEADER MAIN LEFT */

  .header-main_left {
    width: 100%;
    min-width: 296px;
  }

  .header-main_logo,
  .skills .section-logo,
  .portfolio .section-logo,
  .reviews .section-logo,
  .contacts .section-description .section-logo {
    padding: 3px 3px;
    margin-top: 0px;
    width: auto;
    height: auto;
  }

  .header-main_left h1 {
    margin: 9px 0 0 3px;
  }

  .header-main_left p {
    width: calc(100% - 20px);
    min-width: 291px;
  }

  .header-main_buttons {
    margin: 40px 0 0 0;
    justify-content: flex-end;
  }

  .header-main_buttons a:last-child {
    margin: 0 4.95px 0 12px;
  }

  /* HEADER MAIN PHOTO */

  .header-main-photo-container {
    width: 280px;
    margin-top: 16px;
  }

  .header-main-photo-container img {
    width: 87.28%;
    height: auto;
  }

  .header-main_photo {
    left: 16px;
    margin-left: 0;
  }

  /* HEADER MAIN RIGHT */

  .header-main_right {
    margin: 0 0 0 18.5%;
    align-items: center;
    justify-content: center;
  }

  /* REWARDS */

  .rewards {
    width: calc(100% - 20px);
    height: auto;
    text-align: center;
    margin: 42px 10px 0 10px;
  }

  .rewards_line {
    height: auto;
    margin-top: 2px;
  }

  /* MAIN */

  .main-container {
    margin-top: 0px;
    padding: 0 16px 0 24px;
  }

  /* MY SKILLS */

  .skills {
    flex-direction: column;
    margin: 40px 0 0 0;
    width: 100%;
  }

  /* SKILLS LEFT */

  .skills .section-description h1,
  .skills .section-description p {
    width: 100%;
  }

  /* SKILLS RIGHT */

  .skills_right {
    margin-top: 16px;
    display: block;
    width: auto;
    height: auto;
  }

  .skill_item {
    width: auto;
    padding-left: 0px;
  }

  .skill_item h3,
  .skill_item p {
    width: auto;
    margin-top: 12px;
  }

  .skill_item:nth-child(1) {
    text-align: right;
  }

  .skill_item:nth-child(2) {
    text-align: center;
  }

  /* PORTFOLIO */

  .portfolio {
    width: 100%;
    margin: auto;
    flex-direction: column;
    align-items: center;
  }

  /* PORTFOLIO LEFT */

  .portfolio .section-description {
    width: 100%;
    margin: 0;
  }

  .portfolio .section-description h1 {
    width: fit-content;
  }

  /* PORTFOLIO RIGHT */

  .portfolio_right {
    margin: 40px 0px;
    width: calc(100% - 70px);
    min-width: 280px;
    max-width: 620px;
  }

  .main-carousel {
    height: auto;
  }

  .carousel-cell {
    width: 280px;
    height: auto;
    aspect-ratio: 325/547;
  }

  .carousel-cell img {
    width: 100%;
    height: 100%;
  }

  /* REVIEWS */

  .reviews {
    margin: 0;
  }

  .reviews .section-description {
    width: auto;
  }

  .reviews-carousel {
    margin: 16px 0;
  }

  .reviews-carousel-cell {
    padding: 0 5px;
    width: auto;
  }

  .reviews-carousel-cell p {
    width: auto;
  }

  /* CONTACTS */

  .contacts {
    margin: 40px 0;
    display: block;
  }

  .contacts .section-description {
    width: auto;
    display: block;
  }

  .contacts .section-description p {
    text-align: left;
  }

  /* CONTACTS BODY */

  .contacts-body {
    flex-direction: row;
    margin: 16px 0 0 0;
    width: auto;
  }

  .contacts-left {
    width: fit-content;
    margin-right: 10px;
  }

  .contact {
    margin: 16px 0 0 0;
    width: fit-content;
    height: auto;
  }

  /* FEEDBACK FORM */

  .feedback {
    width: 100%;
    max-width: 328px;
    margin-right: 10px;
  }

  .feedback form {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .input-box {
    margin-top: 16px;
    width: 95%;
    max-width: 314px;
  }

  .input-box:first-child {
    margin-top: 0;
  }

  .input-box input,
  textarea {
    padding: 0 0 0 10px;
    width: 100%;
  }

  .message-box textarea {
    width: 100%;
    height: 5em;
  }

  .feedback .button {
    margin-top: 16px;
    grid-column: 1;
    grid-row: 6;
  }

  /* FOOTER */

  .footer-line {
    width: auto;
    margin: 0 16px 0 24px;
    padding: 0;
    text-align: center;
  }

  .footer-line p {
    margin: 16px 0;
  }

  .social-media {
    width: 144px;
    padding: 16px;
  }
}

@media (max-width: 576px) {

  /*        HEADER-MAIN         */

  .header-main {
    flex-direction: column;
  }

  /* HEADER MAIN RIGHT */

  .header-main_right {
    display: flex;
    margin: 0;
    width: 100%;
    height: auto;
    writing-mode: horizontal-tb;
  }

  .header-main_right_line {
    height: 0px;
    width: 64px;
    border-top: 0.5px solid var(--primary);
    margin: 16px 0 16px 4px;
  }

  .header-main_right a {
    height: 20px;
    margin: 0 0 0 5.5%;
  }

  /* CONTACTS BODY */

  .contacts-body {
    flex-direction: column;
  }

  /* FEEDBACK FORM */

  .input-box:first-child {
    margin-top: 16px;
  }

  /* FOOTER */

  .footer-line {
    flex-direction: column;
  }

  .social-media {
    width: auto;
  }
}

@media (max-width: 320px) {

  /* PORTFOLIO RIGHT */

  .carousel-cell {
    margin-right: 0px;
  }
}