:root { /* Цветовая палитра / --bg-primary: #1b1e27; --bg-secondary: #252a33;…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
:root { /* Цветовая палитра */ --bg-primary: #1b1e27; --bg-secondary: #252a33; --accent-light: #66e0c1; --accent-dark: #4ecca3; --text-light: #f0f0f0; --text-muted: #b0b0b0; --card-border: rgba(255, 255, 255, 0.08); --shadow-light: rgba(0, 0, 0, 0.15); }
.transportCard { border-radius: 24px; overflow: hidden; max-width: 360px; background: linear-gradient(145deg, var(--bg-primary), #2a2e38); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); height: 100%; border: 1px solid var(--card-border); position: relative; backdrop-filter: blur(8px); max-height: 500px; }
.transportCard:hover { transform: translateY(-15px) scale(1.02); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15); }
.transportCard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient( 135deg, rgba(255, 255, 255, 0.08), var(--accent-light), transparent ); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; }
.transportCard:hover::before { opacity: 1; }
.transportImage { width: 100%; height: 180px; object-fit: cover; filter: brightness(0.95) contrast(1.05); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.transportCard:hover .transportImage { filter: brightness(1.1) contrast(1.1); transform: scale(1.05); }
.headerCard { background: linear-gradient(90deg, var(--bg-secondary) 0%, #2e333f 100%); text-align: center; padding: 14px; font-size: 16px; color: var(--text-light); letter-spacing: 0.8px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.07); position: relative; overflow: hidden; transition: background 0.4s ease; }
.headerCard::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient( 90deg, transparent, var(--accent-light), transparent ); transform: translateX(-100%); transition: transform 0.6s ease; }
.transportCard:hover .headerCard::after { transform: translateX(100%); }
.price { text-align: right; padding: 14px 18px; background: linear-gradient(135deg, #20232a, #2a2f38); font-size: 24px; font-weight: 700; color: var(--accent-dark); margin-top: auto; position: relative; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.07); transition: background 0.4s ease, transform 0.4s ease, color 0.4s ease; }
.price::before { content: "Price:"; font-size: 16px; color: var(--text-muted); font-weight: 500; transition: color 0.3s ease; }
.price:hover { background: linear-gradient(135deg, #2a2f38, #363d4a); color: var(--accent-light); transform: translateY(-3px); }
.price:hover::before { color: var(--text-light); }
.details { display: flex; padding: 16px; background: linear-gradient(180deg, #22262f, #2a2e38); }
.leftColumn { flex: 1; margin-right: 20px; }
.rightColumn { flex: 1; }
.detailItem { display: flex; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease, color 0.4s ease; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.04); backdrop-filter: blur(5px); cursor: pointer; }
.detailItem:hover { color: var(--text-light); background: rgba(255, 255, 255, 0.07); transform: translateX(5px); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 5px 15px var(--shadow-light); }
.detailItem .icon { margin-right: 12px; color: var(--accent-light); width: 26px; opacity: 0.9; transition: transform 0.4s ease, opacity 0.4s ease; }
.detailItem:hover .icon { opacity: 1; transform: scale(1.2) rotate(5deg); }
/* Tooltip для цены */ .tooltip { position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: rgba(42, 47, 56, 0.95); color: #ffffff; padding: 12px 18px; border-radius: 12px; font-size: 15px; white-space: nowrap; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); border: 1px solid rgba(255, 255, 255, 0.12); pointer-events: none; z-index: 10; backdrop-filter: blur(10px); }
.tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 8px; border-style: solid; border-color: rgba(42, 47, 56, 0.95) transparent transparent transparent; }
.price:hover .tooltip { opacity: 1; visibility: visible; bottom: 110%; transform: translateX(-50%) scale(1.05); }
/* Эффект пульсации для интерактивных элементов (при желании) */ @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(78, 204, 163, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(78, 204, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(78, 204, 163, 0); } }
.price:active { transform: scale(0.98); }
/* Дополнительный "стеклянный" эффект для современных интерфейсов */ .glass-effect { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); }
/* Адаптивная верстка */ @media (max-width: 768px) { .transportCard { max-width: 100%; border-radius: 20px; }
.details { flex-direction: column; padding: 14px; }
.leftColumn { margin-right: 0; margin-bottom: 10px; }
.detailItem { padding: 8px; margin-bottom: 8px; }
.headerCard { padding: 10px; font-size: 15px; }
.price { padding: 10px 15px; font-size: 22px; } }
улучши ui/ux дизайн данного компонента сделай его современнее красивее добавь что нибудь от себя но не забудь что бы он сохранял адптивность
Вот улучшенная версия вашего компонента с современным UI/UX дизайном:
:root {
/* Обновленная цветовая палитра */
--bg-primary: #0a0e1a;
--bg-secondary: #141824;
--bg-tertiary: #1a1f2e;
--accent-primary: #00d4ff;
--accent-secondary: #00a8cc;
--accent-glow: #00d4ff40;
--success: #00ff88;
--warning: #ffaa00;
--text-primary: #ffffff;
--text-secondary: #a8b2d1;
--text-muted: #64748b;
--border-color: rgba(255, 255, 255, 0.06);
--shadow-color: rgba(0, 212, 255, 0.15);
--gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--gradient-2: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
}
/* Основная карточка */
.transportCard {
border-radius: 28px;
overflow: hidden;
max-width: 380px;
background: var(--bg-secondary);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.4),
0 0 0 1px var(--border-color),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
display: flex;
flex-direction: column;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
height: 100%;
position: relative;
max-height: 520px;
transform-style: preserve-3d;
perspective: 1000px;
}
.transportCard::before {
content: "";
position: absolute;
inset: -2px;
border-radius: inherit;
background: var(--gradient-2);
opacity: 0;
z-index: -1;
transition: opacity 0.4s ease;
filter: blur(20px);
}
.transportCard:hover {
transform: translateY(-12px) rotateX(2deg);
box-shadow:
0 30px 60px rgba(0, 0, 0, 0.5),
0 0 40px var(--shadow-color),
0 0 0 1px var(--accent-primary),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.transportCard:hover::before {
opacity: 0.3;
}
/* Контейнер изображения с эффектом параллакса */
.imageContainer {
position: relative;
width: 100%;
height: 200px;
overflow: hidden;
background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}
.transportImage {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
filter: brightness(0.9) saturate(1.2);
}
.transportCard:hover .transportImage {
transform: scale(1.1) translateY(-5px);
filter: brightness(1) saturate(1.3);
}
/* Оверлей с градиентом */
.imageOverlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 60%;
background: linear-gradient(to top, var(--bg-secondary), transparent);
pointer-events: none;
}
/* Бейдж статуса */
.statusBadge {
position: absolute;
top: 16px;
right: 16px;
padding: 6px 14px;
background: rgba(0, 255, 136, 0.15);
border: 1px solid var(--success);
border-radius: 20px;
font-size: 12px;
font-weight: 600;
color: var(--success);
backdrop-filter: blur(10px);
animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.05); opacity: 0.9; }
}
/* Заголовок карточки */
.headerCard {
background: transparent;
text-align: center;
padding: 20px 24px 16px;
font-size: 18px;
color: var(--text-primary);
letter-spacing: 0.5px;
font-weight: 700;
position: relative;
z-index: 1;
}
.headerCard::after {
content: "";
position: absolute;
bottom: 0;
left: 24px;
right: 24px;
height: 1px;
background: linear-gradient(90deg,
transparent,
var(--accent-primary) 20%,
var(--accent-primary) 80%,
transparent
);
opacity: 0.5;
}
/* Секция с деталями */
.details {
display: flex;
padding: 20px 24px;
gap: 16px;
flex: 1;
}
.column {
flex: 1;
display: flex;
flex-direction: column;
gap: 12px;
}
.detailItem {
display: flex;
align-items: center;
padding: 14px 16px;
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border-color);
border-radius: 14px;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
overflow: hidden;
}
.detailItem::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
transparent,
rgba(0, 212, 255, 0.1),
transparent
);
transition: left 0.5s ease;
}
.detailItem:hover {
background: rgba(0, 212, 255, 0.05);
border-color: rgba(0, 212, 255, 0.3);
color: var(--text-primary);
transform: translateX(4px);
}
.detailItem:hover::before {
left: 100%;
}
.detailItem .icon {
width: 24px;
height: 24px;
margin-right: 12px;
color: var(--accent-primary);
transition: all 0.3s ease;
filter: drop-shadow(0 0 8px var(--accent-glow));
}
.detailItem:hover .icon {
transform: scale(1.15) rotate(10deg);
filter: drop-shadow(0 0 12px var(--accent-primary));
}
/* Нижняя секция с ценой */
.priceSection {
background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
padding: 20px 24px;
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid var(--border-color);
position: relative;
overflow: hidden;
}
.priceSection::before {
content: "";
position: absolute;
top: -50%;
right: -10%;
width: 120px;
height: 120px;
background: radial-gradient(circle, var(--accent-glow), transparent);
border-radius: 50%;
filter: blur(40px);
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0) translateX(0); }
33% { transform: translateY(-20px) translateX(10px); }
66% { transform: translateY(10px) translateX(-10px); }
}
.priceLabel {
font-size: 14px;
color: var(--text-muted);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 1px;
}
.priceValue {
font-size: 32px;
font-weight: 800;
background: var(--gradient-2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
position: relative;
transition: all 0.3s ease;
}
.priceValue:hover {
transform: scale(1.05);
filter: drop-shadow(0 0 20px var(--accent-glow));
}
/* Кнопка действия */
.actionButton {
position: absolute;
bottom: 20px;
right: 24px;
width: 48px;
height: 48px;
background: var(--gradient-2);
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 20px var(--shadow-color);
}
.actionButton:hover {
transform: scale(1.1) rotate(90deg);
box-shadow: 0 6px 30px var(--shadow-color);
}
.actionButton svg {
width: 24px;
height: 24px;
color: white;
}
/* Индикатор рейтинга */
.rating {
position: absolute;
top: 16px;
left: 16px;
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 20px;
font-size: 14px;
font-weight: 600;
color: var(--warning);
}
.rating::before {
content: "★";
font-size: 16px;
}
/* Анимация загрузки */
.shimmer {
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.05),
transparent
);
animation: shimmer 2s infinite;
}
@keyframes shimmer {
100% { left: 100%; }
}
/* Адаптивность */
@media (max-width: 768px) {
.transportCard {
max-width: 100%;
border-radius: 24px;
margin: 0 16px;
}
.details {
flex-direction: column;
padding: 16px 20px;
gap: 12px;
}
.column {
gap: 10px;
}
.detailItem {
padding: 12px 14px;
font-size: 13px;
}
.headerCard {
padding: 16px 20px 14px;
font-size: 16px;
}
.priceSection {
padding: 16px 20px;
}
.priceValue {
font-size: 28px;
}
.actionButton {
width: 44px;
height: 44px;
}
}
@media (max-width: 480px) {
.imageContainer {
height: 160px;
}
.transportCard {
margin: 0 12px;
}
.priceValue {
font-size: 24px;
}
.detailItem .icon {
width: 20px;
height: 20px;
}
}
/* Темная тема для поддержки системных настроек */
@media (prefers-color-scheme: light) {
:root {
--bg-primary: #f8fafc;
--bg-secondary: #ffffff;
--bg-tertiary: #f1f5f9;
--text-primary: #0f172a;
--text-secondary: #475569;
--text-muted: #94a3b8;
--border-color: rgba(0, 0, 0, 0.08);
--shadow-color: rgba(0, 0, 0, 0.1);
}
.transportCard {
box-shadow:
0 10px 30px rgba(0, 0, 0, 0.08),
0 0 0 1px var(--border-color);
}
}
Основные улучшения:
Компонент сохраняет полную адаптивность и выглядит современно на всех устройствах.