/
oks14
/
cdg_practice
Обзор
Документация
Войти
/
oks14
/
cdg_practice
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
Lab_rework
styles.css
393 строки
8 KB
Андрей Таратайцев
added corrections due to comments
15 дек 2025, 17:47
15 дек 2025, 17:47
defe8f7
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background: #f8f9fa; color: #333; line-height: 1.6; scroll-behavior: smooth; } .container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .header { background: white; padding: 20px 0; box-shadow: 0 2px 15px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.3s ease; } .header.scrolled { padding: 15px 0; box-shadow: 0 3px 20px rgba(0,0,0,0.15); } .header-content { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 24px; font-weight: 700; color: #2c3e50; } .nav a { margin-left: 30px; text-decoration: none; color: #555; font-weight: 500; font-size: 16px; transition: color 0.3s; position: relative; } .nav a:hover { color: #3498db; } .nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: #3498db; transition: width 0.3s; } .nav a:hover::after { width: 100%; } .hero { padding: 140px 0 80px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; opacity: 0; transform: translateY(20px); animation: fadeInUp 1s forwards; animation-delay: 0.3s; } .hero-content { display: flex; align-items: center; justify-content: space-between; gap: 60px; } .hero-text { flex: 1; } .hero-image { flex: 0 0 350px; display: flex; justify-content: center; } .hero-photo { width: 350px; height: 350px; border-radius: 20px; object-fit: cover; border: 5px solid rgba(255, 255, 255, 0.3); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); transition: all 0.5s ease; } .hero-photo:hover { transform: translateY(-10px) rotate(2deg); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.5); } .hero h1 { font-size: 48px; margin-bottom: 20px; font-weight: 700; } .hero p { font-size: 20px; margin-bottom: 30px; opacity: 0.95; line-height: 1.7; } section { padding: 80px 0; background: white; margin: 30px 0; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); opacity: 0; transform: translateY(30px); transition: all 0.8s ease; } section.visible { opacity: 1; transform: translateY(0); } section h2 { font-size: 36px; color: #2c3e50; margin-bottom: 30px; text-align: center; position: relative; padding-bottom: 15px; } section h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: #3498db; } .about-content { max-width: 800px; margin: 0 auto; font-size: 18px; line-height: 1.8; color: #555; text-align: center; } .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; } .skill-card { background: #f8f9fa; padding: 40px 20px; border-radius: 12px; text-align: center; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; } .skill-card:hover { transform: translateY(-10px); border-color: #3498db; box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2); background: white; } .skill-card h3 { font-size: 24px; color: #2c3e50; margin-bottom: 15px; } .skill-card p { color: #666; line-height: 1.6; } .contact-form { max-width: 600px; margin: 40px auto 0; } .contact-form label { display: block; font-weight: 600; margin: 20px 0 8px; color: #2c3e50; font-size: 16px; } .contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 16px; transition: all 0.3s; background: #f8f9fa; } .contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #3498db; background: white; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); } .contact-form textarea { min-height: 150px; resize: vertical; } .btn { display: inline-block; background: #3498db; color: white; padding: 15px 40px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; border: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); } .btn:hover { background: #2980b9; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4); } .footer { background: #2c3e50; color: white; padding: 60px 0 30px; text-align: center; } .footer-content { margin-bottom: 40px; } .footer-content p { font-size: 18px; margin: 10px 0; opacity: 0.9; } .copyright { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #bdc3c7; font-size: 14px; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 1024px) { .hero-content { gap: 40px; } .hero-photo { width: 300px; height: 300px; } .hero h1 { font-size: 40px; } } @media (max-width: 768px) { .header-content { flex-direction: column; text-align: center; gap: 15px; } .nav { margin-top: 10px; } .nav a { margin: 0 10px; } .hero-content { flex-direction: column; text-align: center; gap: 40px; } .hero-text { order: 2; } .hero-image { order: 1; flex: 0 0 auto; } .hero-photo { width: 250px; height: 250px; } .hero h1 { font-size: 36px; } .hero p { font-size: 18px; } section { padding: 60px 0; margin: 20px 0; } section h2 { font-size: 28px; } } @media (max-width: 480px) { .container { padding: 0 15px; } .skills-grid { grid-template-columns: 1fr; } .hero { padding: 120px 0 60px; } .hero-photo { width: 220px; height: 220px; } }