/* Responsive Design - Mobile First Approach */

/* Tablet Styles (768px to 1023px) */
@media screen and (max-width: 1023px) {
    .hero-headline {
        font-size: clamp(2.25rem, 4.5vw + 0.5rem, 3.25rem);
    }

    .section-title {
        font-size: clamp(1.75rem, 3vw + 0.5rem, 2rem);
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .hero-content {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 2rem;
    }

    .hero-subheadline {
        max-width: 100%;
    }

    .hero-visual {
        min-height: 440px;
    }

    .hero-logo,
    .hero-illustration {
        width: min(100%, 420px);
    }

    .testimonials-carousel {
        max-width: 100%;
    }

    .hero-headline {
        max-width: 100%;
    }

    .contact-wrapper {
        gap: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .feature-item {
        min-height: auto;
    }

    .feature-text {
        padding: 3.5rem 2.5rem;
    }

    .feature-title {
        font-size: clamp(2rem, 4vw, 2.75rem);
    }

    .features {
        padding: 80px 0 0;
    }

    .feature-page-hero-grid {
        gap: 2.5rem;
    }

    .related-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles (767px and below) */
@media screen and (max-width: 767px) {
    /* Navigation */
    .navbar {
        padding-top: env(safe-area-inset-top, 0);
    }

    .nav-wrapper {
        padding: 0.75rem 0;
        min-height: var(--nav-height);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        top: var(--nav-height);
        background: rgba(17, 21, 29, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .mobile-nav-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        height: calc(100dvh - var(--nav-height));
        max-height: calc(100dvh - var(--nav-height));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        text-align: center;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-100%);
        border-bottom: none;
        padding: 0.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0));
        gap: 0;
        z-index: 999;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        width: 100%;
    }

    .nav-link.btn-nav {
        margin: 0.75rem auto 0.5rem;
        width: min(100%, 280px);
        padding: 0.875rem 1.5rem;
    }

    /* Features dropdown — mobile accordion */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }

    .nav-dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--bg-gray);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        transition: max-height 0.35s ease;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        max-height: min(70vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.25rem 0;
        transform: none;
    }

    .nav-dropdown-link {
        display: block;
        padding: 0.75rem 1.25rem;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }

    /* Feature detail pages */
    .feature-page-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-page-hero:has(.screenshot-mobile),
    .feature-page-hero:has(.feature-page-hero-media-composite) {
        padding: 1rem 0 1.5rem;
    }

    .feature-page-hero-media-composite {
        flex-direction: column;
        align-items: center;
        max-width: 320px;
        min-height: auto;
        margin-bottom: 0;
    }

    .feature-page-hero-illustration {
        flex: none;
        max-width: min(260px, 80vw);
        max-height: min(200px, 32vh);
    }

    .feature-page-hero-phone {
        flex: none;
        position: static;
        max-width: min(170px, 52vw);
        max-height: min(300px, 38vh);
        margin-left: 0;
        margin-top: -2rem;
        transform: none;
        right: auto;
        bottom: auto;
    }

    .feature-page-hero-media {
        min-height: auto;
        order: -1;
    }

    .feature-page-hero-image.screenshot-mobile {
        max-width: min(220px, 58vw);
        max-height: min(360px, calc(100svh - 480px));
    }

    .how-it-works-image.screenshot-mobile {
        max-width: min(200px, 55vw);
        max-height: min(340px, 40vh);
    }

    .feature-page-details {
        grid-template-columns: 1fr;
    }

    .how-it-works-step,
    .how-it-works-step.reverse {
        grid-template-columns: 1fr;
    }

    .how-it-works-step.reverse .how-it-works-media,
    .how-it-works-step.reverse .how-it-works-text {
        order: unset;
    }

    .how-it-works-text {
        padding: 2rem 1.5rem;
    }

    .related-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Typography */
    h1 {
        font-size: clamp(1.75rem, 6vw, 2rem);
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    .hero-headline {
        font-size: clamp(1.875rem, 7.5vw, 2.5rem);
        line-height: 1.1;
    }

    .hero-subheadline {
        font-size: clamp(1rem, 3.5vw, 1.1875rem);
    }

    .section-title {
        font-size: clamp(1.5rem, 5.5vw, 1.75rem);
        padding: 0 0.25rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 0.25rem;
        margin-bottom: 2.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .faq-section-subtitle.faq-intro {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: calc(var(--nav-height) + 1.5rem) 0 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-headline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-highlights {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        max-width: min(100%, 340px);
    }

    .hero-domain {
        text-align: center;
        font-size: 0.875rem;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: none;
    }

    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        min-height: auto;
        order: -1;
        padding: 0.5rem 0;
    }

    .hero-logo,
    .hero-illustration {
        width: min(100%, 280px);
        transform: none !important;
    }

    /* Sections */
    section {
        padding: 3.5rem 0;
    }

    .features {
        padding: 3.5rem 0 0;
    }

    /* Problems Grid */
    .problems-cascade {
        font-size: 0.9375rem;
    }

    .problems-bridge {
        font-size: 1rem;
    }

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .problem-card {
        flex-direction: column;
        text-align: center;
    }
    
    .problem-number {
        margin: 0 auto;
    }

    /* Platform Showcase */
    .platform-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .platform-card {
        padding: 2rem;
        min-height: auto;
    }
    
    .platform-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .platform-icon {
        width: 28px;
        height: 28px;
    }
    
    .platform-title {
        font-size: 1.5rem;
    }
    
    .platform-description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* App Download Section */
    .app-download-section {
        padding: 60px 0;
    }

    .app-download-banner {
        min-height: auto;
    }

    .app-download-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        padding: 2.5rem 2rem 0;
        text-align: center;
    }

    .app-download-text {
        align-items: center;
        max-width: none;
    }

    .app-download-title {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    .app-download-description {
        font-size: 1rem;
        max-width: none;
    }

    .app-download-banner {
        border-radius: 16px;
    }

    .app-download-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
        padding: 2rem 1.25rem 0;
        text-align: center;
    }

    .app-download-text {
        align-items: center;
        max-width: none;
    }

    .app-download-badges {
        justify-content: center;
        width: 100%;
    }

    .app-download-badge {
        width: auto;
        max-width: none;
    }

    .app-download-badge-img {
        height: 38px;
    }

    .app-download-visual {
        min-height: auto;
        padding: 0;
        margin-top: 0.5rem;
    }

    .app-download-phones {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: min(100%, 300px);
        margin: 0 auto -1rem;
    }

    .app-download-vertical-label {
        display: none;
    }

    /* Technical Grid */
    .technical-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Use Cases */
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .use-case-card h3 {
        padding-right: 0;
    }
    
    /* Features List */
    .feature-item {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .feature-item.reverse .feature-media {
        order: 1;
    }
    
    .feature-item.reverse .feature-text {
        order: 2;
    }
    
    .feature-media {
        height: 300px;
    }

    .feature-media.feature-media-composite {
        height: auto;
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .feature-item .feature-media-composite .feature-page-hero-media-composite {
        flex-direction: column;
        align-items: center;
        max-width: 360px;
        padding: 1rem;
    }

    .feature-item .feature-page-hero-illustration {
        flex: none;
        max-width: min(280px, 85vw);
        max-height: min(220px, 35vh);
    }

    .feature-item .feature-page-hero-phone {
        flex: none;
        max-width: min(180px, 55vw);
        max-height: min(320px, 40vh);
        margin-left: 0;
        margin-top: -2rem;
    }

    .feature-page-hero-media-composite {
        flex-direction: column;
        align-items: center;
        max-width: 320px;
    }

    .feature-page-hero-illustration {
        flex: none;
        max-width: min(260px, 80vw);
        max-height: min(200px, 32vh);
    }

    .feature-page-hero-phone {
        flex: none;
        max-width: min(170px, 52vw);
        max-height: min(300px, 38vh);
        margin-left: 0;
        margin-top: -2rem;
    }

    .feature-text {
        padding: 2rem 1.25rem 2.5rem;
    }
    
    .feature-number {
        font-size: 4.5rem;
        top: 1rem;
        left: 1rem;
        opacity: 0.08;
    }
    
    .feature-item.reverse .feature-number {
        right: 1rem;
        left: auto;
    }
    
    .feature-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .feature-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: none;
    }
    
    .feature-details {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .detail-item {
        font-size: 0.9375rem;
        padding: 0.625rem 0;
    }

    .feature-learn-more {
        margin-top: 1.25rem;
        pointer-events: auto;
    }

    .feature-item:hover .detail-item {
        padding-left: 0;
    }

    .feature-item:hover .detail-item::before {
        width: 0;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Pricing */
    .pricing-tabs {
        width: 100%;
        max-width: 360px;
    }

    .pricing-tab {
        flex: 1;
        padding: 0.7rem 1rem;
        font-size: 0.875rem;
    }

    .subscription-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem 1.5rem 2rem;
    }

    .subscription-illustration-wrap .subscription-illustration {
        max-width: min(360px, 100%);
        max-height: 300px;
    }

    .subscription-content {
        text-align: left;
    }

    .subscription-features {
        grid-template-columns: 1fr;
    }

    .subscription-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .subscription-footer .btn {
        width: 100%;
        text-align: center;
    }

    .subscription-app-callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscription-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pricing-table {
        min-width: 100%;
        font-size: 0.9rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 1rem;
    }

    .pricing-table th {
        font-size: 1rem;
    }

    .pricing-table .price-cell {
        font-size: 1.25rem;
    }

    .pricing-display {
        padding: 2rem 1.5rem;
    }

    .pricing-result {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .result-item.total {
        grid-column: 1;
    }

    .result-value {
        font-size: 2rem;
    }

    .result-value.price-per-bed {
        font-size: 1.75rem;
    }

    .result-value.total-price {
        font-size: 2.5rem;
    }

    .slider-label {
        font-size: 1rem;
    }

    /* Screenshots */
    .screenshot-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Testimonials */
    .testimonials-carousel {
        min-height: auto;
        padding: 0 0.25rem;
    }

    .testimonial-quote p {
        font-size: 0.9375rem;
        line-height: 1.65;
    }

    .testimonial-quote p::before {
        font-size: 3rem;
        margin-right: 0.25rem;
    }

    .testimonial-quote p::after {
        font-size: 1.25rem;
    }

    .testimonial-author {
        justify-content: flex-start;
        margin-top: 1.5rem;
    }

    .testimonial-author-info span {
        font-size: 0.75rem;
    }

    /* Resources */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
    }

    /* Contact */
    .contact-tabs {
        flex-wrap: wrap;
    }

    .contact-tab {
        flex: 1;
        min-width: 140px;
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form .btn {
        width: 100%;
    }

    .form-group input,
    .form-group textarea,
    .newsletter-form input {
        font-size: 16px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .back-to-top {
        right: max(1rem, env(safe-area-inset-right, 0));
        bottom: max(1rem, env(safe-area-inset-bottom, 0));
        width: 44px;
        height: 44px;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0));
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    /* Feature pages */
    .feature-detail-page main {
        padding-top: var(--nav-height);
    }

    .feature-page-hero {
        padding: 1.5rem 0 2.5rem;
    }

    .feature-page-number {
        font-size: 2.5rem;
    }

    .feature-page-description {
        font-size: 1rem;
        max-width: none;
    }

    .feature-page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-page-actions .btn {
        width: 100%;
        text-align: center;
    }

    .feature-breadcrumb {
        font-size: 0.8125rem;
        margin-bottom: 1.25rem;
    }

    .feature-page-capabilities,
    .feature-page-how-it-works,
    .feature-page-related {
        padding: 3rem 0;
    }

    .how-it-works-step-title {
        font-size: 1.375rem;
    }

    .how-it-works-step-description {
        font-size: 1rem;
        max-width: none;
    }

    .related-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
    }

    .related-feature-card {
        padding: 1rem 0.75rem;
    }

    .related-feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-page-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-page-cta .btn {
        width: 100%;
        text-align: center;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Container */
    .container {
        padding-left: max(16px, env(safe-area-inset-left, 0));
        padding-right: max(16px, env(safe-area-inset-right, 0));
    }

    .faq-answer-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .faq-item.active .faq-answer-inner {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Small Mobile Styles (480px and below) */
@media screen and (max-width: 480px) {
    .logo-img {
        height: 34px;
    }

    .related-features-grid {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        font-size: clamp(1.625rem, 7vw, 2.125rem);
    }

    .hero-subheadline {
        font-size: 1.0625rem;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-logo,
    .hero-illustration {
        width: min(100%, 260px);
    }

    .hero-highlights li {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .problem-card,
    .platform-card,
    .use-case-card,
    .advantage-card,
    .pricing-card {
        padding: 1.5rem;
    }
    
    .platform-card {
        min-height: auto;
    }
    
    .platform-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .platform-icon {
        width: 24px;
        height: 24px;
    }
    
    .platform-title {
        font-size: 1.375rem;
    }
    
    .platform-description {
        font-size: 0.875rem;
    }
    
    .platform-feature-item {
        font-size: 0.875rem;
        padding: 0.625rem 0;
    }
    
    .feature-icon {
        width: 18px;
        height: 18px;
        font-size: 0.625rem;
    }

    .feature-image.illustration {
        padding: 2rem 1.5rem;
    }

    .problem-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-media {
        height: 250px;
    }

    .feature-media.feature-media-composite {
        height: auto;
        min-height: auto;
        padding: 1rem 0.75rem;
    }

    .feature-item .feature-media-composite .feature-page-hero-media-composite {
        max-width: 300px;
        padding: 0.75rem;
    }

    .feature-item .feature-page-hero-illustration {
        max-width: min(220px, 78vw);
        max-height: 180px;
    }

    .feature-item .feature-page-hero-phone {
        max-width: min(150px, 48vw);
        max-height: 240px;
        margin-top: -1.5rem;
    }

    .feature-media.feature-media-phone {
        height: auto;
        min-height: auto;
        padding: 1rem 0.75rem;
    }

    .feature-item .feature-media-phone .feature-page-hero-media-phone-only {
        max-width: 280px;
        padding: 1rem;
    }

    .feature-item .feature-media-phone .feature-page-hero-image.screenshot-mobile,
    .feature-page-hero-media-phone-only .feature-page-hero-image.screenshot-mobile {
        max-width: min(220px, 72vw);
        max-height: min(440px, 52vh);
    }

    .feature-text {
        padding: 30px 15px;
    }
    
    .feature-number {
        font-size: 60px;
        top: 15px;
        left: 15px;
    }
    
    .feature-item.reverse .feature-number {
        right: 15px;
        left: auto;
    }
    
    .feature-title {
        font-size: 1.75rem;
    }
    
    .feature-description {
        font-size: 0.9375rem;
    }

    .app-download-section {
        padding: 40px 0;
    }

    .app-download-content {
        padding: 2rem 1.25rem 0;
        gap: 1.5rem;
    }

    .app-download-title {
        font-size: 2.75rem;
    }

    .app-download-description {
        font-size: 0.9375rem;
    }

    .app-download-badges {
        flex-direction: column;
        gap: 0.75rem;
    }

    .app-download-badge {
        padding: 0;
        min-width: auto;
    }

    .app-download-badge-img {
        height: 36px;
    }

    .app-download-visual {
        min-height: 240px;
    }

    .app-download-phones {
        width: min(100%, 280px);
        margin-bottom: -1rem;
    }

    .testimonial-quote p {
        font-size: 0.875rem;
    }

    .testimonial-quote p::before {
        font-size: 3rem;
    }

    .testimonial-quote p::after {
        font-size: 1.25rem;
    }

    .carousel-controls {
        flex-wrap: wrap;
    }

    .pricing-display {
        padding: 1.5rem 1rem;
    }

    .result-value {
        font-size: 1.75rem;
    }

    .result-value.price-per-bed {
        font-size: 1.5rem;
    }

    .result-value.total-price {
        font-size: 2rem;
    }

    .faq-container {
        max-width: 100%;
    }

    .faq-question {
        padding: 1rem 1rem;
        gap: 0.75rem 1rem;
        align-items: flex-start;
    }

    .faq-index {
        width: 2.625rem;
        height: 2.625rem;
        font-size: 0.75rem;
    }

    .faq-question-text {
        font-size: 1rem;
        padding-top: 0.35rem;
    }

    .faq-chevron {
        margin-top: 0.5rem;
    }

    .faq-item.active .faq-chevron {
        margin-top: 0.65rem;
    }

    .faq-answer-inner {
        padding-left: calc(1rem + 2.625rem + 1rem);
        padding-right: 1rem;
        padding-bottom: 1.1rem;
    }

    .faq-item.active .faq-answer-inner {
        margin-left: calc(1rem + 2.625rem + 1rem);
        margin-right: 1rem;
        margin-bottom: 0;
    }
}

/* Media dialog */
@media screen and (max-width: 767px) {
    .media-dialog {
        padding: 0;
        align-items: flex-end;
    }

    .media-dialog-panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 20px 20px 0 0;
    }

    .media-dialog-header {
        padding: 1rem 1rem 0.875rem;
    }

    .media-dialog-title {
        font-size: 1.125rem;
    }

    .media-dialog-body {
        grid-template-columns: 1fr;
        padding: 0.75rem 1rem 1rem;
    }

    .media-dialog-nav {
        display: none;
    }

    .media-dialog-image {
        max-height: 52vh;
    }

    .media-dialog-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1rem;
    }

    .media-dialog-thumbs {
        justify-content: center;
    }

    .media-dialog-counter {
        text-align: center;
    }
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .faq-question {
        min-height: 44px;
    }

    .feature-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .platform-card:hover,
    .benefit-item:hover,
    .problem-card:hover,
    .use-case-card:hover,
    .advantage-card:hover,
    .pricing-card:hover,
    .resource-card:hover,
    .technical-item:hover {
        transform: none;
    }

    .feature-item:hover .feature-image {
        transform: scale(1);
    }

    .feature-media-interactive::before {
        opacity: 0.85;
        transform: scale(1);
    }
}

/* Landscape Mobile */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }

    section {
        padding: 40px 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .hero-cta,
    .contact-form,
    .footer {
        display: none;
    }

    .hero {
        padding: 20px 0;
    }

    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

