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

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

body,
html {
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  font-family: 'Manrope', 'Trebuchet MS', Arial, sans-serif;
  --violet: #5551ff;
  --orange: #ffa046;
  --black: #050318;
  --white: #ffffff;
  --light-grey: #dfdfdf;
  color: var(--black);
}

section {
  padding: 140px 144px 0 144px;
}

footer {
  padding: 140px 144px 45px 144px;
}

a,
a:active,
a:checked,
button {
  border: none;
  outline: none;
  text-decoration: none;
  color: unset;
  cursor: pointer;
}

header a:hover,
footer a:hover {
  color: var(--orange);
}

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

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

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

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

.flex-end {
  display: flex;
  justify-content: flex-end;
}

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

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

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

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

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

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

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

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

.h1 {
  font-family: 'Playfair';
  font-size: 64px;
  font-style: normal;
  font-weight: 400;
  line-height: 71px;
  letter-spacing: -1px;
}

.h2 {
  font-family: Manrope;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.56px;
}

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

/* HEADER */

header {
  position: relative;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  padding: 20px 144px;
}

.logo-image {
  position: absolute;
  left: 100px;
}

.title {
  text-align: center;
  margin: auto;
  margin-bottom: 44px;
  max-width: 656px;
}

.title:nth-of-type(2) {
  max-width: 829px;
}

.subtitle {
  max-width: 60%;
  text-align: center;
  margin: auto;
  margin-bottom: 80px;
  max-width: 756px;
}

.header-btn {
  background: var(--violet);
  margin-top: 88px;
  margin-bottom: 54px;
  color: var(--white);
  border-radius: 20px;
  font-family: 'Playfair';
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  padding: 12px 24px;
}

.main-image {
  width: calc(100vw - 288px);
}

/* BENEFITS */

.benefits-subtitle {
  max-width: 567px;
  text-align: center;
  margin-bottom: 44px;
}

.benefits-title {
  max-width: 830px;
  margin-bottom: 80px;
}

.benefits-grid-item img {
  padding-top: 5px;
  width: 20px;
  height: 20px;
}

.benefits-grid-item:nth-of-type(2) img,
.benefits-grid-item:nth-of-type(4) img {
  width: 24px;
  height: 24px;
}

.benefits-grid {
  display: grid;
  margin: auto;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 64px;
  row-gap: 80px;
}

/* PORTFOLIO */

.portfilio-title-images {
  border-radius: 40px;
  border: 1px solid var(--light-grey);
  display: inline-flex;
  margin: 0 24px;
  padding: 10px 12px;
  justify-content: center;
}

.portfilio-title-images img {
  height: 44px;
  margin-left: 4px;
}

.portfilio-title-images img:first-of-type {
  transform: rotate(45deg);
  height: 32px;
  position: relative;
  top: 6px;
  margin-right: 5px;
}

.portfilio-title {
  text-align: center;
  max-width: 950px;
  margin-bottom: 80px;
}

.portfolio-image,
.portfilio-item {
  max-width: calc(50vw - 144px - 27px);
}

.badge {
  background: var(--orange);
  padding: 16px 48px;
  color: var(--white);
  border-radius: 69px;
}

.badge-year {
  padding: 16px;
}

.badge-btn {
  padding: 8px;
  border-radius: 50%;
  height: 45px;
  width: 45px;
}

.badge-btn img {
  width: 28px;
  height: 28px;
  position: relative;
  top: 8px;
  left: 8px;
}

/* CONTACTS */

.contacts .title {
  margin-bottom: 0;
}

.contacts img {
  width: 20px;
  height: 20px;
}

.contacts-item {
  text-align: center;
  flex-basis: 45vw;
}

/* FOOTER */

.footer-links {
  flex-basis: 40%;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.footer-logo {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  padding-right: 180px;
}

@media screen and (max-width: 1080px) {
  .logo-image {
    left: 20px;
  }

  .header-links {
    justify-content: flex-end;
  }

  section,
  footer,
  header {
    padding-left: 20px;
    padding-right: 20px;
  }

  section,
  footer {
    padding-top: 110px;
  }

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

  .main-image {
    width: calc(100vw - 40px);
  }

  .portfolio-image,
  .portfilio-item {
    max-width: calc(50vw - 20px - 27px);
  }

  .footer-logo {
    padding-right: 40px;
  }

  .benefits-title,
  .portfilio-title,
  .subtitle {
    margin-bottom: 64px;
  }

  .header-btn {
    margin: 64px auto 40px auto;
  }

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

  .contacts-item {
    flex-basis: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  section,
  footer {
    padding-top: 80px;
  }

  .h1 {
    font-size: 44px;
    line-height: 50px;
  }

  .h2 {
    font-size: 22px;
  }

  .h3 {
    font-size: 16px;
  }

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

  .header-btn {
    margin: 48px auto 40px auto;
  }

  .portfolio-image,
  .portfilio-item {
    max-width: calc(50vw - 20px - 32px);
  }

  .portfilio-title-images img {
    height: 32px;
  }

  .portfilio-title-images img:first-of-type {
    height: 24px;
    top: 4px;
  }

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

  .footer-logo {
    padding-right: 156px;
  }

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

  .footer-links-column-mobile {
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    margin-right: 64px;
  }

  .benefits-title,
  .portfilio-title,
  .subtitle {
    margin-bottom: 44px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 44px;
    row-gap: 32px;
  }
}

@media screen and (max-width: 595px) {
  section,
  footer {
    padding-top: 44px;
  }

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

  .h1 {
    font-size: 40px;
  }

  .h2 {
    font-size: 18px;
  }

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

  .portfolio-image,
  .portfilio-item {
    max-width: calc(100vw - 40px);
  }

  .footer-logo {
    padding-right: 50px;
  }

  .benefits-grid {
    grid-template-columns: repeat(1, 1fr);
    column-gap: 32px;
  }

  .benefits-grid-item img {
    padding-top: 0;
  }
}

@media screen and (max-width: 350px) {
  .header-links {
    flex-direction: column;
    align-items: center;
  }
  .footer-logo {
    padding-right: 20px;
  }
  .footer-links-column-mobile {
    margin-right: 30px;
  }
}
