/* ============================================
   MODERN BRANDS MODULE
   ============================================ */
.modern-brands-module {
    width: 100%;
    padding: 60px 0;
    background: #FFFDFB;
}

.modern-brands-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок */
.brands-header {
    /* text-align: center; */
    margin-bottom: 48px;
}

.brands-title {
font-size: 24px;
    font-weight: 400;
    color: #2D2A1EA3;
    font-family: "Rubik", sans-serif;
}

.brands-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #C09D5C;
}

/* Сетка брендов */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Карточка бренда */
.brand-card {
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.brand-card-inner {
    padding: 40px 30px 30px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

/* Логотип бренда - по центру */
.brand-logo-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    max-height: 150px;
    margin-bottom: 40px;
}

.brand-logo-img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-logo-placeholder {
    font-size: 24px;
    font-weight: 700;
    color: #FFFDFB;
    font-family: "Rubik", sans-serif;
    text-align: center;
}

/* Информация о бренде - внизу */
.brand-info {
    margin-top: auto;
    padding-top: 20px;
}

.brand-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Текст бренда */
.brand-subtitle {
    flex: 1;
    font-size: 18px;
    font-weight: 400;
    font-family: "Rubik", sans-serif;
    color: #FFFDFB;
}

/* Кнопка */
.brand-button-wrapper {
    flex-shrink: 0;
    width: 50px;
}

.brand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #FFFDFB;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-button svg {
    width: 20px;
    height: 20px;
    stroke: #FFFDFB;
    color: #FFFDFB;
    transition: transform 0.3s ease;
}

.brand-button:hover {
    background: #FFFDFB;
    border-color: #FFFDFB;
}

.brand-button:hover svg {
    stroke: #322614;
    color: #322614;
    transform: translateX(4px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .brand-card-inner {
        padding: 30px 25px 25px;
        min-height: 300px;
    }
    
    .brand-logo-wrapper {
        min-height: 140px;
        max-height: 140px;
        margin-bottom: 30px;
    }
    
    .brand-logo-img {
        max-height: 120px;
    }
}

@media (max-width: 768px) {
    .modern-brands-module {
        padding: 40px 0;
    }
    
    .brands-header {
        margin-bottom: 30px;
    }
    
    .brands-title {
        font-size: 28px;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brand-card-inner {
        padding: 30px 20px 25px;
    }
    
    .brand-logo-wrapper {
        min-height: 140px;
        max-height: 140px;
        margin-bottom: 25px;
    }
    
    .brand-logo-img {
        max-height: 100px;
    }
    
    .brand-subtitle {
        font-size: 20px;
    }
    
    .brand-button-wrapper {
        width: 45px;
    }
    
    .brand-button {
        width: 45px;
        height: 45px;
    }
    
    .brand-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .brands-title {
        font-size: 24px;
    }
    
    .brand-card-inner {
        padding: 25px 20px 20px;
    }
    
    .brand-logo-wrapper {
        min-height: 80px;
        max-height: 80px;
        margin-bottom: 20px;
    }
    
    .brand-logo-img {
        max-height: 80px;
    }
    
    .brand-info-row {
        gap: 10px;
    }

    
    .brand-button-wrapper {
        width: 40px;
    }
    
    .brand-button {
        width: 40px;
        height: 40px;
    }
    
    .brand-button svg {
        width: 16px;
        height: 16px;
    }
}