@media (max-width: 1000px), (pointer: coarse) {
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  #hornav-sticky-wrapper {
    height: 0 !important;
    overflow: hidden;
  }
  #header-sticky-wrapper {
    height: 0 !important;
    overflow: visible !important;
  }
  #header {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100%;
    padding: 5px 0;
  }
  #header.container {
    padding: 0 15px;
  }


.news-container div {
    width: 90%;
    margin-left: auto !important;
    margin-right: 35px !important;
}
  .logo {
    text-align: center;
    margin-top: 12%;
    width: 130%;
    margin-left: -14%;
  }

  /* Текст как на десктопе */
  .news-container h1 {
    font-family: "Corsiva", "Monotype Corsiva", cursive;
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
    font-style: italic;
    color: #0c0c0c;
  }

  .news-container p,
  .news-container div {
  font-family: "Georgia", "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.7;
    text-align: center;
    font-style: italic;
    color: #0c0c0c;
  }
    .patient-guide .patient-hero-badge {
        color: #fff !important;
    }
     .patient-guide .patient-contact,
    .patient-guide .patient-contact span,
    .patient-guide .patient-contact strong,
    .patient-guide .patient-contact small,
    .patient-guide .patient-contact-text,
    .patient-guide .patient-contact-text strong,
    .patient-guide .patient-contact-text p {
        color: #fff !important;
    }


  
  
  .news-image,
  .news-content {
    width: 100%;
  }

  .news-container {
  width: 92%;
    max-width: 92%;
    padding: 50px;
    margin: 10px auto;
  }

  .news-container * {
    max-width: 100%;
    box-sizing: border-box;
  }
  .news-container img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
    
  }
  .news-container iframe,
  .news-container video {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .news-container table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  


.news-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.news-card .news-image {
    width: 320px;
    height: 250px;
    overflow: hidden;
    margin: 0 auto 10px auto;
}

.news-card .news-image img {
    width: 130%;
    height: 130%;
    object-fit: cover;
    display: block;
}

.news-card .news-content {
    text-align: center;
       width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.news-card .news-content h2 {
    text-align: center;
    font-size: 18px;
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
    font-weight: normal;
    margin: 0px 0 0 0;
    color: #1a3a6b;
}
.news-card .news-content h2 {
    line-height: 1.6;
    margin-left: 0;
    margin-right: 0;
}

.news-card .news-content p {
    line-height: 2;
    margin-left: 0;
    margin-right: 0;
    display: block !important;
}

.news-card .news-content h2 a,
.news-card .news-content a {
    text-decoration: none;
    color: #1a3a6b;
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
}

/* Скрываем описание и кнопку */
.news-card .news-content p,
.news-card .news-content a:last-child {
    display: none !important;
}
  
/* Дата в правом нижнем углу */
.news-date {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
    font-size: 11px;
    color: #aaa;
}

/* Разделительная линия между блоками */
.news-divider {
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, #1a3a6b, transparent);
    margin: 0 auto 20px auto;
}
  
  
  .emergency-block {
    background: #fff0f0;
    border-radius: 16px;
    padding: 40px 0px;
    margin: 100px auto;
    width: 95%;
    max-width: 1700px;
    box-sizing: border-box;
    text-align: center;
     margin-left:20%;
}

.emergency-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.emergency-subtitle {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 15px;
    color: #666;
    margin: 0 0 30px 0;
}

  .emergency-cards {
    align-items: center;
    padding-left: 0;
    padding-right: 0;
  }

  .emergency-card {
    width: 95%;
    max-width: 95%;
     margin-left: auto;
    margin-right: auto;
    position: relative;
    left: 10%;
  
    
  }

.emergency-number {
    font-size: 48px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: "Georgia", serif;
}

.emergency-number.red {
    color: #e03030;
}

.emergency-number.small {
    font-size: 28px;
}

.emergency-label {
    font-size: 12px;
    font-weight: bold;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-family: "PT Sans", sans-serif;
}

.emergency-desc {
    font-size: 12px;
    color: #888;
    font-family: "PT Sans", sans-serif;
    line-height: 1.5;
}
  
  
  
  
 .pamyatka-block {
    width: 95% !important;
    max-width: 95% !important;
    padding: 20px 15px !important;
    box-sizing: border-box !important;
    margin: 20px auto !important;
    left: auto !important;
    transform: none !important;
  }

  .pamyatka-title {
    font-size: 18px !important;
    text-align: center;
    margin-bottom: 20px !important;
  }

  .pamyatka-label {
    text-align: center;
  }

  .pamyatka-grid {
    grid-template-columns: 1fr !important;  /* одна колонка */
    gap: 0 !important;
  }

  .pamyatka-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(26,58,107,0.15) !important;
  }

  .pamyatka-item a {
    font-size: 14px !important;
  }

  .pamyatka-icon {
    font-size: 20px !important;
  }
  
  
  
  
   .patient-guide {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    
    
        .patient-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .important-note {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
    }

    .important-note > div:last-child {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .important-note p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }
     .patient-guide {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .patient-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .important-note {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
    }

    .important-note > div:last-child {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .important-note p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }
    
    
     .patient-guide,
    .patient-guide * {
        box-sizing: border-box;
    }

    .patient-guide {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .patient-guide .patient-section,
    .patient-guide .patient-hero,
    .patient-guide .patient-contact {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .patient-guide p,
    .patient-guide h1,
    .patient-guide h2,
    .patient-guide h3,
    .patient-guide div {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
    }

   
    .patient-guide .dispatcher-item,
    .patient-guide .waiting-card,
    .patient-guide .hospital-card,
    .patient-guide .arrival-card,
    .patient-guide .consultation-answer,
    .patient-guide .consultation-topics {
        min-width: 0;
        max-width: 100%;
    }
    
    

    .patient-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .important-note {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
    }

    .important-note > div:last-child {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .important-note p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }
  
    .patient-guide .important-note {
        display: grid !important;
        grid-template-columns: 35px minmax(0, 1fr) !important;
        gap: 15px !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
    }

    .patient-guide .important-note-icon {
        display: flex !important;

        width: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;

        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;

        padding: 0 !important;
        margin: 0 !important;

        align-items: center !important;
        justify-content: center !important;

        box-sizing: border-box !important;
    }

    .patient-guide .important-note > div:last-child {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    .patient-guide .important-note > div:last-child strong,
    .patient-guide .important-note > div:last-child p {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

  
  
  
  
  
  
  
  
   .criteria-block {
    flex-direction: column;
    padding: 20px 15px;
    width: 95%;
    gap: 20px;
  }

  .criteria-label {
    font-size: 11px;
  }

  .criteria-list li {
    font-size: 13px;
  }

  .criteria-consultant,
  .criteria-dispatcher {
    padding: 16px;
  }

  .criteria-consultant-title {
    font-size: 16px;
  }

  .criteria-dispatcher-title {
    font-size: 15px;
  }


 
 
 
 
 
  .latest-news-block {
    padding: 20px 15px;
  }

  .latest-news-cards {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px;
  
  }

  .latest-news-card {
    width: 320px !important;
    max-width: 320px !important;
    flex: none !important;
    
    position: relative;
    left: 8%;
  }

  .latest-news-image {
    height: 180px;
  }

  .latest-news-content h3 {
    font-size: 13px;
  }
  
  
  
  
  
  
  
  
  
}



@media (min-width: 1001px) and (pointer: fine) {
html,
body{
    overflow-x:hidden;
}

 /* Шапка с лого — на всю ширину */
  #header {
    width: 100%;
    max-width: 100%;
  }


  #header.container {
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }

  /* Сдвиг лого влево */
  .logo {
    position: relative;
    left: -15%;
  }

  /* Меню навигации — на всю ширину, sticky */
  #hornav {
    width: 100%;
    max-width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(26, 25, 25, 0.95);
  }

  #hornav.container,
  #hornav.container.no-padding {
    max-width: 100% !important;
    width: 100% !important;
    
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #hornav .navbar-nav {
    width: 100%;
  }

  #hornav ul {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
  }
}
  .news-image {
    padding: 5px 5px 0 5px;
    box-sizing: border-box;
  }

  .news-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
  }
  
  /* Карточка новости */
  .news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding-bottom: 30px;
    margin-bottom: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
  }

  /* Картинка */
  .news-card .news-image {
    width: 140%;
    height: 500px;
    overflow: hidden;
    margin: -20px -20px 20 -10px;
    box-sizing: border-box;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

  /* Контент */
  .news-card .news-content {
    width: 100%;
    padding: 16px 16px 0 16px;
    box-sizing: border-box;
  }

  /* Заголовок */
  .news-card .news-content h2 {
    text-align: center;
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 20px;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0;
  }

  /* Скрываем описание */
  .news-card .news-content p {
    display: none !important;
  }

  /* Дата в правом нижнем углу */
  .news-date {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
    font-size: 18px;
    color: #aaa;
  }

  /* Разделительная линия */
  .news-divider {
    width: 95%;
    height: 2px;
    background: linear-gradient(to right, transparent, #1a3a6b, transparent);
    margin: 20px auto 30px auto;
  }




.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card-link:hover .news-card {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}






 /* Шапка с лого — на всю ширину */
  #header {
    width: 100%;
    max-width: 100%;
  }




@media(max-width:768px){





}
