body > header {
  text-transform: uppercase;
  width: 300px;
  margin: 20px 0;
  color: var(--primary-text-color);
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  position: fixed;
  top: 0;
}

body > header::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  z-index: -1;
  background-color: var(--background-color);
}

body > main {
  margin-top: 64px;
  margin-bottom: 90px;
  padding: 0 25px;
  width: 100%;
  max-width: 550px;
  box-sizing: border-box;
}

article.service {
  width: 100%;
  margin: 0 0 20px;
}

article.service header {
  color: var(--primary-text-color);
  font-size: 25px;
  line-height: 50px;
}

article.service .description {
  color: var(--secondary-text-color);
  font-size: 16px;
  line-height: 22px;
  margin: 0;
}

article.service .details-text {
  color: var(--primary-text-color); 
}

article.service .details {
  color: var(--secondary-text-color);
  white-space: pre-wrap;
  line-height: 22px;
  font-family: 'Lato', sans-serif;
}

article.service .details img {
  max-width: 400px;
  width: 100%;
  display: block;
  margin: 0 auto;
}

article.shop .row {
  display: grid;
  grid-template-columns: auto 85px;
}

article.shop .row:nth-of-type(3) {
  margin-top: 20px;
  margin-bottom: 15px;
}

article.shop .row:nth-of-type(3),
article.shop .row:nth-of-type(4) {
  grid-template-columns: 160px auto;
  gap: 20px;
}

article.shop .row:nth-of-type(5) {
  display: block;
}

article.shop .column {
  display: flex;
  flex-direction: column;
}

article.shop .row:nth-of-type(4) .column {
  align-items: center;
}

article.shop .row:nth-of-type(1) {
  display: block;
}

article.shop p {
  margin: 0;
}

article.shop header {
  color: var(--primary-text-color);
  min-height: 30px;
  margin-bottom: 15px;
  font-size: 25px;
}

article.shop .description {
  color: var(--secondary-text-color);
}

article.shop .image-container {
  width: 160px;
  height: 160px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
}

article.shop .number {
  font-size: 20px;
  color: var(--primary-text-color);
}

article.shop .total {
  font-size: 22px;
  font-weight: bold;
  color: var(--red-color);
  margin-bottom: 20px;
  margin-top: 5px;
}

article.shop .sum-text {
  font-size: 17px;
  color: var(--secondary-text-color);
}

article.shop .sum {
  font-size: 17px;
  font-weight: bold;
  color: var(--secondary-text-color);
}

article.shop .input-group {
  display: grid;
  grid-template-columns: 22px auto 27px;
  border-radius: 15px;
  border: 3px solid var(--red-color);
  position: relative;
  height: 30px;
  box-sizing: border-box;
}

article.shop .input-group input {
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--primary-text-color);
  font-size: 18px;
  outline: none;
}

article.shop .input-group button {
  position: absolute;
  top: -3px;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  box-sizing: border-box;
  border: 3px solid var(--red-color);
  background-color: var(--red-color-alpha);
  font-size: 24px;
  color: var(--red-color);
  font-weight: bold;
  line-height: 0px;
  text-indent: -1px;
  outline: none;
  transition: all 200ms ease-in-out;
}

article.shop .input-group button:hover {
  background-color: var(--red-color);
  color: var(--background-color);
}

article.shop .input-group div:nth-of-type(1) button {
  left: -3px;
}

article.shop .input-group div:nth-of-type(2) button {
  right: -3px;
}

article.shop .price {
  display: block;
  height: 30px;
  border: 3px solid var(--red-color);
  border-radius: 15px;
  box-sizing: border-box;
  padding: 0 8px;
  line-height: 24px;
  font-size: 18px;
  color: var(--primary-text-color);
}

article.shop .price-text,
article.shop .number-text {
  text-align: center;
  color: var(--primary-text-color);
  margin-top: 5px;
  font-size: 15px;
}

article.shop .details-text {
  margin: 25px 0 10px;
  color: var(--primary-text-color);
}

article.shop .details {
  color: var(--secondary-text-color);
  white-space: pre-wrap;
  font-family: 'Lato', sans-serif;
}

article.shop .row-prices {
  grid-template-columns: 160px auto;
  gap: 20px;
}

article.shop .row-prices .input-group {
  margin: 12px 0;
}

article.shop .row-prices p {
  color: var(--primary-text-color);
  font-size: 16px;
  display: flex;
  height: 54px;
  align-items: center;
  text-align: center;
  justify-content: center;
}

article.shop .row-prices p small {
  font-size: 16px;
  color: var(--secondary-text-color);
}

body > footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100px;
  background: linear-gradient(
    180deg,
    var(--background-color-alpha) 0%,
    var(--background-color) 25%
  );
}
