/* Public website mobile / RTL presentation — does not change behavior */

.site-header {
    backdrop-filter: blur(10px);
}

.header-content {
    min-width: 0;
}

.site-logo-text h1,
.header-title h1,
.home-section-head h2 {
    overflow-wrap: anywhere;
}

.pagination {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 32px;
}

@media (max-width: 1100px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0 36px;
    }

    .home-hero-visual {
        height: auto;
        min-height: 220px;
        max-width: 420px;
        margin-inline: auto;
    }

    .home-search-form {
        grid-template-columns: 1fr;
    }

    .home-search-button {
        width: 100%;
    }

    .doctors-search-row {
        grid-template-columns: 1fr;
    }

    .doctors-search-button {
        width: 100%;
        height: 52px;
    }
}

@media (max-width: 800px) {
    .top-bar {
        height: auto;
        min-height: 40px;
        padding: 8px 0;
    }

    .top-bar-content {
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-bar-info {
        flex-wrap: wrap;
        gap: 10px;
    }

    .home-hero {
        min-height: 0;
    }

    .home-hero-content h2 {
        font-size: 28px;
        line-height: 1.45;
    }

    .home-hero-trust {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .home-trust-line {
        display: none;
    }

    .home-hero-trust > * {
        flex: 1 1 140px;
    }
}

@media (max-width: 600px) {
    .site-container,
    .container {
        width: min(100% - 24px, 1240px);
    }

    .header-actions {
        gap: 6px;
    }

    .theme-toggle {
        width: 44px;
        height: 44px;
    }

    .doctors-search-panel {
        width: min(100% - 24px, 1120px);
        padding: 12px;
        border-radius: 16px;
    }

    .field,
    .home-search-field {
        min-height: 48px;
        height: 48px;
    }

    .home-search-button {
        height: 48px;
    }

    .page-button {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 430px) {
    .top-bar-info span:last-child {
        display: none;
    }

    .home-hero-content h2 {
        font-size: 24px;
    }

    .specialties-grid,
    .home-doctors-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .public-nav-toggle,
    .theme-toggle {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
}
