: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 дизайн данного компонента сделай его современнее красивее добавь что нибудь от себя но не забудь что бы он сохранял адптивность
Вот улучшенная версия вашего компонента с современным дизайном и дополнительными UX-элементами:
:root {
/* Расширенная цветовая палитра */
--bg-primary: #0f1419;
--bg-secondary: #1a1f2e;
--bg-tertiary: #252d3d;
--accent-primary: #00d4aa;
--accent-secondary: #0099cc;
--accent-gradient: linear-gradient(135deg, #00d4aa 0%, #0099cc 100%);
--text-primary: #ffffff;
--text-secondary: #a0a9c0;
--text-muted: #6b7280;
--border-subtle: rgba(255, 255, 255, 0.06);
--border-accent: rgba(0, 212, 170, 0.2);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
--shadow-md: 0 8px 25px rgba(0, 0, 0, 0.15);
--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.25);
--shadow-accent: 0 8px 32px rgba(0, 212, 170, 0.15);
--blur-glass: blur(16px);
--border-radius-sm: 12px;
--border-radius-md: 20px;
--border-radius-lg: 28px;
}
.transportCard {
border-radius: var(--border-radius-lg);
overflow: hidden;
max-width: 380px;
background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
display: flex;
flex-direction: column;
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
height: 100%;
border: 1px solid var(--border-subtle);
position: relative;
backdrop-filter: var(--blur-glass);
max-height: 520px;
isolation: isolate;
}
/* Анимированная рамка */
.transportCard::before {
content: "";
position: absolute;
inset: -2px;
border-radius: inherit;
padding: 2px;
background: var(--accent-gradient);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: opacity 0.6s ease;
z-index: -1;
}
/* Светящийся эффект при наведении */
.transportCard::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: radial-gradient(circle at 50% 0%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
opacity: 0;
transition: opacity 0.6s ease;
pointer-events: none;
}
.transportCard:hover {
transform: translateY(-12px) scale(1.02);
box-shadow: var(--shadow-lg), var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.transportCard:hover::before {
opacity: 1;
}
.transportCard:hover::after {
opacity: 1;
}
/* Статус индикатор */
.statusIndicator {
position: absolute;
top: 16px;
right: 16px;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--accent-primary);
box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.3), 0 0 12px rgba(0, 212, 170, 0.6);
z-index: 2;
animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.2); opacity: 0.8; }
}
.transportImage {
width: 100%;
height: 200px;
object-fit: cover;
filter: brightness(0.9) contrast(1.1) saturate(1.1);
transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
}
.transportCard:hover .transportImage {
filter: brightness(1.1) contrast(1.2) saturate(1.2);
transform: scale(1.08);
}
/* Градиентный оверлей на изображении */
.imageOverlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 60px;
background: linear-gradient(transparent, rgba(15, 20, 25, 0.8));
pointer-events: none;
}
.headerCard {
background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
text-align: center;
padding: 18px 20px;
font-size: 18px;
color: var(--text-primary);
letter-spacing: 0.5px;
font-weight: 600;
border-bottom: 1px solid var(--border-subtle);
position: relative;
overflow: hidden;
transition: all 0.4s ease;
}
/* Анимированная полоска */
.headerCard::after {
content: "";
position: absolute;
bottom: 0;
left: -100%;
width: 100%;
height: 3px;
background: var(--accent-gradient);
transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.transportCard:hover .headerCard::after {
left: 100%;
}
/* Улучшенная секция с деталями */
.details {
display: flex;
padding: 20px;
background: linear-gradient(180deg, var(--bg-secondary), var(--bg-tertiary));
gap: 16px;
flex: 1;
}
.leftColumn, .rightColumn {
flex: 1;
display: flex;
flex-direction: column;
gap: 12px;
}
.detailItem {
display: flex;
align-items: center;
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
padding: 14px 16px;
border-radius: var(--border-radius-sm);
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border-subtle);
backdrop-filter: blur(8px);
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, 170, 0.1), transparent);
transition: left 0.6s ease;
}
.detailItem:hover {
color: var(--text-primary);
background: rgba(0, 212, 170, 0.08);
transform: translateX(4px) scale(1.02);
border-color: var(--border-accent);
box-shadow: var(--shadow-sm), 0 0 20px rgba(0, 212, 170, 0.1);
}
.detailItem:hover::before {
left: 100%;
}
.detailItem .icon {
margin-right: 14px;
color: var(--accent-primary);
width: 20px;
height: 20px;
opacity: 0.8;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
filter: drop-shadow(0 0 4px rgba(0, 212, 170, 0.3));
}
.detailItem:hover .icon {
opacity: 1;
transform: scale(1.15) rotate(5deg);
filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.5));
}
/* Современная секция цены */
.price {
text-align: right;
padding: 20px 24px;
background: linear-gradient(135deg, var(--bg-tertiary) 0%, #1e2532 100%);
font-size: 28px;
font-weight: 700;
color: var(--accent-primary);
margin-top: auto;
position: relative;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid var(--border-subtle);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
overflow: hidden;
}
.price::before {
content: "Price:";
font-size: 16px;
color: var(--text-muted);
font-weight: 500;
transition: all 0.3s ease;
}
/* Анимированный фон для цены */
.price::after {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 153, 204, 0.1));
transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
z-index: -1;
}
.price:hover {
color: var(--text-primary);
transform: translateY(-2px);
box-shadow: var(--shadow-accent);
text-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}
.price:hover::before {
color: var(--text-secondary);
}
.price:hover::after {
left: 0;
}
.price:active {
transform: translateY(-2px) scale(0.98);
}
/* Улучшенный tooltip */
.tooltip {
position: absolute;
bottom: 120%;
left: 50%;
transform: translateX(-50%) translateY(10px);
background: rgba(26, 31, 46, 0.95);
color: var(--text-primary);
padding: 14px 20px;
border-radius: var(--border-radius-sm);
font-size: 14px;
font-weight: 500;
white-space: nowrap;
box-shadow: var(--shadow-lg);
opacity: 0;
visibility: hidden;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
border: 1px solid var(--border-accent);
pointer-events: none;
z-index: 10;
backdrop-filter: var(--blur-glass);
}
.tooltip::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 8px;
border-style: solid;
border-color: rgba(26, 31, 46, 0.95) transparent transparent transparent;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.price:hover .tooltip {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
/* Микро-анимации для лучшего UX */
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-5px); }
}
.transportCard:hover {
animation: float 3s ease-in-out infinite;
}
/* Улучшенная адаптивность */
@media (max-width: 768px) {
.transportCard {
max-width: 100%;
border-radius: var(--border-radius-md);
margin: 0 8px;
}
.transportImage {
height: 180px;
}
.details {
flex-direction: column;
padding: 16px;
gap: 12px;
}
.leftColumn {
margin-bottom: 0;
}
.detailItem {
padding: 12px 14px;
margin-bottom: 0;
}
.headerCard {
padding: 16px 18px;
font-size: 16px;
}
.price {
padding: 16px 20px;
font-size: 24px;
}
.tooltip {
font-size: 13px;
padding: 12px 16px;
}
}
@media (max-width: 480px) {
.transportCard {
border-radius: 16px;
margin: 0 4px;
}
.details {
padding: 14px;
}
.detailItem {
padding: 10px 12px;
font-size: 13px;
}
.price {
padding: 14px 16px;
font-size: 22px;
}
.headerCard {
padding: 14px 16px;
font-size: 15px;
}
}
/* Дополнительные утилитарные классы */
.glass-effect {
background: rgba(255, 255, 255, 0.03);
backdrop-filter: var(--blur-glass);
-webkit-backdrop-filter: var(--blur-glass);
border: 1px solid var(--border-subtle);
}
.accent-glow {
box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}
/* Темы для разных типов транспорта */
.transportCard.premium {
--accent-primary: #ffd700;
--accent-secondary: #ffed4e;
--accent-gradient: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}
.transportCard.eco {
--accent-primary: #22c55e;
--accent-secondary: #16a34a;
--accent-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.transportCard.express {
--accent-primary: #ef4444;
--accent-secondary: #dc2626;
--accent-gradient: linear