/* Общие исправления для мобильных */
:root {
    --ya-yellow: #ffdd2d;
    --ya-yellow-hover: #e1c532;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #fcfcfc;
}

/* HERO Section */
.ya-hero {
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 60px;
}

.ya-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.ya-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.ya-title {
    color: white;
    font-weight: 800;
    font-size: calc(1.8rem + 1.5vw);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ya-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: calc(1rem + 0.5vw);
    font-weight: 400;
}

/* Кнопка */
.ya-btn {
    background-color: var(--ya-yellow);
    color: #000;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 16px;
    border: none;
    transition: all 0.2s ease;
}

    .ya-btn:hover {
        background-color: var(--ya-yellow-hover);
        transform: scale(1.02);
    }

/* Карточки в Hero */
.ya-feature {
    background: var(--ya-yellow);
    padding: 24px;
    border-radius: 20px;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ya-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.ya-feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.ya-feature-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Кнопки навигации карусели */
.carousel-nav-btn {
    background: rgba(255,255,255,0.25);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 10;
}

    .carousel-nav-btn:hover {
        background: rgba(255,255,255,0.5);
        transform: scale(1.1);
    }

/* Секция "Как это работает" */
.ya-features-section {
    background-color: #f8f9fa;
}

.step-card {
    padding: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--ya-yellow);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: #fff9db;
    color: #000;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--ya-yellow);
}

/* Анимации */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-animation {
    animation: fadeInRight 0.4s ease-out;
}

@media (max-width: 576px) {
    .ya-hero {
        min-height: 90vh;
        padding-top: 40px;
    }

    .ya-title {
        font-size: 1.8rem;
    }

    /* Исправление отображения строго по 1 карточке */
    .carousel-row {
        flex-wrap: nowrap;
        margin: 0; /* Убираем отрицательные отступы row, чтобы не резало края */
    }

    .card-animation {
        /* Растягиваем одну карточку на 100% ширины контейнера */
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 10px; /* Добавляем небольшие отступы по бокам */
    }

        /* Скрываем 2-ю, 3-ю и 4-ю карточки, которые генерирует цикл @for */
        .card-animation:not(:first-child) {
            display: none;
        }

    .ya-feature {
        margin: 0;
        min-height: 180px; /* Фиксируем высоту для аккуратности */
    }

    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }
}


