* {
  box-sizing: content-box;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  font-weight: inherit;
  font-style: normal;
  font-size: inherit;
}

html,
body {
  margin: 0;
  color: white;
  font-family: "Montserrat Alternates", sans-serif;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Пропускает события мыши сквозь canvas */
  z-index: -1; /* Отправляем звёзды на задний план */
  background: -webkit-linear-gradient(
    top,
    rgb(6, 2, 19) 10%,
    rgb(13, 13, 43) 80%,
    rgb(32, 32, 72)
  );
}

.wrapper {
  position: relative;
  padding: 10px;
  max-width: 800px;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-right: 10px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  display: none;
  height: 70px;
  width: 100px;
}

.logo__title {
  font-family: "Bad Script", cursive;
  font-style: normal;
  font-size: 28pt;
  line-height: 1;
  white-space: nowrap;
  margin: 8px 0;
  text-shadow: 0 0 28px #80aba8;
}

.logo__subtitle {
  text-shadow: 0px -1px 20px black;
}

.social {
  display: flex;
  gap: 20px;
}

.contacts {
  text-align: right;
  width: 100%;
}

.contacts__phone {
  font-size: 16pt;
  white-space: nowrap;
  text-decoration: none;
  color: white;
}

.contacts__address {
  font-size: 12pt;
  margin-top: 4px;
}

.logo__img {
  mask: url(img/logo.svg) no-repeat left;
  -webkit-mask: url(img/logo.svg) no-repeat left;
  background: -webkit-linear-gradient(
    83deg,
    #dedede,
    #ffffff 16%,
    #dedede 21%,
    #ffffff 24%,
    #454545 27%,
    #dedede 36%,
    #ffffff 45%,
    #ffffff 60%,
    #dedede 72%,
    #ffffff 80%,
    #dedede 84%,
    #a1a1a1
  );
}

main {
  max-width: 800px;
  margin: 20px auto;
}

.service {
  background: #ffffff;
  padding: 20px 32px 0;
  border-radius: 32px;
  color: #333;
  margin-bottom: 60px;
  box-shadow: 3px 2px 15px 0px black;
}

.service__title {
  margin-bottom: 10px;
  font-size: 16pt;
  font-weight: 500;
  color: #111;
}

.service__content {
  text-align: justify;
}

.service__price {
  white-space: nowrap;
  font-size: 16pt;
  margin-top: 12px;
}

.service__price table {
  width: 100%;
  position: relative;
  left: -4px;
}

.service__price table td {
  padding: 4px 0 8px;
}

.service__price table tr td:first-child {
  width: 0;
}

.service__price table tr:not(:last-child) td:not(:first-child) {
  border-bottom: 1px dotted #a1a1a1;
}

.service__price table tr td:last-child {
  text-align: right;
}

.service__footer {
  text-align: center;
  height: 30px;
}

.service ul {
  list-style-type: none;
}

.booking-button {
  display: inline-block;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #1c1c42;
  text-align: center;
  border: none;
  border-radius: 32px;
  background: linear-gradient(
    288deg,
    rgb(187 155 237) 0%,
    rgba(144, 238, 224, 1) 100%
  );
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 5px #ffffff;
}

.booking-button:hover {
  transform: scale(1.05);
}

.service .booking-button {
  box-shadow: 0 0 20px 2px rgb(255 255 255 / 44%);
}

.greeting {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 20pt;
  text-align: center;
  padding: 0 20px 20px;
}

footer {
  position: relative;
  background: #000000c7;
  padding: 40px;
  border-top: 2px solid #2e3256;
  box-shadow: 0 0 17px 0px #a6c3e726;
}

footer > .wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

footer .contacts {
  width: 100%;
}

footer .booking-button {
  width: 100%;
}

.contacts__map-link {
  display: inline-block;
  color: white;
  margin: 16px 0;
  text-underline-offset: 4px;
}

@media screen and (min-width: 700px) {
  header {
    margin: 20px 20px 32px 0;
    align-items: center;
  }

  .logo__img {
    display: block;
  }

  .contacts {
    width: auto;
  }

  main {
    line-height: 1.6;
  }

  .service {
    margin-bottom: 76px;
  }

  .service__content {
    font-size: 13pt;
  }

  .footer {
    margin-top: 40px;
  }
}

@media screen and (min-width: 800px) {
  .logo__subtitle {
    font-size: 14pt;
  }
  .contacts__phone {
    font-size: 20pt;
  }
}
