ready-coder-ninja / style.css
Roman125orlov's picture
Сделай сайт про крым
3832349 verified
Raw History Blame Contribute Delete
2.28 kB
:root {
--primary: #1e40af;
--primary-dark: #1e3a8a;
--secondary: #93c5fd;
--text: #1f2937;
--text-light: #6b7280;
--white: #ffffff;
}
body {
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
color: var(--text);
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.hero {
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url('http://static.photos/travel/1200x630/10');
background-size: cover;
background-position: center;
height: 80vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: var(--white);
}
.hero-content h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.hero-content p {
font-size: 1.5rem;
margin-bottom: 2rem;
}
.btn {
display: inline-block;
background: var(--primary);
color: var(--white);
padding: 0.8rem 1.8rem;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
}
.btn:hover {
background: var(--primary-dark);
transform: translateY(-3px);
}
section {
padding: 4rem 0;
}
h2 {
text-align: center;
font-size: 2rem;
margin-bottom: 3rem;
color: var(--primary-dark);
}
.about {
background: #f9fafb;
}
.places-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.place-card {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.place-card:hover {
transform: translateY(-5px);
}
.place-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.place-card h3 {
margin: 1rem;
color: var(--primary);
}
.place-card p {
margin: 0 1rem 1rem;
color: var(--text-light);
}
.facts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.fact-card {
text-align: center;
padding: 2rem;
border-radius: 8px;
background: #f9fafb;
}
.fact-card i {
font-size: 3rem;
color: var(--primary);
margin-bottom: 1rem;
}
.fact-card h3 {
margin-bottom: 0.5rem;
color: var(--primary-dark);
}
@media (max-width: 768px) {
.hero-content h1 {
font-size: 2rem;
}
.hero-content p {
font-size: 1.2rem;
}
}