:root {
  --main-green: #27402d;
  --secondary-green: #e5ff84;
  --main-blue: #5461ee;
  --secondary-blue: #d9ecfa;
  --invert: #f6f5f0;
}

/* Header */

.header {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: 20px;
  padding: 22px 60px;
  align-items: center;
  background-color: var(--main-blue);
}
.header .header__logo {
  grid-column: 1 / 5;
}
.header .header__nav {
  grid-column: 11 / 5;
}
.header .header__nav .nav__list {
  display: flex;
  justify-content: end;
  gap: 20px;
}
.header .header__nav .nav__list .nav__item .nav__link {
  font-family: "Montserrat Black", sans-serif;
  font-size: 24px;
  line-height: 28px;
  color: var(--invert);
  transition: color 300ms ease-in-out;
}
.header .header__nav .nav__list .nav__item .nav__link:hover {
  color: var(--secondary-green);
  transition: color 300ms ease-in-out;
}
@media screen and (max-width: 769px) {
  .header {
    column-gap: 12px;
    padding: 12px 16px;
  }

  .nav__list .nav__item .nav__link {
    font-size: 16px;
    line-height: 20px;
  }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: 20px;
  padding: 52px 60px;
  background-color: var(--secondary-blue);
  align-items: center;
}
.hero .hero__image-container {
  grid-column: 6 / 10;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}
.hero .hero__content {
  grid-column: 1 / 5;
}
.hero .hero__content .hero__title {
  font-family: "Montserrat Black", sans-serif;
  font-size: 64px;
  line-height: 68px;
  margin-bottom: 8px;
  color: var(--main-green);
}
.hero .hero__content .hero__description {
  font-family: "Montserrat Medium", sans-serif;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 16px;
}
.hero .hero__content .hero__link {
  background-color: var(--main-blue);
  color: var(--secondary-green);
  font-family: "Montserrat Black", sans-serif;
  font-size: 24px;
  line-height: 28px;
  padding: 24px 60px;
  margin-left: auto;
  border-radius: 10px;
  transition: color 600ms ease-out, background-color 600ms ease-out;
}

.hero .hero__content .hero__link:hover {
  color: var(--main-blue);
  background-color: var(--secondary-green);
  transition: color 300ms ease-in, background-color 300ms ease-in;
}

@media screen and (max-width: 769px) {
  .hero {
    column-gap: 12px;
    padding: 40px 16px;
  }
  .hero .hero__image-container {
    grid-column: 1 / 11;
  }
  .hero .hero__content {
    grid-column: 1 / 11;
    margin-bottom: 40px;
  }
  .hero .hero__content .hero__title {
    font-size: 52px;
    line-height: 56px;
    margin-bottom: 8px;
  }
  .hero .hero__content .hero__link {
    font-size: 20px;
    line-height: 24px;
    padding: 12px 32px;
    margin-left: 0;
    width: auto;
    text-align: center;
  }
}

/* Work */

.work {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: 20px;
  padding: 100px 60px;
  background-color: var(--invert);
  align-items: center;
}
.work .work__title {
  font-family: "Montserrat Black", sans-serif;
  font-size: 64px;
  line-height: 68px;
  color: var(--main-green);
  grid-column: 2 / 10;
  width: fit-content;
  margin: auto;
  position: relative;
  margin-bottom: 32px;
}
.work .work__title::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -62px;
  background-image: url(../images/purple-cat.svg);
  width: 52px;
  height: 36px;
}
.work .work__title::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -62px;
  background-image: url(../images/purple-cat.svg);
  width: 52px;
  height: 36px;
}
.work .work__description {
  grid-column: 2 / 8;
  font-family: "Montserrat Medium", sans-serif;
  font-size: 16px;
  line-height: 20px;
}
.work .work__list {
  grid-column: 2 / 10;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: repeat(3, 185px);
  row-gap: 20px;
  margin-bottom: 32px;
}
.work .work__list .work__item:nth-of-type(1) {
  grid-column: 1 / 7;
}
.work .work__list .work__item:nth-of-type(2) {
  grid-column: 7 / 9;
}
.work .work__list .work__item:nth-of-type(3) {
  grid-column: 1 / 9;
}
.work .work__list .work__item:nth-of-type(4) {
  grid-column: 1 / 5;
}
.work .work__list .work__item:nth-of-type(5) {
  grid-column: 5 / 9;
}
@media screen and (max-width: 769px) {
  .work {
    column-gap: 12px;
    padding: 52px 16px;
  }

  .work .work__title {
    font-size: 24px;
    line-height: 48px;
    grid-column: 1 / 11;
    margin-bottom: 24px;
  }

  .work .work__description {
    grid-column: 1 / 11;
  }
  .work .work__list {
    grid-column: 1 / 11;
    grid-template-rows: repeat(3, 185px);
    row-gap: 12px;
    margin-bottom: 24px;
  }

  .work .work__list .work__item:nth-of-type(1) {
    grid-column: 1 / 6;
  }
  .work .work__list .work__item:nth-of-type(2) {
    grid-column: 6 / 11;
  }
  .work .work__list .work__item:nth-of-type(3) {
    grid-column: 1 / 11;
  }
  .work .work__list .work__item:nth-of-type(4) {
    grid-column: 1 / 6;
  }
  .work .work__list .work__item:nth-of-type(5) {
    grid-column: 6 / 11;
  }
}

/* Footer */

.footer {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: 20px;
  padding: 112px 60px;
  background-color: var(--main-blue);
  align-items: start;
}
.footer .footer__plan-container {
  grid-column: 1 / 6;
}

.footer .footer__plan-container iframe {
  grid-column: 1 / 6;
}
.footer .footer__content {
  grid-column: 7 / 11;
}
.footer .footer__content .footer__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Montserrat Black", sans-serif;
  font-size: 60px;
  line-height: 68px;
  color: var(--invert);
  margin-bottom: 32px;

}
.footer .footer__content .footer__phone,
.footer .footer__content .footer__mail,
.footer .footer__content .footer__address {
  display: flex;
  color: var(--invert);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.footer .footer__content .footer__address {
  margin-bottom: 32px;
}
.footer .footer__content .footer__divider {
  height: 3px;
  margin: 0;
  margin-bottom: 32px;
  background-color: var(--secondary-green);
}
.footer .footer__content .footer__bottom {
  display: flex;
  justify-content: space-between;
}
.footer .footer__content .footer__bottom .footer__desc {
  color: var(--invert);
}
.footer .footer__content .footer__bottom .footer__social-list {
  display: flex;
  gap: 16px;
  color: var(--invert);
}

@media screen and (max-width: 769px) {
  .footer {
    column-gap: 12px;
    padding: 60px 16px;
  }

  .footer .footer__plan-container {
    grid-column: 1 / 11;
    margin-bottom: 40px;
  }
  .footer .footer__content {
    grid-column: 1 / 11;
  }

  .footer .footer__content .footer__title {
    font-size: 40px;
    line-height: 44px;
    margin-bottom: 24px;
    gap: 8px;
  }
  .footer .footer__content .footer__phone,
  .footer .footer__content .footer__mail,
  .footer .footer__content .footer__address {
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 16px;
  }
  .footer .footer__content .footer__address {
    margin-bottom: 20px;
  }
  .footer .footer__content .footer__divider {
    height: 3px;
    margin: 0;
    margin-bottom: 32px;
    background-color: var(--secondary-green);
  }
  .footer .footer__content .footer__bottom {
    flex-direction: column;
  }
  .footer .footer__content .footer__bottom .footer__desc {
    margin-bottom: 16px;
  }
  .footer .footer__content .footer__bottom .footer__social-list {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    line-height: 16px;
  }
}
