body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.hero {
    background-image: url('/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    color: #f4f4f4;
    top: 50%;
    transform: translateY(-50%);
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.scroll-to-sales {
    background-color: #54717e;
    color: #f4f4f4;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 18px;
    display: block;
    margin: 20px auto 0;
    width: 100%;
    max-width: 300px;
}

.scroll-to-sales:hover {
    background-color: #3a4b5c;
}

.content {
    padding: 20px;
}

.services {
    margin-top: 30px;
}

.services h2, .sales h2 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.service-category {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.service-card {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 calc(20% - 20px);
    max-width: calc(20% - 20px);
    box-sizing: border-box;
    text-decoration: none;
    color: #333;
    overflow: hidden;
    margin-bottom: 20px; /* Отступ снизу для каждой карточки */
}

.service-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.service-card h4,
.service-card p {
    font-size: 16px;
    margin: 10px 0;
    text-decoration: none;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

.service-card a {
    text-decoration: none;
    color: #54717e;
}

.service-card a:hover {
    color: #3a4b5c;
}

.sales {
    background-color: #6a8797;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    color: #f4f4f4;
    max-width: 800px;
    margin: 0 auto;
}

.sales .sales-block {
    background-color: #54717e;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sales p {
    font-size: 18px;
    margin-bottom: 20px;
}

.sales .promo {
    font-size: 20px;
    font-weight: bold;
    color: #f4f4f4;
}

.sales .procedures {
    margin-top: 20px;
}

.sales .procedures p {
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .service-card {
        flex: 1 1 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    }
}

@media (max-width: 900px) {
    .service-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
	.services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 10px;
        padding-right: 10px;
    }
    .service-card {
        flex: 0 0 240px;
        max-width: 240px;
		margin-right: 20px;
		scroll-snap-align: start;
        box-sizing: border-box;
        transition: transform 0.3s ease-in-out;
        margin-bottom: 20px; /* Отступ снизу для каждой карточки */
    }

    .service-card:first-child {
        margin-left: 10px;
    }

    .service-card:last-child {
        margin-right: 10px;
    }
}
