: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;
}

/* Box sizing — чтобы padding влиял одинаково */
*, *::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;
}


/* Левая колонка (окно сервисов) — высота теперь согласована с правой колонкой */
.catalog-section {
  flex: 2 1 58%;
  min-width: 38vw;
  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; /* та же высота что и catalog-section */
}

/* Убираем оверлей с размытием */
.service-overlay {
  display: none;
}

.catalog-content {
  position: relative;
  height: 100%;
  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;
  filter: blur(5px); /* убрали затемнение */
  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%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-title {
  position: absolute;
  top: 50px;
  left: 60px;
  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); /* шире, с отступом 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(0.9rem, 2.5vw, 1.2rem);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5; /* ниже, чем инфо (у него 10) */
}

/* Цена — стеклянная кнопка снизу справа */
.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;
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.3rem);
  position: absolute;
  bottom: 40px;
  right: 50px;
  border: 1px solid rgba(225, 242, 255, 0.4);
  animation: pulse 3s infinite ease-in-out;
  z-index: 10;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.service-cta {
  position: absolute;
  bottom: 40px;
  left: 50px;
  width: clamp(32px, 28vw, 50px);   /* как кнопка-цена */
  height: clamp(32px, 10vw, 50px);   /* пропорции ближе к "пилюле" */
  border-radius: 45px;               /* сразу таблетка */
  background: rgba(196, 220, 255, 0.45);
  border: 1px solid rgba(225, 242, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: width 0.35s ease, border-radius 0.35s ease, background 0.35s ease;
  overflow: visible;
}


.service-cta:hover {
  width: clamp(150px, 40vw, 200px);
  border-radius: 45px;
  background: rgba(196, 220, 255, 0.6);
}

.main-icon {
  font-size: clamp(0.8rem, 3vw, 1.2rem);
  z-index: 2;
  flex-shrink: 0; /* чтобы не смещалась */
  margin-left: 13px; /* небольшой отступ от левого края */
  margin-bottom: 1px;
}

.icon-list {
  display: flex;
  gap: 10px;
  margin-left: 12px; /* пространство справа от центральной иконки */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.service-cta:hover .icon-list {
  opacity: 1;
  pointer-events: auto;
}

.icon {
  position: relative;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  cursor: pointer;
}

.icon::after {
  content: attr(data-text);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.9);
  background: rgba(255, 255, 255, 0.95);
  color: #013f6c;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease;
  z-index: 5;
}

.icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}


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

  .catalog-section {
    width: 100%;
    min-width: unset;
    height: 60vh;            /* фиксируем высоту под скролл */
    border-radius: 70px;
  }

  .catalog-content {
    height: 100%;            /* сохраняем scroll-snap */
    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-price {
    font-size: 0.8rem;
  }
  
}