html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
img,
svg,
video,
canvas {
    max-width: 100%;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
.btn,
nav a,
.lang-btn,
.review-arrow,
.nav-arrow {
    min-height: 44px;
}
@media (max-width: 767px) {
    body {
        padding-top: 64px !important;
    }

    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;

        height: 64px !important;
        min-height: 64px !important;
        padding: 8px 14px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }

    .logo {
        min-width: 0;
        gap: 5px !important;
    }

    .logo img.logo-img {
        height: 27px !important;
        width: auto !important;
    }

    .logo-text-image {
        height: 20px !important;
        width: auto !important;
    }
    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        background: transparent;
        color: var(--text, #fff);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 21px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    header.nav-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    header.nav-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.nav-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    header nav {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;

        width: auto !important;
        order: initial !important;
        padding: 10px 14px 16px !important;

        background: rgba(15, 18, 25, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        pointer-events: none;
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
    }
    header.nav-open nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    header nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    header nav li {
        width: 100%;
    }

    header nav a {
        display: flex !important;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 10px 12px !important;
        border-radius: 8px;
        font-size: 1rem !important;
    }

    header nav a:active,
    header nav a:hover,
    header nav a.active {
        background: rgba(255, 255, 255, 0.08);
    }

    .lang-switcher {
        display: flex !important;
        align-items: center;
        gap: 3px !important;
        margin-left: auto !important;
    }

    .lang-btn {
        min-width: 38px;
        min-height: 38px;
        padding: 5px !important;
        font-size: 0.75rem !important;
    }
    h1,
    h2,
    h3,
    p {
        overflow-wrap: anywhere;
    }
    .regular-section,
    .about-section,
    .faq-content,
    .news-section,
    .warranty-section,
    .content-section,
    .test-section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .section-title,
    .page-title,
    .page-hero h1,
    .faq-hero h1 {
        font-size: clamp(1.45rem, 6vw, 2rem) !important;
        line-height: 1.2 !important;
    }

    p,
    li {
        font-size: 0.95rem;
        line-height: 1.55;
    }
    .btn-container,
    .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn,
    .support-btn,
    .submit-btn {
        min-height: 46px;
        max-width: 100%;
    }
    .feature-card,
    .review-card,
    .faq-item,
    .news-card,
    .warranty-card,
    .contact-info,
    .contact-form {
        max-width: 100% !important;
        padding: 16px !important;
    }
    .features-grid,
    .reviews-layout,
    .contacts-grid,
    .partners-grid,
    .product-frame,
    .audio-container {
        grid-template-columns: 1fr !important;
    }
    .container,
    .showcase-content,
    .faq-content,
    .about-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    .showcase-video,
    .page-video {
        max-width: none !important;
    }
    footer {
        padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    }
}
@media (max-width: 380px) {
    header {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .logo-text-image {
        max-width: 120px;
    }

    .lang-btn {
        min-width: 34px;
        font-size: 0.68rem !important;
    }

    .regular-section,
    .about-section,
    .faq-content,
    .news-section,
    .warranty-section,
    .content-section,
    .test-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} 