/* CSS-переменные*/
.price-table {
  /* Общие стили таблицы*/
  --table-margin-inline: auto; /* выравн. по центру */
  --table-margin-block: 2rem;
  --table-display: table;
  --table-tw: pretty; /* text-wrap*/

  --table-clr: inherit;
  --table-accent-clr: orangered;
  --table-border: 1px solid black;
  --table-fs: inherit;
  --table-fw: inherit;

  /* Caption*/
  --table-caption-mbe: 1em; /* margin-block-end */

  /* Заголовок таблицы */
  --table-name-clr: inherit;
  --table-name-fs: 1.5rem;
  --table-name-fw: 600;
  --table-name-tt: uppercase;
  --table-name-pbe: 1rem;

  /* Подзаголовок/описание таблицы */
  --table-desc-clr: inherit;
  --table-desc-fs: 1rem;
  --table-desc-fw: 400;
  --table-desc-tt: auto;

  /* Первая строка с названиями колонок */
  --table-header-clr: inherit;
  --table-header-bg-clr: white;
  --table-header-fs: inherit;
  --table-header-fw: 600;
  --table-header-td: uppercase;

  /* Разделы таблицы */
  --table-chapter-clr: white;
  --table-chapter-bg-clr: var(--table-accent-clr, red);
  --table-chapter-ta: center;
  --table-chapter-fs: var(--table-header-fs);
  --table-chapter-fw: var(--table-header-fw);

  /* Акцентный текст */
  --table-accent-text-clr: var(--table-accent-clr, red);
  --table-accent-text-fs: inherit;
  --table-accent-text-fw: 700;
  --table-accent-text-td: underline; /* text-decoration */
  --table-accent-text-td-th: 0.15em; /* text-decoration-thickness*/

  /* Секция - Доп информация */
  --table-add-pb: 0.75em; /* padding-block */
  --table-add-title-clr: var(--table-accent-clr, red);
  --table-add-title-fw: 700;
  --table-add-title-tt: uppercase;

  /* Сноски (звёзды или цифры) */
  --table-footnotes-pb: 0.75em; /* padding-block */
  --table-footnotes-clr: red;
  --table-footnotes-fw: 900;
  --table-footnotes-ti: 4ch; /* отступ новой строки*/
}

/* СТИЛИ */
.price-table {
  width: 100%;

  .table-description {
    text-align: left;
  }

  /* Колонка с наименованием услуги или документа */
  .service-name-col {
    text-align: left;
  }

  /* Колонка с опциями (срочность, посторность итд) */
  .service-feature-col {
    text-align: left;
  }

  /* Колонка с ценами */
  .service-price-col {
    text-align: right;
  }
}

/* Переводы документов (на русский язык) */
.translation-prices-table {
  /* Сноки - Срочный перевод */
  & .feature-urgent {
    position: relative;

    &::after {
      position: absolute;
      top: 0;
      left: 14ch;
      content: '*';
      color: var(--table-footnotes-clr, red);
      font-weight: var(--table-footnotes-fw, 900);
      z-index: 3;
    }
  }

  /* Сноки - Повторный перевод */
  & .feature-repeated {
    position: relative;

    &::after {
      position: absolute;
      top: 0;
      left: 15ch;
      content: '**';
      color: var(--table-footnotes-clr, red);
      font-weight: var(--table-footnotes-fw, 900);
      z-index: 3;
    }
  }

  /* Колонка с ценами */
  .service-price-col {
    text-align: center;
  }
}

/* Миграционные услуги  */
.immigration-prices-table {
  .table-header {
    text-align: left;
  }

  .service-price-col {
    text-align: left;
  }

  & .service-vnzh .service-price-col,
  & .service-registration .service-price-col {
    & .accent-text {
      color: black;
      font-weight: 700;
      text-decoration-thickness: 0.1em;
      text-underline-offset: 0.15em;
    }

    & p:not(:last-child) {
      margin-block-end: 0.6rem;
    }
  }
}

/* Судебная защита по миграционным делам  */
.legal-prices-table {
  & .table-header .service-name-col {
    text-align: left;
  }

  & .table-header .service-price-col {
    text-align: right;
  }
}
