/* responsive.css - ИСПРАВЛЕННАЯ ВЕРСИЯ */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        overflow-x: hidden;
    }

    .header {
        padding: 0.75rem 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        height: calc(100vh - 70px);
        width: 100vw;
    }

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

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu > li > a {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--text-color);
        font-weight: 500;
    }

    .nav-menu > li > a::after {
        display: none !important;
    }

    /* DROPDOWN MOBILE */
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background: var(--light-bg);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        border: none;
        border-top: 1px solid var(--border-light);
        grid-template-columns: 1fr;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        max-height: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        padding: 0;
    }

    .dropdown-toggle {
        position: relative;
        padding-right: 2.5rem !important;
    }

    .dropdown-toggle::after {
        content: "›";
        font-size: 1.5rem;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle::after {
        display: none !important;
    }

    .dropdown.active .dropdown-toggle {
        background: var(--light-bg);
        color: var(--primary-color);
        font-weight: 600;
    }

    /* MENU SECTIONS MOBILE */
    .menu-section {
        background: var(--white);
        margin-bottom: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .menu-section:last-child {
        border-bottom: none;
    }

    .menu-section h4 {
        padding: 1.25rem 1.5rem;
        margin: 0;
        font-size: 1rem;
        background: var(--white);
        border-bottom: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--text-color);
        font-weight: 500;
    }

    .menu-section h4::after {
        content: "›";
        font-size: 1.3rem;
        transition: transform 0.3s ease;
        color: var(--primary-color);
    }

    .menu-section.active h4::after {
        transform: rotate(90deg);
    }

    .menu-section ul {
        display: none;
        padding: 0;
        background: var(--light-bg);
        margin: 0;
        border-top: 1px solid var(--border-light);
    }

    .menu-section.active ul {
        display: block;
    }

    .menu-section li {
        margin: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .menu-section li:last-child {
        border-bottom: none;
    }

    .menu-section a {
        padding: 1rem 1.5rem 1rem 2.5rem;
        font-size: 0.95rem;
        margin: 0;
        border-left: none;
        border-radius: 0;
        display: block;
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .menu-section a:hover {
        background: var(--white);
        color: var(--primary-color);
        transform: none;
        padding-left: 2.5rem;
    }

    /* HEADER ACTIONS MOBILE */
    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* MOBILE CONTACTS */
    .mobile-contacts {
        padding: 2rem 1.5rem;
        background: var(--light-bg);
        border-top: 2px solid var(--primary-color);
        margin-top: 0;
        border-radius: 0;
    }

    .mobile-contacts .header-phone {
        display: block;
        text-align: center;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        text-decoration: none;
    }

    .mobile-contacts .btn {
        width: 100%;
        text-align: center;
        padding: 1.25rem;
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* HERO MOBILE */
    .hero {
        padding: 100px 0 80px;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        line-height: 1.4;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .hero .btn {
        width: 100%;
        max-width: 280px;
        padding: 1.125rem 2rem;
    }

    /* SERVICES MOBILE */
    .services-preview {
        padding: 80px 0;
    }

    .services-preview h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: 400px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 1rem;
    }

    body.menu-open {
        overflow: hidden;
        height: 100vh;
    }

    /* PRICING MOBILE */
    .pricing-section {
        padding: 60px 0;
    }

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

    .pricing-card.featured {
        order: -1;
        margin-bottom: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cta {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .pricing-guarantees {
        margin: 2rem 0.5rem 0;
        padding: 2rem 1rem;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .nav-menu > li > a {
        padding: 1.125rem 1.25rem;
        font-size: 1rem;
    }

    .menu-section h4 {
        padding: 1.125rem 1.25rem;
        font-size: 0.95rem;
    }

    .menu-section a {
        padding: 0.875rem 1.25rem 0.875rem 2rem;
        font-size: 0.9rem;
    }

    .mobile-contacts {
        padding: 1.5rem 1.25rem;
    }

    .mobile-contacts .header-phone {
        font-size: 1.1rem;
    }

    .mobile-contacts .btn {
        padding: 1.125rem;
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .services-preview h2 {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .hero-cta {
        padding: 0 0.5rem;
    }

    .hero,
    .services-preview {
        min-height: auto;
        height: auto;
    }

    .modal-content {
        margin: 20% auto;
        padding: 2rem 1.5rem;
        width: 95%;
        max-width: 400px;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .close {
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
    }

    .modal-form .form-input,
    .modal-form .form-textarea {
        padding: 0.75rem;
    }

    /* PRICING SMALL MOBILE */
    .pricing-card {
        padding: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

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

    .pricing-cta .btn-primary {
        padding: 1rem 2rem;
        width: 100%;
        max-width: 280px;
    }
}