@import url(blocks/burger.css);
@import url(blocks/popUp.css);
html {
  block-size: 100%;
  inline-size: 100%;
}

body {
  min-block-size: 100%;
  min-inline-size: 100%;
  box-sizing: border-box;
  place-content: center;
  font-family: "Roboto", sans-serif;
  padding: 0;
  /* margin: 0; */
}

.container {
  margin: 2% 15% 0 15%;
}

.visually-hidden {
  display: none;
}

/* Меню и информация */
header {
  background-color: #eeeeee;
  width: 100%;
  min-height: 332px;
}

.nav {
  margin: 0 15% 0 15%;
  display: flex;
  justify-content: space-between;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  /* font-size: ; */
  text-decoration: none;
}

.nav-logo {
  height: 70px;
}

.nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: black;
  user-select: none;
}

.nav a:hover {
  text-decoration: none;
  color: #283136;
}

.btn-order {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  user-select: none;
  padding: 0;
  outline: none;
  border: none;
}

.btn-order:focus {
  color: #333333;
  outline: none;
}

.btn-order:active {
  color: #333333;
  box-shadow: none;
}

.menu ul {
  display: flex;
  margin-top: 22px;
}

.menu li a {
  padding: 1rem;
  padding-left: 0;
}

.header-info {
  display: flex;
  flex-wrap: wrap;
  margin: 0 15% 0 15%;
  height: 400px;
  position: relative;
  z-index: 1;
}

.header-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  z-index: -1;
  background: url(/img/mediapng.png);
  background-repeat: no-repeat;
  background-position: right;
}

.header-info__item__text {
  /* Если меньше 300пх сделать меньше */
  font-size: 3rem;
  font-weight: 600;
  margin: 10% 0 0 0;
  max-width: 70%;
  /* regular and medium */
}

.header-info p {
  color: #333333;
}

.btn-more-info {
  background-color: #fb565a;
  color: #ffffff;
  font-weight: 500;
  border: none;
  border-radius: 3px;
  margin: 2% 0 0 0;
  padding: 15px 30px 15px 30px;
}

.btn-more-info:hover {
  background-color: #e74246;
}

.btn-more-info:active {
  background-color: d7373b;
  color: rgba(255, 255, 255, 0.5);
}

/* Карточки */
.card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-items: center;
}

.card-item {
  flex: 1 0 33%;
  text-align: center;
}

.card-item p {
  height: 50px;
}

/* 1 кнопка */
.btnOrder {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  padding: 15px 30px 15px 30px;
  outline: none;
  border: none;
  border-radius: 3px;
  color: #ffffff;
  background-color: #fb565a;
}

.btnOrder:hover {
  background-color: #e74246;
}

.btnOrder:active {
  background-color: d7373b;
  color: rgba(255, 255, 255, 0.5);
}

/* 2 кнопка */
.card-item:nth-child(2) .btnOrder {
  background-color: #00ca74;
}

.card-item:nth-child(2) .btnOrder:hover {
  background-color: #00bc6c;
}

.card-item:nth-child(2) .btnOrder:active {
  background-color: #00aa62;
}

/* 3 кнопка */
.card-item:nth-child(3) .btnOrder {
  background-color: #efc849;
}

.card-item:nth-child(3) .btnOrder:hover {
  background-color: #eab534;
}

.card-item:nth-child(3) .btnOrder:active {
  background-color: #e5a722;
}

/* Основная информация */
.main-info {
  display: flex;
  justify-content: space-between;
}

.info-about-us_card {
  display: flex;
  flex-wrap: wrap;
}

.info-about-us__image img {
  max-height: 300px;
  width: auto;
  border-radius: 10px;
}

.info-about-us__text {
  font-family: var(--ff);
  font-weight: 600;
  font-size: 1.2rem;
}

.main-info__item:nth-child(1) {
  padding-right: 5%;
}

.main-info__text img {
  /* убать */
  padding: 0 1% 1% 0;
}

.main-info__text ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-info__text li {
  margin: 1rem;
  margin-left: 0;
}

.main-info__text li::before {
  content: url(/img/-.png);
  display: inline-block;
  position: relative;
  padding-right: 7px;
  top: -5px;
}

.main-info__text h3 {
  margin-bottom: 5%;
}

.info-about-us_item__card {
  display: flex;
}

.info-about-us_item__card p {
  padding: 0;
  margin: 0;
}

.info-about-us_item__card__list {
  flex-wrap: wrap;
  margin: 2%;
}

.info-about-us_item__card__list img {
  padding: 0 0 5% 0;
}

hr {
  margin: 2% 0% 2% 0;
}

hr:nth-last-child(1) {
  margin: 0;
}

/* Подвал */
.footer-info {
  display: flex;
  padding-bottom: 2%;
  justify-content: space-between;
}

.footer-info li {
  display: inline;
}

.footer-info ul {
  padding: 0;
}

.footer-info p {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
}

.footer-info a {
  text-decoration: none;
  color: black;
  font-family: "Roboto", sans-serif;
  font-weight: bolder;
  font-size: 0.8em;
}

.hr-footer {
  margin: 2% 0 2% 0;
}

/* >10 */
@media screen and (max-width: 1284px) {
  .card-item:nth-child(3) img {
    margin: 5% 0 0 0;
  }

  .card-item:nth-child(3) p {
    height: 15px;
  }
}
@media screen and (max-width: 1024px) {
  .container {
    margin: 2% 7% 0 7%;
  }

  .nav {
    margin: 0 2% 0 2%;
  }

  .header-info {
    margin: 0 7% 0 7%;
  }

  .main-info__text p {
    font-size: 1.3rem;
  }

  .main-info__text li {
    font-size: 1.3rem;
  }

  .info-about-us_item__card__list p {
    font: 1.3rem;
  }

  /* Изменить header на 3 слова */
  /* все, что ниже под вопросом */
}
@media screen and (max-width: 768px) {
  .nav {
    margin: 0.001px;
  }
  .menu ul {
    margin-top: 34px;
  }
  .card {
    display: block;
  }

  .info-about-us_item__card {
    flex-wrap: wrap;
  }

  .main-info__text {
    padding-right: 20px;
  }

  .card-item:nth-child(2) img {
    margin: 5% 0 0 0;
  }

  .main-info {
    display: block;
  }

  .main-info__item:nth-child(1) {
    padding: 0;
  }

  .main-info__text {
    padding: 0;
  }

  .info-about-us__image {
    text-align: center;
    max-height: 400px;
    /* Сделать в % */
  }

  /* burger */
  .header-info::before {
    opacity: 0.6;
  }

  .header-info__item {
    color: black;
    font-weight: 600;
  }

  .header-info p {
    color: black;
  }

  .order-window--active {
    width: 90%;
    top: 20%;
  }
}
@media screen and (max-width: 513px) {
  .card-item:nth-child(3) p {
    margin-bottom: 30px;
  }

  .card-item:nth-child(3) .btnOrder {
    margin-bottom: 20px;
  }
}
@media screen and (max-width: 513px) and (max-width: 379px) {
  .header-info__item__text {
    padding-top: 50px;
    font-size: 2rem;
  }

  img {
    max-width: 200px;
  }

  .btnOrder {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}
/* popUp */
/* Всплывающее окно заказа */
.order-window {
  display: none;
  position: fixed;
  font: inherit;
  font-size: 1rem;
  top: 20px;
  left: calc(100% - 55vw);
  width: 15vw;
  height: auto;
  box-shadow: 1px 1px 4px black;
  background-color: #f1f0f0;
  z-index: 2;
  background-image: url(/img/bg-popUp.jpg) opacity 1;
  background-repeat: repeat;
}

.order-window__text {
  display: block;
  margin-top: 1rem;
  margin: 20px;
}

.input {
  border: 3px solid #3d3b3b;
  background-color: #f1f0f0;
  padding: 5px;
  margin-bottom: 5%;
  width: calc(100% - 30px);
}

.close-form-btn {
  position: absolute;
  right: 0;
  top: 0;
  color: black;
  background: none;
  border: none;
  font-weight: 600;
}

.enterInfoBtn {
  background-color: black;
  color: white;
  margin: 3%;
  border: none;
  padding: 5px 10px 5px 10px;
}

.order-window--active {
  width: auto;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  text-align: center;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

.formHelp {
  display: block;
}