input[type=radio],input[type=checkbox] {
margin:0px !important;
width:16px;
height:16px;}

.coatingtype {
	display:flex;
	align-items:center;
	gap:6px;
	padding:8px 0px;
	border-radius:6px;
	cursor:pointer;
	background:#fff;
}

.routeparam {
    display: flex;
    gap: 8px;
}

.note {font-size: 1rem;
color: rgba(27, 31, 59, 0.6);
font-weight: 400;
}

.step-block-blur {
  filter: blur(3px);
  pointer-events: none;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.snow-blur {
    filter: blur(3px);
    pointer-events: none;
    opacity: 0.6;
    transition: all 0.3s ease;
}

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    .calccontainer {
      max-width: 1360px;
      width: 100%;
      margin: 0 auto;
      background: #ffffff;
      transition: all 0.2s;
	      border: 1px solid #acb6bc61;
    }

    .header h1 {
      font-size: 2rem;
      font-weight: 700;
      color: #333333;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .header h1 small {
      font-weight: 400;
      font-size: 1rem;
      color: #666666;
      margin-left: 6px;
      background: #f0f7fe;
      padding: 2px 14px;
      border-radius: 30px;
      letter-spacing: 0;
    }
    .header-badge {
      background: #0077be;
      color: #fff;
      font-size: 1rem;
      font-weight: 500;
      padding: 4px 18px;
      border-radius: 40px;
      box-shadow: 0 4px 10px rgba(0, 119, 190, 0.20);
    }

    /* ===== СЕКЦИИ ===== */
    .calcsection {
      background: #ffffff;
      border-radius: 18px;
      padding: 1rem;
      margin-bottom: 24px;
      border: 1px solid #eaeef5;
      transition: 0.15s;
    }
    .calcsection-title {
      font-weight: 600;
      font-size: 1rem;
      color: #333333;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      letter-spacing: 0.2px;
    }
    .calcsection-title .badge {
      background: #f0f7fe;
      color: #0077be;
      font-size: 1rem;
      border-radius: 40px;
      padding: 0 14px;
      line-height: 24px;
      font-weight: 500;
    }
    .calcsection-title .badge-primary {
      background: #0077be;
      color: #fff;
    }

    /* ===== ROW ===== */
    .calcrow {
      display: flex;
      gap: 10px 18px;
      align-items: center;
      flex-wrap: wrap;
    }
    .calcrow label {
      font-size: 1rem;
      font-weight: 600;
      color: #333333;
    }
    .calcrow input,
    .calcrow select {
      padding: 7px 14px;
      border: 1.5px solid #dce1ea;
      border-radius: 999px;
      font-size: 1rem;
      background: #fff;
      transition: 0.2s;
      font-family: inherit;
      color: #333333;
      flex: 0 1 auto;
      margin: 0;
    }
    .calcrow input:focus,
    .calcrow select:focus {
      outline: none;
      border-color: #0077be;
      box-shadow: 0 0 0 4px rgba(0, 119, 190, 0.10), inset 0 1px 3px rgba(0,0,0,0.02);
    }
    .calcrow input[type="number"] {
      max-width: 90px;
    }
    .calcrow input::placeholder {
      color: #aab3c5;
    }

    /* ===== КНОПКИ ===== */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 1px 10px;
      border: none;
      border-radius: 25px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: 0.2s ease;
      background: #f0f4f8;
      color: #333333;
      line-height: 30px;
      font-family: inherit;
      box-shadow: 0 1px 2px rgba(0,0,0,0.02);
      margin: 0;
    }
    .btn:hover {
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }
    .btn:active {
      transform: translateY(0);
    }
    .btn-primary {
      background: #0077be;
      color: #fff;
      margin: 0;
    }
    .btn-primary:hover {
      background: #005f99;
    }
    .btn-success {
      background: #fff;
      color: #09a909;
      margin: 0;
    }
    .btn-success:hover {
      background: #fff;
      color: #0b890b;
      box-shadow: none;
    }
    .btn-danger {
      background: none;
      color: red;
      margin: 0;
    }
    .btn-danger:hover {
      background: #fff;
      color: #b50404;
      box-shadow: none;
      margin: 0;
    }
    .btn-outline {
      background: transparent;
      border: 1.5px solid #dce1ea;
      color: #333333;
      margin: 0;
    }
    .btn-outline:hover {
      background: #f5f8fc;
      border-color: #0077be;
      color: #0077be;
    }
    .btn-sm {
      padding: 2px 12px;
      font-size: 1rem;
      line-height: 26px;
      margin: 0;
    }

    /* ===== ТАБЛИЦА КАБЕЛЕЙ ===== */
    .table-wrap {
      overflow-x: auto;
      margin-top: 6px;
      border-radius: 12px;
      border: 1px solid #eaeef5;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 1rem;
    }
    table th {
      background: #f5f9ff;
      color: #333333;
      padding: 10px 14px;
      text-align: left;
      border-bottom: 1px solid #0077be;
	  font-weight: 600 !important;
    font-size: 1rem !important;
    color: #1e1e23 !important;
    }
    table td {
      padding: 9px 14px !important;
    vertical-align: middle;
    font-size: 1rem !important;
    }
    table tr:last-child td {
      border-bottom: none;
    }
    table tr:hover td {
      background: #f8fbff;
    }
    .editable-cell {
      cursor: pointer;
      border-radius: 6px;
      padding: 2px 8px;
      transition: 0.15s;
      display: inline-block;
    }
    .editable-cell:hover {
      background: #e5f0fa;
    }
    .editable-cell input {
      border: 1.5px solid #0077be;
      border-radius: 6px;
      padding: 2px 8px;
      font-size: 1rem;
      width: 100%;
      min-width: 60px;
      background: #fff;
      font-family: inherit;
      color: #333333;
    }

    /* ===== РАДИО-ГРУППА ===== */
    .radio-group {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      align-items: center;
    }
    .radio-group label {
      font-weight: 400;
      font-size: 1rem;
      min-width: auto;
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      color: #333333;
      padding: 4px 10px 4px 4px;
      border-radius: 30px;
      transition: 0.15s;
    }
    .radio-group label:hover {
      background: #f0f7fe;
    }
    .radio-group input[type="radio"] {
      accent-color: #0077be;
      width: 17px;
      height: 17px;
      margin: 0;
      cursor: pointer;
    }
    .radio-group .radio-label-icon {
      display: inline-block;
      background: #f0f7fe;
      border-radius: 20px;
      padding: 0 10px;
      font-size: 1rem;
      font-weight: 500;
      color: #0077be;
      line-height: 20px;
      margin-left: 2px;
    }

    /* ===== ТАБЛИЦА РЕЗУЛЬТАТОВ ===== */
    .result-table th {
      background: #fff;
      color: #333;
      text-align: center;
      font-size: 1rem;
      padding: 8px 6px;
      font-weight: 500;
    }
    .result-table td {
      text-align: center;
      font-weight: 600;
      font-size: 1rem;
    }
    .result-table .series-name {
      text-align: left;
      font-weight: 600;
      color: #0077be;
      white-space: nowrap;
      padding-left: 8px;
      width: 7%;
    }
    .cell-ok {
      background: #d4edda;
      color: #155724;
      border-radius: 6px;
      font-weight: 600;
    }
    .cell-fail {
      background: #f8d7da;
      color: #721c24;
      border-radius: 6px;
      font-weight: 600;
    }
    .cell-na {
      color: #9aa5b8;
    }

    /* ===== ЛЕГЕНДА ===== */
    .legend {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      margin-top: 16px;
      font-size: 13px;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid #eaeef5;
    }
    .legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 1rem;
    }
    .legend-color {
      width: 22px;
      height: 22px;
      border-radius: 8px;
      border: 1px solid rgba(0,0,0,0.04);
    }
    .legend .max-fill-info {
      color: #666666;
      font-size: 1rem;
      margin-left: auto;
      background: #f0f7fe;
      padding: 2px 14px;
      border-radius: 30px;
    }

    /* ===== FOOTER ===== */
    .footer-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
      padding-top: 18px;
      border-top: 1px solid #eaeef5;
      margin-top: 6px;
      justify-content: flex-end;
    }

    /* ===== МОДАЛКА ===== */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(4px);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }
    .modal-overlay.open {
      display: flex;
    }
    .modal {
      background: #fff;
      border-radius: 24px;
      max-width: 700px;
      width: 94%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 30px 34px;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30);
      animation: modalIn 0.25s ease;
    }
    @keyframes modalIn {
      from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
      }
      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }
    .modal h2 {
      font-size: 22px;
      color: #0077be;
      margin-bottom: 6px;
    }
    .modal .sub {
      color: #666666;
      font-size: 1rem;
      margin-bottom: 18px;
    }
    .modal .table-wrap {
      max-height: 260px;
      overflow-y: auto;
    }
    .modal .table-wrap table th {
      position: sticky;
      top: 0;
      z-index: 2;
      background: #0077be;
      color: #fff;
    }
    .modal-actions {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      justify-content: flex-end;
      flex-wrap: wrap;
    }

    /* ===== HELP ===== */
    .help-text {
      display: none;
      background: #f0f7fe;
      border-left: 4px solid #0077be;
      padding: 16px 20px;
      border-radius: 12px;
      margin-top: 14px;
      font-size: 1rem;
      line-height: 1.7;
      color: #333333;
    }
    .help-text.open {
      display: block;
    }
    .help-text strong {
      color: #0077be;
    }

    /* ===== АДАПТИВ ===== */
    @media (max-width: 768px) {
      .container {
        padding: 18px 14px 24px;
      }

	  .routeparam {
    flex-direction:column;
}
      .header h1 {
        font-size: 20px;
        flex-wrap: wrap;
      }
      .header h1 small {
        font-size: 1rem;
        margin-left: 0;
      }
      .section {
        padding: 14px 14px 18px;
      }
      .row {
        gap: 8px 12px;
      }
      .row input,
      .row select {
        min-width: 80px;
        flex: 1 1 100px;
      }
      .row input[type="number"] {
        max-width: 70px;
      }
      .result-table td,
      .result-table th {
        font-size: 1rem;
        padding: 4px 4px;
      }
      .modal {
        padding: 18px 16px;
      }
      .btn {
        font-size: 1rem;
        padding: 5px 14px;
        line-height: 26px;
      }
    }
    @media (max-width: 480px) {
      .container {
        padding: 12px 8px 16px;
      }
	  .routeparam {
    flex-direction:column;
}
      .result-table td,
      .result-table th {
        font-size: 1rem;
        padding: 3px 3px;
      }
      .radio-group {
        gap: 4px 12px;
      }
      .radio-group label {
        font-size: 1rem;
        padding: 2px 6px 2px 2px;
      }
    }

.howtochoose {
  border: 2px solid #0077be;
  border-radius:999px;
  padding:8px 14px;
  margin-bottom:12px;
  font-size:1rem;
  color:#333;
  display:flex;
  align-items:center;
  gap:10px;
}
    /* ===== АДАПТИВ ===== */

    /* Планшеты и маленькие ноутбуки */
    @media (max-width: 1024px) {
      .calccontainer {
        padding-left: .9375rem;
        padding-right: .9375rem;
      }
	  .howtochoose {

  border-radius:999px;

}
      .header h1 {
        font-size: 1.6rem;
      }
	  .routeparam {
    flex-direction:column;
}

    }

    .step-content {
      display: none !important;
    }
    .step-content.active {
      display: block !important;
    }

    /* Мобильные устройства (портрет) */
    @media (max-width: 768px) {
      .calccontainer {
        padding-left: .9375rem;
        padding-right: .9375rem;
        border-radius: 16px;
      }

	  .breadcrumb .calccontainer {
      display: flex;
	  flex-direction: column;
    }

      .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
      .header h1 {
        font-size: 1.4rem;
        width: 100%;
      }
      .header h1 small {
        font-size: 0.85rem;
        margin-left: 0;
      }
      .header-badge {
        font-size: 0.85rem;
        padding: 3px 14px;
      }
      .calcsection-title {
        font-size: 1rem;
        flex-wrap: wrap;
      }

      /* ===== ГЛАВНОЕ: БЛОКИ В КОЛОНКУ ===== */
      .calcrow {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 10px;
      }

      .calcrow label {
        font-size: 1rem;
        margin-bottom: -4px;
        font-weight: 500;
      }

      .calcrow input[type="number"] {
        max-width: 100%;
        width: 100%;
      }

      .calcrow .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 1rem;
        line-height: 1.4;
        min-height: 44px;
        box-shadow: none;
      }

      /* Группа радио-кнопок */
      .radio-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
      }
      .radio-group label {
        font-size: 1rem;
        padding: 6px 10px;
        width: 100%;
      }
      .radio-group .radio-label-icon {
        font-size: 1rem;
        padding: 0 8px;
        line-height: 18px;
      }

      /* Таблицы — горизонтальная прокрутка */
      .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 6px -4px 0;
      }

      table {
        font-size: 1rem;
        min-width: 500px;
      }
      table th,
      table td {
        padding: 6px 8px;
        font-size: 1rem;
        white-space: nowrap;
      }
      .result-table td,
      .result-table th {
        font-size: 1rem;
        padding: 10px;
      }
      .result-table .series-name {
        font-size: 1rem;
        white-space: normal;
        word-break: break-word;
        min-width: 60px;
        width: auto;
      }

      /* Кнопки в футере */
      .footer-actions {
        flex-direction: column;
        gap: 8px;
      }
      .footer-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 1rem;
      }

      /* Модалка */
      .modal {
        padding: 18px 14px;
        width: 96%;
        max-height: 95vh;
      }
      .modal h2 {
        font-size: 1.2rem;
      }
      .modal .sub {
        font-size: 1rem;
      }
      .modal .row {
        flex-direction: column;
        gap: 8px;
      }
      .modal .row label {
        font-size: 1rem;
      }
      .modal .row input,
      .modal .row select {
        width: 100%;
        padding: 10px 12px;
      }
      .modal .row .btn {
        width: 100%;
        justify-content: center;
      }
      .modal-actions {
        flex-direction: column;
      }
      .modal-actions .btn {
        width: 100%;
        justify-content: center;
      }

      /* Легенда */
      .legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 1rem;
      }
      .legend .max-fill-info {
        margin-left: 0;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: 4px 10px;
      }

      /* Помощь */
      .help-text {
        font-size: 1rem;
        padding: 12px 14px;
      }

      /* Отступы для разделителей */
      .calcsection > .calcrow + .calcrow {
        margin-top: 0;
      }
      .calcsection > div[style*="border-top"] {
        padding-top: 1rem;
        margin-top: 1rem;
      }
    }

    /* Очень маленькие экраны (до 480px) */
    @media (max-width: 480px) {
      .calccontainer {
        padding-left: .9375rem;
        padding-right: .9375rem;
		flex-direction: column;
      }

	  .breadcrumb .calccontainer {
      display: flex;
	  flex-direction: column;
    }
      .header h1 {
        font-size: 1.2rem;
      }
      .calcrow .btn {
        padding: 8px 12px;
        font-size: 1rem;
        min-height: 40px;
        box-shadow: none;
      }
      table th,
      table td {
        padding: 4px 5px;
        font-size: 1rem;
      }
      .result-table td,
      .result-table th {
        font-size: 1rem;
        padding: 10px;
      }
      .result-table .series-name {
        font-size: 1rem;
      }
      .radio-group label {
        font-size: 1rem;
        padding: 4px 6px;
      }
      .modal {
        padding: 12px 10px;
      }
      .modal .row input,
      .modal .row select {
        padding: 8px 10px;
        font-size: 1rem;
      }
      .footer-actions .btn {
        font-size: 1rem;
        padding: 8px;
      }
      .legend .max-fill-info {
        font-size: 1rem;
      }
    }

    /* Альбомная ориентация на телефонах — чуть больше простора */
    @media (max-width: 820px) and (orientation: landscape) {
      .calcrow {
        flex-direction: row;
        flex-wrap: wrap;
      }
      .calcrow label {
        flex: 0 0 auto;
        width: auto;
        margin-bottom: 0;
      }
      .calcrow input,
      .calcrow select {
        flex: 1 1 120px;
        width: auto;
      }
      .calcrow input[type="number"] {
        max-width: 100px;
      }
      .calcrow .btn {
        flex: 0 1 auto;
        width: auto;
        padding: 8px 16px;
        box-shadow: none;
      }
      .radio-group {
        flex-direction: row;
        flex-wrap: wrap;
      }
      .radio-group label {
        width: auto;
        flex: 0 1 auto;
      }
      .footer-actions {
        flex-direction: row;
        flex-wrap: wrap;
      }
      .footer-actions .btn {
        flex: 1 1 auto;
        width: auto;
      }
    }

    @media (max-width: 600px) {
      .calc-radio-group-grid {
        grid-template-columns: 1fr !important;
      }
    }

    .sposob-prokladki {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    @media (max-width: 480px) {
      .sposob-prokladki {
        display: flex;
        flex-wrap: wrap;
      }
    }
    @media (max-width: 820px) {
      .sposob-prokladki {
        display: flex;
        flex-wrap: wrap;
      }
    }

    /* ===== ХЛЕБНЫЕ КРОШКИ ===== */
    .breadcrumb {
      display: flex;
      gap: 0;
      margin-bottom: 24px;
      background: #f8faff;
      border-radius: 14px;
      padding: 6px;
      border: 1px solid #eaeef5;
    }
    .breadcrumb-item {
      flex: 1;
      padding: 5px;
      text-align: center;
      font-weight: 600;
      font-size: 1rem;
      color: #333;
      border-radius: 999px;
      cursor: pointer;
      transition: 0.2s;
      position: relative;
    }
    .breadcrumb-item.active {
      background: #0077be;
      color: #fff;
    }
    .breadcrumb-item.done {
      color: #0077be;
    }
    .breadcrumb-item:not(.active):not(.done):hover {
      background: #eef4fa;
    }
    .breadcrumb-item .step-num {
      display: inline-block;
      width: 32px;
      height: 32px;
      line-height: 32px;
      text-align: center;
      border-radius: 50%;
      background: #eaeef5;
      font-size: 1rem;
      color: #333;
      font-weight: 700;
      margin-right: 8px;
    }

	.step-num-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0077be;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-right: 10px;
}
    .breadcrumb-item.active .step-num {
      background: rgba(255,255,255,0.3);
      color: #fff;
    }
    .breadcrumb-item.done .step-num {
      background: #0077be;
      color: #fff;
    }

    /* ===== КОНТЕЙНЕРЫ ШАГОВ ===== */
    .step-content {
      display: none;
    }
    .step-content.active {
      display: block;
      animation: fadeIn 0.25s ease;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ===== КНОПКИ НАВИГАЦИИ ===== */
    .nav-buttons {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      padding-top: 18px;
      border-top: 1px solid #eaeef5;
    }
    .nav-buttons .btn {
      min-width: 100px;
    }
    .nav-buttons .spacer {
      flex: 1;
    }