dev / styles.css
Aleksmorshen's picture
Update styles.css
e6a5726 verified
raw
history blame
4.8 kB
/* Общие стили */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
line-height: 1.6;
color: #1a1a1a;
background: #fff;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header */
.header {
position: fixed;
width: 100%;
background: #fff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
padding: 20px 0;
z-index: 1000;
transition: background 0.3s;
}
.header.scrolled {
background: #fff;
}
.header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo-img {
height: 50px;
width: auto;
}
.nav a {
color: #1a1a1a;
text-decoration: none;
margin-left: 30px;
font-weight: 600;
transition: color 0.3s;
}
.nav a:hover {
color: #ff6200;
}
.cta-btn {
padding: 12px 25px;
background: #ff6200;
border: none;
border-radius: 50px;
color: #fff;
font-weight: 600;
cursor: pointer;
transition: transform 0.3s, background 0.3s;
}
.cta-btn:hover {
transform: scale(1.05);
background: #e65c00;
}
/* Hero */
.hero {
height: 100vh;
background: linear-gradient(135deg, #ff6200 0%, #ff8c40 100%);
display: flex;
align-items: center;
text-align: center;
color: #fff;
position: relative;
overflow: hidden;
}
.hero-title {
font-size: clamp(2.5rem, 5vw, 4rem);
font-weight: 700;
margin-bottom: 20px;
animation: fadeInUp 1s ease-out;
}
.hero-subtitle {
font-size: clamp(1rem, 2vw, 1.5rem);
margin-bottom: 30px;
opacity: 0.9;
}
.hero-btn {
display: inline-block;
padding: 15px 30px;
background: #fff;
color: #ff6200;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
transition: background 0.3s, color 0.3s;
}
.hero-btn:hover {
background: #ff6200;
color: #fff;
}
/* Services */
.services {
padding: 80px 0;
background: #f9f9f9;
text-align: center;
}
.services h2 {
font-size: clamp(2rem, 3vw, 3rem);
margin-bottom: 50px;
color: #1a1a1a;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.service-card {
padding: 30px;
background: #fff;
border-radius: 15px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
transition: transform 0.4s ease, box-shadow 0.4s ease;
text-align: left;
}
.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.service-card h3 {
font-size: 1.5rem;
color: #ff6200;
margin-bottom: 15px;
}
.benefits {
list-style: none;
color: #333;
font-size: 0.95rem;
margin-top: 15px;
}
.benefits li {
margin-bottom: 10px;
}
/* Portfolio */
.portfolio {
padding: 80px 0;
background: #fff;
text-align: center;
}
.portfolio h2 {
font-size: clamp(2rem, 3vw, 3rem);
margin-bottom: 50px;
}
.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.portfolio-item {
height: 200px;
background: #f1f1f1;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
transition: background 0.3s;
}
.portfolio-item:hover {
background: #e0e0e0;
}
/* Contact */
.contact {
padding: 80px 0;
background: #ff6200;
color: #fff;
text-align: center;
}
.contact h2 {
font-size: clamp(2rem, 3vw, 3rem);
margin-bottom: 20px;
}
.contact-btn {
display: inline-block;
padding: 15px 30px;
background: #fff;
color: #ff6200;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
transition: background 0.3s, color 0.3s;
}
.contact-btn:hover {
background: #ff8c40;
color: #fff;
}
/* Footer */
.footer {
padding: 20px 0;
background: #1a1a1a;
color: #fff;
text-align: center;
}
/* Анимации */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(50px); }
to { opacity: 1; transform: translateY(0); }
}
.service-card, .portfolio-item {
opacity: 0;
transform: translateY(50px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.service-card.visible, .portfolio-item.visible {
opacity: 1;
transform: translateY(0);
}
/* Адаптивность */
@media (max-width: 768px) {
.header .container {
flex-direction: column;
gap: 20px;
}
.nav {
display: flex;
flex-direction: column;
text-align: center;
}
.nav a {
margin: 10px 0;
}
.hero-title {
font-size: 2rem;
}
.hero-subtitle {
font-size: 1rem;
}
.services-grid {
grid-template-columns: 1fr;
}
}