
/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #6c757d;
}

    .breadcrumb-current {
        color: #495057;
        font-weight: 500;
    }
    
    /* Mobile breadcrumb adjustments */
    @media (max-width: 768px) {
        .breadcrumb-nav {
            padding: 10px 0;
        }
        
        .breadcrumb-container {
            padding: 0 15px;
            font-size: 12px;
        }
        
        .breadcrumb-separator {
            margin: 0 8px;
        }
    }

/* Новый карточный контактный блок */
.contacts-card {
    width: 64vw;
    max-width: 900px;
    min-width: 320px;
    margin: 32px auto 64px auto;
    background: linear-gradient(150deg, #232323 60%, #ff0c9a1a 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
}
.contacts-card__map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}
.contacts-card__map {
    position: relative;
}
.contacts-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(35,35,35,0.92);
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
}
.contacts-card__badge-title {
    font-weight: 700;
    margin-bottom: 6px;
}
.contacts-card__badge-line { opacity: 0.9; font-size: 0.95rem; margin-bottom: 6px; }
.contacts-card__badge-link { display:block; color:#ff0c9a; text-decoration: underline; font-size: 0.95rem; }
.contacts-card__info {
    padding: 24px 24px 28px;
    color: #fff;
    text-align: center;
}
.contacts-card__info h2 {
    margin: 0 0 14px 0;
    font-size: 1.8rem;
    text-align: center;
}
.contacts-card__info a { color: #ff0c9a; text-decoration: underline; }

@media (max-width: 768px) {
  .contacts-card {
    width: calc(100% - 16px);
    margin: 24px 8px 48px 8px;
    border-radius: 16px;
  }
  .contacts-card__map iframe {
    height: clamp(240px, 47vh, 480px);
  }
  .contacts-card__badge {
    top: 10px; left: 10px; right: 10px; padding: 10px 12px; border-radius: 10px;
  }
  .contacts-card__info { padding: 20px 16px 24px; }
  .contacts-card__info h2 { font-size: 1.5rem; margin-bottom: 12px; }
}

/* Выравниваем ширину ключевых блоков на десктопе */
@media (min-width: 901px) {
  .hero-block,
  .main-blocks-wrapper,
  .contacts-card {
    width: 96vw !important;
    max-width: 1350px !important;
    min-width: 320px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Центровка кнопки WhatsApp на мобильных */
@media (max-width: 768px) {
  .hero-block .hero-info .hero-btn {
    width: auto !important;
    max-width: 320px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    display: block !important;
    margin: 16px auto 0 auto !important;
    align-self: center !important;
    text-align: center !important;
  }
}

/*
Theme Name: v1
Theme URI: http://electro-ride.shop/
Author: electro-ride.shop
Author URI: http://electro-ride.shop/
Description: 
Version: 1.0
*/
@media (max-width: 900px) {
  .hero-block {
    flex-direction: column;
    height: auto;
    min-width: 320px;
    max-width: 340px;
    color: #fff;
    flex: 0 1 320px;
  }
  .hero-info, .hero-slider {
    width: 100%;
    min-width: 0;
    border-radius: 0;
    padding: 32px 18px 18px 18px;
    height: auto;
  }
  .hero-slider {
    min-height: 180px;
    max-width: 520px;
    min-width: 220px;
    width: 90vw;
    /* height убран для автоадаптации */
  }
}
/* Контактный блок с картой — идентичен hero-блоку */
.contacts-block {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    background: linear-gradient(150deg, #232323 60%, #ff0c9a1a 100%);
    border-radius: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10);
    padding: 40px;
    margin-bottom: 64px;
    width: 64vw;
    min-width: 320px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.contacts-info {
    flex: 1 1 0;
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 240px;
}
.contacts-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.contacts-info a {
    color: #ff0c9a;
    text-decoration: underline;
    transition: color 0.18s;
}
.contacts-info a:hover {
    color: #e1007a;
}
.contacts-map {
    display: none;
}
.contacts-map-embed iframe {
    width: 100%;
    min-height: 0;
    border-radius: 18px;
    border: none;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
}

/* Hero-блок (первый экран) */
.hero-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 32px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 64px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    height: 400px;
    overflow: visible;
    position: relative;
}
.hero-info-right {
    width: 48%;
    height: 100%;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(150deg, #232323 60%, #ff0c9a1a 100%);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10);
}
@media (max-width: 900px) {
  .hero-block {
    flex-direction: column;
    min-width: 320px;
    max-width: 98vw;
    width: 100%;
    padding: 0 20px;
    gap: 20px;
  }
  .hero-info, .hero-info-right, .hero-slider {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 24px;
  }
  /* Фото на всю площадь правого блока */
  .hero-info-right { padding: 0 !important; }
  .hero-slider { padding: 0 !important; }
  .hero-info-right { background: linear-gradient(150deg, #232323 60%, #ff0c9a1a 100%); box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10); }
}
.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}

/* Не позволяем правому блоку выходить за пределы контейнера на десктопе */
.hero-info-right, .hero-slider {
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 !important;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.hero-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 32px;
    display: block;
}
.hero-slider button.hero-slider-prev,
.hero-slider button.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(40,40,40,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.18s;
}
.hero-slider button.hero-slider-prev:hover,
.hero-slider button.hero-slider-next:hover {
    background: #ff0c9a;
}
.hero-slider button.hero-slider-prev {
    left: 12px;
}
.hero-slider button.hero-slider-next {
    right: 12px;
}
.hero-info {
    width: 48%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    padding: 48px;
    box-sizing: border-box;
    background: linear-gradient(150deg, #232323 60%, #ff0c9a1a 100%);
    border-radius: 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10);
    position: relative;
    margin-right: 20px;
}
.hero-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    width: 100%;
    text-align: center;
}
.hero-info p {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #e0e0e0;
    padding-left: 20px;
    line-height: 1.5;
}
.hero-btn {
    display: block;
    width: 90%;
    margin: 0 auto;
    background: #686868;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 12px 0 rgba(255,12,154,0.18), 0 1px 6px 0 rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
}

.hero-btn:hover {
    background: #ff0c9a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px 0 rgba(255,12,154,0.25);
}
@media (max-width: 900px) {
  .hero-block {
    flex-direction: column;
    height: auto;
    min-width: 320px;
    max-width: 98vw;
    width: 100%;
    padding: 0 20px;
    gap: 16px;
  }
  .hero-info {
    width: 100%;
    margin-right: 0;
    min-width: 0;
    border-radius: 32px;
    height: auto;
    padding: 32px;
  }
  .hero-info .hero-btn {
    width: 100% !important;
    margin: 16px auto 0 auto !important;
    display: block !important;
    text-align: center !important;
  }
  .hero-info-right {
    width: 100%;
    height: 320px;
  }
  .hero-slider {
    position: relative;
    height: 100%;
  }
  .hero-slide img {
    height: 100%;
    border-radius: 32px;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    font-family: 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #111 0%, #444 100%);
    padding-top: 110px;
}

header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 96vw;
    min-width: 320px;
    max-width: 1350px;
    background: rgba(40, 40, 40, 0.35);
    color: #fff;
    padding: 18px 32px;
    text-align: left;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.12);
    border: 1.5px solid rgba(255,255,255,0.13);
    transition: background 0.3s, box-shadow 0.3s;
    font-size: 1rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    header {
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0 0 16px 16px;
        padding: 14px 16px;
        border-left: none;
        border-right: none;
    }
}
.hero-info-right::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, #ff0c9a 0%, #fff 100%);
    opacity: 0.18;
    border-radius: 2px;
    z-index: 2;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 64px;
    width: 100%;
    justify-content: space-between;
    position: relative;
}
.site-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}
.main-nav {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.header-right {
    flex: 0 0 auto;
    min-width: 44px;
    height: 100%;
}
.main-nav .menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav .menu > li {
    position: relative;
}
.main-nav .menu > li > a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: block;
}
.main-nav .menu > li > a:hover {
    background: #ff0c9a;
    color: #fff;
}
/* Стили для выпадающих подменю */
.main-nav .menu li ul {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    background: rgba(40,40,40,0.97);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scaleY(0.98);
    transition: opacity 0.28s cubic-bezier(.4,0,.2,1), transform 0.28s cubic-bezier(.4,0,.2,1), visibility 0.28s;
    z-index: 1001;
    padding: 10px 0;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.main-nav .menu li:hover > ul,
.main-nav .menu li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

.main-nav .menu li ul li a {
    color: #fff;
    padding: 12px 22px;
    font-size: 1rem;
    border-radius: 6px;
    display: block;
    transition: all 0.18s ease;
    text-decoration: none;
    margin: 2px 8px;
    position: relative;
}

.main-nav .menu li ul li a:hover {
    background: #ff0c9a;
    color: #fff;
    transform: translateX(5px);
}

/* Подменю второго уровня */
.main-nav .menu li ul li ul {
    top: 0;
    left: 100%;
    margin-left: 2px;
    min-width: 200px;
}

/* Стрелки для пунктов с подменю */
.dropdown-arrow {
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Улучшенные стили для пунктов с подменю */
.main-nav .menu > li.has-dropdown > a {
    position: relative;
    padding-right: 30px;
}

/* Анимация для подменю */
.main-nav .menu li ul {
    transform-origin: top center;
}

.main-nav .menu li:hover > ul {
    transform: translateY(0) scale(1);
}

/* Стили для активного состояния */
.main-nav .menu .current-menu-item > a,
.main-nav .menu .current-menu-parent > a {
    color: #ff0c9a;
    background: rgba(255, 12, 154, 0.1);
}

/* Улучшенные стили для мобильного меню */
@media (max-width: 768px) {
    .main-nav .menu li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.05);
        margin: 10px 0;
        border-radius: 8px;
        border: none;
        box-shadow: none;
    }
    
    .main-nav .menu li ul li a {
        padding: 10px 20px;
        margin: 0;
        border-radius: 0;
    }
    
    .main-nav .menu li ul li a:hover {
        transform: none;
        background: rgba(255, 12, 154, 0.2);
    }
}
.site-logo {
    display: flex;
    align-items: center;
    height: 100%;
}
.site-logo img {
    max-height: 88px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.site-title-text {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}
body {
    padding-top: 110px;
}
.main-title {
    width: 100%;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 36px;
}
.main-title h1 {
    color: #fff;
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 1px;
}
footer {
    background: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
}
main {
    padding: 100px 0;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-title {
    width: 100%;
    text-align: center;
    margin-bottom: 60px;
}
.main-blocks-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 96vw;
    max-width: 1350px;
    margin: 0 auto 56px;
}
@media (max-width: 900px) {
  .main-blocks-wrapper {
    width: 95%;
    gap: 24px;
  }
  
  .main-block {
    flex-direction: column;
    min-width: 0;
    padding: 24px;
  }
  
  .main-block-right {
    width: 100%;
    min-width: 0;
  }
  
  .main-block-gallery {
    margin: 0 -24px;
    padding: 8px 24px;
  }
  
  .main-block-gallery img {
    height: 120px;
  }
}
/* Блок без анимаций */
.main-block {
    background: linear-gradient(150deg, #ff0c9a69 0%, #333 100%);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgb(0, 0, 0);
    padding: 32px;
    min-width: 480px;
    width: 100%;
    color: #fff;
    flex: 1 1 auto;
    display: flex;
    gap: 32px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.main-block-left {
    flex: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.main-block-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.main-block-info h2 {
    flex: 1;
    margin: 0;
    white-space: nowrap;
}

.main-block-info p {
    flex: 2;
    margin: 0;
}

.main-block-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
}

.main-block-gallery img {
    height: 160px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
}

.main-block-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-width: 240px;
}
.main-block h2 {
    margin-bottom: 12px;
    text-decoration: none;
}
.main-block:hover, .main-block:focus {
    box-shadow: 0 12px 36px 0 rgba(255,12,154,0.32), 0 4px 24px rgb(0,0,0,0.25);
    transform: translateY(-4px) scale(1.03);
    text-decoration: none;
    outline: none;
}
.main-block:active {
    box-shadow: 0 2px 8px 0 rgba(255,12,154,0.18);
    transform: translateY(2px) scale(0.98);
}
/* Стили для заголовка над блоками */

/* Мобильная оптимизация */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
        margin: 0;
        padding: 0;
    }

    main {
        width: 100%;
        padding: 20px 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .service-content {
        width: calc(100% - 40px) !important;
        margin: 20px auto !important;
        padding: 24px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Сброс grid на flex для мобильных */
    div[style*="display:grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Исправление блоков внутри сетки */
    div[style*="background:rgba(255,255,255,0.05)"] {
        width: 100% !important;
        margin: 0 0 16px 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    /* Исправление таблиц */
    table {
        width: 100% !important;
        display: table !important;
        table-layout: fixed !important;
        margin: 0 !important;
    }

    td, th {
        padding: 10px !important;
        word-break: break-word !important;
        font-size: 14px !important;
    }

    /* Отступы и размеры текста */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.1rem !important; }
    p { font-size: 1rem !important; }

    /* Отступы для блоков */
    div[style*="margin:40px"] {
        margin: 24px 0 !important;
        width: 100% !important;
    }

    /* Контейнеры */
    div[style*="max-width:1200px"] {
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    /* Кнопки */
    .hero-btn {
        width: 100% !important;
        margin: 16px 0 !important;
    }

    /* Списки */
    ul {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    li {
        margin-bottom: 8px !important;
        width: 100% !important;
    }
}

/* Дополнительные фиксы для очень маленьких экранов */
@media (max-width: 380px) {
    .service-content {
        padding: 16px !important;
    }

    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.2rem !important; }
    h4 { font-size: 1rem !important; }
    p { font-size: 0.95rem !important; }
}
    
    .main-block-info {
        flex-direction: column;
        text-align: center;
    }
    
    .main-block-info h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .main-block-info p {
        font-size: 1rem;
    }
    
    .main-block-gallery {
        margin: 0 -20px;
        padding: 8px 20px;
    }
    
    .main-block-gallery img {
        height: 100px;
    }

/* Исправление горизонтальной прокрутки */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    main {
        padding: 20px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .service-content {
        margin: 0 20px 32px 20px;
        padding: 24px;
        width: auto;
        box-sizing: border-box;
    }

    .service-content > div {
        margin: 24px 0;
    }

    .hero-block {
        margin: 88px 0 0 0;
        padding: 0 16px;
        width: auto;
        box-sizing: border-box;
    }

    .contacts-block {
        /* Full-bleed on mobile */
        margin: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        max-width: 100vw;
        padding: 0;
        border-radius: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        box-sizing: border-box;
    }

    .main-blocks-wrapper {
        margin: 0 20px;
        width: auto;
    }

    /* Контакты: карта сверху, текст ниже, меньшие отступы */
    .contacts-map {
        order: 1;
        justify-content: center;
        width: 100%;
        max-width: none;
    }

    .contacts-map iframe {
        display: block;
        width: 100%;
        min-height: 260px;
        border-radius: 0;
        border: 0;
    }

    .contacts-info {
        order: 2;
        gap: 6px;
        font-size: 1rem;
        width: 100%;
        padding: 16px 20px 20px;
        box-sizing: border-box;
    }

    .contacts-info h2 {
        margin: 8px 0 12px 0 !important;
        font-size: 1.4rem !important;
        text-align: center !important;
    }

    .contacts-info p {
        margin: 0;
        line-height: 1.4;
    }
    
    .main-block {
        min-width: 0;
    }

    /* Исправление наложения блоков */
    [style*="display:grid"], [style*="display: grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin: 24px 0 !important;
    }

    .service-content > div {
        width: 100% !important;
        margin: 0 0 24px 0 !important;
        box-sizing: border-box !important;
    }

    .service-content [style*="background:rgba(255,255,255,0.05)"],
    .service-content [style*="background: rgba(255,255,255,0.05)"] {
        width: 100% !important;
        margin: 0 0 16px 0 !important;
        box-sizing: border-box !important;
    }

    /* Принудительно исправляем отступы */
    div[style*="margin:40px"],
    div[style*="margin: 40px"] {
        margin: 24px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Фиксация отступов для всех блоков */
    div[style*="margin:40px"] {
        margin: 24px 0 !important;
    }

    div[style*="padding:24px"] {
        padding: 16px !important;
    }
}

/* Улучшенная производительность для мобильных */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .hero-slider,
    .main-block,
    .service-content {
        will-change: transform;
    }
    
    .hero-slide img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -7px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header-inner {
        position: relative;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        width: 50vw;
        height: 100vh;
        margin: 0;
        padding: 80px 0 20px 0;
        box-sizing: border-box;
        background: rgba(35, 35, 35, 0.98);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1100;
        backdrop-filter: blur(10px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav .menu {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        flex-direction: column;
        gap: 16px;
    }

    .main-nav .menu > li {
        width: 100%;
    }

    .main-nav .menu > li > a {
        width: 100%;
        box-sizing: border-box;
    }

    /* Фикс для контейнера */
    body, html {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Стили для страниц услуг на мобильных устройствах */
@media (max-width: 768px) {
    .service-content {
        padding: 24px !important;
        margin: 20px !important;
        width: auto !important;
        box-sizing: border-box;
    }

    .service-content > div {
        margin: 32px 0 !important;
        width: 100% !important;
    }

    .service-content div[style*="display:grid"],
    .service-content div[style*="display: grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .service-content div[style*="background:rgba(255,255,255,0.05)"] {
        width: 100% !important;
        margin: 0 0 16px 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }

    /* Исправление таблиц */
    .service-content table {
        width: 100% !important;
        font-size: 14px !important;
    }

    /* Отступы для заголовков */
    .service-content h2[style*="font-size"] {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }

    .service-content h3[style*="font-size"] {
        font-size: 1.3rem !important;
        margin-bottom: 16px !important;
    }

    .service-content h4[style*="color:#ff0c9a"] {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }

    /* Размер текста */
    .service-content p[style*="font-size"] {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }

    /* Кнопка связи */
    .service-content .hero-btn {
        width: 100% !important;
        max-width: none !important;
        margin: 16px 0 !important;
        box-sizing: border-box !important;
    }

    /* Отступы для списков */
    .service-content ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    .service-content li {
        margin-bottom: 8px !important;
    }

    /* Блок с ценами */
    .service-content div[style*="margin:40px"] table td,
    .service-content div[style*="margin:40px"] table th {
        padding: 10px !important;
    }
}

/* Исправление обрезания блоков на мобильных */
@media (max-width: 768px) {
    /* Сброс стилей контейнера */
    div[style*="max-width:1200px"] {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Исправление отступов сервисного контента */
    .service-content {
        width: calc(100% - 20px) !important;
        margin: 10px !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
    }

    /* Исправление отступов внутренних блоков */
    .service-content > div {
        width: 100% !important;
        margin: 20px 0 !important;
        padding: 0 !important;
    }

    /* Исправление grid-блоков */
    div[style*="display:grid"] {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 16px !important;
    }

    /* Исправление блоков с фоном */
    div[style*="background:rgba(255,255,255,0.05)"] {
        width: 100% !important;
        margin: 0 0 16px 0 !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    /* Исправление таблиц */
    table {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Исправление общих отступов */
    main {
        padding: 20px 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Исправление призыва к действию */
    div[style*="text-align:center"] {
        width: 100% !important;
        padding: 0 !important;
        margin: 32px 0 0 0 !important;
    }

    /* Сброс минимальной ширины */
    * {
        min-width: 0 !important;
    }
}

/* Дополнительные фиксы для маленьких экранов */
@media (max-width: 380px) {
    .service-content {
        margin: 5px !important;
        padding: 15px !important;
    }
}

/* Исправление main-block для мобильных устройств */
@media (max-width: 768px) {
    .main-blocks-wrapper {
        width: auto;
        margin: 0 16px;
        padding: 0;
    }

    .main-block {
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
        flex-direction: column;
    }

    .main-block-left {
        width: 100%;
        flex-direction: column;
        gap: 16px;
    }

    .main-block-info {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .main-block-info h2 {
        white-space: normal;
        font-size: 1.3rem;
        width: 100%;
        margin-bottom: 8px;
    }

    .main-block-info p {
        font-size: 1rem;
        width: 100%;
    }

    .main-block-right {
        width: 100%;
        min-width: 0;
        margin-top: 16px;
    }

    .main-block:hover,
    .main-block:focus {
        transform: none;
    }
}

/* Форсируем высоту карты именно на мобильных/планшетах */
@media (max-width: 900px) {
    .contacts-info .contacts-map-embed {
        height: 720px !important;
    }
    .contacts-info .contacts-map-embed iframe {
        height: 80vh !important;
        min-height: 480px !important;
        max-height: 900px !important;
        display: block !important;
    }
}

/* Контакты: карта внутри contacts-info по умолчанию */
.contacts-map-embed iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
}



/* Мобильные правки для контактного блока, чтобы не залезал и не прятался под шапкой */
@media (max-width: 768px) {
    .contacts-block {
        margin-top: 24px !important;
        margin-bottom: 120px !important;
        scroll-margin-top: 110px;
        overflow: visible !important;
        padding: 0 !important;
        background: transparent !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
        width: calc(100% - 16px) !important;
        max-width: none !important;
        border-radius: 0 !important;
    }
    .contacts-info {
        padding: 20px 16px 64px !important;
        position: relative;
        z-index: 1;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box;
        gap: 14px !important;
        background: linear-gradient(150deg, #232323 60%, #ff0c9a1a 100%) !important;
        border-radius: 16px !important;
        overflow: visible !important;
    }
    .contacts-map-embed {
        width: 100% !important;
        height: clamp(480px, 85vh, 900px) !important;
        margin: 0 0 16px 0 !important;
        order: 0 !important;
        position: relative !important;
        z-index: 0 !important;
    }
    .contacts-map-embed iframe {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        border-radius: 12px !important;
    }
}

