/* ========== МОБИЛЬНАЯ ВЕРСИЯ (ДО 768px) ========== */

/* Общие настройки */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Хедер */
    .header__top .container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .header__main {
        padding: 20px 0 25px;
    }
    
    .header__content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 17px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .logo p {
        display: none;
    }
    
    .emergency-contacts {
        text-align: center;
        width: 100%;
    }
    
    .emergency-contacts div {
        margin-bottom: 12px;
    }
    
    .hotline {
        font-size: 20px;
    }
    
    /* Hero секция */
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stat-number {
        font-size: 24px;
    }
    
    .hero-stat-label {
        font-size: 11px;
    }
    
    /* Главный врач */
    .chief-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .chief-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .chief-photo {
        flex: 0 0 200px;
        min-height: 200px;
    }
    
    .chief-photo img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    .chief-info {
        padding: 0;
    }
    
    .chief-name {
        font-size: 22px;
    }
    
    .reception-info p {
        font-size: 13px;
    }
    
    /* Статистика */
    .stats-section {
        padding: 50px 0;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Новости */
    .news-section {
        padding: 50px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card h3 {
        font-size: 16px;
    }
    
    /* Услуги */
    .services-section {
        padding: 50px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    /* Запись */
    .booking-section {
        padding: 50px 0;
    }
    
    .booking-section h2 {
        font-size: 24px;
    }
    
    .booking-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Карта */
    .map-section {
        padding: 50px 0;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .map-address {
        flex-direction: column;
        text-align: center;
    }
    
    /* Футер */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-second-row .footer-registries {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-third-row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Хлебные крошки */
    .breadcrumbs {
        font-size: 12px;
    }
    
    /* Заголовки страниц */
    .page-title {
        font-size: 28px;
    }
    
    /* Контакты */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        gap: 12px;
    }
    
    .contact-icon {
        font-size: 24px;
        min-width: 32px;
    }
    
    .work-schedule {
        padding: 30px 20px;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .emergency-number {
        font-size: 36px;
    }
    
    /* Врачи */
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doctor-card {
        padding: 20px;
    }
    
    .doctor-photo {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .doctor-card h3 {
        font-size: 18px;
    }
    
    /* Общие */
    .page-content {
        padding: 25px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .hero-stat-number {
        font-size: 20px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .emergency-grid {
        gap: 25px;
    }
    
    .emergency-number {
        font-size: 30px;
    }
}

/* Планшеты (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}