:root{
  --frame-width: 88%;
  --pad: 22px;
  --gap: 28px;
  --radius-main: 75px;
  --radius-sm: 40px;
  --glass-bg: #b2e4ff53;
  --glass-soft: rgba(196,220,255,0.45);
  --accent: #013f6c;
  --muted: #32758f;
}

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

.glass-frame {
  width: var(--frame-width);
  margin: 50px auto 70px auto;
  padding: calc(var(--pad) + 6px);
  border-radius: 90px;
  background: var(--glass-bg);
  border: 1px solid rgba(225, 242, 255, 0.711);
  display: flex;
  gap: var(--gap);
  align-items: stretch;
  min-width: 0;
}

.catalog-section {
  flex: 2 1 58%;
  min-width: 0;
  min-height: 0;
  height: 64.5vh;
  border-radius: 65px;
  position: relative;
  border: 1px solid rgba(225, 242, 255, 0.711);
  overflow: hidden;
  background: none;
  padding: 0;
}

.side-column {
  flex: 1 1 34%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  height: 64.5vh;
  min-width: 0;
  min-height: 0;
}

.side-column > * {
  min-width: 0;
  min-height: 0;
}

.service-overlay {
  display: none;
}

.catalog-content {
  position: relative;
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.catalog-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.service-block {
  width: 100%;
  min-height: 100%;
  position: relative;
  scroll-snap-align: start;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: filter 0.3s ease;
}

.catalog-shadow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 2px 8px #00000040;
  pointer-events: none;
  z-index: 5;
}

.service-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-title {
  position: absolute;
  top: 50px;
  left: 60px;
  max-width: calc(100% - 120px);
  margin-bottom: 10px;
  padding: clamp(6px, 1.5vw, 10px) clamp(14px, 3vw, 24px);
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  color: #013f6cc7;
  background: rgba(196, 220, 255, 0.45);
  backdrop-filter: blur(15px) saturate(1.3);
  border-radius: 50px;
  border: 1px solid rgba(225, 242, 255, 0.4);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  white-space: nowrap;
}

.service-description {
  width: calc(100% - 20px);
  max-width: 100%;
  margin-top: clamp(16px, 4vw, 30px);
  padding: clamp(14px, 3vw, 30px);
  height: clamp(200px, 40vh, 400px);
  background: rgba(196, 220, 255, 0.45);
  backdrop-filter: blur(15px) saturate(1.3);
  -webkit-backdrop-filter: blur(15px) saturate(1.3);
  border-radius: 55px;
  border: 1px solid rgba(225, 242, 255, 0.4);
  box-shadow:
    0 0 4px rgba(0, 0, 0, 0.05);
  color: #00719d;
  font-size: clamp(14px, 1.2vw, 18px);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-description::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.service-price {
  background: rgba(196, 220, 255, 0.45);
  backdrop-filter: blur(5px);
  border-radius: 45px;
  padding: clamp(6px, 2vw, 10px) clamp(14px, 3vw, 22px);
  color: #5d568b;
  text-shadow: #cbf0ff00 0 1px 3px;
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.3rem);
  position: absolute;
  bottom: 24px;
  right: 50px;
  border: 1px solid rgba(225, 242, 255, 0.4);
  animation: pulse 3s infinite ease-in-out;
  z-index: 10;
}

@keyframes pulse {
  0% {
    background: rgba(196, 220, 255, 0.45);
    color: #5d568b;
    text-shadow: #cbf0ff00 0 1px 3px;
  }
  50% {
    background: rgba(227, 238, 255, 0.793);
    color: #5d568b;
    text-shadow: #e9eaff83 0 1px 3px;
  }
  100% {
    background: rgba(196, 220, 255, 0.45);
    color: #5d568b;
    text-shadow: #cbf0ff00 0 1px 3px;
  }
}

@media (max-width: 1366px), (max-height: 860px) {
  .glass-frame {
    width: min(92%, 1400px);
    padding: 18px;
    gap: 18px;
    border-radius: 72px;
  }

  .catalog-section,
  .side-column {
    height: min(64.5vh, 620px);
  }

  .service-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
  }

  .service-title {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    max-width: min(100%, 30rem);
    margin: 0 auto;
    text-align: center;
    white-space: normal;
  }

  .service-description {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin-top: 0;
    padding: 20px;
    align-self: stretch;
  }

  .service-price {
    position: relative;
    bottom: auto;
    right: auto;
    grid-column: 1;
    grid-row: 3;
    max-width: 100%;
    text-align: center;
    justify-self: center;
    align-self: end;
    margin-top: 4px;
  }
}

@media (max-width: 1180px), (max-height: 760px) {
  .service-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .service-price {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }
}


@media (orientation: portrait) {
  .glass-frame {
    flex-direction: column;
    padding: var(--pad);
    border-radius: 90px;
    gap: var(--gap);
    height: auto;
    height: auto;
  }

  .catalog-section {
    width: 100%;
    min-width: unset;
    border-radius: 70px;
    aspect-ratio: 3/4;
    height: auto;
  }

  .catalog-content {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
  }

  .side-column {
    width: 100%;
    height: auto;
    flex: unset;
    border-radius: var(--radius-sm);
  }

  .service-block {
    min-height: 100%;
  }

  .service-title {
    position: relative;
    top: unset;
    left: unset;
    margin: 0 auto 15px auto;
    text-align: center;
    display: inline-block;
  }

  .service-description {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1/1;
    padding: 20px 10px;
    padding-top: 7px;
    overflow-y: auto;    
    border-radius: 30px;
  }

  .service-price {
    position: relative;
    bottom: unset;
    right: unset;
    width: calc(100% - 20px);
    margin: 24px auto 0 auto;
    text-align: center;
    font-size: 1rem;
    display: block;
  }
}
