@media (max-width: 440px) {
    :root {
        --header-margin: 20px;
        --main-margin: 40px;
        --title-font-size: 2.2rem;
        --paragraph-font-size: 1rem;
        --button-font-size: 14px;
        --button-gap: 20px;
        --paragraph-margin-bottom: 30px;
    }

    header {
        margin: 12px 20px;
        padding: 12px 15px;
    }

    .logo-container {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .logo {
        height: 40px;
    }

    .logo-separator {
        display: none;
    }

    nav ul {
        display: none;
    }

    .mobile-contact-btn {
        display: flex;
        font-size: 10px;
    }

    main {
        margin: calc(60px + 100px) auto;
        padding: 0 15px;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
    }
    
    h1 .desktop-text {
        display: none;
    }
    
    h1 .mobile-text {
        display: block;
        line-height: 1.3;
    }
    
    h1 .mobile-text br {
        display: block;
        content: "";
        margin-bottom: 0.3rem;
    }
    
    h1 .highlight {
        display: inline;
    }

    p {
        font-size: 1rem;
        margin-bottom: 30px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.5;
        text-align: center;
    }
    
    p .desktop-text {
        display: none;
    }
    
    p .mobile-text {
        display: block;
        line-height: 1.5;
    }
    
    p .mobile-text br {
        display: block;
        content: "";
        margin-bottom: 0.5rem;
    }
    
    .emphasis {
        display: inline;
    }

    .buttons-container {
        gap: 20px;
        margin-bottom: -80px;
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-portfolio, .cta-button, .cta-button-large {
        padding: 16px 30px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }

    .rectangular-container {
        flex-direction: column;
        gap: 40px;
        padding: 40px 25px;
        margin-bottom: 60px;
        margin-top: -60px;
    }

    .title-large {
        font-size: 2rem;
    }

    .description-text {
        text-align: center;
        margin: 0 auto;
        font-size: 1rem;
    }

    .section-image {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }

    .comparison-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .comparison-box {
        max-width: 100%;
        width: 100%;
    }

    .comparison-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .comparison-title br {
        display: block;
        content: "";
        margin-bottom: 0.5rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-title {
        font-size: 2rem;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .process-title br {
        display: block;
        content: "";
        margin-bottom: 0.5rem;
    }

    .process-card {
        padding: 25px 20px;
    }

    .plans-grid-black {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .plans-title-black {
        font-size: 2rem;
        text-align: center;
    }
    
    .plans-title-black br {
        display: block;
        content: "";
        margin-bottom: 0.5rem;
    }

    .plan-card-black {
        padding: 30px 20px;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .faq-title br {
        display: block;
        content: "";
        margin-bottom: 0.5rem;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .carousel-item {
        width: 250px;
        padding: 10px;
    }

    .carousel-text {
        font-size: 0.9rem;
        padding: 12px;
    }

    .carousel-container {
        gap: 20px;
        animation: carouselScrollMobile 25s linear infinite;
    }

    @keyframes carouselScrollMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-270px * 4));
        }
    }

    footer {
        padding: 40px 20px 20px;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
        order: 1;
        width: 100%;
    }

    .footer-logo img {
        width: 100px;
        height: 35px;
    }

    .footer-developed {
        display: none;
    }
    
    .footer-bottom {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    .company-info {
        font-size: 0.8rem;
        line-height: 1.5;
        text-align: center;
        width: 100%;
    }

    .company-info p {
        margin-bottom: 8px;
        font-size: 0.8rem !important;
        text-align: center;
    }

    .footer-contacts {
        order: 2;
        align-items: center;
        gap: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .contact-item {
        justify-content: center;
        font-size: 0.95rem;
        gap: 12px;
        text-align: center;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .contact-item i {
        font-size: 1.1rem;
    }

    .social-links {
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
        width: 100%;
        display: flex;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-container {
        margin: 40px auto;
        padding: 40px 25px;
    }

    .cta-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .cta-title br {
        display: block;
        content: "";
        margin-bottom: 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button, .cta-button-large {
        width: 100%;
        max-width: 280px;
    }

    .divider {
        margin: 40px 0;
    }
    
    @media (min-width: 441px) {
        h1 .desktop-text {
            display: block;
        }
        
        h1 .mobile-text {
            display: none;
        }
        
        p .desktop-text {
            display: block;
        }
        
        p .mobile-text {
            display: none;
        }
    }
}

@media (max-width: 390px) {
    :root {
        --header-margin: 15px;
        --main-margin: 30px;
        --title-font-size: 1.8rem;
        --paragraph-font-size: 0.9rem;
        --button-font-size: 13px;
    }

    header {
        margin: 12px 20px;
        padding: 12px 15px;
    }

    .logo {
        height: 35px;
    }

    .mobile-contact-btn {
        padding: 10px 16px;
        font-size: 10px;
        margin-right: 5px;
    }

    main {
        margin: calc(50px + 90px) auto;
        padding: 0 10px;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    h1 .mobile-text br {
        margin-bottom: 0.4rem;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    
    p .mobile-text br {
        margin-bottom: 0.4rem;
    }

    .buttons-container {
        margin-bottom: -60px;
    }

    .btn-primary, .btn-portfolio, .cta-button, .cta-button-large {
        padding: 14px 25px;
        font-size: 13px;
        max-width: 250px;
        min-height: 48px;
    }

    .rectangular-container {
        padding: 30px 20px;
        margin-bottom: 40px;
        gap: 30px;
        margin-top: -40px;
    }

    .title-large {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .description-text {
        font-size: 0.9rem;
    }

    .section-image {
        height: 250px;
        max-width: 100%;
    }

    .comparison-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .comparison-title br {
        margin-bottom: 0.4rem;
    }

    .comparison-box {
        padding: 25px 20px;
    }

    .box-title {
        font-size: 1.3rem;
    }

    .process-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .process-title br {
        margin-bottom: 0.4rem;
    }

    .process-card {
        padding: 20px 15px;
    }

    .icon-container {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }

    .icon-inner {
        font-size: 28px;
    }

    .process-card h3 {
        font-size: 1.2rem;
    }

    .process-description {
        font-size: 0.9rem;
    }

    .plans-title-black {
        font-size: 1.6rem;
    }
    
    .plans-title-black br {
        margin-bottom: 0.4rem;
    }

    .plans-subtitle-black {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .plan-card-black {
        padding: 25px 15px;
    }

    .plan-name-black {
        font-size: 1.4rem;
    }

    .plan-price-black {
        font-size: 2.2rem;
    }

    .plan-btn-black {
        padding: 14px 20px;
        font-size: 12px;
    }

    .payment-flag-black {
        max-width: 150px;
    }

    .faq-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .faq-title br {
        margin-bottom: 0.4rem;
    }

    .faq-question {
        padding: 12px 15px;
        min-height: 60px;
    }

    .faq-question h3 {
        font-size: 0.9rem;
    }

    .cta-container {
        padding: 30px 20px;
        margin: 30px auto;
    }

    .cta-title {
        font-size: 1.6rem;
    }
    
    .cta-title br {
        margin-bottom: 0.4rem;
    }

    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .cta-button-large {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .carousel-item {
        width: 220px;
    }

    .carousel-text {
        font-size: 0.8rem;
    }

    .footer-container {
        gap: 25px;
    }

    .footer-logo img {
        width: 90px;
        height: 30px;
    }

    .company-info {
        font-size: 0.75rem;
    }

    .company-info p {
        font-size: 0.75rem !important;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .contact-item {
        font-size: 0.85rem;
        gap: 8px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .footer-bottom p {
        font-size: 0.75rem !important;
        text-align: center;
    }
}

@media (min-width: 441px) {
    h1 .desktop-text {
        display: block;
    }
    
    h1 .mobile-text {
        display: none;
    }
    
    p .desktop-text {
        display: block;
    }
    
    p .mobile-text {
        display: none;
    }
}