@media (max-width: 1080px) {
    .header-topbar { display: none; }
    .header-main { grid-template-columns: auto auto; justify-content: space-between; }
    .menu-toggle { display: block; grid-column: 2; grid-row: 1; }
    .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 380px); z-index: 101; display: none; flex-direction: column; justify-content: flex-start; gap: 0; background: var(--white); box-shadow: -15px 0 40px rgba(7,57,75,.16); padding: 125px 35px 35px; }
    .main-nav.is-open { display: flex; }
    .main-nav a { border-bottom: 1px solid var(--border); padding: 17px 0; font-size: 1.05rem; }
    .main-nav a { color: #33434a; }
    .main-nav a::after { display: none; }
    .main-nav a.is-active { color: var(--primary); }
    .header-actions { display: none; }
    .menu-toggle[aria-expanded="true"] { position: fixed; top: 45px; right: 20px; z-index: 102; }
    .menu-toggle[aria-expanded="true"] span:not(.sr-only) { background: var(--primary); }
    .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid > div:nth-child(2) { border-right: 0; }
    .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .trust-grid > div:first-child { padding-left: 25px; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 820px) {
    body { padding-bottom: 66px; font-size: 16px; }
    .container { width: min(calc(100% - 32px), var(--container)); }
    .section { padding: 76px 0; }
    .topline { display: none; }
    .header-main { min-height: 74px; }
    .brand__mark { width: 38px; height: 38px; }
    .hero { margin-top: -28px; padding: 76px 0 78px; }
    .hero__grid, .section-heading--split, .intro-grid, .contact-preview__grid, .detail-layout, .team-note, .contact-page-grid, .appointment-layout { grid-template-columns: 1fr; }
    .hero__grid { gap: 46px; }
    .hero__content h1 { font-size: clamp(2.2rem, 9vw, 3.1rem); }
    .hero-visual { max-width: 620px; }
    .hero-visual__status { top: 24px; left: 8px; }
    .trust-strip { margin-top: -24px; }
    .photo-placeholder--hero { min-height: 490px; }
    .section-heading--split, .team-note { gap: 20px; }
    .intro-grid, .contact-preview__grid, .contact-page-grid, .appointment-layout { gap: 48px; }
    .intro-grid .photo-placeholder { max-width: 620px; }
    .approach-grid { grid-template-columns: 1fr; }
    .approach-grid article { padding: 32px; }
    .cta-section { padding: 42px; }
    .detail-aside, .appointment-copy { position: static; }
    .detail-aside { max-width: 500px; }
    .values-grid { gap: 28px; }
    .contact-cards { max-width: 620px; }
    .map-placeholder--large { margin-bottom: 76px; }
    .site-footer { padding-top: 60px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr; }
    .footer-grid > div:last-child { grid-column: auto; }
    .mobile-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 66px; border-top: 1px solid rgba(255,255,255,.14); background: var(--primary-dark); color: var(--white); box-shadow: 0 -8px 25px rgba(7,57,75,.16); }
    .mobile-actions a { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid rgba(255,255,255,.13); font-size: .75rem; font-weight: 600; }
    .mobile-actions a:last-child { border-right: 0; background: var(--accent); color: #24383f; }
    .mobile-actions span { font-size: 1.05rem; line-height: 1.2; }
    .floating-whatsapp { right: 16px; bottom: 82px; width: 54px; min-width: 54px; height: 54px; padding: 0; border-radius: 50%; }
    .floating-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .floating-whatsapp svg { width: 25px; height: 25px; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.15rem; }
    h2 { font-size: 1.75rem; }
    .section { padding: 64px 0; }
    .hero { padding-top: 42px; }
    .hero { margin-top: -12px; padding-top: 62px; }
    .hero__content > p { font-size: 1.02rem; }
    .button-row { align-items: stretch; flex-direction: column; }
    .button-row .button { width: 100%; }
    .hero__note { align-items: flex-start; }
    .photo-placeholder--hero { min-height: 390px; }
    .photo-placeholder--hero { border-radius: 90px 8px 8px 8px; }
    .hero-visual { padding-right: 10px; }
    .hero-visual__status { top: 18px; left: -4px; padding: 10px 12px; }
    .hero-visual__card { min-width: 145px; }
    .hero-proof { flex-wrap: wrap; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-grid > div { min-height: 94px; border-right: 0; border-bottom: 1px solid var(--border); padding: 18px 10px; }
    .trust-grid > div:first-child { padding-left: 10px; }
    .trust-grid > div:last-child { border-bottom: 0; }
    .service-grid, .team-grid, .values-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 290px; padding: 28px; }
    .photo-placeholder--portrait, .photo-placeholder--landscape { min-height: 390px; }
    .cta-section { flex-direction: column; align-items: flex-start; padding: 35px 28px; }
    .cta-section .button { width: 100%; }
    .page-hero { padding: 58px 0 54px; }
    .page-hero h1 { font-size: 2.55rem; }
    .page-hero__inner { padding-left: 20px; }
    .page-hero p { font-size: 1rem; }
    .detail-layout { gap: 45px; }
    .photo-placeholder--treatment { min-height: 280px; }
    .contact-cards, .form-row { grid-template-columns: 1fr; }
    .contact-cards > * { min-height: 125px; }
    .contact-message, .form-panel { padding: 28px 22px; }
    .map-placeholder--large { width: 100%; min-height: 330px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { gap: 8px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Full-site redesign responsive layer */
@media (max-width: 1080px) {
    .site-header {
        top: 0;
        width: 100%;
        margin-top: 0;
        border-inline: 0;
        border-radius: 0;
    }
    main,
    .page-home main {
        margin-top: -76px;
    }
    .header-main {
        width: min(calc(100% - 32px), var(--container));
        padding-inline: 0;
    }
    .main-nav {
        top: 0;
        right: 0;
        border-radius: 0;
    }
    .inner-hero,
    .detail-hero,
    .med-hero {
        padding-top: 150px;
    }
    .inner-hero__grid,
    .detail-hero__grid,
    .story-block__grid,
    .contact-studio__grid,
    .appointment-studio__grid,
    .treatment-detail__grid {
        grid-template-columns: 1fr;
    }
    .inner-hero__panel,
    .detail-hero__card {
        max-width: 560px;
    }
    .service-studio__grid,
    .philosophy__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .doctor-profile {
        grid-template-columns: 1fr;
    }
    .appointment-guide,
    .treatment-detail__side {
        position: static;
    }
}

@media (max-width: 820px) {
    .inner-hero,
    .detail-hero,
    .med-hero {
        padding-top: 128px;
        padding-bottom: 72px;
    }
    .inner-hero__grid,
    .detail-hero__grid {
        gap: 36px;
    }
    .inner-hero h1,
    .detail-hero h1 {
        font-size: clamp(2rem, 8vw, 2.65rem);
    }
    .split-cta {
        grid-template-columns: 1fr;
        margin-bottom: 76px;
        padding: 34px;
    }
    .footer-cta {
        align-items: flex-start;
        flex-direction: column;
    }
    .service-studio__grid,
    .team-studio__grid,
    .philosophy__grid {
        grid-template-columns: 1fr;
    }
    .story-block__visual {
        min-height: 420px;
    }
    .location-map,
    .location-map iframe {
        min-height: 360px;
    }
}

@media (max-width: 600px) {
    .inner-hero,
    .detail-hero,
    .med-hero {
        padding-top: 116px;
        padding-bottom: 58px;
    }
    .inner-hero__panel,
    .detail-hero__card,
    .message-panel,
    .appointment-form-card,
    .appointment-guide,
    .treatment-detail__side {
        border-radius: 16px;
        padding: 24px;
    }
    .inner-hero p,
    .detail-hero p {
        font-size: 1rem;
    }
    .service-tile,
    .philosophy__grid article {
        min-height: auto;
        padding: 26px;
    }
    .doctor-profile__photo,
    .doctor-profile__photo img {
        min-height: 330px;
    }
    .doctor-profile__body {
        padding: 26px;
    }
    .contact-directory a {
        padding: 20px;
    }
    .appointment-guide li,
    .timeline-list li {
        align-items: flex-start;
    }
    .site-footer {
        border-radius: 24px 24px 0 0;
    }
    .footer-cta {
        padding: 26px;
    }
    .footer-cta .button {
        width: 100%;
    }
}
