@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hero-inner,
    .about-grid,
    .contact-card,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: unset;
        padding: 58px 0 100px;
    }

    .practice-grid,
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-head {
        display: block;
    }

    .section-head p {
        margin-top: 12px;
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topbar-inner {
        justify-content: center;
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .brand small,
    .topbar span:nth-child(2),
    .nav-cta {
        display: none;
    }

    .navbar-inner {
        min-height: 68px;
    }

    .language-links {
        gap: 6px;
    }

    .language-links a {
        min-width: 30px;
        min-height: 30px;
        padding: 0 8px;
        font-size: 11px;
    }

    .hero-stats,
    .practice-grid,
    .articles-grid,
    .checks,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 14px;
        border-radius: 24px;
    }

    .portrait,
    .profile-photo {
        height: 300px;
    }

    section {
        padding: 58px 0;
    }

    .about-content,
    .contact-info,
    .contact-form,
    .admin-form,
    .content-card {
        padding: 26px;
    }

    .footer-inner {
        display: grid;
    }
}
/* floating contact responsive START */
@media (max-width:760px){
    .floating-contact{right:14px;bottom:14px}
    .floating-contact-rail{gap:8px}
    .floating-quick{width:54px;min-height:54px;justify-content:center;padding:10px}
    .floating-quick b,.floating-socials{display:none}
    .floating-quick:hover{transform:translateY(-2px)}
    .floating-contact-panel{top:auto;right:12px;bottom:84px;width:calc(100vw - 24px);max-height:calc(100vh - 110px);padding:18px;border-radius:24px;transform:translateY(24px)}
    .floating-contact-check:checked~.floating-contact-panel{transform:translateY(0)}
    .floating-panel-head h2{font-size:23px}
    .floating-field.two{grid-template-columns:1fr}
    .floating-field textarea{min-height:92px}
}
/* floating contact responsive END */

/* header language dropdown safe responsive START */
@media (max-width: 760px) {
    details.language-links.language-dropdown {
        display: block;
    }

    details.language-links.language-dropdown summary {
        width: 62px;
        min-height: 40px;
        padding: 8px 9px;
    }

    details.language-links.language-dropdown summary span {
        max-width: 34px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    details.language-links.language-dropdown .language-menu {
        right: 0;
        min-width: 140px;
    }
}
/* header language dropdown safe responsive END */



/* footer one line responsive START */
@media (max-width: 1100px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 10px;
        text-align: center;
    }

    .site-footer .footer-brand,
    .site-footer .footer-legal,
    .site-footer .footer-legal-links,
    .site-footer .footer-socials {
        justify-content: center;
    }

    .site-footer .footer-legal {
        flex-wrap: wrap;
    }

    .site-footer .footer-legal p {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 14px 0 88px;
    }

    .site-footer .footer-inner {
        gap: 8px;
    }

    .site-footer .footer-brand {
        flex-direction: column;
        gap: 3px;
    }

    .site-footer .footer-brand b {
        max-width: 100%;
        font-size: 13px;
    }

    .site-footer .footer-brand span {
        font-size: 11px;
    }

    .site-footer .footer-legal {
        gap: 7px;
    }

    .site-footer .footer-legal-title {
        width: 100%;
        font-size: 10px;
    }

    .site-footer .footer-legal p {
        display: none;
    }

    .site-footer .footer-legal-links,
    .site-footer .footer-socials {
        flex-wrap: wrap;
        gap: 5px;
    }

    .site-footer .footer-legal-links a,
    .site-footer .footer-socials a {
        min-height: 27px;
        padding: 7px 8px;
        font-size: 11px;
    }
}
/* footer one line responsive END */
