@charset "UTF-8";
/* MobileTable.module.scss */
/*==== Цветовые переменные ====*/
/*==== Фон для заголовков ====*/
/* для CategoryRow */
/* для SubCategoryRow */
/*==== Размеры «прилипших» строк ====*/
/* высота <th> */
/* высота строки-категории */
/* высота строки-услуги-заголовка */
/*==== Общие стили ====*/
.MobileWrapper {
  min-height: 100vh;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 5vw, 2.5rem);
  background: linear-gradient(180deg, #f4fbfd 0%, #ffffff 70%);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 32px);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.MobileHero {
  border-radius: 20px;
  padding: clamp(20px, 5vw, 32px);
  background: radial-gradient(circle at top, #e2fbff 0%, #ffffff 70%);
  border: 1px solid rgba(2, 132, 137, 0.12);
  box-shadow: 0 25px 60px rgba(3, 31, 37, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.MobileHeroEyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #00838f;
  margin: 0;
}

.MobileHeroTitle {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  color: #031f25;
  line-height: 1.1;
}

.MobileHeroDescription {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #476370;
}

.MobileHeroStats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.MobileHeroStat {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(3, 31, 37, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.MobileHeroStatValue {
  font-size: 1.5rem;
  font-weight: 700;
  color: #031f25;
}

.MobileHeroStatSkeleton {
  display: inline-block;
  width: clamp(60px, 20vw, 110px);
  height: 1.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(64, 168, 191, 0.18), rgba(255, 255, 255, 0.65));
  background-size: 200% 100%;
  animation: mobile-table-skeleton-pulse 1.4s ease-in-out infinite;
}

.MobileHeroStatLabel {
  font-size: 0.85rem;
  color: #4a6773;
}

.MobileHeroHighlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.MobileHeroHighlight {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(2, 132, 137, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.MobileHeroHighlight h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #032830;
}
.MobileHeroHighlight p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #4b6470;
}

.MobileCardCash {
  border-radius: 20px;
  background: #ffffff;
  padding: clamp(12px, 3vw, 20px);
  box-shadow: 0 25px 60px rgba(3, 31, 37, 0.08);
  position: relative;
}

.MobileTableSection {
  border-radius: 20px;
  background: #ffffff;
  padding: clamp(18px, 5vw, 28px);
  box-shadow: 0 30px 80px rgba(3, 31, 37, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.MobilePriceGroups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.MobilePriceGroup {
  border-radius: 22px;
  border: 1px solid rgba(3, 31, 37, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 253, 0.92));
  box-shadow: 0 18px 36px rgba(3, 31, 37, 0.06);
  overflow: hidden;
}

.MobilePriceGroupHeader {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0, 163, 170, 0.12), rgba(4, 91, 120, 0.08));
  border-bottom: 1px solid rgba(3, 31, 37, 0.08);
}

.MobilePriceGroupHeaderTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.MobilePriceGroupTitleWrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.MobilePriceGroupTitle {
  margin: 0;
  color: #031f25;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.MobilePriceItems {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.MobilePriceItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(3, 31, 37, 0.06);
}

.MobilePriceItemHeader {
  background: linear-gradient(135deg, rgba(4, 91, 120, 0.08), rgba(255, 255, 255, 0.98));
  border-color: rgba(4, 91, 120, 0.12);
}

.MobilePriceItemMain {
  min-width: 0;
}

.MobilePriceItemTitleWrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.MobilePriceItemTitle {
  color: #062024;
  font-size: 0.95rem;
  line-height: 1.45;
  text-decoration: none;
  word-break: break-word;
}

.MobilePriceItemPriceBlock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.MobilePriceItemPrice {
  color: #031f25;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.MobilePriceNote {
  padding-top: 4px;
}

.MobileTableHeader {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 520px) {
  .MobileTableHeader {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.MobileTableTitle {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  color: #031f25;
}

.MobileTableSubtitle {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #4b6571;
}

.MobileTableCTA {
  align-self: flex-start;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, #00d3db, #00a0a9);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(0, 163, 170, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.MobileTableCTA:hover, .MobileTableCTA:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(0, 163, 170, 0.35);
}

.MobileTableCTAIconLabel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.MobileTableCTAVisuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.MobileSkeletonPage {
  margin-top: var(--header-height);
  padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.MobileSkeletonHeading {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: #062024;
  margin: 0;
  text-align: center;
}

.MobileSkeletonCard {
  width: min(640px, 100%);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(72, 209, 195, 0.15), rgba(6, 32, 36, 0.08));
  border: 1px solid rgba(6, 32, 36, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.MobileSkeletonHeader {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.MobileSkeletonLine,
.MobileSkeletonLineShort,
.MobileSkeletonRow span {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(6, 32, 36, 0.15), rgba(255, 255, 255, 0.45));
  background-size: 200% 100%;
  animation: mobile-table-skeleton-pulse 1.4s ease-in-out infinite;
}

.MobileSkeletonLine {
  width: 70%;
  height: 20px;
}

.MobileSkeletonLineShort {
  width: 40%;
}

.MobileSkeletonRows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.MobileSkeletonRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.MobileSkeletonRow span:first-child {
  width: 60%;
}

.MobileSkeletonRow span:last-child {
  width: 20%;
}

@keyframes mobile-table-skeleton-pulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/*=== Заголовок таблицы ===*/
.PricesTableHeader {
  color: #333333;
  background-color: #045b78;
  position: sticky;
  top: 0;
  z-index: 2;
}

/*==== Контейнер с прокруткой ====*/
.ScrollableContainer {
  width: 100%;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #dddddd;
  border-radius: 20px;
  background: #ffffff;
}

/*==== Таблица ====*/
.MobileTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* фиксация ширин по <colgroup> */
  background: #ffffff;
}

/*==== Заголовочные ячейки <th> ====*/
.HeaderCell {
  background-color: #045b78;
  color: white;
  font-weight: bold;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #dddddd;
  white-space: nowrap;
  /* «Прилипает» к верху ScrollableContainer */
  position: sticky;
  top: 0;
  z-index: 3; /* выше других слоёв */
}

@media (max-width: 480px) {
  .HeaderCell {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}
/*==== Строка-категория ====*/
.CategoryRow {
  background-color: #deeaed;
  position: sticky;
  z-index: 1;
  scroll-margin-top: 88px;
}
.CategoryRow td {
  /* «Прилипает» ровно под заголовком колонок */
  position: sticky;
  top: 32px; /* 40px */
  z-index: 2; /* под <th>, но над subcategory */
}

.CategoryHeaderRow {
  position: sticky;
  z-index: 1;
  scroll-margin-top: 88px;
}
.CategoryHeaderRow td {
  /* «Прилипает» ровно под заголовком колонок */
  background-color: #deeaed;
  position: sticky;
  top: 32px; /* 40px */
  z-index: 2; /* под <th>, но над subcategory */
}

.PricesTableRow {
  border-bottom: 1px solid #dddddd;
  scroll-margin-top: 88px;
}

.CategoryCell {
  padding: 10px;
  font-weight: 500;
  color: #333333;
  font-size: 1rem;
  border-bottom: 1px solid #dddddd;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .CategoryCell {
    font-size: 0.9rem;
    padding: 8px;
  }
}

.HighlightedRow {
  background-image: linear-gradient(90deg, rgba(0, 163, 170, 0.16), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 2px rgba(0, 163, 170, 0.3);
  animation: rowHighlightMobile 2s ease-out;
}
.HighlightedRow td,
.HighlightedRow th {
  background-image: inherit;
  background-color: rgb(0, 212, 219);
  transition: background-color 0.3s ease;
}
.HighlightedRow.MobilePriceGroupHeader, .HighlightedRow.MobilePriceItem, .HighlightedRow.MobilePriceNote {
  background-color: rgba(0, 212, 219, 0.08);
  transition: background-color 0.3s ease;
}

@keyframes rowHighlightMobile {
  0% {
    background-color: rgba(0, 211, 219, 0.22);
  }
  100% {
    background-color: transparent;
  }
}
/*==== «Заголовок услуги» (service-header) ====*/
.SubCategoryRow {
  background-color: #045b78;
  background: #fafafa;
}
.SubCategoryRow td {
  /* «Прилипает» ровно под текущей категорией */
  top: calc(32px + 40px); /* 40px + 40px = 80px */
  z-index: 1; /* под category, над обычными строками */
}

.SubCategoryCell {
  padding: 8px 10px;
  font-weight: 500;
  color: #333333;
  font-size: 0.9rem;
  border-bottom: 1px solid #dddddd;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .SubCategoryCell {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

/*==== Обычная строка услуги ====*/
.ServiceRow {
  border-bottom: 1px solid #dddddd;
}

.ServiceRow:nth-child(even) {
  background-color: #fafafa;
}

/* Ячейка с названием услуги */
.ServiceCell {
  padding: 8px 10px;
  color: #036877;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: visible; /* <-- заменили на visible */
  position: relative;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .ServiceCell {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

/* Ячейка с описанием */
.DescriptionCell {
  padding: 8px 10px;
  color: rgba(3, 104, 119, 0.6);
  font-size: 0.85rem;
  white-space: normal; /* перенос по словам */
  word-break: break-word; /* переносит длинные слова */
}
@media (max-width: 480px) {
  .DescriptionCell {
    font-size: 0.75rem;
    padding: 6px 8px;
  }
}

/* Примечание категории (category-note) */
.CategoryNoteCell {
  white-space: pre-line;
}

.CategoryNoteText {
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(3, 104, 119, 0.6);
  background: rgba(4, 91, 120, 0.06);
  border-left: 3px solid rgba(4, 91, 120, 0.35);
  border-radius: 14px;
  padding: 10px 12px;
}
@media (max-width: 480px) {
  .CategoryNoteText {
    font-size: 0.72rem;
    padding: 8px 10px;
  }
}

/* Ячейка с ценой */
.PriceCell {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 8px 10px;
  color: #333333;
  font-size: 0.9rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .PriceCell {
    font-size: 0.8rem;
    padding: 6px 0px;
  }
}

.originalPrice {
  color: #718096;
  text-decoration: line-through;
}

.discountedPrice {
  color: #e53e3e;
  font-weight: 600;
}

.PromoPositionPriceCell {
  top: 0;
  right: 4px;
}

.PromoPositionCategoryRow {
  top: 8px;
  right: auto;
  left: initial;
  margin-left: 10px;
}

@media (max-width: 520px) {
  .MobilePriceGroupHeader {
    padding: 12px 14px;
  }
  .MobilePriceGroupHeaderTop {
    flex-direction: column;
  }
  .MobilePriceItems {
    padding: 10px;
  }
  .MobilePriceItem {
    grid-template-columns: 1fr;
  }
  .MobilePriceItemPriceBlock {
    align-items: flex-start;
    text-align: left;
  }
}
/*==== Переносы и слова ====*/
.MobileTable th {
  word-break: keep-all;
  z-index: 2;
}

.MobileTable td {
  word-break: break-word;
}
@media (max-width: 380px) {
  .MobileTable td {
    white-space: break-spaces;
  }
}

.MobileLoading {
  display: block;
}

/*==== Стили «scrollbar» (необязательно) ====*/
.ScrollableContainer::-webkit-scrollbar {
  width: 6px;
}

.ScrollableContainer::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.ScrollableContainer::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== Иконка-вопросик с тултипом ===== */
.TooltipIcon {
  display: inline-block;
  margin-left: 6px;
  color: #333333; /* или другой подходящий цвет */
  font-weight: bold;
  cursor: help;
  position: relative;
  font-size: 0.9rem;
  line-height: 1;
}
.TooltipIcon:hover {
  color: #333333;
}

/* Если хочется кастомный всплывающий тултип, можно так: */
.TooltipIcon:hover::after {
  content: attr(title);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: normal;
  width: max-content;
  max-width: 200px;
  z-index: 999999;
  pointer-events: none;
}