html {
  box-sizing: border-box;
  height: 100%;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: inherit;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #0c0b0b;
  overflow-x: hidden;
  max-width: 100%;
  height: 100vh;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

h1 {
  color: #fff;
  text-transform: uppercase;
}

h3 {
  font-size: 20px;
  color: #3cdfdf;
}

p {
  color: #fff;
}

.wrapper {
  width: 100%;
  min-height: 100%;
  background: #0c0b0b;
  margin: 0 auto;
  background-image: url(../img/mobil-fon.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 70%;
  overflow-x: hidden;
  padding: 30px 50px;
}

.header-wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #3cdfdf;
  padding: 0 20px 20px;
}

.logo-img {
  max-width: 100%;
  display: inline-block;
}

.logo-img-mobile {
  display: none;
}

.header-item {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.header-link {
  color: #fff;
  transition: 0.5s;
}

.header-link:hover {
  color: #3cdfdf;
}

.header_burger,
.burger_menu {
  display: none;
}

.title {
  max-width: 1440px;
  width: 100%;
  margin: 200px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.title-left {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 20px 0 0 20px;
}

.title-left::after {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 60px;
  border: 0.01px solid #3cdfdf;
}

.title-left::before {
  position: absolute;
  top: 30px;
  left: -30px;
  content: "";
  width: 60px;
  border: 0.01px solid #3cdfdf;
  transform: rotate(90deg);
}

h1 span {
  color: #3cdfdf;
}

/* Объединение анимаций для переиспользования */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.button-title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 5px;
  max-width: 262px;
  width: 100%;
  border: 1px solid #fff;
  border-radius: 50px;
  background: linear-gradient(45deg, #3cdfdf, #153f3f, #1c7070, #3cdfdf);
  background-size: 400% 400%;
  animation: gradient 3s infinite;
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 600;
  transition: 0.7s;
  margin-top: 50px;
}

.button-title:hover {
  transform: scale(1.05);
  transition: 0.7s;
}

.button-title:active {
  transform: scale(0.9);
  transition: 0.7s;
}

.title-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  transform: rotate(-90deg);
  width: 40%;
}

.title-right h2 {
  text-transform: uppercase;
  font-family: "Monoton", sans-serif;
  font-size: 55px;
  font-style: normal;
  font-weight: 500;
  line-height: 180%;
  letter-spacing: 0.8px;
  color: rgb(60, 223, 223);
  opacity: 0.15;
}

.development {
  text-align: end;
  margin-left: 70px;
}

.grigorysemenov {
  text-align: start;
}

.about {
  max-width: 1440px;
  width: 100%;
  margin: 100px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding: 0 20px;
}

.about-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 900px;
  width: 100%;
}

.about-left h3 {
  margin-bottom: 20px;
}

.about-text {
  color: #fff;
  margin-bottom: 20px;
}

.about-text a {
  color: #3cdfdf;
  font-style: italic;
  transition: 0.3s;
}

.about-text a:hover {
  color: rgb(27, 137, 137);
}

.about-right {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 450px;
  width: 100%;
}

.about-right img {
  width: 100%;
  border-radius: 5px;
}

.adaptiv-foto {
  display: none;
}

.connection-title {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.connection-block {
  display: flex;
  gap: 20px;
}

.connection {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #3cdfdf;
  background: #3cdfdf;
  transition: 0.7s;
}

.connection:hover {
  background: rgb(27, 137, 137);
  border: 1px solid rgb(40, 200, 200);
  transform: scale(1.05);
  transition: 0.7s;
}

.connection img {
  max-width: 100%;
}

.priorities-block {
  max-width: 1440px;
  width: 100%;
  margin: 100px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  column-gap: 85px;
  row-gap: 30px;
  padding: 0 20px;
}

.invisible {
  display: none;
}

.priorities {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
}

.square {
  min-width: 15px;
  min-height: 15px;
  border: 1px solid #3cdfdf;
  border-bottom-width: 0;
  border-right-width: 0;
}

.portfolio {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 100px;
}

.portfolio-title {
  display: flex;
  justify-content: center;
  position: relative;
  margin: 0 0 30px 0;
}

.portfolio-title .roboto {
  text-transform: uppercase;
  color: #3cdfdf;
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translateX(-50%);
}

.portfolio-title .monoton {
  text-transform: uppercase;
  font-family: "Monoton", sans-serif;
  font-size: 45px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0.8px;
  color: #3cdfdf;
  opacity: 0.15;
}

.portfolio-block-img-text,
.portfolio-block-text-img {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

.portfolio-line {
  display: flex;
  justify-content: center;
}

.portfolio-line-top {
  display: flex;
  border: 1px solid #3cdfdf;
  height: 50px;
}

.portfolio-line-between {
  display: flex;
  justify-content: center;
  border: 1px solid #3cdfdf;
  height: 180px;
}

.portfolio-line-bottom {
  display: flex;
  justify-content: center;
  border: 1px solid #3cdfdf;
  height: 100px;
}

.anny {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3cdfdf;
  padding: 5px 20px;
}

.portfolio-block-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  max-width: 400px;
  width: 100%;
}

.portfolio-block-text-img .portfolio-block-text {
  align-items: flex-end;
}

.portfolio-block-text-img .portfolio-block-text h3 {
  text-align: end;
}

.portfolio-block-text p {
  background-color: #3cdfdf;
  color: #0c0b0b;
}

.portfolio-block-img {
  box-shadow: 7px 13px #153f3f;
  position: relative;
  transition: 0.5s;
  display: flex;
  max-width: 400px;
  width: 100%;
}

.portfolio-block-img-text .portfolio-block-img {
  box-shadow: -7px 13px #153f3f;
}

.portfolio-block-img img {
  max-width: 100%;
}

.portfolio-link:hover .portfolio-block-text-img .portfolio-block-img {
  position: relative;
  transform: perspective(3000px) rotateY(-29deg);
  box-shadow: none;
  transition: 0.5s;
}

.portfolio-link:hover .portfolio-block-img-text .portfolio-block-img {
  position: relative;
  transform: perspective(3000px) rotateY(29deg);
  box-shadow: none;
  transition: 0.5s;
}

.portfolio-link:hover .portfolio-block-img-text .portfolio-block-img img {
  box-shadow: 12px 11px 1px #f2f2f2;
  transition: 0.5s;
}

.portfolio-link:hover .portfolio-block-text-img .portfolio-block-img img {
  box-shadow: -12px 11px 1px #f2f2f2;
  transition: 0.5s;
}

.portfolio-link:hover .portfolio-block-img-text .portfolio-block-img img {
  box-shadow: -14px 11px 1px #153f3f;
  transition: 0.5s;
}

.portfolio-link:hover .portfolio-block-text-img .portfolio-block-img img {
  box-shadow: 14px 11px 1px #153f3f;
  transition: 0.5s;
}

.portfolio-link:hover .portfolio-block-img:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  right: -26px;
  top: 22px;
  background: #153f3f;
  z-index: -1;
  transition: 0.5s;
}

.portfolio-link:hover .portfolio-block-text-img .portfolio-block-img:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 21px;
  top: 17px;
  background: #f2f2f2;
  z-index: -1;
  transition: 0.5s;
}

.portfolio-link:hover .portfolio-block-img-text .portfolio-block-img:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: -21px;
  top: 17px;
  background: #f2f2f2;
  z-index: -1;
  transition: 0.5s;
}

.github {
  max-width: 350px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px auto;
  color: #3cdfdf;
  border: 1px solid #3cdfdf;
  border-radius: 50px;
  padding: 20px 0;
  text-align: center;
  transition: 0.3s;
}

.github:hover {
  color: #fff;
  border: 1px solid #fff;
  background: #2da9a9;
}

.github:active {
  transform: scale(0.95);
  transition: 0.1s;
}

.feedback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.feedback>.connection-block {
  justify-content: center;
}

.footer-wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #3cdfdf;
  padding: 20px 20px 0;
}

.footer-text p,
.footer-wrapper-center a {
  color: #fff;
}

.footer-text>.new-logo {
  display: none;
}

.footer-wrapper-right {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3cdfdf;
  border-radius: 50px;
  padding: 5px 15px;
  gap: 5px;
  cursor: pointer;
}

.footer-wrapper-right:active {
  background-color: #3cdfdf;
}

.scroll-top {
  position: relative;
  padding: 15px;
  background: none;
  border: none;
  cursor: pointer;
}

.go-top {
  position: absolute;
  content: "";
  width: 40%;
  left: 25%;
  bottom: 50%;
}

.go-top::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background-color: #3cdfdf;
  bottom: 0%;
  left: 35%;
  transform: rotate(45deg);
  z-index: 100;
}

.go-top::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background-color: #3cdfdf;
  top: 0%;
  right: 35%;
  transform: rotate(-45deg);
}

/* Form-popup */

.popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: url(../img/mobil-fon.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 70%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.8s ease 0s;
  z-index: 1000;
}

.popup:target {
  opacity: 1;
  visibility: visible;
}

.popup:target .popup_content {
  transform: perspective(600px) translate(0px, 0%) rotate(0deg);
  opacity: 1;
}

.popup_area {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.popup_body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.popup_content {
  max-width: 900px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 50px 0;
  border: 1px solid rgba(227, 227, 227, 0.58);
  border-radius: 20px;
  box-shadow: inset 0px 0px 68px 0px rgba(0, 0, 0, 0.05),
    inset 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  transition: all 0.8s ease 0s;
  opacity: 0;
  transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
}

.discussion-form {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.name,
.tel,
.email,
.textarea {
  width: 70%;
  padding: 20px;
  border: none;
  border-bottom: 1px solid rgba(47, 47, 47, 0.4);
  border-radius: 10px;
  outline: none;
  background: rgb(232, 232, 232);
}

.textarea {
  resize: vertical;
}

.button-discussion-form {
  margin: 25px 0 0 0;
  padding: 20px 60px;
  border-radius: 50px;
  background: linear-gradient(45deg, #3cdfdf, #153f3f, #1c7070, #3cdfdf);
  background-size: 400% 400%;
  animation: gradient 3s infinite;
  text-align: center;
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.return {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.close {
  color: #fff;
  position: absolute;
  top: 20px;
  left: 50px;
}

/* Thank you */

.wrapper-thank-you {
  padding: 200px 100px 0;
  background-image: url(../img/mobil-fon.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 70%;
  height: 100vh;
}

.main-wrapper-thank-you {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 50px 70px;
  border: 1px solid rgba(227, 227, 227, 0.58);
  border-radius: 20px;
  box-shadow: inset 0px 0px 68px 0px rgba(0, 0, 0, 0.05),
    inset 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  margin: 0 auto;
}

.title-thank-you {
  font-size: 45px;
  color: #3cdfdf;
}

.text-thank-you {
  font-size: 30px;
  color: #3cdfdf;
  text-transform: uppercase;
  margin: 10px 0 30px;
}

.mintext-thank-you {
  font-size: 22px;
  text-align: center;
}

.return-thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 70px 0 0 0;
  font-size: 14px;
}


/* Адаптив */

@media (max-width: 769px) {
  body.lock {
    overflow: hidden;
  }

  .wrapper {
    max-width: 100%;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-image: url(../img/mobil-fon.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 60%;
  }

  .header-wrapper {
    padding: 0 0 15px;
    margin: 0;
  }

  .logo-img {
    display: none;
  }

  .logo-img-mobile {
    display: inline-block;
  }

  .header-nav {
    display: none;
  }

  .header_burger {
    display: block;
    position: relative;
    width: 33px;
    height: 26px;
    z-index: 13;
    transform: rotate(180deg);
  }

  .header_burger span {
    position: absolute;
    background-color: #fff;
    left: 0;
    width: 70%;
    height: 2px;
    top: 12px;
    transition: all 0.3s ease 0s;
  }

  .header_burger::before,
  .header_burger::after {
    content: "";
    background-color: rgb(60, 223, 223);
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    transition: all 0.3s ease 0s;
  }

  .header_burger::before {
    top: 0;
  }

  .header_burger::after {
    bottom: 0;
  }

  .header_burger.active span {
    transform: scale(0);
  }

  .header_burger.active::before {
    transform: rotate(45deg);
    top: 12px;
    background-color: #3cdfdf;
  }

  .header_burger.active::after {
    transform: rotate(-45deg);
    bottom: 11px;
    background-color: #3cdfdf;
  }

  .burger_menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: -200%;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #153f3f;
    padding: 70px 10px 20px 10px;
    transition: all 0.3s ease 0s;
    z-index: 11;
  }

  .burger_menu.active {
    top: 0;
  }

  .burger_list {
    display: block;
    flex-direction: column;
  }

  .burger_list {
    margin: 50px 0 20px 100px;
  }

  .burger_list a {
    font-size: 26px;
    color: #3cdfdf;
  }

  .burger_list a:active {
    font-size: 22px;
  }

  .title {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin: 100px 0;
  }

  .title-left {
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 30px;
  }

  .title-left::after {
    top: 0;
    left: 0;
    width: 30px;
  }

  .title-left::before {
    top: 15px;
    left: -15px;
    width: 30px;
  }

  h1 {
    font-size: 20px;
  }

  .button-title {
    max-width: 300px;
    width: 100%;
    margin-top: 50px;
  }

  .button-title a {
    font-size: 15px;
    font-weight: 600;
  }

  .title-right {
    display: none;
  }

  .about {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 50px 0 0 0;
  }

  .about-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    margin-right: 0;
    padding: 0;
  }

  .adaptiv-foto {
    display: block;
    width: 100%;
    margin-bottom: 40px;
  }

  .about-right {
    display: none;
  }

  .priorities-block {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    column-gap: 10px;
    row-gap: 30px;
    padding: 0;
    margin: 60px 0;
  }

  .priorities {
    padding: 10px;
    position: relative;
    align-items: flex-start;
  }

  .priorities::after {
    position: absolute;
    top: 0px;
    left: 0px;
    content: "";
    width: 20px;
    border: 0.01px solid #3cdfdf;
  }

  .priorities::before {
    position: absolute;
    top: 10px;
    left: -10px;
    content: "";
    width: 20px;
    border: 0.01px solid #3cdfdf;
    transform: rotate(90deg);
  }

  .square {
    display: none;
  }

  .portfolio {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .portfolio-title {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 0;
  }

  .portfolio-block-text-img,
  .portfolio-block-img-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    padding-left: 0;
  }

  .portfolio-block-text-img,
  .portfolio-block-img-text {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 25px;
    padding-left: 0;
  }

  .portfolio-line {
    margin: 30px 0;
  }

  .portfolio-line-top {
    display: flex;
    border: 1px solid #3cdfdf;
    height: 30px;
  }

  .portfolio-line-between {
    display: flex;
    border: 1px solid #3cdfdf;
    height: 90px;
  }

  .portfolio-line-bottom {
    display: flex;
    border: 1px solid #3cdfdf;
    height: 50px;
  }

  .portfolio-block-text img {
    display: none;
  }

  .anny {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3cdfdf;
    padding: 5px 20px;
  }

  .portfolio-block-text-img .portfolio-block-text,
  .portfolio-block-img-text .portfolio-block-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-right: 0;
  }

  .portfolio-block-text-img .portfolio-block-text {
    order: 1;
  }

  .portfolio-block-text-img .portfolio-block-text h3 {
    text-align: center;
  }

  .github {
    margin-top: 0;
  }

  .footer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 50px 0 0 0;
    padding: 40px 0;
  }

  .footer-text p {
    font-size: 13px;
  }

  /* Form-popup */


  .popup:target .popup_content {
    transform: translate(0px, 0px);
    /* transform: perspective(600px) translate(0px, 0%) rotate(0deg); */
  }

  .popup_body {
    padding: 55px 10px;
  }

  .popup_content {
    max-width: 340px;
    width: 100%;
    padding: 50px 0;
    transform: translate(0px, -100%);
    /* transform: perspective(600px) translate(0px, -100%) rotateX(45deg); */
  }

  .discussion-form {
    width: 100%;
  }

  .name,
  .tel,
  .email,
  .textarea {
    width: 80%;
    padding: 15px;
  }

  .button-discussion-form {
    margin: 20px 0 0 0;
    padding: 10px 50px;
    font-size: 18px;
  }

  .close {
    top: 20px;
    /* изменено с 560px на 20px для корректного позиционирования */
    left: 20px;
    /* изменено с 42px на 20px для единообразия */
  }

  /* Thank you */

  .wrapper-thank-you {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 0;
    background-image: url(../img/mobil-fon.jpg);
    /* исправлено с none на no-repeat */
    background-size: cover;
    background-position: 60%;
  }

  .main-wrapper-thank-you {
    padding: 50px 20px 20px;
    margin: 20px 10px;
  }

  .title-thank-you {
    font-size: 45px;
  }

  .text-thank-you {
    font-size: 30px;
    margin: 10px 0 50px;
  }

  .mintext-thank-you {
    font-size: 22px;
    text-align: center;
  }
}