

/* Start:/toolse/calculator/style.css?178984174934584*/
.calculator-page {
    background: var(--ztc-bg-bg-1);
  }

  .calculator-page .faq-header-area p {
    max-width: 880px;
    margin: 18px auto 0;
  }

  .calculator-shell {
    color: var(--ztc-text-text-5);
  }

  .calculator-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
  }

  .calculator-card {
    background: var(--ztc-text-text-1);
    border: 1px solid var(--ztc-border-border-1);
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(20, 38, 55, 0.08);
    padding: 32px;
  }

  .calculator-card-head {
    border-bottom: 1px solid var(--ztc-border-border-1);
    margin-bottom: 24px;
    padding-bottom: 18px;
  }


  .calculator-card h3,
  .calculator-text-block h3 {
    margin: 0;
    color: var(--ztc-text-text-5);
    font-size: 24px;
    line-height: 1.25;
    font-weight: var(--ztc-weight-bold);
  }

  .calculator-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .calc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    position: relative;
    text-align: left;
  }

  .calc-label {
    align-items: center;
    color: var(--ztc-text-text-5);
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 6px;
  }

  .calc-help {
    align-items: center;
    background: var(--ztc-bg-bg-5);
    border-radius: 50%;
    color: var(--ztc-text-text-5);
    cursor: help;
    display: inline-flex;
    flex: 0 0 18px;
    font-size: 11px;
    font-weight: var(--ztc-weight-bold);
    height: 18px;
    justify-content: center;
    line-height: 18px;
    text-decoration: none;
    width: 18px;
  }

  .calc-help:hover {
    background: var(--ztc-bg-bg-3);
    color: var(--ztc-text-text-5);
  }

  .calc-input-wrap {
    align-items: flex-end;
    background: var(--ztc-bg-bg-1);
    border: 1px solid var(--ztc-border-border-2);
    border-radius: 4px;
    cursor: text;
    display: flex;
    gap: 2px;
    min-height: 62px;
    padding: 17px 16px 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    width: 100%;
  }

  .calc-field input {
    background: transparent;
    border: 0;
    color: var(--ztc-text-text-3);
    font-family: var(--ztc-family-font1);
    font-size: 22px;
    font-weight: var(--ztc-weight-medium);
    height: 30px;
    line-height: 30px;
    outline: none;
    padding: 0;
  }

  .calc-field input[type=number] {
    -moz-appearance: textfield;
  }

  .calc-field input[type=number]::-webkit-outer-spin-button,
  .calc-field input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .calc-unit {
    color: var(--ztc-text-text-6);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-weight: var(--ztc-weight-bold);
    line-height: 24px;
    padding-bottom: 1px;
    white-space: nowrap;
  }

  /* Поле со списком: та же рамка, что у числовых, но вместо крупной
     цифры — выбранная ставка и стрелка справа. */
  .calc-input-select {
    align-items: center;
    padding-bottom: 0;
    padding-top: 0;
  }

  .calc-field .calc-input-select select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23525455' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center;
    background-size: 12px 8px;
    border: 0;
    color: var(--ztc-text-text-3);
    cursor: pointer;
    font-family: var(--ztc-family-font1);
    font-size: 22px;
    font-weight: var(--ztc-weight-medium);
    line-height: 30px;
    outline: none;
    padding: 0 22px 0 0;
    width: 100%;
  }

  /* Тема подменяет <select> плагином nice-select: настоящий список
     прячется, а рисуется его собственный блок. Подгоняем этот блок под
     остальные поля — рамку и фон даёт обёртка, ширина на всё поле. */
  .calc-input-select .nice-select {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--ztc-text-text-3);
    float: none;
    font-family: var(--ztc-family-font1);
    font-size: 22px;
    font-weight: var(--ztc-weight-medium);
    height: auto;
    line-height: 30px;
    min-height: 30px;
    padding: 0 28px 0 0;
    width: 100%;
  }

  /* НДС стоит последним полем формы, и список, раскрываясь вниз,
     свисал за нижний край карточки почти на сотню пикселей, наезжая
     на то, что под ней. Раскрываем вверх — там место всегда есть. */
  .calc-input-select .nice-select .list {
    bottom: 100%;
    margin-bottom: 6px;
    margin-top: 0;
    top: auto;
    transform-origin: 50% 100%;
    width: 100%;
    z-index: 40;
  }

  .calc-input-wrap:focus-within {
    border-color: var(--ztc-bg-bg-3);
    background: var(--ztc-text-text-1);
    box-shadow: 0 0 0 4px rgba(255, 208, 40, 0.24);
  }

  .calculator-result {
    display: flex;
    flex-direction: column;
    background: var(--ztc-text-text-5);
    border-color: var(--ztc-text-text-5);
    color: var(--ztc-text-text-1);
  }

  .calculator-result h3 {
    color: var(--ztc-text-text-1);
  }

  .result-price {
    border-radius: 4px;
    background: var(--ztc-bg-bg-3);
    padding: 22px 24px;
    margin-bottom: 24px;
    min-height: 128px;
  }

  .result-price > span,
  .result-price > small {
    display: block;
    color: var(--ztc-text-text-5);
    font-weight: var(--ztc-weight-bold);
  }

  .result-price strong {
    display: block;
    margin: 8px 0;
    color: var(--ztc-text-text-5);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-size: 40px;
    line-height: 1.1;
    min-height: 1.1em;
    overflow: hidden;
  }

  .result-price strong,
  .result-lines strong {
    min-height: 1.1em;
    line-height: 1.1;
  }

  .calc-roll {
    display: inline-block;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0;
    height: 1.1em;
    line-height: 1.1;
    overflow: hidden;
    white-space: nowrap;
  }

  .calc-roll-stack {
    display: flex;
    flex-direction: column;
    transform: translateY(-1.1em);
  }

  .calc-roll.is-changing .calc-roll-stack {
    animation: calcDigitRoll .34s cubic-bezier(.22, .82, .24, 1) both;
  }

  .calc-roll.is-unchanged .calc-roll-stack {
    transform: translateY(-1.1em);
  }

  .calc-roll-value {
    display: block;
    height: 1.1em;
    line-height: 1.1;
  }

  @keyframes calcDigitRoll {
    from {
      transform: translateY(0);
    }

    to {
      transform: translateY(-1.1em);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .calc-roll.is-changing .calc-roll-stack {
      animation: none;
      transform: translateY(-1.1em);
    }
  }

  .result-lines {
    display: grid;
    gap: 10px;
  }

  .result-lines div {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    min-height: 45px;
    padding-bottom: 10px;
  }

  .result-lines span {
    color: rgba(255, 255, 255, 0.78);
  }

  .result-lines strong {
    color: var(--ztc-text-text-1);
    display: inline-flex;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
  }


  /* Смета следует за прокруткой: форма с раскрытыми дополнительными
     параметрами длиннее экрана, и без этого итог уезжал бы наверх,
     а человек крутил бы страницу туда-сюда ради одной цифры.
     Только на двух колонках — на узком экране смета идёт под формой,
     и прилипать ей некуда. */
  /* Тема ставит body { overflow-x: hidden }, а это делает body
     контейнером прокрутки и полностью отключает position: sticky внутри.
     clip обрезает по горизонтали так же, но контейнера не создаёт.
     Правило ограничено страницей калькулятора. */
  body:has(.calculator-page) {
    overflow-x: clip;
  }

  @media (min-width: 992px) {
    .calculator-result {
      position: sticky;
      /* 98 px — липкая шапка темы, которая появляется при прокрутке
         (.header-area.sticky, position: fixed), плюс зазор 24 px */
      top: 122px;
      /* если строк сметы наберётся больше, чем помещается на экране,
         прокручиваем её саму, а не выталкиваем за край */
      max-height: calc(100vh - 146px);
      overflow-y: auto;
    }
  }

  .calculator-info {
    padding-top: 0;
  }

  .calculator-text-block {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--ztc-border-border-1);
    border-radius: 4px;
    background: var(--ztc-text-text-1);
    padding: 24px;
    box-shadow: 0 12px 32px rgba(20, 38, 55, 0.06);
  }

  .calculator-text-block p {
    margin: 12px 0 0;
    color: var(--ztc-text-text-6);
    line-height: 1.7;
  }

  .calculator-text-link {
    align-self: flex-start;
    margin-top: auto;
  }

  .calculator-article {
    background: var(--ztc-bg-bg-1);
    padding-top: 0;
  }

  .calculator-article-card {
    background: var(--ztc-text-text-1);
    border: 1px solid var(--ztc-border-border-1);
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(20, 38, 55, 0.08);
    padding: 40px;
  }


  .calculator-article-section,
  .calculator-article-grid,
  .calculator-faq {
    margin-top: 28px;
  }

  .calculator-article-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-article h3 {
    color: var(--ztc-text-text-5);
    font-size: 24px;
    font-weight: var(--ztc-weight-bold);
    line-height: 1.3;
    margin: 0 0 14px;
  }

  .calculator-article p,
  .calculator-article li {
    color: var(--ztc-text-text-6);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-weight: var(--ztc-weight-medium);
    line-height: 1.75;
  }

  .calculator-article p {
    margin: 0 0 14px;
  }

  .calculator-article p:last-child {
    margin-bottom: 0;
  }

  .calculator-article ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .calculator-article li {
    list-style: none;
    padding-left: 24px;
    position: relative;
  }

  .calculator-article li::before {
    background: var(--ztc-bg-bg-3);
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    top: 12px;
    width: 8px;
  }

  .calculator-formula {
    background: var(--ztc-text-text-5);
    border-left: 4px solid var(--ztc-bg-bg-3);
    border-radius: 4px;
    color: var(--ztc-text-text-1);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s18);
    font-weight: var(--ztc-weight-bold);
    line-height: 1.5;
    margin: 18px 0;
    padding: 18px 20px;
  }

  .calculator-faq h4 {
    color: var(--ztc-text-text-5);
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s18);
    font-weight: var(--ztc-weight-bold);
    line-height: 1.4;
    margin: 22px 0 8px;
    scroll-margin-top: 120px;
  }


  @media (max-width: 991px) {
    .calculator-grid {
      grid-template-columns: 1fr;
    }

    .calculator-article-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 575px) {
    .calculator-card {
      padding: 18px;
    }

    .calculator-fields {
      gap: 16px;
      grid-template-columns: minmax(0, 1fr);
    }

    .calc-input-wrap {
      min-height: 52px;
      padding: 13px 14px 12px;
    }

    .calc-field input {
      font-size: var(--ztc-font-size-font-s16);
      height: 24px;
      line-height: 24px;
    }

    .calc-field .calc-input-select select,
    .calc-input-select .nice-select {
      font-size: var(--ztc-font-size-font-s16);
      line-height: 24px;
    }

    .calc-unit {
      font-size: var(--ztc-font-size-font-s14);
      line-height: 22px;
    }

    .result-price strong {
      font-size: 32px;
    }

    .calculator-article-card {
      padding: 22px;
    }
  }

  /* --- Выбор материала --------------------------------------------------
     Комбобокс с поиском поверх формы. Раскрытая панель лежит абсолютом
     внутри .calc-field, у которого уже задан position: relative. */

  /* Шапка формы: заголовок слева, переключатель дополнительных
     параметров справа. В шапке сметы справа ничего не стоит. */
  .calculator-form .calculator-card-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: space-between;
  }

  .calc-advanced-toggle {
    align-items: center;
    /* Ширину держим постоянной: «Свернуть» короче «Всех параметров»,
       и без этого кнопка дёргалась бы при каждом нажатии. */
    justify-content: center;
    min-width: 158px;
    background: none;
    border: 1px solid var(--ztc-border-border-2);
    border-radius: 4px;
    color: var(--ztc-text-text-5);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s14);
    font-weight: var(--ztc-weight-bold);
    gap: 8px;
    margin-left: auto;
    padding: 9px 14px;
    transition: border-color .2s ease, background .2s ease;
    white-space: nowrap;
  }

  .calc-advanced-toggle:hover {
    background: var(--ztc-bg-bg-1);
    border-color: var(--ztc-text-text-6);
  }

  .calc-advanced-toggle:focus-visible {
    border-color: var(--ztc-bg-bg-3);
    box-shadow: 0 0 0 3px rgba(255, 208, 40, 0.24);
    outline: none;
  }

  .calc-advanced-caret {
    flex: 0 0 12px;
    height: 8px;
    transition: transform .2s ease;
    width: 12px;
  }

  .calc-advanced-toggle[aria-expanded="true"] .calc-advanced-caret {
    transform: rotate(180deg);
  }

  .calculator-fields.is-compact .calc-field-advanced {
    display: none;
  }

  .calc-material {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .calc-material-row {
    align-items: stretch;
    display: flex;
    gap: 10px;
    min-width: 0;
  }

  .calc-material-button {
    align-items: center;
    background: var(--ztc-bg-bg-1);
    border: 1px solid var(--ztc-border-border-2);
    border-radius: 4px;
    color: var(--ztc-text-text-5);
    cursor: pointer;
    display: flex;
    flex: 1 1 auto;
    font-family: var(--ztc-family-font1);
    gap: 10px;
    min-height: 62px;
    min-width: 0;
    padding: 14px 16px;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }

  .calc-material-button:hover {
    border-color: var(--ztc-text-text-6);
  }

  .calc-material-button:focus-visible,
  .calc-material-button[aria-expanded="true"] {
    background: var(--ztc-text-text-1);
    border-color: var(--ztc-bg-bg-3);
    box-shadow: 0 0 0 4px rgba(255, 208, 40, 0.24);
    outline: none;
  }

  .calc-material-button.is-saved-flash {
    border-color: var(--ztc-bg-bg-3);
    box-shadow: 0 0 0 4px rgba(255, 208, 40, 0.45);
  }

  .calc-material-name {
    font-size: 22px;
    font-weight: var(--ztc-weight-medium);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calc-material-name.is-empty {
    color: var(--ztc-text-text-6);
    font-size: var(--ztc-font-size-font-s18);
  }

  .calc-material-price {
    color: var(--ztc-text-text-6);
    flex: 0 1 auto;
    font-size: var(--ztc-font-size-font-s16);
    font-weight: var(--ztc-weight-bold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calc-material-caret {
    color: var(--ztc-text-text-6);
    flex: 0 0 12px;
    height: 8px;
    margin-left: auto;
    width: 12px;
  }

  .calc-material-save {
    background: var(--ztc-bg-bg-3);
    border: 0;
    border-radius: 4px;
    color: var(--ztc-text-text-5);
    cursor: pointer;
    flex: 0 0 auto;
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-weight: var(--ztc-weight-bold);
    padding: 0 20px;
    transition: filter .2s ease;
    white-space: nowrap;
  }

  .calc-material-save:hover {
    filter: brightness(0.94);
  }

  /* --- раскрытая панель --- */

  .calc-material-panel {
    background: var(--ztc-text-text-1);
    border: 1px solid var(--ztc-border-border-2);
    border-radius: 4px;
    box-shadow: 0 24px 48px rgba(20, 38, 55, 0.18);
    display: flex;
    flex-direction: column;
    left: 0;
    max-height: 420px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
  }

  .calc-material-panel[hidden] {
    display: none;
  }

  .calc-material-search {
    border-bottom: 1px solid var(--ztc-border-border-1);
    flex: 0 0 auto;
    padding: 12px 14px;
  }

  /* перебиваем крупный шрифт числовых полей калькулятора */
  .calc-field .calc-material-search input {
    background: var(--ztc-bg-bg-1);
    border: 1px solid var(--ztc-border-border-2);
    border-radius: 4px;
    color: var(--ztc-text-text-5);
    font-size: var(--ztc-font-size-font-s16);
    font-weight: var(--ztc-weight-medium);
    height: 42px;
    line-height: 42px;
    padding: 0 12px;
    width: 100%;
  }

  .calc-field .calc-material-search input:focus {
    background: var(--ztc-text-text-1);
    border-color: var(--ztc-bg-bg-3);
    box-shadow: 0 0 0 3px rgba(255, 208, 40, 0.24);
    outline: none;
  }

  .calc-material-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Сверху отступа быть не должно: липкая плашка категории встаёт по
       верхнему краю, и в любую щель над ней видно проезжающие строки. */
    padding: 0 0 6px;
  }

  /* Заголовок группы — плашка во всю ширину: прежняя бледная строчка
     терялась среди названий, и понять, какая это категория, было
     невозможно. Прилипает к верху, пока листаешь свою группу. */
  .calc-material-group {
    background: var(--ztc-bg-bg-1);
    border-bottom: 1px solid var(--ztc-border-border-2);
    border-top: 1px solid var(--ztc-border-border-2);
    color: var(--ztc-text-text-5);
    font-size: 13px;
    font-weight: var(--ztc-weight-bold);
    letter-spacing: .04em;
    padding: 9px 16px;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
  }

  .calc-material-group:first-child {
    border-top: 0;
  }

  .calc-material-item {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 40px;
    padding: 8px 16px;
  }

  .calc-material-item:hover,
  .calc-material-item.is-active {
    background: var(--ztc-bg-bg-1);
  }

  .calc-material-item[aria-selected="true"] {
    box-shadow: inset 3px 0 0 var(--ztc-bg-bg-3);
  }

  .calc-material-item-name {
    color: var(--ztc-text-text-5);
    font-size: var(--ztc-font-size-font-s16);
    font-weight: var(--ztc-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calc-material-item-price {
    color: var(--ztc-text-text-5);
    font-size: var(--ztc-font-size-font-s14);
    font-weight: var(--ztc-weight-bold);
    white-space: nowrap;
  }

  .calc-material-item-family {
    color: var(--ztc-text-text-6);
    font-size: 12px;
    margin-left: auto;
    white-space: nowrap;
  }

  .calc-material-remove {
    background: none;
    border: 0;
    color: var(--ztc-text-text-6);
    cursor: pointer;
    flex: 0 0 26px;
    font-size: 20px;
    height: 26px;
    line-height: 1;
    margin-left: auto;
    padding: 0;
  }

  .calc-material-remove:hover {
    color: var(--ztc-text-text-3);
  }

  .calc-material-empty {
    color: var(--ztc-text-text-6);
    font-size: var(--ztc-font-size-font-s16);
    padding: 18px 16px;
  }

  .calc-material-foot {
    border-top: 1px solid var(--ztc-border-border-1);
    flex: 0 0 auto;
    padding: 10px 14px;
  }

  .calc-material-add {
    background: none;
    border: 0;
    color: var(--ztc-text-text-5);
    cursor: pointer;
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s14);
    font-weight: var(--ztc-weight-bold);
    overflow: hidden;
    padding: 6px 2px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
  }

  .calc-material-add:disabled {
    color: var(--ztc-text-text-6);
    cursor: default;
    font-weight: var(--ztc-weight-medium);
  }

  /* --- строка материала в смете --- */

  .result-line-material a {
    color: var(--ztc-bg-bg-3);
    font-weight: var(--ztc-weight-bold);
    text-align: right;
    text-decoration: none;
  }

  .result-line-material a:hover {
    text-decoration: underline;
  }

  /* --- телефон: панель разворачивается на весь экран, иначе список
         не помещается над клавиатурой --- */

  @media (max-width: 575px) {
    .calc-material-button {
      min-height: 52px;
      padding: 12px 14px;
    }

    .calc-material-name {
      font-size: var(--ztc-font-size-font-s16);
    }

    .calc-material-row {
      flex-wrap: wrap;
    }

    .calc-material-button {
      flex: 1 1 100%;
    }

    .calc-material-save {
      flex: 1 1 100%;
      min-height: 44px;
      padding: 12px 14px;
    }

    .calc-material-panel {
      border-radius: 0;
      bottom: 0;
      left: 0;
      max-height: none;
      position: fixed;
      right: 0;
      top: 0;
      z-index: 10400;
    }

    body.calc-material-open {
      overflow: hidden;
    }
  }

  /* --- Статистика расчётов (только администратору) ------------------- */

  .calculator-stats-area {
    background: var(--ztc-bg-bg-1);
    padding-top: 0;
  }


  .calc-stats .calculator-card-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .calc-stats-tiles {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
  }

  .calc-stats-tile {
    background: var(--ztc-bg-bg-1);
    border: 1px solid var(--ztc-border-border-1);
    border-radius: 4px;
    padding: 14px 16px;
  }

  .calc-stats-tile-label {
    color: var(--ztc-text-text-6);
    font-size: 12px;
    font-weight: var(--ztc-weight-medium);
  }

  .calc-stats-tile-value {
    color: var(--ztc-text-text-5);
    font-feature-settings: "tnum";
    font-size: 24px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--ztc-weight-bold);
    line-height: 1.2;
    margin-top: 4px;
  }

  .calc-stats-tile-sub {
    color: var(--ztc-text-text-6);
    font-size: 11px;
    margin-top: 2px;
  }

  .calc-stats-charts {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
  }

  .calc-stats-chart {
    background: var(--ztc-text-text-1);
    border: 1px solid var(--ztc-border-border-1);
    border-radius: 4px;
    padding: 12px 8px 6px;
  }

  .calc-stats-wide {
    margin-bottom: 18px;
  }

  .calc-stats-chart-title {
    color: var(--ztc-text-text-6);
    font-size: 12px;
    font-weight: var(--ztc-weight-bold);
    padding: 0 8px 8px;
  }

  .calc-stats-box {
    height: 200px;
  }

  .calc-stats-box-tall {
    height: 300px;
  }

  .calc-stats-table {
    overflow-x: auto;
  }

  .calc-stats-table table {
    border-collapse: collapse;
    width: 100%;
  }

  .calc-stats-table th,
  .calc-stats-table td {
    border-bottom: 1px solid var(--ztc-border-border-1);
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
  }

  .calc-stats-table th {
    color: var(--ztc-text-text-6);
    font-size: 12px;
    font-weight: var(--ztc-weight-bold);
  }

  .calc-stats-table td {
    color: var(--ztc-text-text-5);
    font-size: var(--ztc-font-size-font-s14);
    transition: background .12s ease;
  }

  /* Подсветка строки под курсором — в длинной таблице легко потерять
     строку глазами. Работает и в сводке, и в окне записей: разметка
     таблиц общая. */
  .calc-stats-table tbody tr:hover td {
    background: var(--ztc-bg-bg-1);
  }

  .calc-stats-table td.num {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

  .calc-stats-empty {
    color: var(--ztc-text-text-6);
    font-size: var(--ztc-font-size-font-s16);
    padding: 18px 0;
  }

  /* Название города в таблице — кнопка: открывает окно с его
     записями. */
  .calc-stats-city {
    background: none;
    border: 0;
    border-bottom: 1px dashed var(--ztc-border-border-2);
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-align: left;
    transition: color .15s ease, border-color .15s ease;
  }

  .calc-stats-city:hover {
    border-bottom-color: transparent;
    color: var(--ztc-bg-bg-3);
  }

  /* Окно с записями. Живёт в конце body, поэтому ни прокрутка
     таблицы, ни контексты наложения темы ему не мешают. */
  .calc-modal {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
  }

  .calc-modal-backdrop {
    background: rgba(10, 20, 30, .55);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
  }

  .calc-modal-window {
    background: var(--ztc-text-text-1);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(9, 20, 32, .28);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    max-width: 1400px;
    position: relative;
    width: 100%;
  }

  .calc-modal-head {
    align-items: flex-start;
    border-bottom: 1px solid var(--ztc-border-border-1);
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 18px;
  }

  .calc-modal-title {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    font-family: var(--ztc-family-font1);
    font-size: 18px;
    font-weight: var(--ztc-weight-bold);
    gap: 10px;
    line-height: 1.2;
  }

  .calc-modal-note {
    color: var(--ztc-text-text-6);
    font-size: 12px;
    font-weight: var(--ztc-weight-regular);
  }

  .calc-modal-close {
    background: none;
    border: 0;
    color: var(--ztc-text-text-6);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0 4px;
    transition: color .15s ease;
  }

  .calc-modal-close:hover {
    color: var(--ztc-text-text-5);
  }

  /* Отступы сверху и снизу отдаём липким строкам: иначе в этих полосах
     видно прокручиваемую таблицу. */
  .calc-modal-body {
    overflow: auto;
    padding: 0 18px;
  }

  /* Прокручивается само окно: вложенный скроллер внутри скроллера
     ведёт себя непредсказуемо. */
  .calc-modal-body .calc-stats-table {
    overflow: visible;
  }

  /* Шапка и фильтры держатся сверху при прокрутке списка. */
  .calc-modal-body thead th {
    background: var(--ztc-text-text-1);
    position: sticky;
    z-index: 2;
  }

  .calc-modal-body thead tr:first-child th {
    top: 0;
  }

  /* top строке фильтров проставляет скрипт по фактической высоте
     заголовков: при другом шрифте или масштабе число не угадать. */
  .calc-modal-body .calc-stats-filter-row th {
    top: 38px;
  }

  /* Колонок здесь вдвое больше, чем в сводке, поэтому ужимаем
     отступы и минимальную ширину — иначе список уезжает вбок. */
  .calc-modal-body th,
  .calc-modal-body td {
    padding: 8px 8px;
  }

  .calc-modal-body .calc-stats-filter-row th {
    min-width: 124px;
  }

  /* Счётчик и сброс держим на виду: список длинный, скроллить
     двести строк ради кнопки незачем. */
  .calc-modal-body .calc-stats-foot {
    background: var(--ztc-text-text-1);
    bottom: 0;
    padding: 10px 0 14px;
    position: sticky;
    z-index: 2;
  }

  .calc-modal-body .calc-stats-filter select {
    padding-left: 8px;
    padding-right: 22px;
  }

  @media (max-width: 767px) {
    .calc-modal {
      padding: 10px;
    }

    .calc-modal-head {
      padding: 12px 12px 10px;
    }

    .calc-modal-body {
      padding: 0 12px;
    }
  }

  @media (max-width: 1100px) {
    .calc-stats-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calc-stats-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 700px) {
    .calc-stats-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-stats-charts { grid-template-columns: minmax(0, 1fr); }
    .calc-stats-box { height: 180px; }
    .calc-stats-box-tall { height: 260px; }
  }

  /* Строка быстрых фильтров под шапкой таблицы. Эти списки создаются
     скриптом уже после того, как тема подменила селекты плагином, —
     значит остаются обычными и выглядят так, как здесь задано. */
  /* Заголовки и фильтры читаются как одна шапка: разделительная линия
     нужна только под ними, а не между. Без отступа сверху список
     упирался прямо в эту линию. */
  .calc-stats-table thead tr:first-child th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .calc-stats-filter-row th {
    border-bottom: 1px solid var(--ztc-border-border-1);
    padding: 4px 12px 14px;
  }

  .calc-stats-filter-row select,
  .calc-stats-filter-row .nice-select {
    background: var(--ztc-bg-bg-1);
    border: 1px solid var(--ztc-border-border-2);
    border-radius: 4px;
    color: var(--ztc-text-text-5);
    cursor: pointer;
    float: none;
    font-family: var(--ztc-family-font1);
    font-size: 12px;
    font-weight: var(--ztc-weight-medium);
    height: auto;
    line-height: 20px;
    min-height: 32px;
    padding: 5px 24px 5px 8px;
    width: 100%;
  }

  /* колонка не должна сжиматься под фильтр со стрелками сортировки */
  .calc-stats-filter-row th {
    min-width: 160px;
  }

  .calc-stats-filter-cell {
    align-items: center;
    display: flex;
    gap: 6px;
  }

  .calc-stats-filter-cell select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .calc-stats-sort {
    display: flex;
    flex: 0 0 auto;
  }

  .calc-stats-sort button {
    align-items: center;
    background: none;
    border: 1px solid var(--ztc-border-border-2);
    border-radius: 4px;
    color: var(--ztc-text-text-6);
    cursor: pointer;
    display: flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    width: 28px;
  }

  .calc-stats-sort button svg {
    display: block;
    height: 15px;
    width: 15px;
  }

  /* колонка без фильтра — только кнопка сортировки */
  .calc-stats-filter-cell.is-sort-only {
    justify-content: flex-start;
  }

  .calc-stats-sort button:hover {
    background: var(--ztc-bg-bg-1);
    color: var(--ztc-text-text-5);
  }

  .calc-stats-sort button.is-active {
    background: var(--ztc-bg-bg-3);
    color: var(--ztc-text-text-5);
  }

  .calc-stats-foot {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: space-between;
    padding: 12px 12px 0;
  }

  .calc-stats-reset {
    align-items: center;
    background: none;
    border: 1px solid var(--ztc-border-border-2);
    border-radius: 4px;
    color: var(--ztc-text-text-5);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--ztc-family-font1);
    font-size: 12px;
    font-weight: var(--ztc-weight-bold);
    gap: 7px;
    padding: 8px 14px;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
  }

  .calc-stats-reset svg {
    height: 14px;
    width: 14px;
  }

  .calc-stats-reset:hover:not(:disabled) {
    background: var(--ztc-bg-bg-1);
    border-color: var(--ztc-text-text-6);
  }

  .calc-stats-reset:disabled {
    cursor: default;
    opacity: .45;
  }

  .calc-stats-filter-row .nice-select .list {
    width: 100%;
  }

  .calc-stats-filter-row select:focus {
    border-color: var(--ztc-bg-bg-3);
    box-shadow: 0 0 0 3px rgba(255, 208, 40, 0.24);
    outline: none;
  }

  .calc-stats-counter {
    color: var(--ztc-text-text-6);
    font-size: 12px;
  }

  .calc-stats-counter.is-filtered {
    color: var(--ztc-text-text-5);
    font-weight: var(--ztc-weight-bold);
  }

/* End */


/* Start:/toolse/calculator/field-settings.css?17902023895443*/
/* Shared field settings for the website calculator and PWA. */
html.calc-settings-open { overflow: hidden; }
.calc-settings-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--app-line, #dce1e6);
  border-radius: 6px;
  background: transparent;
  color: var(--app-ink, #142637);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.calc-settings-toggle svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.calc-settings-toggle:hover {
  border-color: #ffd028;
  background: #ffd028;
  color: #142637;
}

.calc-settings-dialog {
  --app-orange: #ffd028;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  width: min(660px, calc(100% - 32px));
  max-width: 660px;
  max-height: calc(100vh - 32px);
  max-height: min(780px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--app-line, #dce1e6);
  border-radius: 12px;
  background: var(--app-surface, #fff);
  color: var(--app-ink, #142637);
  box-shadow: 0 24px 80px rgba(9, 20, 32, .28);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.calc-settings-dialog[open] {
  display: flex;
}

.calc-settings-dialog::backdrop {
  background: rgba(10, 20, 30, .6);
}

.calc-settings-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 12px;
}

.calc-settings-head h2 {
  min-width: 0;
  margin: 0;
  color: var(--app-ink, #142637);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.calc-settings-close {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--app-ink, #142637);
  cursor: pointer;
}

.calc-settings-close svg {
  display: block;
  width: 22px;
  height: 22px;
}

.calc-settings-close:hover {
  background: var(--app-surface-raised, #f1f4f6);
}

.calc-settings-dialog .calc-settings-description {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 24px 16px;
  color: var(--app-muted, #606b78);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.calc-settings-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 24px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.calc-settings-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calc-settings-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 62px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--app-line, #dce1e6);
  border-radius: 8px;
  color: var(--app-ink, #142637);
  cursor: pointer;
}

.calc-settings-option:not(.is-required):hover {
  background: var(--app-surface-raised, #f1f4f6);
}

.calc-settings-option.is-required {
  background: var(--app-surface-raised, #f1f4f6);
  cursor: default;
}

.calc-settings-option input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: #ffd028;
  cursor: pointer;
}

.calc-settings-option input[type="checkbox"]:disabled {
  opacity: .7;
  cursor: default;
}

.calc-settings-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.calc-settings-option-copy small {
  color: var(--app-muted, #606b78);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.calc-settings-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--app-line, #dce1e6);
}

.calc-settings-done {
  min-width: 112px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #ffd028;
  border-radius: 6px;
  background: #ffd028;
  color: #142637;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.calc-settings-done:hover {
  border-color: #f1bf16;
  background: #f1bf16;
}

.calc-settings-toggle:focus-visible,
.calc-settings-dialog button:focus-visible,
.calc-settings-option input[type="checkbox"]:focus-visible {
  outline: 3px solid #b18800;
  outline-offset: 3px;
}

.calculator-fields .calc-field[hidden] {
  display: none;
}

@media (max-width: 575px) {
  .calc-settings-dialog {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .calc-settings-head {
    padding: 16px 16px 10px;
  }

  .calc-settings-head h2 {
    font-size: 20px;
  }

  .calc-settings-dialog .calc-settings-description {
    padding: 0 16px 14px;
  }

  .calc-settings-body {
    padding: 4px 16px 16px;
  }

  .calc-settings-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .calc-settings-option {
    min-height: 56px;
  }

  .calc-settings-footer {
    padding: 12px 16px;
  }

  .calc-settings-done {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calc-settings-toggle {
    transition: none;
  }
}

/* End */


/* Start:/toolse/calculator/estimate-export.css?17901891282560*/
/* Shared by the website calculator and its PWA workspace. */
.calculator-result > .calculator-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.calculator-result > .calculator-card-head h3 { flex: 1; min-width: 0; }
.calc-estimate-download {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.calc-estimate-download svg { display: block; width: 22px; height: 22px; }
.calc-estimate-download:not(:disabled):is(:hover, :focus-visible) { background: var(--ztc-bg-bg-3); border-color: var(--ztc-bg-bg-3); color: #172234; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ztc-bg-bg-3) 18%, transparent); }
.calc-estimate-download:focus-visible { outline: 3px solid var(--ztc-bg-bg-3); outline-offset: 3px; }
.calc-estimate-download:disabled { opacity: .55; cursor: wait; }
.calculator-result .result-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(84px, 28%);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.result-price-copy { min-width: 0; align-self: center; padding: 22px 20px; }
.result-price-copy > span {
  display: block;
  color: var(--ztc-text-text-5);
  font-weight: var(--ztc-weight-bold, 700);
  line-height: 1.4;
}
.result-price-copy strong { margin-bottom: 0; }
.result-price-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  padding: 18px 12px;
  background: transparent;
}
.result-price-brand img {
  display: block;
  width: min(100%, 88px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: brightness(0) invert(.45);
  opacity: .22;
}
.calculator-result .calc-estimate-status { margin: 14px 0 0; color: #ffcf9e; font-size: 13px; line-height: 1.5; }
.calculator-result.calc-estimate-capture,
.calculator-result.calc-estimate-capture * { animation: none !important; transition: none !important; }
.calc-estimate-capture :is(.calc-estimate-download, .calc-estimate-status) { display: none !important; }
.calc-estimate-capture .result-lines strong { height: auto; overflow: visible; }
@media (max-width: 575px) {
  .result-price-copy { padding: 20px 16px; }
  .calculator-result .result-price strong { font-size: 32px; }
  .result-price-brand { padding: 16px 10px; }
}

/* End */


/* Start:/local/templates/f3dp/template_styles.css?17898126474513*/
/* Трёхколоночный вывод accordion внутри одной колонки */
.accordion-three-cols {
  display: flex;
  flex-wrap: wrap;
}
.accordion-three-cols .three-col-item {
  width: 33.3333%;
  box-sizing: border-box;
  padding: 0 10px 20px 10px;
}
@media (max-width: 991px) {
  .accordion-three-cols .three-col-item {
    width: 100%;
    padding: 0 0 20px 0;
  }
}


/* --- Заголовок страницы тегом h1 ---------------------------------
   Тема оформляет только .heading4 h2, поэтому на страницах главный
   заголовок стоял вторым уровнем, а h1 в документе не было вовсе. Повторяем
   те же правила для h1, чтобы тег можно было менять без правок темы. */
.heading4 h1 {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s44);
  line-height: var(--ztc-font-size-font-s54);
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-5);
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .heading4 h1 {
    font-size: var(--ztc-font-size-font-s32);
    line-height: var(--ztc-font-size-font-s42);
  }
}

/* Заголовок в мобильном меню — был h3 и первым в структуре заголовков
   всего сайта, хотя меню скрыто. Теперь это обычный абзац с тем же видом. */
.allmobilesection .single-footer .allmobile-title {
  font-family: Figtree, sans-serif;
  font-size: 24px;
  line-height: 24px;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 0;
  padding: 0;
}

/* --- Хлебные крошки ------------------------------------------- */
.f3-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin: 0 0 18px;
  font-family: var(--ztc-family-font1);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ztc-text-text-6);
}
.f3-crumbs a {
  color: var(--ztc-text-text-6);
  text-decoration: none;
  transition: color .2s;
}
.f3-crumbs a:hover { color: var(--ztc-text-text-5); }
.f3-crumbs .sep { opacity: .45; }
.f3-crumbs .current { color: var(--ztc-text-text-5); font-weight: var(--ztc-weight-medium); }
@media (max-width: 767px) {
  .f3-crumbs { font-size: 13px; margin-bottom: 14px; }
}

/* Блоки .heading2 — то же самое: правила темы написаны на h2, повторяем
   их для h1 один в один, включая мобильный вариант и цвет заголовка
   на тёмной секции контактов. */
.heading2 h1 {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s28);
  line-height: var(--ztc-font-size-font-s32);
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-3);
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .heading2 h1 {
    font-size: var(--ztc-font-size-font-s32);
    line-height: var(--ztc-font-size-font-s42);
  }
}
.contact1-section-area .contact-header-area h1,
.contact2-section-area .contact-header-area h1 {
  color: var(--ztc-text-text-1);
}

/* Класс .h2 из bootstrap задаёт свой нижний отступ, а тема обнуляет его
   только для голых тегов. Возвращаем ноль, как было у прежнего h2. */
h1.tg-element-title.h2 { margin-bottom: 0; }


/* Мобильная шапка ---------------------------------------------------------
   Была ростом в сто пикселей — восьмая часть экрана телефона под логотип.
   Уменьшаем и прячем её, когда листают вниз: при движении вверх шапка
   возвращается сразу, не дожидаясь верха страницы. */
@media (max-width: 991px) {
  .mobile-header {
    padding: 10px 0;
    transition: transform .28s ease;
    will-change: transform;
  }

  .mobile-header .mobile-logo img {
    height: 34px;
  }

  /* Высоту ряда задаёт не картинка, а надпись: 44 px с интерлиньяжем 66 */
  .mobile-header .mobile-logo a {
    font-size: 32px;
    line-height: 42px;
  }

  .mobile-header.is-hidden {
    transform: translateY(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-header {
    transition: none;
  }
}

/* End */
/* /toolse/calculator/style.css?178984174934584 */
/* /toolse/calculator/field-settings.css?17902023895443 */
/* /toolse/calculator/estimate-export.css?17901891282560 */
/* /local/templates/f3dp/template_styles.css?17898126474513 */
