/* Мобильная адаптация для страниц help и about */
@media screen and (max-width: 768px) {

    /* Общие стили для контейнеров */
    .products_wr.main_div {
        box-sizing: border-box;
    }

    .marg_wr_right {
        padding: 0;
    }

    /* Заголовки */
    .m_h1,
    .m_h {
        font-size: 22px !important;
        margin-bottom: 16px !important;
        margin-top: 16px !important;
        line-height: 1.3;
    }

    .m_h1 img {
        max-width: 100%;
        height: auto;
        display: block;
        margin-bottom: 12px;
    }

    /* Блоки с контентом */
    .last_section_opinion {
        margin: 16px 0 !important;
        padding: 8px;
        box-sizing: border-box;
    }

    .idTextPanel {
        font-size: 15px;
        line-height: 1.6;
    }

    .idTextPanel h2 {
        font-size: 18px;
        margin-top: 24px;
        margin-bottom: 12px;
        font-weight: 600;
        color: #0f2448;
    }

    .idTextPanel h3 {
        font-size: 17px;
        margin-top: 20px;
        margin-bottom: 10px;
        font-weight: 600;
        color: #0f2448;
    }

    .idTextPanel p {
        margin-bottom: 12px;
        line-height: 1.6;
    }

    /* Адаптация изображений */
    .idTextPanel img,
    .last_section_opinion img,
    .products_wr.main_div img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 16px 0;
        border-radius: 8px;
    }

    /* Таблицы - общие стили */
    .products_wr table:not(.picktblhead) {
        width: 100% !important;
        display: block;
        margin-bottom: 20px;
    }

    .products_wr table:not(.picktblhead) tbody,
    .products_wr table:not(.picktblhead) tr {
        display: block;
        width: 100%;
    }

    .products_wr table:not(.picktblhead) td {
        display: block;
        width: 100% !important;
        padding: 8px 0;
        border: none;
    }

    .products_wr table:not(.picktblhead) td:first-child {
        font-weight: 600;
        color: #0f2448;
        margin-bottom: 4px;
        font-size: 14px;
    }

    /* Таблица контактов на странице about/contacts */
    .marg_wr_right > table {
        margin-bottom: 0;
    }

    .marg_wr_right > table tbody tr {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .marg_wr_right > table tbody tr td {
        padding: 16px;
        background: #f5f7ff;
        border-radius: 12px;
        border: 1px solid #e6ebff;
        margin-bottom: 0;
    }

    .marg_wr_right > table tbody tr td b {
        display: block;
        font-size: 18px;
        color: #0f2448;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .marg_wr_right > table tbody tr td br {
        margin: 6px 0;
    }

    /* Iframe с картами */
    iframe {
        width: 100% !important;
        height: 250px !important;
        margin-top: 16px !important;
        border-radius: 8px;
        overflow: hidden;
    }

    /* Выбор доставки/оплаты */
    .selectsdel,
    .selectshp {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    #select_delivery,
    .selectsdel label,
    .selectshp label {
        width: 100% !important;
        height: auto !important;
        min-height: 80px;
        padding: 16px;
        margin-bottom: 0 !important;
        border: 2px solid #e6ebff;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(16, 35, 71, 0.08);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        box-sizing: border-box;
        overflow: hidden;
    }

    #select_delivery:hover,
    .selectsdel label:hover,
    .selectshp label:hover {
        border-color: #1f5bff;
        box-shadow: 0 6px 16px rgba(31, 91, 255, 0.15);
        transform: translateY(-2px);
    }

    #select_delivery input[type="radio"],
    .selectsdel label input[type="radio"],
    .selectshp label input[type="radio"] {
        width: 20px;
        height: 20px;
        margin: 0;
        flex-shrink: 0;
    }

    #select_delivery .ps_lblb,
    .selectsdel label .ps_lblb,
    .selectshp label .ps_lblb {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    #select_delivery img,
    .selectsdel label img,
    .selectshp label img {
        width: 60px;
        height: 60px;
        max-width: 60px;
        max-height: 60px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .ship_title_ord {
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .ship_cost_min {
        font-size: 14px !important;
        color: #666;
    }

    /* Блоки с информацией о доставке/оплате */
    .help_shipp_text {
        margin-top: 20px;
        padding: 16px;
        background: #f5f7ff;
        border-radius: 12px;
        border: 1px solid #e6ebff;
    }

    .help_shipp_text p {
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .help_shipp_text a {
        color: #1f5bff;
        text-decoration: underline;
    }

    /* Выбор пункта самовывоза */
    #city_pickups {
        margin-top: 16px;
    }

    #city_pickups select {
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        border: 1px solid #d7d7d7 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        background-color: #fff !important;
        margin-top: 0 !important;
    }

    #pickup_info {
        margin-top: 16px;
    }

    #pickup_info #YMapsID {
        display: none !important;
    }

    #pickup_info .picktblhead {
        width: 100%;
    }

    #pickup_info .picktblhead tbody,
    #pickup_info .picktblhead tr,
    #pickup_info .picktblhead td {
        display: block;
        width: 100%;
    }

    #pickup_info .picktdhead {
        font-weight: 600;
        color: #0f2448;
        margin-bottom: 4px;
        font-size: 13px;
        padding: 8px 0 4px;
    }

    #pickup_info .picktblhead td:not(.picktdhead) {
        padding: 0 0 12px;
        font-size: 15px;
    }

    /* Ссылки */
    a {
        word-break: break-word;
    }

    /* Хлебные крошки */
    .bread_crumbs_index {
        margin-bottom: 12px;
    }

    /* Убираем лишние отступы */
    br {
        display: block;
        margin: 8px 0;
    }

    /* Специфичные стили для страницы оплаты */
    #method_radio label {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-bottom: 12px;
    }

    .yamapsd {
        margin-top: 16px;
    }

    .yamapsd iframe {
        width: 100% !important;
        height: 250px !important;
    }
}

@media screen and (max-width: 480px) {
    .products_wr.main_div {
        padding: 0 12px;
    }

    .m_h1,
    .m_h {
        font-size: 20px !important;
    }

    .idTextPanel h2 {
        font-size: 17px;
    }

    .idTextPanel h3 {
        font-size: 16px;
    }

    .last_section_opinion {
        padding: 12px;
    }

    #select_delivery,
    .selectsdel label,
    .selectshp label {
        padding: 12px;
        min-height: 70px;
    }

    #select_delivery img,
    .selectsdel label img,
    .selectshp label img {
        width: 50px;
        height: 50px;
        max-width: 50px;
        max-height: 50px;
    }

    .idTextPanel img,
    .last_section_opinion img,
    .products_wr.main_div img {
        margin: 12px 0;
    }
}

