/
onecasher
/
lab
Обзор
Документация
Войти
/
onecasher
/
lab
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
car_project/static/css/style.css
3 959 строк
79 KB
Onecasher
pered_git
13 май 2026, 14:41
13 май 2026, 14:41
575afc4
Код
Авторство
О чём код?
/* ========================================================= AUTOHUB — style.css Можно полностью заменить этим файлом static/css/style.css ========================================================= */ /* Основные стили */ * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { background-color: #E6E2D3; font-family: 'Montserrat', sans-serif; color: #333; margin: 0; } a { color: inherit; } img { max-width: 100%; } .container { max-width: 1000px; margin: 35px auto 0; padding: 20px; } /* ========================================================= ШАПКА КАК В FIGMA — логотип не перекрывает кнопки ========================================================= */ .main-header { background: #e9e4d6; border-bottom: 2px solid #8c8c8c; position: relative; z-index: 20; } .header-inner { max-width: 1180px; margin: 0 auto; min-height: 92px; padding: 0 58px; display: grid; grid-template-columns: 1fr 210px 1fr; align-items: center; column-gap: 36px; } /* Левая и правая части меню */ .nav-left, .nav-right { display: flex; align-items: center; } .nav-left { justify-content: flex-start; gap: 90px; } .nav-right { justify-content: flex-end; gap: 34px; } /* Ссылки меню */ .main-header a { text-decoration: none; color: #9a2f28; font-size: 18px; font-weight: 500; font-family: Georgia, "Times New Roman", serif; transition: color 0.2s ease; white-space: nowrap; } .main-header a:hover { color: #6f1f1a; } /* Логотип теперь занимает отдельную центральную колонку */ .logo { position: static; transform: none; display: flex; align-items: center; justify-content: center; z-index: 1; } .logo img { height: 112px; width: auto; display: block; margin-top: 8px; } /* Маленькая ссылка + Написать */ .small-link { font-size: 14px !important; color: #5d5d5d !important; font-family: 'Montserrat', sans-serif !important; text-transform: uppercase; font-weight: 700 !important; letter-spacing: 0.02em; } .small-link:hover { color: #9a2f28 !important; } /* Имя пользователя / регистрация */ .profile-link { color: #3f9b8e !important; font-family: 'Montserrat', sans-serif !important; font-size: 14px !important; text-transform: uppercase; font-weight: 700 !important; letter-spacing: 0.02em; } .profile-link:hover { color: #2d756b !important; } /* Форма выхода */ .logout-form, .nav-right form { margin: 0; display: flex; align-items: center; } /* Кнопка выхода */ .logout-form button, .nav-right button { background: none; border: none; padding: 0; cursor: pointer; color: #9a2f28; font-size: 14px; font-weight: 700; font-family: 'Montserrat', sans-serif; text-transform: uppercase; transition: color 0.2s ease; } .logout-form button:hover, .nav-right button:hover { color: #6f1f1a; } .logout-form button:hover, .nav-right button:hover { color: #6f1f1a; } /* ========================================================= ОБЩИЕ БЛОКИ ========================================================= */ .page-title, h1 { color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-weight: 500; } .btn, button, input[type="submit"] { font-family: 'Montserrat', sans-serif; } .form-card, .card { background: #F9F7F0; border: 1px solid #D1CDBE; border-radius: 18px; padding: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); } input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #cfc6b6; border-radius: 12px; background: #fffdf7; color: #333; font-family: 'Montserrat', sans-serif; outline: none; } input:focus, textarea:focus, select:focus { border-color: #50A194; box-shadow: 0 0 0 3px rgba(80, 161, 148, 0.14); } label { display: block; margin-bottom: 7px; color: #5d5d5d; font-weight: 700; font-size: 14px; } /* ========================================================= ПРОФИЛЬ ========================================================= */ .profile-card { background: #F9F7F0; border-radius: 20px; padding: 30px; display: flex; gap: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-top: 40px; } .avatar { width: 150px; height: 150px; border-radius: 50%; border: 5px solid #FFF; object-fit: cover; flex-shrink: 0; } .badge { display: inline-block; padding: 8px 15px; border-radius: 20px; color: white; font-size: 12px; margin-right: 10px; margin-bottom: 8px; background: linear-gradient(145deg, #50a194, #458c81); box-shadow: 2px 2px 5px rgba(0,0,0,0.2); } .km-counter { background: #333; color: #50a194; padding: 15px; border-radius: 10px; text-align: center; } /* ========================================================= ЛЕНТА ПОСТОВ ========================================================= */ .feed-container { max-width: 700px; margin: 40px auto; } .post-card { background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 15px; padding: 20px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); } .post-header { display: flex; align-items: center; margin-bottom: 15px; } .post-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 2px solid #50A194; } .post-author { font-weight: bold; color: #7A2E2E; text-decoration: none; display: block; } .post-author:hover { color: #9a2f28; } .post-date { font-size: 12px; color: #999; } .post-content p { line-height: 1.6; color: #444; } .post-image { width: 100%; border-radius: 10px; margin-top: 10px; display: block; } /* Футер поста со статистикой */ .post-footer { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #EEE; } .stat-item { font-size: 14px; color: #666; display: flex; align-items: center; } .stat-item.liked { color: #E74C3C; font-weight: bold; } /* ========================================================= ФУТЕР ========================================================= */ .main-footer { margin-top: 60px; padding: 28px 20px; text-align: center; color: #6b665c; border-top: 1px solid #d1c7b7; background: #e9e4d6; } .main-footer a { color: #9a2f28; text-decoration: none; } .main-footer a:hover { text-decoration: underline; } /* ========================================================= АДАПТАЦИЯ ========================================================= */ @media (max-width: 1100px) { .header-inner { padding: 0 30px; grid-template-columns: 1fr 180px 1fr; column-gap: 24px; } .nav-left { gap: 45px; } .nav-right { gap: 22px; } .main-header a { font-size: 16px; } .small-link, .profile-link, .logout-form button, .nav-right button { font-size: 12px !important; } .logo img { height: 96px; } } @media (max-width: 850px) { .header-inner { display: flex; flex-direction: column; min-height: auto; padding: 16px 20px 22px; gap: 14px; } .logo { order: -1; } .logo img { height: 86px; margin-top: 0; } .nav-left, .nav-right { width: 100%; justify-content: center; flex-wrap: wrap; gap: 24px; } .container { margin-top: 15px; padding: 16px; } } @media (max-width: 520px) { .main-header a { font-size: 15px; } .nav-left, .nav-right { gap: 18px; } .small-link, .profile-link, .logout-form button, .nav-right button { font-size: 11px !important; } .logo img { height: 78px; } .post-card, .profile-card, .form-card, .card { padding: 16px; } } /* ========================================================= ЛАЙКИ, КОММЕНТАРИИ, МЕРОПРИЯТИЯ Добавь этот блок в самый низ static/css/style.css ========================================================= */ .feed-title { color: #7A2E2E; text-align: center; margin-bottom: 30px; } .like-form { margin: 0; } .like-btn { border: none; background: #f5eee6; color: #7A2E2E; border-radius: 999px; padding: 7px 13px; font-weight: 700; cursor: pointer; transition: 0.2s ease; } .like-btn:hover { background: #eaded3; transform: translateY(-1px); } .like-btn.is-liked { background: #fff0f0; color: #d63d3d; } .comments-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid #EEE; } .comments-details summary { cursor: pointer; color: #7A2E2E; font-weight: 700; margin-bottom: 12px; } .comments-list { display: flex; flex-direction: column; gap: 10px; } .comment-item { background: #f7f1e8; border: 1px solid #e3d8c8; border-radius: 12px; padding: 10px 12px; } .comment-main { line-height: 1.45; } .comment-author { color: #7A2E2E; font-weight: 700; text-decoration: none; margin-right: 6px; } .comment-text { color: #333; } .comment-meta { margin-top: 6px; display: flex; align-items: center; gap: 12px; color: #8b867d; font-size: 12px; } .comment-delete-form { margin: 0; } .comment-delete-btn { border: none; background: none; padding: 0; color: #9a2f28; font-size: 12px; cursor: pointer; font-weight: 700; } .comment-delete-btn:hover { text-decoration: underline; } .comments-empty, .login-to-comment, .empty-feed { color: #777; text-align: center; } .login-to-comment a { color: #50A194; font-weight: 700; text-decoration: none; } .comment-form { margin-top: 14px; display: flex; gap: 10px; } .comment-form input { flex: 1; width: auto; border-radius: 999px; } .comment-form button { border: none; background: #50A194; color: white; border-radius: 999px; padding: 0 18px; font-weight: 700; cursor: pointer; } .comment-form button:hover { background: #438b80; } /* Мероприятия */ .events-page { max-width: 1050px; margin: 0 auto; } .events-head { text-align: center; margin-bottom: 32px; } .events-head h1 { color: #7A2E2E; margin-bottom: 8px; } .events-head p { color: #666; } .events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; } .event-card { background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.06); } .event-image { width: 100%; height: 205px; object-fit: cover; display: block; } .event-body { padding: 18px; } .event-body h2 { margin: 0 0 12px; color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-weight: 500; } .event-meta { display: flex; flex-direction: column; gap: 6px; color: #68635b; font-size: 14px; margin-bottom: 12px; } .event-body p { line-height: 1.55; color: #444; } .event-btn, .event-btn-link { width: 100%; display: block; text-align: center; border: none; background: #50A194; color: white; border-radius: 999px; padding: 12px 18px; font-weight: 700; text-decoration: none; cursor: pointer; margin-top: 14px; } .event-btn:hover, .event-btn-link:hover { background: #438b80; } .event-btn-secondary { background: #333; } .event-btn-secondary:hover { background: #222; } @media (max-width: 620px) { .comment-form { flex-direction: column; } .comment-form button { padding: 12px 18px; } .events-grid { grid-template-columns: 1fr; } } /* ========================================================= ГАРАЖ, СТРАНИЦА МАШИНЫ, ФОРМЫ Добавь этот блок в самый низ static/css/style.css ========================================================= */ /* ========================================================= КРАСИВЫЙ МОЙ ГАРАЖ — AUTOHUB ========================================================= */ .garage-page-new { max-width: 1120px; margin: 0 auto; } .garage-hero { background: linear-gradient(135deg, #FDFBF5 0%, #eee5d6 100%); border: 1px solid #D1CDBE; border-radius: 24px; padding: 30px; margin-bottom: 28px; display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06); } .garage-kicker { margin: 0 0 8px; color: #50A194; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; } .garage-hero h1 { margin: 0 0 12px; color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 500; } .garage-hero p { margin: 0; max-width: 700px; color: #5f5a52; line-height: 1.6; } .garage-hero-actions { display: flex; flex-direction: column; gap: 14px; } .garage-hero-stat { background: #333; border-radius: 18px; padding: 18px; color: white; text-align: center; } .garage-hero-stat span { display: block; color: #cfcfcf; font-size: 13px; margin-bottom: 8px; } .garage-hero-stat strong { display: block; color: #50A194; font-size: 38px; line-height: 1; } .garage-main-btn { width: 100%; text-align: center; justify-content: center; box-shadow: 0 8px 18px rgba(80, 161, 148, 0.25); } .garage-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; } .garage-toolbar h2 { margin: 0 0 6px; color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; } .garage-toolbar p { margin: 0; color: #666; } .garage-grid-new { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; } .garage-card-new { background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 22px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06); transition: transform 0.22s ease, box-shadow 0.22s ease; } .garage-card-new:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1); } .garage-image-wrap { position: relative; display: block; height: 230px; overflow: hidden; background: #e9e4d6; } .garage-image-wrap .garage-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; } .garage-card-new:hover .garage-image { transform: scale(1.04); } .garage-no-image { height: 100%; display: flex; align-items: center; justify-content: center; color: #7A2E2E; font-weight: 700; } .garage-year-badge { position: absolute; top: 14px; right: 14px; background: rgba(51, 51, 51, 0.9); color: #50A194; border-radius: 999px; padding: 8px 13px; font-weight: 800; font-size: 13px; } .garage-body-new { padding: 20px; } .garage-card-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; } .garage-card-top h2 { margin: 0 0 5px; color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 500; } .garage-owner { margin: 0; color: #777; font-size: 13px; font-weight: 700; } .garage-status { flex-shrink: 0; background: #e9e4d6; color: #7A2E2E; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 800; } .garage-status-sale { background: #edf4f2; color: #2d756b; } .garage-description { min-height: 62px; margin: 0 0 16px; color: #4f4a43; line-height: 1.55; font-size: 14px; } .garage-stats-new { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 18px; } .garage-stats-new div { background: #f1eadf; border: 1px solid #e0d5c5; border-radius: 14px; padding: 12px 8px; text-align: center; } .garage-stats-new strong { display: block; color: #7A2E2E; font-size: 22px; line-height: 1; margin-bottom: 5px; } .garage-stats-new span { color: #666; font-size: 12px; font-weight: 700; } .garage-actions-new { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .garage-actions-new a, .garage-actions-new button { width: 100%; min-height: 40px; border: none; border-radius: 999px; padding: 10px 12px; text-align: center; text-decoration: none; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.2s ease; } .garage-actions-new a { background: #f0e7dc; color: #7A2E2E; } .garage-actions-new .garage-action-open { background: #50A194; color: white; } .garage-actions-new .sell-link { background: #333; color: white; } .garage-actions-new form { margin: 0; } .garage-actions-new button { background: #fff0f0; color: #9a2f28; } .garage-actions-new a:hover, .garage-actions-new button:hover { transform: translateY(-2px); } .empty-garage-new { grid-column: 1 / -1; background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 24px; padding: 44px 24px; text-align: center; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06); } .empty-garage-icon { font-size: 54px; margin-bottom: 12px; } .empty-garage-new h2 { margin: 0 0 10px; color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; } .empty-garage-new p { max-width: 520px; margin: 0 auto 22px; color: #666; line-height: 1.6; } @media (max-width: 850px) { .garage-hero { grid-template-columns: 1fr; } .garage-hero-actions { max-width: 340px; } .garage-grid-new { grid-template-columns: 1fr; } } @media (max-width: 520px) { .garage-hero { padding: 22px; } .garage-hero h1 { font-size: 34px; } .garage-card-top { flex-direction: column; } .garage-actions-new { grid-template-columns: 1fr; } .garage-stats-new { grid-template-columns: 1fr; } } /* Формы */ .form-page { max-width: 720px; } .site-form { display: flex; flex-direction: column; gap: 18px; } .form-row { display: flex; flex-direction: column; gap: 7px; } .form-errors { color: #9a2f28; font-size: 13px; } .form-submit { margin-top: 8px; width: 100%; padding: 14px 20px; } .selling-car-preview { display: flex; gap: 16px; align-items: center; background: #f4ecdf; border-radius: 16px; padding: 12px; margin-bottom: 20px; } .selling-car-preview img { width: 120px; height: 85px; object-fit: cover; border-radius: 12px; } .selling-car-preview h2 { margin: 0 0 6px; color: #7A2E2E; } /* Страница машины */ .car-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 20px; padding: 22px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); } .car-hero-image img { width: 100%; height: 430px; object-fit: cover; border-radius: 16px; display: block; } .car-owner { color: #666; } .car-owner a { color: #50A194; text-decoration: none; font-weight: 700; } .car-hero-info h1 { font-size: 42px; margin: 10px 0 6px; } .car-year { color: #777; font-weight: 700; } .car-description { line-height: 1.65; } .car-ad-box { background: #f4ecdf; border-radius: 16px; padding: 16px; margin: 18px 0; display: flex; flex-direction: column; gap: 8px; } .car-ad-box strong { color: #7A2E2E; } .car-section { margin-top: 34px; } .car-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; } .car-gallery img { width: 100%; height: 165px; object-fit: cover; border-radius: 14px; border: 1px solid #D1CDBE; } .car-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; } .mini-post { background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 16px; padding: 16px; } .mini-post-head { display: flex; justify-content: space-between; color: #888; font-size: 13px; margin-bottom: 10px; } .mini-post img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; } .mini-post-stats { display: flex; gap: 16px; color: #666; margin-top: 12px; font-size: 14px; } @media (max-width: 850px) { .garage-head { flex-direction: column; align-items: flex-start; } .car-hero { grid-template-columns: 1fr; } .car-hero-image img { height: 300px; } .car-hero-info h1 { font-size: 32px; } } @media (max-width: 520px) { .garage-grid, .car-posts { grid-template-columns: 1fr; } .selling-car-preview { flex-direction: column; align-items: flex-start; } .selling-car-preview img { width: 100%; height: 170px; } } /* ========================================================= СТРАНИЦА СОЗДАНИЯ ПОСТА ========================================================= */ .post-create-page { max-width: 760px; margin: 0 auto; } .post-create-card { background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 18px; padding: 34px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); } .post-create-head { margin-bottom: 26px; } .post-create-kicker { margin: 0 0 8px; color: #50A194; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; } .post-create-head h1 { margin: 0 0 10px; color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; } .post-create-head p { margin: 0; color: #666; line-height: 1.6; } .post-create-form { display: flex; flex-direction: column; gap: 20px; } .post-create-form .form-row { display: flex; flex-direction: column; gap: 8px; } .post-create-form label { color: #555; font-weight: 700; } .form-help { color: #8a847a; font-size: 13px; line-height: 1.4; } .post-create-form select, .post-create-form textarea, .post-create-form input[type="text"], .post-create-form input[type="file"] { width: 100%; border: 1px solid #cfc6b6; border-radius: 14px; background: #fffdf7; color: #333; font-family: 'Montserrat', sans-serif; font-size: 15px; padding: 13px 15px; outline: none; } .post-create-form select:focus, .post-create-form textarea:focus, .post-create-form input:focus { border-color: #50A194; box-shadow: 0 0 0 3px rgba(80, 161, 148, 0.15); } .file-field { background: #fffdf7; border: 1px solid #cfc6b6; border-radius: 14px; padding: 12px 14px; } .file-field input[type="file"] { border: none; padding: 0; background: transparent; } .post-create-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; } .post-create-actions .form-submit { flex: 1; } .cancel-link { text-decoration: none; color: #7A2E2E; background: #f0e7dc; border-radius: 999px; padding: 13px 20px; font-weight: 700; } .cancel-link:hover { background: #e4d8ca; } @media (max-width: 620px) { .post-create-card { padding: 22px; } .post-create-head h1 { font-size: 28px; } .post-create-actions { flex-direction: column; align-items: stretch; } .cancel-link { text-align: center; } } /* ========================================================= ПОИСК, ФИЛЬТРЫ ОБЪЯВЛЕНИЙ, СТРАНИЦА ОБЪЯВЛЕНИЯ Добавь этот блок в самый низ static/css/style.css ========================================================= */ .feed-top { margin-bottom: 26px; } .search-form { display: flex; gap: 10px; background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 999px; padding: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); } .search-form input { flex: 1; border: none; background: transparent; padding: 10px 14px; outline: none; font-family: 'Montserrat', sans-serif; } .search-form button, .search-reset { border: none; background: #50A194; color: white; border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: 'Montserrat', sans-serif; } .search-reset { background: #f0e7dc; color: #7A2E2E; } .search-result-text { text-align: center; color: #666; } .post-car-link { display: inline-block; margin-top: 4px; color: #50A194; text-decoration: none; font-weight: 700; font-size: 13px; } .post-car-link:hover { color: #3f877c; } /* Объявления */ .ads-page, .ad-detail-page { max-width: 1120px; margin: 0 auto; } .ads-head { text-align: center; margin-bottom: 24px; } .ads-head h1, .ad-detail-info h1, .ad-detail-section h2 { color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-weight: 500; } .ads-head p { color: #666; } .ads-filter { background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 18px; padding: 20px; margin-bottom: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.05); } .filter-field { display: flex; flex-direction: column; gap: 7px; } .filter-field label { color: #555; font-weight: 700; font-size: 13px; } .filter-field input { border: 1px solid #cfc6b6; border-radius: 12px; background: #fffdf7; padding: 12px 14px; outline: none; font-family: 'Montserrat', sans-serif; } .filter-field input:focus { border-color: #50A194; box-shadow: 0 0 0 3px rgba(80, 161, 148, 0.15); } .filter-actions { display: flex; gap: 10px; align-items: flex-end; } .filter-actions button, .filter-actions a { width: 100%; text-align: center; border: none; background: #50A194; color: white; border-radius: 12px; padding: 12px 14px; text-decoration: none; font-weight: 700; cursor: pointer; } .filter-actions a { background: #f0e7dc; color: #7A2E2E; } .ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; } .ad-card { background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.06); } .ad-image-link { display: block; } .ad-image { width: 100%; height: 220px; object-fit: cover; display: block; } .ad-body { padding: 18px; } .ad-price { margin: 0 0 8px; color: #50A194; font-size: 22px; font-weight: 800; } .ad-body h2 { margin: 0 0 8px; color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-weight: 500; } .ad-meta { color: #777; font-weight: 700; } .ad-actions { display: flex; gap: 10px; margin-top: 16px; } .ad-actions a { text-decoration: none; background: #f0e7dc; color: #7A2E2E; border-radius: 999px; padding: 9px 13px; font-weight: 700; font-size: 13px; } .ad-actions a:first-child { background: #50A194; color: white; } /* Детальная страница объявления */ .ad-detail-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 20px; padding: 22px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); } .ad-detail-image img { width: 100%; height: 460px; object-fit: cover; display: block; border-radius: 16px; } .ad-detail-label { color: #50A194; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; } .ad-detail-info h1 { font-size: 42px; margin: 8px 0; } .ad-detail-price { color: #50A194; font-size: 34px; font-weight: 800; margin: 10px 0 18px; } .ad-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; } .ad-detail-meta span { background: #f0e7dc; border-radius: 999px; padding: 8px 12px; color: #5d5d5d; font-weight: 700; font-size: 13px; } .ad-detail-description { line-height: 1.65; color: #444; } .seller-box { display: flex; align-items: center; gap: 14px; background: #f4ecdf; border-radius: 16px; padding: 14px; margin: 18px 0; } .seller-box img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; } .seller-box strong, .seller-box span { display: block; } .seller-box span { color: #777; margin-top: 4px; } .ad-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; } .ad-detail-actions a { text-decoration: none; background: #50A194; color: white; border-radius: 999px; padding: 12px 16px; font-weight: 700; } .ad-detail-actions .secondary-link { background: #f0e7dc; color: #7A2E2E; } .ad-detail-section { margin-top: 34px; } .seller-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; } .seller-post-card { background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 16px; padding: 14px; } .seller-post-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; } .seller-post-card p { line-height: 1.45; } .seller-post-card span { color: #888; font-size: 13px; } @media (max-width: 850px) { .ads-filter { grid-template-columns: 1fr 1fr; } .ad-detail-hero { grid-template-columns: 1fr; } .ad-detail-image img { height: 320px; } } @media (max-width: 620px) { .search-form { flex-direction: column; border-radius: 18px; } .ads-filter { grid-template-columns: 1fr; } .filter-actions { flex-direction: column; align-items: stretch; } .ad-detail-info h1 { font-size: 32px; } .ad-detail-price { font-size: 28px; } } /* ========================================================= ПАГИНАЦИЯ НА ГЛАВНОЙ ========================================================= */ .pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 35px 0 10px; flex-wrap: wrap; } .pagination a, .pagination-current { text-decoration: none; background: #FDFBF5; border: 1px solid #D1CDBE; color: #7A2E2E; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); } .pagination a:hover { background: #50A194; color: white; border-color: #50A194; } .pagination-current { color: #555; background: #f4ecdf; } /* ========================================================= ГЛАВНАЯ СТРАНИЦА С ВИДЖЕТАМИ ДЛЯ ЛАБОРАТОРНОЙ РАБОТЫ ========================================================= */ .home-page { max-width: 1180px; margin: 0 auto; } .home-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; background: linear-gradient(135deg, #FDFBF5 0%, #F1E7D8 100%); border: 1px solid #D1CDBE; border-radius: 28px; padding: 34px; box-shadow: 0 12px 35px rgba(0,0,0,0.07); } .home-kicker, .section-heading p { margin: 0 0 8px; color: #50A194; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; } .home-hero h1 { margin: 0 0 14px; font-size: 44px; line-height: 1.08; } .home-lead { max-width: 720px; color: #5f5a52; line-height: 1.7; font-size: 16px; } .home-search-form { background: #fffdf7; border: 1px solid #D1CDBE; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; } .home-search-row { display: flex; gap: 10px; } .home-search-row input { border-radius: 999px; } .home-search-row button { border: none; background: #50A194; color: white; border-radius: 999px; padding: 0 22px; font-weight: 800; cursor: pointer; } .home-reset { display: inline-block; width: fit-content; } .home-stats-grid, .home-widget-grid, .search-result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; } .home-stat-card, .home-panel, .home-widget-card, .search-result-box { background: #FDFBF5; border: 1px solid #D1CDBE; border-radius: 20px; padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); } .home-stat-card span, .home-market-strip span { display: block; color: #777; font-size: 13px; font-weight: 700; } .home-stat-card strong { display: block; color: #7A2E2E; font-size: 34px; margin-top: 7px; } .home-market-strip { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: #333; color: white; border-radius: 20px; padding: 18px; } .home-market-strip strong { display: block; color: #50A194; font-size: 20px; margin-top: 5px; } .home-section { margin-top: 42px; } .section-heading { text-align: center; margin-bottom: 20px; } .section-heading h2 { margin: 0; color: #7A2E2E; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 34px; } .small-heading { text-align: left; } .home-widget-grid { grid-template-columns: repeat(3, 1fr); } .widget-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .widget-head span { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #50A194; color: white; font-weight: 800; } .widget-head h3, .search-result-box h3, .deal-title { margin: 0; color: #7A2E2E; } .home-widget-card p, .muted-text { color: #68635b; line-height: 1.55; } .widget-ad-row, .widget-car-row, .widget-event-row, .mini-result-link { display: flex; gap: 12px; align-items: center; text-decoration: none; background: #f5eee6; border: 1px solid #e3d8c8; border-radius: 16px; padding: 12px; margin-top: 10px; transition: transform 0.2s ease, box-shadow 0.2s ease; } .widget-event-row, .mini-result-link { align-items: flex-start; flex-direction: column; gap: 4px; } .widget-ad-row:hover, .widget-car-row:hover, .widget-event-row:hover, .mini-result-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); } .widget-ad-row img, .widget-car-row img { width: 74px; height: 58px; border-radius: 12px; object-fit: cover; flex-shrink: 0; } .widget-ad-row strong, .widget-car-row strong, .widget-event-row strong, .mini-result-link strong { color: #7A2E2E; } .widget-ad-row small, .widget-car-row small, .widget-event-row span, .mini-result-link span { color: #777; font-size: 13px; font-weight: 600; } .home-two-columns { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; } .brand-list { display: flex; flex-direction: column; gap: 10px; } .brand-row { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e8ded0; padding-bottom: 10px; } .brand-row strong { color: #7A2E2E; } .brand-row span { color: #777; text-align: right; } .city-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; } .city-tags span { background: #50A194; color: white; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 12px; } .search-result-section { scroll-margin-top: 20px; } .search-result-grid { grid-template-columns: repeat(3, 1fr); } .deal-title { margin-top: 20px; font-size: 18px; } .deal-link { background: #eef7f4; border-color: #cce5de; } .home-feed { max-width: 780px; } .pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 35px 0 10px; flex-wrap: wrap; } .pagination a, .pagination-current { text-decoration: none; background: #FDFBF5; border: 1px solid #D1CDBE; color: #7A2E2E; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); } .pagination a:hover { background: #50A194; color: white; border-color: #50A194; } .pagination-current { color: #555; background: #f4ecdf; } @media (max-width: 980px) { .home-hero, .home-two-columns { grid-template-columns: 1fr; } .home-stats-grid, .home-market-strip { grid-template-columns: repeat(2, 1fr); } .home-widget-grid, .search-result-grid { grid-template-columns: 1fr; } } @media (max-width: 620px) { .home-hero { padding: 22px; } .home-hero h1 { font-size: 32px; } .home-search-row { flex-direction: column; } .home-search-row button { padding: 12px 18px; } .home-stats-grid, .home-market-strip { grid-template-columns: 1fr; } .brand-row { flex-direction: column; } .brand-row span { text-align: left; } } /* ========================================================= FIX HOME PAGE — принудительные стили главной AutoHub Этот блок специально стоит в самом конце, чтобы перебить старые стили. ========================================================= */ .container { max-width: 1080px !important; margin: 35px auto 0 !important; padding: 20px !important; } .home-page { max-width: 1040px !important; margin: 0 auto !important; } .home-hero { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) !important; gap: 26px !important; align-items: stretch !important; background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 22px !important; padding: 30px !important; margin: 0 0 24px !important; box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important; } .home-kicker, .home-hero .eyebrow, .section-heading p { display: block !important; margin: 0 0 10px !important; color: #50A194 !important; font-family: 'Montserrat', sans-serif !important; font-size: 13px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 0.06em !important; } .home-hero h1 { margin: 0 0 16px !important; color: #7A2E2E !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 36px !important; line-height: 1.12 !important; font-weight: 500 !important; } .home-lead, .home-hero p { margin: 0 !important; color: #4e4a43 !important; font-size: 15px !important; line-height: 1.6 !important; } .home-search-form { background: #EDE7DA !important; border: 1px solid #D1CDBE !important; border-radius: 18px !important; padding: 20px !important; display: flex !important; flex-direction: column !important; justify-content: center !important; gap: 10px !important; } .home-search-form label { margin: 0 0 2px !important; color: #4e4a43 !important; font-size: 14px !important; font-weight: 700 !important; } .home-search-row, .home-search-form:not(:has(.home-search-row)) { display: flex !important; gap: 10px !important; } .home-search-row input, .home-search-form > input[type="text"] { flex: 1 !important; width: 100% !important; height: 44px !important; border: 1px solid #CFC6B6 !important; border-radius: 999px !important; background: #FFFDF7 !important; padding: 0 16px !important; font-family: 'Montserrat', sans-serif !important; } .home-search-row button, .home-search-form > button { width: auto !important; min-width: 110px !important; height: 44px !important; border: none !important; border-radius: 999px !important; background: #50A194 !important; color: #fff !important; padding: 0 22px !important; font-family: 'Montserrat', sans-serif !important; font-weight: 800 !important; cursor: pointer !important; } .home-search-row button:hover, .home-search-form > button:hover { background: #438b80 !important; } .home-reset, .search-reset { width: fit-content !important; display: inline-block !important; margin-top: 6px !important; color: #7A2E2E !important; background: transparent !important; text-decoration: none !important; font-weight: 700 !important; font-size: 13px !important; } .home-stats-grid, .stats-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; margin: 22px 0 16px !important; } .home-stat-card, .stat-card { background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 18px !important; padding: 18px !important; box-shadow: 0 6px 18px rgba(0,0,0,0.05) !important; } .home-stat-card span, .stat-card span, .home-market-strip span { display: block !important; color: #666 !important; font-size: 13px !important; font-weight: 700 !important; margin-bottom: 7px !important; } .home-stat-card strong, .stat-card strong { display: block !important; color: #7A2E2E !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 32px !important; font-weight: 500 !important; } .home-market-strip { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 0 !important; margin: 0 0 36px !important; background: #333 !important; border-radius: 18px !important; overflow: hidden !important; padding: 0 !important; color: #fff !important; } .home-market-strip div { padding: 18px !important; border-right: 1px solid rgba(255,255,255,0.12) !important; } .home-market-strip div:last-child { border-right: none !important; } .home-market-strip strong { display: block !important; color: #50A194 !important; font-size: 20px !important; font-weight: 800 !important; } .home-section { margin-top: 36px !important; } .section-heading { text-align: center !important; margin-bottom: 20px !important; } .section-heading h2 { margin: 0 !important; color: #7A2E2E !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 32px !important; font-weight: 500 !important; } .home-widget-grid, .widget-grid, .search-result-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; margin-top: 18px !important; } .home-widget-card, .home-widget, .search-result-box, .home-panel { background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 20px !important; padding: 20px !important; box-shadow: 0 8px 22px rgba(0,0,0,0.05) !important; } .widget-head { display: flex !important; gap: 12px !important; align-items: center !important; margin-bottom: 14px !important; } .widget-head > span, .widget-icon { width: 42px !important; height: 42px !important; min-width: 42px !important; border-radius: 50% !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; background: #7A2E2E !important; color: #fff !important; font-weight: 800 !important; } .widget-head h2, .widget-head h3, .search-result-box h3, .deal-title { margin: 0 !important; color: #7A2E2E !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 22px !important; font-weight: 500 !important; } .home-widget-card p, .home-widget p, .muted-text, .muted { color: #5f5a52 !important; line-height: 1.55 !important; font-size: 14px !important; } .widget-ad-row, .widget-car-row, .widget-event-row, .mini-result-link, .compact-item, .ad-widget-item { display: flex !important; gap: 12px !important; align-items: center !important; background: #F1E8DC !important; border: 1px solid #E1D4C2 !important; border-radius: 15px !important; padding: 12px !important; margin-top: 10px !important; text-decoration: none !important; transition: transform 0.2s ease, box-shadow 0.2s ease !important; } .widget-event-row, .mini-result-link, .compact-item { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; } .widget-ad-row:hover, .widget-car-row:hover, .widget-event-row:hover, .mini-result-link:hover, .compact-item:hover, .ad-widget-item:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important; } .widget-ad-row img, .widget-car-row img, .ad-widget-item img { width: 82px !important; height: 62px !important; object-fit: cover !important; border-radius: 12px !important; flex-shrink: 0 !important; } .widget-ad-row strong, .widget-car-row strong, .widget-event-row strong, .mini-result-link strong, .compact-item strong, .ad-widget-item strong { color: #7A2E2E !important; font-size: 14px !important; } .widget-ad-row small, .widget-car-row small, .widget-event-row span, .mini-result-link span, .compact-item span, .compact-item em, .ad-widget-item em, .ad-widget-item b { color: #68635b !important; font-size: 13px !important; font-style: normal !important; } .home-two-columns { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 18px !important; } .brand-row { display: flex !important; justify-content: space-between !important; gap: 12px !important; padding: 10px 0 !important; border-bottom: 1px dashed #D1CDBE !important; } .brand-row strong { color: #7A2E2E !important; } .brand-row span { color: #68635b !important; text-align: right !important; } .city-tags { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin-top: 16px !important; } .city-tags span { background: #50A194 !important; color: #fff !important; border-radius: 999px !important; padding: 7px 12px !important; font-size: 12px !important; font-weight: 700 !important; } .search-results-section { background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 20px !important; padding: 22px !important; } .home-feed, .home-page .feed-container { max-width: 780px !important; margin-left: auto !important; margin-right: auto !important; } .pagination { display: flex !important; justify-content: center !important; align-items: center !important; gap: 10px !important; margin: 35px 0 10px !important; flex-wrap: wrap !important; } .pagination a, .pagination-current { text-decoration: none !important; background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; color: #7A2E2E !important; border-radius: 999px !important; padding: 10px 16px !important; font-weight: 700 !important; font-size: 14px !important; } .pagination a:hover { background: #50A194 !important; color: white !important; border-color: #50A194 !important; } @media (max-width: 980px) { .home-hero, .home-two-columns { grid-template-columns: 1fr !important; } .home-stats-grid, .stats-grid, .home-market-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .home-widget-grid, .widget-grid, .search-result-grid { grid-template-columns: 1fr !important; } } @media (max-width: 620px) { .container { padding: 14px !important; } .home-hero { padding: 22px !important; } .home-hero h1 { font-size: 29px !important; } .home-search-row, .home-search-form:not(:has(.home-search-row)) { flex-direction: column !important; } .home-search-row button, .home-search-form > button { width: 100% !important; padding: 12px 18px !important; } .home-stats-grid, .stats-grid, .home-market-strip, .home-two-columns { grid-template-columns: 1fr !important; } .home-market-strip div { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12) !important; } .home-market-strip div:last-child { border-bottom: none !important; } .brand-row { flex-direction: column !important; } .brand-row span { text-align: left !important; } } /* ========================================================= FIX MY GARAGE — принудительное оформление вкладки "Мой гараж" Работает со старым шаблоном: .garage-page, .garage-head, .garage-grid, .garage-card Этот блок стоит в самом конце, чтобы перебить предыдущие стили. ========================================================= */ .garage-page, .garage-page-new { max-width: 1120px !important; margin: 0 auto !important; } .garage-page .garage-head, .garage-head { position: relative !important; overflow: hidden !important; background: linear-gradient(135deg, #FDFBF5 0%, #EDE4D5 100%) !important; border: 1px solid #D1CDBE !important; border-radius: 26px !important; padding: 34px !important; margin-bottom: 28px !important; display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center !important; gap: 24px !important; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07) !important; } .garage-page .garage-head::before, .garage-head::before { content: "AUTOHUB GARAGE" !important; position: absolute !important; right: 28px !important; bottom: -8px !important; color: rgba(122, 46, 46, 0.06) !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 58px !important; font-weight: 700 !important; letter-spacing: 0.04em !important; pointer-events: none !important; } .garage-page .garage-head h1, .garage-head h1 { margin: 0 0 10px !important; color: #7A2E2E !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 44px !important; line-height: 1.05 !important; font-weight: 500 !important; } .garage-page .garage-head p, .garage-head p { max-width: 620px !important; margin: 0 !important; color: #5f5a52 !important; font-size: 15px !important; line-height: 1.6 !important; } .garage-page .garage-add-btn, .garage-add-btn { position: relative !important; z-index: 1 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 46px !important; border: none !important; border-radius: 999px !important; background: #50A194 !important; color: #fff !important; padding: 13px 22px !important; text-decoration: none !important; font-family: 'Montserrat', sans-serif !important; font-size: 14px !important; font-weight: 800 !important; box-shadow: 0 8px 18px rgba(80, 161, 148, 0.25) !important; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important; white-space: nowrap !important; } .garage-page .garage-add-btn:hover, .garage-add-btn:hover { background: #438b80 !important; color: #fff !important; transform: translateY(-2px) !important; box-shadow: 0 12px 24px rgba(80, 161, 148, 0.32) !important; } .garage-page .garage-grid, .garage-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important; gap: 24px !important; align-items: stretch !important; } .garage-page .garage-card, .garage-card { position: relative !important; overflow: hidden !important; background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 24px !important; padding: 0 !important; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07) !important; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important; } .garage-page .garage-card:hover, .garage-card:hover { transform: translateY(-5px) !important; border-color: #c0b49f !important; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12) !important; } .garage-page .garage-image-link, .garage-image-link { position: relative !important; display: block !important; height: 235px !important; overflow: hidden !important; background: #E9E4D6 !important; text-decoration: none !important; } .garage-page .garage-image-link::after, .garage-image-link::after { content: "Открыть карточку" !important; position: absolute !important; left: 16px !important; bottom: 16px !important; background: rgba(51, 51, 51, 0.82) !important; color: #fff !important; border-radius: 999px !important; padding: 8px 13px !important; font-size: 12px !important; font-weight: 800 !important; opacity: 0 !important; transform: translateY(8px) !important; transition: opacity 0.22s ease, transform 0.22s ease !important; } .garage-page .garage-card:hover .garage-image-link::after, .garage-card:hover .garage-image-link::after { opacity: 1 !important; transform: translateY(0) !important; } .garage-page .garage-image, .garage-image { width: 100% !important; height: 100% !important; min-height: 235px !important; object-fit: cover !important; display: block !important; border-radius: 0 !important; transition: transform 0.32s ease, filter 0.32s ease !important; } .garage-page .garage-card:hover .garage-image, .garage-card:hover .garage-image { transform: scale(1.05) !important; filter: saturate(1.08) contrast(1.03) !important; } .garage-page .garage-body, .garage-body { padding: 20px !important; } .garage-page .garage-body h2, .garage-body h2 { margin: 0 0 6px !important; color: #7A2E2E !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 27px !important; line-height: 1.15 !important; font-weight: 500 !important; } .garage-page .garage-year, .garage-year { display: inline-flex !important; align-items: center !important; width: auto !important; margin: 0 0 12px !important; background: #333 !important; color: #50A194 !important; border-radius: 999px !important; padding: 7px 12px !important; font-size: 12px !important; font-weight: 800 !important; } .garage-page .garage-body > p:not(.garage-year), .garage-body > p:not(.garage-year) { min-height: 48px !important; margin: 0 0 16px !important; color: #4f4a43 !important; font-size: 14px !important; line-height: 1.55 !important; } .garage-page .garage-stats, .garage-stats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin: 16px 0 18px !important; } .garage-page .garage-stats span, .garage-stats span { display: flex !important; align-items: center !important; justify-content: center !important; min-height: 44px !important; background: #F1E8DC !important; border: 1px solid #E1D4C2 !important; border-radius: 14px !important; color: #68635b !important; font-size: 13px !important; font-weight: 800 !important; text-align: center !important; } .garage-page .garage-actions, .garage-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; align-items: stretch !important; } .garage-page .garage-actions a, .garage-page .garage-actions button, .garage-actions a, .garage-actions button { width: 100% !important; min-height: 42px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; border: none !important; border-radius: 999px !important; padding: 10px 12px !important; text-align: center !important; text-decoration: none !important; font-family: 'Montserrat', sans-serif !important; font-size: 13px !important; font-weight: 800 !important; cursor: pointer !important; transition: transform 0.2s ease, background 0.2s ease !important; } .garage-page .garage-actions a, .garage-actions a { background: #F0E7DC !important; color: #7A2E2E !important; } .garage-page .garage-actions a:first-child, .garage-actions a:first-child { background: #50A194 !important; color: #fff !important; } .garage-page .garage-actions .sell-link, .garage-actions .sell-link { background: #333 !important; color: #fff !important; } .garage-page .garage-actions form, .garage-actions form { width: 100% !important; margin: 0 !important; display: block !important; } .garage-page .garage-actions button, .garage-actions button { background: #FFF0F0 !important; color: #9A2F28 !important; } .garage-page .garage-actions a:hover, .garage-page .garage-actions button:hover, .garage-actions a:hover, .garage-actions button:hover { transform: translateY(-2px) !important; } .garage-page .garage-actions a:first-child:hover, .garage-actions a:first-child:hover { background: #438b80 !important; } .garage-page .garage-actions .sell-link:hover, .garage-actions .sell-link:hover { background: #222 !important; } .garage-page .garage-actions button:hover, .garage-actions button:hover { background: #F8DADA !important; } .garage-page .empty-garage, .empty-garage { grid-column: 1 / -1 !important; background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 24px !important; padding: 48px 28px !important; text-align: center !important; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07) !important; } .garage-page .empty-garage::before, .empty-garage::before { content: "🚗" !important; display: block !important; margin-bottom: 12px !important; font-size: 52px !important; } .garage-page .empty-garage h2, .empty-garage h2 { margin: 0 0 10px !important; color: #7A2E2E !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 32px !important; font-weight: 500 !important; } .garage-page .empty-garage p, .empty-garage p { max-width: 520px !important; margin: 0 auto 22px !important; color: #666 !important; line-height: 1.6 !important; } @media (max-width: 850px) { .garage-page .garage-head, .garage-head { grid-template-columns: 1fr !important; padding: 26px !important; } .garage-page .garage-head::before, .garage-head::before { font-size: 38px !important; right: 18px !important; } .garage-page .garage-add-btn, .garage-add-btn { width: fit-content !important; } .garage-page .garage-grid, .garage-grid { grid-template-columns: 1fr !important; } } @media (max-width: 520px) { .garage-page .garage-head, .garage-head { padding: 22px !important; } .garage-page .garage-head h1, .garage-head h1 { font-size: 34px !important; } .garage-page .garage-head::before, .garage-head::before { display: none !important; } .garage-page .garage-image-link, .garage-image-link, .garage-page .garage-image, .garage-image { height: 210px !important; min-height: 210px !important; } .garage-page .garage-actions, .garage-actions, .garage-page .garage-stats, .garage-stats { grid-template-columns: 1fr !important; } } /* ========================================================= FIX CAR DETAIL PAGE — красивая страница автомобиля AutoHub Специально для templates/cars/car_detail.html ========================================================= */ .car-detail-page { max-width: 1120px !important; margin: 0 auto !important; } .car-detail-card { display: grid !important; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr) !important; gap: 28px !important; align-items: stretch !important; background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 24px !important; padding: 24px !important; box-shadow: 0 12px 30px rgba(0,0,0,0.07) !important; overflow: hidden !important; } .car-detail-image { position: relative !important; min-height: 440px !important; background: #e9e4d6 !important; border-radius: 20px !important; overflow: hidden !important; border: 1px solid #D1CDBE !important; } .car-detail-image::after { content: "AUTOHUB" !important; position: absolute !important; left: 18px !important; bottom: 18px !important; padding: 8px 13px !important; border-radius: 999px !important; background: rgba(51, 51, 51, 0.78) !important; color: #50A194 !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: 0.08em !important; } .car-detail-image img { width: 100% !important; height: 100% !important; min-height: 440px !important; max-height: 610px !important; object-fit: cover !important; display: block !important; } .car-detail-image .no-image, .no-image { min-height: 440px !important; display: flex !important; align-items: center !important; justify-content: center !important; color: #7A2E2E !important; font-weight: 800 !important; background: #e9e4d6 !important; } .car-detail-info { display: flex !important; flex-direction: column !important; justify-content: center !important; padding: 8px 4px !important; } .car-detail-info h1 { margin: 0 0 18px !important; color: #7A2E2E !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 44px !important; line-height: 1.05 !important; font-weight: 500 !important; } .car-detail-info > p { display: grid !important; grid-template-columns: 140px 1fr !important; gap: 12px !important; align-items: start !important; margin: 0 0 10px !important; padding: 12px 14px !important; background: #F1E8DC !important; border: 1px solid #E1D4C2 !important; border-radius: 15px !important; color: #4f4a43 !important; line-height: 1.45 !important; } .car-detail-info > p strong { color: #7A2E2E !important; font-weight: 800 !important; } .car-detail-info a { color: #50A194 !important; font-weight: 800 !important; text-decoration: none !important; } .car-detail-info a:hover { color: #3f877c !important; text-decoration: underline !important; } .car-active-ad { margin: 10px 0 16px !important; padding: 18px !important; background: #333 !important; color: white !important; border-radius: 18px !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08) !important; } .car-active-ad p { margin: 0 0 8px !important; color: #eeeeee !important; } .car-active-ad strong { color: #50A194 !important; } .car-active-ad a { display: inline-flex !important; align-items: center !important; justify-content: center !important; margin-top: 8px !important; min-height: 42px !important; padding: 10px 16px !important; background: #50A194 !important; color: white !important; border-radius: 999px !important; text-decoration: none !important; } .car-active-ad a:hover { background: #438b80 !important; color: white !important; text-decoration: none !important; } .car-owner-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin-top: 6px !important; } .car-owner-actions a, .car-owner-actions button { width: 100% !important; min-height: 42px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; border: none !important; border-radius: 999px !important; padding: 10px 14px !important; font-family: 'Montserrat', sans-serif !important; font-size: 13px !important; font-weight: 800 !important; text-align: center !important; text-decoration: none !important; cursor: pointer !important; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important; } .car-owner-actions a { background: #F1E8DC !important; color: #7A2E2E !important; border: 1px solid #E1D4C2 !important; } .car-owner-actions a:nth-child(2), .car-owner-actions a:nth-child(3) { background: #50A194 !important; color: white !important; border-color: #50A194 !important; } .car-owner-actions form { margin: 0 !important; } .car-owner-actions button { background: #fff0f0 !important; color: #9a2f28 !important; border: 1px solid #efc7c7 !important; } .car-owner-actions a:hover, .car-owner-actions button:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important; text-decoration: none !important; } .session-info { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; margin: 20px 0 0 !important; } .session-info p { margin: 0 !important; padding: 15px 18px !important; background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 16px !important; color: #5f5a52 !important; box-shadow: 0 6px 16px rgba(0,0,0,0.04) !important; } .car-detail-page > .car-gallery { display: block !important; margin-top: 36px !important; } .car-detail-page > .car-gallery h2, .car-detail-page > .car-posts h2 { margin: 0 0 18px !important; color: #7A2E2E !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 32px !important; font-weight: 500 !important; } .gallery-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; gap: 16px !important; } .gallery-item { background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 18px !important; padding: 10px !important; box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important; } .gallery-item img { width: 100% !important; height: 190px !important; object-fit: cover !important; display: block !important; border-radius: 14px !important; } .gallery-grid > p, .posts-list > p { grid-column: 1 / -1 !important; margin: 0 !important; padding: 24px !important; background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 18px !important; color: #666 !important; text-align: center !important; } .car-detail-page > .car-posts { display: block !important; margin-top: 36px !important; } .posts-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)) !important; gap: 18px !important; } .car-detail-page .posts-list .post-card { margin: 0 !important; background: #FDFBF5 !important; border: 1px solid #D1CDBE !important; border-radius: 18px !important; padding: 18px !important; box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important; } .car-detail-page .posts-list .post-header { display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 12px !important; margin-bottom: 12px !important; color: #777 !important; font-size: 13px !important; } .car-detail-page .posts-list .post-header strong { color: #7A2E2E !important; } .car-detail-page .posts-list .post-card > p { color: #4f4a43 !important; line-height: 1.55 !important; } .car-detail-page .posts-list .post-card > img { width: 100% !important; height: 210px !important; object-fit: cover !important; border-radius: 14px !important; display: block !important; margin-top: 12px !important; } .post-stats { display: flex !important; gap: 12px !important; flex-wrap: wrap !important; margin-top: 14px !important; padding-top: 14px !important; border-top: 1px solid #E1D4C2 !important; } .post-stats span { background: #F1E8DC !important; border-radius: 999px !important; padding: 7px 11px !important; color: #5f5a52 !important; font-size: 13px !important; font-weight: 700 !important; } @media (max-width: 920px) { .car-detail-card { grid-template-columns: 1fr !important; } .car-detail-image, .car-detail-image img, .car-detail-image .no-image, .no-image { min-height: 340px !important; } .session-info { grid-template-columns: 1fr !important; } } @media (max-width: 560px) { .car-detail-card { padding: 16px !important; border-radius: 18px !important; } .car-detail-info h1 { font-size: 34px !important; } .car-detail-info > p { grid-template-columns: 1fr !important; gap: 4px !important; } .car-owner-actions { grid-template-columns: 1fr !important; } .car-detail-image, .car-detail-image img, .car-detail-image .no-image, .no-image { min-height: 260px !important; } } /* ========================================================= ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ, БЕЗ JAVASCRIPT ========================================================= */ body.accessibility-mode { background: #ffffff !important; color: #000000 !important; font-size: 20px; line-height: 1.7; } body.accessibility-mode * { text-shadow: none !important; box-shadow: none !important; } body.accessibility-mode a { color: #000000 !important; text-decoration: underline; font-weight: 700; } body.accessibility-mode .main-header, body.accessibility-mode .main-footer { background: #000000 !important; color: #ffffff !important; border-color: #ffffff !important; } body.accessibility-mode .main-header a, body.accessibility-mode .main-footer a, body.accessibility-mode .logout-form button, body.accessibility-mode .nav-right button { color: #ffffff !important; } body.accessibility-mode .container { max-width: 1200px; } body.accessibility-mode .card, body.accessibility-mode .form-card, body.accessibility-mode .home-stat-card, body.accessibility-mode .home-widget-card, body.accessibility-mode .home-panel, body.accessibility-mode .search-result-box { background: #ffffff !important; color: #000000 !important; border: 3px solid #000000 !important; border-radius: 0 !important; } body.accessibility-mode button, body.accessibility-mode .btn, body.accessibility-mode input[type="submit"] { background: #000000 !important; color: #ffffff !important; border: 3px solid #000000 !important; border-radius: 0 !important; font-size: 20px; padding: 14px 22px; } body.accessibility-mode input, body.accessibility-mode textarea, body.accessibility-mode select { background: #ffffff !important; color: #000000 !important; border: 3px solid #000000 !important; border-radius: 0 !important; font-size: 20px; } body.accessibility-mode img { border: 3px solid #000000; } body.accessibility-mode .logo img { border: none; } @media (max-width: 850px) { body.accessibility-mode { font-size: 22px; } body.accessibility-mode .header-inner { display: flex; flex-direction: column; gap: 18px; padding: 20px; } body.accessibility-mode .nav-left, body.accessibility-mode .nav-right { flex-direction: column; gap: 14px; width: 100%; } body.accessibility-mode .main-header a, body.accessibility-mode .nav-right button { font-size: 22px !important; } } @media (max-width: 520px) { body.accessibility-mode { font-size: 24px; } body.accessibility-mode .container { padding: 12px; margin-top: 15px; } body.accessibility-mode h1 { font-size: 34px; } body.accessibility-mode h2 { font-size: 28px; } body.accessibility-mode button, body.accessibility-mode .btn, body.accessibility-mode input, body.accessibility-mode textarea, body.accessibility-mode select { width: 100%; } } @media (prefers-contrast: more) { body.accessibility-mode { background: #000000 !important; color: #ffffff !important; } body.accessibility-mode .card, body.accessibility-mode .form-card, body.accessibility-mode .home-stat-card, body.accessibility-mode .home-widget-card, body.accessibility-mode .home-panel, body.accessibility-mode .search-result-box { background: #000000 !important; color: #ffffff !important; border-color: #ffffff !important; } body.accessibility-mode a { color: #ffffff !important; } } /* ========================================================= ДОРАБОТКА: адаптивность, медиа-запросы и доступность без JS ========================================================= */ .skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #000; color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; } .skip-link:focus { left: 8px; } .accessibility-switch, .no-js-info { background: #fffdf7; border-bottom: 1px solid #d1c7b7; padding: 10px 20px; text-align: center; font-size: 14px; } .accessibility-switch a, .no-js-info a { color: #7a2e2e; font-weight: 700; } .accessibility-status { margin-right: 12px; font-weight: 700; } @media (max-width: 1200px) { .container { max-width: 94%; } .home-widget-grid, .search-result-grid, .home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 768px) { body { font-size: 16px; } .home-widget-grid, .search-result-grid, .home-stats-grid, .home-two-columns, .ad-detail-layout, .garage-grid, .event-grid { grid-template-columns: 1fr !important; } .profile-card, .post-header, .post-footer, .widget-ad-row, .widget-car-row { flex-direction: column; align-items: flex-start; } .home-market-strip { grid-template-columns: 1fr 1fr; } .accessibility-switch { font-size: 16px; } } @media (max-width: 480px) { .container { max-width: 100%; padding: 12px; } .home-market-strip { grid-template-columns: 1fr; } h1, .page-title { font-size: 32px; } h2 { font-size: 26px; } .btn, button, input[type="submit"] { width: 100%; } } body.accessibility-mode .accessibility-switch, body.accessibility-mode .no-js-info { background: #000 !important; color: #fff !important; border-bottom: 3px solid #fff !important; font-size: 22px !important; } body.accessibility-mode .accessibility-switch a, body.accessibility-mode .no-js-info a { color: #fff !important; } body.accessibility-mode .skip-link:focus { outline: 4px solid #fff; } /* ========================================================= ЛАБОРАТОРНАЯ ПО ФРОНТЕНДУ: стили для печати При печати скрываются элементы интерфейса, которые не нужны в бумажной версии: меню, кнопки, формы, лайки, комментарии, пагинация, debug toolbar и служебные блоки. ========================================================= */ @media print { @page { margin: 15mm; } *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; } html, body { background: #ffffff !important; color: #000000 !important; font-family: "Times New Roman", Times, serif !important; font-size: 12pt !important; line-height: 1.4 !important; } .main-header, .main-footer, .accessibility-switch, .no-js-info, .skip-link, nav, form, button, input, textarea, select, .btn, .small-link, .profile-link, .logout-form, .ads-filter, .filter-field, .filter-actions, .pagination, .like-form, .like-btn, .comments-block, .comments-details, .comment-form, .comment-delete-form, .comment-delete-btn, .login-to-comment, .garage-actions-new, .garage-hero-actions, .garage-add-btn, .event-btn, .event-btn-link, .form-submit, .edit-link, .delete-link, #djDebug, .djdt-panelContent, .djdt-hidden, .debug-toolbar, #debug-toolbar { display: none !important; } .container, main, article, section { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: #ffffff !important; color: #000000 !important; } .card, .post-card, .garage-card, .garage-card-new, .ad-card, .event-card, .profile-card, .home-panel, .home-widget-card, .search-result-box, .form-card { border: 1px solid #000000 !important; border-radius: 0 !important; background: #ffffff !important; color: #000000 !important; break-inside: avoid; page-break-inside: avoid; margin: 0 0 12pt 0 !important; padding: 10pt !important; } h1, h2, h3, h4, h5, h6 { color: #000000 !important; page-break-after: avoid; break-after: avoid; } p, li { orphans: 3; widows: 3; } img, svg { max-width: 100% !important; height: auto !important; page-break-inside: avoid; break-inside: avoid; } a, a:visited { color: #000000 !important; text-decoration: none !important; } .home-widget-grid, .search-result-grid, .home-stats-grid, .home-two-columns, .ad-detail-layout, .garage-grid, .garage-grid-new, .events-grid, .event-grid { display: block !important; } }