:root {
  --pink: #EDBDED;
  --lightblue: #B0D1F0;
  --green: #92C159;
  --red: #FF3B01;
}

* {
  position: relative;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

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

p {
  line-height: 1.15;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 1;
}
body.overflow {
  overflow: hidden;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #202020;
  color: #ffffff;
}

.main {
  flex-grow: 1;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
}
@media (max-width: 980px) {
  .container {
    padding: 0 16px;
  }
}

.section {
  margin-bottom: 120px;
}
@media (max-width: 980px) {
  .section {
    margin-bottom: 60px;
  }
}
.section:last-child {
  margin-bottom: 0 !important;
}

.heading {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
}
.heading-1 {
  font-size: 162px;
}
@media (max-width: 1440px) {
  .heading-1 {
    font-size: 12vw;
  }
}
.heading-2 {
  font-size: 162px;
}
@media (max-width: 1440px) {
  .heading-2 {
    font-size: 10vw;
  }
}
.heading-3 {
  font-size: 32px;
}
@media (max-width: 640px) {
  .heading-3 {
    font-size: 6vw;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 49px;
  background-color: transparent;
  font-size: 14px;
  border: 1px solid;
  border-radius: 10px;
  cursor: pointer;
}
.btn-primary {
  background-color: var(--red);
  border-color: var(--red);
  color: #ffffff;
}
.btn-secondary {
  width: 137px;
  background-color: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 27px;
  padding-bottom: 32px;
}
@media (max-width: 980px) {
  .header__content .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #202020;
    z-index: 10;
  }
  .header__content .nav.show {
    display: block;
  }
  .header__content .btn:not(.btn-menu) {
    display: none;
  }
}
.header__content .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 980px) {
  .header__content .logo {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
  }
}
.header__content .menu {
  display: flex;
  gap: 30px;
  font-size: 14px;
}
@media (max-width: 980px) {
  .header__content .menu {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 32px;
  }
}
.header__content .btn-menu {
  display: none;
  height: 40px;
  width: 40px;
  padding: 0;
  border: none;
  z-index: 20;
}
.header__content .btn-menu:before {
  display: block;
  content: url("../img/menu.svg");
}
.header__content .btn-menu.open:before {
  content: url("../img/close.svg");
}
@media (max-width: 980px) {
  .header__content .btn-menu {
    display: block;
  }
}

.home .tile {
  border-radius: 10px;
}
.home .tile--grow {
  flex-grow: 1;
}
.home .tile--green {
  background-color: var(--green);
}
.home .tile--pink {
  background-color: var(--pink);
}
.home .tile--red {
  background-color: var(--red);
}
.home .tile--yellow {
  background-color: #FCC103;
}
.home .tile--blue {
  background-color: #053099;
}
.home .tile--lightblue {
  background-color: var(--lightblue);
}
.home__top {
  display: flex;
  height: 92px;
}
@media (max-width: 1440px) {
  .home__top {
    height: 6.5vw;
  }
}
@media (max-width: 640px) {
  .home__top {
    height: 50px;
  }
}
.home__heading .heading {
  display: flex;
  flex-wrap: wrap;
}
@media (max-width: 1440px) {
  .home__heading .heading {
    line-height: 1 !important;
  }
}
.home__heading .heading:first-child {
  line-height: 156px;
}
.home__heading .heading:last-child {
  line-height: 121px;
}
.home__content {
  display: grid;
  grid-template-columns: 362px 328px 1fr;
  grid-template-rows: 92px 121px;
}
@media (max-width: 1440px) {
  .home__content {
    grid-template-columns: 25% 25% 1fr;
    grid-template-rows: 50% 50%;
  }
}
@media (max-width: 980px) {
  .home__content {
    display: flex;
    flex-wrap: wrap;
  }
}
@media (max-width: 980px) {
  .home__content .tile {
    width: 100%;
    min-height: 6.5vw;
  }
}
@media (max-width: 640px) {
  .home__content .tile {
    min-height: 50px;
  }
}
.home__content .tile:first-child {
  grid-column: 1/3;
  grid-row: 1/2;
}
.home__content .tile:nth-child(2) {
  grid-column: 1/2;
  grid-row: 2/3;
}
@media (max-width: 980px) {
  .home__content .tile:nth-child(2) {
    width: 50%;
    order: 1;
  }
}
.home__content .tile:nth-child(3) {
  grid-column: 2/3;
  grid-row: 2/3;
}
@media (max-width: 980px) {
  .home__content .tile:nth-child(3) {
    width: 50%;
    order: 1;
  }
}
.home__content .tile:last-child {
  grid-column: 3/4;
  grid-row: 1/3;
}
.home__content .blockuote {
  padding: 48px 40px;
}
@media (max-width: 980px) {
  .home__content .blockuote {
    padding: 30px 20px;
  }
}
.home__content .blockuote:after {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 17px;
  height: 17px;
  border-top: 2px solid;
  border-right: 2px solid;
  content: "";
}
.home__content .blockuote__text {
  max-width: 445px;
}
.home__content .blockuote__author {
  margin-top: 30px;
  font-size: 24px;
}

.services__top {
  position: absolute;
}
@media (max-width: 1165px) {
  .services__top {
    position: relative;
    margin-bottom: 40px;
  }
  .services__top .heading {
    margin-bottom: 20px;
  }
}
.services__top p {
  max-width: 370px;
  font-size: 32px;
}
@media (max-width: 1165px) {
  .services__top p {
    max-width: 100%;
  }
}
@media (max-width: 980px) {
  .services__top p {
    font-size: 18px;
  }
}
.services__content .card-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 247px 247px 247px;
}
@media (max-width: 1165px) {
  .services__content .card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
}
.services__content .card {
  padding: 30px 40px;
  border: 1px solid;
  border-radius: 10px;
}
@media (max-width: 640px) {
  .services__content .card {
    padding: 20px;
  }
}
.services__content .card:first-child {
  grid-column: 3/4;
  grid-row: 1/2;
}
.services__content .card:nth-child(2) {
  grid-column: 2/3;
  grid-row: 2/3;
}
.services__content .card:nth-child(3) {
  grid-column: 1/2;
  grid-row: 3/4;
}
.services__content .card:last-child {
  grid-column: 3/4;
  grid-row: 3/4;
}
.services__content .card--pink {
  border-color: var(--pink);
}
.services__content .card--pink .heading {
  color: var(--pink);
}
.services__content .card--green {
  border-color: var(--green);
}
.services__content .card--green .heading {
  color: var(--green);
}
.services__content .card--lightblue {
  border-color: var(--lightblue);
}
.services__content .card--lightblue .heading {
  color: var(--lightblue);
}
.services__content .card .heading {
  margin-bottom: 30px;
}

.wins .heading {
  margin-bottom: 60px;
  text-align: right;
}
.wins .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 150px;
  padding: 0 24px;
  border-radius: 10px;
  transform: rotate(3deg);
  text-align: center;
}
.wins .card:nth-child(2) {
  transform: rotate(-3deg);
}
.wins .card--lightblue {
  background-color: var(--lightblue);
}
.wins .card--pink {
  background-color: var(--pink);
}
.wins .card--red {
  background-color: var(--red);
}
.wins .card .heading {
  margin-bottom: 16px;
}

.contact__inner {
  max-width: 660px;
  margin: 0 auto;
}
.contact__inner .logo {
  position: absolute;
  top: 313px;
  left: -160px;
  transform: rotate(-90deg);
  transform-origin: 0 0;
}
@media (max-width: 1165px) {
  .contact__inner .logo {
    display: none;
  }
}
.contact__inner .logo img {
  display: block;
  width: 313px;
  height: 73px;
}
.contact__top {
  margin-bottom: 45px;
  font-size: 32px;
}
@media (max-width: 980px) {
  .contact__top {
    font-size: 18px;
  }
}
.contact__top p:last-child {
  margin-top: 30px;
}
.contact__content input {
  width: 100%;
  padding-bottom: 16px;
  background-color: transparent;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  outline: none;
  border: none;
  border-bottom: 1px solid #979797;
}
.contact__content input::placeholder {
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
}
.contact__content .form__block {
  margin-bottom: 45px;
}
.contact__content .form__group {
  margin-bottom: 34px;
}
.contact__content .form__group:last-child {
  margin-bottom: 0;
}
.contact__content .form__bottom {
  text-align: center;
}

.footer {
  padding: 54px 0;
  text-align: center;
}
.footer p:first-child {
  margin-bottom: 50px;
  font-size: 32px;
}
@media (max-width: 980px) {
  .footer p:first-child {
    font-size: 20px;
  }
}
.footer .link--underline {
  text-decoration: none;
}
.footer .link--underline:after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--red);
  content: "";
}
.footer ul {
  display: inline-flex;
  gap: 30px;
  margin-bottom: 15px;
}
@media (max-width: 640px) {
  .footer ul {
    flex-direction: column;
    margin-bottom: 30px;
  }
}

.link {
  display: inline-block;
  transition: opacity 0.3s linear;
}
.link:hover {
  opacity: 0.8;
}
.link--underline {
  text-decoration: underline;
}
.link--green {
  color: var(--green);
}

.popup {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 27px;
  color: #ffffff;
  z-index: 20;
}
.popup__content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 37px;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(55px);
  border-radius: 10px;
  font-size: 14px;
}
@media (max-width: 1024px) {
  .popup__content {
    flex-wrap: wrap;
    gap: 16px;
  }
}
.popup__content .heading {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
}
@media (max-width: 1024px) {
  .popup__content .heading br {
    display: none;
  }
}
.popup__content .heading,
.popup__content .btn,
.popup__content p:last-child {
  flex-shrink: 0;
}
.popup__content p {
  line-height: 1.3;
}
.popup__content p:last-child {
  line-height: 1.5;
}

.page .heading {
  margin-bottom: 50px;
}
.page h2 {
  margin-top: 48px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.page h3 {
  margin-bottom: 10px;
}
.page ol,
.page .table-wrapper,
.page ul,
.page p {
  margin-bottom: 20px;
  line-height: 1.4;
}
.page ol:last-child,
.page .table-wrapper:last-child,
.page ul:last-child,
.page p:last-child {
  margin-bottom: 0;
}
.page ol a,
.page .table-wrapper a,
.page ul a,
.page p a {
  color: blue;
  text-decoration: underline;
}
.page ol,
.page ul {
  padding-left: 40px;
}
.page ol ol,
.page ol ul,
.page ul ol,
.page ul ul {
  margin-top: 20px;
}
.page ol li,
.page ul li {
  margin-bottom: 20px;
}
.page ol li:last-child,
.page ul li:last-child {
  margin-bottom: 0;
}
.page ul {
  list-style: initial;
}
.page ol {
  list-style: none;
}
.page .table-wrapper {
  overflow-y: auto;
}
.page table {
  max-width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border-spacing: 0;
}
.page table th,
.page table td {
  padding: 12px 10px;
  border: 1px solid;
  text-align: left;
}