.site-header {
  background-color: #ebeff1;
  box-shadow: 0 2px 8px rgba(26, 37, 51, 0.12);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
}
.main-nav {
  flex-grow: 1;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  justify-content: center;
}

.nav-link {
  color: #1a2533;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #12aec4; /* акцентный цвет при наведении */
  transform: translateY(-2px);
}

      /* Адаптив */
@media (max-width: 992px) {
  .header-container {
    flex-wrap: wrap;
  }

  .nav-list {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .logo img {
    height: 50px;
  }

  .visually-impaired-btn {
    width: 100%;
    justify-content: center;
  }
}
      .hero h1 {
        margin: 0 0 1rem 0;
      }

      .section {
        padding: 2rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
      }

      .grid-3 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
      }

      .card {
        background: #fff;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      }
      .card2 {
        background: #fff;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        
        width: 331px;
        min-height:200px ;
      }

      button, .btn {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-decoration: none;
        min-width: 144px;
      }
      .btn2{
        display: inline-block;
        padding: 0.75rem 1.5rem;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-decoration: none;
        max-width: 144px;
      }
      /* Модальное окно */
      .modal-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.6);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
      }
      .modal {
        background: #fff;
        padding: 2rem;
        width: 90%;
        max-width: 600px;
        border-radius: 8px;
        position: relative;
      }
      .modal.active {
        display: flex;
      }
      .close-modal {
        position: absolute;
        top: 1rem; right: 1rem;
        cursor: pointer;
        font-weight: bold;
      }
      footer {
        background: var(--light);
        color: #ccc;
        padding: 2rem;
        text-align: center;
      }
      .okak{
        line-height:25px;
      }
      :root {
        --primary: #12aec4;
        --dark: #f0f4f8;
        --light: #f5f5f5;
        --line: #64b7c2 ;
        --text: #1a2533;
      }

      body {
        font-family: Arial, sans-serif;
      
        margin: 0;
        padding: 0;
        color: var(--text);
        background: var(--light);
        transition: background 0.3s, color 0.3s;
      }

     
      /* Кнопка режима для слабовидящих */
      .visually-impaired-btn {
        cursor: pointer;
        background: var(--primary);
        color: #fffdfd;
        border: none;
        padding: 0.6rem 1rem;
        border-radius: 4px;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
      }
      .visually-impaired-btn:hover {
        background: #0e95a7;
      }

      .hero {
        padding: 4rem 2rem;
        text-align: center;
        background: var(--line);
        color: #fff;
        position: relative;
        z-index: 1;
      }

      .cardinf{
        display: flex;
        align-items: center;       /* вертикальное выравнивание иконки и текста */
        gap: 8px;                  /* небольшой отступ между иконкой и текстом */
        margin: 15px;
      }
      .foota{
        color: #ccc;
        text-decoration: none;
      }
      .lin-miv{
        color: #17345a;
        transform: none;
        text-decoration: none;
      }
      /* Стили режима для слабовидящих (высокий контраст) */
      body.high-contrast {
        --primary: #000;
        --dark: #000;
        --light: #fff;
        --line: #000;
        --text: #000;
        font-size: 1.4rem; /* увеличенный шрифт */
        line-height: 1.6;
      }
      
      body.high-contrast header,
      body.high-contrast footer {
        background: #000;
        color: #fff;
      }
      body.high-contrast .visually-impaired-btn {
        background: #000;
        color: #fff;
        border: 2px solid #000;
      }
      body.high-contrast a {
        text-decoration: underline; 
      }
      body.high-contrast .lggg {
         filter: grayscale(100%);  
      } 
      body.high-contrast header nav a{
        color: #ffffff !important;
      }

/* Стили для выпадающего блока с поиском */
      .institutions-section {
        padding: 2rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
      }

      .section-title-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
      }

      .section-title {
        color: #1a2533;
        font-size: 1.5rem;
        margin: 0;
      }

      .toggle-btn {
        font-size: 1.2rem;
        width: 100%;
        height: 60px;
        background-color: var(--primary);
        color: var(--light);
        border-color: var(--primary);
        padding: 8px 16px;
        cursor: pointer;
        border-radius: 6px;
        transition: all 0.2s ease;
     
      }
      .toggle-btn:hover {
        background-color: #0e95a7;
        border-color: #12aec4;
      }

      .search-container {
        margin-bottom: 1rem;
        margin-left: 40px;
        margin-right: 10px;
      }

      .search-input {
        width:100%;
        padding: 10px 12px;
       
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 0.95rem;
        outline: none;
        box-sizing: border-box;
      }
      .search-input:focus {
        border-color: #12aec4;
        box-shadow: 0 0 0 3px rgba(18, 174, 196, 0.15);
      }

      .institutions-list {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
      }

      .institutions-list.open {
        max-height: 800px;
        opacity: 1;
        overflow-y: auto; 
      }
      /* Стилизация скроллбара (чтобы выглядел аккуратно) */
      .institutions-list.open::-webkit-scrollbar {
        width: 8px;
      }
      .institutions-list.open::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 4px;
      }
      .institutions-list.open::-webkit-scrollbar-thumb {
        background: #9ca3af;
        border-radius: 4px;
      }
      .institutions-list.open::-webkit-scrollbar-thumb:hover {
        background: #6b7280;
      }

      .institution-item {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
      }

      .institution-info h3 {
        margin: 0 0 0.5rem 0;
        color: #1a2533;
      }

      .institution-info p {
        margin: 0;
        color: #374151;
        line-height: 1.4;
      }

      @media (max-width: 768px) {
        .institution-item {
          flex-direction: column;
        }
      }
      .volodia{
        margin-right: 10px;
      }

      /* модалка на документы________________________________________________ */

   /* --- Стили страницы документов --- */
      .docs-page {
        max-width: 1100px;
        margin: 0 auto;
        padding: 30px 20px 60px;
      }

      .docs-page h1 {
        font-size: 2rem;
        margin-bottom: 10px;
      }

      .docs-page .subtitle {
        color: #666;
        margin-bottom: 25px;
        font-size: 1rem;
      }

      /* Поиск */
      .docs-search {
        display: flex;
        gap: 12px;
        margin-bottom: 25px;
        flex-wrap: wrap;
      }

      .docs-search input {
        flex: 1;
        min-width: 220px;
        padding: 12px 16px;
        border: 2px solid #d0d0d0;
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color .2s;
      }

      .docs-search input:focus {
        outline: none;
        border-color: #2a6cf0;
      }

      .docs-search select {
        padding: 12px 16px;
        border: 2px solid #d0d0d0;
        border-radius: 8px;
        font-size: 1rem;
        background: #fff;
        cursor: pointer;
      }

      /* Список документов (таблица) */
      .docs-table-wrap {
        overflow-x: auto;
      }

      .docs-table {
        width: 100%;
        border-collapse: collapse;
        font-size: .95rem;
      }

      .docs-table th {
        text-align: left;
        padding: 12px 16px;
        background: #f5f5f5;
        border-bottom: 2px solid #ddd;
        font-weight: 600;
        white-space: nowrap;
      }

      .docs-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
        vertical-align: top;
      }

      .docs-table tr {
        cursor: pointer;
        transition: background .15s;
      }

      .docs-table .doc-category {
        white-space: nowrap;
        width: 160px;
      }

      .docs-table .doc-category span {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: .8rem;
        background: #e8eefc;
        color: #2a6cf0;
      }

      .docs-table .doc-title {
        font-weight: 500;
      }

      .docs-table .doc-arrow {
        text-align: right;
        width: 40px;
        color: #2a6cf0;
        font-size: 1.2rem;
      }

      .no-results {
        text-align: center;

        color: #999;
        font-size: 1.05rem;
      }

      /* Модальное окно */
      .modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        padding: 20px;
      }

      .modal-overlay.active {
        display: flex;
      }

      .modal2 {
        background: #fff;
        border-radius: 12px;
        max-width: 900px;
        width: 100%;
        max-height: 95vh;
        height: 100%;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0,0,0,.3);
        animation: modalIn .25s ease;
      }

      @keyframes modalIn {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
      }

      .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 24px 28px 16px;
        border-bottom: 1px solid #eee;
      }

      .modal-header h2 {
        font-size: 1.3rem;
        margin: 0;
        padding-right: 30px;
      }

      .modal-close {
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: #999;
        line-height: 1;
        padding: 0;
        flex-shrink: 0;
      }

      .modal-close:hover {
        color: #333;
      }

      .modal-body {
        padding: 24px 28px 28px;
        height: 100%;
        max-height: 700px;
      }

      .modal-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #eee;
      }

      .modal-meta div {
        font-size: .9rem;
      }

      .modal-meta strong {
        display: block;
        color: #888;
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 3px;
      }

      .modal-desc {
        line-height: 1.6;
        color: #333;
        margin-bottom: 24px;
      }

      .modal-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
      }

      .modal-actions a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 24px;
        border-radius: 8px;
        font-size: .95rem;
        text-decoration: none;
        transition: background .2s;
      }

      .modal-actions a.btn-primary {
        background: #2a6cf0;
        color: #fff;
      }

      .modal-actions a.btn-primary:hover {
        background: #1a5ce0;
      }

      .modal-actions a.btn-secondary {
        background: #f0f0f0;
        color: #333;
      }

      .modal-actions a.btn-secondary:hover {
        background: #e0e0e0;
      }

      /* PDF-превью внутри модалки */
      .modal-preview {
        width: 100%;
        height: 650px;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 20px;
      }

      /* Адаптив */
      @media (max-width: 640px) {
        .docs-search { flex-direction: column; }
        .docs-table .doc-category,
        .docs-table .doc-date { display: none; }
        .modal-header h2 { font-size: 1.1rem; }
      }

      /* Аккордеон ЧАВО */
      .faq-accordion {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
      }
      .faq-item {
        border: 1px solid #e5e9ed;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
      }
      .faq-question {
        width: 100%;
        padding: 1rem 1.25rem;
        background: #fff;
        border: none;
        text-align: left;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        outline: none;
      }
      .faq-question:hover {
        background: #f9fbfd;
      }
      .faq-answer {
        padding: 0 1.25rem;
        color: #555;
        line-height: 1.5;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        opacity: 0;
        visibility: hidden;
      }
      .faq-item.open .faq-answer {
        padding: 0.75rem 1.25rem;
        max-height: 200px; /* ограничение высоты, чтобы анимация работала */
        opacity: 1;
        visibility: visible;
      }
      .faq-item.open .faq-question::after {
        content: '−';
        font-size: 0.85rem;
      }
      .faq-question::after {
        content: '+';
        font-size: 0.85rem;
      }
          /* --- КАРУСЕЛЬ (СЛАЙДЕР) --- */
      .karusel-wrapper {
        position: relative;
        overflow: hidden;
        width: 100%;
        margin-bottom: 1.5rem;
      }
      .karusel-track {
        display: flex;
        gap: 1.5rem;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
      }
      .karusel-item {
        min-width: 320px; /* фиксируем ширину карточки */
        flex: 0 0 auto;    /* чтобы flex не сжимал карточки */
      }

      /* Кнопки управления */

      /* Индикаторы (точки) */
      .karusel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
      }
      .karusel-dot {
        width: 10px;
        height: 10px;
        background: #ccc;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s;
      }
      .karusel-dot.active { background: var(--primary); }

 


/* Снег */
.snow-container {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #b9ebff;
  font-size: 14px;
  user-select: none;
   text-shadow: 0 2px 4px rgba(0,0,0,0.2);  /* лёгкая тень для объёма */
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) translateX(60px) rotate(360deg); opacity: 0.7; }
}








.hidden {
  display: none !important;
}





.dedus {
  position: relative; /* создаёт контекст позиционирования */
  width: 100%;       /* или любая нужная ширина */
  z-index: 2;
  user-select: none; 
}
.dedus img{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  /* Опционально: убирает «тянучку» картинки в некоторых браузерах */
  pointer-events: none;
  position: absolute;
  width: 300px;
  height: auto; /* сохраняет пропорции */
  display: block; /* убирает лишние отступы снизу у строчных img */
  left: -60px;
  top: 10px;
    /* базовые свойства для анимации */
  
  transform: translateX(-250px); /* сдвинут вниз */
  animation: slideUp 2.8s ease-out forwards; /* анимация */
}
.kartochka{
  max-height: 200px;
}
.cardinfimg{
  padding-left: 15px;
}
.oknomun{
   padding: 2rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
}
@keyframes slideUp {
  to {
    transform: translateX(0);
  }
}
     /* Адаптив для карусели */
      @media (max-width: 992px) {
        .header-container { flex-wrap: wrap; }
        .nav-list { width: 100%; justify-content: center; margin-top: 1rem; gap: 16px; }
        .dedus img {max-width: 150px;top: 120px;left: -70px;}
      }
      @media (max-width: 768px) {
        .header-container { flex-direction: column; gap: 1rem; padding: 1rem; }
        .visually-impaired-btn, .faq-btn { width: 100%; justify-content: center; }
        /* На мобильных в карусели 1 карточка за раз */
        .karusel-item { min-width: 100%; }
      }
      @media (min-width: 769px) and (max-width: 1024px) {
        /* Планшеты: 2 карточки в ряд */
        .karusel-item { min-width: calc(50% - 0.75rem); }
      }
      @media (max-width: 768px) {
        .cardinfimg{
          height: 140px;
        }
         .volodia {
        padding-left: 0;
        }
        .kartochka{
          max-height: 120px;
        }
      }
      /* Полоса сверху */