.how_to_choose_modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.how_to_choose_modal.is-open {
    display: flex;
}

.how_to_choose_modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.how_to_choose_modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.how_to_choose_modal__header {
    flex-shrink: 0;
    padding: 36px 40px 0;
}

.how_to_choose_modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 40px;
    -webkit-overflow-scrolling: touch;
}

.how_to_choose_modal__footer {
    flex-shrink: 0;
    padding: 0 40px 32px;
}

.how_to_choose_modal__title {
    margin: 0 0 32px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: #222;
}

.how_to_choose_modal__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 8px;
}

.how_to_choose_modal__section-head {
    display: grid;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    place-content: center;
}

.how_to_choose_modal__section-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.how_to_choose_modal__section-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #222;
    text-align: center;
}

.how_to_choose_modal__items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.how_to_choose_modal__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.how_to_choose_modal__item-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
}

.how_to_choose_modal__item-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.how_to_choose_modal__item-body {
    min-width: 0;
    padding-top: 2px;
}

.how_to_choose_modal__item-name {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

.how_to_choose_modal__item-text {
    font-size: 13px;
    line-height: 1.5;
    color: #888;
}

.how_to_choose_modal__item-text b,
.how_to_choose_modal__item-text strong {
    font-weight: 600;
    color: #222;
}

.how_to_choose_modal__btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 15px 24px;
    border: 0;
    border-radius: 6px;
    background: #743628;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.how_to_choose_modal__btn:hover {
    background: #5c2a1f;
}

body.how_to_choose_modal_open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .how_to_choose_modal {
        align-items: flex-end;
        padding: 0;
    }

    .how_to_choose_modal__dialog {
        max-width: none;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 16px 16px 0 0;
    }

    .how_to_choose_modal__header {
        padding: 20px 20px 0;
    }

    .how_to_choose_modal__body {
        padding: 0 20px;
    }

    .how_to_choose_modal__footer {
        padding: 0 20px calc(16px + env(safe-area-inset-bottom));
    }

    .how_to_choose_modal__title {
        margin-bottom: 20px;
        font-size: 18px;
    }

    .how_to_choose_modal__columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .how_to_choose_modal__section-icon {
        width: 72px;
        height: 72px;
    }

    .how_to_choose_modal__item-icon {
        width: 56px;
        height: 56px;
    }

    .how_to_choose_modal__btn {
        margin-top: 16px;
    }
}
