* {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  }

  @font-face {
    font-family: 'AeroportMono';
    src: url(./fonts/AeroportMono.woff2) format('woff2');
  }

:root {
  --max-width: 1660px;
  --headline-size: 24px;
  --h2-size: 36px;
  --font-size: 16px;
  --line-height: 24px;
  --section-padding: 150px 0;
  --text-color: #8A8A8A;
  --headline-color: #383838;
  --client-width: 23%;
  --text-width: 600px;
  --flex-width: calc(100% / 3);
  --img-height: 80vh;
  --heading-size: 15vh;
  --input-width: 30%;
}

@media (max-width: 1200px) {
  :root {
    --max-width: 1660px;
    --headline-size: 24px;
    --h2-size: 36px;
    --font-size: 16px;
    --line-height: 24px;
    --section-padding: 150px 0;
    --text-color: #8A8A8A;
    --headline-color: #383838;
    --client-width: 23%;
    --text-width: 600px;
    --flex-width: 50%;
    --img-height: 80vh;
    --heading-size: 6vh;
    --input-width: 50%;
  }
}

@media (max-width: 700px) {
  :root {
    --max-width: 1660px;
    --headline-size: 18px;
    --h2-size: 21px;
    --font-size: 14px;
    --line-height: 22px;
    --section-padding: 150px 0;
    --text-color: #8A8A8A;
    --headline-color: #383838;
    --client-width: 23%;
    --text-width: 600px;
    --flex-width: 100%;
    --img-height: 70vh;
    --heading-size: 36px;
    --input-width: 80%;
  }
}

a {
  text-decoration: none;
  color: inherit;
  font-size: var(--font-size);
}

section {
  height: fit-content;
}

img {
    margin: 0;
}

h2 {
  font-size: var(--h2-size);
  color: var(--headline-color);
  margin-bottom: 20px;
}

h4 {
  color: var(--headline-color);
}

body {
  background-color: white;
  color: var(--text-color);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: fixed;
  background-color: black;
  width: 100%;
  z-index: 7;
  padding: 10px 0;
}

.header-nav-items {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size);
  line-height: 1;
}

.header-nav-tel {
  padding: 20px 36px;
  background-color: #444850;
  color: white;
}

.main-nav {
  padding: 110px 0 40px 0;
  color: black;
  font-weight: 500;
  line-height: 1;
  display: flex;
  justify-content: space-between;
}

.logo-header {
  display: block;
  height: 25px;
}

.logo {
  height: 25px;
}

.nav-items {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  color: white;
  font-size: 14px;
}

@media (max-width: 800px) {
  .nav-items {
    display: none;
  }
}

.burger {
  position: relative;
  display: none;
  width: 50px;
  height: 15px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .burger {
    display: block;
  }
}

.line-one {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background: #FF375B;
  transition: ease-in-out 0.5s;
}


.line-two {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 90%;
  height: 1px;
  background: #FF375B;
  transition: ease-in-out 0.5s;
}

.line-three {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 80%;
  height: 1px;
  background: #FF375B;
  transition: ease-in-out 0.5s;
}

.burger-items {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(40px);
  z-index: 2;
  transition: ease-in-out 0.5s;
}

.burger-items .logo-header {
  margin-bottom: 30px;
}

.burger-items a {
  font-size: 14px;
  /* text-transform: uppercase; */
}

.burger-item:not(:last-child) {
  margin-bottom: 20px;
}

.nav-items a {
  font-size: 14px;
  /* text-transform: uppercase; */
  letter-spacing: 0.05em;
}

.logo-text {
  color: white;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.nav-item {
  position: relative;
  display: block;
  padding: 5px;
}

.nav-item:hover .back-head {
  width: 100%;
  height: 1px;
}

.about-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  /* padding: 50px; */
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: white;
  padding: 50px;
}

@media (max-width: 800px) {
  .about-block {
    height: 100vh;
    padding: 30px;
  }
}

.words-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  -webkit-gap: 10px;
  position: relative;
  z-index: 5;
  margin-bottom: 5px;
}

.tag-list {
  color: white;
  padding: 5px 15px;
  background-color: #FF375B;
  border-radius: 5px;
}

.main-video {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  object-fit: cover;
}

.logo-block {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.logo-name {
  font-size: var(--headline-size);
  font-weight: 600;
  margin-left: 15px;
}

.main-heading {
  display: block;
  font-size: var(--heading-size);
  font-weight: 800;
  line-height: var(--heading-size);
  color: white;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  letter-spacing: 0.02em;
}

.back-head {
  display: block;
  position: absolute;
  background: #FF375B;
  width: 0;
  height: 1px;
  /* top: 0; */
  left: 0;
  bottom: -2px;
  right: 0;
  z-index: -1;
  transition: ease-in-out 0.2s;
}

.main-heading:hover .back-head {
  width: 100%;
  height: 100%;
}

@media (max-width: 800px) {
  .back-head {
    display: block;
    position: absolute;
    background: #FF375B;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    transition: ease-in-out 0.5s;
  }

  .main-heading:nth-child(2n) .back-head {
    background: #0059ff;
  }
}

.main-heading:not(:last-child) {
  margin-right: 30px;
}

.text-hero {
  display: block;
  position: relative;
  font-size: 18px;
  color: white;
  font-weight: 400;
  line-height: 26px;
  max-width: 800px;
  z-index: 1;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .text-hero {
    font-size: 16px;
    line-height: 24px;
  }
}

.portfolio {
  padding: 0;
}

.portfolio-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
}

.portfolio-item {
  width: var(--flex-width);
  /* box-shadow: 5px 5px 20px rgba(210, 210, 210, 0.25); */
  /* border-radius: 15px; */
  overflow: hidden;
  position: relative;
  transition: ease-in-out 0.2s;
}

.portfolio-item:last-child {
  margin-right: auto;
}

/* .portfolio-item:hover {
  transform: scale(1.02, 1.02);
  transition: ease-in-out 0.2s;
} */

.portfolio-img {
  display: block;
  width: 100%;
  height: var(--img-height);
  object-fit: cover;
  object-position: center;
  transition: ease-in-out 0.5s;
  position: relative;
  top:0;
  left: 0;
  right: 0;
  bottom: 0;
  /* filter: saturate(0.2) contrast(0.5); */
}

.line {
  display: block;
  position: absolute;
  top: calc(var(--img-height) - 3px);
  left: 0;
  right: 0;
  height: 3px;
  width: 0;
  background: #FF375B;
  z-index: 2;
  transition: ease-in-out 0.5s;
}

.portfolio-item:hover .line {
  width: 100%;
  transition: ease-in-out 0.5s;
}

.portfolio-img:hover {
  transition: ease-in-out 0.5s;
  position: relative;
  object-fit: cover;
  transform: scale(1.03);
  top: -10px;
  left: 0;
  right: 0;
  bottom: 0;
  /* filter: saturate(1); */
}

.client-name {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 30px;
  padding-top: 80px;
  background: linear-gradient(0deg, #00000081 0%, rgba(0, 0, 0, 0) 100%);
}

.client-heading {
  display: inline-block;
  font-size: 21px;
  color: white;
  font-weight: 800;
  margin-bottom: 10px;
}

.client-description {
  color: white;
}

.work {
    padding: 50px 20px;
    padding-top: 150px;
    border-bottom: 1px solid #d1d1d1;
}

.work-heading {
  font-size: 36px;
  line-height: 48px;
  font-weight: 800;
}

@media (max-width: 800px) {
  .work-heading {
    font-size: 24px;
    line-height: 36px;
    font-weight: 800;
  }
}

.problem {
    padding: 45px 20px;
}

.problem h3 {
    font-size: 24px;
    line-height: 28px;
    color: black;
    margin-bottom: 20px;
}

.problem p {
    max-width: 750px;
    font-size: 16px;
    line-height: 28px;
    color: #8A8A8A;
}

.video-frame {
    width: 100%;
    height: auto;
    object-fit: cover;
    padding: 0;
}

.flex-img {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.img-frame {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0;
}

.img-frame img {
    display: block;
    margin: 0;
}


.write-us {
  display: inline-block;
  position: fixed;
  z-index: 5;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: url('/img/questions.svg');
  background-size: 25px auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #FF375B;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form-quest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 101vh;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(40px);
  z-index: 8;
  transition: ease-in-out 0.5s;
}

.form-heading {
  color: white;
  width: var(--input-width);
  font-size: var(--headline-size);
  line-height: calc(var(--headline-size) + 5px);
}

.input-form {
  display: inline-block;
  width: var(--input-width);
  background-color: #cccccc;
  border: 0;
  padding: 15px 20px;
  font-size: 16px;
  margin-bottom: 15px;
}

.input-form:focus,
.input-form:active {
  display: inline-block;
  width: var(--input-width);
  background-color: white;
  border: 0;
  padding: 15px 20px;
  font-size: 16px;
  margin-bottom: 15px;
  outline: 0;
}

.btn {
  display: inline-block;
  width: var(--input-width);
  background-color: #00C2FF;
  text-transform: uppercase;
  border: 0;
  padding: 15px 20px;
  font-size: 16px;
  margin-bottom: 15px;
}

.close {
  display: block;
  position: absolute;
  z-index: 20;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: url('/img/close.svg');
  background-size: 25px auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #FF375B;
  border: none;
  cursor: pointer;
}

.phone {
  display: inline-block;
  position: fixed;
  z-index: 5;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: url('/img/phone.svg');
  background-size: 25px auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #FF375B;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.big-heading {
  font-size: 6vw;
  line-height: 7vw;
  font-weight: 400;
  color: white;
  font-family: 'AeroportMono', sans-serif;
}

.flex-problem-list {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 80px;
  gap: 30px;
}

.flex-problem-item {
  position: relative;
  width: calc((100% - 90px) / 4);
  padding: 30px;
  background-color: #0055ff;
  transition: ease-in-out 0.3s;
  color: #9ebeff;
  font-size: 18px;
  line-height: 26px;
  border: 2px solid #77a4ff;
  font-family: 'AeroportMono', sans-serif;
}

.flex-problem-item:hover {
  background-color: #0055ff;
  color: white;
}

.line-section {
  margin: 100px 0;
  width: 100%;
  height: 2px;
  background-color: #548dff;
  transform: rotate(-5deg);
}

@media(max-width: 1200px) {
  .flex-problem-item {
    position: relative;
    width: calc((100% - 60px) / 3);
    padding: 30px;
    background-color: #0055ff;
    border-radius: 10px;
    transition: ease-in-out 0.3s;
    color: #9ebeff;
    font-size: 18px;
    line-height: 26px;
    border: 1px solid rgba(0, 0, 0, 0.082);
  }
}

@media(max-width: 1000px) {
  .flex-problem-item {
    position: relative;
    width: calc((100% - 30px) / 2);
    padding: 30px;
    background-color: #0055ff;
    border-radius: 10px;
    transition: ease-in-out 0.3s;
    color: #9ebeff;
    font-size: 18px;
    line-height: 26px;
    border: 1px solid rgba(0, 0, 0, 0.082);
  }
}

@media(max-width: 600px) {
  .flex-problem-item {
    position: relative;
    width: 100%;
    padding: 30px;
    background-color: #0055ff;
    border-radius: 10px;
    transition: ease-in-out 0.3s;
    color: #9ebeff;
    font-size: 18px;
    line-height: 26px;
    border: 1px solid rgba(0, 0, 0, 0.082);
  }
}
