/* =========================================
   DELIVERY PAGE
   Подключается после style.css
   Переиспользует: .policy-page, .policy-header,
   .cart-breadcrumbs, .section, .delivery__*,
   .cart-pay__icon, .pd-accordion, .trust-strip, .btn
   ========================================= */

/* =========================================
   БЫСТРЫЕ ФАКТЫ
   ========================================= */

.dlv-facts {
    margin-top: 0;
    margin-bottom: 0;
}

/* =========================================
   СЕКЦИИ (сжимаем .section под страницу документа)
   ========================================= */

.dlv-section {
    padding: 72px 0 0;
}

.dlv-section--gray {
    background: transparent;
    border-top: 1px solid var(--gray-line);
    margin-top: 72px;
    padding: 64px 0 0;
}

.dlv-head {
    text-align: left;
    max-width: 560px;
    margin: 0 0 40px;
}

.dlv-head .section__title {
    font-size: clamp(26px, 2.6vw, 34px);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

/* =========================================
   СПОСОБЫ ДОСТАВКИ — 4 КАРТОЧКИ
   ========================================= */

.dlv-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dlv-grid .delivery__card {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.dlv-grid .delivery__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
}

.dlv-grid .delivery__card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.dlv-grid .delivery__card p {
    font-size: 13px;
    line-height: 1.65;
    flex-grow: 1;
}

.dlv-card__time {
    display: inline-block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-line);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--sage);
}

.dlv-note {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--gray-bg);
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.65;
    color: var(--gray-text);
}

/* =========================================
   ПОРЯДОК ДОСТАВКИ — 4 ШАГА
   ========================================= */

.dlv-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    counter-reset: dlv;
}

.dlv-step {
    padding-top: 24px;
    border-top: 2px solid var(--black);
}

.dlv-step__num {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--sage);
    margin-bottom: 14px;
}

.dlv-step h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
}

.dlv-step p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--gray-text);
}

/* =========================================
   ОПЛАТА
   ========================================= */

.dlv-pay {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dlv-pay__card {
    padding: 28px 24px;
    background: var(--gray-bg);
    border-radius: var(--radius-lg);
}

.dlv-pay__logos {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.dlv-pay__card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dlv-pay__card p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--gray-text);
}

.dlv-pay__list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    border-top: 1px solid var(--gray-line);
}

.dlv-pay__list li {
    position: relative;
    padding: 14px 0 14px 22px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-text);
    border-bottom: 1px solid var(--gray-line);
}

.dlv-pay__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 21px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage);
}

/* =========================================
   FAQ
   ========================================= */

.dlv-faq {
    max-width: 820px;
    border-top: 1px solid var(--gray-line);
}

.dlv-faq .pd-accordion__body a {
    color: var(--black);
    border-bottom: 1px solid var(--gray-line);
}

.dlv-faq .pd-accordion__body a:hover {
    border-color: var(--black);
}

/* =========================================
   CTA
   ========================================= */

.dlv-cta {
    margin-top: 72px;
    padding: 48px 40px;
    background: var(--black);
    border-radius: var(--radius-lg);
    text-align: center;
}

.dlv-cta__title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 10px;
}

.dlv-cta__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
}

.dlv-cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.dlv-cta .btn--primary {
    background: var(--white);
    color: var(--black);
}

.dlv-cta .btn--primary:hover {
    background: var(--yellow);
}

.dlv-cta .btn--outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.dlv-cta .btn--outline:hover {
    border-color: var(--white);
}

/* =========================================
   RESPONSIVE — 1100px
   ========================================= */

@media (max-width: 1100px) {
    .dlv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   RESPONSIVE — 900px
   ========================================= */

@media (max-width: 900px) {
    .dlv-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 28px;
    }

    .dlv-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .dlv-section {
        padding-top: 56px;
    }

    .dlv-section--gray {
        margin-top: 56px;
        padding-top: 48px;
    }
}

/* =========================================
   RESPONSIVE — 640px
   ========================================= */

@media (max-width: 640px) {
    .dlv-facts {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }

    .dlv-section {
        padding-top: 44px;
    }

    .dlv-section--gray {
        margin-top: 44px;
        padding-top: 40px;
    }

    .dlv-head {
        margin-bottom: 28px;
    }

    .dlv-head .section__title {
        font-size: 24px;
    }

    .dlv-grid,
    .dlv-pay {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dlv-grid .delivery__card,
    .dlv-pay__card {
        padding: 24px 20px;
    }

    .dlv-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dlv-step {
        padding-top: 18px;
    }

    .dlv-faq .pd-accordion summary {
        font-size: 14px;
        padding: 16px 0;
        align-items: flex-start;
    }

    .dlv-faq .pd-accordion__body p {
        font-size: 13px;
    }

    .dlv-cta {
        margin-top: 44px;
        padding: 32px 20px;
    }

    .dlv-cta__title {
        font-size: 22px;
    }

    .dlv-cta__actions {
        flex-direction: column;
    }

    .dlv-cta .btn {
        width: 100%;
    }
}

/* =========================================
   RESPONSIVE — 400px
   ========================================= */

@media (max-width: 400px) {
    .dlv-note,
    .dlv-pay__list li {
        font-size: 12px;
    }

    .dlv-step h3,
    .dlv-pay__card h3 {
        font-size: 15px;
    }

    .dlv-cta__title {
        font-size: 20px;
    }
}

/* =========================================
   PREFERS REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    .dlv-grid .delivery__card:hover {
        transform: none;
    }
}
