*
/* Общие */
{
    padding: 0;
    margin: 0;
    font-family: 'Gilroy-Medium', sans-serif;
}


/* Заголовки */
h1 {
    font-size: 32px;
	color: #FFFFFF;
    text-decoration: none;
    text-align: center;
}
h2 {
    font-size: 32px;
	color: white;
    text-decoration: none;
}
h3 {
    font-family: 'Gilroy-SemiBold', sans-serif;
    font-size: 24px;
	color: white;
    text-decoration: none;

}
h5 {
    font-size: 18px;
	color: #3D3D3D;
    text-decoration: none;
}
h6 {
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    color: white;
}



/* Fonts */
@font-face {
    font-family: "Rubik-Regular";
    src: local("../fonts/Rubik-Regular.ttf"), url("../css/fonts/Rubik-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}
}
@font-face {
    font-family: "Gilroy-Medium";
    src: local("../fonts/Gilroy-Medium.ttf"), url("../css/fonts/Gilroy-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: "Gilroy-SemiBold";
    src: local("../fonts/Gilroy-SemiBold.ttf"), url("../css/fonts/Gilroy-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}
/* */


/* Top Bar */
.top-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 8px;
    background: #f8f9fa;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.top-bar span { display: flex; align-items: center; gap: 5px; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--text-dark);
    background-color: #fff;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 8px;
    background: #f8f9fa;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.top-bar span { display: flex; align-items: center; gap: 5px; }

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    border-bottom: 1px solid #edf2f7;
}

.logo { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.nav a { text-decoration: none; color: inherit; margin: 0 15px; font-weight: 500; }
.nav a.active { color: var(--primary-blue); border-bottom: 2px solid var(--primary-blue); }

.user-menu { display: flex; gap: 20px; font-size: 14px; }
.menu-item { text-align: center; cursor: pointer; position: relative; }
.cart-count {
    position: absolute; top: -5px; right: 5px;
    background: var(--orange); color: white;
    border-radius: 50%; padding: 2px 6px; font-size: 10px;
}

/* Hero Section */
.hero {
    background: url('../media/fon_img.png');
    background-size: cover;
    display: block;
    padding: 60px 10%;
    align-items: center;
}
.hero_service {
    display: flex;
    justify-content: space-between;
    padding: 0px 10%;
    align-items: top;
}

.hero-content h1 { font-size: 42px; margin-bottom: 10px; }
.search-box {
    display: flex;
    background: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}

.search-box input {
    border: none; padding: 15px 25px; flex: 1; border-radius: 30px; outline: none;
}

.btn-search {
    background: var(--primary-blue);
    color: white; border: none;
    padding: 0 40px; border-radius: 25px; cursor: pointer;
}

/* Categories */
.categories { padding: 50px 10%; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-show {
    border: 1px solid #ddd;
    background: white;
    padding: 8px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-orange { background: var(--orange); color: white; border: none; }

/* Footer */
.footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
}
.footer nav a { margin: 0 10px; text-decoration: none; color: #718096; }


/* Основная кнопка с иконкой */
.btn-add-part {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add-part:hover {
    background-color: #34495e;
}

/* Стилизация составной иконки */
.engine-icon-wrapper {
    position: relative;
    display: inline-block;
    font-size: 20px;
}

.icon-plus {
    position: absolute;
    top: -5px;
    right: -8px;
    font-size: 12px;
    color: #27ae60;
    background: #fff;
    border-radius: 50%;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
}

.modal-content {
    background: #fff;
    max-width: 500px;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* Кнопка загрузки фото */
.file-input-label {
    display: inline-block;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.file-input-label:hover {
    background: #e9ecef;
}

.hidden-input {
    display: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

Чтобы форма выглядела современно и профессионально (в стиле современных SaaS-панелей или чистых интерфейсов), я подготовил CSS-код. Он добавляет мягкие тени, приятные анимации при наведении и фокусе, а также делает мобильную версию удобной.

Этот код можно добавить в ваш файл static/css/style.css или внутри тега <style> в шаблоне.

CSS
/* Основной контейнер формы */
.brand-form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Заголовок карточки */
.card-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    font-weight: 600;
}

/* Стили полей ввода */
.form-control {
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Стили меток (Label) */
.form-label {
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Кастомный стиль для поля выбора файла (Logo) */
input[type="file"]::file-selector-button {
    background-color: #f8f9fa;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 12px;
    margin-right: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: #edf2f7;
}

/* Кнопка сохранения */
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    opacity: 0.95;
    color: white;
}

/* Сообщения об ошибках */
.error-text {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* Вспомогательный текст (Help Text) */
.form-text {
    font-size: 12px;
    color: #a0aec0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .brand-form-card {
        border-radius: 0;
        box-shadow: none;
    }
}

/* Секция карусели */
.products-carousel-section {
    padding: 40px 5%;
    background: #f9f9f9;
}

.products-carousel-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 800;
}

/* Контейнер и карусель */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 5px;
    scrollbar-width: none; /* Скрываем скроллбар Firefox */
    scroll-behavior: smooth;
}

.product-carousel::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар Chrome/Safari */
}

/* Ссылка и Карточка */
.product-card-link {
    text-decoration: none;
    color: inherit;
    flex: 0 0 280px; /* Ширина карточки */
    scroll-snap-align: start;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Элементы карточки */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b00;
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #fcfcfc;
    border-radius: 10px;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-brand {
    font-size: 12px;
    color: #ff6b00;
    font-weight: 600;
    text-transform: uppercase;
}

.product-title {
    font-size: 16px;
    margin: 5px 0;
    font-weight: 700;
    color: #2d3436;
    min-height: 40px;
}

.product-sku {
    font-size: 13px;
    color: #b2bec3;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #2d3436;
}

.btn-buy {
    background: #2d3436;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-buy:hover {
    background: #ff6b00;
}

/* Управление (скрипт ниже оживит эти кнопки) */
.carousel-controls {
    display: flex;
    gap: 10px;
    position: absolute;
    top: -60px;
    right: 0;
}

.ctrl-btn {
    background: #fff;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.ctrl-btn:hover {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
}

.brand-logo-preview {
    max-height: 40px; /* Ограничиваем высоту */
    max-width: 100px; /* Ограничиваем ширину */
    object-fit: contain; /* Сохраняем пропорции без обрезки */
    display: block;
    margin: 0 auto;
    /* Если фон таблицы темный, а логотип прозрачный, можно добавить легкую подложку */
    /* background: rgba(255, 255, 255, 0.1); */
    /* border-radius: 4px; */
}

table td {
    vertical-align: middle; /* Чтобы текст был по центру относительно картинки */
    text-align: center;
}
