/* Общие стили */ :root { --primary-color: #2c7be5; --secondary-color: #4e73df; --dark-color: #2d3748; --light-color: #f7fafc; --success-color: #48bb78; --danger-color: #e53e3e; --warning-color: #ed8936; --gray-color: #a0aec0; --white: #ffffff; --black: #000000; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: var(--light-color); color: var(--dark-color); line-height: 1.6; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; } .btn-primary { background-color: var(--primary-color); color: var(--white); } .btn-primary:hover { background-color: #1a68d1; } .btn-large { padding: 12px 24px; font-size: 18px; } /* Шапка */ header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 100; } .logo-container { display: flex; align-items: center; gap: 10px; } .logo { height: 50px; width: auto; } header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; } .main-nav ul { display: flex; list-style: none; gap: 20px; } .main-nav a { text-decoration: none; color: var(--dark-color); font-weight: 600; padding: 5px 10px; border-radius: 5px; transition: all 0.3s ease; } .main-nav a:hover, .main-nav a.active { color: var(--primary-color); background-color: rgba(44, 123, 229, 0.1); } .auth-buttons { display: flex; gap: 10px; } .mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark-color); } /* Герой-секция */ .hero { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: var(--white); padding: 80px 0; text-align: center; } .hero h2 { font-size: 2.5rem; margin-bottom: 20px; } .hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; } /* Решенные проблемы */ .solved-problems { padding: 60px 0; } .solved-problems h2 { text-align: center; margin-bottom: 40px; font-size: 2rem; } .problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; } .problem-card { background-color: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; } .problem-card:hover { transform: translateY(-5px); } .problem-images { position: relative; height: 200px; } .problem-images img { width: 100%; height: 100%; object-fit: cover; } .problem-images .before { position: absolute; width: 50%; height: 100%; left: 0; border-right: 2px solid var(--white); } .problem-images .after { position: absolute; width: 50%; height: 100%; right: 0; } .problem-info { padding: 20px; } .problem-info .date { display: block; color: var(--gray-color); font-size: 0.9rem; margin-bottom: 10px; } .problem-info h3 { margin-bottom: 10px; font-size: 1.2rem; } .problem-info .category { display: inline-block; background-color: rgba(44, 123, 229, 0.1); color: var(--primary-color); padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; } /* Модальные окна */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; overflow-y: auto; } .modal-content { background-color: var(--white); margin: 5% auto; padding: 30px; border-radius: 10px; width: 90%; max-width: 500px; position: relative; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); } .modal h2 { margin-bottom: 20px; text-align: center; } .close { position: absolute; top: 15px; right: 15px; font-size: 24px; cursor: pointer; color: var(--gray-color); transition: color 0.3s ease; } .close:hover { color: var(--dark-color); } /* Формы */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; transition: border-color 0.3s ease; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary-color); outline: none; } .form-group textarea { resize: vertical; min-height: 100px; } .checkbox { display: flex; align-items: center; } .checkbox input { width: auto; margin-right: 10px; } /* Личный кабинет */ .user-info { display: flex; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; } .avatar { font-size: 50px; color: var(--gray-color); margin-right: 20px; } .info h3 { margin-bottom: 5px; } .tabs { display: flex; border-bottom: 1px solid #eee; margin-bottom: 20px; } .tab-btn { padding: 10px 20px; background: none; border: none; cursor: pointer; font-weight: 600; color: var(--gray-color); position: relative; } .tab-btn.active { color: var(--primary-color); } .tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); } .tab-content { display: none; } .tab-content.active { display: block; } .request-list { max-height: 400px; overflow-y: auto; } .request-item { background-color: #f9f9f9; border-radius: 5px; padding: 15px; margin-bottom: 15px; } .request-header { display: flex; justify-content: space-between; margin-bottom: 10px; } .request-header .date { color: var(--gray-color); font-size: 0.9rem; } .status { font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; } .status.new { background-color: rgba(237, 137, 54, 0.1); color: var(--warning-color); } .status.resolved { background-color: rgba(72, 187, 120, 0.1); color: var(--success-color); } .status.rejected { background-color: rgba(229, 62, 62, 0.1); color: var(--danger-color); } .request-item h3 { margin-bottom: 5px; font-size: 1.1rem; } .request-item p { margin-bottom: 10px; color: #555; } /* Подвал */ footer { background-color: var(--dark-color); color: var(--white); padding: 50px 0 20px; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; } .footer-section h3 { margin-bottom: 20px; font-size: 1.2rem; } .footer-section p { margin-bottom: 10px; color: #ddd; } .copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #aaa; font-size: 0.9rem; } /* Адаптивность */ @media (max-width: 992px) { .main-nav { display: none; } .auth-buttons { display: none; } .mobile-menu-btn { display: block; } .hero h2 { font-size: 2rem; } } @media (max-width: 768px) { .hero { padding: 60px 0; } .hero h2 { font-size: 1.8rem; } .hero p { font-size: 1rem; } .modal-content { margin: 20px auto; padding: 20px; } } @media (max-width: 576px) { .container { padding: 0 15px; } .logo-container h1 { font-size: 1.5rem; } .hero { padding: 50px 0; } .hero h2 { font-size: 1.5rem; } .btn { padding: 8px 16px; font-size: 14px; } .btn-large { padding: 10px 20px; font-size: 16px; } .problem-card { max-width: 100%; } .user-info { flex-direction: column; text-align: center; } .avatar { margin-right: 0; margin-bottom: 15px; } .tabs { justify-content: center; } }