.brand__title { font-size: 1rem; text-transform: uppercase; position: relative; padding: 5px 15px; color: #333; background: #fff; border-radius: 3px; line-height: 1; display: block; margin: 0 auto; } .brand__title:before { position: absolute; top: 50%; right: 0; left: 0; height: 1px; margin: auto; content: ''; background: #CCC; } .brand__title--span { font-size: 1rem; text-transform: uppercase; position: relative; padding: 5px 15px; color: #333; background: #fff; border: 1px solid #999; border-radius: 3px; line-height: 1; display: block; width: fit-content; margin: 0 auto; } /** * блок логотипов **/ .pr-brand-block { background: rgba(255, 255, 255, 0.9); box-shadow: 0 3px 10px rgb(0 0 0 / 50%); display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; } .pr-brand-block .pr-brand-logo { display: flex; align-items: center; justify-content: center; margin: 0; padding: 10px; } .pr-brand-block .pr-brand-logo > a { border: 1px dashed #999; border-radius: 5px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; transition: transform 0.3s ease, box-shadow 0.3s ease } /* Анимация при наведении */ .pr-brand-logo > a:hover { transform: scale(1.05); /* Немного увеличивает блок */ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Добавляет тень */ } .pr-brand-block .pr-brand-logo a > img { height: auto; width: auto; object-fit: contain; padding: 10px; transition: transform 0.3s ease; } .pr-brand-logo a:hover img { transform: scale(1.1); /* Легкое увеличение логотипа */ } /** * страница отдельного бренда **/ .page-brand-item { } .page-brand-item .brand-img img { /* Базовые стили */ display: block; /* Убираем лишние отступы вокруг изображения */ max-width: 100%; /* Изображение не выйдет за пределы родительского контейнера */ height: auto; /* Сохраняем пропорции изображения */ border-radius: 5px; /* Закругленные углы */ border: 3px solid #f0f0f0; /* Тонкая рамка */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Легкая тень */ transition: transform 0.3s ease, box-shadow 0.3s ease; /* Гладкая анимация на трансформацию и тень */ margin-bottom: 20px; padding: 10px; } .page-brand-item .brand-img img:hover { /* Эффект при наведении */ transform: scale(1.05); /* Легкое увеличение */ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Увеличиваем тень */ border-color: #ff9800; /* Меняем цвет рамки */ } .page-brand-item .brand-desc-text { background: rgba(255, 255, 240, 0.2); border: 1px dashed; padding: 20px; width: 90%; }