/
maaxutka
/
computer_wizard
Обзор
Документация
Войти
/
maaxutka
/
computer_wizard
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
554 строки
14 KB
maaxutka
create: js.js, style.css, index.html
12 май 2026, 20:49
Верифицирован
12 май 2026, 20:49
739a629
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } :root { --primary: #4a6fff; --primary-dark: #3a5ae0; --secondary: #ff6b6b; --dark: #2d3436; --light: #f9f9f9; --gray: #636e72; --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); } body { background-color: var(--light); color: var(--dark); overflow-x: hidden; line-height: 1.6; } .container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Header */ header { background: linear-gradient(135deg, var(--primary), var(--dark)); color: white; padding: 20px 0; position: fixed; width: 100%; z-index: 1000; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); transition: var(--transition); } .header-container { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; gap: 10px; transition: var(--transition); } .logo i { color: var(--secondary); } nav ul { display: flex; list-style: none; gap: 30px; } nav a { color: white; text-decoration: none; font-weight: 500; position: relative; padding: 5px 0; transition: var(--transition); } nav a:after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--secondary); transition: var(--transition); } nav a:hover:after { width: 100%; } .mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; } /* Hero section */ .hero { padding: 180px 0 100px; background: linear-gradient(rgba(45, 52, 54, 0.8), rgba(45, 52, 54, 0.9)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; color: white; text-align: center; overflow: hidden; } .hero-content { max-width: 800px; margin: 0 auto; transform: translateY(30px); opacity: 0; animation: fadeUp 1s forwards 0.3s; } .hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; } .hero p { font-size: 1.2rem; margin-bottom: 30px; color: #dfe6e9; } .btn { display: inline-block; background-color: var(--secondary); color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3); } .btn:hover { background-color: #ff5252; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4); } /* Services */ .services { padding: 100px 0; background-color: white; } .section-title { text-align: center; margin-bottom: 60px; position: relative; } .section-title h2 { font-size: 2.5rem; color: var(--dark); display: inline-block; position: relative; } .section-title h2:after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 70px; height: 4px; background-color: var(--secondary); } .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; } .service-card { background-color: white; border-radius: 10px; padding: 40px 30px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: var(--transition); border: 1px solid #f1f1f1; transform: translateY(20px); opacity: 0; } .service-card.visible { transform: translateY(0); opacity: 1; } .service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); } .service-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; } .service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--dark); } .service-card p { color: var(--gray); margin-bottom: 20px; } /* About */ .about { padding: 100px 0; background-color: #f5f7ff; } .about-content { display: flex; align-items: center; gap: 50px; } .about-text { flex: 1; transform: translateX(-30px); opacity: 0; transition: var(--transition) 0.3s; } .about-text.visible { transform: translateX(0); opacity: 1; } .about-text h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--dark); } .about-image { flex: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); transform: translateX(30px); opacity: 0; transition: var(--transition) 0.5s; } .about-image.visible { transform: translateX(0); opacity: 1; } .about-image img { width: 100%; height: auto; display: block; transition: var(--transition); } .about-image:hover img { transform: scale(1.05); } /* Process */ .process { padding: 100px 0; background-color: white; } .process-steps { display: flex; justify-content: space-between; margin-top: 50px; position: relative; } .process-steps:before { content: ''; position: absolute; top: 40px; left: 10%; right: 10%; height: 3px; background-color: var(--primary); z-index: 1; } .step { text-align: center; position: relative; z-index: 2; background-color: white; padding: 20px; width: 22%; transform: translateY(30px); opacity: 0; transition: var(--transition); } .step.visible { transform: translateY(0); opacity: 1; } .step-number { width: 80px; height: 80px; background-color: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; margin: 0 auto 20px; border: 5px solid white; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .step h3 { margin-bottom: 10px; color: var(--dark); } /* CTA */ .cta { padding: 100px 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; text-align: center; } .cta h2 { font-size: 2.5rem; margin-bottom: 20px; } .cta p { max-width: 700px; margin: 0 auto 40px; font-size: 1.1rem; opacity: 0.9; } .btn-light { background-color: white; color: var(--primary); } .btn-light:hover { background-color: #f0f0f0; color: var(--primary-dark); } /* Footer */ footer { background-color: var(--dark); color: white; padding: 70px 0 30px; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; } .footer-column h3 { font-size: 1.3rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; } .footer-column h3:after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background-color: var(--secondary); } .footer-links { list-style: none; } .footer-links li { margin-bottom: 10px; } .footer-links a { color: #b2bec3; text-decoration: none; transition: var(--transition); } .footer-links a:hover { color: white; padding-left: 5px; } .contact-info { display: flex; flex-direction: column; gap: 15px; } .contact-item { display: flex; align-items: center; gap: 10px; } .social-links { display: flex; gap: 15px; margin-top: 20px; } .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; color: white; transition: var(--transition); } .social-links a:hover { background-color: var(--secondary); transform: translateY(-3px); } .copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #b2bec3; font-size: 0.9rem; } /* Animations */ @keyframes fadeUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* Responsive */ @media (max-width: 992px) { .hero h1 { font-size: 2.8rem; } .about-content { flex-direction: column; } .process-steps { flex-wrap: wrap; justify-content: center; gap: 30px; } .process-steps:before { display: none; } .step { width: 45%; } } @media (max-width: 768px) { .mobile-menu-btn { display: block; } nav { position: fixed; top: 80px; left: 0; width: 100%; background-color: var(--dark); padding: 20px; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } nav.active { transform: translateY(0); opacity: 1; visibility: visible; } nav ul { flex-direction: column; gap: 20px; } .hero h1 { font-size: 2.2rem; } .step { width: 100%; } } @media (max-width: 576px) { .hero { padding: 150px 0 80px; } .hero h1 { font-size: 1.8rem; } .section-title h2 { font-size: 2rem; } }