Загрузка данных
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
}
/* Шапка */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.header-left {
display: flex;
align-items: center;
gap: 10px;
}
.header-logo {
font-size: 24px;
font-weight: bold;
color: #2c3e50;
}
input[type="search"] {
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
.search-btn {
padding: 8px 16px;
background-color: #db9f1e;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.header-right {
display: flex;
gap: 20px;
color: #7f8c8d;
font-size: 14px;
}
.order-call {
color: #db9f1e;
text-decoration: underline;
}
nav ul {
display: flex;
list-style: none;
gap: 20px;
}
nav ul li a {
text-decoration: none;
color: #2c3e50;
transition: color 0.3s;
}
nav ul li a:hover {
color: #e74c3c;
}
/* Баннер с фоновым изображением */
.banner {
background: url('000.jpg') center/cover no-repeat;
padding: 100px 0;
text-align: center;
color: #fff;
position: relative;
min-height: 400px;
display: flex;
align-items: center;
justify-content: center;
}
.banner::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
/* затемнение фона */
z-index: 1;
}
.banner h1 {
font-size: 36px;
margin-bottom: 20px;
z-index: 2;
position: relative;
max-width: 800px;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
/* Услуги — три блока по центру */
.services {
padding: 50px 0;
background-color: #f9f9f9;
}
.services-container {
display: flex;
justify-content: space-between;
gap: 20px;
}
.service-card {
width: calc(33.33% - 20px);
/* Для равномерного распределения */
background-color: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.service-header {
background-color: #db9f1e;
color: #fff;
padding: 15px;
text-align: center;
font-size: 18px;
font-weight: bold;
}
.service-body {
padding: 20px;
text-align: center;
}
.service-body img {
width: 100%;
height: auto;
margin-bottom: 15px;
}
.service-body p {
color: #7f8c8d;
line-height: 1.4;
margin-bottom: 15px;
}
.btn-more {
display: inline-block;
padding: 10px 20px;
background-color: transparent;
color: #db9f1e;
text-decoration: none;
border: 2px solid #db9f1e;
border-radius: 5px;
transition: background-color 0.3s, color 0.3s;
}
.btn-more:hover {
background-color: #db9f1e;
color: #fff;
}
.view-all-services {
text-align: center;
margin-top: 30px;
}
.main-btn {
display: inline-block;
padding: 12px 30px;
background-color: #e67e22;
color: #fff;
text-decoration: none;
border-radius: 6px;
font-size: 16px;
font-weight: bold;
transition: background-color 0.3s;
}
.main-btn:hover {
background-color: #d35400;
}
/* О компании (About) */
.about {
padding: 50px 0;
background-color: #f9f9f9;
}
.about h2 {
text-align: center;
margin-bottom: 30px;
color: #2c3e50;
font-size: 24px;
}
.about p {
text-align: justify;
padding: 0 30px;
color: #7f8c8d;
line-height: 1.6;
}
/* Наши объекты (Objects) */
.our-objects {
padding: 40px 0;
}
.object-row {
display: flex;
justify-content: space-between;
margin-bottom: 40px;
}
.object-col {
width: calc(50% - 20px);
/* Оставляем пространство между колонками */
}
.object-card {
display: flex;
flex-direction: row;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.card-content {
padding: 20px;
background-color: rgba(255, 255, 255, 0.9);
width: 40%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.object-card img {
width: 60%;
object-fit: cover;
}
button {
background-color: #FFD700;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
margin-top: auto;
}
.news-section {
padding: 50px 0;
background-color: #f9f9f9;
}
.news-section h2 {
text-align: center;
font-size: 24px;
margin-bottom: 30px;
}
.news-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
justify-items: center;
}
.news-item figure {
width: 250px;
text-align: center;
}
.news-item figcaption {
font-size: 14px;
line-height: 1.4;
margin-top: 10px;
}
.news-item small {
font-size: 12px;
color: #777;
}
.news-view-all {
text-align: center;
margin-top: 30px;
}
.btn-yellow {
display: inline-block;
padding: 10px 20px;
background-color: #db9f1e;
color: #fff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
}
.btn-yellow:hover {
background-color: #cc881a;
}
.consultation-section {
padding: 50px 0;
background-image: linear-gradient(to right, #e08e21, #db991f);
color: #fff;
text-align: center;
}
.consultation-content h2 {
font-size: 24px;
margin-bottom: 20px;
}
.consultation-content p {
font-size: 16px;
margin-bottom: 30px;
}
.consultation-content .btn-yellow {
background-color: #e67e22;
}
.consultation-content .btn-yellow:hover {
background-color: #d35400;
}
footer {
padding: 30px 0;
background-color: #2c3e50;
color: #fff;
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
.footer-logo {
font-size: 20px;
font-weight: bold;
}
.footer-menu ul {
list-style-type: none;
display: flex;
gap: 20px;
}
.footer-menu ul li a {
color: #fff;
text-decoration: none;
transition: color 0.3s;
}
.footer-menu ul li a:hover {
color: #ffd700;
}
.social-icons {
display: flex;
gap: 15px;
}
.icon {
color: #fff;
font-size: 20px;
transition: color 0.3s;
}
.icon:hover {
color: #ffd700;
}
.copyright {
text-align: center;
font-size: 12px;
margin-top: 20px;
}
/* Адаптивные стили */
@media (max-width: 768px) {
.services-container {
flex-direction: column;
align-items: center;
}
.service-card {
width: 100%;
margin-bottom: 20px;
}
}