*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  block-size: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

section,
footer {
  max-width: 1600px;
  margin: 0 auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
blockquote,
fieldset,
body,
button {
  margin: 0;
  padding: 0;
  font-family: var(--main-font);
  font-size: var(--font-size-page-text);
  font-weight: 400;
  border: none;
}
a {
  outline: none;
  text-decoration: none;
}
button {
  border-image-width: 0px;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
}

.background {
  position: absolute;
  width: 100vw;
  background-repeat: no-repeat;
  background-position: center;
  height: 100%;
  opacity: 0.3;
  background-size: contain;
}
.label {
  display: inline-block;
  object-fit: contain;
  max-height: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
}
.label:hover {
  cursor: pointer;
}
.header {
  padding-left: 10px;
  padding-top: 10px;
  width: 100%;
  max-height: 600px;
  height: auto;
  display: flex;
  justify-content: center;
}

.section {
  width: 100vw;
}
.accent {
  color: red;
}
.contacts {
  padding-inline: 10px;
  background-color: #f0f0f0;
}
.salon,
.masters {
  background-color: #f0f0f0;
}
.salon h2 {
  text-transform: uppercase;
  font-weight: bold;
}
.salonInf {
  padding: 20px;
  background-color: #1a1a1a;
  color: #f0f0f0;
  grid-row: span 2;
  grid-column: 2;
}
.salonPhotos {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  background-color: #1a1a1a;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: 1px;
  scrollbar-color: var(--accent-color) #00adc7;
}
.salonPhoto {
  display: block;
  max-height: 350px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s;
}

.salonPhoto:hover {
  transform: scale(1.05);
}
.crioPriceContainer {
  grid-row: 2;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.modal.open {
  display: flex;
}
.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.modal button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
}
.modal .prev {
  left: 20px;
}
.modal .next {
  right: 20px;
}
body.noscroll {
  position: fixed;
  width: 100%;
  overflow: hidden;
}
.back3 {
  padding: 10px;
  background-color: #00adc7;
}
.back3 h2 {
  color: #f0f0f0;
}
.back {
  padding-top: var(--margin);
  background-color: #f0f0f0;
  background-image: url(../images/line3.webp);
  background-position: 0% 0%;
  background-size: 110%;
  background-repeat: no-repeat;
}
.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  width: 100vw;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("../images/background.webp");
}
.aboutContainer {
  display: flex;
  padding: var(--margin);
  flex-direction: column;
  gap: 30px;
}
.aboutText {
  font-weight: 200;
  color: var(--text-color);
}
.aboutTextContainer {
  display: flex;
  gap: 7px;
}
.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  padding: var(--margin);
  padding-block: calc(var(--margin) / 2);
  background-color: #1a1a1a;
}
.cardsLazer {
  padding-top: 10px;
  padding: var(--margin);
  background-color: #1a1a1a;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
}
.cardPhoto {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  border-radius: 10px;
}
.criocards {
  display: grid;
  gap: 20px;
  grid-template-columns: max-content 1fr;
}
.crioPhoto {
  display: block;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(255, 255, 255, 0.1);

  filter: brightness(0.95) contrast(1.1);
}

.crioInf {
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  gap: 20px;
}
.w1 {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)),
    url(../images/w3.webp) center/cover;
}
.w3 {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)),
    url(../images/w1.webp) center/cover;
}
.w2 {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)),
    url(../images/w2.webp) center/cover;
}
.w4 {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)),
    url(../images/w4.webp) center/cover;
}
.cardPhotoTitle {
  color: #f0f0f0;
  padding-top: 15px;
  font-size: 25px;
  text-transform: uppercase;
}
.cardPhotoSubTitle {
  font-size: 15px;
  grid-column: span 2;
  color: #f0f0f0;
  padding-top: 15px;
}
.cardPhotoContainer {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sectionTitle {
  font-size: var(--section-title-font-size);
  font-weight: normal;
  padding-left: 5px;
  color: var(--accent-color);
  width: 100%;
  text-align: left;
  position: relative;
}
.right {
  text-align: right;
  padding-right: 35px;
}

.massageTitle,
.salonTitle {
  background-image: url(../images/line2.webp);
  background-position: right 80%;
  background-size: 20%;
  background-repeat: no-repeat;
  padding-block: 10px;
}
.salonTitle {
  background-position: right 80%;
}
.massageHandTitle,
.lazerTitle,
.BeautyTitle {
  padding-block: 10px;
}
.outlineText {
  font-size: clamp(2.5rem, 1.79rem + 2.525vw, 4.063rem);
  color: #f0f0f0;
  text-transform: uppercase;
  text-align: center;
}
.subTitle {
  margin-top: 7px;
  color: var(--accent-color);
  padding-inline: var(--margin);
  text-align: center;
}
.cardElement {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
  border-bottom: 1px #f0f0f0 solid;
}
.cardElementTitle,
.cardElementPrice {
  color: #f0f0f0;
}
.cardElementPrice {
  white-space: nowrap;
}
.buttonList {
  border: none;
  display: flex;
  width: 100%;
  background-color: transparent;
}

.mainTitle {
  text-align: center;
  padding-bottom: 8px;
}

.alg {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../images/альгинат.webp);
}
.pil {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../images/pil.webp);
}
.crem {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../images/crem.webp);
}
.masksElement {
  padding: 20px;
  aspect-ratio: 1/1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}
.masksTitle {
  z-index: 1;
  color: var(--text-color);
  text-align: center;
}

.afterHover {
  display: none;
}
.afterHover::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  top: 0px;
  left: 0px;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.masksElement:hover .beforeHover {
  display: none;
}
.masksElement:hover .afterHover {
  display: inline;
}
.masksElement:hover {
  transform: scale(1.05);
}
.masks {
  position: relative;
  display: grid;
  gap: 0px;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  grid-template-rows: 1fr;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) #f0f0f0;
  background-color: #f0f0f0;
}
.buttonMask {
  background-color: #00adc7;
  align-items: center;
}
.masksSectionTitle {
  position: relative;
  padding-block: 5px;
  color: #1a1a1a;
  display: block;
  height: 100%;
  margin-bottom: 0px;
}
.lpgTitle {
  padding-top: 20px;
  margin-bottom: 0px;
  padding-bottom: 20px;
}

.footer {
  background-color: #1a1a1a;
}

.tableRow {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.cardsMassHand,
.cardsBeauty {
  display: block;
  width: 100%;
  background-color: #1a1a1a;
  table-layout: fixed;
  padding: 30px;
}
.tableSection {
  position: relative;
  display: block;
  padding: 10px;
}
.under {
  position: relative;
  padding-bottom: 20px;
}
.under::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
}
.margUp {
  margin-top: 30px;
}
.check {
  width: calc(100% / 4);
  text-align: center;
}
.check2 {
  width: calc(100% / 2);
  text-align: center;
}

.contactsContainer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
}

.contactsPhoto {
  display: block;
  object-fit: cover;
  width: 100%;
  border-radius: 20px;
  grid-row: span 2;
}
.subTitleContacts {
  font-size: clamp(1.25rem, 0.682rem + 2.02vw, 2.5rem);
  font-weight: normal;
  padding-left: 5px;
  color: var(--accent-color);
  width: 100%;
  text-align: left;
  text-transform: uppercase;
  padding-block: 20px;
}
.contactsObj {
  width: 100%;
  padding: 20px;
  background-color: rgb(0, 173, 199, 0.4);
  border-radius: 50px;
}
.contactsObjTitle {
  width: 100%;
  margin-bottom: 15px;
  color: #1a1a1a;
  font-size: 25px;
  font-weight: bold;
}
.contactsObjText {
  margin-bottom: 5px;
}
.textAlgnCenter {
  text-align: center;
}
.tel {
  grid-row: 2;
  grid-column: 2;
}
.backHead {
  background-color: transparent;
  border: 2px solid var(--text-color);
  width: max-content;
}
.backBright {
  background-color: transparent;
  border: 2px solid #00adc7;
}
.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.uderline {
  text-decoration: underline;
  text-align: center;
}
.buttonListLPG {
  background-color: #f0f0f0;
}
.buttonListcrio {
  background-color: #1a1a1a;
}
.not {
  display: flex;
}
.notGr {
  display: grid;
}
@keyframes pulsePlus {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
}
@media (width<800px) {
  .contactsContainer {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
}
@media (width<600px) {
  .contactsContainer {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
  }
  .lpgTitle::after,
  .crioTitle::after,
  .massageTitle::after,
  .massageHandTitle::after,
  .masksSectionTitle::after,
  .lazerTitle::after,
  .BeautyTitle::after {
    content: "+";
    position: absolute;
    margin-left: 10px;
    aspect-ratio: 1/1;
    min-width: 15px;
    font-size: 30px;
    display: inline-block;
    top: 3px;
    animation: pulsePlus 1.2s ease-in-out infinite;
    transform-origin: center;
    transition: transform 0.3s ease, content 0.3s ease;
  }
  .salonTitle {
    background: none;
  }
  .cardElementTitle,
  .cardElementPrice {
    white-space: normal;
    font-size: 9px;
  }
  .massageHandTitle::after {
    top: 2px;
  }
  .masksSectionTitle::after {
    top: -2px;
  }
  .lazerTitle::after {
    top: 2px;
  }
  .crioTitle::after {
    top: -7px;
  }
  .crioTitle.active::after,
  .massageTitle.active::after,
  .massageHandTitle.active::after,
  .lpgTitle.active::after,
  .masksSectionTitle.active::after,
  .lazerTitle.active::after,
  .BeautyTitle.active::after {
    content: "-";
    animation: none;
    transform: scale(1);
  }
  .buttonList {
    background-color: #f0f0f0;
    padding-inline: 10px;
  }
  .buttonList .sectionTitle {
    padding-bottom: 5px;
    border-bottom: var(--accent-color) 1px solid;
  }

  .header {
    max-height: 300px;
    padding-left: 0px;
    padding-top: 0px;
  }
  .label {
    max-width: 250px;
  }
  .about {
    padding-top: 10px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8)),
      url("../images/background.webp") center/cover;
  }
  .aboutContainer {
    padding-bottom: 50px;
  }
  .masksElement {
    aspect-ratio: initial;
    background-position: 100% 60%;
  }
  .masksElementUnder {
    background-position: 100% 11%;
  }
  .masks {
    grid-template-columns: 1fr;
    scrollbar-width: none;
  }
  .masksElement:hover .beforeHover {
     display: inline;
  }
  .masksElement:hover .afterHover {
    display: none;
  }
  .masksElement:hover {
    transform: none;
  }
  .section {
    padding: 0px;
  }
  .aboutTextContainer {
    flex-direction: column;
  }
  .backHead {
    width: 100%;
  }
  .back {
    background: none;
    padding: 0px;
    padding-top: 5px;
    background-color: rgb(240, 240, 240);
  }
  .lpgTitle {
    position: relative;
    background-size: 40%;
    text-align: left;
    padding-block: 10px;
  }
  .massageTitle,
  .massageHandTitle,
  .subTitle {
    color: var(--accent-color);
    background-image: none;
  }
  .buttonMask {
    background-color: #f0f0f0;
  }
  .masksSectionTitle {
    color: var(--accent-color);
  }
  .led::before,
  .ledHover::before,
  .alg::before,
  .algHover::before,
  .pil::before,
  .pilHover::before,
  .crem::before,
  .cremHover::before {
    content: none;
  }
  .masksElement:hover {
    background-size: cover;
  }
  .buttonListLPG {
    background-color: #f0f0f0;
  }
  .criocards {
    display: flex;
  }
  .crioPhoto {
    max-height: 300px;
  }
  .crioPhotoContainer {
    display: flex;
    flex-direction: column;
  }
  .cardPhoto {
    min-height: 200px;
  }
  .contactsPhoto {
    display: none;
  }
  .salonPhoto {
    max-height: 240px;
  }
  .crioPhoto {
    box-shadow: none;
  }
  .not,
  .notGr {
    display: none;
  }
}
.main {
  color: #f0f0f0;
}
