/
ness
/
65789
Обзор
Документация
Войти
/
ness
/
65789
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
417 строк
8 KB
ness
сайт
27 июн 2025, 01:02
27 июн 2025, 01:02
55269c4
Код
Авторство
О чём код?
:root { --primary-color: #0056b3; --secondary-color: #003366; --accent-color: #ffcc00; --text-color: #333; --light-color: #f8f9fa; --dark-color: #212529; --chat-user-bg: #e3f2fd; --chat-admin-bg: #f1f1f1; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Roboto', sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--light-color); display: flex; flex-direction: column; min-height: 100vh; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; } .header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; padding: 20px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 1000; } .header-logo { height: 60px; margin-right: 20px; } .header-content { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px 0; } .header-content { display: flex; justify-content: center; align-items: center; text-align: center; padding: 20px 0; } .header-title { font-size: 2rem; line-height: 1.2; margin: 0; padding: 0; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); } .nav-list { display: flex; justify-content: center; list-style: none; margin-top: 15px; flex-wrap: wrap; } .nav-item { margin: 0 15px; } .nav-link { color: white; text-decoration: none; font-weight: 500; padding: 8px 15px; border-radius: 4px; transition: all 0.3s ease; display: inline-block; } .nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); } .main { flex: 1; } .section { padding: 50px 0; } .section-title { text-align: center; margin-bottom: 30px; color: var(--secondary-color); position: relative; padding-bottom: 15px; } .section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--accent-color); } .hero-section { background: url('police-building.jpg') no-repeat center center; background-size: cover; color: white; text-align: center; position: relative; min-height: 400px; display: flex; align-items: center; } .hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 56, 102, 0.7); } .hero-content { position: relative; z-index: 1; width: 100%; } .hero-title { font-size: 2.5rem; margin-bottom: 20px; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); } .hero-text { font-size: 1.2rem; max-width: 800px; margin: 0 auto; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); } .quick-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; } .quick-link-card { background: white; padding: 25px 15px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); text-align: center; transition: all 0.3s ease; color: var(--secondary-color); text-decoration: none; display: flex; flex-direction: column; align-items: center; } .quick-link-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); } .quick-link-card i { font-size: 2rem; margin-bottom: 15px; color: var(--primary-color); } .about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } .about-text { flex: 1; font-size: 1.1rem; line-height: 1.8; } .about-list { margin: 20px 0; padding-left: 20px; } .about-list li { margin-bottom: 10px; } .about-image { display: flex; justify-content: center; align-items: center; } .about-image img { max-height: 400px; width: auto; } .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .service-card { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease; } .service-card:hover { transform: translateY(-5px); } .service-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; } .contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; } .contact-card { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); text-align: center; } .contact-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 15px; } .map-container { margin-top: 30px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .img-responsive { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); display: block; } .chat-container { background: white; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); padding: 20px; max-width: 800px; margin: 0 auto; } .chat-messages { height: 300px; overflow-y: auto; margin-bottom: 20px; padding: 15px; border: 1px solid #eee; border-radius: 4px; } .chat-message { margin-bottom: 15px; padding: 10px 15px; border-radius: 18px; max-width: 80%; } .user-message { background: var(--chat-user-bg); margin-left: auto; margin-right: 0; text-align: right; } .admin-message { background: var(--chat-admin-bg); margin-right: auto; margin-left: 0; } .chat-input { display: flex; gap: 10px; } .chat-input input { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; } .chat-input button { background: var(--primary-color); color: white; border: none; border-radius: 4px; padding: 0 20px; cursor: pointer; transition: background 0.3s; } .chat-input button:hover { background: var(--secondary-color); } .chat-notice { font-size: 0.9rem; color: #666; text-align: center; margin-top: 15px; } .footer { background: var(--secondary-color); color: white; padding: 20px 0; text-align: center; margin-top: auto; } @media (max-width: 768px) { .header-title { font-size: 1.5rem; } .about-content { flex-direction: column; } .nav-list { flex-direction: column; align-items: center; } .nav-item { margin: 5px 0; } .hero-title { font-size: 2rem; } .quick-links-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 768px) { .about-content { grid-template-columns: 1fr; } .header-content { flex-direction: column; } .header-logo { margin-right: 0; margin-bottom: 15px; } .chat-message { max-width: 90%; } }