/* =============================================
   Parser Landing — Tablet (≤768px)
   Два ключевых состояния по Figma: 1200px и 720px.
   Здесь адаптация для viewports 768px и ниже.
   ============================================= */

@media (max-width: 1100px) {

    /* --- Контейнер блоков --- */
    .pl-blocks {
        gap: 40px;
        padding: 0 20px;
    }

    /* --- Заголовок секции --- */
    .pl-section-title {
        font-size: 32px;
    }

    /* --- Кнопка Primary --- */
    .pl-btn--primary {
        font-size: 18px;
        padding: 20px 28px;
    }

    /* =============================================
       SECTION 1 — HERO (tablet)
       ============================================= */

    .pl-hero {
        gap: 20px;
        padding-top: 20px;
    }

    .pl-hero__text {
        padding-top: 20px;
    }

    .pl-hero__title {
        font-size: 32px;
    }

    .pl-hero__subtitle {
        font-size: 18px;
    }

    .pl-hero__img {
        flex: 0 0 266px;
        height: 253px;
    }

    /* =============================================
       SECTION 2 — «Что такое» (tablet)
       ============================================= */

    .pl-whatis {
        border-radius: 32px;
        min-height: unset;
    }

    .pl-whatis__text {
        padding: 24px 0 24px 24px;
        gap: 16px;
    }

    .pl-whatis__title {
        font-size: 24px;
    }

    .pl-whatis__desc {
        font-size: 16px;
    }

    .pl-whatis__img {
        padding: 20px 20px 20px 0;
    }

    .pl-whatis__img img {
        width: 100%;
        aspect-ratio: 441 / 268;
        height: auto;
        border-radius: 12px;
    }

    /* =============================================
       SECTION 3 — ПРЕИМУЩЕСТВА (tablet)
       ============================================= */

    .pl-adv-card {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
    }

    .pl-adv-card--promo {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
    }

    /* =============================================
       SECTION 4 — ЧЕМ ПОЛЕЗЕН БИЗНЕСУ (tablet)
       ============================================= */

    /* Две колонки как в Figma main 720; одна колонка только в mobile-стилях (≤540px) */
    .pl-uc-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12px;
        row-gap: 16px;
    }

    /* Figma tablet 720: padding 24px, две колонки внутри карточки */
    .pl-uc-card:not(.pl-uc-card--cta) {
        display: grid;
        height: auto;
        min-height: 200px;
        padding: 24px 12px 12px 24px;
        border-radius: 32px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto 1fr;
        row-gap: 12px;
        column-gap: 0;
        align-items: stretch;
    }

    .pl-uc-card__title {
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: start;
        padding: 0;
        font-size: 24px;
        line-height: 1.2;
    }

    .pl-uc-card__text {
        grid-column: 1;
        grid-row: 2;
        max-width: 100%;
        padding: 0;
    }

    .pl-uc-card__desc {
        font-size: 16px;
        line-height: 1.4;
        max-width: 100%;
    }

    .pl-uc-card__img {
        grid-column: 2;
        grid-row: 2;
        padding: 0;
        align-self: end;
        justify-self: end;
    }

    .pl-uc-card__img img {
        width: 120px;
        height: 108px;
        object-fit: contain;
        object-position: center bottom;
    }

    /* Поверх двухколоночных правил планшета: узкая карточка → столбик */
    @container pl-uc (max-width: 431px) {
        .pl-uc-card:not(.pl-uc-card--cta) {
            grid-template-columns: 1fr;
            grid-template-rows: auto auto 1fr;
            row-gap: 12px;
        }

        .pl-uc-card__title {
            grid-column: 1;
            grid-row: 1;
            align-self: start;
            padding: 0;
        }

        .pl-uc-card__text {
            grid-column: 1;
            grid-row: 2;
            max-width: 100%;
            padding: 0;
            margin-bottom: 0;
        }

        .pl-uc-card__img {
            grid-column: 1;
            grid-row: 3;
            width: max-content;
            max-width: 100%;
            justify-self: end;
            align-self: end;
            padding: 0;
        }

        .pl-uc-card__img img {
            width: 120px;
            height: 108px;
            object-fit: contain;
            object-position: center bottom;
        }
    }

    .pl-uc-card--cta {
        min-height: 200px;
        height: auto;
        padding: 24px 12px 12px 24px;
        border-radius: 32px;
        container-type: inline-size;
        container-name: pl-uc;
    }

    .pl-uc-card__cta-title {
        padding: 0;
    }

    .pl-uc-card__cta-desc {
        padding: 0;
    }

    .pl-uc-card--cta .pl-btn--orange {
        margin-top: auto;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: auto;
        align-self: flex-end;
    }

    @container pl-uc (max-width: 431px) {
        .pl-uc-card--cta .pl-btn--orange {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            align-self: stretch;
            margin-left: 0;
            justify-content: center;
        }
    }

    .pl-uc-card__cta-title,
    .pl-uc-card__cta-desc {
        font-size: 20px;
    }

    /* =============================================
       SECTION 5 — ИНСТРУМЕНТЫ (tablet)
       ============================================= */

    .pl-tools-grid {
        grid-auto-rows: minmax(120px, auto);
        gap: 8px;
    }

    /* =============================================
       SECTION 6 — FAQ (tablet)
       ============================================= */

    .pl-faq {
        padding-bottom: 40px;
    }

}
