@import url("reset.css");
:root {
  --blue: #2128d2;
  --darkBue: #0a0e39;
  --whuteBlue: #e9f6ff;
  height: 100%;
  font-size: 16px;
  font-family: sans-serif;
  scroll-behavior: smooth;
}
.body {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: var(--blue);
  color: var(--whuteBlue);
  overflow-x: hidden;
  flex-direction: column;
}
input[type="button"] {
  cursor: pointer;
}
.body > * {
  flex: 0 0 auto;
}
.body > *:nth-child(2) {
  flex: 1 0 auto;
}
.header > *,
.header .nav > ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .nav > ul {
  gap: 1.4rem;
}
.container {
  width: 1174px;
  margin: auto;
}
.dFlex {
  display: flex;
  justify-content: space-between;
}
.textCenter {
  text-align: center;
}
.w100 {
  width: 100%;
}
.wFit {
  width: fit-content;
}
.header {
  margin: 2rem 0;
}
.logo span {
  font-size: 1.75rem;
  text-decoration: underline;
}
.button {
  height: 2.5em;
  padding: 0.5rem 1rem;
  border: 1px solid;
  border-radius: 1rem;
}
.darkButton {
  background-color: var(--darkBue);
  color: var(--whuteBlue);
}
.alphaButton {
  background-color: #ffffff00;
}
.titleBlock,
.types,
.about,
.hTitle,
.problem--item,
.form,
.price,
.bottomForm {
  padding: 3rem;
  border: 1px solid;
  border-radius: 2rem;
}
.titleBlock,
.types,
.mBottom,
.about:last-child,
.form,
.price,
.bottomForm {
  margin-bottom: 3rem;
}
.about,
.problem--item {
  margin-bottom: 1rem;
}
.bRadius {
  border-radius: 2rem;
}
h1 {
  margin-bottom: 5rem;
  font-size: 3rem;
}
h1 span {
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
}
h2 {
  margin-bottom: 1.3rem;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}
h3 {
  width: fit-content;
  margin-bottom: 2rem;
  background-color: var(--blue);
  color: var(--whuteBlue);
  font-style: italic;
}
.titleBlock,
.hTitle,
.problem--item,
.whitekButton,
.form {
  background-color: var(--whuteBlue);
  color: var(--darkBue);
}
.titleBlock .text-item {
  font-style: italic;
}
.about {
  background-color: var(--darkBue);
}
.titleBlock > .dFlex {
  gap: 2rem;
}
.titleBlock > .dFlex .dFlex {
  align-items: flex-end;
}
.titleBlock .text-item {
  width: 450px;
}
.titleBlock img {
  border-radius: 2rem;
}
.types {
  flex-wrap: wrap;
  gap: 20px;
}
.about--text {
  margin-left: 8rem;
}
.about {
  gap: 25px;
}
.hTitle {
  margin-top: 3rem;
}
.problem--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  gap: 28px;
}
.problem--grid img {
  min-width: 300px;
  @media screen and (max-width: 600px) {
    min-width: 100%;
  }
}
.problem--item ul {
  margin-bottom: 2rem;
  margin-left: 1rem;
  list-style: disc;
}
.problem--item li {
  margin-bottom: 0.5rem;
  &::first-letter {
    text-transform: uppercase;
  }
}
.form h2 {
  width: 70%;
}
.form--title {
  font-size: 1.75rem;
}
.form .dFlex {
  gap: 50px;
}
.form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.price--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.price--item li {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid;
  justify-content: space-between;
}
.blueButton {
  background-color: var(--blue);
  color: var(--whuteBlue);
}
.bottomForm form {
  flex-direction: column;
}
footer {
  padding: 3rem;
  background-color: var(--darkBue);
}
footer input {
  color: var(--whuteBlue);
}
footer ul,
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contacts > div {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-around;
}
@media screen and (max-width: 600px) {
  .container,
  img,
  h2,
  .button,
  .logo,
  .nav,
  .form h2,
  .form--title,
  .titleBlock .text-item {
    width: 100%;
    margin-bottom: 2rem;
  }
  footer img {
    width: auto;
  }
  .dFlex,
  .header > *,
  .header .nav > ul,
  footer ul,
  .contacts {
    display: flex;
    flex-direction: column;
  }
  .problem--grid,
  .price--grid,
  footer ul,
  .contacts {
    grid-template-columns: 1fr;
  }
  h2,
  .logo,
  .button {
    text-align: center;
  }
  .titleBlock,
  .types,
  .about,
  .hTitle,
  .problem--item,
  .form,
  .price,
  .bottomForm {
    padding: 1rem;
  }
  .about--text {
    margin-left: 0;
  }
  .contacts,
  footer ul {
    align-items: center;
  }
  footer .contacts > div {
    align-items: normal;
  }
}
.floatForm {
  display: none;
  position: fixed;
  z-index: 20;
  top: 10%;
  left: 45%;
  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 var(--darkBue);
    border-radius: 5rem;
    transition: all 0.5s;
    &[type="submit"] {
      border-radius: 5rem;
      background-color: var(--darkBue);
      color: var(--whuteBlue);
      &:hover {
        background-color: var(--whuteBlue);
        color: var(--darkBue);
      }
    }
  }
  & .close {
    width: fit-content;
    margin-left: auto;
    padding: 0.1rem 0.5rem 0.2rem 0.5rem;
    border-radius: 50%;
  }
}
