/
RHAK83
/
Portfolio
Обзор
Документация
Войти
/
RHAK83
/
Portfolio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
css/style.css
603 строки
10 KB
RHAK83
Загрузить файлы в «»
18 дек 2025, 11:41
18 дек 2025, 11:41
ced9db7
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #4361ee; --secondary-color: #3a0ca3; --accent-color: #4cc9f0; --dark-color: #212529; --light-color: #f8f9fa; --gray-color: #6c757d; --success-color: #4bb543; --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); --transition: all 0.3s ease; } html { scroll-behavior: smooth; } body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--dark-color); background-color: #fff; overflow-x: hidden; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } h1, h2, h3 { font-weight: 600; line-height: 1.2; } h1 { font-size: 3rem; margin-bottom: 1rem; } h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; position: relative; } h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--primary-color); } h3 { font-size: 1.5rem; margin-bottom: 1rem; } p { margin-bottom: 1rem; } a { text-decoration: none; color: inherit; transition: var(--transition); } .btn { display: inline-block; background-color: var(--primary-color); color: white; padding: 12px 30px; border-radius: 30px; font-weight: 500; border: none; cursor: pointer; transition: var(--transition); text-align: center; } .btn:hover { background-color: var(--secondary-color); transform: translateY(-3px); box-shadow: var(--shadow); } .section { padding: 80px 0; } .section-title { margin-bottom: 50px; } .header { background-color: white; box-shadow: var(--shadow); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; } .header-content { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; } .logo { font-size: 1.8rem; font-weight: 600; color: var(--primary-color); } .nav-list { display: flex; list-style: none; } .nav-list li { margin-left: 30px; } .nav-list a { font-weight: 500; position: relative; } .nav-list a:hover { color: var(--primary-color); } .nav-list a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: var(--transition); } .nav-list a:hover::after { width: 100%; } .burger-menu { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; } .burger-menu span { display: block; height: 3px; width: 100%; background-color: var(--dark-color); transition: var(--transition); } .hero { padding-top: 140px; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); overflow: hidden; } .hero .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; } .hero-content { flex: 1; min-width: 300px; padding-right: 30px; } .hero-title { font-size: 3.5rem; color: var(--dark-color); } .hero-subtitle { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 20px; font-family: 'Roboto Mono', monospace; } .hero-text { font-size: 1.1rem; margin-bottom: 30px; color: var(--gray-color); } .hero-image { flex: 1; min-width: 300px; text-align: center; } .avatar { width: 300px; height: 300px; border-radius: 50%; object-fit: cover; border: 5px solid white; box-shadow: var(--shadow); animation: float 3s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } } .about-content { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; } .about-text { flex: 2; min-width: 300px; } .about-info { flex: 1; min-width: 250px; background-color: var(--light-color); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); } .about-info ul { list-style: none; } .about-info li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; } .about-info li:last-child { margin-bottom: 0; border-bottom: none; } .skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; } .skill-category { background-color: white; padding: 30px; border-radius: 10px; box-shadow: var(--shadow); transition: var(--transition); } .skill-category:hover { transform: translateY(-10px); } .skill-category h3 { color: var(--primary-color); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee; } .skill-category ul { list-style-position: inside; } .skill-category li { margin-bottom: 10px; padding-left: 10px; } .education-timeline { max-width: 800px; margin: 0 auto; } .education-item { display: flex; margin-bottom: 40px; position: relative; } .education-item:last-child { margin-bottom: 0; } .education-item::before { content: ''; position: absolute; left: 110px; top: 0; bottom: -40px; width: 2px; background-color: #eee; } .education-item:last-child::before { bottom: 0; } .education-year { width: 100px; font-weight: 600; color: var(--primary-color); padding-right: 20px; position: relative; } .education-year::after { content: ''; position: absolute; right: -6px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background-color: var(--primary-color); z-index: 1; } .education-content { flex: 1; padding-left: 30px; } .education-specialty { color: var(--gray-color); font-style: italic; margin-bottom: 10px; } /* Секция "Контакты" */ .contact-content { display: flex; flex-wrap: wrap; gap: 50px; } .contact-info, .contact-form { flex: 1; min-width: 300px; } .contact-list { list-style: none; margin: 25px 0; } .contact-list li { display: flex; align-items: center; margin-bottom: 20px; } .contact-list i { width: 40px; height: 40px; background-color: var(--light-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; color: var(--primary-color); } .social-links { display: flex; gap: 15px; } .social-links a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background-color: var(--light-color); border-radius: 50%; color: var(--dark-color); font-size: 1.2rem; transition: var(--transition); } .social-links a:hover { background-color: var(--primary-color); color: white; transform: translateY(-5px); } .contact-form { background-color: white; padding: 30px; border-radius: 10px; box-shadow: var(--shadow); } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; } .form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-family: 'Inter', sans-serif; transition: var(--transition); } .form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; } .footer { background-color: var(--dark-color); color: white; padding: 40px 0; text-align: center; } .footer-content { display: flex; flex-direction: column; align-items: center; } .footer-logo { font-size: 1.8rem; font-weight: 600; color: white; margin-bottom: 20px; } .footer-text { color: #aaa; margin-bottom: 10px; } .back-to-top { margin-top: 20px; color: var(--accent-color); display: inline-flex; align-items: center; } .back-to-top i { margin-left: 8px; } @media (max-width: 992px) { h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } .hero .container { flex-direction: column; text-align: center; } .hero-content { padding-right: 0; margin-bottom: 40px; } .education-item::before { left: 90px; } .education-year { width: 80px; } } @media (max-width: 768px) { .nav-list { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: white; flex-direction: column; padding: 20px; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); } .nav-list.active { display: flex; } .nav-list li { margin: 10px 0; } .burger-menu { display: flex; } .burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); } .burger-menu.active span:nth-child(2) { opacity: 0; } .burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); } .education-item { flex-direction: column; } .education-item::before { left: 20px; top: 30px; bottom: -40px; } .education-year { width: 100%; padding-right: 0; margin-bottom: 10px; padding-left: 35px; } .education-year::after { left: 0; right: auto; } .education-content { padding-left: 35px; } } @media (max-width: 576px) { .container { padding: 0 15px; } .section { padding: 60px 0; } .projects-grid { grid-template-columns: 1fr; } .skills-grid { grid-template-columns: 1fr; } }