@import url("reset.css");
:root {
  --colorM: #040037;
  --colorS: #5555c7;
  --colorT: #fd6c6d;
  --colorF: #01a4ab;
  --textMiddle: 20px;
  --textSmall: 16px;
  --p: 2rem;
  height: 100%;
  color: var(--colorM);
  font-size: 16px;
  font-family: "Merriweather Sans", sans-serif;
  scroll-behavior: smooth;
  @media screen and (max-width: 600px) {
    --p: 0.5rem;
  }
}
.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;
}
.header,
.nav > ul {
  display: flex;
  justify-content: space-between;
}
.header {
  margin-bottom: 40px;
}
.header .dFlex {
  gap: 0;
}
.header .dFlex > * {
  width: 100%;
  min-width: fit-content;
}
.nav li,
.header .contacts {
  display: inline-flex;
  height: 64px;
  padding: 0.5rem 1.5rem;
  align-items: center;
  justify-content: center;
  @media screen and (max-width: 600px) {
    height: auto;
  }
}
.nav li:hover {
  background-color: var(--colorS);
}
.nav a {
  transition: color 0.5s;
}
.nav {
  gap: 2.25rem;
}
.contacts {
  display: flex;
  color: var(--colorS);
  font-size: var(--textMiddle);
  flex-direction: column;
  align-items: flex-end;
}
.header .contacts a {
  text-align: right;
}
.header .contacts img {
  vertical-align: bottom;
}
input {
  width: fit-content;
  height: 44px;
  padding: 0.5rem 2rem;
  transition: all 0.5s;
}
header input,
input[type="button"],
.submit {
  background-color: var(--colorS);
}
header input:hover,
input[type="button"]:hover,
.submit:hover {
  background-color: var(--colorT);
  color: var(--colorM);
}
.nav__column {
  display: flex;
  flex-direction: column;
}
.container {
  width: 1174px;
  margin-right: auto;
  margin-left: auto;
  @media screen and (max-width: 600px) {
    width: 100%;
  }
}
.dFlex {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  @media screen and (max-width: 600px) {
    flex-direction: column;
  }
}
.gap0 {
  gap: 0;
}
.flexColumn {
  flex-direction: column;
}
.justifyStart {
  justify-content: flex-start;
}
.justifyCenter {
  justify-content: center;
}
.justifyEvenly {
  justify-content: space-evenly;
}
.justifyEnd {
  justify-content: end;
}
.alignCenter {
  align-items: center;
}
.grid {
  display: grid;
}
.textCenter {
  text-align: center;
}
.texMiddle {
  font-size: var(--textMiddle);
}
.textLarge {
  font-size: 6rem;
  font-weight: 600;
  text-transform: uppercase;
}
h1 {
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
}
h3 {
  margin: var(--textMiddle) 0;
  font-size: var(--textMiddle);
  font-weight: 700;
}
main > * {
  margin-top: 4rem;
}
main > *:first-child {
  margin-top: 0;
}
.title ul {
  margin-left: 2rem;
  list-style: disc;
}
.footer {
  padding: 4.5rem 0;
  background-color: var(--colorM);
  color: #fff;
  @media screen and (max-width: 600px) {
    padding: 1.5rem 0.5rem;
  }
  & input {
    border-radius: 0.5rem;
    background-color: var(--colorF);
    color: #fff;
    transition: all 0.3s;
    &:hover {
      background-color: var(--colorS);
      color: #fff;
    }
  }
}
.footer .nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  & li {
    height: auto;
    padding: 0;
  }
}
.footer .contacts {
  color: #fff;
  gap: 1rem;
  align-items: start;
}
.w100 {
  width: 100%;
}
input[type="button"] {
  cursor: pointer;
}
.Header {
  & > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  & h1 {
    margin-bottom: 0.5em;
    & > div {
      width: 100%;
      margin: 0.25em 0;
      padding: 0.25em 0;
      border-radius: 0.5rem;
      background-color: var(--colorS);
      color: #fff;
      text-align: center;
    }
  }
  & .items {
    align-items: baseline;
    text-align: center;
    @media screen and (max-width: 600px) {
      margin-bottom: 1em;
      flex-direction: row;
    }
    & .title {
      color: var(--colorT);
      font-size: var(--textMiddle);
    }
  }
  & input {
    border-radius: 0.5rem;
    background-color: var(--colorT);
    color: #fff;
    transition: all 0.3s;
    &:hover {
      background-color: var(--colorS);
      color: #fff;
    }
  }
}
.Masters {
  & img {
    margin-bottom: -0.25rem;
  }
  & .header {
    margin-bottom: 5.75rem;
    gap: 0;
    & > div {
      display: flex;
      padding: 0 2rem;
      border-top-right-radius: 1.2rem;
      border-bottom-right-radius: 1.2rem;
      background-color: var(--colorM);
      color: #fff;
      flex-direction: column;
      justify-content: center;
      gap: 2rem;
      @media screen and (max-width: 600px) {
        padding-top: 1.5em;
        padding-bottom: 1.5em;
      }
      & h2 {
        margin: 0;
        font-weight: 500;
        & span {
          color: var(--colorT);
        }
      }
      & input {
        width: 100%;
        border-radius: 0.5rem;
        background-color: var(--colorF);
        color: #fff;
        transition: all 0.3s;
        &:hover {
          background-color: var(--colorT);
          color: #fff;
        }
      }
    }
  }
  & .items {
    & > .dFlex {
      & h2 {
        margin-bottom: 1em;
        & span {
          color: var(--colorF);
        }
      }
      & > div {
        font-size: var(--textMiddle);
      }
    }
  }
  & .item {
    text-align: center;
    & .title {
      margin: 1em 0;
      font-size: var(--textMiddle);
    }
    & .desc {
      font-size: 16px;
    }
  }
}
.Order {
  padding: 4.5rem var(--p);
  border-radius: 1.2rem;
  background-color: var(--colorS);
  color: #fff;
  & > div {
    display: flex;
    padding: 2rem 0;
    flex-direction: column;
    justify-content: space-between;
    & h2 {
      & span {
        color: var(--colorT);
      }
    }
    & form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      & input {
        width: 100%;
        border-radius: 0.5rem;
        &.submit {
          background-color: var(--colorF);
          color: #fff;
          transition: all 0.3s;
          &:hover {
            background-color: var(--colorT);
            color: #fff;
          }
        }
      }
    }
  }
  & img {
    border-radius: 1.2rem;
  }
}
.Advantages {
  & .title {
    margin-bottom: 1em;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    @media screen and (max-width: 600px) {
      font-size: 1.5rem;
    }
  }
  & .dFlex {
    align-items: center;
  }
}
.Portfolio {
  padding: 4.5rem var(--p);
  border-radius: 1.2rem;
  background-color: var(--colorS);
  & h2 {
    margin-bottom: 1em;
    color: #fff;
  }
  & > .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    @media screen and (max-width: 600px) {
      grid-template-columns: 1fr;
    }
    & > div {
      padding: 2rem;
      border-radius: 1.2rem;
      background-color: #fff;
      & img {
        border-radius: 1rem;
      }
      & .title {
        width: fit-content;
        margin: 1em 0;
        padding: 0.5em 1em;
        border-radius: 0.5rem;
        color: #fff;
        font-size: var(--textMiddle);
        &.i0,
        &.i1 {
          background-color: var(--colorT);
        }
        &.i2,
        &.i3 {
          background-color: var(--colorF);
        }
        &.i4,
        &.i5 {
          background-color: var(--colorM);
        }
      }
    }
  }
}
.Price {
  & h2 {
    margin-bottom: 1em;
  }
  & > .dFlex {
    & > div {
      padding: 2rem;
      border-radius: 1.2rem;
      color: #fff;
    }
    & .form {
      background-color: var(--colorF);
      flex: 1 1 35%;
      & > div {
        margin-bottom: 2rem;
        font-weight: 600;
      }
      & > .dFlex {
        gap: 1rem;
        & input {
          width: 100%;
          border-radius: 0.5rem;
          &.submit {
            background-color: var(--colorT);
            color: #fff;
            transition: all 0.3s;
            &:hover {
              background-color: var(--colorS);
              color: #fff;
            }
          }
        }
      }
      & p {
        margin-top: 2rem;
        color: var(--colorM);
      }
    }
    & .price {
      background-color: var(--colorM);
      flex: 1 1 65%;
      & .item {
        margin-bottom: 1.5rem;
        & .title {
          flex: 1 1 85%;
        }
        & .price {
          color: var(--colorT);
          flex: 1 1 15%;
        }
      }
    }
  }
}
.Steps {
  counter-reset: section;
  padding: 4.5rem var(--p);
  border-radius: 1.2rem;
  background-color: var(--colorS);
  color: #fff;
  & h2 {
    margin-bottom: 1.5em;
  }
  & > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  & .dFlex {
    & > div {
      & span {
        margin-right: 0.5rem;
        color: var(--colorT);
        &:before {
          content: counter(section) ".";
          counter-increment: section;
          margin-right: 0.5rem;
        }
      }
    }
  }
  & input {
    width: 100%;
    border-radius: 0.5rem;
    background-color: var(--colorF);
    color: #fff;
    transition: all 0.3s;
    &:hover {
      background-color: var(--colorT);
      color: #fff;
    }
  }
  & img {
    border-radius: 1.2rem;
  }
}
@media screen and (max-width: 600px) {
  body {
    padding: 0 0.5rem;
  }
  h1,
  h2,
  h3 {
    font-size: 1.5rem;
    text-wrap: wrap;
    hyphens: auto;
  }
  img,
  input {
    width: 100%;
  }
  img[src*=".svg"] {
    max-width: 50%;
    margin: auto;
  }
}
.floatForm {
  display: none;
  position: fixed;
  z-index: 20;
  top: 10%;
  left: 40%;
  padding: 1.5rem;
  padding-bottom: calc(var(--textMiddle) + 1.5rem);
  border-radius: 1rem;
  background: #fff;
  flex-direction: column;
  box-shadow: 0 0 1rem #00000020;
  @media screen and (max-width: 600px) {
    left: 1%;
    width: 98%;
  }
  & input,
  select {
    width: 100%;
    height: 44px;
    margin-bottom: 1rem;
    padding: 0.5rem 2rem;
    border: 1px solid;
    border-radius: 5rem;
    transition: all 0.5s;
    &.submit {
      border-radius: 5rem;
      background-color: var(--colorS);
      box-shadow: 0 3px #0003 inset;
      &:hover {
        background-color: var(--colorM);
        color: var(--colorT);
      }
    }
  }
  & .close {
    width: fit-content;
    margin-left: auto;
    padding: 0.1rem 0.5rem 0.2rem 0.5rem;
    border-radius: 50%;
  }
}
/* @supports (
  background-image: -webkit-image-set(url("../images/bgKettle.webp"))
) {
  .blockH1 {
    background-image: -webkit-image-set(url("../images/bgKettle.webp"));
  }
} */
.submit {
  color: #fff;
  border: 1px solid;
  padding: 1rem 0;
  border-radius: 2rem;
}
.grecaptcha-badge {
  visibility: hidden;
}
