/* свои стили для карусели и вертикальных шагов */
.steps-block {
    padding: 4rem 0;
    background: linear-gradient(145deg, #f9fafc 0%, #ffffff 100%);
}

.vertical-steps {
    position: relative;
    padding-left: 2rem;
    border-left: 3px dashed #d0dae9;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.6;
}

.last-step-item {
    margin-bottom: 0.5rem !important;
}

.step-item.active {
    opacity: 1;
}

.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(26, 86, 219, 0.12);
    color: #1a56db;
    font-weight: 600;
    font-size: 1.4rem;
    border: 2px solid transparent;
    transition: 0.2s;
}

.step-item.active .step-badge {
    background: #1a56db;
    color: white;
    box-shadow: 0 12px 24px -8px #1a56db70;
    border-color: #ffffff80;
}

.step-text h5 {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
}

.step-text p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

/* левая часть — карусель с картинками/текстом */
.left-carousel {
    background: #eef2f8;
    border-radius: 40px;
    padding: 2rem 2rem 3rem 2rem;
    height: 100%;
    min-height: 380px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), 0 20px 30px -15px rgba(0, 40, 100, 0.2);
    position: relative;
}

.carousel-slide-content {
    text-align: center;
}

.carousel-slide-content .material-icons.display-1 {
    font-size: 6rem;
    color: #1a56db;
    background: white;
    padding: 1rem;
    border-radius: 80px;
    box-shadow: 0 20px 30px -10px #1a56db30;
    margin-bottom: 1.5rem;
}

.slide-title {
    font-weight: 700;
    font-size: 2rem;
    color: #0b2b4f;
}

.slide-desc {
    color: #2c3e5c;
    font-size: 1.1rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Стили для чипов с иконкой и текстом (исправлено выравнивание) */
.chip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.chip-badge .material-icons {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.chip-badge span:not(.material-icons) {
    line-height: 1.4;
}

/* КОНТРОЛЫ КАРУСЕЛИ (СТРЕЛКИ) — ИСПРАВЛЕННАЯ ВЕРСИЯ */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    bottom: 0;
    top: auto;
    width: auto;
    background: white;
    color: #1e293b;
    padding: 8px 20px;
    border-radius: 40px;
    box-shadow: 0 4px 12px #00000010;
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid #dee7f0;
    transform: translateY(50%);
    opacity: 1;
    transition: all 0.2s ease;
}

.carousel-control-prev {
    left: 20%;
}

.carousel-control-next {
    right: 20%;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus,
.carousel-control-prev:active,
.carousel-control-next:active {
    background: #1a56db !important;
    color: white !important;
    border-color: #1a56db !important;
    opacity: 1 !important;
    box-shadow: 0 8px 16px rgba(26, 86, 219, 0.3);
}

.carousel-control-prev .material-icons,
.carousel-control-next .material-icons {
    font-size: 1.8rem;
    line-height: 1;
    color: inherit;
}

/* индикаторы шагов (прогресс) */
.step-indicator {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 20px;
    background: #cbd5e1;
    transition: 0.2s;
    cursor: pointer;
}

.step-dot.active-dot {
    width: 28px;
    background: #1a56db;
}

/* КЛАСС ДЛЯ ЦЕНТРИРОВАНИЯ КОНТЕЙНЕРА ПО ВЕРТИКАЛИ */
.center-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

@media (max-width: 768px) {
    .vertical-steps {
        border-left: none;
        padding-left: 0;
    }

    .step-item {
        background: #f1f5f9;
        padding: 0.75rem;
        border-radius: 60px;
    }
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: .5rem;
}

.benefit-icon.blue {
    background: rgba(13, 110, 253, .12);
    color: #0d6efd;
}

.benefit-icon.green {
    background: rgba(25, 135, 84, .12);
    color: #198754;
}

.benefit-icon.purple {
    background: rgba(102, 16, 242, .12);
    color: #6610f2;
}

.benefit-icon.orange {
    background: rgba(253, 126, 20, .12);
    color: #fd7e14;
}

.benefit-icon.red {
    background: rgba(220, 53, 69, .12);
    color: #dc3545;
}

/* ===== Category Cards ===== */

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: .5rem;
}

.category-icon.blue {
    background: rgba(13, 110, 253, .12);
    color: #0d6efd;
}

.category-icon.green {
    background: rgba(25, 135, 84, .12);
    color: #198754;
}

.category-icon.purple {
    background: rgba(102, 16, 242, .12);
    color: #6610f2;
}

.category-icon.orange {
    background: rgba(253, 126, 20, .12);
    color: #fd7e14;
}

.category-icon.red {
    background: rgba(220, 53, 69, .12);
    color: #dc3545;
}

.category-icon.yellow {
    background: rgba(255, 193, 7, .12);
    color: #ffc107;
}

.category-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--app-primary);
}

/* ===== CTA Section ===== */

.cta-section {
    background: #a09e9e;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.cta-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon.blue {
    background: rgba(13, 110, 253, .12);
    color: #0d6efd;
}

.cta-icon.green {
    background: rgba(25, 135, 84, .12);
    color: #198754;
}

.cta-card .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.cta-card .btn-primary {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.cta-card .btn-primary:hover {
    background-color: color-mix(in srgb, var(--app-primary) 85%, black);
    border-color: color-mix(in srgb, var(--app-primary) 85%, black);
}

.cta-card .btn-success {
    background-color: #198754;
    border-color: #198754;
}

.cta-card .btn-success:hover {
    background-color: #157347;
    border-color: #157347;
}

.font-size-10 {
    font-size: 11px !important;
}

/* Категории */
.category-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    height: 100%;
    display: block;
}

.category-card-link:hover {
    transform: translateY(-4px);
}

.category-card {
    height: 100%;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 0.375rem;
    transition: box-shadow 0.2s;
    padding: 1.25rem 0.75rem;
    background-color: #fff;
    text-align: center;
}

.category-card-link:hover .category-card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    color: #0d6efd;
    display: inline-block;
}

.category-title {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #212529;
    font-weight: 500;
    margin: 0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .category-icon {
        font-size: 3rem;
    }

    .category-title {
        font-size: 0.8rem;
    }
}

@keyframes placeholderFadeOnly {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

#heroQuery.animate-placeholder::placeholder {
    animation: placeholderFadeOnly 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}