/* Responsive стили */

/* Большие десктопы */
@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

/* Десктопы */
@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Планшеты */
@media (max-width: 1023px) {
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }

    .flex-col-tablet {
        flex-direction: column;
    }

    .text-center-tablet {
        text-align: center;
    }

    .hidden-tablet {
        display: none;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    .grid-cols-1-mobile {
        grid-template-columns: 1fr;
    }

    .hidden-mobile {
        display: none;
    }

    .text-center-mobile {
        text-align: center;
    }

    /* Улучшаем отступы для мобильных */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Уменьшаем размеры карточек на мобильных */
    .service-card {
        padding: 1.25rem;
    }

    /* Улучшаем форму на мобильных */
    form input,
    form textarea,
    form select {
        font-size: 16px;
        /* Предотвращаем зум в iOS */
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .text-sm-mobile {
        font-size: 0.875rem;
    }

    .p-4-mobile {
        padding: 1rem;
    }

    /* Улучшаем кнопки соцсетей */
    .social-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-buttons a {
        width: 100%;
        justify-content: center;
    }
}

/* Пейзажная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .doctor-photo-hero {
        width: 8rem;
        height: 8rem;
    }
}

/* Высокие экраны */
@media (min-height: 1000px) {
    .hero-section {
        min-height: 100vh;
    }
}

/* Темная тема (если понадобится) */
@media (prefers-color-scheme: dark) {
    .dark\:bg-gray-900 {
        background-color: #111827;
    }

    .dark\:text-white {
        color: #ffffff;
    }
}

/* Печать */
@media print {
    .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    a {
        text-decoration: underline;
        color: #000;
    }
}

/* Фикс для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }

    /* Предотвращаем зум при фокусе на iOS */
    input,
    textarea,
    select {
        font-size: 16px;
    }
}

/* Фикс для Firefox */
@-moz-document url-prefix() {
    .service-card {
        border: 1px solid #e5e7eb;
    }
}

/* Поддержка старых браузеров */
@supports not (display: grid) {
    .grid {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .grid>* {
        flex: 1 1 300px;
    }
}