body {
  font-family: PTRootUIWeb, -apple-system, BlinkMacSystemFont, sans-serif;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

button, input[type="submit"], input[type="reset"] {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

header img {
  width: 64px;
  height: 64px;
}

header {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

h1 {
  text-align: center;
}

h2 {
  text-align: center;
}

h3 {
  text-align: center;
}

.price-block {
  line-height: .92;
  margin: 10px 0 10px 10px
}

.old-price {
  font-size: 18px;
  color: #CCCCCC;
  text-decoration: line-through;
}

.new-price {
  font-size: 36px;
  font-weight: 900;
}

.product img {
  border-radius: 15px 15px 0 0;
}

.cb-button img {
  width: 50px;
  height: 50px;
}

@media only screen and (max-width: 576px) {
  header {
    justify-content: center;
    align-items: center;
  }

  .products {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-around;
  }

  .product img {
    width: 256px;
    height: 256px;
  }

  .cb-button img {
    width: 40px;
    height: 40px;
}

}

@media only screen and (min-width: 577px) and (max-width: 768px) {

  header {
    justify-content: center;
    align-items: center;
  }

  .product img {
    width: 330px;
    height: 330px;
  }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {

  .product-line {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .products {
    display: flex;
    flex-direction: column;
  }
  
  .product img {
    width: 210px;
    height: 210px;
  }
}

@media only screen and (min-width: 1025px) and (max-width: 1440px) {

  .product-line {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .products {
    display: flex;
    flex-direction: column;
  }

  .product img {
    width: 256px;
    height: 256px;
  }
}

@media only screen and (min-width: 1441px) {

  .product-line {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .products {
    display: flex;
    flex-direction: column;
  }
  
  .product {
    margin: 20px;
  }

  .product img {
    width: 256px;
    height: 256px;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1)
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 50px;
  padding-right: 50px;
}

.product {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  background-color: #f8f8f8;
  margin: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.modal {
  background-color: rgba(0, 0, 0, .7);
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  transition: all .3s ease-in-out;
  z-index: -1;

  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.open {
  opacity: 1;
  z-index: 999;
}

.modal-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 15px;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 30px;
  padding-right: 30px;
}

.form-field {
  font-family: inherit;
  font-size: 1.3rem;
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.2s;
  margin-bottom: 25px;
}

input[type="submit"] {
  width: 175px;
  height: 50px;
  color: white;
  background: green;
  border-radius: 10px;
}

.button-block {
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

.order-btn {
  width: 175px;
  height: 50px;
  background: #BF1A1A;
  color: white;
  font-weight: 700;
  font-size: 125%;
  border-radius: 10px;
  transition: transform 0.5s
}

.order-btn:hover {
  transform: scale(1.1);
}

.close-modal {
  display: flex;
  justify-content: end;
  margin: 15px;
  cursor: pointer;
}

.cb-button {
  background: rgb(50, 207, 50);
  border-radius: 50%;
  padding: 10px;
  animation: pulse 2s infinite;
  position: fixed;
  bottom: 15px;
  right: 15px;
}

