/* ======================================================
   ПРОЦЕДУРНЫЙ КАБИНЕТ — page-specific styles.
   Builds on styles.css + priem-styles.css + gastro-styles.css.
   ====================================================== */

.procedure-page {
  padding-bottom: var(--section-pad);
}

/* ---------- HERO: same shell as УЗИ почек, violet tint ---------- */
.proc-hero .priem-hero-wrap {
  background: linear-gradient(100deg, #7E6ED4 0%, #9384DC 32%, #C7BCEA 64%, #E7E1F6 100%);
}
.proc-hero .priem-hero-doctors {
  max-height: 510px;
  max-width: 86%;
}
.proc-hero .priem-hero-card {
  background: rgba(255, 255, 255, 0.58);
}

/* ---------- ГАЛЕРЕЯ (3-up carousel) ---------- */
.proc-gallery {
  padding-top: 36px;
}
.proc-gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
}
.proc-gallery-viewport {
  overflow: hidden;
  border-radius: var(--r-2xl);
  width: 100%;
}
.proc-gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.proc-gallery-track image-slot,
.proc-gallery-img {
  flex: 0 0 calc((100% - 40px) / 3);
  height: clamp(260px, 21vw, 360px);
  border-radius: var(--r-2xl);
  background: var(--bg-gray-card);
}
.proc-gallery-img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
}
.proc-gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 4;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.2s ease;
}
.proc-gal-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.proc-gal-arrow:disabled { opacity: 0.35; cursor: default; }
.proc-gal-arrow:disabled:hover { transform: translateY(-50%) scale(1); background: rgba(255,255,255,0.94); }
.proc-gal-arrow.prev { left: -10px; }
.proc-gal-arrow.next { right: -10px; }

/* ---------- СТОИМОСТЬ: tabs above the price table ---------- */
.proc-price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 28px;
}
.price-row.is-filtered { display: none !important; }

/* ---------- РЕЖИМ РАБОТЫ — peach mini-banner ---------- */
.regime-section { padding-top: var(--section-pad); }
.regime-section .section-title { margin-bottom: var(--title-gap); }
.regime-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border-radius: var(--r-2xl);
  padding: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px);
  background: linear-gradient(135deg, #FFD9D5 0%, #F1EAFC 100%);
  overflow: hidden;
}
/* heart blob behind the IV image (same as О клинике) */
.regime-figure {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.regime-heart {
  position: absolute;
  width: 96%;
  max-width: 460px;
  left: 50%;
  top: 50%;
  transform: translate(-52%, -50%);
  z-index: 1;
  pointer-events: none;
}
.regime-iv {
  position: relative;
  z-index: 2;
  width: min(54%, 250px);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(213, 72, 54, 0.22));
  animation: regime-float 6s ease-in-out infinite;
}
@keyframes regime-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .regime-iv { animation: none; }
}
.regime-content {
  position: relative;
  z-index: 2;
}
.regime-big {
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin: 0 0 20px;
}
.regime-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  max-width: 380px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.regime-content .btn { align-self: flex-start; }

/* ---------- PROSE (Поводы / Как проходит визит) ---------- */
.proc-prose-section { padding-top: var(--section-pad); }
.proc-prose-section + .proc-prose-section { padding-top: var(--section-pad-tight); }
.proc-prose {
  max-width: none;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #2B2B33;
}
/* full content-width variant (default now) */
.proc-prose--wide { max-width: none; }
.proc-prose p { margin: 0 0 18px; }
.proc-prose h3 {
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 34px 0 14px;
}
.proc-prose ul {
  margin: 6px 0 18px;
  padding-left: 22px;
}
.proc-prose ul li { margin-bottom: 10px; }
.proc-prose ul li::marker { color: var(--violet); }
.proc-prose strong { color: var(--text); font-weight: 600; }
.proc-prose__more { display: none; }
.proc-prose.is-open .proc-prose__more { display: block; }
/* «Развернуть» — site-standard animated-underline link, flush left with the text */
.proc-prose-toggle {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--violet);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.proc-prose-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.proc-prose-toggle:hover { color: var(--violet-hover); }
.proc-prose-toggle:hover::after { transform: scaleX(1); }
.proc-prose-toggle:focus-visible::after { transform: scaleX(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .proc-gallery-track image-slot { flex-basis: calc((100% - 20px) / 2); }
  .proc-gal-arrow.prev { left: 6px; }
  .proc-gal-arrow.next { right: 6px; }
}
@media (max-width: 900px) {
  .regime-banner { grid-template-columns: 1fr; gap: 24px; }
  .regime-figure { order: -1; min-height: 340px; }
  .regime-heart { max-width: 320px; }
  .regime-iv { width: min(48%, 200px); }
}
@media (max-width: 720px) {
  .proc-gallery-track image-slot { flex-basis: 100%; height: 260px; }
  .proc-gallery-img { height: 260px; }
  .proc-gal-arrow { width: 44px; height: 44px; }
  .proc-price-tabs { gap: 6px; }
}
@media (max-width: 600px) {
  /* Единая типографика текстовых блоков на мобильном */
  .proc-prose { font-size: 15px; line-height: 1.65; color: var(--text); }
  .proc-prose p { margin: 0 0 14px; }
  .proc-prose h3 { font-size: 19px; margin: 26px 0 12px; }
  .proc-prose ul { margin: 6px 0 16px; }
  .proc-prose ul li { margin-bottom: 7px; }
}
