/* Lorrenz Audio - Custom Styles */
/* Анимации подключаются отдельной ссылкой в base.html (без @import, чтобы не блокировать загрузку) */

/* Critical CSS - Above the fold styles */

:root {
    /* Breakpoints */
    --mobile: 576px;
    --tablet: 768px;
    --desktop: 1200px;
    
    /* Colors */
    --primary-color: #1a1a1a;
    --secondary-color: #6f42c1;
    --accent-color: #007bff;
    --text-light: #ffffff;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --background-light: #f8f9fa;
    
    /* Typography */
    --font-size-h1-mobile: 2.5rem;
    --font-size-h1-tablet: 3rem;
    --font-size-h1-desktop: 3.5rem;
    --font-size-h2-mobile: 1.8rem;
    --font-size-h2-tablet: 2.2rem;
    --font-size-h2-desktop: 2.5rem;
    --font-size-h3-mobile: 1.4rem;
    --font-size-h3-tablet: 1.6rem;
    --font-size-h3-desktop: 1.8rem;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --line-height-body: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Shadows */
    --shadow-card: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-card-hover: 0 12px 30px rgba(0,0,0,0.15);
    --shadow-button: 0 2px 8px rgba(0,0,0,0.1);
    
    /* Border Radius */
    --radius-card: 12px;
    --radius-button: 50px;
    --radius-image: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent horizontal overflow on all elements */
* {
    box-sizing: border-box;
}

/* Prevent horizontal scrolling globally */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Ensure all containers respect viewport width */
.container, .container-fluid, .row, .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    max-width: 100%;
}

.container, .container-fluid {
    max-width: 100%;
}

/* Specific elements that need shadow space */
.news-card, .product-card, .solution-card, .event-card, .partner-card,
.accessory-card, .tutorial-card, .application-card, .download-item,
.series-product-card, .related-product-card, .support-service-card,
.secondary-service-card, .additional-service-card, .faq-item {
    margin: 1rem !important;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Top Bar */
.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    width: 100%;
}

.top-bar .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.top-links {
    display: flex;
    gap: 2rem;
}

.top-link {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.top-link:hover {
    color: #007bff;
}

.top-link i {
    font-size: 0.8rem;
}

.top-bar-left .top-bar-text {
    color: #6c757d;
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lang-link:hover,
.lang-link.active {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.lang-separator {
    color: #dee2e6;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-link,
.logout-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.user-link:hover,
.logout-link:hover {
    color: #1a1a1a;
    text-decoration: none;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #1a1a1a;
    text-decoration: none;
}

/* Main Navigation */
.main-navbar {
    background: #1a1a1a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Override sticky with fixed when fixed-navbar class is present */
.fixed-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

/* Fixed Navigation - Override sticky positioning */
.main-navbar.fixed-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

/* Force fixed positioning for navbar with fixed-navbar class */
.main-navbar.fixed-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

/* Add padding to body to account for fixed navbar */
body.fixed-navbar {
    padding-top: 80px;
}

/* Main content offset for fixed navbar */
.main-content {
    position: relative;
}

/* Каталог продуктов: отступы 20rem только у секции с карточками (.products-grid-section в шаблонах) */

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Убираем все возможные разделители */
.navbar-nav::before,
.navbar-nav::after,
.navbar-nav li::before,
.navbar-nav li::after {
    display: none !important;
    content: none !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.brand-logo {
    height: 60px;
    width: auto;
}

.brand-text {
    margin-left: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-nav li {
    margin: 0;
}

.navbar-nav li::before,
.navbar-nav li::after {
    display: none !important;
    content: none !important;
}

/* Desktop Navigation - Always visible */
.navbar-collapse {
    display: block !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
}

.mobile-menu-btn {
    display: none !important;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    border: none;
    background: none;
    margin: 0;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: #007bff;
    text-decoration: none;
}

.nav-link:focus {
    color: #007bff;
    text-decoration: none;
    outline: none;
}

.nav-link:active {
    color: #007bff;
    text-decoration: none;
}

.nav-link:visited {
    color: #ffffff;
    text-decoration: none;
}

.nav-link i {
    margin-right: 0.5rem;
}

/* Убираем только точки, но оставляем иконки */
.navbar-nav li {
    list-style: none;
}

/* Убираем все визуальные эффекты фокуса у навигации */
.navbar-nav a:focus {
    outline: none;
}

.nav-item *:focus {
    outline: none;
}

.nav-item *:active {
    outline: none;
}

/* Убираем все возможные псевдоэлементы */
.navbar-nav::before,
.navbar-nav::after,
.navbar-nav li::before,
.navbar-nav li::after,
.navbar-nav a::before,
.navbar-nav a::after {
    display: none !important;
    content: none !important;
}

/* Убираем все возможные точки и линии */
.navbar-nav li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Убираем все возможные border-bottom эффекты */
.navbar-nav li,
.navbar-nav a,
.navbar-nav .nav-link,
.navbar-nav .nav-item {
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Убираем маркеры списка только для навигации */
.navbar-nav {
    list-style: none;
}

.navbar-nav li::marker {
    display: none;
}

/* Убираем все возможные псевдоэлементы у элементов списка */
.navbar-nav li::before,
.navbar-nav li::after {
    display: none !important;
    content: none !important;
}

/* Убираем все возможные точки у элементов списка */
.navbar-nav li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Специально для навигации */
.navbar-nav,
.navbar-nav li,
.navbar-nav a,
.navbar-nav .nav-link,
.navbar-nav .nav-item {
    list-style: none !important;
    list-style-type: none !important;
    border: none !important;
    outline: none !important;
}

.navbar-nav::before,
.navbar-nav::after,
.navbar-nav li::before,
.navbar-nav li::after,
.navbar-nav a::before,
.navbar-nav a::after {
    display: none !important;
    content: none !important;
}

.dropdown-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown-toggle:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
    border-radius: 0;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="skyGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23666;stop-opacity:1"/><stop offset="100%" style="stop-color:%23333;stop-opacity:1"/></linearGradient><linearGradient id="stageGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23000;stop-opacity:1"/><stop offset="100%" style="stop-color:%23111;stop-opacity:1"/></linearGradient></defs><rect width="100%" height="100%" fill="url(%23skyGrad)"/><rect x="0" y="650" width="1920" height="430" fill="%23000"/><rect x="200" y="450" width="1520" height="200" fill="url(%23stageGrad)"/><rect x="100" y="550" width="1720" height="100" fill="%23222"/><rect x="0" y="600" width="1920" height="50" fill="%23333"/><rect x="300" y="400" width="1320" height="50" fill="%23444"/><rect x="400" y="350" width="1120" height="50" fill="%23555"/><rect x="500" y="300" width="920" height="50" fill="%23666"/><circle cx="400" cy="200" r="80" fill="%23fff" opacity="0.3"/><circle cx="800" cy="180" r="60" fill="%23fff" opacity="0.2"/><circle cx="1200" cy="190" r="70" fill="%23fff" opacity="0.25"/><circle cx="1600" cy="185" r="65" fill="%23fff" opacity="0.2"/><rect x="0" y="700" width="1920" height="380" fill="%23000" opacity="0.9"/><rect x="100" y="720" width="50" height="20" fill="%23fff" opacity="0.1"/><rect x="200" y="715" width="40" height="25" fill="%23fff" opacity="0.1"/><rect x="300" y="725" width="45" height="15" fill="%23fff" opacity="0.1"/><rect x="400" y="710" width="35" height="30" fill="%23fff" opacity="0.1"/><rect x="500" y="720" width="55" height="20" fill="%23fff" opacity="0.1"/><rect x="600" y="715" width="30" height="25" fill="%23fff" opacity="0.1"/><rect x="700" y="725" width="50" height="15" fill="%23fff" opacity="0.1"/><rect x="800" y="710" width="40" height="30" fill="%23fff" opacity="0.1"/><rect x="900" y="720" width="45" height="20" fill="%23fff" opacity="0.1"/><rect x="1000" y="715" width="35" height="25" fill="%23fff" opacity="0.1"/><rect x="1100" y="725" width="55" height="15" fill="%23fff" opacity="0.1"/><rect x="1200" y="710" width="30" height="30" fill="%23fff" opacity="0.1"/><rect x="1300" y="720" width="50" height="20" fill="%23fff" opacity="0.1"/><rect x="1400" y="715" width="40" height="25" fill="%23fff" opacity="0.1"/><rect x="1500" y="725" width="45" height="15" fill="%23fff" opacity="0.1"/><rect x="1600" y="710" width="35" height="30" fill="%23fff" opacity="0.1"/><rect x="1700" y="720" width="50" height="20" fill="%23fff" opacity="0.1"/><rect x="1800" y="715" width="40" height="25" fill="%23fff" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-title.text-white {
    color: #ffffff;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    border-radius: 50px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Center "Discover More" button in Soundscape section on mobile */
@media (max-width: 768px) {
    .soundscape-text-col {
        text-align: center;
    }
    
    .soundscape-cta-btn {
        display: inline-block;
        margin-top: 1.5rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Placeholder Images */
.placeholder-image {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Partner Logos */
.partner-logo {
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 3rem 0 1rem;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: #007bff;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
}

/* Main Content */
.main-content {
    min-height: 60vh;
}

/* Page Content Spacing */
.page-content {
    padding: 2rem 0;
}

/* Page Title */
.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 2rem;
}

/* Optimize spacing */
.container {
    max-width: 1200px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col-md-6, .col-lg-4, .col-lg-6 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Product Grid */
.product-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-card-body {
    padding: 1.5rem;
}

/* News Cards */
.news-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-radius-lg {
    border-radius: 10px;
}

/* Event cards on home page */
.events-section .event-card {
    display: flex;
    flex-direction: row;
    background: #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
}

.events-section .event-date {
    background: #666666;
    color: #ffffff;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    flex-shrink: 0;
}

.events-section .event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.events-section .event-month {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-section .event-content {
    background: #ffffff;
    padding: 1.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.events-section .event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.events-section .event-location {
    font-size: 1rem;
    color: #666666;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.events-section .event-content .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Solutions cards on home page */
.solutions-section .solution-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solutions-section .solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.solutions-section .solution-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.solutions-section .solution-content-group {
    flex-grow: 1;
}

.solutions-section .solution-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.solutions-section .solution-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    text-align: center;
}

.solutions-section .solution-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.solutions-section .solution-button-group {
    margin-top: auto;
    text-align: center;
}

/* Ensure the link looks like site buttons */
.solutions-section .solution-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
}

/* Partners carousel (desktop + mobile) */
#partnersCarousel,
#partnersCarouselMobile {
    position: relative;
    padding: 0 56px;
    overflow: hidden;
    margin: 0 auto;
}

#partnersCarousel .carousel-inner,
#partnersCarousel .carousel-item,
#partnersCarouselMobile .carousel-inner,
#partnersCarouselMobile .carousel-item {
    overflow: visible;
}

/* Cards */
#partnersCarousel .partner-card,
#partnersCarouselMobile .partner-card {
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    border: 1px solid #e9ecef;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#partnersCarousel .partner-card:hover,
#partnersCarouselMobile .partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Logo box + image (fix mobile weird sizing) */
#partnersCarousel .partner-logo,
#partnersCarouselMobile .partner-logo {
    margin: 0 auto 1rem auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    min-height: 100px;
    flex-shrink: 0;
}

#partnersCarousel .partner-logo img,
#partnersCarouselMobile .partner-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    display: block !important;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
}

#partnersCarousel .partner-name,
#partnersCarouselMobile .partner-name {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

#partnersCarousel .partner-title,
#partnersCarouselMobile .partner-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

/* Controls (fix invisible arrows on desktop) */
#partnersCarousel .carousel-control-prev,
#partnersCarousel .carousel-control-next,
#partnersCarouselMobile .carousel-control-prev,
#partnersCarouselMobile .carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0,0,0,0.85) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    z-index: 20 !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#partnersCarousel .carousel-control-prev,
#partnersCarouselMobile .carousel-control-prev {
    left: 6px !important;
}

#partnersCarousel .carousel-control-next,
#partnersCarouselMobile .carousel-control-next {
    right: 6px !important;
}

#partnersCarousel .carousel-control-prev-icon,
#partnersCarousel .carousel-control-next-icon,
#partnersCarouselMobile .carousel-control-prev-icon,
#partnersCarouselMobile .carousel-control-next-icon {
    width: 24px !important;
    height: 24px !important;
    background-size: 24px 24px !important;
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

#partnersCarousel .carousel-control-prev:hover,
#partnersCarousel .carousel-control-next:hover,
#partnersCarouselMobile .carousel-control-prev:hover,
#partnersCarouselMobile .carousel-control-next:hover {
    background: rgba(0,0,0,0.95) !important;
}

/* Mobile carousel: one partner per slide */
@media (max-width: 767.98px) {
    #partnersCarouselMobile {
        padding: 0 !important;
    }

    #partnersCarouselMobile .carousel-item .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        --bs-gutter-x: 0 !important;
    }

    #partnersCarouselMobile .partner-card {
        height: 160px;
        padding: 1rem;
        width: auto !important;
        max-width: 420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #partnersCarouselMobile .partner-logo {
        height: 100px;
        min-height: 100px;
        padding: 12px;
    }

    #partnersCarouselMobile .carousel-control-prev {
        left: 12px !important;
    }

    #partnersCarouselMobile .carousel-control-next {
        right: 12px !important;
    }
}

@media (max-width: 576px) {
    #partnersCarouselMobile .partner-card {
        height: 140px;
        padding: 0.75rem;
    }

    #partnersCarouselMobile .partner-logo {
        height: 90px;
        min-height: 90px;
        border-radius: 10px;
        padding: 10px;
    }

    #partnersCarouselMobile .partner-title {
        font-size: 0.8rem;
    }
}

/* Featured products (d&b style cards) */
.products-section .dbaudio-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.products-section .dbaudio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Единый размер изображений товаров (карточки и списки) — ПК и мобильная */
.dbaudio-card-image-container,
.products-section .dbaudio-card-image-container,
.products-grid-section .dbaudio-card-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.dbaudio-card-image,
.products-section .dbaudio-card-image,
.products-grid-section .dbaudio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f8f9fa;
    display: block;
}

.dbaudio-card-placeholder,
.products-section .dbaudio-card-placeholder,
.products-grid-section .dbaudio-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 767px) {
    .dbaudio-card-image-container,
    .products-section .dbaudio-card-image-container,
    .products-grid-section .dbaudio-card-image-container {
        height: 220px;
    }
    .dbaudio-card-placeholder,
    .products-section .dbaudio-card-placeholder,
    .products-grid-section .dbaudio-card-placeholder {
        min-height: 220px;
    }
}

.products-section .favorite-star {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.products-section .favorite-star:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.products-section .favorite-star i {
    font-size: 1.2rem;
    color: #ffc107;
    transition: all 0.3s ease;
}

.products-section .favorite-star.active i,
.products-section .favorite-star:hover i {
    color: #ff6b35;
}

.products-section .dbaudio-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.products-section .dbaudio-card-title,
.dbaudio-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.dbaudio-card-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: #6f42c1;
    margin-bottom: 0.75rem;
}

.products-section .dbaudio-key-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.products-section .dbaudio-key-facts li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.products-section .dbaudio-key-facts li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.55em;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background-color: #e91e63;
}

.products-section .dbaudio-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    align-items: stretch;
    justify-content: center;
}

.products-section .dbaudio-card-button,
.products-section .dbaudio-comparison-button {
    border-radius: 50px !important;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-height: 48px;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

.products-section .dbaudio-card-button {
    background: #007bff;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
}

.products-section .dbaudio-card-button:hover {
    background: #0056b3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.products-section .dbaudio-comparison-button {
    background-color: #6f42c1;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
}

.products-section .dbaudio-comparison-button:hover {
    background-color: #5a32a3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}