@charset "UTF-8";
    h1 {
      text-align: center;
      color: #003366;
      margin-bottom: 1rem;
    }

    .search-box {
      display: flex;
      justify-content: center;
      margin-bottom: 2rem;
    }

    .search-box input {
      padding: 0.5rem;
      font-size: 1rem;
      width: 200px;
    }

    .search-box button {
      padding: 0.5rem 1rem;
      background: #0aaf5c;
      color: white;
      border: none;
      cursor: pointer;
    }

    .section {
      background: #fff;
      border: 1px solid #ccc;
      padding: 1rem;
	  width:90%;
	  max-width:650px;
	  margin: 0 auto 2rem;
    }
	.result-doc{
      justify-content: space-between;
      margin-bottom: 2rem;
	}
	.result-doc .title{
		color: #0044cc;
		margin-bottom: 0.5rem;
		font-weight: 700;
	}
    .result {
      display: flex;
      justify-content: space-between;
      margin-bottom: 2rem;
    }

    .result-head {
      width: 35%;
    }
    .result-head .razd, .result-head .dtn{
		font-size:90%;
	}

    .result-head .title{
		font-decoration:none;
		font-weight:700;
		color:#444;
	}

    .result-head .title:hover{
		font-decoration:underline;
	}
    .result-text {
      width: 35%;
    }
	
    .result-image {
      width: 25%;
      text-align: right;
    }

    .result-image img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
    }

    .result a {
      color: #0044cc;
      text-decoration: none;
    }

    .highlight {
      color: red;
      font-weight: bold;
    }

    .qa {
      margin: 3rem 1rem;
    }

    .qa-question a{
      color: #0044cc;
      margin-bottom: 0.5rem;
	  font-weight:700;
    }

    .qa-answer {
      background: #f0f0f0;
      padding: 0.5rem;
      border-left: 4px solid #ccc;
    }

    .show-more {
      text-align: center;
      margin-top: 1rem;
    }

    .show-more button {
      background: #f2f6ff;
      border: 1px solid #b5d1fc;
      color: #0044cc;
      padding: 0.5rem 1rem;
      cursor: pointer;
    }

    @media (max-width: 768px) {
      .result {
        flex-direction: column;
      }
      .result-text,
      .result-head,
      .result-image {
        width: 100%;
      }
      .result-image {
        text-align: left;
        margin-top: 0.5rem;
      }
    }
/* Стили для пагинации */
.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination-info {
    margin-bottom: 10px;
    color: #666;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination-btn, .load-more-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
}

.pagination-btn:hover, .load-more-btn:hover {
    background: #e0e0e0;
}

.current-page {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border-radius: 3px;
}

.load-more-btn {
    margin-top: 10px;
    padding: 8px 20px;
    background: #28a745;
    color: white;
    border: none;
}

.loader {
    padding: 10px;
    color: #666;
}
.load-more-container {
    margin: 20px 0;
    text-align: center;
}

.load-more-btn {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.load-more-btn:hover {
    background: #45a049;
}
.pagination-btn, .current-page {
    margin: 0 3px;
    padding: 3px 8px;
}

.current-page {
    font-weight: bold;
    background: #007bff;
    color: white;
    border-radius: 3px;
}

.pagination-btn:hover {
    background: #e0e0e0;
}
.loader {
    padding: 10px;
    text-align: center;
    font-style: italic;
    color: #666;
}
.pagination-info{
	display:none;
}


.search-filter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-title {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 16px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 300px;
    margin: 0 auto;
    border: 1px solid #aaa;
    padding: 2rem;
    border-radius: 6px;
  background: #ddd;
}

.filter-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: white;
  border: 1px solid #e2e8f0;
  width:100%;
}

.filter-option:hover {
  border-color: #0a966c;
  box-shadow: 0 0 0 3px rgba(10, 150, 108, 0.1);
}

.filter-option input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-option input[type="checkbox"]:checked + .custom-checkbox {
  background-color: #0a966c;
  border-color: #0a966c;
}

.filter-option input[type="checkbox"]:checked + .custom-checkbox::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.option-text {
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
}

.filter-option input[type="checkbox"]:checked ~ .option-text {
  color: #0a966c;
  font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
  .filter-options {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-option {
    width: 100%;
  }
}
/* Добавьте этот стиль к предыдущему */
.custom-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.filter-option input[type="radio"]{
	display:none;
}
.filter-option input[type="radio"]:checked + .custom-radio {
  border-color: #0a966c;
}

.filter-option input[type="radio"]:checked + .custom-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #0a966c;
  border-radius: 50%;
}

.filter-option input[type="text"]{
margin-right:5px;width:170px;display: inline;
}
.inputsandbtn{
	width: 255px;
    /*background-color: #0cbc87;*/
}

.text-center {
    text-align: center !important;
}
.pb-5 {
    padding-bottom: 3rem !important;
}
.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Затемнение фона */
.global-loader {
    background-color: rgba(0, 0, 0, 0.7);
}

.loader-content {
    background: #fff;
}