:root {
    --font-primary:   Verdana, sans-serif;
    --font-secondary: "Times New Roman", serif;
    --color-surface: #ffffff;
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-accent-red: #ef0021;
    --color-accent-green: #16a34a;
    --color-danger: #dc2626;
    --color-border: #e5e7eb;
    --color-form-focus: #2563eb;
     --color-background: #f9fafb;      
    --color-accent-blue: #2563eb;  
    --color-accent-blue-hover: #1d4ed8;
    --color-accent-red-hover:#b00018;
}

body{ background: linear-gradient(111deg, #fcfcfc 0%,#A2D5AB 40%,#2C3E50 69%,#000000 100%);  min-height: 100%; padding: 0; margin: 0; font-family:Verdana, sans-serif; font-size: 11pt;
line-height: 1.6;}
h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", serif;
}




/* --- 2. Шапка (Header Redesign) --- */

/* Верхняя полоса с доверием */
.head-info-line {    background: #1f2937;    color: #e5e7eb;    font-size: 0.8rem;    padding: 6px 0;    border-bottom: 1px solid rgba(255,255,255,0.1);}
.container-wide {    max-width: 1400px;    margin: 0 auto;    padding: 0 1rem;    display: flex;    justify-content: space-between;    align-items: center;}
.trust-badge {    display: flex;    align-items: center;    gap: 6px;    color: #10b981;     font-weight: 500;}
.icon-tiny {    width: 14px;    height: 14px;    fill: currentColor;}

/* Основная шапка */
.head {    background-color: rgba(255, 255, 255, 0.95);    backdrop-filter: blur(12px);    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);    position: sticky;    top: 0;    z-index: 1000;}

.head-wrap {    max-width: 1400px;    margin: 0 auto;    padding: 0.6rem 1rem;    display: flex;    justify-content: space-between;    align-items: center;}

/* Навигация в центре */
.head-nav {
    display: flex;
    gap: 1.5rem;
}
.head-nav a {    color: var(--color-text-primary);    text-decoration: none;    font-weight: 600;    font-size: 0.95rem;    display: flex;    align-items: center;    gap: 0.5rem;    padding: 0.5rem 0.75rem;    border-radius: 8px;    transition: all 0.2s ease;}
.head-nav a:hover {    background-color: #f3f4f6;    color: var(--color-accent-red);}
.head-nav a:hover .icon {    fill: var(--color-accent-red);}
.head .icon {    width: 1.25rem;    height: 1.25rem;    fill: #6b7280;}

/* Логотип */
.logo img {    max-height: 42px;    display: block;}

/* Кнопки справа */
.head-actions {    display: flex;    align-items: center;    gap: 1rem;}

/* Кнопка "Нужна помощь" */
.btn-help {    display: flex;    align-items: center;    gap: 8px;   color : var(--color-accent-blue);     border: 2px solid var(--color-accent-blue);    background: #fff !important;     padding-left:14px;    border-radius: 20px;    font-weight: 700 !important;    font-size: 0.9rem !important;    transition: all 0.3s ease;    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2); text-decoration: none;}
.btn-help-icon {    color: #fff;    background: var(--color-accent-blue);     width: 32px;    height: 32px;    border-radius: 50%;    display: flex;    align-items: center;    justify-content: center;    font-size: 1.1rem;    transition: all 0.3s ease;}
.btn-help:hover {   color : #fff;     background: var(--color-accent-blue) !important;     transform: translateY(-1px);    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);}
.btn-help:hover .btn-help-icon {   color : var(--color-accent-blue);     background: #fff;}




/* Кнопка профиля */
.btn-profile {    color: var(--color-text-secondary) !important;font-weight: 600; text-decoration: none;    font-size: 0.95rem;}
.btn-profile.active {    color: var(--color-accent-red) !important;}
.btn-profile:hover {    color: var(--color-text-primary) !important;}

/* Адаптивность */
@media (max-width: 1024px) {
    .head-nav span { display: none; }    .head-nav { gap: 0.5rem; }    .head-info-line { display: none; }
}

@media (max-width: 768px) {
    .btn-help-text { display: none; }    .btn-help { padding: 0; border-radius: 50%; }    .logo img { max-height: 32px; }
}




    .container {
          justify-content: center; padding: 10px;
        
        
    }
  
footer {
    background-color: #222;
    color: white;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .city a {color: rgba(30, 160, 36, 0.6); padding: 2px 10px; display: inline-block; text-decoration: none;}
footer .city a:hover  {color: rgba(30, 160, 36, 1);}
footer .city a sup {color: rgba(255, 255, 255, 0.8); padding-left: 4px;}
footer .city a.active {  font-weight: bold; color: #eee; }
 

.footer-column {
    flex: 1;
    min-width: 100%;
    margin: 10px;
}

.footer-column h3 {
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

  

.footer-list li {
    margin-bottom: 10px;   display: inline-block;  border: 1px solid #444; padding: 0 10px; line-height: 200%;  
}
.footer-list li:hover {
     border: 1px solid #ccc; background-color: #333; 

}

.footer-list li a {color: #999; text-decoration: none;}
.footer-list li a:hover {color: #fff;} 
.footer-list li a.active {font-weight: bold; color: #eee;}
/* Стили для нижней части футера */
.footer-bottom {
    text-align: center; background-color: #444;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.footer-bottom p {
    margin: 0;  
    padding: 5px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
     
}

.footer-links li {
    margin: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

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


.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовки */
h1, h2, h3 {
    color: #2a7fa4;
    font-weight: 700;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}



/* Стилевые правила для экранов с шириной от 960px до 1200px */
@media (min-width: 100px) and (max-width: 1200px) {
    .lefttopmenu a span {display: none;}
 .leftblok {min-width: 20%; }
 
  .checkboxes label { width: 50%; }
 
}

/* Стилевые правила для экранов с шириной от 1200px и выше */
@media (min-width: 1201px) {
 .leftblok {min-width: 15%; }
 
     .checkboxes label { width: 30%; }
 
}

/* --- Стили для поиска --- */

/* Форма поиска (можно размещать в шапке) */
.site-search-form form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
}
.site-search-form input[type="search"] {
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    flex-grow: 1; /* Занимает все доступное место */
}
.site-search-form input[type="search"]:focus {
    outline: none;
}
.site-search-form button {
    background-color: #2a7fa4;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
}
.site-search-form button:hover {
    background-color: #1d5f7a;
}

/* Контейнер для страницы результатов */
.search-page-container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
}
.search-page-container h1 {
    text-align: center;
    color: #2C3E50;
    margin-bottom: 25px;
}
.search-page-container h1 q {
    color: #2a7fa4;
    font-style: italic;
}

/* Карточка одного результата */
.search-result-item {
    display: flex;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.search-result-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.search-result-photo {
    flex-shrink: 0;
}
.search-result-photo img {
    width: 220px;
    height: 147px;
    object-fit: cover;
    display: block;
}
.search-result-info {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}
.search-result-info h3 {
    margin: 0 0 5px 0;
}
.search-result-info h3 a {
    color: #2a7fa4;
    text-decoration: none;
    font-size: 1.4em;
}
.search-result-info h3 a:hover {
    text-decoration: underline;
}
.search-result-meta {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.search-result-description {
    color: #444;
    flex-grow: 1;
}

/* --- 6. Пагинация --- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin: 2rem 0; }
.pagination a, .pagination span { color: #374151; padding: 0.5rem 1rem; text-decoration: none; border: 1px solid #d1d5db; border-radius: 8px; background-color: #fff; }
.pagination a:hover { background-color: #f3f4f6; border-color: #9ca3af; text-decoration: none; }
.pagination a.active { background-color: var(--color-accent-green); color: white; border-color: var(--color-accent-green); }


/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .search-result-item {
        flex-direction: column;
    }
    .search-result-photo img {
        width: 100%;
        height: 180px;
    }
}