@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.blocks-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 20px; */
}

.service-block,
.video-block {
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    /* max-width: 500px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
    color: #333;
    flex: 1;
}



/* Стили для service-block (как раньше) */
.service-block__tag {
    background: #2196f3;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    animation: slideInLeft 0.8s ease-out;
}

.service-block__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: fadeIn 1.2s ease-out 0.2s forwards;
    opacity: 0;
}

.service-block__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeIn 1.2s ease-out 0.4s forwards;
    opacity: 0;
}

.service-block__description {
    font-size: 16px;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease-out 0.6s forwards;
    opacity: 0;
}

.service-block__benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-block__benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
}

.service-block__benefits li:nth-child(1) { animation-delay: 0.8s; }
.service-block__benefits li:nth-child(2) { animation-delay: 1s; }
.service-block__benefits li:nth-child(3) { animation-delay: 1.2s; }

.service-block__benefits li::before {
    content: '✓';
    color: #2196f3;
    font-size: 20px;
    margin-right: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-block__benefits li:hover::before {
    transform: scale(1.2);
}

.service-block__button {
    background: #2196f3;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    animation: bounceIn 1s ease-out 1.4s forwards;
    opacity: 0;
}

.service-block__button:hover {
    background: #FF5722;
    transform: translateY(-3px);
}

.service-block__phone {
    background: #e3f2fd;
    color: #373737;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 16px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    animation: fadeIn 1.2s ease-out 1.6s forwards;
    opacity: 0;
}
/* Мобильная адаптация */
@media (max-width: 1115px) {
    .service-block__phone {

        margin-left: 0;
        margin-top: 5px;
        color: #353535;

    }


}

.service-block__phone::before {
    /* content: '📞'; */
    margin-right: 5px;
}

.service-block__stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.service-block__stat {
    text-align: center;
    animation: fadeIn 1.2s ease-out forwards;
    opacity: 0;
}

.service-block__stat:nth-child(1) { animation-delay: 1.8s; }
.service-block__stat:nth-child(2) { animation-delay: 2s; }
.service-block__stat:nth-child(3) { animation-delay: 2.2s; }

.service-block__stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2196f3;
}

.service-block__stat-label {
    font-size: 14px;
    opacity: 0.7;
}

/* Стили для video-block */
.video-block__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeIn 1.2s ease-out 0.4s forwards;
    opacity: 0;
}

.video-block__description {
    font-size: 16px;
    margin-bottom: 35px;
    animation: fadeIn 1.2s ease-out 0.6s forwards;
    opacity: 0;
    height: 50px;
}

/* Стили для слайдера */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px; /* Фиксированная высота для слайдера, чтобы избежать пустого пространства */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.2s ease-out 0.8s forwards;
    opacity: 0;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.slider-media {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет контейнер без искажения */
    border-radius: 10px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 18px;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.9); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .blocks-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 50px;
    }

    .service-block,
    .video-block {
        max-width: 100%;
        padding: 20px;
    }

    .slider-container {
        height: 450px; /* Меньшая высота для мобильных */
    }

    .slider-prev,
    .slider-next {
        padding: 8px;
        font-size: 16px;
    }
}
/* Мобильная адаптация */
@media (max-width: 1050px) {


    .slider-container {
        height: 500px; /* Меньшая высота для мобильных */
    }

    .slider-prev,
    .slider-next {
        padding: 8px;
        font-size: 16px;
    }
}