/* Основные стили */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* Шапка */ header { background: linear-gradient(90deg, #2c3e50, #4a6491); background-image: url('../images/header-bg.jpg'); /* Фоновое изображение */ background-size: cover; background-position: center; background-blend-mode: overlay; color: white; padding: 2rem 0; text-align: center; border-radius: 0 0 20px 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); margin-bottom: 2rem; position: relative; } header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(44, 62, 80, 0.85); border-radius: 0 0 20px 20px; z-index: 1; } header .container { position: relative; z-index: 2; } header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); } header p { font-size: 1.2rem; opacity: 0.9; } /* Секции */ .section { background: white; border-radius: 15px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.08); } .section-title { color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 0.5rem; margin-bottom: 1.5rem; font-size: 1.8rem; } /* Контакты */ .contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1rem; } .contact-item { background: #f8f9fa; padding: 1.5rem; border-radius: 10px; border-left: 4px solid #3498db; transition: transform 0.3s ease, box-shadow 0.3s ease; } .contact-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); } .contact-item i { font-size: 1.5rem; color: #3498db; margin-bottom: 0.8rem; display: inline-block; } .contact-item h3 { color: #2c3e50; margin-bottom: 0.5rem; font-size: 1.2rem; } /* Галерея проектов */ .projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; margin-top: 1rem; } .project-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: all 0.3s ease; border: 1px solid #eaeaea; } .project-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.15); transform: translateY(-5px); } .project-images { height: 200px; overflow: hidden; position: relative; cursor: pointer; } .project-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .project-card:hover .project-image { transform: scale(1.05); } .project-content { padding: 1.5rem; } .project-title { color: #2c3e50; font-size: 1.3rem; margin-bottom: 0.8rem; font-weight: 600; } .project-description { color: #666; font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; } .image-counter { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); color: white; padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; z-index: 2; } /* Миниатюры */ .thumbnails { display: flex; gap: 10px; margin-top: 10px; } .thumbnail { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; border: 2px solid #ddd; cursor: pointer; transition: all 0.3s ease; } .thumbnail:hover { border-color: #3498db; transform: scale(1.1); } /* Технологии */ .project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .tech-tag { background: #e3f2fd; color: #1976d2; padding: 4px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: 500; } /* Ссылки проекта */ .project-links { margin-top: 15px; } .project-link { display: inline-block; background: #3498db; color: white; padding: 8px 15px; border-radius: 5px; text-decoration: none; font-size: 0.9rem; transition: background 0.3s ease; } .project-link:hover { background: #2980b9; } /* Обо мне */ .about-section { background-image: url('../images/about-bg.jpg'); background-size: cover; background-position: center; background-blend-mode: overlay; background-color: rgba(255,255,255,0.9); position: relative; } .about-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.9); border-radius: 15px; z-index: 1; } .about-section .section-title, .about-section .about-content { position: relative; z-index: 2; } /* Иконки */ .icon { display: inline-block; width: 24px; height: 24px; margin-right: 10px; vertical-align: middle; } .icon-email::before { content: "✉️"; } .icon-phone::before { content: "📱"; } .icon-location::before { content: "📍"; } .icon-web::before { content: "🌐"; } /* Футер */ footer { text-align: center; padding: 2rem; margin-top: 3rem; background: #2c3e50; color: white; border-radius: 20px 20px 0 0; } .footer-logo { margin-bottom: 1rem; filter: brightness(0) invert(1); } .social-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; } .social-links a { color: white; text-decoration: none; padding: 0.5rem 1rem; background: rgba(255,255,255,0.1); border-radius: 8px; transition: background 0.3s ease; display: flex; align-items: center; gap: 8px; } .social-links a:hover { background: rgba(255,255,255,0.2); } .social-links img { vertical-align: middle; } /* Адаптивность */ @media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } .contacts-grid { grid-template-columns: 1fr; } header h1 { font-size: 2rem; } .social-links { flex-direction: column; align-items: center; } .social-links a { width: 200px; justify-content: center; } } /* Анимация загрузки изображений */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .project-image { animation: fadeIn 0.5s ease; }