/* Breadcrumbs text truncation */
.breadcrumbs li {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.5;
}

.breadcrumbs a,
.breadcrumbs span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Fix for the first breadcrumb (Главная) */
.breadcrumbs li:first-child {
  display: inline-flex;
  align-items: center;
}


.popular-cities {
  padding: 0 16px 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.popular-cities h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #555;
  font-weight: 500;
}

.popular-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.popular-cities .city-item {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #31c29f;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.popular-cities .city-item:hover {
  background-color: rgba(49, 194, 159, 0.1);
}


@media (max-width: 767px) {
  .popular-cities-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

.hint-banner {
  width: calc(100% - 40px);
  max-width: 1170px;
  margin: 20px auto;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fffceb;
  border: 1px solid #ffecb3;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: none;
}

.hint-banner.show {
  opacity: 1;
  transform: translateY(0);
  width: 100%;
}

.hint-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hint-text {
  flex: 1;
  transition: opacity 0.3s ease;
  min-height: 1.5em; /* Prevents layout shift */
  display: inline-flex;
  align-items: center; /* Vertically center the text */
  margin: 0; /* Remove any default margins */
  padding: 0; /* Remove any default padding */
}

.hint-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
  width: 24px; /* Fixed width to prevent layout shift */
  text-align: center;
  line-height: 1.5; /* Match text line height */
  margin-top: 1px; /* Small adjustment for perfect alignment */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.5em; /* Match text line height */
}

@media (max-width: 767px) {
  .hint-banner {
    width: calc(100% - 30px);
    padding: 10px 12px;
    font-size: 0.9rem;
    margin: 15px auto;
  }
}

.zaim-table-wrapper {
    padding: 0;
}

.zaim-table-filters {
    border-radius: 18px;
   /* padding:20px;*/
}

.hint-banner{max-width:1170px;margin:20px;display:flex;text-align:left;align-items:center;gap:8px;padding:10px 16px;background:#fffceb;border:1px solid #ffe58f;border-radius:15px;box-shadow:0 1px 3px rgba(0,0,0,.06);font-size:.95rem;line-height:1.35;color:#663c00;opacity:1;transform:none}
.hint-banner .hint-icon{font-size:1.4rem;flex-shrink:0}
.hint-banner .hint-text{flex:1}
@media(max-width:540px){.hint-banner{padding:12px 14px;font-size:.94rem}}

/* Loan Categories Styles */
.loan-categories-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.loan-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.loan-category {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: #23453e;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.loan-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(49, 194, 159, 0.15);
    border-color: #31c29f;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #31c29f;
    transition: transform 0.3s ease;
}

.loan-category:hover .category-icon {
    transform: scale(1.1);
}

.loan-category h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #23453e;
    font-weight: 600;
}

.loan-category p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .loan-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .loan-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .loan-category {
        padding: 20px 15px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .loan-category h3 {
        font-size: 1.1rem;
    }
    
    .loan-category p {
        font-size: 0.9rem;
    }
}








 .city-selector {
        margin-top:10px;
        position: relative;
      }
      
      .current-city {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: none;
        border: none;
        color: #31c29f;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 6px;
        transition: all 0.2s ease;
        line-height: 1.2;
      }
      
      .current-city:hover {
        background: rgba(49, 194, 159, 0.1);
      }
      
      .gps-icon {
        display: inline-block;
        width: 14px;
        height: 14px;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E") no-repeat center;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E") no-repeat center;
      }
      
      .city-name {
        font-size: 14px;
        font-weight: 600;
        color: #31c29f;
      }
      
      @media (max-width: 480px) {
        .city-name {
          font-size: 13px;
        }
        .current-city {
          padding: 4px 8px;
        }
      }
      .city-name {
        margin-bottom: 0;
      }



.category-buttons {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
                justify-content: flex-start;
                margin: 0 -5px;
              }
              
              .btn-category {
                display: inline-flex;
                align-items: center;
                padding: 8px 16px;
                background: #fff;
                border: 1px solid #e2e8f0;
                border-radius: 20px;
                color: #23453e;
                font-size: 14px;
                font-weight: 500;
                text-decoration: none;
                transition: all 0.3s ease;
                box-shadow: 0 2px 8px rgba(35, 69, 62, 0.05);
                margin: 4px;
                white-space: nowrap;
                min-width: min-content;
              }
              
              .btn-category:hover {
                background: #31c29f;
                color: #fff;
                border-color: #31c29f;
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(49, 194, 159, 0.2);
              }
              
              .category-emoji {
                margin-right: 8px;
                font-size: 16px;
                flex-shrink: 0;
              }
              
              @media (max-width: 768px) {
                .category-buttons {
                  gap: 8px;
                  justify-content: flex-start;
                  overflow-x: auto;
                  padding-bottom: 10px;
                  margin: 0 -15px 0 -5px;
                  -webkit-overflow-scrolling: touch;
                }
                
                .category-buttons::-webkit-scrollbar {
                  height: 4px;
                }
                
                .category-buttons::-webkit-scrollbar-thumb {
                  background: #e2e8f0;
                  border-radius: 2px;
                }
                
                .btn-category {
                  padding: 6px 14px;
                  font-size: 13px;
                  margin: 2px;
                  white-space: nowrap;
                }
              }
/* Base styles for categories and cities */
  .categories-container, .cities-container {
    position: relative;
    overflow: hidden;
  }
  
  /* Region sections */
  .city-letter-header {
    padding: 10px 24px;
    font-weight: 700;
    font-size: 16px;
    color: #1AAA5B;
    background-color: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #e2e8f0;
    margin: 0;
  }
  
  .city-search {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .city-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .city-search input:focus {
    outline: none;
    border-color: #1AAA5B;
    box-shadow: 0 0 0 3px rgba(26, 170, 91, 0.1);
  }
  
  .city-search input::placeholder {
    color: #94a3b8;
  }
  
  .city-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
  }
  
  .city-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
  }
  
  .close-modal {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
  }
  
  .close-modal:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #334155;
  }
  
  .close-modal svg {
    width: 16px;
    height: 16px;
  }
  
  .city-item {
    padding: 12px 24px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 15px;
    margin: 0;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .city-item:hover {
    background-color: #f8fafc;
  }
  
  .city-item.is-selected,
  .city-item:active {
    background-color: #f0f9f0;
  }
  
  .city-name {
    font-weight: 500;
    margin-bottom: 2px;
  }
  
  .city-region {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .city-item:hover {
    background-color: #f8fafc;
    color: #0f172a;
  }
  
  .city-item:active {
    background-color: #f1f5f9;
  }
  
  .region-arrow {
    transition: transform 0.3s ease;
  }
  
  .region-title[aria-expanded="true"] .region-arrow {
    transform: rotate(180deg);
  }
  
  .region-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 16px;
    background-color: #fff;
    border-top: 1px solid #e2e8f0;
  }
  
  /* Button styles */
  .btn-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1e293b;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .btn-category:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
  }
  
  .more-category,
  .more-city {
    display: none !important;
  }
  
  .show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px auto 0;
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #3b82f6;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .show-more-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
  }
  
  .show-more-btn .arrow-icon {
    transition: transform 0.3s ease;
  }
  
  .show-more-btn[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
  }
  
  .city-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    background: rgba(22, 33, 54, 0.44);
    backdrop-filter: blur(10px) saturate(1.12);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    animation: modalFadeIn 0.3s;
  }
  
  @keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .city-modal.active {
    opacity: 1;
    display: flex;
  }
  
  .city-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }
  
  .city-modal-body {
    overflow-y: auto;
    padding: 0;
    flex: 1;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  .city-modal-body::-webkit-scrollbar {
    width: 6px;
  }
  
  .city-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  .city-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }
  
  .city-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
  
  .city-modal-footer {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background-color: #f8fafc;
  }
  
  @media (max-width: 768px) {
    .btn-category {
      padding: 8px 16px;
      font-size: 0.875rem;
    }
    
    .category-buttons {
      gap: 10px;
    }
    
    .show-more-btn {
      margin-top: 12px;
    }
  }
  
  @media (max-width: 480px) {
    .btn-category {
      flex: 1 1 calc(50% - 8px);
      max-width: calc(50% - 8px);
      padding: 8px 12px;
      font-size: 0.8125rem;
    }
    
    .category-buttons {
      gap: 8px;
    }
  }






              


  /* Categories Section Styling */
    .categories-section {
      margin: 40px 0;
    }
    
    .section-title {
      color: #23453e;
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 25px;
      text-align: center;
      position: relative;
      padding-bottom: 15px;
    }
    
    .section-title:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: #31c29f;
    }
    
    .category-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      margin: 0 -6px;
    }
    
    .btn-category {
      display: inline-flex !important; /* Добавлено !important */
      align-items: center;
      justify-content: center;
      padding: 10px 20px;
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      color: #23453e;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(35, 69, 62, 0.05);
      margin: 6px;
      vertical-align: middle;
    }
    
    .btn-category:hover {
      background: #31c29f;
      color: #fff;
      border-color: #31c29f;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(49, 194, 159, 0.2);
    }
    
    .show-more-container {
      margin-top: 20px;
      text-align: center;
    }
    
    #showMoreCategories {
      background: transparent;
      border: 2px solid #31c29f;
      color: #31c29f;
      padding: 10px 24px;
      border-radius: 25px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 14px;
    }
    
    #showMoreCategories:hover {
      background: #31c29f;
      color: #fff;
      box-shadow: 0 4px 12px rgba(49, 194, 159, 0.3);
    }
    
    /* Responsive styles */
    @media (max-width: 768px) {
      .category-buttons {
        gap: 8px;
      }
      
      .btn-category {
        padding: 8px 16px;
        font-size: 13px;
        margin: 4px;
      }
      
      .section-title {
        font-size: 20px;
        margin-bottom: 20px;
      }
    }



    .zaim-categories-nav {margin-bottom:18px;}
.zaim-cat-link {color:#31c29f;font-weight:600;font-size:1.02em;text-decoration:none;padding:7px 18px;border-radius:7px;transition:background .15s;}
.zaim-cat-link:hover,.zaim-cat-link.active {background:#e6f9f3;color:#1a365d;}
/* --- Filter rows layout (labels inline with input) --- */
.zaim-table-filters .filter-row{display:grid;grid-template-columns:auto minmax(120px,1fr);column-gap:12px;row-gap:6px;align-items:center;margin-bottom:2px}
.zaim-table-filters .filter-row label{font-weight:600;color:#334155}
/* text inputs */
.zaim-table-filters .amount-input,.zaim-table-filters .term-input{width:150px;text-align:right;padding:6px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#ffffff;font-size:.95rem;justify-self:end}
.zaim-table-filters input[type="text"], .zaim-table-filters select{width:150px}
/* range wrapper full width */
.zaim-table-filters .filter-range-wrap{grid-column:1/3;width:100%;margin-top:10px}
@media(max-width:540px){
  .zaim-table-filters .amount-input,.zaim-table-filters .term-input{width:100%}
}
/* approval color labels */
.approval-high{color:#31c29f;font-weight:600}
.approval-medium{color:#ff9800;font-weight:600}
.approval-low{color:#f44336;font-weight:600}
/* custom range thumb border color */
.zaim-table-filters input[type="range"]::-webkit-slider-thumb{border:2px solid #31c29f}
.zaim-table-filters input[type="range"]::-moz-range-thumb{border:2px solid #31c29f}
.zaim-table-filters input[type="range"]::-ms-thumb{border:2px solid #31c29f}