@import url(reset.css);
:root {
  --colorMain: #1e63a8;
  --colorSecondery: #e74421;
  --colorThird: #223869;
  --colorWhite: #ffffff;
  --textSmall: 12px;
  --textMain: 16px;
  --textMedium: 20px;
  --container: 1440px;
  --border: 1px solid color-mix(in srgb, var(--colorSecondery) 40%, transparent);
  height: 100%;
  color: var(--colorThird);
  font-size: var(--textMain);
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
}
.body {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  flex-direction: column;
}
.body > * {
  flex: 0 0 auto;
}
.body > *:nth-child(2) {
  flex: 1 0 auto;
}
.container {
  width: var(--container);
  margin: 0 auto;
  @media (max-width: 600px) {
    width: 100%;
  }
}
.dFlex {
  display: flex;
  justify-content: space-between;
}
.textCenter {
  text-align: center;
}
.flexColumn {
  flex-direction: column;
}
.spaceBetween {
  justify-content: space-between;
}
.spaceAround {
  justify-content: space-around;
}
:is(input, select) {
  margin: 1rem 0;
  padding: 10px;
  border: var(--border);
}
input[type="checkbox"] {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
input[type="checkbox"] + label {
  display: flex;
  font-size: var(--textSmall);
  align-items: center;
  user-select: none;
  gap: 0.4em;
}
input[type="checkbox"] + label::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  padding: 10px;
  border: var(--border);
  border-radius: 0.25em;
  background-position: center center;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  flex-shrink: 0;
  flex-grow: 0;
}
input[type="checkbox"]:checked + label::before {
  padding: 10px;
  border: var(--border);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
input[type="checkbox"]:not(:disabled):not(:checked) + label:hover::before {
  border-color: var(--colorWhiteBroun);
}
input[type="checkbox"]:not(:disabled):active + label::before {
  background-color: var(--colorWhiteBroun);
  border-color: var(--colorWhiteBroun);
}
input[type="checkbox"]:focus + label::before {
  box-shadow: 0 0 0 1px var(--colorDurkBroun);
}
input[type="checkbox"]:focus:not(:checked) + label::before {
  border-color: var(--colorWhiteBroun);
}
input[type="checkbox"]:disabled + label::before {
  background-color: var(--colorBroun);
}
input[type="checkbox"] ~ label a {
  text-decoration: underline;
}
input[type="submit"] {
  width: fit-content;
  background-color: var(--colorMain);
  color: var(--colorWhite);
  transition: all 0.2s;
  @media (max-width: 600px) {
    width: 100%;
  }
  &:hover {
    filter: brightness(0.8);
  }
}
form {
  width: 30vw;
  margin: 3rem auto 0 auto;
  @media (max-width: 600px) {
    width: 100%;
  }
}
header {
  position: fixed;
  z-index: 10;
  width: 100%;
  background-color: var(--colorWhite);
  color: var(--colorMain);
  font-weight: 600;
  box-shadow: 0 0.5rem 1rem;
  @media (max-width: 600px) {
    position: relative;
  }
  & > .dFlex {
    margin-bottom: -4px;
    gap: 2em;
    align-items: center;
    @media (max-width: 600px) {
      padding: 0 0 1rem 0;
      flex-direction: column;
      gap: 0;
    }
  }
  & .logo {
    height: 70px;
    padding: 0.5rem 1rem;
    background-color: var(--colorWhite);
    @media (max-width: 600px) {
      width: 100%;
      height: auto;
    }
  }
  & .nav {
    @media (max-width: 600px) {
      width: 100%;
      font-size: 1.5rem;
      order: 1;
      & .dFlex {
        flex-direction: column;
        align-items: baseline;
      }
      & .m {
        max-height: 2rem;
        flex-direction: column;
        align-items: start;
        & > * {
          margin-left: 0.5rem;
        }
      }
    }
    & .nav-item {
      width: 100%;
      padding: 0.5rem 1rem;
      transition: all 0.2s;
      &:hover {
        background-color: var(--colorSecondery);
        color: var(--colorWhite);
      }
      &::first-letter {
        text-transform: uppercase;
      }
    }
    & .sub {
      width: 100%;
      & .subElements {
        display: flex;
        position: absolute;
        min-width: 259px;
        max-height: 0;
        margin-top: 2em;
        background-color: var(--colorMain);
        color: var(--colorWhite);
        font-weight: 400;
        transition: all 0.6s linear;
        flex-direction: column;
        overflow: hidden;
        @media (max-width: 600px) {
          position: relative;
          max-height: 130px;
          margin-top: 0;
        }
      }
      &:hover .subElements {
        max-height: 1000px;
      }
    }
  }
  & .contacts {
    position: relative;
    padding-left: 1em;
    border-left: 1px solid;
    font-size: 1.2rem;
    @media (max-width: 600px) {
      padding-left: 0;
      border: none;
      font-size: 2rem;
      gap: 0.5rem;
    }
    &::before {
      content: url(../images/icons/tel.svg);
      display: none;
      position: absolute;
      top: 0.5em;
      width: 2em;
      margin-left: -4em;
    }
  }
}
.Address {
  margin-top: 70px;
  padding-top: 1rem;
  @media (max-width: 600px) {
    margin-top: 0;
  }
  & > .dFlex {
    gap: 1rem;
    justify-content: flex-start;
    @media (max-width: 600px) {
      padding: 0 1rem;
      flex-direction: column;
    }
    & .a {
      padding-right: 1rem;
      border-right: var(--border);
      align-items: center;
      gap: 1rem;
      @media (max-width: 600px) {
        border: none;
        justify-content: left;
      }
    }
    & .b {
      @media (max-width: 600px) {
        flex-direction: column;
      }
      & > div {
        display: flex;
        flex-direction: column;
        & .title {
          display: inline-flex;
          margin: 0.5em 0;
          font-weight: 600;
          gap: 1em;
          &::before {
            content: "";
            display: block;
            width: 1em;
            height: 1em;
            background-image: url(../images/icons/geoBlue.svg);
          }
        }
      }
    }
    & .c {
      display: flex;
      margin: 0.5rem 0;
      flex-direction: column;
      justify-content: flex-start;
      @media (max-width: 600px) {
        gap: 1rem;
      }
      & .mail {
        display: inline-flex;
        gap: 1em;
        &::before {
          content: "";
          display: block;
          width: 1em;
          height: 1em;
          background-image: url(../images/icons/mailBlue.svg);
        }
      }
    }
    & .d {
      display: flex;
      width: 100%;
      justify-content: space-between;
      @media (max-width: 600px) {
        flex-direction: column;
      }
    }
    & .b > div:first-child,
    .c > div:first-child {
      margin-bottom: 0.5rem;
      padding-bottom: 0.2rem;
      border-bottom:  var(--border);
    }
  }
  & .tel {
    display: inline-flex;
    font-size: 1.2rem;
    gap: 1em;
    &::before {
      content: "";
      display: block;
      width: 1em;
      height: 1em;
      background-image: url(../images/icons/telBlue.svg);
    }
  }
  & a {
    transition: all 0.3s;
    &:hover {
      color: var(--colorSecondery);
      text-decoration: underline;
    }
  }
}
.m {
  max-height: 2rem;
  transition: all 0.3s linear;
  flex: 1;
  @media (max-width: 600px) {
    overflow: hidden;
    flex-direction: column;
  }
  & .mMune {
    display: none;
    @media (max-width: 600px) {
      display: block;
      width: 40px;
      height: 40px;
    }
  }
}
main {
  padding-top: 3rem;
  & .Page {
    display: grid;
    grid-template-columns: 1fr 3fr;
    @media (max-width: 600px) {
      grid-template-columns: 1fr;
    }
    & .menu {
      height: fit-content;
      padding: 1rem;
      box-shadow: 0 0 4px;
      @media (max-width: 600px) {
        display: none;
      }
      & .services {
        border-bottom: var(--border);
        & h2 {
          margin-bottom: 0.5em;
          font-size: 1.5rem;
          font-weight: 600;
        }
      }
      & .contacts {
        margin-top: 1em;
      }
      & .nav-item {
        margin-bottom: 0.5em;
        transition: all 0.5s;
        &:hover {
          text-decoration: underline;
        }
        &::first-letter {
          text-transform: uppercase;
        }
      }
      & form {
        width: 100%;
        margin: 0;
      }
    }
    & .content {
      padding-left: 3rem;
      & h1 {
        margin-bottom: 0.5em;
        font-size: 1.5rem;
        font-weight: 600;
        &::first-letter {
          text-transform: uppercase;
        }
      }
      & p {
        line-height: 1.2em;
      }
    }
  }
  & .grid {
    display: grid;
    margin: 5rem 0;
    font-size: 1.4rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
    @media (max-width: 600px) {
      grid-template-columns: 1fr;
    }
    & div {
      &::before {
        /* content: "1"; */
      }
    }
  }
  & .videoBlock {
    position: relative;
    & video {
      width: 100%;
    }
    & > div {
      display: flex;
      position: absolute;
      top: 0;
      width: 50%;
      height: 100%;
      padding-bottom: 20%;
      background: url(../images/bg.webp);
      background-size: cover;
      background-repeat: no-repeat;
      font-weight: 600;
      align-items: center;
      filter: drop-shadow(15px 0 6px black);
      @media (max-width: 600px) {
        width: 100%;
        padding: 0 1rem;
        background: none;
        color: var(--colorWhite);
      }
    }
  }
  & .Services {
    margin-top: 3rem;
    gap: 3rem;
    @media (max-width: 600px) {
      flex-direction: column;
    }
    & h2 {
      margin-top: 1rem;
      font-size: 1.5rem;
      font-weight: 600;
    }
    & a {
      width: 100%;
      padding-bottom: 1rem;
      border: 1px solid var(--colorSecondery);
      transition: color 0.5s;
      text-align: center;
      & div {
        width: 100%;
        border-bottom: 1px solid var(--colorSecondery);
        overflow: hidden;
        & img {
          width: 100%;
          margin-bottom: -5px;
          transition: all 0.5s;
        }
      }
    }
    & a:hover {
      color: var(--colorSecondery);
    }
    & a:hover img {
      transform: scale(1.2);
    }
  }
  & .Works {
    & > div {
      display: grid;
      width: 100%;
      gap: 0.5rem;
      justify-items: start;
      grid-auto-flow: row dense;
      grid-template-columns: repeat(3, 1fr);
      & > div {
        position: relative;
        cursor: pointer;
        & img {
          max-width: 100%;
          height: -moz-available;
          height: -webkit-fill-available;
          height: fill-available;
        }
        &::before {
          content: attr(title);
          position: absolute;
          z-index: 2;
          width: 100%;
          padding: 1em;
          background-color: color-mix(
            in srgb,
            var(--colorWhite) 30%,
            transparent
          );
          color: var(--colorMain);
          pointer-events: none;
        }
      }
    }
  }
  & .Building {
    display: grid;
    margin: 3rem 0;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 10vw;
    @media (max-width: 600px) {
      grid-template-columns: 1fr;
    }
    & h3 {
      min-height: 3em;
      margin-top: 0.5em;
      font-size: 1.5rem;
      font-weight: 600;
    }
    & img {
      width: 100%;
    }
    & p + p {
      margin-top: 0;
    }
  }
  & .stage {
    & h2 {
      font-size: 2rem;
      font-weight: 600;
      text-align: center;
    }
  }
}
footer {
  margin-top: 5rem;
  padding: 2rem 0;
  background: linear-gradient(var(--colorMain), var(--colorSecondery));
  color: var(--colorWhite);
  @media (max-width: 600px) {
    padding: 0 1rem 1rem 1rem;
    & div.dFlex {
      flex-direction: column;
    }
    & .logo {
      margin: 1rem 0;
      order: 3;
      text-align: center;
      @media (max-width: 600px) {
        width: 100%;
        height: auto;
        margin-top: -1px;
      }
    }
  }
  & a {
    font-weight: 300;
    transition: color 0.3s;
    &:hover {
      color: var(--colorThird);
    }
  }
  & .logo {
    & img {
      height: 70px;
      padding: 0.5rem 1rem;
      background-color: var(--colorWhite);
    }
    & div {
      margin: 0.5rem 0;
      font-size: 1.5rem;
      font-weight: 500;
    }
  }
  & .address {
    & > * {
      margin-bottom: 0.5em;
    }
    & .title {
      display: inline-flex;
      margin: 0.5em 0;
      font-size: 1.2rem;
      font-weight: 600;
      gap: 1em;
      &::before {
        content: "";
        display: block;
        width: 1em;
        height: 1em;
        background-image: url(../images/icons/geo.svg);
      }
    }
  }
  & .tel {
    display: inline-flex;
    font-size: 1.2rem;
    gap: 1em;
    &::before {
      content: "";
      display: block;
      width: 1em;
      height: 1em;
      background-image: url(../images/icons/tel.svg);
    }
  }
  & .mail {
    display: inline-flex;
    font-size: 1.2rem;
    gap: 1em;
    &::before {
      content: "";
      display: block;
      width: 1em;
      height: 1em;
      background-image: url(../images/icons/mail.svg);
    }
  }
}
ol {
  margin: 10px 0;
  padding: 0;
  list-style: none;
}
li {
  position: relative;
  margin: 0;
  padding: 0 0 10px 40px;
  line-height: 1.2em;
}
li::before {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
}
ol {
  counter-reset: num;
}
ol > li p,
ul > li {
  font-weight: 400;
}
ol > li {
  counter-increment: num;
}
ol > li::before {
  content: counter(num);
}
ol ol {
  counter-reset: num2;
}
ol ol > li {
  counter-increment: num2;
  font-weight: 400;
}
ol ol > li::before {
  content: counter(num) "." counter(num2);
}
ol > p {
  margin-left: 3rem;
}
.show {
  display: none;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2%;
  background-color: #000000de;
  align-items: center;
  justify-content: center;
  text-align: center;
  @media (max-width: 600px) {
    padding: 10% 1%;
  }
  & * {
    max-width: 90vw;
    max-height: 90vh;
    @media (max-width: 600px) {
      width: 100%;
    }
  }
}
.textL {
  font-size: 1.4rem;
  @media (max-width: 600px) {
    font-size: 1rem;
  }
}
.bold {
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.mP {
  @media (max-width: 600px) {
    padding: 0;
  }
}
.page {
  background-position: bottom right;
  background-repeat: no-repeat;
}
table {
  width: 100%;
  border-spacing: 0px;
  border-collapse: collapse;
}
td {
  padding: 1rem;
  border: 2px solid;
}
.inline {
  display: inline-flex;
  align-items: center;
}
.underLine {
  color: var(--colorBroun);
  text-decoration: underline;
  &:hover {
    color: var(--colorWhiteBroun);
  }
}
.about {
  margin-bottom: 2rem;
  gap: 2rem;
  text-align: justify;
  @media (max-width: 660px) {
    flex-direction: column-reverse;
  }
  & img {
    max-height: 600px;
    @media (max-width: 600px) {
      max-width: 100%;
    }
  }
}
.grecaptcha-badge {
  display: none;
}
.message {
  position: fixed;
  z-index: 10;
  top: 50%;
  left: 35%;
  padding: 2rem;
  font-size: 1.5rem;
  transition: opacity 0.5s linear 1.5s;
  box-shadow: 0 0 1rem;
  opacity: 1;
  @media (max-width: 600px) {
    left: 0;
    width: 100%;
  }
}
.success {
  background-color: #c5ffd1;
}
.error {
  background-color: #ffdede;
}
.nowrapText {
  white-space: nowrap;
}
.Form,
.About,
.Design,
.Construction,
.Works,
.Price {
  @media (max-width: 600px) {
    padding: 0 1rem !important;
  }
}
.colorSecondery {
  color: var(--colorSecondery);
}
.maps {
  gap: 1rem;
  @media (max-width: 600px) {
    flex-direction: column;
  }
  & h2 {
    margin-top: 3rem;
    margin-bottom: 1em;
    font-weight: 600;
  }
  & > div{
      width:100%;
  }
  & > div > div {
    margin-bottom: 1em;
  }
  & iframe {
    width: 100%;
    min-height: 400px;
    border: 0;
  }
}
