@media (max-width: 1100px) {
    .account-modal {
        padding: 10px;
    }

    .account-modal-panel {
        width: min(560px, calc(100% - 4px));
        max-height: min(88vh, 820px);
        padding: 18px;
    }

    .account-modal-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-modal-form-actions .btn-main,
    .account-modal-form-link {
        width: 100%;
    }

    #hero-intro-content .hero-tagline {
        width: min(480px, calc(100vw - 36px));
    }

    .projects-container.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    #hero-projects.show-projects {
        margin-top: 48px;
    }

    .project-header-row {
        width: min(980px, calc(100% - 48px));
        margin: 0 auto 22px;
        min-height: auto;
        padding-inline: 0;
        position: relative;
        flex-direction: column;
        gap: 12px;
    }

    .project-title-text {
        display: none;
    }

    .project-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        position: static;
        align-self: center;
        transform: none;
        z-index: 2;
        max-width: 100%;
        min-height: auto;
        padding: 10px 28px 14px;
        border: 1px solid rgba(22, 130, 105, 0.2);
        border-radius: 34px 82px 34px 82px;
        background: rgba(255, 255, 255, 0.54);
        box-shadow: 0 12px 28px rgba(15, 43, 37, 0.08);
        color: var(--text-deep);
        font-size: 2.65rem;
        line-height: 1.05;
        letter-spacing: 0;
        text-transform: none;
        text-wrap: balance;
    }

    .project-filter-toggle::after {
        content: '';
        flex: 0 0 auto;
        width: 0.48em;
        height: 0.48em;
        border-right: 0.11em solid currentColor;
        border-bottom: 0.11em solid currentColor;
        transform: translateY(-0.12em) rotate(45deg);
        opacity: 0.78;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .project-filter-toggle[aria-expanded="true"]::after {
        transform: translateY(0.08em) rotate(225deg);
        opacity: 1;
    }

    .project-filter-toggle:hover,
    .project-filter-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.78);
        border-color: rgba(22, 130, 105, 0.34);
        box-shadow: 0 16px 34px rgba(15, 43, 37, 0.1), 0 0 18px rgba(var(--primary-rgb), 0.12);
    }

    #hero-projects h2 {
        font-size: 2.65rem;
        line-height: 1.02;
    }

    .project-main {
        width: min(980px, calc(100% - 48px));
        max-width: 980px;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }

    .project-filter-sidebar {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translate(-50%, -8px);
        opacity: 0;
        pointer-events: none;
        width: min(860px, calc(100vw - 96px));
        padding: 18px;
        border-radius: 34px 82px 34px 82px;
        background: rgba(248, 252, 250, 0.92);
        border-color: rgba(255, 255, 255, 0.82);
        box-shadow: 0 24px 44px rgba(15, 43, 37, 0.12), inset 0 0 0 1px rgba(62, 207, 178, 0.08);
        z-index: 1204;
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, box-shadow 0.24s ease;
    }

    .project-filter-sidebar h3 {
        display: none;
    }

    .project-filter-sidebar.is-open,
    body.projects-filter-open .project-filter-sidebar {
        transform: translate(-50%, 0);
        opacity: 1;
        pointer-events: auto;
    }

    .project-filter-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .project-filter-list .filter-btn {
        width: 100%;
        min-height: 58px;
        border-radius: 24px 58px 24px 58px;
        background: rgba(255, 255, 255, 0.78);
        border-color: rgba(15, 43, 37, 0.22);
        box-shadow: 0 8px 18px rgba(15, 43, 37, 0.06);
    }

    .project-filter-list .filter-btn.active {
        background: linear-gradient(135deg, #168269 0%, #2cb89d 55%, #7af7df 100%);
        color: #ecfff9;
        box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.24);
    }

    .projects-container {
        gap: 18px;
    }

    .projects-container.grid-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card {
        min-height: 310px;
        padding: 26px 20px 22px;
        border-radius: 26px 62px 26px 62px;
    }

    .project-card:hover {
        border-radius: 64px 26px 64px 26px;
        transform: scale(1.01);
    }

    .project-card h3 {
        min-height: 0;
        margin-bottom: 12px;
        padding-inline: 0;
        font-size: clamp(1.34rem, 2.6vw, 1.72rem);
        line-height: 1.12;
    }

    .project-card p {
        margin-bottom: 18px;
        font-size: 0.88rem;
        line-height: 1.52;
    }

    .project-tech {
        gap: 6px;
        margin-bottom: 18px;
    }

    .project-tech span {
        font-size: 0.58rem;
        padding: 3px 7px;
    }

    .project-card .btn {
        min-height: 42px;
        padding: 11px 20px;
        font-size: 0.66rem;
        letter-spacing: 1.1px;
    }
}

@media (min-width: 960px) and (max-width: 1100px) {
    .project-main {
        max-width: 980px;
    }

    .projects-container.grid-view {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-card {
        min-height: 330px;
        padding: 24px 16px 20px;
    }

    .project-card h3 {
        font-size: clamp(1.18rem, 2.1vw, 1.44rem);
    }

    .project-card p {
        font-size: 0.82rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    #pricing {
        padding-inline: 16px;
    }

    .pricing-shell {
        max-width: 100%;
        padding: 34px 22px 26px;
    }

    .pricing-shell h2 {
        font-size: 2.35rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        max-width: 100%;
    }

    .pricing-card {
        min-height: 0;
        height: auto;
        padding: 18px 14px 16px;
        border-radius: 22px 46px 22px 46px;
    }

    .pricing-card:hover,
    .pricing-card.is-expanded {
        border-radius: 58px 24px 58px 24px;
        padding: 20px 16px 16px;
    }

    .pricing-card h3 {
        font-size: 1.08rem;
        padding-left: 0;
    }

    .pricing-card.is-expanded h3 {
        padding-left: 0;
    }

    .pricing-card-bestfit {
        padding-left: 0;
        font-size: 0.72rem;
        max-height: none;
    }

    .pricing-feature-list,
    .pricing-detail-list {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .pricing-detail-btn {
        font-size: 0.7rem;
    }

    .pricing-card-action {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 12px;
        padding-top: 12px;
    }

    .pricing-card-action-price {
        font-size: 1.05rem;
    }

    .pricing-book-btn {
        width: min(180px, 100%);
        min-width: 0;
        margin-left: 0;
        padding-inline: 18px;
    }
}
