.bwt-pool-calculator,
    .bwt-pool-calculator * {
      box-sizing: border-box;
    }

    /* ==========================================================
       ОСНОВНОЙ КОНТЕЙНЕР
       Padding отсутствуют на всех разрешениях.
    ========================================================== */
    .bwt-pool-calculator {
      width: 100%;
      max-width: 1340px;
      margin: 0 auto;
      
      
      color: var(--bwt-dark-blue);
      background: var(--bwt-white);
      font-size: 16px;
      line-height: 1.4;
    }

    /* ==========================================================
       ВВОДНЫЙ БЛОК / HERO
    ========================================================== */
    .bwt-calc-hero {
      width: 100%;
      margin: 0 0 30px;
    }

    /* Главный заголовок калькулятора */
    .bwt-calc-title {
      margin: 0;
      max-width: 940px;
      color: var(--bwt-dark-blue);
      
      font-size: 32px;
      line-height: 1.3;
      font-weight: 700;
    }

    /* Каждая часть заголовка всегда начинается с новой строки */
    .bwt-calc-title-line {
      display: block;
    }
    .bwt-block-descr {
      color: var(--bwt-muted);
      font-size: 12px;
      line-height: 130%;
      margin-bottom: 18px;
      max-width: 416px;
    }
    .bwt-calc-subtitle {
      max-width: 940px;
      margin: 14px 0 0;
      
      font-size: 16px;
      line-height: 1.5;
      font-weight: 400;
    }

    .bwt-calc-subtitle-gray {
      color: #666B6E;
    }

    .bwt-calc-subtitle-pink {
      color: var(--bwt-pink);
    }

    /* ==========================================================
       ОСНОВНАЯ КАРТОЧКА КАЛЬКУЛЯТОРА
    ========================================================== */
    .bwt-calc-shell {
      width: 100%;
      border: 1px solid var(--bwt-gray);
      border-radius: 10px;
      background: var(--bwt-white);
      box-shadow: 1px 2px 10px 0 rgba(0, 23, 75, 0.10);
    }

    /* Сетка: параметры слева, результат справа */
    .bwt-calc-body {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
      align-items: stretch;
    }

    /* Левая колонка — ввод параметров */
    .bwt-calc-panel {
      display: flex;
      flex-direction: column;
      padding: 30px;
      border-right: 1px solid #00174B29;
      background: var(--bwt-white);
    }

    .bwt-block-title {
      margin: 0 0 20px;
      color: var(--bwt-dark-blue);
      
      font-size: 24px;
      line-height: 1.3;
      font-weight: 700;
    }

    /* Сетка полей длины / ширины / глубины */
    .bwt-field-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin-bottom: 16px;
    }

    .bwt-field {
      display: block;
      min-width: 0;
    }

    .bwt-label {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 8px;
      color: var(--bwt-dark-blue);
      
      font-size: 14px;
      line-height: 1.4;
      font-weight: 700;
    }

    .bwt-label span {
      color: var(--bwt-muted);
      font-weight: 400;
    }

    .bwt-input,
    .bwt-locked-input {
      width: 100%;
      height: 54px;
      padding: 0 14px;
      border: 1px solid var(--bwt-gray);
      border-radius: 10px;
      background: var(--bwt-white);
      color: var(--bwt-dark-blue);
      
      font-size: 16px;
      line-height: 1.3;
      font-weight: 400;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      -moz-appearance: textfield;
    }
    .bwt-locked-input {
      color: var(--bwt-muted);
    }
    .bwt-input::-webkit-outer-spin-button,
    .bwt-input::-webkit-inner-spin-button {
      margin: 0;
      -webkit-appearance: none;
    }

    .bwt-input:focus {
      border-color: var(--bwt-dark-blue);
      box-shadow: 0 0 0 1px var(--bwt-dark-blue);
    }

    /* ==========================================================
       ЛОКАЛЬНАЯ ВАЛИДАЦИЯ ОБЯЗАТЕЛЬНЫХ ПОЛЕЙ
       Ошибка показывается рядом с конкретным полем,
       без общего сервисного уведомления справа.
    ========================================================== */
    .bwt-input.is-error {
      border-color: var(--bwt-pink);
      box-shadow: 0 0 0 1px var(--bwt-pink);
    }

    .bwt-field-error {
      display: none;
      width: 100%;
      margin: 8px 0 0;
      color: var(--bwt-pink);
      
      font-size: 14px;
      line-height: 1.4;
      font-weight: 400;
    }

    .bwt-field-error.is-visible {
      display: block;
    }

    .bwt-locked-input {
      display: flex;
      align-items: center;
      background: var(--bwt-light-gray);
    }

    /* Подсказка под полем.
       Ширина чуть меньше поля.
       Перенос по одной букве запрещён. */
    .bwt-helper {
      width: 92%;
      max-width: 360px;
      margin: 8px 0 0;
      color: var(--bwt-muted);
      
      font-size: 14px;
      line-height: 1.4;
      font-weight: 400;
      word-break: normal;
      overflow-wrap: normal;
      hyphens: none;
    }

    .bwt-left-bottom {
      margin-top: auto;
      padding-top: 24px;
    }

    .bwt-disclaimer {
      margin: 0;
      color: var(--bwt-muted);
      padding: 22px 16px 16px;
      border-radius: 10px;
      font-size: 14px;
      line-height: 1.3;
      font-weight: 400;
      border: 1px solid #00174B29;
    }

    .bwt-action-btn,
    .bwt-secondary-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 40px;
      min-height: 40px;
      padding: 0 20px;
      border: 1px solid var(--bwt-dark-blue);
      border-radius: 8px;
      background: var(--bwt-dark-blue);
      color: var(--bwt-white);
      cursor: pointer;
      text-decoration: none;
      
      font-size: 16px;
      line-height: 1.3;
      font-weight: 400;
      white-space: nowrap;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .bwt-action-btn {
      width: 100%;
      margin-top: 18px;
    }

    .bwt-action-btn:hover,
    .bwt-secondary-btn:hover {
      border-color: var(--bwt-dark-blue);
      background: var(--bwt-white);
      color: var(--bwt-dark-blue);
    }

    /* Правая колонка — результат расчёта */
    .bwt-result-panel {
      display: flex;
      flex-direction: column;
      padding: 30px;
      background: var(--bwt-light-gray);
    }

    .bwt-result-top {
      border-bottom: 1px solid rgba(217, 217, 217, 0.25);
    }

    .bwt-result-label {
      margin: 0 0 10px;
      color: var(--bwt-muted);
      
      font-size: 14px;
      line-height: 1.3;
      font-weight: 400;
    }

    .bwt-price {
      margin: 0;
      color: var(--bwt-dark-blue);
      
      font-size: 32px;
      line-height: 1.3;
      font-weight: 700;
    }

    .bwt-price.is-pink {
      color: var(--bwt-pink);
    }

    /* ==========================================================
       ИЗЯЩНЫЙ АКЦЕНТ НА РЕЗУЛЬТАТЕ ПОСЛЕ РАСЧЁТА
       Без изменения размеров, высоты и геометрии блока.
       Эффект используется только на планшетах и мобильных.
    ========================================================== */
    .bwt-result-top {
      scroll-margin-top: 24px;
    }

    /* Цена остаётся на месте — меняется только цвет */
    .bwt-price {
      position: relative;
      display: inline-block;
    }

    /* Тонкая фирменная линия под ценой.
       Она находится абсолютно и не влияет на высоту блока. */
    .bwt-price::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -6px;
      width: 100%;
      height: 2px;
      border-radius: 2px;
      background: linear-gradient(
        90deg,
        var(--bwt-pink) 0%,
        rgba(255, 136, 189, 0.55) 55%,
        rgba(255, 136, 189, 0) 100%
      );
      transform: scaleX(0);
      transform-origin: left center;
      opacity: 0;
      pointer-events: none;
    }

    @keyframes bwt-price-color-accent {
      0% {
        color: var(--bwt-dark-blue);
      }

      35% {
        color: var(--bwt-pink);
      }

      100% {
        color: var(--bwt-dark-blue);
      }
    }

    @keyframes bwt-price-line-accent {
      0% {
        transform: scaleX(0);
        opacity: 0;
      }

      25% {
        transform: scaleX(1);
        opacity: 1;
      }

      70% {
        transform: scaleX(1);
        opacity: 0.8;
      }

      100% {
        transform: scaleX(1);
        opacity: 0;
      }
    }

    @media (max-width: 991px) {
      .bwt-price.is-highlighted {
        animation: bwt-price-color-accent 1.2s ease;
      }

      .bwt-price.is-highlighted::after {
        animation: bwt-price-line-accent 1.2s ease;
      }
    }

    .bwt-status {
      margin-top: 12px;
      color: var(--bwt-dark-blue);
      
      font-size: 14px;
      line-height: 1.5;
      font-weight: 400;
    }

    .bwt-status strong {
      color: var(--bwt-dark-blue);
      font-weight: 700;
    }

    /* Расчётные показатели */
    .bwt-metrics {
      display: grid;
      gap: 0;
      margin: 10px 0;
    }

    .bwt-metric {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      padding: 12px 0;
      border-bottom: 1px solid rgba(217, 217, 217, 0.25);
      color: var(--bwt-muted);
      
      font-size: 14px;
      line-height: 1.4;
      font-weight: 400;
    }

    .bwt-metric strong {
      color: var(--bwt-dark-blue);
      font-size: 16px;
      line-height: 1.4;
      font-weight: 700;
      text-align: right;
    }

    /* Сообщение об ошибке / нестандартных параметрах */
    .bwt-alert {
      display: none;
      margin: 0 0 18px;
      padding: 14px 16px;
      border: 1px solid var(--bwt-pink);
      border-radius: 10px;
      background: var(--bwt-white);
      color: var(--bwt-dark-blue);
      
      font-size: 14px;
      line-height: 1.5;
      font-weight: 400;
    }

    .bwt-alert.is-visible {
      display: block;
    }

    .bwt-technical {
      margin-top: 20px;
      color: #646464;
      
      font-size: 14px;
      line-height: 1.5;
      font-weight: 400;
    }

    .bwt-brief-cta {
      margin-top: auto;
      padding-top: 24px;
    }

    .bwt-brief-text {
      margin: 0 0 14px;
      color: var(--bwt-dark-blue);
      
      font-size: 14px;
      line-height: 1.4;
      font-weight: 400;
    }

    .bwt-brief-btn {
      width: 100%;
      align-self: flex-start;
      border-color: var(--bwt-pink);
      background: var(--bwt-pink);
      color: var(--bwt-dark-blue);
    }

    .bwt-brief-btn:hover {
      border-color: var(--bwt-dark-blue);
      background: var(--bwt-white);
      color: var(--bwt-dark-blue);
    }

    /* ==========================================================
       1200–1459px — контейнер 1170px
    ========================================================== */
    @media (min-width: 1200px) and (max-width: 1459px) {
      .bwt-pool-calculator {
        max-width: 1170px;
      }

      .bwt-calc-title {
        font-size: 28px;
      }

      .bwt-block-title,
      .bwt-result-label {
        font-size: 20px;
      }

      .bwt-price {
        font-size: 28px;
      }
    }

    /* ==========================================================
       992–1199px — контейнер 990px
    ========================================================== */
    @media (min-width: 992px) and (max-width: 1199px) {
      .bwt-pool-calculator {
        max-width: 990px;
      }

      .bwt-calc-title {
        font-size: 26px;
      }

      .bwt-block-title,
      .bwt-result-label {
        font-size: 18px;
      }

      .bwt-price {
        font-size: 26px;
      }

      .bwt-calc-panel,
      .bwt-result-panel {
        padding: 26px;
      }
    }

    /* ==========================================================
       768–991px — планшет, контейнер 640px
    ========================================================== */
    @media (min-width: 768px) and (max-width: 991px) {
      .bwt-pool-calculator {
        max-width: 640px;
      }

      .bwt-calc-title {
        font-size: 26px;
      }

      .bwt-block-title,
      .bwt-result-label {
        font-size: 18px;
      }

      .bwt-price {
        font-size: 26px;
      }

      .bwt-calc-body {
        grid-template-columns: 1fr;
      }

      .bwt-calc-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(217, 217, 217, 0.25);
      }

      .bwt-left-bottom,
      .bwt-brief-cta {
        margin-top: 24px;
        padding-top: 0;
      }
    }


    /* ==========================================================
       ПЛАНШЕТЫ И МОБИЛЬНЫЕ — ДО 991px
       Все кнопки занимают 100% ширины.
       Текст внутри кнопок не переносится.
    ========================================================== */
    @media (max-width: 991px) {
      .bwt-action-btn,
      .bwt-secondary-btn,
      .bwt-brief-btn {
        width: 100%;
        max-width: 100%;
        white-space: nowrap;
      }

      .bwt-brief-btn {
        align-self: stretch;
      }
    }

    /* ==========================================================
       576–767px — мобильный контейнер 540px
    ========================================================== */
    @media (min-width: 576px) and (max-width: 767px) {
      .bwt-pool-calculator {
        max-width: 540px;
      }

      .bwt-calc-title {
        font-size: 24px;
      }

      .bwt-block-title,
      .bwt-result-label {
        font-size: 16px;
      }

      .bwt-price {
        font-size: 24px;
      }

      .bwt-calc-body {
        grid-template-columns: 1fr;
      }

      .bwt-calc-panel {
        padding: 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(217, 217, 217, 0.25);
      }

      .bwt-result-panel {
        padding: 24px;
      }

      .bwt-left-bottom,
      .bwt-brief-cta {
        margin-top: 24px;
        padding-top: 0;
      }
    }

    /* ==========================================================
       425–575px — мобильная версия
    ========================================================== */
    @media (min-width: 425px) and (max-width: 575px) {
      .bwt-pool-calculator {
        width: 100%;
        max-width: 575px;
      }
      .bwt-calc-title {
        font-size: 20px;
      }

      .bwt-block-title,
      .bwt-result-label {
        font-size: 16px;
      }

      .bwt-price {
        font-size: 20px;
      }

      .bwt-calc-body {
        grid-template-columns: 1fr;
      }

      .bwt-calc-panel {
        padding: 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(217, 217, 217, 0.25);
      }

      .bwt-result-panel {
        padding: 20px;
      }

      .bwt-field-grid {
        grid-template-columns: 1fr;
      }

      .bwt-label {
        flex-wrap: wrap;
      }

      .bwt-metric {
        flex-wrap: wrap;
      }

      .bwt-action-btn,
      .bwt-secondary-btn {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
      }

      .bwt-brief-btn {
        width: 100%;
        align-self: stretch;
      }

      .bwt-left-bottom,
      .bwt-brief-cta {
        margin-top: 24px;
        padding-top: 0;
      }
    }

    /* ==========================================================
       320–424px — узкая мобильная версия
    ========================================================== */
    @media (min-width: 320px) and (max-width: 424px) {
      .bwt-pool-calculator {
        width: 100%;
        max-width: 424px;
      }

      .bwt-calc-title {
        font-size: 18px;
      }

      .bwt-block-title,
      .bwt-result-label {
        font-size: 16px;
      }

      .bwt-price {
        font-size: 18px;
      }

      .bwt-calc-body {
        grid-template-columns: 1fr;
      }

      .bwt-calc-panel {
        padding: 20px 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(217, 217, 217, 0.25);
      }

      .bwt-result-panel {
        padding: 20px 16px;
      }

      .bwt-field-grid {
        grid-template-columns: 1fr;
      }

      .bwt-label {
        flex-wrap: wrap;
      }

      .bwt-metric {
        flex-wrap: wrap;
      }

      .bwt-action-btn,
      .bwt-secondary-btn {
        width: 100%;
        max-width: 100%;
        height: 40px;
        min-height: 40px;
        padding: 0 8px;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
      }

      .bwt-brief-btn {
        width: 100%;
        align-self: stretch;
      }

      .bwt-left-bottom,
      .bwt-brief-cta {
        margin-top: 24px;
        padding-top: 0;
      }
    }
    @media(max-width:575px){
      .bwt-calc-hero {
        padding: 0 20px;
      }
    }
    @media(max-width:399px){
      .bwt-action-btn, .bwt-secondary-btn, .bwt-brief-btn {
        white-space: normal;
      }
    }