/* ===========================
   БАЗА
   =========================== */

.delivery-page {
    padding: 32px 0 64px;
    background-color: #f7f7f7;
    min-height: 60vh;
}

.delivery-page__content-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ===========================
   HERO / HEADER
   =========================== */

.delivery-page__title {
    margin: 0 0 16px;
    font-size: 36px;
    line-height: 1.25;
    font-weight: 700;
    color: #1a202c;
    /* темный цвет из скриншота */
    background-color: #f3f3f3;
    /* легкий фон под заголовком */
    padding: 24px;
    border-radius: 4px;
}

.delivery-page__lead {
    margin: 0 0 42px;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 800px;
    padding-left: 24px;
    /* небольшое выравнивание */
}

/* ===========================
   PRICE SECTION
   =========================== */

.delivery-page__price-section {
    max-width: 900px;
    padding-left: 24px;
}

.delivery-page__subtitle {
    margin: 0 0 32px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 500;
    /* более тонкий шрифт как на скрине */
    color: #2c3e50;
    /* синеватый оттенок */
    border-left: none;
    /* убираем старый стиль */
    padding-left: 0;
}

.delivery-page__subtitle--blue {
    color: #3b4256;
}

/* ===========================
   PRICE LIST (TABLE)
   =========================== */

.delivery-price-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 42px;
    font-family: inherit;
}

.delivery-price-row {
    display: flex;
    align-items: flex-end;
    /* выравниваем по нижней линии шрифта */
    justify-content: space-between;
    font-size: 18px;
    color: #3b4256;
}

.delivery-price-name {
    flex-shrink: 0;
    max-width: 65%;
}

.delivery-price-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #cbd5e0;
    margin: 0 10px 4px;
    /* отступ снизу подгоняется визуально */
    /* opacity: 0.5; */
}

.delivery-price-val {
    flex-shrink: 0;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

/* ===========================
   FOOTER TEXT
   =========================== */

.delivery-page__footer-note {
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 800px;
}

/* ===========================
   LAYOUT COLUMNS
   =========================== */

.delivery-page__text-col {
    flex: 1;
    min-width: 0;
    /* fix for flexbox overflow */
}

.delivery-page__image-col {
    flex-basis: 400px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.delivery-page__image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    /* mix-blend-mode: multiply; /* если фон картинки белый, можно убрать */
}

/* ===========================
   АДАПТИВ
   =========================== */

@media (min-width: 992px) {
    .delivery-page__content-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .delivery-page__title {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .delivery-page__title {
        font-size: 26px;
        padding: 16px;
    }

    .delivery-page__lead {
        padding-left: 16px;
        font-size: 15px;
    }

    .delivery-page__price-section {
        padding-left: 16px;
    }

    .delivery-price-row {
        font-size: 15px;
        align-items: flex-start;
        /* на мобилке может быть перенос */
        /* переделаем на мобилке, чтобы просто в столбик или без точек, если не влезает */
    }

    .delivery-price-dots {
        display: none;
        /* на узких экранах точки часто мешают */
    }

    .delivery-price-row {
        justify-content: space-between;
        gap: 10px;
    }

    .delivery-page__image-col {
        flex-basis: auto;
        order: 2;
        /* explicitly ensure it's at bottom if needed, though column direction does this naturally */
    }
}