body {
    font-family: 'Helvetica', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background: #ffffff;
}
.location {
    display: flex;
}
.location-img {
    margin: 2px;
}
.top-bar {
    background: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    position: relative;
    text-align: center;
}
.top-bar img {
    max-height: 35px;
}
.top-bar .menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    
}
.top-bar .menu a {
    margin-top: 2px;
    margin-right: 5px;
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.3s, color 0.3s;
}
.top-bar .menu a:hover {
    background: #42424242;
    color: #fff;
}
.top-bar .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    
}
.top-bar .social-links a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}
.top-bar .menu a:hover, .top-bar .social-links a:hover {
    text-decoration: underline;
}
header {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
}
header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 600;
}
header p {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 300;
}
section {
    padding: 2rem 1rem;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
	
}
.container li{
	display: inline;
}
		
.services, .contacts {
    background: #fff;
    padding: 2rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}
.service-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}
.service-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-left: 1rem;
    border-radius: 8px;
}
.service-item h3 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}
.cta {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 8px;
    margin: 2rem auto;
}
.cta a {
    background: #fff;
    color: #000;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
}
.cta a:hover {
    background: #000;
    color: #fff;
}
footer {
    background: #000;
    color: #aaa;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}
ul {
    list-style: none;
    padding: 0;
}
ul li {
    margin-bottom: 0.5rem;
}


@media (max-width: 768px) {
    .top-bar {
        flex-direction: column; /* Размещаем элементы вертикально */
        align-items: center;    /* Центрируем элементы */
        text-align: center;
    }
    .top-bar img {
        margin-bottom: 0.5rem; /* Отступ для лого */
    }
    .menu, .social-links {
        flex-direction: column; /* Ссылки вертикально */
        margin: 0.5rem 0;
    }
    .menu a, .social-links a {
        margin: 0.5rem 0; /* Отступы между ссылками */
    }
    /* Изменения, чтобы предотвратить перекрытие */
    .menu {
        margin-top: 1rem; /* Отступ сверху для меню */
        width: 100%; /* Разрешаем меню занимать всю ширину */
        justify-content: space-evenly; /* Расставляем элементы по ширине */
    }
    .social-links {
       
    }
    .service-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .service-item img {
        margin: 0 0 1rem 0;
        ::max-width: 100%;
    }
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    .cta {
        padding: 1.5rem 1rem;
    }
    footer {
        font-size: 0.8rem;
        padding: 1rem 0;
    }
	
}
