@media (max-width: 1024px) {
    .section-content {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    button, .button {
        white-space: normal;
        word-wrap: break-word;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
        overflow-x: hidden;
    }
    
    html {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    section {
        overflow-x: hidden;
        width: 100%;
    }
    
    .section-content {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
    }
    
    h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.3;
    }
    
    h3 {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
        line-height: 1.4;
    }
    
    p {
        font-size: clamp(0.9rem, 4vw, 1rem);
        line-height: 1.6;
    }
    
    button, .button {
        font-size: clamp(0.9rem, 4vw, 1rem);
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 44px;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .flex-row {
        flex-direction: column;
    }
    
    .flex-row > * {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .flex-row > *:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
        overflow-x: hidden;
    }
    
    .section-content {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    h1 {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }
    
    h2 {
        font-size: clamp(1.25rem, 9vw, 1.75rem);
    }
    
    h3 {
        font-size: clamp(1.1rem, 8vw, 1.4rem);
    }
    
    button, .button {
        width: 100%;
        display: block;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group > * {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .button-group > *:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 375px) {
    body {
        font-size: 14px;
    }
    
    .section-content {
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }
}

@media (min-width: 1920px) {
    .section-content {
        max-width: 1400px;
        margin: 0 auto;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        height: auto;
        padding-top: calc(var(--spacing-xl) + 60px);
        padding-bottom: var(--spacing-lg);
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

