/* Блок "Нашли сами" */
.landing-block {
    width: 100%;
    display: flex;
    justify-content: center; /* Центрируем контент внутри */
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: 640px;
    margin: 50px 0;
}

/* Внутренний контейнер для ограничения контента */
.landing-block .content-wrapper {
    max-width: var(--content-width);
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Фоновое изображение - центрируем и растягиваем */
.landing-block::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* Растягиваем на всю ширину */
    max-width: 1340px; /* Но ограничиваем максимальную ширину */
    height: 420px;
    background-image: url('../images/fon3.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Полупрозрачный белый фон на весь блок */
.landing-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    opacity: 0.75;
    z-index: 1;
}

/* Обновляем стили для секций */
.left-section, .right-section {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    flex: 1;
    min-width: 300px;
}

/* Остальные стили остаются без изменений */
.left-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.red-frame {
    position: absolute;
    height: 540px;
    top: 50px;
    left: 100px;
    right: 80px;
    bottom: -25px;
    border: 6px solid var(--red-accent);
    opacity: 0;
    transform: scale(0.9);
    animation: frameAppear 0.8s ease-out 0.8s forwards;
    pointer-events: none;
}

.title-container {
    padding: 0;
    position: relative;
    width: 100%;
    margin-left: 140px;
}

.landing-block h1 {
    font-size: 34px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 65px;
    opacity: 0;
    transform: translateY(30px);
    animation: titleAppear 0.8s ease-out 0.3s forwards;
    font-family: Arial, sans-serif; 
}

.highlight {
    color: var(--red-accent);
}

.icon-container {
    display: flex;
    justify-content: flex-start;
    width: calc(100% - 130px);
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    animation: iconAppear 0.7s ease-out 0.5s forwards;
    margin-top: 30px;
    margin-left: 150px;
}

.search-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.right-section {
    padding-top: 160px;
    padding-right: 60px;
}

.right-section h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    opacity: 0;
    transform: translateX(20px);
    animation: subtitleAppear 0.6s ease-out 1.2s forwards;
}

.benefits-list {
    list-style: none;
    margin-bottom: 25px;
}

.benefits-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: var(--gray-text);
    font-size: 16px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    height: 36px;
    display: flex;
    align-items: center;
    cursor: pointer;
}


.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--red-accent);
    transition: all 0.2s ease;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}


.benefits-list li:hover {
    color: var(--text-color);
    font-weight: 500;
    transform: translateX(8px);
    transition: all 0.3s ease;
}


.benefits-list li:hover::before {
    transform: translateY(-50%) scale(1.8);
    background-color: var(--red-accent);
}

/* Анимация появления элементов списка */
.benefits-list li:nth-child(1) {
    animation: listItemAppear 0.5s ease-out 1.4s forwards;
}
.benefits-list li:nth-child(2) {
    animation: listItemAppear 0.5s ease-out 1.6s forwards;
}
.benefits-list li:nth-child(3) {
    animation: listItemAppear 0.5s ease-out 1.8s forwards;
}
.benefits-list li:nth-child(4) {
    animation: listItemAppear 0.5s ease-out 2.0s forwards;
}

.cta-button {
    background-color: var(--red-accent);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    width: 80%;
    display: block;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: buttonAppear 0.6s ease-out 2.2s forwards;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: #e62e2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 51, 51, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.7s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(2px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Адаптивность для блока "Нашли сами" */
@media (max-width: 1050px) {
    .red-frame {
        display: none;
    }
}

@media (max-width: 768px) {
    .landing-block {
        flex-direction: column;
        height: auto;
    }
    
    .left-section, .right-section {
        padding: 30px 20px;
    }
    
    .right-section {
        padding-top: 30px;
        padding-right: 20px;
    }
    
    .red-frame {
        left: 20px;
        right: 20px;
    }
    
    .title-container {
        margin-left: 0;
    }
    
    .icon-container {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }
    
    .landing-block h1 {
        font-size: 26px;
    }
    
    .cta-button {
          width: 100%;
    }
    
    /* Адаптивность для списка */
    .benefits-list li {
        height: 34px;
        font-size: 15px;
        padding-left: 22px;
    }
    
    .benefits-list li::before {
        width: 5px;
        height: 5px;
    }
    
    .benefits-list li:hover::before {
        transform: translateY(-50%) scale(1.5);
    }
}

@media (max-width: 480px) {
    .landing-block h1 {
        font-size: 22px;
    }
    
    .left-section, .right-section {
        padding: 25px 15px;
    }
    
    .red-frame {
        left: 15px;
        right: 15px;
    }
    
    .search-icon {
        width: 70px;
        height: 70px;
    }
    
    .benefits-list li {
        font-size: 14px;
        height: 30px;
        padding-left: 20px;
    }
    
    .benefits-list li::before {
        width: 4px;
        height: 4px;
    }
    
    .benefits-list li:hover {
        font-size: 14.5px;
        transform: translateX(5px);
    }
    
    .right-section h4 {
        font-size: 18px;
    }
}