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

.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;
    display: flex;
    flex-direction: column;
}

.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;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


.service-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #525252;
    font-family: TeX Gyre Adventor;
    font-weight: 700;
}

.service-description {
    color: #525252;
    font-size: 16px;
    flex-grow: 1;
    margin-bottom: 20px;
    font-family: Montserrat;
    font-weight: 400;
    flex-grow: 1;
    /* Стили для обрезания текста */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    line-height: 1.4;
    max-height: 5.6em;
    margin-top: auto;
}

.service-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #988A81;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
    cursor: pointer;
    font-weight: 400;
    text-align: center;
    font-family: TeX Gyre Adventor;
}

.service-button:hover {
    background-color: #B03B29; /* Темнее на 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-link:hover{
    transitiion-duration:0.2s;
    scale:1.05;
    color:#b03b29;
}

.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;
}

.column_main {
    font-family: TenorSans;
    font-weight: 400;
    font-size: 16px;
}

.footer-title {
    font-size: 14px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.73);
    font-family: TenorSans;
    font-weight: 400;
}

.footer-title_main {
    font-family: TenorSans;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 20px;
}

.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: 16px !important;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #b03b29 !important;
}

.footer-info {
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.6;
    font-family: TenorSans;
    font-weight: 400;
}

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

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

.footer-info-link:hover{
    transition-duration:0.2s;
}

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

.appointment-button a {
    color: #ffffff !important;
}

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

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

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

/* Стили для нижних колонок */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 30px auto 0;
    flex-wrap: wrap;
    font-size: 16px;
    font-family: TenorSans;
    font-weight: 400;
}

.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: 14px;
    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;
}


.banner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banner-left {
    flex: 1;
    min-height: 500px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 505px;
}

.banner-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 32px;
    color: #535353;
    margin-bottom: 5px;
    text-align: center;
    font-family: TenorSans;
    font-weight: 400;
}

.subtitle {
    font-size: 16px;
    color: #988A81;
    margin-bottom: 30px;
    text-align: center;
    font-family: TenorSans;
    font-weight: 400;
}

.contact-methods {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #988A81;
    font-family: TenorSans;
    font-weight: 400;
}

.contact-icon {
    margin-right: 10px;
    flex-shrink: 0;
}

.contact-link{
    color:#AE3A2D !important;
}

.phone-box {
    border: 1px solid #000000;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
    background: white;
    display: none;
}

.phone-number {
    font-size: 16px;
    font-weight: 400;
    color: #988A81;
    font-family: 'Montserrat', Arial, sans-serif;
}

.appointment-btn {
    display: inline-block;
    background-color: #B03B29;
    color: #ffffff !important;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 6px;
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
    font-family: TenorSans;
    font-weight: 400;
}

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

.consent {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 12px;
    color: #988A81;
    line-height: 1.4;
    align-items: center;
    font-family: TenorSans;
    font-weight: 400;
}

.consent-icon {
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 1px;
}

.messenger-title {
    text-align: center;
    font-size: 16px;
    color: #988A81;
    margin-bottom: 15px;
    font-family: TenorSans;
    font-weight: 400;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: scale(1.1);
}

.cosmetology-block {
    display: flex;
    align-items: flex-start;
    gap: 34px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    /*flex-wrap: wrap;*/
    padding-bottom: 40px;
}

.cosmetology-photo {
    flex-shrink: 0;
    width: 400px;
    height: auto;
    border-radius: 13px;
    background-color: #f0f0f0;
    object-fit: cover;
    max-width: 100%;
}

.cosmetology-text {
    flex: 1;
}

.cosmetology-text p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #3D3D3D;
    font-size: 18px;
    font-family: Montserrat;
    font-weight: 400;
}

.paragraph--bold600{
    font-weight:600 !important;
    color:#8e7b6f !important;
}

.text-underline {
    text-decoration: underline;
}

/* Стили для блока с ценами */
.prices-block {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #988A81;
}

.price-item:last-child {
    border-bottom: none;
}

.service-name {
    flex: 1;
    margin-right: 20px;
    line-height: 1.4;
    color: #3D3D3D;
    font-size: 18px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.service-price {
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
    color: #B03B29;
    font-size: 24px;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Стили для блока со специалистами */
.specialists-block {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.specialist-card {
    text-align: center;
    padding: 20px;
}

.specialist-photo {
    width: 231px;
    height: 231px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    background-color: #f5f5f5;
}

.specialist-name {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #1C1C1C;
    font-family: 'Montserrat', Arial, sans-serif;
}

.specialist-position {
    color: #3D3D3D;
    line-height: 1.4;
    font-size: 14px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
}

.t1186__slider {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Стили для переходной страницы Аппаратная косметология */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-item {
    transition: transform 0.2s ease;
}

.nav-item:hover {
    transform: translateX(5px);
}

.nav-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.nav-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: #B03B29;
}

.nav-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.nav-link {
    color: #525252 !important;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
    display: block;
    flex-grow: 1;
    font-family: Montserrat;
}

.uc-name_moment .t-name {
    font-weight: 400;
    font-family: TeXGyreAdventor;
    font-size: 16px;
    color: #8b8682;
    text-align: center;
}

#rec820926205 .t-section__title{
    color:#988a81 !important;
}

.background-block {
    width: 58%;
    background: #988a81;
    z-index: 1;
    
    /* Левая часть прямоугольная, правая - скругленная */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 100px; /* Регулируйте значение для нужной степени скругления */
    border-bottom-right-radius: 100px;
    padding: 30px;
}

/* Единый флекс-контейнер для всех элементов */
.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 30px 0; /* vertical horizontal */
}

/* Элементы информации - каждый занимает 50% ширины */
.info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 48%; /* Чуть меньше 50% для отступов */
}

/* Стили для верхнего текста */
.info-top {
    font-family: TeXGyreAdventor;
    font-weight: 400;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Стили для нижнего текста */
.info-bottom {
    font-family: TeXGyreAdventor;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.2;
}



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

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

@media (max-width: 993px) {
    .banner-left img {
        max-height: none;
    }
    .cosmetology-block {
        flex-direction: column;
    }
    .background-block {
        width: 58%;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0 auto;
    }
            
    .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;
    }
    .banner {
        flex-direction: column;
        max-width: 90%;
    }
            
    .banner-left {
        min-height: 0px;
    }
    
    .banner-left img {
        display: none;
    }
            
    .banner-right {
        padding: 30px 20px;
    }
    
    .banner-left img {
        max-height: 580px;
    }
    .service-card {
        width: 75%;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .background-block {
        box-sizing: border-box;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .service-card {
        width: 100%;
    }
    .banner {
        max-width: 100%;
    }
    .info-item {
        width: 100%;
    }
}

