body.dark {
  background: #111;
  color: #ddd;
}

.service-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  background: var(--bs-body-bg, #fff);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

body.dark .service-container {
  background: #1e1e1e;
}

.service-image {
  max-height: 260px;
  object-fit: cover;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.service-icon {
  font-size: 1.6rem;
  color: #0d6efd;
  margin-right: 10px;
}

.service-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2a8c1c;
  margin-top: 4px;
}

.theme-toggle {
  position: fixed;
  top: 10px;
  right: 12px;
}

/* Markdown-таблицы */
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.markdown-body th {
  background: #f8f9fa;
  font-weight: 600;
}

body.dark .markdown-body th,
body.dark .markdown-body td {
  border-color: #444;
  background: #1a1a1a;
  color: #eee;
}
.card-img-top {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 6px;
}
.service-thumb {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 8px;
  border-radius: 6px;
}
.card-img-top.service-thumb {
  width: 100%;
  max-height: 140px;       /* 👈 ограничиваем высоту */
  object-fit: contain;     /* ✅ не обрезаем */
  background: #fff;        /* нейтральный фон */
  padding: 6px;            /* немного воздуха */
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.service-main-img {
  max-height: 300px;             /* ограничивает высоту */
  object-fit: contain;           /* сохраняет пропорции */
  background: #f8f9fa;
  padding: 6px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.service-main-img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}