```css
/*
 * ============================================================
 * Gella Service — форма формирования счёта
 * ============================================================
 */

.invoice-form {
    width: 100%;
}


/* ------------------------------------------------------------
   Общий блок формирования счёта
   ------------------------------------------------------------ */

.invoice-form-section {
    width: 100%;
    box-sizing: border-box;
}


/* ------------------------------------------------------------
   Описание формы
   ------------------------------------------------------------ */

.invoice-form-section > h2 {
    margin-bottom: 10px;
}

.invoice-form-section > p {
    margin-top: 0;
    margin-bottom: 28px;
    opacity: 0.75;
}


/* ------------------------------------------------------------
   Поля плательщика и описания
   ------------------------------------------------------------ */

.invoice-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.invoice-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.invoice-field label {
    font-weight: 500;
    line-height: 1.4;
}

.invoice-field input {
    width: 100%;
    box-sizing: border-box;
}


/* ------------------------------------------------------------
   Заголовок раздела товаров
   ------------------------------------------------------------ */

.products-section {
    margin-top: 10px;
}

.products-title {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}


/* ------------------------------------------------------------
   Контейнер товаров
   ------------------------------------------------------------ */

#products-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ------------------------------------------------------------
   Строка товара
   ------------------------------------------------------------ */

.product-row {
    display: grid;

    /*
     * Название занимает основное пространство.
     * Количество и цена имеют фиксированную ширину.
     * Итог и кнопка находятся справа.
     */
    grid-template-columns:
        minmax(240px, 1fr)
        90px
        140px
        130px
        90px;

    align-items: center;
    gap: 12px;

    width: 100%;
    box-sizing: border-box;

    padding: 14px;

    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 8px;

    background: rgba(128, 128, 128, 0.035);

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.product-row:hover {
    border-color: rgba(128, 128, 128, 0.45);
    background: rgba(128, 128, 128, 0.055);
}


/* ------------------------------------------------------------
   Поля товара
   ------------------------------------------------------------ */

.product-row input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


/* ------------------------------------------------------------
   Итог строки
   ------------------------------------------------------------ */

.product-total {
    display: block;

    text-align: right;

    font-weight: 600;

    white-space: nowrap;
}


/* ------------------------------------------------------------
   Кнопка удаления
   ------------------------------------------------------------ */

.remove-product {
    width: 100%;

    padding: 9px 10px;

    border: 1px solid rgba(180, 60, 60, 0.35);
    border-radius: 6px;

    background: transparent;

    color: inherit;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.remove-product:hover {
    background: rgba(180, 60, 60, 0.10);
    border-color: rgba(180, 60, 60, 0.65);
    color: #b33;
}


/* ------------------------------------------------------------
   Кнопка добавления товара
   ------------------------------------------------------------ */

#add-product {
    margin-top: 14px;
}


/* ------------------------------------------------------------
   Итог заказа
   ------------------------------------------------------------ */

.order-total-block {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    margin-top: 26px;
    padding-top: 20px;

    border-top: 1px solid rgba(128, 128, 128, 0.25);

    font-size: 1.15rem;
}

#order-total {
    margin-left: 10px;

    font-size: 1.35rem;
    font-weight: 700;
}


/* ------------------------------------------------------------
   Кнопка оплаты
   ------------------------------------------------------------ */

.invoice-payment-buttons {
    display: flex;
    justify-content: flex-end;

    margin-top: 24px;
}

#payment {
    min-width: 260px;
}


/* ------------------------------------------------------------
   Блок результата СБП
   ------------------------------------------------------------ */

#sbp-widget {
    margin-top: 28px;
}

.sbp-qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 20px;
    padding: 24px;

    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 10px;

    background: rgba(128, 128, 128, 0.035);

    text-align: center;
}

.sbp-qr-block img {
    display: block;

    width: 260px;
    height: 260px;

    max-width: 100%;

    margin: 15px auto;

    object-fit: contain;
}


/* ------------------------------------------------------------
   Документы
   ------------------------------------------------------------ */

.invoice-documents {
    margin-top: 35px;
}

.invoice-documents h2 {
    margin-bottom: 18px;
}


/* ------------------------------------------------------------
   Адаптация планшета
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    .product-row {
        grid-template-columns:
            minmax(180px, 1fr)
            80px
            120px
            110px
            80px;

        gap: 8px;

        padding: 12px;
    }

    .product-row input {
        font-size: 0.95rem;
    }

    .product-total {
        font-size: 0.95rem;
    }

}


/* ------------------------------------------------------------
   Мобильная версия
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .invoice-fields {
        gap: 16px;
        margin-bottom: 25px;
    }


    /*
     * На телефоне товар превращается
     * в отдельную компактную карточку.
     */

    .product-row {
        display: grid;

        grid-template-columns:
            1fr
            1fr;

        gap: 10px;

        padding: 14px;
    }


    /*
     * Наименование занимает всю ширину.
     */

    .product-name {
        grid-column: 1 / -1;
    }


    /*
     * Цена и количество располагаются рядом.
     */

    .product-quantity {
        grid-column: 1;
    }

    .product-price {
        grid-column: 2;
    }


    /*
     * Итог и удаление.
     */

    .product-total {
        grid-column: 1;
        align-self: center;

        text-align: left;
    }

    .remove-product {
        grid-column: 2;
    }


    .order-total-block {
        justify-content: space-between;

        font-size: 1rem;
    }

    #order-total {
        font-size: 1.2rem;
    }


    .invoice-payment-buttons {
        display: block;
    }

    #payment {
        width: 100%;
        min-width: 0;
    }


    .sbp-qr-block {
        padding: 18px;
    }

    .sbp-qr-block img {
        width: 220px;
        height: 220px;
    }

}


/* ------------------------------------------------------------
   Очень маленькие экраны
   ------------------------------------------------------------ */

@media (max-width: 420px) {

    .product-row {
        padding: 12px;
    }

    .product-name,
    .product-quantity,
    .product-price {
        font-size: 0.95rem;
    }

    .remove-product {
        font-size: 0.9rem;
    }

}
```