/**
 * KaufDA Style Theme for Joomla 6
 * Точные цвета и стили с kaufda.de
 * 
 * Цветовая схема:
 * Primary (красно-розовый): #ea5a64 / hover: #ed3136
 * Secondary (зелёный): #3fbe82 / hover: #39a270
 * Dark: #333 / Dark1: #717171
 * Gray: #e4e1e1 / Gray1: #f8f7f4
 */

/* === ПОДКЛЮЧЕНИЕ ШРИФТА FIGTREE === */
@font-face {
    font-family: 'Figtree';
    src: url('https://web-assets.bonial.global/fonts/figtree-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'Figtree';
    src: url('https://web-assets.bonial.global/fonts/figtree-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'Figtree';
    src: url('https://web-assets.bonial.global/fonts/figtree-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: fallback;
}

/* === CSS ПЕРЕМЕННЫЕ (как на kaufda.de) === */
:root {
    /* Основные цвета kaufDA */
    --primary: #ea5a64;
    --primaryAction: #ed3136;
    --secondary: #3fbe82;
    --secondaryAction: #39a270;
    
    /* Нейтральные цвета */
    --dark: #333;
    --dark1: #717171;
    --white: #fff;
    --gray: #e4e1e1;
    --gray1: #f8f7f4;
    --gray-transparent: rgba(228, 225, 225, 0.3);
    
    /* Spacing система (база 4px) */
    --spacing: 4px;
    --spacing-0: 0;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 28px;
    --spacing-4xl: 32px;
    --spacing-5xl: 36px;
    --spacing-6xl: 40px;
    
    /* Типографика */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 20px;
    --text-xl: 22px;
    --text-2xl: 24px;
    --text-3xl: 28px;
    --text-4xl: 2.25rem;
    
    /* Скругления */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    
    /* Размеры карточек проспектов */
    --brochure-width: 200px;
    --brochure-height: 340px;
    --brochure-width-small: 175px;
    --brochure-height-small: 270px;
    
    /* Шрифт */
    --font-family: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* === БАЗОВЫЕ СТИЛИ === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 24px;
    font-weight: 400;
    color: var(--dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
}

/* === ТИПОГРАФИКА === */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); margin-block: 24px; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-top: 8px;
    color: var(--dark);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--secondaryAction);
}

/* === HEADER / НАВИГАЦИЯ === */
header,
.navbar,
#header,
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray);
}

.nav-link,
.menu a,
nav a {
    color: var(--dark);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    font-weight: 400;
}

.nav-link:hover,
.menu a:hover,
nav a:hover {
    color: var(--primary);
    background-color: var(--gray1);
}

.nav-link.active,
.menu .active > a {
    color: var(--primary);
    font-weight: 600;
}

/* Основная кнопка (зелёная) */
.btn-primary,
.btn-success {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-primary:hover,
.btn-success:hover {
    background-color: var(--secondaryAction);
    border-color: var(--secondaryAction);
}

/* Акцентная кнопка (красная/розовая) */
.btn-danger,
.btn-accent {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-danger:hover,
.btn-accent:hover {
    background-color: var(--primaryAction);
    border-color: var(--primaryAction);
}

/* Вторичная кнопка (outline) */
.btn-secondary,
.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover,
.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Белая кнопка */
.btn-white {
    background-color: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: var(--gray1);
    border-color: var(--gray1);
}

/* Тёмная кнопка */
.btn-dark {
    background-color: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn-dark:hover {
    background-color: #5A5A5A;
    border-color: #5A5A5A;
}

/* === КАРТОЧКИ ПРОСПЕКТОВ === */
.card,
.item,
.prospekt-card,
.brochure-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.15s ease;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.375;
}

.card-subtitle {
    font-size: var(--text-xs);
    color: var(--dark1);
    margin-top: var(--spacing-xs);
}

/* Изображение проспекта */
.brochure-image {
    width: var(--brochure-width);
    height: var(--brochure-height);
    object-fit: cover;
    border-radius: var(--radius-md);
}

.brochure-image-small {
    width: var(--brochure-width-small);
    height: var(--brochure-height-small);
}

/* === БЕЙДЖИ (сроки действия) === */
.badge,
.label,
.validity-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 16px;
}

/* Зелёный бейдж (действителен) */
.badge-success,
.badge-valid {
    background-color: rgba(63, 190, 130, 0.13);
    color: var(--secondaryAction);
}

/* Красный бейдж (истекает/скидка) */
.badge-danger,
.badge-sale {
    background-color: rgba(234, 90, 100, 0.13);
    color: var(--primary);
}

/* Серый бейдж */
.badge-secondary {
    background-color: var(--gray1);
    color: var(--dark1);
}

/* === ЦЕНЫ === */
.price,
.price-current {
    color: var(--primary);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.25;
}

.price-old,
.price-original {
    color: var(--dark1);
    text-decoration: line-through;
    font-size: var(--text-sm);
}

.price-per-unit {
    font-size: var(--text-xs);
    color: var(--dark1);
}

/* === СЕКЦИИ === */
section,
.section {
    padding: var(--spacing-5xl) 0;
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-2xl);
}

/* Секция с серым фоном */
.bg-gray,
.section-gray {
    background-color: var(--gray1);
}

/* === СЕТКА БРЕНДОВ/КАТЕГОРИЙ === */
.grid-brands,
.grid-categories,
.grid-retailers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-lg);
}

.grid-item {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
}

.grid-item:hover {
    border-color: var(--secondary);
    background-color: var(--gray1);
}

/* === ФОРМЫ === */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--gray);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--text-base);
    color: var(--dark);
    background-color: var(--white);
    transition: all 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(63, 190, 130, 0.15);
}

/* Поле поиска */
.search-input {
    border-radius: var(--radius-3xl);
    padding-left: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23717171'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px;
}

/* === APP BANNER (CTA блок) === */
.app-banner,
.cta-banner {
    background: linear-gradient(to top, #27b021 10%, #27b021 60%, #68f136 100%);
    color: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-6xl);
    text-align: center;
}

.app-banner h2,
.cta-banner h2 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.app-banner p,
.cta-banner p {
    color: var(--white);
    opacity: 0.9;
}

/* === FOOTER === */
footer,
#footer,
.footer {
    background-color: var(--dark);
    color: var(--white);
    /*padding: var(--spacing-6xl) 0 var(--spacing-2xl);*/
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--white);
}

footer h4,
footer h5,
footer .footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

/* === МОДАЛЬНЫЕ ОКНА === */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid var(--gray);
    padding: var(--spacing-xl) var(--spacing-2xl);
}

.modal-body {
    padding: var(--spacing-2xl);
}

.modal-footer {
    border-top: 1px solid var(--gray);
    padding: var(--spacing-lg) var(--spacing-2xl);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
}

.pagination a,
.pagination span,
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray);
    color: var(--dark);
    font-size: var(--text-sm);
    transition: all 0.15s ease;
}

.pagination a:hover,
.page-link:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.pagination .active,
.page-item.active .page-link {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

/* === ALERTS === */
.alert {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid;
}

.alert-success {
    background-color: rgba(63, 190, 130, 0.1);
    border-color: var(--secondary);
    color: var(--secondaryAction);
}

.alert-danger,
.alert-error {
    background-color: rgba(234, 90, 100, 0.13);
    border-color: var(--primary);
    color: var(--primaryAction);
}

.alert-warning {
    background-color: rgba(255, 165, 0, 0.1);
    border-color: orange;
    color: #b86e00;
}

.alert-info {
    background-color: rgba(29, 144, 180, 0.1);
    border-color: #1d90b4;
    color: #1d90b4;
}

/* === УТИЛИТЫ === */

/* Цвета текста */
.text-primary { color: var(--primary) !important; }
.text-primaryAction { color: var(--primaryAction) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-secondaryAction { color: var(--secondaryAction) !important; }
.text-dark { color: var(--dark) !important; }
.text-dark1 { color: var(--dark1) !important; }
.text-white { color: var(--white) !important; }

/* Фоны */
.bg-primary { background-color: var(--primary) !important; }
.bg-primaryAction { background-color: var(--primaryAction) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-secondaryAction { background-color: var(--secondaryAction) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-dark1 { background-color: var(--dark1) !important; }
.bg-white { background-color: var(--white) !important; }
.bg-gray { background-color: var(--gray) !important; }
.bg-gray1 { background-color: var(--gray1) !important; }

/* Границы */
.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--secondary) !important; }
.border-gray { border-color: var(--gray) !important; }
.border-gray1 { border-color: var(--gray1) !important; }

/* Размеры текста */
.text-xs { font-size: var(--text-xs); line-height: 16px; }
.text-sm { font-size: var(--text-sm); line-height: 20px; }
.text-base { font-size: var(--text-base); line-height: 22px; }
.text-lg { font-size: var(--text-lg); line-height: 24px; }
.text-xl { font-size: var(--text-xl); line-height: 26px; }
.text-2xl { font-size: var(--text-2xl); line-height: 28px; }
.text-3xl { font-size: var(--text-3xl); line-height: 32px; }

/* Вес шрифта */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Скругления */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: 9999px; }

/* Тени */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

/* Переходы */
.transition-all {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
    transition: color, background-color, border-color 0.15s ease;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --brochure-width: 175px;
        --brochure-height: 270px;
    }
    
    .grid-brands,
    .grid-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .app-banner {
        padding: var(--spacing-2xl);
    }
}

/* === АНИМАЦИИ === */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* === СКРЫТИЕ SCROLLBAR === */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overscroll-behavior: contain;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* === LAYOUT СЕТКА (с prospektewoche.de) === */

/* Основная сетка страницы */
@media (min-width: 500px) {
    .site-grid {
        grid-template-columns: [full-start] minmax(0,1fr) [main-start] repeat(3,minmax(0,13.83rem)) 332px [main-end] minmax(0,1fr) [full-end] !important;
    }
}

/* Ширина основного контента */
@media (min-width: 1200px) {
    .grid-child {
        width: 1043px;
    }
}

/* Сайдбар справа */
.grid-child.container-sidebar-right {
    margin-left: 1em;
}

/* Header контейнер */
.container-header .grid-child {
    padding: 12px 0 12px 0;
}

/* Меню отступ */
.container-header .mod-menu {
    margin-left: 15px !important;
}

@media (min-width: 992px) {
    .container-header .mod-menu > li + li {
        margin-left: 1.3em !important;
    }
}

/* Мобильные отступы */
@media (max-width: 767.98px) {
    .container-header .container-nav .container-search,
    .container-header .container-nav nav {
    margin: 0.8em 0.5em 0.8em 0em !important;
    /*margin-top: -0em !important; */   }
}

/* === MOBILE LAYOUT === */

/* Header на мобильных 
@media all and (max-width:767px) {
    .container-header .container-nav {
        background: rgba(0,0,0,.03);
    }
}*/

@media (min-width: 768px) and (max-width: 979px) {
    .container-header .container-nav .container-search,
    .container-header .container-nav nav {
    margin: 0.8em 0.5em 0.8em 0em !important;
/*    margin-top: -0em !important;*/
    }
}

/* Скрыть кастом модуль на десктопе */
@media (min-width:768px) {
    div#mod-custom131 {
        display: none;
    }
}

div#mod-custom131 img {
    margin: 0 !important;
}

/* Общие мобильные правила */
@media all and (max-width:767px) {
    iframe {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    html, body {
        width: 100%;
        overflow-x: hidden !important;
    }
    
    [class*="span"],
    .row-fluid [class*="span"] {
        float: none;
        display: block;
        width: auto;
        margin-left: 0;
        overflow: hidden;
    }
}



.finder-input-wrap {
    position: relative;
    display: inline-block;
}
.finder-input-wrap .finder-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}
.finder-input-wrap input.form-control {
    padding-left: 40px !important;
    background: #f5f6f7;
    border: 1px solid #e0e0e0;
    color: #515B5D;
}
.finder-input-wrap input.form-control::placeholder {
    color: #515B5D;
}
.finder-input-wrap input.form-control:focus {
    background: #fff;
    border-color: #bbb;
}


/* Prospekte Grid Styles */
.prospekte-grid {
    display: grid;
    gap: 24px;
    padding: 20px 0;
}
.prospekte-cols-5 { grid-template-columns: repeat(5, 1fr); }
.prospekte-cols-4 { grid-template-columns: repeat(4, 1fr); }
.prospekte-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1200px) {
    .prospekte-cols-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .prospekte-cols-5, .prospekte-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .prospekte-cols-5, .prospekte-cols-4, .prospekte-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .prospekte-grid { gap: 16px; }
}
@media (max-width: 480px) {
    .prospekte-cols-5, .prospekte-cols-4, .prospekte-cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .prospekt-title {
        font-size: 25px !important;
    }
}

.prospekt-card {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.prospekt-title {
    font-size: 16px;
    font-weight: 300;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.prospekt-title a {
    color: inherit;
    text-decoration: none;
}

.prospekt-image-wrapper {
    position: relative;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 3 / 4;
}
.prospekt-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}
.prospekt-image-wrapper a:focus,
.prospekt-image-wrapper a:active,
.prospekt-image-wrapper a:hover {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.prospekt-image {
    object-fit: cover;
    object-position: top; /* привязка к верху — обрезка только снизу */
    width: 100%;
    height: 100%;
}

.prospekt-card:hover .prospekt-image {
    transform: scale(1.03);
}
.prospekt-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.prospekt-follow-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.prospekt-follow-btn:hover {
    background: #3fbe82;
    border-color: #3fbe82;
    color: #fff;
}

.prospekt-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    text-align: center;
}
.prospekt-validity {
    font-size: 13px;
    color: #666;
}
.prospekt-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.prospekt-status.status-new {
    color: #4caf50;
}
.prospekt-status.status-ending {
    color: #f44336;
}
.container-header .container-search {
  /*margin-bottom: 0em !important;*/
    margin-right: .5em !important;
    margin: .25em 0em 0em 0em !important;
}

i.fas.fa-book-open {
    color: #d3483e;
}

i.fas.fa-search {
    color: #d3483e;
}



/* ============================================================
   ProspekteWoche — Mobile Header FINAL v6
   /media/templates/site/cassiopeia_extended/css/my.css
   — заменить все предыдущие блоки ProspekteWoche —
   ============================================================ */

.jmodedit { display: none !important; }

/* ============================================================
   ПЛАНШЕТ: 600px – 979px — полный SVG логотип
   ============================================================ */
@media (min-width: 600px) and (max-width: 979px) {

  header.header.container-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 0 12px !important;
    gap: 10px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
/*    height: 56px !important;*/
  }

  header.header.container-header::before {
    content: "" !important;
    display: block !important;
    flex-shrink: 0 !important;
    order: 0 !important;
    width: 200px !important;
    height: 36px !important;
    background: url('/images/prospektewoche_logo.svg') no-repeat center center !important;
    background-size: contain !important;
    cursor: pointer !important;
  }

  header.header .grid-child.container-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    flex: 1 !important;
    min-width: 0 !important;
    order: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
    height: 100% !important;
  }

  .container-search {
    flex: 1 !important;
    min-width: 0 !important;
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .container-search search,
  .container-search form.mod-finder {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mod-finder__search.finder-pill {
    width: 100% !important;
    margin: 0 !important;
  }

  .finder-pill .form-control {
    font-size: 14px !important;
    padding: 8px 10px !important;
    min-width: 100%;
  }

  .finder-pill-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    background: #d3483e !important;
    border: none !important;
    border-radius: 50% !important;
  }

  .finder-pill-btn:hover { background: #b83830 !important; }

  .dj-megamenu-wrapper {
    order: 2 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    height: 100% !important;
  }

  .dj-megamenu-wrapper > div:empty { display: none !important; }

  #dj-megamenu111mobile {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
  }

  /* ── Кнопка бургера с текстом "Menü" — планшет ─────────── */
  .dj-megamenu-offcanvas-light .dj-mobile-open-btn {
    width: auto !important;
    height: 38px !important;
    background: transparent !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: background 0.2s, border-color 0.2s !important;
    padding: 0 12px 0 10px !important;
    margin: 0 !important;
  }

  .dj-megamenu-offcanvas-light .dj-mobile-open-btn:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
  }

  .dj-megamenu-offcanvas-light .dj-mobile-open-btn .dj-mobile-open-icon::before {
    color: #333 !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  /* Текст "Menü" */
  .dj-megamenu-offcanvas-light .dj-mobile-open-btn::after {
    content: "Menü" !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    letter-spacing: 0.1px !important;
    line-height: 1 !important;
  }

  .dj-megamenu-offcanvas-light .dj-mobile-open-btn.active .dj-mobile-open-icon::before,
  .dj-megamenu-offcanvas-light .dj-mobile-open-btn.active::after {
    color: #d3483e !important;
  }

  .dj-megamenu-offcanvas-light .dj-mobile-open-btn.active {
    border-color: #d3483e !important;
  }

  .psr-ac-dropdown {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: auto !important;
  }

}

/* ============================================================
   МОБИЛЬ: до 599px — компактный PNG логотип
   ============================================================ */
@media (max-width: 599px) {

  header.header.container-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 0 10px !important;
    gap: 8px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  /*  height: 52px !important;*/
  }

  header.header.container-header::before {
    content: "" !important;
    display: block !important;
    flex-shrink: 0 !important;
    order: 0 !important;
    width: 52px !important;
    height: 39px !important;
    background: url('/images/1111.png') no-repeat center center !important;
    background-size: contain !important;
    cursor: pointer !important;
  }

  header.header .grid-child.container-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    flex: 1 !important;
    min-width: 0 !important;
    order: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
    height: 100% !important;
  }

  .container-search {
    flex: 1 !important;
    min-width: 0 !important;
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .container-search search,
  .container-search form.mod-finder {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mod-finder__search.finder-pill {
    width: 100% !important;
    margin: 0 !important;
  }

  .finder-pill .form-control {
    font-size: 13px !important;
    padding: 7px 10px !important;
  }

  .finder-pill-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: #d3483e !important;
    border: none !important;
    border-radius: 50% !important;
  }

  .finder-pill-btn:hover { background: #b83830 !important; }

  .dj-megamenu-wrapper {
    order: 2 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    height: 100% !important;
  }

  .dj-megamenu-wrapper > div:empty { display: none !important; }

  #dj-megamenu111mobile {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
  }

  /* ── Кнопка бургера с текстом "Menü" — мобиль ──────────── */
  .dj-megamenu-offcanvas-light .dj-mobile-open-btn {
    width: auto !important;
    height: 36px !important;
    background: transparent !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    transition: background 0.2s, border-color 0.2s !important;
    padding: 0 10px 0 8px !important;
    margin: 0 !important;
  }

  .dj-megamenu-offcanvas-light .dj-mobile-open-btn:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
  }

  .dj-megamenu-offcanvas-light .dj-mobile-open-btn .dj-mobile-open-icon::before {
    color: #333 !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }

  /* Текст "Menü" */
  .dj-megamenu-offcanvas-light .dj-mobile-open-btn::after {
    content: "Menü" !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
    letter-spacing: 0.1px !important;
    line-height: 1 !important;
  }

  .dj-megamenu-offcanvas-light .dj-mobile-open-btn.active .dj-mobile-open-icon::before,
  .dj-megamenu-offcanvas-light .dj-mobile-open-btn.active::after {
    color: #d3483e !important;
  }

  .dj-megamenu-offcanvas-light .dj-mobile-open-btn.active {
    border-color: #d3483e !important;
  }

  .psr-ac-dropdown {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: auto !important;
  }

}

/* ============================================================
   ДЕСКТОП: от 980px — не трогаем ничего
   ============================================================ */
@media (min-width: 980px) {
  #dj-megamenu111mobile { display: none !important; }
}



span.dj-mobile-open-icon {
    background: none !important;
}

.dj-offcanvas-logo {
    padding: 45px 15px 15px 15px !important;
}

#CookiebotWidget {
    transform: scale(0.6);
    transform-origin: bottom left;
}

@media (max-width: 768px) {
    #CookiebotWidget {
        transform: scale(0.5);
        transform-origin: bottom left;
    }
}

/* =============================================================
   BLOG ARTICLE ENHANCEMENTS (cassiopeia_extended)
   Scope: body.layout-blog .com-content-article
   Articles are generated with inline styles. Rules below
   enhance typography, intro card, carousels & product cards
   without touching the markup/generator. Inline overrides
   use !important only where strictly needed.
   ============================================================= */

/* Typography ------------------------------------------------- */
body.layout-blog .com-content-article__body {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
body.layout-blog .com-content-article__body p {
    line-height: 1.7;
    color: #2b2b2b;
    margin: 0 0 1.1em;
}

/* H1 — spacing + accent underline (no size change) ----------- */
body.layout-blog .com-content-article .page-header h1 {
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 14px;
    position: relative;
}
body.layout-blog .com-content-article .page-header h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: #ea5a64;
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Intro card — magazine style (overlapping tilted previews) -- */
body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%) !important;
    border-color: #e8e8e8 !important;
    overflow: visible !important;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 18px !important;
}
body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10) !important;
}

/* image stack -------------------------------------------------- */
body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] {
    padding: 14px 24px 14px 8px !important;
}
body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="flex-direction: column"] {
    padding-left: 8px;
}
body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] > img {
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
    border: 1px solid #fff !important;
}
body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] > img:nth-child(1) {
    transform: rotate(-5deg) translateY(2px);
    z-index: 2;
    position: relative;
}
body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] > img:nth-child(2) {
    transform: rotate(5deg) translateY(-2px);
    margin-left: -36px !important;
    z-index: 1;
    position: relative;
}
body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"]:hover > div[style*="gap: 6px"] > img:nth-child(1) {
    transform: rotate(-7deg) translate(-2px, 0) scale(1.02);
}
body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"]:hover > div[style*="gap: 6px"] > img:nth-child(2) {
    transform: rotate(7deg) translate(2px, -4px) scale(1.02);
}

/* Mobile: flat side-by-side ----------------------------------- */
@media (max-width: 600px) {
    body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] {
        flex-direction: column;
    }
    body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] {
        padding: 0 !important;
        flex: 0 0 100% !important;
        justify-content: center;
    }
    body.layout-blog .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="flex-direction: column"] {
        flex: 0 0 100% !important;
    }
}


/* Intro card — article page (same magazine style) -------------- */
body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%) !important;
    border-color: #e8e8e8 !important;
    overflow: visible !important;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 18px !important;
}
body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10) !important;
}
body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] {
    padding: 5px 24px 5px 8px !important;
}
body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="flex-direction: column"] {
    padding-left: 8px;
}
body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] > img {
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
    border: 1px solid #fff !important;
}
body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] > img:nth-child(1) {
    transform: rotate(-5deg) translateY(2px);
    z-index: 2;
    position: relative;
}
body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] > img:nth-child(2) {
    transform: rotate(5deg) translateY(-2px);
    margin-left: -36px !important;
    z-index: 1;
    position: relative;
}
body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"]:hover > div[style*="gap: 6px"] > img:nth-child(1) {
    transform: rotate(-7deg) translate(-2px, 0) scale(1.02);
}
body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"]:hover > div[style*="gap: 6px"] > img:nth-child(2) {
    transform: rotate(7deg) translate(2px, -4px) scale(1.02);
}

@media (max-width: 600px) {
    body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] {
        flex-direction: column;
    }
    body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="gap: 6px"] {
        padding: 0 !important;
        flex: 0 0 100% !important;
        justify-content: center;
    }
    body.view-article .com-content-article__body > div[style*="position: relative"][style*="background: #f8f8f8"] > div[style*="flex-direction: column"] {
        flex: 0 0 100% !important;
    }
}

/* Product carousels ----------------------------------------- */
body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"] {
    position: relative;
    margin: 28px 0 !important;
    -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 90, 100, 0.35) transparent;
}
body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"] > div {
    width: fit-content;
    margin: 0 auto;
}
body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"]::-webkit-scrollbar {
    height: 6px;
}
body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"]::-webkit-scrollbar-track {
    background: transparent;
}
body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
    background: rgba(234, 90, 100, 0.35);
    border-radius: 8px;
}
body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"]:hover::-webkit-scrollbar-thumb {
    background: rgba(234, 90, 100, 0.6);
}

/* Mobile: scroll-snap on cards, drop fade mask -------------- */
@media (max-width: 768px) {
    body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"] {
        scroll-snap-type: x mandatory;
        -webkit-mask-image: none;
        mask-image: none;
    }
    body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"] > div > div[style*="border-radius: 8px"] {
        scroll-snap-align: start;
    }
}

/* Product cards — hover lift + accent border ---------------- */
body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"] > div > div[style*="border-radius: 8px"] {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    border: 1px solid transparent !important;
}
body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"] > div > div[style*="border-radius: 8px"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(234, 90, 100, 0.18) !important;
    border-color: rgba(234, 90, 100, 0.45) !important;
}

/* Price accent — replace inline #e00 with site #ea5a64 ------ */
body.layout-blog .com-content-article__body > div[style*="overflow-x: auto"] > div > div > div[style*="color: #e00"] {
    color: #ea5a64 !important;
}

.com-content-category-blog__item.blog-item a {
  color: #333;
  font-size: 22px;
}
