*,
*::after,
*::before {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

:root {
  --bg: #282828;
  --box: #383838;
  --green1: #9dd639;
  --green2: #87b23c;
  --white: #d8d8d8;
  --white2: #eeeeee;
  --grey: #9d9ea3;
  --scrollTop: 0px;
  --sizeIndex: 1vw;
  --trans: transform 0.75s cubic-bezier(0.075, 0.5, 0, 1);
  --dots_size: 10px 10px;
  --dots_size_projects: 10px 10px;
}

.htmx-swapping {
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.htmx-settling {
  opacity: 1;
  transition: opacity 300ms ease-out;
}

/* barba settings */
.wrapper {
  position: relative;
}
.inner_wrapper {
  width: 100%;
  min-height: 100vh;
}



@font-face {
  font-family: exo_krk;
  src: url(/fonts/Exo2.ttf);
}

@font-face {
  font-family: train_krk;
  src: url(/fonts/TrainOne-Regular.ttf);
}

@font-face {
  font-family: futura_krk;
  src: url(/fonts/FuturaPT-Medium.ttf);
  font-weight: 600;
}

@font-face {
  font-family: unbound_krk;
  src: url(/fonts/Unbounded-VariableFont_wght.ttf);
}

* {
  box-sizing: border-box;
  max-width: 100%;
}


html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  
  font-family: exo_krk, sans-serif;
  background-color: var(--bg);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

img, video {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--white);
}

content {
  display: flex;
  flex-direction: column;
  width: 100%;
}
section {
  min-height: 100vh;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}


.screen {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 130px 100px 100px 100px;
  z-index: 4;
  position: relative;
}

/* Лоадер */
#loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--green1);
  animation: spin 1s infinite linear;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* background-image: linear-gradient(135deg, #dadada50, #5f5f5f3f); */
.glass1 {
  background-image: linear-gradient(135deg, #c9c9c93f, #17171779);
  box-shadow: 1px 2px 5px #55555550;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #8181811c;
}
#about .glass2 {
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.glass2 {
  background-image: linear-gradient(135deg, #5f5f5f3f, #17171779);
  border-radius: 20px;
  transition: 0.3s ease;
  border: 1px solid #8181811c;
  box-shadow: 1px 2px 5px #00000050;
}
.glass3 {
  background-image: linear-gradient(0deg, #6d6d6d88 20%, #41414188 70%, #29292988 100%);
  box-shadow: 1px 2px 5px #55555550;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #8181811c;
  
}
#about .hover-active {
  background-image: linear-gradient(135deg, #6666663f, #1b1b1b79);
  box-shadow: 1px 5px 8px #00000050;
  transition: 0.3s ease;
}

.topbar {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px -5px 5px -5px rgba(131, 131, 131, 0.6) inset;
  text-shadow: 1px 0px 2px #000000;
  border-radius: 0 0 30px 30px;
  border: none;
}

.logo img {
  height: 50px;
}

.top_contact {
  color: var(--white);
  padding: 10px 0px;
  min-width: 190px;
}

.home-linkmobile {
  display: none;
}

.mainnav {
  position: relative;
  top: 0;
  z-index: 100;
  width: 700px;
}

ul {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  position: relative;
}

li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--white);
  text-transform: uppercase;
  display: block;
  padding: 15px;
  text-align: center;
}

.frame {
  position: absolute;
  top: 56px;
  left: 0;
  width: 125px; /* корректируем ширину рамки, если нужно */
  height: 100px;
  background: url("/img/menu2.png") no-repeat;
  background-size: contain;
  z-index: -1;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  will-change: transition;
}

#home {
  background-size: cover;
  background-position: center;
  width: 100%;
  overflow: hidden;
  background: #8B9EA2;

  position: relative;
}

#home .hover_block {
  display: block;
  padding: 20px;
  right: 100px;
  bottom: 50%;
}

#home .hover-active {
  background-image: linear-gradient(135deg, #6666663f, #1b1b1b79);

  transition: 0.3s ease;
}

#target11 {
  position: absolute;
  left: 2px;
  bottom:50%
}

/* Паралакс */

.prlx {
  height: 100%;
  width: 100%;
  position: absolute;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 2;
  transition: var(--trans);
}

.l1 {
  transform: translate3d(0, calc(var(--scrollTop) / 1.4), 0);
  z-index: 0;
}
.ltext {
  transform: translate3d(0, calc(var(--scrollTop) / 1.8), 0) translateX(-50%)
    scaleX(0.7);
}
.lmoun {
  transform: translate3d(0, calc(var(--scrollTop) / 1.9), 0);
}
.lforest {
  transform: translate3d(0, calc(var(--scrollTop) / 2.6), 0);
}
.lkust {
  transform: translate3d(0, calc(var(--scrollTop) / 2.8), 0);
  background-position: right;
}
.lhome {
  transform: translate3d(0, calc(var(--scrollTop) / 3.5), 0);
  background-position: right;
}

.ltext {
  will-change: transform;
  transition: var(--trans);
  z-index: 1;
  font-size: calc(var(--sizeIndex) * 17);
  font-weight: 800;
  line-height: 1;
  font-family: unbound_krk, sans-serif;
  letter-spacing: 0px;
  text-shadow: 1px 1px 2px #acacac;
  opacity: 0.6;
  position: absolute;
  bottom: 50%;
  left: 40%;
}

.shadow {
  position: absolute;
  width: 100%;
  height: 200px;
  bottom: 0;
  background: linear-gradient(to top, #282828, transparent);
  z-index: 3;
}

.darkhome {
  transform: translate3d(0, calc(var(--scrollTop) / 6), 0);
  background-position: center;
  z-index: -1;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Паралакс */

#about {
  margin-top: -2px;
  background-color: var(--bg);
  background: radial-gradient(ellipse at center, rgba(51, 51, 51, 1) 15%, rgba(40, 40, 40, 1) 95%);
  min-height: auto;

}

.shadow_about {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #282828 2%, #2828287a 10%, transparent 15%,  transparent 85%, #2828287a 90%,  #282828 98%);
  z-index: 6;
}


#about .screen {
  padding: 300px 100px 100px 100px;
  height: 100%;
  background: radial-gradient(ellipse at center, #282828 20%, transparent 20%);
  background-size: var(--dots_size);
}

#about .wrap {
  width: 100%;
  height: 100%;
  padding: 0;
  color: var(--white);
  display: grid;
  grid-template-columns: auto 370px auto; 
  grid-template-rows: repeat(2, 1fr); 
  gap: 20px;
}

.ablock {
  display: flex;
  align-items: center;
}

.ablock-central {
  grid-column: 2; /* Центральная колонка */
  grid-row: 1 / span 3; /* Занимает всю высоту из 3 строк */
  display: flex;
  position: relative;
  margin-top: 200px;
  font-size: 14px;
}

.ablock:nth-child(2) {
  justify-content: flex-start; 
}

.ablock:nth-child(3) {
  justify-content: flex-end; 
}

.ablock:nth-child(4) {
  justify-content: center; 
}

.ablock:nth-child(5) {
  justify-content: center;
}

.ablock:nth-child(6) {
  justify-content: flex-end; 
}

.ablock:nth-child(7) {
  justify-content: flex-start;
}
#about .hover_block {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  height: 170px;
  overflow: hidden;
}

#block21 {
  width: 370px;
}
#block22 {
  width: 350px;
}
#block23 {
  width: 370px;
  z-index: 4;
}
#block24 {
  width: 380px;
  z-index: 5;
}
#block25 {
  width: 410px;
}
#block26 {
  width: 450px;
}

#target21 {
  right: 12px;
  top: 30%;
}
#target22 {
  left: 0;
  top: 30%;
}
#target23 {
  left: 90%;
  top: 12px;
}
#target24 {
  left: 15px;
  top: 15px;
}
#target25 {
  left: 60%;
  top: 10px;
}
#target26 {
  left: 30%;
  top: 10px;
}

.aname {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
}
.atext {
  font-size: 14px;
  shape-outside: circle(50%);
}

.aimg {
  position: relative;
  bottom: 0;
  right: 0;
  height: calc(100% + 40px);
  margin: -20px -21px 0px 10px;
  overflow: hidden;
  float: right;
  shape-outside: margin-box;
  opacity: 0.8;
}

.ablock-left .aimg {
  float: left;
  margin: -20px 10px 0px -21px;
}

#block26 .aimg {
  margin: -20px -20px 0 0;
}

.aimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* разделитель 2-3 */

.gapsection23 {
  height: 150px;
  z-index: 2;
  position: relative;
  background-color: var(--bg);
  width: 100%;
}
.gapsection23 svg {
  position: absolute;
  top: auto !important;
  bottom: -2px !important;
  width: 100vw;
  height: 100%;
}
.gapsection23 .shape-fill {
  fill: #9d9ea3;
}

/* секция 3 работы */

#works {
  background: radial-gradient(
    circle,
    rgba(51, 51, 51, 1) 15%,
    rgba(40, 40, 40, 1) 45%
  );
  z-index: 5;
  margin-top: -2px;
}

#works .screen {
  background: radial-gradient(circle, #282828 20%, transparent 20%);
  background-size: var(--dots_size);
}

#works .wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  grid-template-rows: repeat(2, minmax(100px, 1fr));
  column-gap: 0px;
  width: 100%;
  height: 100%;
  padding: 0;
  color: var(--white);
}
.wblock {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
}

.wblock:nth-child(2),
.wblock:nth-child(4) {
  justify-content: flex-end;
}

.wblock:nth-child(3),
.wblock:nth-child(4) {
  align-items: flex-end;
}
.wname {
  /*   transform: translate(-50%, 0); 
  left: 50%; */
  position: absolute;
  bottom: 0;
  transition: 0.3s ease;
  border-radius: 20px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 17px;
  font-size: 16px;
  font-weight: bold;
}

.wblock:nth-child(1) .wname,
.wblock:nth-child(3) .wname {
  left: 30px;
}
.wblock:nth-child(2) .wname,
.wblock:nth-child(4) .wname {
  right: 50px;
}

.wimg {
  height: 90%;
  width: auto;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  position: relative;
}
.wblock3 .wimg {
  height: 80%;
}
.wblock4 .wimg {
  height: 70%;
}
.wimg img {
  width: auto;
  height: 100%;
  filter: grayscale(100%) opacity(40%) brightness(60%);
  transition: 0.3s ease;
}

.wimg.hover_block::before {
  content: "";
  position: absolute;
  bottom: -10%;
  left: 50%;
  width: 120%;
  height: 32%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 75%);
  transform: translateX(-50%);
  pointer-events: none;
}

.wimg.hover-active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%; 
  height: 250%;
  background: radial-gradient(circle, rgba(255, 214, 127, 0.137) 0%, transparent 30%, transparent 100%);
  pointer-events: none; /* Чтобы градиент не мешал взаимодействию с элементами */
  z-index: 22;
  transition: all 0.3s ease;
}

#works .hover-active img {
  filter: brightness(1.2);
  filter: grayscale(0%) opacity(100%) brightness(110%);
  transition: 0.3s ease all;
}

#target31 {
  top: 30%;
  left: 46%;
}

#target32 {
  top: 60%;
  right: 45%;
}

#target33 {
  bottom: 40%;
  left: 20%;
}

#target34 {
  bottom: 80%;
  right: 25%;
}

/* разделитель 3-4 */

.gapsection34 {
  height: 150px;
  z-index: 2;
  position: relative;
  background-color: var(--bg);
  width: 100%;
  z-index: 6;
  margin-bottom: -4px;
}
.gapsection34 svg {
  position: absolute;
  top: auto !important;
  bottom: -2px !important;
  width: 100vw;
  height: 100%;
  transform: rotate(180deg);
}
.gapsection34 .shape-fill {
  fill: #636363;
}

/* секция 4 контакты */

#contacts {
  background-color: #eeeeee;
  z-index: 5;
}
#contacts .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
}

#contacts .screen {
  background: #eeeeee;
  align-items: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 90px 100px 100px 100px;

}
#contacts .kleft {
}

.kform {
  position: relative;
  display: flex;
  flex-direction: row;
  height: auto;
  max-width: 610px;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white2);
  text-shadow: 1px 1px 1px #000000;
}

.kform_name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}
.kform_text {
  font-size: 16px;
  display: flex;
  flex-direction: column;
  margin-right: 30px;
  min-width: 180px;
}
.kform_text p,.top_contact p {
  margin-bottom: 5px;
  align-items: center;
  display: flex;
}
p svg {
  position: relative;
  min-width: 22px;
  margin-right: 5px;
}

.kform_text p:first-child svg,.top_contact p svg, #Layer_2 {
  margin-left: 5px;
  margin-right: 10px;
}
.kform_text p:last-child svg {
  margin-left: 5px;
  margin-right: 7px;
}
.kform_text a,.top_contact a {
  align-items: center;
  display: flex;
}
.kform_text a {
  color: var(--white2);
  font-weight: bold;
}
.kform_text a:hover {
  color: var(--green1);
}

.kform_input {
  color: var(--white2);
  width: 100%;
  margin-bottom: 10px;
  border-radius: 15px;
  background-color: #0000001a; 
  border: 1px solid #e4e4e41f; 
  border-top: 1px solid #3f3f3fab;
  border-left: 1px solid #3f3f3fab;
  padding: 10px 12px;
  outline: none; /* Убираем стандартный фокус */
  box-shadow: inset 3px 3px 4px rgba(0, 0, 0, 0.4),
              inset -2px -2px 4px rgba(255, 255, 255, 0.1); 
  font-size: 16px;
}
textarea {
  resize: none;
  overflow: hidden;
}
.kform_input::placeholder {
  color: var(--white2);
}
.kform_button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 15px;
  background-color: #ffffff00;
  background-image: linear-gradient(349deg, #ffffff10 0%,#ffffff20 30%, #ffffff20 60%, #ffffff05 100%);
  border: 2px outset #dadada1a;
  color: var(--green1);
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s all ease;
  text-shadow: 1px 1px 1px #00000010;
}
.kform_button:hover {
  background-image: linear-gradient(349deg, #ffffff20 0%,#ffffff30 30%, #ffffff30 60%, #ffffff00 100%);
  transition: 0.3s all ease;
}
.kform_button:active {
  background-image: linear-gradient(349deg, #ffffff10 0%,#ffffff20 30%, #ffffff20 60%, #ffffff10 100%);
  transition: 0.3s all ease;
  background-color: #0000001a; 
  box-shadow: inset 3px 3px 4px rgba(0, 0, 0, 0.4),
              inset -2px -2px 4px rgba(255, 255, 255, 0.1);
  border: 2px solid #31313110;             
}

#successMessage {
  color: var(--green1);
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
}


.video-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}
.video-container video {
  width: 100%;
  display: block;
  object-fit: contain;
}

.video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin-top: -1px;
  height: 50px; /* фиксированная высота тени */
  background: linear-gradient(to bottom, #eeeeee 0%,#eeeeee 7%, transparent 60%);
  pointer-events: none;
}

.darkvid {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #00000080;
}
.light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #eeeeee, transparent);
  z-index: 1;
}
.shadow_contacts {
  height: 100%;
  width: 100%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 10%, transparent 50%, #636363 95%, #636363 100%);
  z-index: 4;
  position: absolute;
  bottom: 0;
}

#target41 {
  position: absolute;
  left: 0%;
  top: 20%;
  box-shadow: var(--green1) 0px 0px 0px 2px;

}

#target42 {
  position: absolute;
  right: 0%;
  top: 60%;
  box-shadow: var(--green1) 0px 0px 0px 2px;
}

.footer {
  height: 170px;
  width: 100%;
  bottom: 0;
  display: flex;
  position: relative;
  z-index: 22;
  margin-top: -2px;
  padding-top: 30px;
  background-color: var(--bg);
}

.inner_footer {
  border-top: var(--green2) 10px solid;
  position: relative;
  height: 200px;
  width: 100%;
  bottom: 0;
  display: flex;
  background-color: var(--box);
}

.tri-block {
  position: relative;
  width: 0;
  height: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 2;
  top: -1px;
}

/* Внешний треугольник для обводки */
.tri-border {
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-top: 100px solid var(--green2);
  position: absolute;
  z-index: 1;
  top: 1px;
}

/* Внутренний треугольник */
.tri-inner {
  border-left: 130px solid transparent;
  border-right: 130px solid transparent;
  border-top: 85px solid var(--bg);
  position: absolute;
  z-index: 2;
}

/* Слоган и стопперы */

.stopper1,
.stopper2,
.stopper3,
.stopper4 {
  width: 100px; /* примерные размеры */
  height: 50px;
  position: absolute;
  pointer-events: none;
}
.podstopper {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin-bottom: -50px;
  background-color: #000000;
}

.stopper1 {
  bottom: 100px;
} /* положение в секции home */
.stopper2 {
  top: 140px;
} /* положение в секции about */
.stopper3 {
  top: 40%;
} /* положение в секции works */
.stopper4 {
  position: relative;
  top: 0px;
  margin-bottom: 50px;
  
} /* положение в секции contacts */

.slogan {
  font-family: unbound_krk, sans-serif;
  font-weight: 800;
  text-transform: uppercase;

  line-height: 1;
  will-change: transform;
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  pointer-events: none;
  z-index: 66;
}

#punkt1 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
#punkt2,
#punkt4 {
  bottom: 0px;
  position: absolute;
}
#punkt3 {
  top: 0px;
  position: absolute;
}

.word0 {
  will-change: transform, color;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  pointer-events: all;
  pointer-events: none;
}
.slogan .word1 {
  font-size: 70px;
  margin-bottom: -21px;
  background-image: linear-gradient(
    to bottom,
    var(--green1) 50%,
    var(--white) 50%
  );
  background-size: 100% 200%;
  background-position: 100% 100%;
  transition: background-position 0.3s ease-in-out;
}
.slogan .word2 {
  font-size: 95px;
  background-image: linear-gradient(
    to bottom,
    var(--white) 50%,
    var(--green1) 50%
  );
  background-size: 100% 200%;
  background-position: 100% 100%;
  transition: background-position 0.3s ease-in-out;
}
.slogan .word3 {
  margin-top: -21px;
  font-size: 84px;
  background-image: linear-gradient(
    to bottom,
    var(--green1) 50%,
    var(--white) 50%
  );
  background-size: 100% 200%;
  background-position: 100% 100%;
  transition: background-position 0.3s ease-in-out;
}

svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10;
}
.line {
  pointer-events: all;
}
#works .line {
  pointer-events: none;
}
.line:hover {
  stroke: var(--green1);
  stroke-width: 3;
  transition: 0.3s all ease;
}

/* Точки входа */

.hover-line {
  stroke: var(--green1) !important;
  stroke-width: 3;
  transition: 0.3s all ease;
}

.hover-active .target_block {
  box-shadow: var(--green1) 0px 0px 0px 3px;
  transition: 0.3s all ease;
}

.target_block {
  width: 8px;
  height: 8px;
  background-color: #00000000;
  z-index: 10;
  opacity: 0;
  box-shadow: var(--white) 0px 0px 0px 2px;
  position: absolute;
}

.target_left {
  transform: rotate(45deg) translate(+50%, -50%);
}
.target_right {
  transform: rotate(45deg) translate(-50%, +50%);
}
.target_top {
  transform: rotate(45deg) translate(-50%, -50%);
}





@media (max-width: 1430px) {
  #about .screen {
    padding: 200px 50px 100px 50px;
  }
  .slogan .word1 {
    font-size: 59px;
    margin-bottom: -18px;
  }
  .slogan .word2 {
    font-size: 80px;
  }
  .slogan .word3 {
    margin-top: -18px;
    font-size: 71px;
  }
  .ablock-central {
    margin-top: 120px;
  }

}

@media (max-width: 1290px) {
  #home .hover_block {
    right: 50px;
  }
  #about .screen {
    padding: 240px 50px 100px 50px;
  }
  .stopper2 {
    top: 120px;
  }
  /* #about .wrap {
    grid-template-columns: auto 250px auto;
  } */
  #about .hover_block {
    position: relative;
    padding: 17px;
    border-radius: 20px;
    height: 150px;
  }
  #block21 {
    width: 335px;
  }
  #block22 {
    width: 310px;
  }
  #block23 {
    width: 335px;
    z-index: 4;
  }
  #block24 {
    width: 330px;
    z-index: 5;
  }
  #block25 {
    width: 360px;
  }
  #block26 {
    width: 415px;
  }
  .ablock-left .aimg {
    float: left;
    margin: -20px 8px 0px -21px;
  }
  .aimg {
    height: calc(100% + 34px);
    margin: -20px -21px 0px 0px;
  }
  .aname {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
  }
  .atext {
    font-size: 13px;
  }
  .mainnav {
    width: 550px;
  }
}

@media (max-width: 1140px) {
  #home .hover_block {
    right: 25px;
    font-size:14px;
  }
  #about .screen {
    padding: 300px 5px 100px 5px;
  }
  #target21 {
    top: 10px;
    left: 75%;
  }
  #target22 {
    left: 40%;
    top: 10px;
  }
  .ablock-central {
    margin-top: 50px;
  }
  #about .wrap {
    grid-template-columns: auto 250px auto;
    gap: 10px;
  }
  .stopper2 {
    top: 90px;
  }
  .ablock:nth-child(3) {
    justify-content: center;
}
  .ablock:nth-child(6) {
    justify-content: flex-start;
}
  .ablock:nth-child(7) {
    justify-content: flex-end;
}
.topbar {
  padding: 0 20px;
}

#works .screen {
  padding: 50px 20px 100px 20px;
}
#works .wrap {
  column-gap: 25px;
}

}

@media (max-width: 900px) {

  .top_contact {
    min-width: auto;
  }
  
  .home-linkmobile {
    display: flex;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    padding: 15px;
    text-align: center;
    align-items: center;
        display: flex;
  }

  .home-linkmobile svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
    position: relative;
    min-width: 22px;
  }

  .worklink svg {
    margin-right: 7px;
  }

  .home-linkmobile svg:hover,
  .home-linkmobile svg:active {
    fill: var(--green1);
  }
  #home .hover_block {
    display: none;
  }
  .slogan {
    position: absolute;
    transition: top 0.3s ease;
    pointer-events: none;
  }
  .slogan .word1 {
    font-size: 2.5em;
    margin-bottom: -8px;
  }
  .slogan .word2 {
    font-size: 3.4em;
  }
  .slogan .word3 {
    margin-top: -8px;
    font-size: 3em;
  }

   /* Убираем лишнее пространство под последней секцией */
   #contacts {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  #home .screen {
    overflow: hidden; /* скрываем выступающие части */
    position: relative;
  }

  .lhome {
    width: 130%;
    max-width: 130%;
  }

  nav {
    width: 100%;
  }

  /* Секция о нас */
  #about .screen {
    padding: 50px 50px;
    min-height: 100vh;
    height: 100%;
    flex-direction: column;
  }

  .stopper2 {
    top: 110px;
    margin-bottom: 150px;
    position: relative;
  }

  #about .wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .ablock {
    width: 100%;
  }

  .ablock-right {
    display: flex;
    justify-content: flex-end;
  }

  .ablock-left {
    display: flex;
    justify-content: flex-start;
  }
  .ablock:nth-child(4) {
    justify-content: flex-start;
  }
  .ablock:nth-child(3), .ablock:nth-child(5) {
    justify-content: flex-end;
  }

  /* Общие стили для блоков */
  #about .hover_block {
    min-height: 150px;
    height: auto !important;
    padding: 20px;
    width: 85%;
    position: relative;
  }
   .aimg {
    height: 150px;
    width: 150px;
    position: absolute; 
    bottom: 20px;
  }
  #block26 .aimg {
    margin: -20px -35px -23px 0;
}
  .aimg img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .ablock-right .aimg {
    right: 20px;
    margin: -20px -20px -20px 15px;
  }
  .ablock-right .atext-wrapper {
    text-align: right;
    margin-right: 155px;
  }
  .ablock-left .aimg {
    left: 20px;
    float: left;
    shape-outside: margin-box;
    margin: -20px 15px -20px -20px;
  }
  .ablock-left .atext-wrapper {
    text-align: left;
    margin-left: 155px; 
  }

  .ablock-central {
    font-size: 15px;
    margin-top: 0px;
    line-height: 1.4;
  }
  .aname {
    font-size: 16px;
    margin-bottom: 3px;
  }
  .atext {
    font-size: 15px;
    line-height: 1.4;
  }



 /* Секция работ */

 #works .screen {
  padding: 50px 50px;
  min-height: 100vh;
  height: 100%;
  flex-direction: column;
}
  #works .wrap {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
    height: 100%;
    padding: 0;
    color: var(--white);
  }

  .stopper3 {
    top: 60px;
    margin-bottom: 90px;
    position: relative;
  } 
  
  .wblock:nth-child(2),
  .wblock:nth-child(4) {
    justify-content: flex-end;
  }
  
  .wblock:nth-child(3),
  .wblock:nth-child(4) {
    align-items: flex-end;
  }

  .wblock:nth-child(2) {
    margin-top: -70px;
  }
  .wblock:nth-child(3) {
    margin-top: -10px;
  }
  .wblock:nth-child(4) {
    margin-top: 2px;
  }

  
  .wimg {
    height: 200px;
  }
  .wblock3 .wimg {
    height: 160px;
  }
  .wblock4 .wimg {
    height: 120px;
  }

  .wblock:nth-child(1) .wname, .wblock:nth-child(3) .wname {
    left: 60%;
}
.wblock:nth-child(2) .wname, .wblock:nth-child(4) .wname {
  right: 60%;
  min-width: 104px;
}


  /* Секция контакты */

  #contacts .screen {
    padding: 90px 50px 50px 50px;
    min-height: 100vh;
    height: 100%;
    flex-direction: column;
    position: relative;
  }

  .kform {

    flex-direction: column;
    max-width: 350px;
    
  }

  .shadow_contacts {
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, var(--bg) 0%, transparent 10%, transparent 20%, #636363 95%, #636363 100%);
    z-index: 4;
    position: absolute;
    bottom: 0;
  }

  .kform_text {

    margin-bottom: 20px;
  }



}

@media (max-height: 670px) and (max-width: 900px) {
  .lhome {
    width: 100%;
    max-width: 100%;
  }
}





@media (max-width: 600px) {
  .topbar {
    padding-left: 2px;
  }
  #about .screen {
    padding: 50px 10px;
  }

  #about .hover_block {
    padding: 18px;
    width: 92%;
  }

  #contacts .screen {
    padding: 50px 10px;
  }

  .home-linkmobile span {
    display: none;
  }
  
}




@media (max-width: 500px) {

  .home-linkmobile {
    display: none;
  }
  .logo {
    margin-left: 10px;
  }

  .lhome {
    width: 150%;
    max-width: 150%;
  }
  
  #about .hover_block {
    width: 100%;
    min-height: 150px;
  }
  .aname {
  
    margin-bottom: 2px;
  }


  .aimg {
    height: 150px;
    width: 150px;
    position: absolute; 
    bottom: 20px;
  }
  .ablock-right .atext-wrapper {
    margin-right: 140px;
  }
  .ablock-left .atext-wrapper {
    margin-left: 140px; 
  }


  /* Секция работ */

 #works .screen {
  padding: 50px 10px;
}

  .wblock:nth-child(2),
  .wblock:nth-child(4) {
    justify-content: flex-end;
  }
  
  .wblock:nth-child(3),
  .wblock:nth-child(4) {
    align-items: flex-end;
  }
  .wname {
    /*   transform: translate(-50%, 0); 
    left: 50%; */
    position: absolute;
    bottom: 0;
    transition: 0.3s ease;
    border-radius: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 17px;
    font-size: 16px;
    font-weight: bold;
  }

  .wblock:nth-child(2) {
    margin-top: -70px;
  }
  .wblock:nth-child(3) {
    margin-top: -10px;
  }
  .wblock:nth-child(4) {
    margin-top: 10px;
  }

  
  .wimg {
    height: 150px;
  }
  .wblock3 .wimg {
    height: 110px;
  }
  .wblock4 .wimg {
    height: 80px;
  }


}


@media (max-height: 500px) and (max-width: 500px) {
  .lhome {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-height: 600px) and (max-width: 500px) {
  .lhome {
    width: 170%;
    max-width: 170%;
  }
}



