.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    text-align: center;
    margin-bottom: 40px;
    color: #988A81;
    weight: 400;
    font-size: 42px;
    flex: content;
    width: auto;
    margin: 0.5em;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 20px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.service-description {
    color: #525252;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.service-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #B03B29;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
}

.service-button:hover {
    background-color: #8a2e1f; /* Темнее на 15% */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 59, 41, 0.3);
}

.container_h1 {
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.services-container div.item {
    flex: auto;
    background-color: #988A81;
    height: 2px;
}

.t823__descr p[style*="text-align: left"] {
    position: relative;
    padding-left: 25px !important;
}

.t823__descr p[style*="text-align: left"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 17px;
    background-image: url("data:image/svg+xml,%3Csvg width='15' height='17' viewBox='0 0 15 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 8.63492C2.27941 8.54497 6.92647 6.69206 7.27941 0C7.72059 2.87831 9.88235 8.63492 15 8.63492C12.538 8.97912 7.92259 11.3813 7.52717 16.314C7.53723 16.562 7.52738 16.7922 7.5 17C7.5 16.7661 7.50925 16.5375 7.52717 16.314C7.43264 13.9857 5.582 10.0981 0 8.63492Z' fill='%23B03B29'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.social-icons-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}
  
.social-icon-link {
    display: inline-block;
    width: 43px;
    height: 43px;
    transition: transform 0.3s ease;
}
  
.social-icon-link:hover {
    transform: scale(1.1);
}

.footer {
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    width: 100%;
    margin-bottom: 40px;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer-links {
    list-style: none;
    padding-left: 0px !important;
}


.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #FFFFFF !important;
    font-size: 14px !important;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #333;
}

.footer-info {
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.6;
}

.footer-column:has(.contact-block) .footer-title {
    margin-bottom: 5px;
}

/* Стили для телефона и соцсетей */
.phone-social-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Стили для кнопки */
.appointment-button {
    margin-top: 20px;
}

.btn-appointment {
    background-color: #B03B29;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-appointment:hover {
    background-color: #9a3323;
}

/* Стили для предупреждающей надписи */
.footer-warning {
    color: #FFFFFF;
    font-size: 24px;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    max-width: 100%;
}

/* Стили для нижних колонок */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px 0;
    flex-wrap: wrap;
}

.footer-bottom-left {
    text-align: left;
    flex: 1;
    min-width: 300px;
}

.footer-bottom-right {
    text-align: right;
    flex: 1;
    min-width: 300px;
}

.footer-bottom-text {
    font-size: 12px;
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-bottom-link {
    color: #FFFFFF !important;
    text-decoration: underline !important;
    transition: color 0.3s;
}

.footer-bottom-link:hover {
    color: #333;
}


@media (max-width:1200px) {
    .uc-404_block .t-text.t-text_md {
        font-size: 22px !important;
        font-weight: 700 !important;
    }
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
            
    .service-image {
        height: 180px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
            
    .footer-column {
        text-align: center;
    }
    .phone-social-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-warning {
        font-size: 18px;
        padding: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        text-align: center;
    }
    
    .footer-links a,
    .footer-info {
        padding-left: 0;
    }
}

