:root {
  --primary-color: #0a0a0a;
  --secondary-color: #ffcf4c;
  --third-color: #ffffff;
  --fourth-color: #252525;
  --textarea--input-color: #00000071;

  --section-background-color: #151515;
  --form-background: #1e1e1e;
  --form--background-color: #202020;

  --reversed--by--order--services: 2;

  --primary-font: "Nunito Sans", sans-serif;

  --max-content-width: 1440px;
}

body {
  font-family: var(--primary-font);
}

.header__kubatura {
  background: var(--primary-color);
  width: 100%;
}

.nav__logo {
  width: 100%;
  height: 80px;
  max-width: 120px;
}

.stt {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary-color);
  color: var(--third-color);
  border-radius: 100%;
  padding: 15px;
  font-size: 22px;
  z-index: 99;
  transform: translateX(200%);
  transition: 0.3s ease-in-out;
  /* Reset button styles */
  border: none;
  cursor: pointer;
  line-height: 1;
}

.stt:hover {
  background: var(--secondary-color);
  filter: brightness(1.1);
}

.stt:focus {
  outline: 2px solid var(--third-color);
  outline-offset: 2px;
}

.stt.active {
  transform: translate(0);
  transition: 0.3s ease-in-out;
}

.nav__kubatura {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  background-color: var(--primary-color);
  position: relative;
  --fade-color: var(--third-color);
  --fade-opacity: 0.7;
  --fade-spread: 32%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.nav__kubatura::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent calc(50% - var(--fade-spread)),
    color-mix(
        in oklab,
        var(--fade-color) calc(var(--fade-opacity) * 100%),
        transparent
      )
      50%,
    transparent calc(50% + var(--fade-spread))
  );
}

.nav__list {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
}

.nav__item {
  list-style: none;
  justify-self: end;
}

.nav__item a,
.nav__item span {
  text-decoration: none;
  font-size: 1.12rem;
  color: var(--third-color);
  cursor: pointer;
  margin-right: 40px;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.nav__item__price__project {
  background: var(--secondary-color);
  color: black !important;
  padding: 10px;
  border-radius: 40px;
  font-weight: bold;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.nav__item__price__project:hover {
  background: transparent;
  scale: 1.05;
  color: var(--third-color) !important;
  box-shadow:
    0px 0px 20px var(--secondary-color),
    0px 0px 15px var(--secondary-color);
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.services__a::after {
  content: "\f077";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease-in-out;
}

.nav__item:not(:nth-child(6)):hover .services__a::after {
  transform: rotate(180deg);
}

.nav__item:not(:nth-child(6)) > a:hover {
  color: var(--secondary-color);
}

.dropdown {
  position: relative;
}

.wpcf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dropdown__list {
  --background-black: #000000;
  position: absolute;
  top: 98%;
  left: 0;
  min-width: 200px;
  padding: 6px 0;
  background: var(--background-black);
  color: var(--third-color);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 10;
  list-style: none;
}

.dropdown__item {
  padding: 1%;
  border-bottom: 1px solid var(--secondary-color);
}

.dropdown__item:last-child {
  border: none;
}

.dropdown__item a {
  display: block;
  padding: 10px;
  margin-right: unset;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.dropdown__item:hover a {
  color: var(--secondary-color);
}

.nav__item a {
  display: inline-block;
}

.nav__item a:focus + ul,
.nav__item a:hover + ul,
.dropdown__list:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .dropdown__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__item:hover .services__a::after {
  transform: rotate(180deg);
}

.nav__item > a::before {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 0%;
  height: 2px;
  border-radius: 5px;
  background: var(--secondary-color);
  transition: width 0.3s ease-in-out;
}

.nav__item:not(:nth-child(6)) a:hover::before {
  width: 100%;
  transition: width 0.3s ease-in-out;
}

.nav__item:not(:nth-child(6)) a.active {
  color: var(--secondary-color);
}

.nav__item a.active::before {
  width: 100%;
}

.nav__bar__mobile,
.mobile__menu {
  display: none;
}

footer {
  height: 200px;
  font-family: var(--primary-font);
  background: var(--primary-color);
}

footer > * {
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.footer__top__side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: auto;
  width: 50%;
  padding: 20px 0;
  border-bottom: solid 3px var(--secondary-color);
}

.footer__top__side > img {
  width: 110px;
  height: 110px;
  margin: auto;
  margin-top: 25px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: auto;
  font-size: 18px;
  gap: 20px;
}

.footer__links > a {
  width: fit-content;
  text-decoration: none;
  color: var(--third-color);
  transition: color 0.3s ease-in-out;
}

.footer__bottom__side > a:hover,
.linkedin__href:hover {
  color: var(--third-color);
  transition: color 0.3s ease-in-out;
}

.footer__links > a:hover {
  color: var(--secondary-color);
  transition: color 0.3s ease-in-out;
}

.footer__bottom__side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: auto;
  width: 50%;
  font-size: 16px;
  height: auto;
  margin-top: 10px;
  text-align: center;
}

.footer__bottom__side > a {
  justify-self: start;
  margin-left: 30px;
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.3s ease-in-out;
}

.footer__bottom__side > p {
  justify-self: end;
  margin-right: 30px;
  color: var(--third-color);
}

.linkedin__href {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.text__color {
  color: var(--secondary-color);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 700;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--third-color);
  outline-offset: 2px;
}

.footer_images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.first-img-footer {
  max-width: 150px;
  object-fit: contain;
}

.second-img-footer {
  max-width: 100px;
}

@media (max-width: 350px) {
  .footer__bottom__side {
    display: block !important;
    margin: auto;
    width: auto !important;
    margin: 10px 0px !important;
  }

  .footer__top__side > img {
    width: 85px !important;
    height: 85px !important;
    margin: initial !important;
  }

  .footer__links {
    font-size: 16px !important;
    white-space: nowrap !important;
    margin-left: unset !important;
  }

  .footer__top__side {
    width: 100% !important;
  }

  footer {
    height: auto;
    padding: 10px;
  }

  .footer__bottom__side > a {
    justify-self: unset !important;
    margin-left: initial !important;
  }

  .footer__bottom__side > p {
    justify-self: unset !important;
    margin-right: initial !important;
  }
}

@media (min-width: 351px) and (max-width: 768px) {
  .footer__bottom__side {
    display: block !important;
    width: auto !important;
    margin: 10px auto;
  }

  .wpcf7-submit:hover {
    all: unset;
  }

  .footer__top__side > img {
    width: 110px !important;
    height: 110px !important;
  }

  .footer__links {
    font-size: 16px !important;
    white-space: nowrap !important;
    margin-left: 30px !important;
  }

  .footer__top__side {
    width: 90% !important;
  }

  footer {
    height: auto;
    padding: 10px;
  }

  .footer__bottom__side > a {
    justify-self: unset !important;
    margin-left: initial !important;
  }

  .footer__bottom__side > p {
    justify-self: unset !important;
    margin-right: initial !important;
  }

  footer > * {
    padding-left: unset;
    padding-right: unset;
  }
}

@media (max-width: 883px) {
  html {
    overflow-x: hidden;
  }

  .nav__list {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--primary-color);
    z-index: 3;
    padding: 20px;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .header__kubatura {
    height: 62px;
  }

  .nav__kubatura {
    grid-template-columns: auto 1fr;
    padding: 0 20px;
  }

  .nav__bar__mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    cursor: pointer;
    z-index: 3;
    gap: 5px;
    width: fit-content;
    margin-left: auto;
    background: none;
    border: none;
  }

  .line {
    width: 30px;
    height: 3px;
    background-color: var(--third-color);
    margin: 0px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  .dropdown__item:hover a {
    color: #ffcf4c;
  }

  .nav__item {
    width: 100%;
    text-align: center;
  }

  .nav__item a,
  .nav__item span {
    margin-right: unset;
  }

  .burger.active .top {
    transform: rotate(45deg) translate(6px, 5px);
  }

  .burger.active .middle {
    opacity: 0;
  }

  .burger.active .bottom {
    transform: rotate(-45deg) translate(6px, -5px);
  }

  .nav__item:not(:nth-child(6)) a.active {
    color: #ffcf4c;
  }

  .dropdown__list {
    width: 95%;
    left: 0;
    right: 0;
    margin: auto;
    height: max-content;
  }

  .dropdown__list li {
    padding: 10px !important;
  }

  .show-mobile-menu {
    transform: translateX(0) !important;
    transition: transform 0.3s ease-in-out;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .close__icon {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    cursor: pointer;
    color: var(--primary-color);
  }
}

@media (min-width: 883px) and (max-width: 1000px) {
  .nav__kubatura {
    gap: unset;
  }
}

@media (min-width: 769px) and (max-width: 1600px) {
  .footer__top__side,
  .footer__bottom__side {
    width: 90%;
  }
}

@media (max-width: 660px) {
  .footer__top__side {
    grid-template-columns: auto;
    grid-gap: 15px;
  }

  .footer__links {
    width: 100%;
  }
}
