.hero {
    position: relative;
    min-height: 867px;
    padding: 116px 0 66px;
    color: #fff;
    background-color: lightgray;
    background-image: image-set(
            url('../image/backgrounds/hero-bg.webp') type('image/webp'),
            url('../image/backgrounds/hero-bg.png') type('image/png')
    );
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
}
.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero__brand {
    width: 382px;
    height: 366px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,.7));
}
.hero__panel {
    max-width: 1096px;
    padding: 0 56px;
}
.hero h1 {
    max-width: 815px;
    margin: 0 auto 26px;
    font-size: 39px;
    line-height: 1.32;
    font-weight: 700;
    text-transform: uppercase;
}
.hero p {
    max-width: 858px;
    margin: 0 auto 18px;
    font-size: 17px;
    font-weight: 500;
}
.hero b {
    display: block;
    margin-bottom: 54px;
    font-size: 17px;
    font-weight: 600;
}

.features {
    height: 296px;
    align-content: end;
    padding-bottom: 56px;
    border-top: 2px solid #fff;
    position: relative;
    background-color: lightgray;
    background-image: image-set(
            url("../image/backgrounds/delivery-bg.webp") type("image/webp"),
            url("../image/backgrounds/delivery-bg.png") type("image/png")
    );
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
}
.features__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    z-index: 1;
    position: relative;
}
.feature-card {
    width: 274px;
    min-height: 160px;
    border-radius: 20px;
    padding: 20px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(8px);
}
.feature-card__icon {
    width: 100%;
    height: 131px;
    display: grid;
    place-items: center;
    margin: -85px auto -5px;
}
.feature-card__icon.fire img {
    width: 104px;
}
.feature-card__icon.truck img {
    width: 162px;
}
.feature-card__icon.check img {
    width: 115px;
}
.feature-card__icon.credit img {
    width: 136px;
}
.feature-card h2 {
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}
.feature-card h2 span {
    color: #D75C02;
    margin-left: 2px;
}
.feature-card p {
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin: 0;
}
.feature-card b {
    font-weight: 600;
}

.catalog {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-image: image-set(
        url('../image/catalog-bg.webp') type('image/webp'),
        url('../image/catalog-bg.png') type('image/png')
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.catalog > .container {
    position: relative;
    z-index: 1;
}
.catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 64px 27px;
}
.catalog__grid .product-card {
    text-align: center;
}
.catalog__grid .product-card__image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
}
.catalog__grid .product-card__image img {
    max-height: 178px;
    object-fit: contain;
}
.catalog__grid .product-card h3 {
    margin: 0 0 30px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
}
.catalog__grid .product-card .btn {
    width: 100%;
}

.gallery-section {
    position: relative;
    overflow: hidden;
    max-height: 850px;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}
.gallery-section__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(103, 36, 0, 0.4), rgba(103, 36, 0, 0.4)),
        image-set(
            url('../image/backgrounds/gallery-bg.webp') type('image/webp'),
            url('../image/backgrounds/gallery-bg.png') type('image/png')
        );
    background-position: center;
    background-size: cover;
    filter: blur(5px);
    transform: scale(1.04);
}
.gallery-section__inner {
    position: relative;
    z-index: 1;
    width: min(1090px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0;
}
.gallery-section__title {
    margin: 0 0 40px;
    font-size: 39px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}
.gallery-section__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    justify-content: center;
}
.gallery-section__item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #969696;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 991px) {
    .gallery-section__item:hover {
        position: relative;
        z-index: 2;
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    }
}
.gallery-section__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
@media (max-width: 1199px) {
    .gallery-section {
        min-height: auto;
    }
    .gallery-section__inner {
        width: min(920px, calc(100% - 32px));
        padding: 96px 0 130px;
    }
    .gallery-section__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 767px) {
    .gallery-section__inner {
        padding: 72px 0 110px;
    }
    .gallery-section__title {
        margin-bottom: 28px;
        font-size: 30px;
    }
    .gallery-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-section::after {
        bottom: 48px;
    }
}
@media (max-width: 420px) {
    .gallery-section__title {
        font-size: 26px;
    }
}
.gallery-slider__pagination {
    display: none;
}
.gallery-section .gallery-mobile {
    display: none;
}
@media (max-width: 991px) {
    .gallery-section .gallery-desctop {
        display: none;
    }
    .gallery-section .gallery-mobile {
        display: block;
    }
    .gallery-slider__pagination {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    .gallery-slider__pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #D9D9D9;
        opacity: 1;
        margin: 0 4px !important;
    }
    .gallery-slider__pagination .swiper-pagination-bullet-active {
        background: #D65B02;
    }
}

/** Responsive. */
@media (max-width: 1199px) {
    .hero {
        min-height: 760px;
        padding-top: 160px;
    }
    .hero__brand {
        width: 310px;
        height: auto;
    }
    .hero h1 {
        font-size: 34px;
    }

    .features {
        height: auto;
        padding: 96px 0 48px;
    }
    .features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 74px 24px;
    }
    .feature-card {
        width: 100%;
        max-width: none;
    }

    .catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 42px 22px;
    }
}

@media (max-width: 991px) {
    .section-title,
    .gallery-section__title {
        font-size: 32px;
    }

    .hero {
        min-height: auto;
        padding: 54px 0 58px;
    }
    .hero__panel {
        padding: 0;
    }
    .hero__brand {
        width: 250px;
        margin-bottom: 8px;
    }
    .hero h1 {
        max-width: 680px;
        font-size: 30px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero b {
        margin-bottom: 34px;
    }

    .catalog {
        padding: 64px 0;
    }
    .catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog__grid .product-card__image {
        height: 190px;
    }

    .gallery-section__inner {
        padding: 64px 0 80px;
    }
    .gallery-section__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .btn {
        min-height: 46px;
        padding: 11px 24px;
        border-radius: 10px;
        font-size: 16px;
    }
    .btn--large {
        max-width: 320px;
    }

    .section-title {
        margin-bottom: 30px;
        font-size: 28px;
    }

    .hero {
        padding: 100px 0 52px;
        background-position: center top;
    }
    .hero__brand {
        width: 190px;
    }
    .hero h1 {
        margin-bottom: 18px;
        font-size: 26px;
        line-height: 1.25;
    }
    .hero p {
        margin-bottom: 16px;
        font-size: 18px;
        line-height: 1.55;
    }
    .hero b {
        margin-bottom: 26px;
        font-size: 16px;
    }

    .features {
        padding: 82px 0 38px;
        background-color: lightgray;
        background-image: image-set(
                url("../image/backgrounds/delivery-mob-bg.webp") type("image/webp"),
                url("../image/backgrounds/delivery-mob-bg.png") type("image/png")
        );
        background-position: 50%;
        background-size: cover;
        background-repeat: no-repeat;
    }
    .features__grid {
        grid-template-columns: 1fr;
        gap: 68px;
    }
    .feature-card {
        min-height: 152px;
        height: auto;
        padding: 20px 18px 22px;
    }
    .feature-card h2 {
        margin-bottom: 5px;
    }
    .feature-card__icon {
        height: 120px;
        margin-top: -80px;
    }

    .catalog {
        padding: 48px 0;
    }
    .catalog__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .catalog__grid .product-card {
        max-width: 360px;
        margin-inline: auto;
        width: 100%;
    }
    .catalog__grid .product-card__image {
        height: 210px;
        margin-bottom: 14px;
    }
    .catalog__grid .product-card h3 {
        min-height: auto;
        margin-bottom: 16px;
        font-size: 19px;
    }
    .catalog__grid .product-card .btn {
        width: 100%;
    }

    .gallery-section {
        max-height: none;
    }
    .gallery-section__inner {
        width: calc(100% - 32px);
        padding: 50px 0 60px;
    }
    .gallery-section__title {
        margin-bottom: 24px;
        font-size: 28px;
    }
    .gallery-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subscribe {
        padding: 48px 16px;
    }
    .subscribe__card {
        padding: 26px 18px;
    }
    .subscribe__title {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 130px 0 68px;
        background-position: center center;
    }
    .hero__overlay {
        background: rgba(0, 0, 0, .42);
    }
    .hero__content {
        width: 100%;
    }
    .hero__brand {
        width: min(430px, 88vw);
        margin: 0 auto 30px;
    }
    .hero__panel {
        width: calc(100% - 42px);
        max-width: 470px;
        padding: 0;
    }
    .hero h1 {
        max-width: 462px;
        margin-bottom: 28px;
        line-height: 1.34;
        letter-spacing: 0.2px;
    }
    .hero p {
        max-width: 440px;
        margin-bottom: 18px;
        line-height: 1.46;
        font-weight: 500;
    }
    .hero b {
        margin-bottom: 40px;
        font-size: 14px;
        line-height: 1.35;
    }
    .btn--large {
        border-radius: 12px;
        font-size: 16px;
        padding: 12px 44px;
        width: auto;
    }

    .features {
        min-height: 950px;
        height: auto;
        padding: 106px 29px 54px;
        align-content: start;
        background-position: center;
        border-top: 0;
    }
    .features__overlay {
        background: rgba(103, 36, 0, 0.50);
        filter: blur(75px);
    }
    .features__grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 64px;
    }
    .feature-card {
        width: 100%;
        max-width: 454px;
        margin: 0 auto;
        padding: 54px 49px 27px;
        border-radius: 20px;
        background: rgba(0, 0, 0, .38);
        backdrop-filter: blur(7px);
    }
    .feature-card__icon {
        height: auto;
        margin: 0;
        position: absolute;
        left: 50%;
        bottom: 90px;
        transform: translateX(-50%);
    }
    .feature-card__icon.fire img {
        width: 104px;
    }
    .feature-card__icon.truck img {
        width: 164px;
    }
    .feature-card__icon.check img {
        width: 116px;
    }
    .feature-card__icon.credit img {
        width: 138px;
    }
    .feature-card h2,
    .feature-card p {
        font-size: 21px;
        line-height: 1.27;
    }

    .catalog {
        padding: 35px 0 50px;
        background-position: center top;
    }
    .catalog .container {
        width: calc(100% - 86px);
    }
    .section-title {
        margin-bottom: 25px;
        font-size: 30px;
        line-height: 1.1;
        letter-spacing: 2px;
    }
    .catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 42px;
    }
    .catalog__grid .product-card {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .catalog__grid .product-card__image {
        margin-bottom: 15px;
        padding: 7px;
        border-radius: 10px;
    }
    .catalog__grid .product-card__image img {
        max-width: 100%;
        max-height: 96px;
    }
    .catalog__grid .product-card h3 {
        margin: 0 0 15px;
        font-size: 16px;
        font-weight: 500;
    }
    .catalog__grid .product-card .btn {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 7px;
        font-size: 16px;
        display: inherit;
    }

    .gallery-section {
        max-height: none;
        border-bottom: 0;
    }
    .gallery-section__bg {
        filter: blur(4px);
        transform: scale(1.06);
    }
    .gallery-section__inner {
        width: calc(100% - 58px);
        padding: 50px 0 0;
    }
    .gallery-section__title {
        margin-bottom: 20px;
        font-size: 30px;
    }
    .gallery-section__grid {
        display: block;
        position: relative;
    }
    .gallery-section__item {
        display: none;
    }
    .gallery-section__item:first-child {
        display: block;
        width: 100%;
        height: 279px;
        aspect-ratio: auto;
        background: #fff;
        border: 1px solid #a7a7a7;
    }
    .gallery-section__grid::after {
        content: '';
        display: block;
        width: 40px;
        height: 40px;
        margin: 24px auto 0;
        border-radius: 50%;
        background: #e2e2e2;
        box-shadow: 79px 0 0 #e2e2e2;
        transform: translateX(-39px);
    }
}

@media (max-width: 480px) {
    .hero__brand {
        width: 160px;
    }
    .hero p,
    .hero b {
        font-size: 14px;
    }

    .features {
        padding-top: 76px;
    }
    .feature-card h2,
    .feature-card p {
        font-size: 15px;
    }

    .catalog__grid .product-card__image {
        height: 150px;
    }

    .gallery-section__inner {
        width: 100%;
        padding: 40px 20px 48px;
    }
    .gallery-section__title,
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 420px) {
    .catalog-button { width: 36px; min-width: 36px; }
    .catalog-button::before,
    .catalog-button::after { width: 36px; }
    .catalog .container {
        width: calc(100% - 42px);
    }
    .catalog__grid {
        gap: 30px 20px;
    }
    .catalog__grid .product-card h3 {
        font-size: 16px;
        min-height: 44px;
    }
}
