@font-face {
    font-family: "SF Pro Display";
    src: url('../fonts/sf-pro-display_regular.woff2');
}t


html {
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

body  {
    font-family: "SF Pro Display", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

ul {
    list-style: none;
}

.header {
    background-color: #161617;
    color: #D0D0D1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.header__inner {
    padding: 13px 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.header__items {
    display: flex;
    align-items: center;
    gap: 28px;
}


.section-main{
    padding-top: 55px;
    text-align: center;
    min-height: 692px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #1D1D1F;
    margin-bottom: 12px;
}

.iphone-pro {
    background-image: image-set(
        "../images/hero_iphone_17_pro.avif" type("image/avif"),
        "../images/hero_iphone_17_pro.webp" type("image/webp"),
        "../images/hero_iphone_17_pro.jpg"
     );  
     color: #F5F5F7;  
}

.iphone-air {
    background-image: image-set(
        "../images/hero_iphone_air.avif" type("image/avif"),
        "../images/hero_iphone_air.webp" type("image/webp"),
        "../images/hero_iphone_air.jpg"
     );   
}

.iphone {
     background-image: image-set(
        "../images/hero_iphone_17.avif" type("image/avif"),
        "../images/hero_iphone_17.webp" type("image/webp"),
        "../images/hero_iphone_17.jpg"
     );   
}

.section-main__title {
    font-size: 56px;
    line-height: 60px;
    font-weight: 400;
    margin-bottom: 5px;
}

.section-main__subtext {
    font-size: 28px;
    line-height: 32px;
    max-width: 340px;
    margin: 0 auto 7px;
}

.section-main__text {
font-size: 19px;
line-height: 23px;
margin-bottom: 15px;
color: #6E6E73;
}

.btn-box {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.btn {
    font-size: 17px;
    font-weight: 20px;
    padding: 12px 22px;
    border-radius: 22px;
}

.btn-primary {
    color: #fff;
background-color: #0071E3;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #0071E3;
    color: #0071E3;
}


.collections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;

}

.collections-item {
    padding-top: 55px;
    min-height: 580px;
    text-align: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.collections-item__title {
    max-width: 380px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    margin: 0 auto 4px;
}

.collections-item__subtext {
    font-size: 21px;
    line-height: 25px;
    max-width: 300px;
    margin: 0 auto 9px;
}

.collections-item__text {
    font-size: 14px;
    line-height: 18px;
    color: #6E6E73;
}

.collections-item .btn {
    margin-top: 15px;
    padding: 10px 16px;
    font-size: 14px;
}

.collections-item .btn-box {
    gap: 14px;
}

.airpods {
    background-image: image-set(
    '../images/airpodspro_3.avif' type('image/avif'),
    '../images/airpodspro_3.webp',
    '../images/airpodspro_3.jpg'
    );
}

.watch-11 {
     background-image: image-set(
    '../images/promo_apple_watch_11.avif' type('image/avif'),
    '../images/promo_apple_watch_11.webp',
    '../images/promo_apple_watch_11.jpg'
    );
}

.watch-se {
     background-image: image-set(
    '../images/promo_apple_watch_se.avif' type('image/avif'),
    '../images/promo_apple_watch_se.webp',
    '../images/promo_apple_watch_se.jpg'
    );
    padding-bottom: 55px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.watch-ultra {
     background-image: image-set(
    '../images/promo_apple_watch_ultra3.avif' type('image/avif'),
    '../images/promo_apple_watch_ultra3.webp',
    '../images/promo_apple_watch_ultra3.jpg'
    );
    color: #F5F5F7;
}

.deal {
     background-image: image-set(
    '../images/promo_carrier.avif' type('image/avif'),
    '../images/promo_carrier.webp',
    '../images/promo_carrier.jpg'
    );
}

.trade-in {
     background-image: image-set(
    '../images/promo_iphone_tradein.avif' type('image/avif'),
    '../images/promo_iphone_tradein.webp',
    '../images/promo_iphone_tradein.jpg'
    );
}

    .footer {
        background-color: #161617;
        color: #fff;
        padding: 100px 0 80px;
    }

    .footer__info {
        padding-bottom: 20px;
        margin-bottom: 18px;
        border-bottom: 1px solid rgba(255,255,255,.24);
        color: rgba(255,255,255,.56);
    }

    .footer__info a {
        color: #2997FF;
        text-decoration: underline;
    }

    .footer__bottom {
        font-size: 12px;
        line-height: 16px;
        display: flex;
        align-items: center;
    }

    .copy {
        color: rgba(255,255,255,.56);
    }

    .footer__nav {
        margin-left: 35px;
    }

    .footer__region {
        margin-left: auto;
    }

    .footer__list {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .footer__item {
        position: relative;
    }

    .footer__item::before {
        content: '';
        position: absolute;
        width: 1px;
        height: 10px;
        background-color: rgba(255,255,255,.4);
        left: -10px;
        top: 2px;
    }

    .footer__item:first-child::before {
        display: none;
    }

























 .btn__menu {
    display: none;
    width: 25px;
    height: 20px;
    background-color: transparent;
    padding: 0;
    border: none;
    justify-content: center;
    align-items: center;
    position: relative;
 }

 .btn__menu::after,
 .btn__menu::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #D0D0D1;
    left: 0;
    right: 0;
 }

 .btn__menu::after {
    bottom: 0;
 }

 .btn__menu::before {
    top: 0;
 }



 .btn__menu span {
    width: 100%;
    height: 2px;
    background-color: #D0D0D1;
 }

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

@media (max-width:1000px) {
    .btn__menu {
        display: flex;
    }

    .menu {
        margin-left: auto;
        margin-right: 28px;
    }
    .menu__list {
        position: absolute;
        inset: 0;
        flex-direction: column;
        background-color: #161617;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform .3s ease-in-out;
    }

    .menu__list.active {
        transform: translateY(0);
    }

    .logo,
    .btn__menu,
    .header__items {
        position: relative;
        z-index: 10;
    }
}

@media (max-width:840px) {
    .footer__bottom {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }
    .footer__region {
        margin-left: 0;
    }

.footer__nav {
    margin-left: 0;
}
}


@media (max-width:640px) {
    .section-main {
        min-height: 650px;
    }

    .iphone-pro {
        background-image: url(../images/hero_iphone_17_pro_small.jpg);
    }
}

@media (max-width:440px) {
    .footer__list {
        flex-direction: column;
        align-items: start;
    }
    .footer__item::before {
        display: none;
    }
}