* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg1: #f2f7f8;
  --bg2: #e6f0f3;
  --ink: #24313a;
  --muted: #6b7a86;
  --brand: #0b6e8e;
  --brand2: #094f66;
  --card: rgba(255, 255, 255, 0.92);
  --stroke: rgba(10, 30, 40, 0.10);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
}

.header {
  background: linear-gradient(135deg, #183241, #1f3c4c);
  color: #fff;
  padding: 46px 18px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 30% 30%, rgba(110, 231, 255, 0.45), rgba(255, 255, 255, 0));
  transform: rotate(12deg);
  pointer-events: none;
}

.header h1 {
  font-size: 34px;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.header p {
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.4;
}

.topbar {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.tg-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.26);
}

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.wa-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.26);
}

.tg-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.wa-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.container {
  max-width: 1100px;
  margin: 44px auto;
  padding: 0 18px;
}

.section-title {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 18px;
  text-align: center;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 85%,
      rgba(11, 110, 142, 0.18),
      rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
}

.card h2 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #163240;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  padding: 6px 10px;
  border-radius: 999px;
}

.price {
  font-size: 26px;
  font-weight: 750;
  color: var(--brand);
  margin: 10px 10 10px;
  margin-bottom: 10px;
}

.desc {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  margin-top: 12px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 18px rgba(11, 110, 142, 0.22);
}

.btn-primary:hover {
  background: var(--brand2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--stroke);
  color: #1d2b33;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}

.footer {
  text-align: center;
  padding: 26px 18px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #183241, #1f3c4c);
  margin-top: 46px;
  font-size: 14px;
}


/* Contraindications block */
.contraindications {
  margin-top: 18px;
}

.contra-title {
  margin: 0 0 6px;
}

.contra-sub {
  margin: 0 0 12px;
  opacity: 0.85;
  line-height: 1.4;
}

.contra-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.contra-list li {
  line-height: 1.35;
}

/* Description toggle */
.desc.is-collapsed {
  display: none;
}

/* Button "Описание" — отдельный стиль, чтобы не ломать btn-ghost */
.btn-desc {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--stroke);
  color: #1d2b33;
}

.btn-desc:hover {
  background: rgba(255, 255, 255, 0.85);
}

.contraindications {
  margin-top: 22px;
}

.contra-title {
  font-size: 20px;
  margin: 0 0 6px;
  color: #163240;
}

.contra-sub {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.contra-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.contra-list li {
  line-height: 1.35;
  color: var(--muted);
}

.noncontra-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.noncontra-list li {
  line-height: 1.35;
  color: var(--muted);
}

.noncontra-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.noncontra-list li {
  line-height: 1.35;
}

/* Booking dropdown */
.booking-options {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  animation: fadeIn 0.2s ease;
}

.booking-options.show {
  display: flex;
}

.booking-options .btn {
  font-size: 13px;
  padding: 10px 12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hidden {
  display: none;
}


.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}

.toggle-btn:active {
  transform: translateY(1px);
}

.toggle-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 18px rgba(11, 110, 142, 0.22);
}

.toggle-btn-primary:hover {
  background: var(--brand2);
}

.toggle-btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--stroke);
  color: #1d2b33;
}

.toggle-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}


/* Portfolio page */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.portfolio-card h2 {
  margin-bottom: 8px;
}

.portfolio-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .portfolio-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.photo:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
}

.photo img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

/* Filters card */
.portfolio-filters h2 {
  font-size: 20px;
  margin: 0 0 6px;
  color: #163240;
}

/* Lightbox */
.no-scroll {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  margin: 6vh auto 0;
  width: min(920px, calc(100% - 28px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  padding: 14px;
}

.lightbox__img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.lightbox__close {
  margin-top: 12px;
  width: 100%;
}

/* Portfolio photo-only cards */

.portfolio-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1; /* квадрат */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-filters .desc {
  position: relative;
  max-height: 110px; /* регулируй высоту */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.portfolio-filters .desc.is-expanded {
  max-height: 1000px;
}

.portfolio-filters .desc::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-filters .desc.is-expanded::after {
  opacity: 0;
}
