.how-to-buy {
    padding: 60px 0;
    background: linear-gradient(
        135deg,
        rgba(2, 111, 115, 0.05) 0%,
        rgba(47, 185, 196, 0.05) 100%
    );
}

.hero--howto {
    padding-top: 40px;
    padding-bottom: 30px;
}

.hero--howto .hero-side-img {
    width: 100%;
    height: 29rem;
    /* object-fit: cover; */
    border-radius: 8px;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1200px) {
    .hero--howto .hero-side-img {
        height: 20rem;
    }
}

.hero--howto .hero__text {
    padding: 12px 0;
}

.hero--howto .hero__text h2 {
    font-size: 28px;
    line-height: 1.05;
    margin-bottom: 12px;
}

.hero--howto .hero-accent {
    color: #016f73;
    font-size: 48px;
    display: inline-block;
}

@media (max-width: 992px) {
    .hero--howto .hero-accent {
        font-size: 36px;
    }

    .hero--howto .hero-side-img {
        height: 29rem;
    }
}

@media (max-width: 768px) {
    .hero--howto .hero-accent {
        font-size: 26px;
    }

    .hero--howto .hero-side-img {
        height: 250px;
    }

    .hero--howto .hero__text h2 {
        font-size: 20px;
    }
}

.wizard-wrapper {
    /* background: #fff; */
    padding: 1rem;
    border-radius: 8px;
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); */
}

.steps-list {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 5px;
    margin: 0 0 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    position: relative;
    align-items: flex-start;
}

@media (max-width: 480px) {
    .steps-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: unset;
        scroll-snap-type: unset;
        gap: 8px;
        padding: 5px;
    }

    .step-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-caption .title {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (min-width: 481px) and (max-width: 991px) {
    .steps-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: unset;
        scroll-snap-type: unset;
        gap: 12px;
        padding: 5px;
    }

    .step-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-caption .title {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.steps-list::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

.steps-list::-webkit-scrollbar {
    height: 8px;
}

.steps-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    min-width: 80px;
    scroll-snap-align: start;
    position: relative;
    z-index: 1;
}

.step-card {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.step-card .num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #016f73;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.step-caption {
    margin-top: 4px;
    text-align: center;
    max-width: 100px;
    font-size: 11px;
    color: #1f2d3d;
    line-height: 1.1;
}

.step-caption small {
    display: block;
    color: #6c757d;
    font-size: 10px;
    margin-top: 2px;
}

.step-item.active .step-card {
    background: #016f73;
    border-color: transparent;
}

.step-item.active .step-card .num {
    background: #fff;
    color: #016f73;
}

.step-item:hover .step-card {
    transform: translateY(-4px);
}

.wizard-panels {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 3rem 12rem;
    min-height: 280px;
    margin-top: 20px;
}

.step-panel {
    display: none;
    width: 100%;
    max-width: 100%;
}

.step-panel.active {
    display: block;
}

.step-panel h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #016f73;
    font-weight: 700;
    font-size: 20px;
}

.step-panel h5 {
    margin-bottom: 12px;
    margin-top: 0;
    color: #495057;
    font-weight: 600;
    font-size: 15px;
}

.step-panel p {
    margin-bottom: 12px;
    color: #333;
    line-height: 1.5;
}

.step-panel ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.step-panel ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: #333;
}

.step-panel ul li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    top: 0;
    color: #016f73;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.wizard-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.wizard-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wizard-dots .dot.active {
    background: #016f73;
    width: 14px;
    height: 14px;
    border-color: #2fb9c4;
}

.wizard-dots .dot:hover {
    background: #2fb9c4;
}

.wizard-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.wizard-footer .primary-btn {
    white-space: nowrap;
}

.wizard-footer .prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .wizard-wrapper {
        padding: 18px;
    }

    .step-item {
        min-width: 80px;
        padding: 0;
    }

    .step-card {
        width: 52px;
        height: 52px;
    }

    .step-card .num {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .step-caption .title {
        max-width: 90px;
        font-size: 10px;
    }

    .wizard-panels {
        min-height: 260px;
        padding: 20px;
    }

    .step-panel h4 {
        font-size: 18px;
    }

    .step-panel h5 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .wizard-wrapper {
        padding: 12px;
    }

    .steps-list::before {
        top: 26px;
    }

    .step-item {
        min-width: 70px;
        padding: 0;
        gap: 2px;
    }

    .step-card {
        width: 48px;
        height: 48px;
    }

    .step-card .num {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .step-caption {
        max-width: 80px;
        font-size: 9px;
    }

    .step-caption small {
        font-size: 8px;
    }

    .wizard-panels {
        min-height: 240px;
        padding: 16px;
        margin-top: 16px;
    }

    .step-panel h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .step-panel h5 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .step-panel p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .step-panel ul li {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .wizard-dots {
        gap: 8px;
        margin-top: 16px;
    }

    .wizard-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .wizard-footer .primary-btn {
        width: 100%;
        display: block;
        font-size: 14px;
        padding: 8px 12px;
    }

    .wizard-footer .prev:disabled {
        opacity: 0.4;
    }
}

@media (max-width: 420px) {
    .wizard-wrapper {
        padding: 10px;
    }

    .steps-list::before {
        top: 22px;
    }

    .step-item {
        min-width: 60px;
        padding: 0;
        gap: 2px;
    }

    .step-card {
        width: 44px;
        height: 44px;
    }

    .step-card .num {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .step-caption {
        max-width: 70px;
        font-size: 8px;
    }

    .step-caption .title {
        display: none;
    }

    .step-caption small {
        font-size: 7px;
        margin-top: 1px;
    }

    .wizard-panels {
        min-height: 220px;
        padding: 12px;
        margin-top: 12px;
    }

    .step-panel h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .step-panel h5 {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .step-panel p {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .wizard-dots {
        gap: 6px;
    }

    .wizard-dots .dot {
        width: 8px;
        height: 8px;
    }

    .wizard-dots .dot.active {
        width: 12px;
        height: 12px;
    }

    .step-panel ul li {
        font-size: 12px;
        margin-bottom: 4px;
    }
}
