/* Фіксуємо темну шапку на внутрішніх сторінках */
body:not(.home) .site-header,
body:not(.home) #masthead {
    position: sticky !important;
    top: 34 !important;
    background-color: rgba(18, 18, 18, 0.95) !important; /* Темний фон */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;

    margin-bottom: 0 !important;
    z-index: 9999 !important;
}

/* Колір посилань меню на внутрішніх сторінках */
body:not(.home) .main-navigation a,
body:not(.home) #mainnav ul li a {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Прибираємо зайвий відступ (паддінг) зверху сторінки, якщо меню зміщувало контент */
body:not(.home) #content,
body:not(.home) .page-wrap {
    padding-top: 0 !important;
}
/* 1. Вирівнюємо колір верхньої інформаційної смужки та шапки */
body:not(.home) .top-bar,
body:not(.home) #masthead,
body:not(.home) .site-header,
body:not(.home) .header-wrap {
    background-color: #121212 !important; /* Єдиний темний колір для всього верху */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Прибираємо відступи та межі у контейнера шапки, щоб фон був суцільним від краю до краю */
body:not(.home) .site-header .container,
body:not(.home) #masthead .container {
    width: 100% !important;
    max-width: 1200px !important; /* Контент всередині тримається 1200px, а фон іде на весь екран */
    margin: 0 auto !important;
    background: transparent !important;
}

/* 3. Якщо у верхній смужки є нижня межа/лінія, робимо її ледве помітною */
body:not(.home) .top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.page-wrap,
#content,
.site-main,
article.page {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 3. Приховуємо порожні футерні елементи сторінки, які можуть створювати білу смугу */
.entry-footer,
.page .entry-footer {
    display: none !important;
}
.header-elements .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important; 
    height: 40px !important;
    padding: 0 !important;  
    background-color: rgba(230, 0, 0, 0.9) !important;
    border: 1px solid rgba(230, 0, 0, 0.6) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    line-height: 0 !important; 
}
.header-elements .menu-toggle:hover,
.header-elements .menu-toggle:focus {
    background-color: rgba(230, 0, 0, 1) !important;
    border-color: rgba(230, 0, 0, 1) !important;
}
.header-elements .menu-toggle .screen-reader-text {
    display: none !important;
}
.header-elements .menu-toggle .sydney-svg-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}
.header-elements .menu-toggle .sydney-svg-icon svg {
    width: 22px !important;
    height: 15px !important;
    display: block !important;
    margin: 0 auto !important;
}

.header-elements .menu-toggle .sydney-svg-icon svg rect {
    fill: #ffffff !important;
}
.autec-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    z-index: 99999;
    background-color: #121212;
    color: #b0b0b0;
    font-size: 15px;
    padding: 8px 6px;
    border-bottom: 1px solid #222222;
    box-sizing: border-box;
}

.autec-top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autec-top-bar a {
    color: #ffffff !important;
    text-decoration: none;
}

.autec-top-bar a:hover {
    color: #e60000 !important;
}

.autec-top-bar .divider {
    margin: 0 10px;
    color: #444;
}

/* Примусово зміщуємо ВСЮ шапку Sydney на 36px нижче */
header#masthead,
.site-header,
.header-elements-wrapper {
    top: 36px !important;
}

/* Коригуємо верхній відступ сторінки, щоб Hero-банер не підлізав під шапку */
body {
    padding-top: 36px !important;
}

@media (max-width: 768px) {
    .top-bar-right {
        display: none;
    }
    .autec-top-bar-container {
        justify-content: center;
    }
}
/* Кнопка в меню (Aktueller Lagerbestand) */
#mainnav ul li.header-btn > a,
#primary-menu li.header-btn > a,
#primary-menu li#menu-item-76 > a {
    background-color: #e60000 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-top: -10px !important;
    margin-left: 15px !important;
    display: inline-block !important;
}

#mainnav ul li.header-btn > a:hover,
#primary-menu li.header-btn > a:hover,
#primary-menu li#menu-item-76 > a:hover {
    background-color: #cc0000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

/* Скидання стилю для мобільних пристроїв */
@media (max-width: 1024px) {
    #mainnav ul li.header-btn > a,
    #primary-menu li.header-btn > a,
    #primary-menu li#menu-item-76 > a {
         color: inherit !important;
        padding: 10px  !important;
        margin-left: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }
}
.sydney-hero-area, 
#wp-custom-header,
.header-image {
    position: relative !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important; /* Обрізає все, що вилазить за межі */
}
/* Головний контейнер Hero */
.autec-hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.09) 0%, rgba(10, 10, 10, 0.09) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.autec-hero-container {
    max-width: 850px;
    text-align: center;
}
.autec-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 0, 0, 0.15);
    border: 1px solid rgba(230, 0, 0, 0.5);
    color: #ff4d4d;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}
.autec-hero-title {
    color: #ffffff !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 16px !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.autec-hero-title .accent-text {
    color: #e60000;
    background: -webkit-linear-gradient(45deg, #e60000, #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.autec-hero-subtitle {
    color: #cccccc !important;
    font-size: 22px !important;
    line-height: 1.5 !important;
    max-width: 650px;
    margin: 0 auto 30px auto !important;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}
.autec-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.autec-btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.autec-btn-primary {
    background: #e60000;
    color: #ffffff !important;
    border: 2px solid #e60000;
}

.autec-btn-primary:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.4);
}

.autec-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.autec-btn-secondary:hover {
    background: #ffffff;
    color: #111111 !important;
    border-color: #ffffff;
    transform: translateY(-3px);
}
@media (max-width: 768px) {
    .autec-hero-badge {
        font-size: 22px;
        padding: 5px 12px;
        margin-bottom: 15px;
    }
    .autec-hero-title {
        font-size: 26px !important;
    }
    .autec-hero-subtitle {
        font-size: 18px !important;
        margin-bottom: 25px !important;
    }
    .autec-hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .autec-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}
/* Мобільні коригування для Hero-блоку */
@media (max-width: 768px) {
    /* Збільшуємо висоту контейнера Hero */
    .sydney-hero-area, 
    #wp-custom-header,
    .header-image {
        min-height: 600px !important;
        height: auto !important;
    }

    /* Опускаємо весь контент нижче шапки */
    .autec-hero-overlay {
        padding-top: 270px !important; /* Відштовхує контент від логотипа та меню */
        padding-bottom: 40px !important;
        align-items: flex-start !important; /* Текст буде розгортатися зверху донизу */
    }

    /* Бейдж над заголовком */
    .autec-hero-badge {
        font-size: 14px !important;
        padding: 4px 2px !important;
        margin-bottom: 12px !important;
    }

    /* Адаптивний заголовок */
    .autec-hero-title {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
    }

    /* Примусово переносимо акцентні слова на мобільному, щоб нічого не залізало */
    .autec-hero-title .accent-text {
        display: inline-block;
    }

    /* Підзаголовок */
    .autec-hero-subtitle {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    /* Кнопки на всю ширину екрана */
    .autec-hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .autec-btn {
        width: 100% !important;
        padding: 12px 14px !important;
        font-size: 18px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
}
/* Соковитий фото-фон для мобільних та десктопу, коли відео відсутнє/заблоковане */
.sydney-hero-area, 
#wp-custom-header,
.header-image {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(15,15,15,0.9) 100%);
 
}
/* Ховаємо Hero-банер та його фонове зображення на мобільних для ВСІХ сторінок, КРІМ головної */
body:not(.home) .sydney-hero-area,
body:not(.home) #wp-custom-header,
body:not(.home) .header-image {
    display: none !important;
}

/* Переконуємось, що звичайна шапка на внутрішніх сторінках має правильний відступ */
body:not(.home) #content {
    padding-top: 20px;
}
/* Примусовий фон шапки у Sydney */

header.site-header,
.site-header .header-inner,
.site-header-inner,
.main-header,
.header-elements-wrapper {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Фон шапки при скролі (Sticky) */
header.site-header.fixed,
header.site-header.header-scrolled,
.main-header.is-sticky,
.is-sticky .header-inner {

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Читабельність тексту та іконок */
#mainnav ul li a,
#primary-menu li a {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Іконка пошуку в шапці */
.header-search .sydney-svg-icon svg path {
    fill: #ffffff !important;
}
/* Блок брендів та партнерів на всю ширину екрана */
.autec-partners-section {
     padding: 30px 15px;
    border-top: 1px solid #222222;
    border-bottom: 1px solid #222222;
    position: relative !important;
    box-sizing: border-box !important;
}

.autec-partners-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.autec-partners-title {
    color: #999999;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.autec-partners-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-item {
    flex: 1;
    min-width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Робимо логотипи яскравими, чіткими та контрастними на темному тлі */
.partner-item img {
    max-height: 42px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.85); /* Перетворює всі логотипи на стильні чисті білі силиети */
    transition: all 0.3s ease;
}

.partner-item img:hover {
    filter: brightness(1) invert(0) opacity(1); /* При наведенні показує оригінальний колір */
    transform: scale(1.08);
}

/* Мобільне коригування (сітка 3х2 для смартфонів) */
@media (max-width: 768px) {
    .autec-partners-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 15px;
        align-items: center;
    }
    
    .partner-item img {
        max-height: 35px;
        max-width: 90%;
        filter: brightness(0) invert(1) opacity(0.9); /* На мобільному робимо білими й чіткими */
    }
}
/* Блок візуальних карток */
.autec-showcase-section {
   
    padding: 70px 20px;
}

.autec-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
}

.autec-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* Картка */
.showcase-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    background: #181818;
    border: 1px solid #282828;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover {
    transform: translateY(-8px);
    border-color: #e60000;
    box-shadow: 0 12px 30px rgba(230, 0, 0, 0.25);
}

/* Зображення з ефектом зуму */
.showcase-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-card:hover .showcase-image img {
    transform: scale(1.08);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(10, 10, 10, 0.4) 100%);
}

/* Текстовий контент поверх фото */
.showcase-content {
    position: relative;
    z-index: 2;
    padding: 25px;
}

.showcase-tag {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #cccccc;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.showcase-tag.badge-red {
    color: #ff4d4d;
}

.showcase-title {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
}
.autec-section-title {
color: #fdfdfd !important;
}

.autec-section-subtitle {
color: #fdfdfd !important;
}
.showcase-btn {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.showcase-card:hover .showcase-btn {
    color: #e60000;
}

.showcase-btn.btn-red {
    color: #ff4d4d;
}

/* Адаптивність під смартфони */
@media (max-width: 992px) {
    .autec-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .showcase-card {
        height: 280px;
    }
}
@media (max-width: 768px) {
    .autec-showcase-section {
        background: rgba(15, 15, 15, 0.05) !important; /* Затемнення на весь екран */
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        border-radius: 0 !important; /* Прибираємо кути */
        border: none !important;
        padding: 30px 20px !important;
        box-sizing: border-box !important;
    }
}
/* Блок переваг AUTEC */
.autec-advantages-section {
    background-color: #121212;
    padding: 80px 20px;
    border-top: 1px solid #222222;
}

.autec-advantages-container {
    max-width: 1200px;
    margin: 0 auto;
}

.autec-advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.advantage-card {
    background: #181818;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: #e60000;
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.15);
}

.advantage-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: inline-block;
}

.advantage-title {
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

.advantage-text {
    color: #aaaaaa;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* Адаптивність */
@media (max-width: 992px) {
    .autec-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .autec-advantages-grid {
        grid-template-columns: 1fr;
    }
}
/* 2. Скидаємо власні фони та ширину внутрішньої HTML-секції */
.autec-advantages-section {
    background: transparent !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* 3. Центруємо контент у стандартному контейнері 1200px */
.autec-advantages-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.autec-advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 45px;
}

/* Картки переваг */
.advantage-card {
    background: rgba(26, 26, 26, 0.7) !important; /* Напівпрозорі картки */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    padding: 30px 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.advantage-card:hover {
    transform: translateY(-6px);
    border-color: #e60000 !important;
    background: rgba(32, 32, 32, 0.9) !important;
    box-shadow: 0 12px 30px rgba(230, 0, 0, 0.25);
}

.advantage-icon {
    font-size: 34px;
    margin-bottom: 18px;
    display: inline-block;
}

.advantage-title {
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

.advantage-text {
    color: #bbbbbb;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* Адаптивність */
@media (max-width: 992px) {
    .autec-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .autec-advantages-grid {
        grid-template-columns: 1fr;
    }
}
/* Блок послуг AUTEC */
.autec-services-section {
    padding: 60px 0;
    width: 100%;
}

.autec-services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.autec-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 45px;
}

/* Картка послуги */
.service-card {
    background: #181818;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #383838;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    background: #e60000; /* Червона акцентна смужка зверху при наведенні */
}

.service-icon-wrap {
    width: 55px;
    height: 55px;
    background: rgba(230, 0, 0, 0.1);
    border: 1px solid rgba(230, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.service-icon {
    font-size: 26px;
}

.service-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

.service-text {
    color: #aaaaaa;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    color: #e60000 !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.service-card:hover .service-link {
    gap: 10px;
    color: #ff3333 !important;
}

/* Адаптивність */
@media (max-width: 992px) {
    .autec-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .autec-services-grid {
        grid-template-columns: 1fr;
    }
}
/* CTA Блок */
.autec-cta-section {
    padding: 60px 20px;
    width: 100%;
}

.autec-cta-container {
    max-width: 1200px;
    margin: 0 auto;
}

.autec-cta-box {
    background: linear-gradient(135deg, #1c1c1c 0%, #121212 100%);
    border: 1px solid rgba(230, 0, 0, 0.3);
    border-radius: 12px;
    padding: 45px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.autec-cta-title {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 10px 0 !important;
}

.autec-cta-subtitle {
    color: #aaaaaa;
    font-size: 18px;
    margin: 0;
}

/* Кнопки */
.autec-btn-primary {
    background: #e60000;
    color: #ffffff !important;
    border: none;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.autec-btn-primary:hover {
    background: #ff1a1a;
    box-shadow: 0 8px 20px rgba(230, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Модальне вікно */
.autec-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.autec-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.autec-modal-card {
    background: #161616;
    border: 1px solid #333333;
    border-radius: 14px;
    max-width: 650px;
    width: 100%;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.autec-modal-backdrop.active .autec-modal-card {
    transform: scale(1);
}

.autec-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #aaaaaa;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
}

.autec-modal-close:hover {
    color: #ffffff;
}

.autec-modal-header h3 {
    color: #ffffff !important;
    font-size: 24px !important;
    margin-bottom: 5px !important;
}

.autec-modal-header p {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 25px;
}

.autec-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.autec-modal-location {
    background: #202020;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 20px;
}

.autec-modal-location h4 {
    color: #ffffff !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

.loc-address {
    color: #888888;
    font-size: 12px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.loc-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loc-btn {
    display: block;
    padding: 8px 12px;
    background: #161616;
    border: 1px solid #333333;
    border-radius: 5px;
    color: #ffffff !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.loc-btn:hover {
    border-color: #e60000;
    color: #e60000 !important;
}

.autec-modal-footer {
    border-top: 1px solid #262626;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.social-title {
    color: #aaaaaa;
    font-size: 13px;
}

.autec-social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    background: #252525;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.social-icon.fb:hover { background: #1877f2; }
.social-icon.ig:hover { background: #e1306c; }

/* Адаптив під смартфони */
@media (max-width: 768px) {
    .autec-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .autec-modal-grid {
        grid-template-columns: 1fr;
    }
    .autec-modal-card {
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
}
/* Преміальний Dark Footer */
.autec-footer {

    border-top: 1px solid #1f1f1f;
    color: #888888;
    font-size: 18px;
    padding-top: 60px;
    width: 100%;
    box-sizing: border-box;
}

.autec-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    box-sizing: border-box;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.logo-red {
    color: #e60000;
}

.logo-sub {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
}

.footer-desc {
  font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #999999;
}

.footer-heading {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
font-size: 18px !important;
    color: #aaaaaa !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #e60000 !important;
    padding-left: 4px;
}

/* Соцмережі */
.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #181818;
    border: 1px solid #282828;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    background: #e60000;
    border-color: #e60000;
    transform: translateY(-2px);
}

/* Копірайт стрічка */
.autec-footer-bottom {
    background-color: #050505;
    border-top: 1px solid #141414;
    padding: 20px 0;
}

.autec-footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666666;
}

.autec-footer-bottom p {
    margin: 0;
}

/* Адаптивність для мобільних */
@media (max-width: 992px) {
    .autec-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .autec-footer-container {
        grid-template-columns: 1fr;
    }
    .autec-footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
.site-footer {
background: #191919 !important; 
}
/* Сторінка Über uns — Збільшені читабельні шрифти */
.autec-about-page {
    padding: 10px 0;
    width: 100%;
    color: #ffffff;
}
.autec-about-page h1{
    color: #fefefe !important;
    font-size: 48px !important;
    text-align: center;
    padding-bottom: 30px;
    }
    @media (max-width: 576px) { 
    .autec-about-page h1{
    color: #fefefe !important;
    font-size: 30px !important;
    text-align: center;
    padding-bottom: 3px;
    }
    }
.autec-about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. Історія та Філософія */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-subtitle {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.about-text {
    color: #dddddd;
    font-size: 16px !important; /* Підняли з 14px до 16px */
    line-height: 1.7 !important;
    margin-bottom: 20px;
}

.about-text strong {
    color: #ffffff;
}

.about-highlights {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px !important; /* Чіткий список перелік */
    color: #ffffff;
    font-weight: 600;
}

.check-icon {
    color: #e60000;
    font-weight: 900;
    font-size: 18px;
}

.story-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #282828;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 2. Цифри та Факти (Stats) */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    background: #181818;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #e60000;
}

.stat-number {
    font-size: 42px !important;
    font-weight: 900;
    color: #e60000;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 18px !important;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 15px !important; /* Підняли опис з 13px до 15px */
    color: #bbbbbb !important;
    margin: 0;
    line-height: 1.4;
}

/* 3. Картки переваг */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.feature-card {
    background: #161616;
    border: 1px solid #262626;
    border-radius: 10px;
    padding: 35px 25px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #383838;
    background: #1c1c1c;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 18px;
}

.feature-card h3 {
    color: #ffffff !important;
    font-size: 22px !important;
    margin-bottom: 14px !important;
    font-weight: 700 !important;
}

.feature-card p {
    color: #cccccc !important;
    font-size: 15px !important; /* Підняли з 14px до 15px */
    line-height: 1.6 !important;
    margin: 0;
}

/* Адаптив під мобільні */
@media (max-width: 992px) {
    .about-story-grid {
        grid-template-columns: 1fr;
    }
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1024px) {
    /* 1. Фіксуємо верхню інфо-смугу на самому верху */
    body:not(.home) .autec-top-bar,
    body:not(.home) .top-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 34px !important; /* Точна висота верхньої смуги */
        z-index: 99999 !important;

    }

    /* 2. Фіксуємо мобільне меню СТРІЧКОВО РІВНО ПІД ВЕРХНЬОЮ СМУГОЮ (top: 34px) */
    body:not(.home) #masthead-mobile,
    body:not(.home) .mobile-header {
        position: fixed !important;
        top: 34px !important; /* Відступ точно на висоту autec-top-bar */
        left: 0 !important;
        width: 100% !important;
        z-index: 99998 !important;

        margin-top: 0 !important;
    }

    /* 3. Висувне меню (offcanvas) відкривається поверх усього */
    .sydney-offcanvas-menu {

        z-index: 999999 !important;
    }

    .sydney-offcanvas-menu a {
        color: #ffffff !important;
    }

    /* 4. Компенсуємо загальну висоту обох шапок (34px + ~65px логотип = ~100px) для контенту */
    body:not(.home) #content,
    body:not(.home) .page-wrap {
        padding-top: 100px !important;
    }
}
/* Сторінка Fahrzeuge mieten */
.autec-rent-page {
    padding: 60px 0;
    width: 100%;
    color: #ffffff;
}
.autec-rent-page  h1{
font-size: 38px !important;
color: #fefefe !important;
text-align: center;
    padding: 50px 40px;
}
.autec-rent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. Переваги оренди */
.rent-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.rent-feature-card {
    background: #181818;
    border: 1px solid #282828;
    border-radius: 12px;
    padding: 35px 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rent-feature-card:hover {
    transform: translateY(-5px);
    border-color: #e60000;
}

.rent-icon {
    font-size: 36px;
    margin-bottom: 18px;
}

.rent-feature-card h3 {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.rent-feature-card p {
    color: #cccccc !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0;
}

/* 2. Блок Партнера Driveautovermietung */
.partner-box {
    background: linear-gradient(135deg, #181818 0%, #111111 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.partner-tag {
    color: #e60000;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.partner-header h2 {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
}

.partner-header p {
    color: #bbbbbb !important;
    font-size: 16px !important;
    max-width: 650px;
    margin: 0 auto 30px auto !important;
    line-height: 1.6;
}

.partner-online-btn {
    display: inline-block;
    margin-bottom: 45px;
    padding: 16px 36px;
    font-size: 16px !important;
}

/* 3. Філіали */
.partner-branches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.branch-card {
    background: #202020;
    border: 1px solid #303030;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.branch-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(230, 0, 0, 0.15);
    color: #e60000;
    border: 1px solid rgba(230, 0, 0, 0.3);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.branch-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.branch-address {
    color: #aaaaaa !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 25px !important;
}

.branch-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.branch-btn {
    display: block;
    padding: 12px 16px;
    background: #141414;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.branch-btn:hover {
    border-color: #e60000;
    color: #e60000 !important;
    background: #1a1a1a;
}

/* Адаптив під мобільні */
@media (max-width: 992px) {
    .rent-features-grid {
        grid-template-columns: 1fr;
    }
    .partner-branches-grid {
        grid-template-columns: 1fr;
    }
    .partner-box {
        padding: 35px 20px;
    }
}
@media (max-width: 576px) {
.autec-rent-page h1 {
 font-size: 32px !important; 
}
}
/* Сторінка Standorte & Kontakt */
.autec-standorte-page {
    padding: 60px 0;
    width: 100%;
}

.autec-standorte-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.autec-standorte-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

/* Картка локації */
.standort-card {
    background: #161616;
    border: 1px solid #282828;
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.standort-card:hover {
    border-color: #383838;
    transform: translateY(-4px);
}

.standort-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #e60000;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.standort-title {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
}

.standort-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.info-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #cccccc;
    font-size: 15px;
    line-height: 1.5;
}

.info-icon {
    font-size: 20px;
    background: #222222;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #333333;
    flex-shrink: 0;
}

.contact-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #e60000 !important;
}

.nav-btn {
    width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

/* Блок примітки */
.autec-contact-note {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.autec-contact-note h3 {
    color: #ffffff !important;
    font-size: 20px !important;
    margin-bottom: 8px !important;
}

.autec-contact-note p {
    color: #aaaaaa;
    margin: 0;
    font-size: 15px;
}

/* Адаптив під мобільні */
@media (max-width: 768px) {
    .autec-standorte-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .standort-card {
        padding: 25px 20px;
    }
}
/* 1. Глобальні стилі кнопок сайту (із виключенням кнопок CCM19) */
button:not([class*="ccm"]):not([id*="ccm"]), 
.button:not([class*="ccm"]),
.autec-btn {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
}

/* 2. Повний точковий скид стилів для віджета CCM19 до його оригінального стану */
#ccm-root,
#ccm-root *,
div[id*="ccm"],
button[class*="ccm"],
button[id*="ccm"] {
    padding: unset;
    max-width: unset;
    white-space: unset;
    word-break: unset;
}

/* 3. Перенесення довгих німецьких слів тільки для тексту сайту */
.autec-card-title, 
.autec-section-title,
h1, h2, h3, h4 {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
}
/* Основний контейнер сторінки Fahrzeuge */
.autec-fahrzeuge-page {
    padding: 60px 0;
}

.autec-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Сітка для PDF-карт */
.autec-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.pdf-card {
    background: #161616;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.pdf-card:hover {
    border-color: #e60000;
    transform: translateY(-2px);
}

.pdf-icon {
    font-size: 28px;
    background: #222222;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #333333;
    flex-shrink: 0;
}

.pdf-info {
    flex-grow: 1;
}

.pdf-info h4 {
    color: #ffffff !important;
    font-size: 16px !important;
    margin: 0 0 4px 0 !important;
    font-weight: 700 !important;
}

.pdf-size {
    color: #888888;
    font-size: 13px;
}

.pdf-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

/* Сітка для фотогалереї */
.autec-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #111111;
    aspect-ratio: 16 / 9;
    border: 1px solid #222222;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .autec-pdf-grid {
        grid-template-columns: 1fr;
    }
    .pdf-card {
        flex-direction: column;
        text-align: center;
    }
    .pdf-btn {
        width: 100%;
    }
}
/* Сітка для карток моделей */
.autec-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.model-card {
    background: #161616;
    border: 1px solid #282828;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.model-card:hover {
    border-color: #e60000;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.15);
}

.model-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000000;
}

.model-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.model-card:hover .model-card-image img {
    transform: scale(1.05);
}

.model-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(18, 18, 18, 0.85);
    color: #e60000;
    border: 1px solid #e60000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.model-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.model-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
}

.model-desc {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.model-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: block;
}

@media (max-width: 576px) {
    .autec-models-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* Відео сітка */
.autec-video-section {
    margin-top: 70px;
}

.autec-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.video-card {
    background: #161616;
    border: 1px solid #282828;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
    border-color: #e60000;
    transform: translateY(-4px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    opacity: 1;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(230, 0, 0, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.video-card:hover .play-btn {
    background: #e60000;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 18px;
}

.video-info h4 {
    color: #ffffff !important;
    font-size: 17px !important;
    margin: 0 0 6px 0 !important;
}

.video-info p {
    color: #aaaaaa;
    font-size: 14px;
    margin: 0;
}

/* Модальне вікно (Pop-up Lightbox) */
.autec-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.autec-video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 2;
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.video-modal-close:hover {
    color: #e60000;
}

.video-modal-body {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.video-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.autec-pdf-footer-section {
    padding: 50px 0 30px 0;
    border-top: 1px solid #222222;
    margin-top: 40px;
}

/* Кнопка повернення назад */
.autec-back-wrapper {
    margin-bottom: 50px;
}

.autec-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #ffffff !important;
    border: 1px solid #333333;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.autec-btn-back:hover {
    background: #e60000;
    border-color: #e60000;
    color: #ffffff !important;
    transform: translateX(-4px);
}
/* Блок моделі в стилі GeigerCars */
.autec-model-stock-card {
    background: #141414;
    border: 1px solid #262626;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.autec-model-stock-card:hover {
    border-color: #e60000;
}

.stock-card-badge {
    position: absolute;
    top: -12px;
    left: 25px;
    background: #e60000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.stock-card-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 8px 0 6px 0 !important;
}

.stock-card-desc {
    color: #999999;
    font-size: 14px;
    margin: 0;
    max-width: 580px;
    line-height: 1.5;
}

.stock-btn {
    padding: 12px 24px !important;
    font-size: 14px !important;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .autec-model-stock-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
    }
    .stock-btn {
        width: 100%;
        text-align: center;
    }
}
.wpcs-page-header h1 {
line-height: 100px !important;
}
@media (max-width: 768px) {
#wpcs_template_content {
overflow: hidden !important;
}
}
/* ======================================================
   Адаптація секції "Fahrzeug anfragen" для мобільних
   Десктоп та блок "Ähnliche Fahrzeuge" НЕ ЗАЧІПАЮТЬСЯ
   ====================================================== */

@media (max-width: 768px) {
    /* 1. Перебудовуємо макет секції контактів в 1 колонку */
    .wpcs-detail-contact__layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
        box-sizing: border-box !important;
    }

    /* 2. Ліва картка авто та контейнер форми на 100% ширини */
    .wpcs-detail-contact__left,
    .wpcs-detail-contact__vehicle-card,
    .wpcs-detail-contact .wpcs-contact-form,
    .wpcs-detail-contact .wpcs_contact_form_wrapper,
    .wpcs-detail-contact .wpcs_contact_form {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        left: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. Поля форми в 1 колонку без від'ємних зсувів */
    .wpcs-detail-contact .wpcs_contact_form .row.fields,
    .wpcs-detail-contact .wpcs_contact_form .wpcs_grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4. Примусова адаптація полів вводу, select та captcha */
    .wpcs-detail-contact .wpcs_contact_form .field,
    .wpcs-detail-contact .wpcs_contact_form input[type="text"],
    .wpcs-detail-contact .wpcs_contact_form input[type="email"],
    .wpcs-detail-contact .wpcs_contact_form input[type="tel"],
    .wpcs-detail-contact .wpcs_contact_form textarea,
    .wpcs-detail-contact .wpcs_contact_form .wpcsselect,
    .wpcs-detail-contact .wpcs-form-captcha-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* 5. Кнопка відправки та капча в 1 колонку */
    .wpcs-detail-contact .row.submit {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .wpcs-detail-contact .wpcs-form-submit-wrapper a.wpcs_form_submit {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}
/* ======================================================
   Виправлення блоку "Ähnliche Fahrzeuge" (Десктоп + Мобільний)
   ====================================================== */

/* 1. Скидаємо від'ємні зсуви каруселі WPCarSync */
#section-related .wpcs-carousel,
#section-related .swiper,
#section-related .swiper-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Центруємо слайд та обмежуємо ширину картки */
#section-related .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#section-related .vehicle-on-archive,
#section-related .wpcs-vehicle-card {
    max-width: 380px !important; /* Оптимальна ширина картки авто */
    width: 100% !important;
    margin: 0 auto !important; /* Центрування картки по горизонталі */
    box-sizing: border-box !important;
}

/* 3. Адаптація для смартфонів */
@media (max-width: 768px) {
    #section-related .wpcs-vehicle-card {
        max-width: 98% !important;
    }
}
.story-image-wrap video.about-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    min-height: 200px; /* Запобігає стисканню блоку в 0px */
}