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

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

*,
*::before,
*::after {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

h1,
h2,
p {
  margin: 0;
}

p {
  margin-bottom: 5px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  width: auto;
  object-fit: contain;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: Verdana, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #75787b;
  background-color: #fff;
}

h2 {
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 400;
  line-height: 62px;
  color: #ec7255;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.icon {
  display: flex;
  gap: 5px;
  align-items: baseline;
}

/* header */
.header {
  display: flex;
  gap: 50px;
  align-items: center;
  padding: 25px 20px;
  color: #3a424a;
}

.menu {
  display: flex;
  gap: 35px;
  width: 100%;
}

.menu_toggle {
  width: 100%;
}

.menu_item {
  display: flex;
  gap: 20px;
}

.menu_item li:last-of-type {
  margin-left: auto;
  font-weight: 700;
}

.menu_toggle input {
  position: absolute;
  top: -7px;
  right: 0;
  z-index: 2;
  display: block;
  width: 40px;
  height: 32px;
  cursor: pointer;
  opacity: 0;
  -webkit-touch-callout: none;
}

.hero {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 360px;
  padding: 0 20px;
  background-image: url("/img/hero.jpg");
  background-size: cover;

  @media (resolution >= 2dppx) {
    background-image: url("/img/hero@2x.jpg");
    background-size: cover;
  }
}

.hero__title {
  width: 100%;
  margin: auto;
  font-size: 72px;
  line-height: 80px;
  font-weight: 700;
  color: #fff;
}

.info {
  padding: 80px 20px;
}

.info h2 {
  margin-bottom: 30px;
  text-transform: capitalize;
}

.info a {
  text-decoration: underline;
  color: #ec7255;
}

.contacts {
  background-color: #ebeded;
}

.contacts__wrapper {
  display: flex;
  gap: 20px;
  padding: 80px 20px;
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 50%;
  font-size: 18px;
  line-height: 28px;
}

.contacts__item span {
  font-weight: 700;
}

.contacts__item a,
.contacts__item p {
  margin-bottom: 30px;
}

.contacts__item p:last-of-type {
  margin-bottom: 0;
}

.cooperation {
  width: 100%;
  min-height: 210px;
  padding: 80px 20px;
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  color: #fff;
  text-align: center;
  background-image: url("/img/cover.jpg");
  background-size: cover;

  @media (resolution >= 2dppx) {
    background-image: url("/img/cover@2x.jpg");
    background-size: cover;
  }
}

.cooperation h2 {
  margin-bottom: 55px;
}

.cooperation > p:first-of-type {
  margin-bottom: 28px;
  font-size: 32px;
  font-weight: 700;
}

.working {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
}

.working h2 {
  margin-bottom: 30px;
}

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

.working a {
  margin-top: 20px;
}

.working p {
  font-size: 18px;
  line-height: 27px;
}

.working__item {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.footer {
  padding: 55px 0;
  color: #fff;
  background-color: #3a424a;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 47px 0;
}

.footer__contacts-item {
  display: flex;
  gap: 35px;
}

.footer__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (width <= 768px) {
  h2 {
    font-size: 28px;
    line-height: 36px;
  }

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

  .hero {
    min-height: 220px;
  }

  .hero__title {
    width: auto;
    font-size: 36px;
  }

  .contacts__item {
    width: 100%;
  }

  .contacts__item a {
    margin-bottom: 0;
  }

  .cooperation p,
  .cooperation p:first-of-type {
    font-size: 18px;
    line-height: 24px;
  }

  .cooperation img {
    width: 17px;
    height: auto;
  }

  .working {
    flex-wrap: wrap;
    justify-content: center;
  }

  .working__item {
    width: 100%;
  }

  .contacts__wrapper {
    flex-wrap: wrap;
  }

  .working__img {
    width: 100%;
  }

  .footer__wrapper {
    padding: 0 20px;
  }

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

  .footer__contacts-item {
    flex-direction: column;
    gap: 20px;
  }

  .menu {
    width: auto;
  }

  /* menu */
  .menu_item {
    position: fixed;
    top: 55px;
    right: 0;
    flex-direction: column;
    width: 100vw;
    height: auto;
    padding: 20px;
    list-style-type: none;
    background-color: #fff;
    box-shadow: 0 10px 10px 2px rgb(34 60 80 / 20%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transform: translate(100%, 0);
    transform-origin: 0% 0%;
  }

  .menu_item li {
    display: block;
    padding: 10px 0;
    font-size: 22px;
  }

  .menu_item li:last-of-type {
    margin-top: 20px;
    margin-left: inherit;
  }

  .menu_toggle {
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 1;
    display: block;
    width: auto;
    user-select: none;
  }

  .menu_toggle a {
    color: #232323;
    transition: all 0.3s ease;
  }

  .menu_item li a:hover {
    padding-left: 5px;
  }

  /* Hamburger */

  .menu_toggle span {
    position: relative;
    right: 0;
    z-index: 1;
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    background: #232323;
    border-radius: 3px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
    transform-origin: 4px 0;
  }

  .menu_toggle span:first-child {
    transform-origin: 0% 0%;
  }

  .menu_toggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
  }

  .menu_toggle input:checked ~ span {
    background: #232323;
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
  }

  .menu_toggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  .menu_toggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
  }

  .menu_toggle input:checked ~ .menu_item {
    transform: none;
  }
}

@keyframes text-slide-in {
  0% {
    transform: translateX(100px);
  }

  100% {
    transform: translateY(0);
  }
}
