.delivery-page {
    padding-bottom: 120px;
}

.delivery-hero {
    margin-bottom: 100px;
}

.delivery-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 72px 32px;
    border-radius: 10px;
    background: #f6f6f6;
    text-align: center;
}

.delivery-hero__title {
    color: #070707;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.delivery-hero__text {
    margin: 0 auto;
    color: #7b7b7b;
    font-size: 16px;
    line-height: 1.3;
}

.delivery-section {
    margin-bottom: 120px;
}

.delivery-section__content {
    width: 100%;
}

.delivery-section__label {
    display: inline-block;
    color: #7b7b7b;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.delivery-section__head {
    max-width: 760px;
    margin-bottom: 60px;
}

.delivery-section__head--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    max-width: none;
}

.delivery-section__head--split .delivery-section__label {
    width: 50%;
}

.delivery-section__head-main {
    width: 50%;
}

.delivery-section__title {
    margin: 0 0 32px;
    color: #070707;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.delivery-section__text,
.delivery-section__note {
    margin: 0;
    color: #7b7b7b;
    font-size: 16px;
    line-height: 1.3;
}

.delivery-section__note {
    margin-top: 32px;
    text-align: center;
}

.delivery-slider {
    position: relative;
}

.delivery-slide__image-wrap {
    height: 280px;
    overflow: hidden;
    border-radius: 10px;
    background: #f6f6f6;
}

.delivery-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery__swiper-button-prev,
.delivery__swiper-button-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    background-image: url(../img/icons/swiper-arrow.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px;
    cursor: pointer;
}

.delivery__swiper-button-prev {
    left: 20px;
    transform: translateY(-50%) rotate(-180deg);
}

.delivery__swiper-button-next {
    right: 20px;
    transform: translateY(-50%);
}

.delivery-card-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 0;
}

.delivery-card-grid--benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.delivery-card-grid--tasks {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.delivery-card-grid--tasks .delivery-card,
.delivery-card-grid__media {
    grid-column: span 2;
}

.delivery-card {
    padding: 32px;
    border-radius: 10px;
    background-color: #f7f7f7;
}

.delivery-card--icon {
    min-height: 200px;
}

.delivery-card--number {
    min-height: 240px;
}

.delivery-card__head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
}

.delivery-card__icon,
.delivery-card__number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--color-main);
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.delivery-card__icon,
.delivery-card__number {
    width: 40px;
    height: 40px;
}

.delivery-card__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.delivery-card h3 {
    margin-bottom: 0;
    color: #111;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.08;
}

.delivery-card p {
    color: var(--gray-main);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.35;
}

.delivery-feature-media,
.delivery-steps-media {
    overflow: hidden;
    border-radius: 10px;
}

.delivery-section--custom .delivery-section__content {
    display: flex;
    flex-direction: column;
}

.delivery-section--custom .delivery-feature-media {
    width: 100%;
}

.delivery-feature-media__image,
.delivery-steps-media__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-feature-media__image {
    max-height: 460px;
}

.delivery-steps-grid {
    margin-bottom: 0;
}

.delivery-steps-media {
    min-height: 220px;
    background-color: #f7f7f7;
}

.delivery-steps-media.delivery-card-grid__media {
    min-height: 240px;
}

@media (max-width: 1024px) {
    .delivery-page {
        padding-bottom: 80px;
    }

    .delivery-section {
        margin-bottom: 80px;
    }

    .delivery-hero {
        margin-bottom: 80px;
    }

    .delivery-hero__inner {
        padding: 40px 60px;
    }

    .delivery-card-grid--benefits .delivery-card__head {
        align-items: center;
    }

    .delivery-hero__title,
    .delivery-section__title {
        margin-bottom: 24px;
        font-size: 32px;
    }

    .delivery-section__head--split {
        gap: 20px;
    }

    .delivery-section__head {
        margin-bottom: 40px;
    }

    .delivery-section__label {
        font-size: 20px;
    }

    .delivery-section__head-main {
        width: 50%;
    }

    .delivery__swiper-button-prev,
    .delivery__swiper-button-next {
        width: 48px;
        height: 48px;
    }

    .delivery__swiper-button-prev {
        top: 50%;
        left: 20px;
        transform: translateY(-50%) rotate(180deg);
    }

    .delivery__swiper-button-next {
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    .delivery-feature-media__image {
        max-height: 360px;
    }

    .delivery-card {
        padding: 20px;
    }

    .delivery-card-grid,
    .delivery-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .delivery-card--icon {
        height: 200px;
    }

    .delivery-card--number {
        height: 160px;
    }

    .delivery-steps-media.delivery-card-grid__media {
        height: 160px;
    }

    .delivery-section--custom .delivery-feature-media {
        width: 100%;
    }

    .delivery-card-grid--tasks .delivery-card,
    .delivery-card-grid__media {
        grid-column: auto;
    }

    .delivery-slide__image-wrap {
        height: 160px;
    }

    .delivery-card h3 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .delivery-slide {
        width: 180px;
        max-width: 180px;
        flex-shrink: 0;
    }

    .delivery-feature-media__image {
        max-height: 240px;
    }

    .delivery-section__head--split {
        flex-direction: column;
    }

    .delivery-section__head--split .delivery-section__label {
        width: 100%;
    }

    .delivery-section__head-main {
        width: 100%;
    }

    .delivery-section__label {
        width: 100%;
    }

    .delivery-hero__inner {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .delivery-hero__title,
    .delivery-section__title {
        font-size: 28px;
    }

    .delivery-hero__text,
    .delivery-section__text,
    .delivery-section__note {
        font-size: 16px;
    }

    .delivery-section__note {
        text-align: left;
    }

    .delivery__swiper-button-prev,
    .delivery__swiper-button-next {
        display: none;
    }

    .delivery-card-grid,
    .delivery-steps-grid {
        grid-template-columns: 1fr;
    }

    .delivery-card {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .delivery-card--icon {
        min-height: 180px;
    }

    .delivery-card--number {
        min-height: 160px;
    }

    .delivery-steps-media.delivery-card-grid__media {
        min-height: 160px;
    }

    .delivery-card h3 {
        font-size: 18px;
        line-height: 1.12;
    }

    .delivery-card p {
        font-size: 15px;
    }

    .delivery-card__icon,
    .delivery-card__number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .delivery-card__icon img {
        width: 20px;
        height: 20px;
    }

    .delivery-slide__image-wrap {
        height: 140px;
    }

}
