  /* 🔧 Глобальные классы */
  .font-sm {
    font-size: 0.85rem;
  }

  .font-md {
    font-size: 1rem;
  }

  .font-lg {
    font-size: 1.25rem;
  }

  .bold {
    font-weight: bold;
  }

  .center {
    text-align: center;
  }

  body {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
  }

  .container {
    padding-left: 5px;
    padding-right: 5px;
  }

  body h5 {
    font-weight: bold;
  }

  /* 🟩 Заголовок */
  .header-section {
    background-color: #00a24f;
    color: white;
    padding: 12px;
    border-radius: 0.5rem 0.5rem 0 0;
  }

  .header-section h4 {
    margin-bottom: 5px;
    font-weight: bold;
  }

  /* 🔹 Новый стиль как в калькуляторе */
  .lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* 🔹 Переключатель языка — как на главной */
  .lang-toggle-btn {
    background: #00a24f;
    border: 0px solid #00a24f;
    border-radius: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    gap: 6px;
    color: #fff;
    padding: 6px 10px;
    transition: all 0.25s ease;
  }

  .lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }

  /* ✅ Без фильтра — иконка цветная, не инвертированная */
  .lang-icon {
    width: 18px;
    height: 18px;
    display: block;
    filter: none;
  }

  /* 🏠 Кнопка "Домой" */
  .home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .home-btn:hover {
    transform: scale(1.1);
  }

  .home-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
  }

  /* 📘 Инструкция */
  .instructions {
    font-size: 1rem;
    margin-bottom: -1rem;
    margin-top: -0.5rem;
  }

  /* 🧮 Ввод данных */
  .data-input {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Ensures items are centered on their line */
    gap: 16px;
  }

  /* 📌 Поле ввода */
  .data-input .col {
    /* Stricter flex control: 0 grow, 0 shrink, fixed basis */
    flex: 0 0 calc(33.333% - 10.67px);
    /* 3 columns desktop, with gap calculation */
    max-width: calc(33.333% - 10.67px);
    /* Ensures max width for consistent sizing */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    min-height: 100px;
  }

  /* Add a pseudo-element to help center the last row if it's incomplete */
  .data-input::after {
    content: "";
    flex: auto;
    /* This pseudo-element takes up remaining space, pushing preceding items to center */
  }

  /* Название поля */
  .data-input label {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2.4em;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  /* Само поле */
  .data-input .form-control,
  .data-input .form-select {
    font-size: 1rem;
    text-align: center;
    padding: 8px 10px;
    width: 100%;
    height: 38px;
    box-sizing: border-box;
  }

  .payment-title {
    margin-top: -0.5rem;
    /* 👈 нужный отступ сверху */
    margin-bottom: 1rem;
    /* аккуратный отступ снизу */
    font-weight: bold;
  }

  /* 📊 Таблица результатов */
  .result-table {
    font-size: 1.00rem;
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 0px;
    padding-right: 0px;
    table-layout: fixed;
    width: 100%;
  }

  .result-table th,
  .result-table td {
    text-align: center;
    vertical-align: middle;
    padding: 6px;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .result-table thead th {
    background-color: #00a24f;
    color: white;
    font-weight: bold;
  }

  .result-container {
    padding-left: 0px;
    padding-right: 0px;
  }

  /* Индивидуальные ширины колонок */
  .result-table th:nth-child(1),
  .result-table td:nth-child(1) {
    width: 15%;
  }

  .result-table th:nth-child(2),
  .result-table td:nth-child(2) {
    width: 28%;
  }

  .result-table th:nth-child(3),
  .result-table td:nth-child(3) {
    width: 28%;
  }

  .result-table th:nth-child(4),
  .result-table td:nth-child(4) {
    width: 29%;
  }

  /* 📈 Сводка */
  .result-summary {
    font-size: 1.05rem;
    font-weight: bold;
    color: #00a24f;
    margin-top: 1rem;
  }

  /* 📎 Примечания и дисклеймер */
  .notes,
  .disclaimer {
    font-size: 0.95rem;
    margin-top: 2rem;
  }

  .notes ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
  }

  /* 🧷 Кнопки */
  .export-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
  }

  .save-btn,
  .feedback-btn,
  .reset-btn {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background-color: #f0f0f0;
    color: #028040;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
  }

  .save-btn:hover,
  .feedback-btn:hover,
  .reset-btn:hover {
    background-color: #dcdcdc;
  }

  .save-btn:active,
  .feedback-btn:active,
  .reset-btn:active {
    transform: scale(0.89);
  }

  /* 🗳️ Блок голосования */
  .vote-section {
    margin-top: 5px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
  }

  .vote-question {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .vote-btn {
    font-size: 12px;
    font-weight: bold;
    width: 70px;
    /* ✅ одинаковая ширина */
    height: 35px;
    /* ✅ одинаковая высота */
    padding: 0;
    /* ✅ убрать внутренние отступы */
    border-radius: 6px;
    border: none;
    background-color: #f0f0f0;
    color: #028040;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    /* ✅ включаем flex */
    justify-content: center;
    /* ✅ центр по горизонтали */
    align-items: center;
    /* ✅ центр по вертикали */
    text-align: center;
    /* на всякий случай */
  }

  .vote-btn:hover {
    background-color: #dcdcdc;
  }

  .vote-btn:active {
    transform: scale(0.95);
  }

  .vote-btn.active {
    background-color: #00a24f;
    color: white;
  }

  .small-link {
    font-size: 0.6rem;
    color: #888;
    text-decoration: underline;
    transition: color 0.2s ease;
  }

  .small-link:hover {
    color: #555;
  }

  .footer-text {
    color: #dcdcdc;
    padding-top: 12px;
    padding-bottom: 0px;
    font-size: 11px;
  }

  .footer-text a {
    color: #dcdcdc;
    /* тот же цвет, что у текста */
    text-decoration: none;
    /* убрать подчёркивание */
  }

  .footer-text a:hover {
    text-decoration: underline;
    /* если хочешь подсветку при наведении */
    color: #00a24f;
    /* например, белый при наведении */
  }

  /* 🆕 Двухколоночный макет */
  .layout-split {
    margin-top: 20px;
  }

  .layout-split .col-md-4 {
    border-right: 1px solid #eee;
    /* отделяем форму */
    padding-right: 20px;
  }

  .layout-split .col-md-8 {
    padding-left: 20px;
  }

  /* 🔹 Футер */
  footer {
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: #555;
  }

  footer a {
    color: #00a24f;
    text-decoration: none;
  }

  footer a:hover {
    text-decoration: underline;
  }

  .footer-separator {
    color: #00a24f;
  }

  footer .social-links {
    justify-content: center;
    margin-top: 10px;
  }

  footer p {
    margin: 4px 0;
  }

  .footer-version {
    color: #dcdcdc;
    padding-top: 10px;
    padding-bottom: 0px;
    font-size: 11px;
    text-align: left;
    /* 👈 добавляем */
    width: 100%;
    /* чтобы заняло всю ширину */
    margin-left: 0;
    /* обнуляем возможные отступы */
  }

  .footer-version a {
    color: #dcdcdc;
    /* тот же цвет, что у текста */
    text-decoration: none;
    /* убрать подчёркивание */
  }

  .footer-version a:hover {
    text-decoration: underline;
    /* если хочешь подсветку при наведении */
    color: #00a24f;
    /* например, белый при наведении */
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
  }

  .social-icon {
    width: 28px;
    /* размер иконки */
    height: 28px;
    transition: transform 0.2s ease;
  }

  .social-icon:hover {
    transform: scale(1.1);
    /* легкий эффект при наведении */
  }

  .new-tag {
    position: relative;
    display: inline-block;
    /* ключевой момент */
    margin-left: 0px;
    /* небольшой отступ справа от "Выплаты" */
    background: rgba(234, 67, 53, 0);
    color: white;
    font-size: 18px;
    padding: 1px 1px;
    border-radius: 0px;
    margin-left: 6px;
    cursor: default;
    font-weight: bold;
    top: -1px;
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.2);
    }

    100% {
      transform: scale(1);
    }
  }

  .new-tag::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 0%;
    transform: translateX(-80%);
    background: rgba(51, 51, 51, 0.75);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    white-space: normal;
    /* разрешаем перенос */
    max-width: 800px;
    /* ширина тултипа */
    text-align: center;
    z-index: 9999;
    overflow-wrap: break-word;
    /* перенос слов только если не помещаются */
  }

  .new-tag:hover::after {
    opacity: 1;
  }

  /* --- Спиннер для расчётов --- */
  .calc-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(236, 251, 231, 0.33);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .calc-spinner .loader {
    border: 6px solid #e6e6e6;
    border-top: 6px solid #00A24F;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    animation: spin 0.9s linear infinite;
  }

  @keyframes spin {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  /* 📱 Мобильная адаптация */
  @media (min-width: 380px) and (max-width: 479px) {
    .header-section {
      gap: 1px;
      text-align: left;
    }

    .instructions {
      font-size: 0.85rem;
    }

    .data-input .col {
      flex: 0 0 calc(50% - 8px);
      /* 2 columns mobile, with gap calculation */
      max-width: calc(50% - 8px);
      /* Ensures max-width for consistency */
      min-width: 75px;
      min-height: 75px;
    }

    .data-input label {
      font-size: 0.85rem;
      line-height: 1.0;
      min-height: 2.0em;
    }

    .data-input .form-control,
    .data-input .form-select {
      font-size: 0.85rem;
      height: 30px;
      padding: 2px 2px;
    }

    .payment-title {
      margin-top: -0.5rem;
      /* 👈 нужный отступ сверху */
      margin-bottom: 1rem;
      /* аккуратный отступ снизу */
      font-weight: bold;
    }

    .result-table {
      font-size: 0.8rem;
    }

    .result-summary {
      font-size: 0.85rem;
    }

    .notes,
    .disclaimer {
      font-size: 0.85rem;
    }

    .export-buttons {
      flex-direction: column;
      align-items: center;
    }

    .export-buttons .save-btn,
    .export-buttons .feedback-btn,
    .export-buttons .reset-btn {
      width: 100%;
      max-width: 220px;
      font-size: 13px;
    }

    /* 🆕 на маленьких убираем разделение */
    .layout-split .col-md-4,
    .layout-split .col-md-8 {
      border: none;
      padding: 0;
    }
  }

  /* 📱 Мобильная адаптация */
  @media (max-width: 379px) {
    .header-section {
      flex-direction: column;
      gap: 20px;
      text-align: center;
    }

    .instructions {
      font-size: 0.85rem;
    }

    .data-input .col {
      flex: 0 0 calc(50% - 8px);
      /* 2 columns mobile, with gap calculation */
      max-width: calc(50% - 8px);
      /* Ensures max-width for consistency */
      min-width: 75px;
      min-height: 75px;
    }

    .data-input label {
      font-size: 0.85rem;
      line-height: 1.0;
      min-height: 2.0em;
    }

    .data-input .form-control,
    .data-input .form-select {
      font-size: 0.8rem;
      height: 30px;
      padding: 2px 2px;
    }

    .result-container {
      padding-left: 0px;
      padding-right: 0px;
      margin-left: -1.25rem;
      margin-right: -1.25rem;
    }

    .result-table {
      font-size: 0.7rem;
    }

    .result-summary {
      font-size: 0.85rem;
    }

    .notes,
    .disclaimer {
      font-size: 0.85rem;
    }

    .export-buttons {
      flex-direction: column;
      align-items: center;
    }

    .export-buttons .save-btn,
    .export-buttons .feedback-btn,
    .export-buttons .reset-btn {
      width: 100%;
      max-width: 220px;
      font-size: 13px;
    }

    /* 🆕 на маленьких убираем разделение */
    .layout-split .col-md-4,
    .layout-split .col-md-8 {
      border: none;
      padding: 0;
    }
  }