/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* ========================================
   HEADER (Mobile)
   ======================================== */
@media (max-width: 767px) {
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        padding: 0 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
        display: block !important;
        height: 48px !important;
    }

    .nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 48px !important;
        padding: 0 12px !important;
    }

    .logo-img {
        height: 26px !important;
        display: block !important;
        visibility: visible !important;
    }

    .logo {
        display: flex !important;
        visibility: visible !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 22px !important;
        height: 16px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
    }

    /* Remove text-shadow from hero subtitle */
    .hero-subtitle,
    body .hero-subtitle,
    .hero .hero-subtitle {
        text-shadow: none !important;
        color: #444 !important;
        filter: none !important;
        -webkit-filter: none !important;
    }

    .mobile-menu-toggle span {
        display: block !important;
        height: 2px !important;
        width: 100% !important;
        background: #F97316 !important;
    }

    .nav-links {
        display: none !important;
        position: absolute !important;
        top: 48px !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        flex-direction: column !important;
        padding: 10px 15px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        padding: 10px 0 !important;
        border-bottom: 1px solid #eee !important;
    }

    .nav-links a {
        font-size: 14px !important;
        color: #333 !important;
    }
}

/* ========================================
   HERO SECTION (Mobile)
   ======================================== */
@media (max-width: 767px) {
    .hero {
        padding: 60px 15px 25px !important;
        min-height: auto !important;
        background: #fff !important;
    }

    .hero::before,
    .hero::after {
        display: none !important;
    }

    .hero-glow,
    .hero-glow-1,
    .hero-glow-2 {
        display: none !important;
    }

    .hero-content {
        text-align: center !important;
    }

    .hero-flex {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-text {
        text-align: center !important;
    }

    .hero-image {
        display: none !important;
    }

    /* Лого в Hero - ОЧЕНЬ БОЛЬШОЕ, ПО ЦЕНТРУ */
    .hero-mobile-logo {
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 25px !important;
    }

    .hero-logo-img {
        height: 180px !important;
        width: auto !important;
        display: block !important;
    }

    /* Плашка - НИЖЕ */
    .hero-badge {
        font-size: 9px !important;
        padding: 4px 10px !important;
        margin-bottom: 18px !important;
    }

    /* Заголовок - БЕЗ ТЕНИ */
    .hero-title {
        font-size: 20px !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
        color: #1a1a1a !important;
        text-shadow: none !important;
        -webkit-text-stroke: 0 !important;
    }

    .hero-title .text-gradient {
        color: #F97316 !important;
        -webkit-text-fill-color: #F97316 !important;
        text-shadow: none !important;
    }

    /* Подзаголовок - БЕЗ ТЕНИ */
    .hero-subtitle {
        font-size: 13px !important;
        margin-bottom: 15px !important;
        color: #333 !important;
        text-shadow: none !important;
        -webkit-text-fill-color: #333 !important;
        background: none !important;
        background-image: none !important;
        background-clip: unset !important;
        -webkit-background-clip: unset !important;
        filter: none !important;
        -webkit-filter: none !important;
    }

    /* Кнопки - УЖЕ */
    .hero-buttons {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
        align-items: center !important;
    }

    .hero-buttons .btn,
    .btn-primary,
    .btn-secondary {
        padding: 9px 16px !important;
        font-size: 12px !important;
        min-width: auto !important;
        width: auto !important;
    }

    /* Статистика - 3 В РЯД */
    .hero-stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .stat-item {
        flex: 1 !important;
        max-width: 90px !important;
        text-align: center !important;
    }

    .stat-number {
        font-size: 18px !important;
        display: block !important;
    }

    .stat-label {
        font-size: 8px !important;
        color: #666 !important;
        -webkit-text-fill-color: #666 !important;
        background: none !important;
        display: block !important;
        line-height: 1.2 !important;
    }

    .stat-divider {
        display: none !important;
    }
}

/* Убираем ВСЕ тени с текста */
@media (max-width: 767px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    a,
    div {
        text-shadow: none !important;
    }
}

/* ========================================
   ADVANTAGES (Mobile) - ВЫСОКАЯ СПЕЦИФИЧНОСТЬ
   ======================================== */
@media (max-width: 767px) {
    body .advantages {
        padding: 30px 0 !important;
    }

    body .advantages .section-title {
        margin-bottom: 20px !important;
    }

    body .advantages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        row-gap: 10px !important;
        column-gap: 3px !important;
    }

    body .advantage-card {
        padding: 6px 15px !important;
        text-align: center !important;
        max-width: 160px !important;
    }

    /* Левый столбец - прижать вправо */
    body .advantage-card:nth-child(odd) {
        margin-left: auto !important;
        margin-right: 5px !important;
    }

    /* Правый столбец - прижать влево */
    body .advantage-card:nth-child(even) {
        margin-left: 5px !important;
        margin-right: auto !important;
    }

    body .advantage-icon {
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 6px !important;
    }

    body .advantage-icon img {
        width: 65px !important;
        height: 65px !important;
    }

    body .advantage-card h3 {
        font-size: 12px !important;
        margin: 4px 0 3px !important;
    }

    body .advantage-card p {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
}

/* ========================================
   TARGET AUDIENCE (Mobile) - "Для кого наши автоматы"
   ======================================== */
@media (max-width: 767px) {
    body .target-audience {
        padding: 30px 0 !important;
    }

    body .target-audience .section-title {
        margin-bottom: 15px !important;
    }

    body .segments-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px 5px !important;
    }

    body .segment-card {
        padding: 6px 2px !important;
        min-width: 0 !important;
    }

    body .segment-icon {
        width: 75px !important;
        height: 75px !important;
        margin: 0 auto 5px !important;
    }

    body .segment-icon img {
        width: 75px !important;
        height: 75px !important;
    }

    body .segment-card h3 {
        font-size: 10px !important;
        margin: 4px 0 2px !important;
    }

    body .segment-card p {
        font-size: 8px !important;
        line-height: 1.2 !important;
    }
}

/* ========================================
   CATALOG (Mobile)
   ======================================== */
@media (max-width: 767px) {
    body .catalog {
        padding: 30px 0 !important;
    }

    body .catalog-bg-canvas {
        display: none !important;
    }

    body .catalog-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    body .product-card {
        display: flex !important;
        flex-direction: column !important;
        min-height: 320px !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body .product-image {
        width: 100% !important;
        flex: 1 !important;
        min-height: 150px !important;
        overflow: hidden !important;
    }

    body .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body .product-content {
        padding: 8px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body .product-title {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }

    body .product-desc {
        font-size: 9px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 5px !important;
    }

    body .product-specs {
        margin: 4px 0 !important;
    }

    body .product-specs span {
        font-size: 7px !important;
        padding: 2px 3px !important;
    }

    body .product-footer {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: auto !important;
    }

    body .product-price {
        font-size: 12px !important;
    }

    body .product-card .btn {
        padding: 5px 8px !important;
        font-size: 8px !important;
    }
}

/* ========================================
   GALLERY (Mobile)
   ======================================== */
@media (max-width: 767px) {
    body .locations-gallery {
        padding: 30px 0 !important;
    }

    body .gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    body .gallery-item {
        height: 150px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    body .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body .gallery-overlay h4 {
        font-size: 11px !important;
    }

    body .gallery-overlay p {
        display: block !important;
        font-size: 9px !important;
    }
}

/* ========================================
   HOW IT WORKS (Mobile)
   ======================================== */
@media (max-width: 767px) {
    .how-it-works {
        padding: 30px 0 !important;
    }

    .steps-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .step-connector {
        display: none !important;
    }

    .step-card {
        padding: 10px 6px !important;
        text-align: center !important;
    }

    .step-icon img {
        width: 60px !important;
        height: 60px !important;
    }

    .step-number {
        font-size: 9px !important;
        width: 16px !important;
        height: 16px !important;
    }

    .step-card h3 {
        font-size: 10px !important;
        margin: 6px 0 3px !important;
    }

    .step-card p {
        font-size: 9px !important;
    }
}

/* ========================================
   ABOUT (Mobile)
   ======================================== */
@media (max-width: 767px) {
    .about {
        padding: 30px 0 !important;
    }

    .about-content {
        flex-direction: column !important;
    }

    .about-text {
        text-align: center !important;
    }

    .about-lead {
        font-size: 12px !important;
    }

    body .founder-quote {
        padding: 12px 15px !important;
        margin: 10px 0 !important;
    }

    body .founder-quote p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    body .founder-info {
        margin-top: 8px !important;
    }

    body .founder-info strong {
        font-size: 14px !important;
    }

    body .founder-info span {
        font-size: 11px !important;
    }

    body .about-facts {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 0 !important;
    }

    body .fact {
        padding: 12px 6px !important;
    }

    body .fact .fact-number {
        font-size: 20px !important;
    }

    body .fact .fact-label {
        font-size: 8px !important;
        color: #666 !important;
        line-height: 1.2 !important;
    }

    body .about-gallery {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-top: -10px !important;
    }

    body .about-image {
        max-height: 150px !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }

    body .about-image img {
        width: 100% !important;
        height: 150px !important;
        object-fit: cover !important;
    }
}

/* ========================================
   SALES MAP (Mobile)
   ======================================== */
@media (max-width: 767px) {
    body .sales-map {
        padding: 20px 0 !important;
    }

    body .map-wrapper {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        overflow: hidden !important;
    }

    body .russia-map {
        width: 100% !important;
        height: auto !important;
    }

    body .map-legend {
        padding: 8px 15px !important;
        margin-top: -20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 90% !important;
    }

    body .legend-title {
        font-size: 14px !important;
        margin-bottom: 5px !important;
        text-align: center !important;
    }

    body .legend-items {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 5px 10px !important;
        justify-content: center !important;
    }

    body .legend-item {
        font-size: 9px !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }

    body .legend-color {
        width: 12px !important;
        height: 12px !important;
    }

    body .map-stats {
        display: flex !important;
        gap: 30px !important;
        margin-top: 10px !important;
        justify-content: center !important;
    }

    body .map-stat-number {
        font-size: 20px !important;
    }

    body .map-stat-label {
        font-size: 10px !important;
    }
}

/* ========================================
   REVIEWS (Mobile)
   ======================================== */
@media (max-width: 767px) {
    body .reviews {
        padding: 30px 0 !important;
    }

    body .review-card {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    body .review-content {
        flex: 1 !important;
    }

    body .review-header {
        margin-bottom: 8px !important;
    }

    body .review-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }

    body .review-meta strong {
        font-size: 13px !important;
    }

    body .review-text {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    body .review-image {
        flex: 0 0 100px !important;
        width: 100px !important;
        height: 150px !important;
        overflow: hidden !important;
        border-radius: 8px !important;
    }

    body .review-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ========================================
   GUARANTEES (Mobile)
   ======================================== */
@media (max-width: 767px) {
    .guarantees {
        padding: 30px 0 !important;
    }

    .guarantees-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .guarantee-item {
        padding: 10px 6px !important;
        text-align: left !important;
        display: flex !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }

    .guarantee-icon img {
        width: 40px !important;
        height: 40px !important;
    }

    .guarantee-text strong {
        font-size: 11px !important;
        display: block !important;
    }

    .guarantee-text span {
        font-size: 9px !important;
        line-height: 1.2 !important;
    }
}

/* ========================================
   CONTACT (Mobile)
   ======================================== */
@media (max-width: 767px) {
    body .contact {
        padding: 30px 0 !important;
    }

    body .contact-wrapper {
        flex-direction: column !important;
    }

    body .contact-info {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        padding: 0 10px !important;
    }

    body .contact-info .section-title {
        order: 1 !important;
    }

    body .contact-info>p {
        order: 2 !important;
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }

    body .contact-form {
        order: 3 !important;
        margin-bottom: 15px !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body .contact-form input,
    body .contact-form select {
        font-size: 13px !important;
        padding: 12px !important;
    }

    body .checkbox-text {
        font-size: 11px !important;
    }

    body .form-note {
        font-size: 10px !important;
    }

    body .contact-details {
        order: 4 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    body .contact-item {
        justify-content: center !important;
        width: 100% !important;
    }

    body .contact-address {
        order: 5 !important;
        text-align: center !important;
    }

    body .contact-address p {
        font-size: 11px !important;
        margin: 3px 0 !important;
    }
}

/* ========================================
   CONSULTATION (Mobile)
   ======================================== */
@media (max-width: 767px) {
    .consultation {
        padding: 30px 0 !important;
    }

    .consultation-container {
        flex-direction: column !important;
        padding: 15px 12px !important;
    }

    .consultation h2 {
        font-size: 18px !important;
    }

    .input-field,
    .select-field {
        padding: 8px !important;
        font-size: 12px !important;
    }

    .submit-btn {
        padding: 10px !important;
        font-size: 12px !important;
    }
}

/* ========================================
   FOOTER (Mobile)
   ======================================== */
@media (max-width: 767px) {
    .footer {
        padding: 30px 0 12px !important;
    }

    .footer-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        text-align: center !important;
    }

    .footer-logo {
        height: 24px !important;
    }

    .footer h3 {
        font-size: 12px !important;
    }

    .footer-link {
        font-size: 11px !important;
    }

    .social-icon {
        width: 30px !important;
        height: 30px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        font-size: 10px !important;
    }
}

/* ========================================
   FLOATING BUTTONS (Mobile)
   ======================================== */
@media (max-width: 767px) {
    .floating-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    .floating-whatsapp {
        right: 8px !important;
        bottom: 8px !important;
    }

    .floating-telegram {
        right: 8px !important;
        bottom: 55px !important;
    }
}

/* ========================================
   ОБЩЕЕ (Mobile)
   ======================================== */
@media (max-width: 767px) {
    .section-title {
        font-size: 22px !important;
        margin-bottom: 6px !important;
    }

    .section-subtitle {
        font-size: 11px !important;
        margin-bottom: 15px !important;
    }

    .container {
        padding: 0 10px !important;
    }

    section {
        padding: 30px 0 !important;
    }
}

/* ========================================
   PRODUCT MODAL (Mobile)
   ======================================== */
@media (max-width: 767px) {

    /* Modal container fix */
    #product-modal,
    .modal#product-modal {
        padding: 0 !important;
    }

    #product-modal .modal-content,
    body #product-modal .modal-content,
    .modal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 90vh !important;
        margin: 5vh auto !important;
        overflow-y: auto !important;
        border-radius: 15px !important;
        padding: 0 !important;
    }

    #product-modal .modal-body,
    body #product-modal .modal-body {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #product-modal .modal-product,
    body .modal-product {
        flex-direction: column !important;
        display: flex !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #product-modal .modal-gallery,
    body .modal-gallery {
        width: 100% !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
    }

    #product-modal .modal-main-image,
    body .modal-main-image {
        width: 100% !important;
        height: 300px !important;
    }

    #product-modal .modal-main-image img,
    body .modal-main-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        background: #f5f5f5 !important;
    }

    #product-modal .modal-thumbnails,
    body .modal-thumbnails {
        display: flex !important;
        gap: 8px !important;
        padding: 10px !important;
        overflow-x: auto !important;
    }

    #product-modal .modal-thumb,
    body .modal-thumb {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0 !important;
    }

    #product-modal .modal-thumb img,
    body .modal-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #product-modal .modal-info,
    body .modal-info,
    body .modal-product .modal-info,
    .modal-info {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    #product-modal .modal-info h2,
    body .modal-info h2 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    #product-modal .modal-price,
    body .modal-price {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    #product-modal .modal-description,
    body .modal-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }

    #product-modal .modal-specs,
    body .modal-specs {
        font-size: 13px !important;
        padding-left: 20px !important;
    }

    #product-modal .modal-specs li,
    body .modal-specs li {
        margin-bottom: 5px !important;
    }

    #product-modal .modal-info .btn,
    body .modal-info .btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
        margin-top: 15px !important;
    }
}

/* ========================================
   FOOTER (Mobile)
   ======================================== */
@media (max-width: 767px) {

    /* Лого и текст рядом */
    .footer-brand {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 25px !important;
    }

    .footer-logo img {
        width: 120px !important;
        height: auto !important;
    }

    .footer-tagline {
        font-size: 12px !important;
        text-align: left !important;
        margin: 0 !important;
        flex: 1 !important;
    }

    /* Секции 2x2 - каждая колонка целиком */
    .footer-links {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .footer-column {
        width: 50% !important;
        box-sizing: border-box !important;
        padding-right: 10px !important;
        margin-bottom: 20px !important;
    }

    .footer-column h4 {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .footer-column ul {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-column ul li {
        display: block !important;
        margin-bottom: 6px !important;
    }

    .footer-column ul li a {
        font-size: 11px !important;
        display: block !important;
    }

    .footer-column p {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }

    .footer-social a {
        font-size: 11px !important;
        display: block !important;
        margin-bottom: 5px !important;
    }
}

/* ========================================
   DESKTOP
   ======================================== */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .hero-mobile-logo {
        display: none !important;
    }
}