/* Responsive overrides for tablets and phones. */

@media (max-width: 991.98px) {
    section {
        padding: 72px 0;
    }

    body.mobile-menu-open {
        overflow-y: auto;
        overscroll-behavior: none;
    }

    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0.85rem 0;
    }

    .navbar > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-brand img {
        height: 34px;
    }

    .navbar-brand-text {
        font-size: 0.82rem;
        letter-spacing: 0.14em;
    }

    .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0.5rem 0.65rem;
        border-radius: 14px;
        border-color: rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none !important;
        position: relative;
        z-index: 1055;
    }

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

    .navbar-toggler-icon {
        position: relative;
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background-color: #ffffff;
        background-image: none !important;
        transition: background-color 0.2s ease, transform 0.25s ease;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background-color: #ffffff;
        transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
    }

    .navbar-toggler-icon::before {
        top: -7px;
    }

    .navbar-toggler-icon::after {
        top: 7px;
    }

    .navbar-toggler.is-active .navbar-toggler-icon {
        background-color: transparent;
    }

    .navbar-toggler.is-active .navbar-toggler-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .navbar-toggler.is-active .navbar-toggler-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.5);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 1030;
        touch-action: none;
    }

    body.mobile-menu-open .mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 380px);
        max-width: 380px;
        height: 100vh;
        max-height: 100dvh;
        margin-top: 0;
        padding: calc(88px + env(safe-area-inset-top)) 1.1rem calc(1.5rem + env(safe-area-inset-bottom));
        border-radius: 28px 0 0 28px;
        background: rgba(11, 18, 32, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-right: none;
        box-shadow: -28px 0 60px rgba(2, 6, 23, 0.42);
        transform: translate3d(100%, 0, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        align-items: flex-start;
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, visibility 0.25s ease;
        will-change: transform, opacity;
        z-index: 1040;
    }

    .navbar-collapse.collapse:not(.show) {
        display: flex !important;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing:not(.is-closing) {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-collapse.collapsing,
    .navbar-collapse.collapsing.is-closing {
        display: flex !important;
        height: 100vh !important;
        max-height: 100dvh !important;
        overflow-y: auto;
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, visibility 0.25s ease !important;
    }

    .navbar-collapse.collapsing.is-closing {
        transform: translate3d(100%, 0, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .navbar-nav {
        width: 100%;
        min-height: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .navbar-nav .nav-item {
        padding: 0.3rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-nav .nav-item:last-child {
        margin-top: 0.65rem;
        padding-top: 0.9rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .hero-section {
        min-height: auto;
        padding: 124px 0 72px;
    }

    .hero-section .lead {
        max-width: 680px;
        margin: 0 auto 2rem;
    }

    .hero-section .d-grid {
        width: min(100%, 520px);
        margin: 0 auto;
    }

    #workflow .row {
        row-gap: 1.5rem;
    }

    #workflow .bg-white {
        padding: 1.35rem !important;
    }

    #workflow .workflow-code-card {
        min-height: 240px;
        padding: 1.65rem !important;
    }

    #workflow code {
        margin: 0;
        padding: 0;
        font-size: 0.95rem;
        line-height: 1.65;
        overflow-x: auto;
        white-space: normal;
        word-break: normal;
    }

    .custom-dev-actions .btn {
        flex: 1 1 220px;
    }

    #pricing .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .p2p-pricing-toggle-wrapper {
        gap: 10px;
        flex-wrap: wrap;
    }

    .p2p-pricing-mode-label {
        font-size: 0.92rem;
    }

    .project-item .card-body {
        padding: 1.25rem;
    }

    .project-item .card-body .mt-3 {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .project-item .badge {
        margin: 0;
    }

    .project-mockup-more-note {
        padding: 10px 12px;
        font-size: 10px;
    }

    .project-mockup-more-screen .project-mockup-grid {
        gap: 8px;
    }

    .project-mockup-more-screen .project-mockup-grid.tall div {
        height: auto !important;
        min-height: 88px;
        padding: 10px 9px;
    }

    .project-mockup-more-screen .project-mockup-grid div span {
        margin-bottom: 6px;
        font-size: 9px;
        line-height: 1.15;
    }

    .project-mockup-more-screen .project-mockup-grid div b {
        font-size: 10px;
        line-height: 1.2;
    }

    .calculator-mobile {
        display: grid;
        gap: 16px;
    }

    .calculator-mobile-summary,
    .calculator-mobile-panel {
        padding: 22px;
        border-radius: 28px;
        box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
    }

    .calculator-mobile-summary {
        background: linear-gradient(145deg, #102445 0%, #17386a 55%, #0f62fe 100%);
        color: #ffffff;
    }

    .calculator-mobile-badge {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 0 12px;
        margin-bottom: 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .calculator-mobile-summary h3 {
        margin-bottom: 10px;
        font-size: 1.7rem;
        font-weight: 800;
        line-height: 1.08;
    }

    .calculator-mobile-summary-text {
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .calculator-mobile-prices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 18px 0 14px;
    }

    .calculator-mobile-prices div {
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .calculator-mobile-prices span {
        display: block;
        margin-bottom: 6px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.76rem;
        font-weight: 700;
    }

    .calculator-mobile-prices strong {
        display: block;
        font-size: 1.18rem;
        font-weight: 800;
        line-height: 1.15;
    }

    .calculator-mobile-features {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 14px;
    }

    .calculator-mobile-features span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .calculator-mobile-note {
        color: rgba(255, 255, 255, 0.76);
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .calculator-mobile-panel {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.14);
    }

    .calculator-mobile-section + .calculator-mobile-section {
        margin-top: 18px;
    }

    .calculator-mobile-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .calculator-mobile-section-head span,
    .calculator-mobile-section-head strong {
        color: #1d3557;
        font-size: 0.92rem;
        font-weight: 800;
    }

    .calculator-mobile-section-head small {
        color: #6b7d98;
        font-size: 0.78rem;
        font-weight: 600;
    }

    .calculator-mobile-types {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .calculator-mobile-type {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        min-height: 82px;
        padding: 14px;
        border: 1px solid rgba(13, 110, 253, 0.12);
        border-radius: 20px;
        background: #f8fbff;
        color: #29467e;
        text-align: left;
        transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .calculator-mobile-type strong {
        font-size: 0.92rem;
        font-weight: 800;
        line-height: 1.15;
    }

    .calculator-mobile-type small {
        color: #6b7d98;
        font-size: 0.74rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .calculator-mobile-type.is-active {
        background: linear-gradient(135deg, #0d6efd, #458dff);
        border-color: transparent;
        color: #ffffff;
        box-shadow: 0 14px 26px rgba(13, 110, 253, 0.18);
    }

    .calculator-mobile-type.is-active small {
        color: rgba(255, 255, 255, 0.82);
    }

    .calculator-mobile-range {
        width: 100%;
        accent-color: #0d6efd;
    }

    .calculator-mobile-range-scale {
        display: flex;
        justify-content: space-between;
        margin-top: 6px;
        color: #90a0b8;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .calculator-mobile-checks {
        display: grid;
        gap: 10px;
    }

    .calculator-mobile-check {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        min-height: 64px;
        padding: 14px;
        border: 1px solid rgba(13, 110, 253, 0.1);
        border-radius: 18px;
        background: #f8fbff;
        text-align: left;
        transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .calculator-mobile-check-copy {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .calculator-mobile-check-copy strong {
        color: #29467e;
        font-size: 0.9rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .calculator-mobile-check-copy small {
        color: #6b7d98;
        font-size: 0.74rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .calculator-mobile-check-mark {
        position: relative;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 1.5px solid rgba(13, 110, 253, 0.24);
        background: #ffffff;
        flex: 0 0 auto;
    }

    .calculator-mobile-check-mark::after {
        content: "";
        position: absolute;
        inset: 5px;
        border-radius: 50%;
        background: #ffffff;
        opacity: 0;
        transform: scale(0.5);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .calculator-mobile-check.is-active {
        border-color: transparent;
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(69, 141, 255, 0.14));
        box-shadow: 0 12px 24px rgba(13, 110, 253, 0.12);
    }

    .calculator-mobile-check.is-active .calculator-mobile-check-mark {
        background: #0d6efd;
        border-color: #0d6efd;
        box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.08);
    }

    .calculator-mobile-check.is-active .calculator-mobile-check-mark::after {
        opacity: 1;
        transform: scale(1);
    }

    #tech .stack-relations {
        display: none;
    }

    .accordion-button {
        padding: 1rem 1.15rem;
        font-size: 1rem;
        line-height: 1.4;
    }

    .accordion-body {
        padding: 0 1.15rem 1.15rem;
    }

    footer#contact {
        padding: 4.5rem 0 !important;
    }

    #contactForm {
        padding: 1.75rem !important;
        border-radius: 22px !important;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 64px 0;
    }

    .navbar {
        padding: 0.7rem 0;
    }

    .navbar-brand img {
        height: 32px;
    }

    .navbar-brand-text {
        font-size: 0.78rem;
        letter-spacing: 0.12em;
    }

    .navbar-collapse {
        width: min(90vw, 360px);
        padding-top: calc(84px + env(safe-area-inset-top));
    }

    .hero-section {
        padding: 108px 0 56px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: clamp(2.2rem, 9vw, 3.6rem);
        line-height: 1.08;
        margin-bottom: 1.25rem !important;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.75rem !important;
    }

    .hero-section .d-grid {
        width: 100%;
        gap: 0.75rem !important;
    }

    .hero-section .btn {
        width: 100%;
        padding: 0.95rem 1.25rem;
    }

    #features .card,
    #workflow .bg-white,
    #pricing .card {
        border-radius: 20px;
    }

    #features .card {
        padding: 1.5rem !important;
    }

    #workflow .bg-white {
        padding: 1.15rem !important;
    }

    #workflow code {
        font-size: 0.86rem;
    }

    .custom-dev-section .row {
        row-gap: 2rem;
    }

    #custom-dev .custom-dev-service-card {
        border-radius: 20px;
    }

    #custom-dev .custom-dev-footnote {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .custom-dev-actions {
        gap: 0.85rem;
    }

    .custom-dev-actions .btn {
        width: 100%;
    }

    .custom-dev-tag {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    #development-stages .text-center.mb-5,
    #portfolio .text-center.mb-5,
    #calculator .text-center.mb-5,
    #faq .text-center.mb-5 {
        margin-bottom: 2.5rem !important;
    }

    .project-item .card {
        border-radius: 20px;
    }

    .project-item .card-body {
        padding: 1rem 1rem 1.25rem;
    }

    #tech .col-6 {
        margin-bottom: 1rem !important;
    }

    #tech i {
        font-size: 2.35rem !important;
    }

    #tech p {
        font-size: 0.92rem;
    }

    .calculator-shell {
        gap: 1rem;
    }

    .calculator-mobile-summary,
    .calculator-mobile-panel {
        padding: 18px;
        border-radius: 24px;
    }

    .calculator-mobile-summary h3 {
        font-size: 1.48rem;
    }

    .calculator-mobile-summary-text {
        font-size: 0.9rem;
    }

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

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

    .calculator-mobile-type {
        min-height: 72px;
        padding: 13px;
        border-radius: 18px;
    }

    .calculator-mobile-check {
        min-height: 60px;
        padding: 13px;
        border-radius: 16px;
    }

    .calculator-mobile-check-copy strong {
        font-size: 0.86rem;
    }

    .calculator-mobile-check-copy small {
        font-size: 0.72rem;
    }

    .calculator-panel,
    .calculator-result {
        padding: 20px;
        border-radius: 22px;
    }

    .calculator-group + .calculator-group {
        margin-top: 20px;
    }

    .calculator-label {
        margin-bottom: 12px;
        font-size: 0.9rem;
    }

    .calculator-options {
        gap: 10px;
    }

    .calculator-option {
        min-height: 60px;
        padding: 12px 14px;
        border-radius: 18px;
    }

    .calculator-option-copy {
        gap: 4px;
    }

    .calculator-option-copy strong {
        font-size: 0.9rem;
    }

    .calculator-option-copy small {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .calculator-range-head strong {
        font-size: 1rem;
    }

    .calculator-checks {
        gap: 10px;
    }

    .calculator-check {
        align-items: flex-start;
        gap: 10px;
        min-height: 0;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .calculator-check input {
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }

    .calculator-check span {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .calculator-badge {
        margin-bottom: 12px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .calculator-result h3 {
        font-size: 1.55rem;
        line-height: 1.1;
    }

    .calculator-result .text-muted {
        font-size: 0.95rem;
    }

    .calculator-price-row {
        gap: 10px;
        margin: 18px 0 14px;
    }

    .calculator-price-row div {
        padding: 14px;
        border-radius: 16px;
    }

    .calculator-price-row span {
        margin-bottom: 6px;
        font-size: 0.78rem;
    }

    .calculator-price-row strong {
        font-size: 1.25rem;
    }

    .calculator-feature-list {
        gap: 8px;
        margin-bottom: 14px;
    }

    .calculator-feature-list span {
        min-height: 28px;
        padding: 0 12px;
        font-size: 0.74rem;
    }

    .calculator-note {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .calculator-result .btn {
        width: 100%;
        padding: 0.95rem 1rem;
        font-size: 1rem;
    }

    .accordion-button {
        font-size: 0.95rem;
    }

    footer#contact p {
        font-size: 0.98rem;
    }

    #contactForm {
        padding: 1.25rem !important;
        border-radius: 20px !important;
    }

    #backToTop {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 575.98px) {
    section {
        padding: 56px 0;
    }

    .navbar-brand img {
        height: 30px;
    }

    .navbar-brand {
        gap: 10px;
    }

    .navbar-brand-text {
        font-size: 0.74rem;
        letter-spacing: 0.1em;
    }

    .navbar-collapse {
        width: min(92vw, 340px);
        padding-top: calc(80px + env(safe-area-inset-top));
        border-radius: 24px 0 0 24px;
    }

    .hero-section {
        padding: 96px 0 48px;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 10.5vw, 3rem);
    }

    .hero-section .lead {
        font-size: 0.96rem;
    }

    .feature-icon {
        width: 68px;
        height: 68px;
    }

    #workflow .bg-white {
        padding: 1rem !important;
    }

    #workflow code {
        font-size: 0.8rem;
    }

    .custom-dev-tags {
        gap: 10px;
    }

    .dev-stage-item {
        gap: 12px;
    }

    .dev-stage-icon {
        width: 70px;
        height: 70px;
        border-radius: 20px;
        font-size: 1.6rem;
    }

    .dev-stage-title {
        font-size: 1.05rem;
    }

    .dev-stage-text {
        font-size: 0.88rem;
    }

    .custom-dev-tag {
        width: 100%;
        justify-content: center;
    }

    .project-mockup-more-note {
        font-size: 9.5px;
        line-height: 1.5;
    }

    .project-mockup-more-screen .project-mockup-grid.tall div {
        height: auto !important;
        min-height: 104px;
        padding: 10px 8px;
    }

    .project-mockup-more-screen .project-mockup-grid div span {
        font-size: 8.5px;
    }

    .project-mockup-more-screen .project-mockup-grid div b {
        font-size: 9.5px;
    }

    .calculator-shell {
        gap: 0.85rem;
    }

    .calculator-mobile {
        gap: 12px;
    }

    .calculator-mobile-summary,
    .calculator-mobile-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .calculator-mobile-badge {
        min-height: 28px;
        margin-bottom: 12px;
        font-size: 0.66rem;
    }

    .calculator-mobile-summary h3 {
        font-size: 1.32rem;
    }

    .calculator-mobile-summary-text,
    .calculator-mobile-note {
        font-size: 0.84rem;
    }

    .calculator-mobile-prices {
        gap: 8px;
        margin: 14px 0 12px;
    }

    .calculator-mobile-prices div {
        padding: 12px;
        border-radius: 16px;
    }

    .calculator-mobile-prices strong {
        font-size: 1.06rem;
    }

    .calculator-mobile-features span {
        min-height: 26px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .calculator-mobile-section + .calculator-mobile-section {
        margin-top: 16px;
    }

    .calculator-mobile-section-head {
        margin-bottom: 10px;
    }

    .calculator-mobile-section-head span,
    .calculator-mobile-section-head strong {
        font-size: 0.84rem;
    }

    .calculator-mobile-section-head small {
        font-size: 0.7rem;
    }

    .calculator-mobile-type {
        min-height: 68px;
        padding: 12px;
        border-radius: 16px;
    }

    .calculator-mobile-type strong {
        font-size: 0.86rem;
    }

    .calculator-mobile-type small {
        font-size: 0.7rem;
    }

    .calculator-mobile-check {
        min-height: 56px;
        padding: 12px;
        border-radius: 14px;
    }

    .calculator-mobile-check-copy strong {
        font-size: 0.82rem;
    }

    .calculator-mobile-check-copy small {
        font-size: 0.68rem;
    }

    .calculator-mobile-check-mark {
        width: 20px;
        height: 20px;
    }

    .calculator-panel,
    .calculator-result {
        padding: 16px;
        border-radius: 18px;
    }

    .calculator-group + .calculator-group {
        margin-top: 16px;
    }

    .calculator-label {
        margin-bottom: 10px;
        font-size: 0.82rem;
    }

    .calculator-option {
        min-height: 56px;
        padding: 11px 12px;
        border-radius: 16px;
    }

    .calculator-option-copy strong {
        font-size: 0.84rem;
    }

    .calculator-option-copy small {
        font-size: 0.68rem;
    }

    .calculator-check {
        padding: 11px 12px;
        border-radius: 14px;
    }

    .calculator-check span {
        font-size: 0.84rem;
    }

    .calculator-badge {
        font-size: 0.66rem;
    }

    .calculator-result h3 {
        font-size: 1.38rem;
    }

    .calculator-result .text-muted {
        font-size: 0.88rem;
    }

    .calculator-price-row {
        margin: 16px 0 12px;
    }

    .calculator-price-row div {
        padding: 12px;
        border-radius: 14px;
    }

    .calculator-price-row span {
        font-size: 0.74rem;
    }

    .calculator-price-row strong {
        font-size: 1.12rem;
    }

    .calculator-feature-list span {
        min-height: 26px;
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .calculator-note {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .accordion-button {
        padding: 0.95rem 1rem;
        font-size: 0.92rem;
    }

    .accordion-body {
        padding: 0 1rem 1rem;
        font-size: 0.95rem;
    }

    #contactForm {
        padding: 1rem !important;
    }

    #contactForm .form-control,
    #contactForm .form-select {
        min-height: 48px;
    }

    #contactForm textarea.form-control {
        min-height: 120px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .portal-mockup {
        animation: none;
    }

    .card:hover .feature-icon,
    .pricing-card:hover,
    .project-item .card:hover,
    .portal-mockup:hover,
    .project-item:hover .project-mockup-window,
    .project-item:hover .project-mockup-grid div,
    .project-item:hover .project-mockup-cards div,
    .project-item:hover .project-mockup-stat-row div,
    .project-item:hover .project-mockup-branches div,
    .project-item:hover .project-mockup-request-card,
    .project-item:hover .project-mockup-mini-table div,
    .project-item:hover .project-mockup-finance-logos span,
    .project-item:hover .project-mockup-lms-stat-card {
        transform: none;
        box-shadow: none;
    }

    #backToTop {
        animation: none;
    }
}
