
                /* ==============================================GLOBAL======================================== */

main{
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.header--btn{
    max-width: 227px;
}

.container {
    padding-left: 100px;
    padding-right: 100px;
    margin: 0 auto;
    max-width: 100%;
}

.cover__group .error-message{
    max-width: 445px;
}

                /* ==============================================BEST======================================== */

.best {
  background: #D7EEE8;
  display: flex;
  justify-content: space-between;
}

.best__wrapper {
    display: flex;
    max-width: 1340px;
    margin: 0 auto;
}

.best__img {
  position: relative;
  right: 0;
  bottom: 0;
  max-width: 721px;
  margin-left: 32px;
  min-width: 250px;
}

.best__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.best__title__group{
    display: flex;
    flex-direction: column;
    margin-top: 58px;
    max-width: 588px;
    gap: 25px;
}

.btn__group{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.best__text__group{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.best__text__group .text__bold{
    text-transform: uppercase;
}

.best__list{
    display: flex;
    max-width: 476px;
    gap: 28px;
}

.best__list__item{
    max-width: 140px;
}

.best__list__item img{
    width: 100%;
    height: 100%;
}

.best__input{
    border-radius: 12px;
    background-color: #ffffff;
    padding: 19px 20px 19px 47px;
    border: none;
    background-image: url("../images/home/zip.svg");
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 22px 22px;
    color: #01132e;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    border: 1px solid transparent;
    transition: all 250ms ease-out;
}

.best__input:focus{
    outline: none;
    border: 1px solid #10AEAE;
}

.best__input::placeholder{
    color: #56647B;
    font-size: 18px;
    font-weight: 400;
    line-height: 23px;
}

.best__content__wrapper{
    display: flex;
    justify-content: space-between;
}

                /* ===============================================USE================================================== */

.use__wrapper{
    display: flex;
}

.use__wrapper .btn{
    max-width: 212px;
}

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

.use__img {
  max-width: 620px;
  border-radius: 8px;
  margin-right: 54px;
  max-height: 620px;
  overflow: hidden;
}

.use__img img {
  width: 100%;
  height: 100%;
  display: block;
}

.use__content{
    display: flex;
    flex-direction: column;
    gap: 33px;
}

.use__list{
    display: flex;
    flex-direction: column;
    gap: 33px;
}

.use__list__item{
    position: relative;
    padding-left: 90px;
}

.use__list__item p{
    color: #2068CA;
    font-size: 16px;
    font-weight: 600;
    line-height: 144%;
    letter-spacing: 0.32px;
}

.use__list__item span{
    color: #56647B;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.32px;
}

.use__list__item img {
  display: flex;
  width: 28px;
  height: 28px;
  padding: 9px;
  justify-content: center;
  align-items: center;
  border-radius: 78px;
  background: rgba(46, 172, 186, 0.60);
  position: absolute;
  top: -10px;
  left: -90px;
}

.use__list__icon{
    position: relative;
    box-sizing: content-box;
}

.use__list__icon::after{
    content: "";
    position: absolute;
    top: -16px;
    left: -96px;
    background: rgba(16, 174, 174, 0.20);
    width: 58px;
    height: 58px;
    border-radius: 78px;
    z-index: -1;
}


                /* ===============================================COVER============================================== */

.cover .title{
    text-align: center;
}

.cover__cards__wrapper{
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 42px;
    margin-bottom: 42px;
}

.cover__cards{
    display: flex;
    gap: 14px;
    width: 100%;
}

.cover__card{
    display: flex;
    gap: 6px;
    flex: 1; 
    border-radius: 19px;
}

.cover__card:first-child{
    background: linear-gradient(180deg, #F1F4F8 0%, #CCE7E6 100%);
}

.cover__card:last-child{
    background: var(--Grey-50, #F1F4F8);
}

.cover__card__group{
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 50%;
    padding-top: 20px;
    padding-right: 20px;
}

.cover__card__title{
    color: #01132E;
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0.48px;
}

.cover__card__text{
    color: #56647B;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.32px;
}

.cover__card__img{
    max-width: 50%;
    max-height: 177px;
    overflow: hidden;
    border-radius: 19px;
}

.cover__card__img img{
    width: 100%;
    height: 100%;
    display: block;
}

.cover__cards__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 311px;
  gap: 20px;
}

.cover__cards__list__item{
    display: flex;
    padding: 20px 20px 0 20px;
    flex-direction: column;
    gap: 12px;
    border-radius: 19px;
    position: relative;
    overflow: hidden;
    box-sizing: content-box;
}

.cover__cards__list__item p{
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0.48px;
}

.cover__cards__list__item span{
    color: #56647B;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.32px;
    z-index: 1;
}

.cover__cards__list__item:first-child {
  background: linear-gradient(180deg, #83CBB3 0%, #F1F4F8 100%);
}

.cover__cards__list__item:first-child::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 20px;
  width: 130px;
  height: 130px;
  background: url("../images/home/structures.png") no-repeat center/contain;
}

.cover__cards__list__item:nth-child(2){
    background: linear-gradient(180deg, #CDE1FC 0%, #F1F4F8 100%);
}

.cover__cards__list__item:nth-child(2)::after{
    content: "";
    position: absolute;
    bottom: 12px;
    right: 20px;
    width: 130px;
    height: 138px;
    background: url("../images/home/loss.png") no-repeat center/contain;
}

.cover__cards__list__item:nth-child(3){
    background: #F1F4F8;
}

.cover__cards__list__item:nth-child(3)::after{
    content: "";
    position: absolute;
    bottom: 12px;
    right: 20px;
    width: 241px;
    height: 138px;
    background: url("../images/home/liability.png") no-repeat center/contain;
}

.cover__cards__list__item:last-child {
  background: linear-gradient(180deg, #F1F4F8 0%, rgba(144, 209, 216, 0.60) 100%);
}

.cover__cards__list__item:last-child::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 20px;
  width: 130px;
  height: 130px;
  background: url("../images/home/jewerly.png") no-repeat center/contain;
}

.cover__bottom{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-width: 718px;
}

.cover__group .best__input{
    border: 1px solid #C7D4DA;
    min-width: 445px;
}

.cover__group{
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
}

                /* ================================================SHOPPING============================================== */

.shopping__title__group{
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
    margin-bottom: 48px;
}

.shopping__wrapper{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.shopping__card{
    padding: 46px;
    background: #C6E7EF;
    border-radius: 14px;
    display: flex;
    position: relative;
    box-sizing: content-box;
}

.shopping__card__img__mobile  {
    position: absolute;
    content: "";
    top: -5%;
    right: 5%;
    width: 650px;
    height: 721px;
}

.shopping__card__img__mobile img{
    width: 100%;
    height: auto;
}

.shoping__card__text{
    max-width: 530px;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
}

.shopping__list{
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.shopping__list__item{
    display: flex;
    gap: 80px;
    align-items: center;
}

.shopping__list__item__img{
    max-width: 588px;
    max-height: 456px;
    border-radius: 14px;
    overflow: hidden;
}

.shopping__list__item__img img{
    width: 100%;
    height: 100%;
}

.shopping__list__item__content{
    display: flex;
    flex-direction: column;
    max-width: 512px;
}

.shopping__list__item__content .subtitle{
    margin-bottom: 14px;
}

.shopping__list__item__text{
    color: #56647B;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.32px;
}

.shopping__list__item__text span{
    font-weight: 600;
}


            /* =====================================================NEWS================================================= */


.news__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #FFF;
  justify-content: flex-start;
  backdrop-filter: blur(47.6px);
  border-radius: 24px;
  padding: 46px 50px;
  background: 
    linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%),
    url("../images/home/bottomImg.png") center/cover no-repeat,
    #e2f0fc;
}


.news__card__title{
    font-size: 32px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0.64px;
}

.news__card__text{
    font-size: 16px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 0.32px;
    max-width: 530px;
}

.news__card__descr{
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.32px;
}

.news__card__link{
    color: #10AEAE;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.32px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-underline-position: from-font;
}


            /* =============================================POLICY======================================= */
.policy{
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

.policy__list{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
    margin-bottom: 60px;
}

.policy__list__row {
    display: flex;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.policy__list__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    border-radius: 19px;
    background: #F1F4F8;
    gap: 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0.48px;
    border: 3px solid #F1F4F8;
    transition: all .3s;
    z-index: 1;
    text-align: left;
}

.policy__list__item p{
    margin-left: 48px;
}

.policy__list__item img {
  display: flex;
  width: 28px;
  height: 28px;
  padding: 9px;
  justify-content: center;
  align-items: center;
  border-radius: 78px;
  background: linear-gradient(180deg, #28C0D7 0%, #5391CB 100%);
  position: absolute;
  top: -24px;
  left: 0px;
  transition: all .3s;
}

.policy__list__icon{
    position: relative;
    box-sizing: content-box;
}

.policy__list__icon::after{
    content: "";
    position: absolute;
    top: -30px;
    left: -6px;
    background: rgba(16, 174, 174, 0.20);
    width: 58px;
    height: 58px;
    border-radius: 78px;
    z-index: 2;
}

.policy__btn__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 43px;
}


            /* ========================================================QUESTIONS============================================= */

.questions__wrapper{
    display: flex;
    flex-direction: column;
    gap: 43px;
    text-align: center;
    justify-content: center;
    align-items: center;
}



                /* =========================================BRANDS============================================== */

.brands__wrapper{
    overflow-x: auto;
}

.brands__list{
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 27px;
}

.brands__list__item{
    max-width: 79px;
    max-height: 49px;
}

.brands__list__item img{
    width: 100%;
    height: auto;
}

.brands__text__group{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    margin-bottom: 50px;
}

.brands__text{
    color: #2A313C;
    text-align: center;
    font-family: Sora;
    font-size: 16px;
    font-weight: 200;
    line-height: 130%;
}





            /* ==============================================MEDIA======================================================== */

            
@media(max-width: 1300px){

  .shopping__card__img__mobile{
    max-width: 500px;
    min-width: 450px;
    top:5%;
    right: 0;
    }
}

@media(max-width: 1240px){

    .shopping__card{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 26px;
    }

  .shopping__card__img__mobile{
        position: static;
        height: auto;
    }
}

@media (max-width: 1100px) {

  .best{
    flex-direction: column;
  }

  .best__wrapper{
    margin-left: 0;
  }

  .best__img{
    margin-left: 0;
    right: -100px;
  }

  .main__title{
    font-size: 50px;
  }

  .title{
    font-size: 40px;
  }

  .brands {
    overflow: hidden;
    position: relative;
    }

    .brands__list {
        display: flex;
        gap: 40px;
        list-style: none;
        padding: 0;
        min-width: max-content;
    }

    .brands__list__item img {
        height: 50px;
        flex-shrink: 0;
    }

    .container{
        padding-left: 50px;
        padding-right: 50px;    
    }
}

@media (max-width: 900px) {
    .subtitle{
        font-size: 28px;
    }

    .use__wrapper{
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        gap: 44px;
    }

    .use__wrapper .title{
        text-align: center;
    }

    .cover__card__title, .cover__cards__list__item p, .policy__list__item{
        font-size: 20px;
    }

    .cover__cards__list__item span, .cover__card__text, .shopping__list__item__text{
        font-size: 14px;
    }

    .subtitle{
        font-size: 28px;
    }

    .cover__bottom, .cover__group{
        justify-content: flex-start;
        min-width: auto;
    }

    .cover__group .best__input{
        min-width: auto;
    }

    .best__img{
        right: 0;
    }

    .cover__group .error-message{
        max-width: 260px;
    }

    .best__content__wrapper{
        flex-direction: column;
    }
}

@media (max-width: 800px){
    .cover__cards{
        flex-direction: column;
    }

    .shopping__list__item:first-child, .shopping__list__item:nth-child(3){
        flex-direction: column;
    }

    .shopping__list__item:nth-child(2), .shopping__list__item:nth-child(4){
        flex-direction: column-reverse;
    }

    main{
        gap: 50px;
    }
}

@media (max-width: 650px){
    .main__title{
        font-size: 34px;
    }

    .title{
        font-size: 30px;
    }

    .use__list__item span{
        font-size: 14px;
    }

    .subtitle{
        font-size: 20px;
    }

    .cover__card{
        flex-direction: column-reverse;
        padding: 20px 20px 0 20px;
    }

    .cover__group input{
        width: 100%;
    }

    .cover__card__group {
        max-width: 100%;
        padding-top: 0;
        padding-right: 0;
        align-items: center;
        justify-content: center;
    }

    .policy__list__item{
        font-size: 18px;
    }

    .cover__bottom, .cover__group{
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 450px){
  .use__img{
        margin-right: 0;
    }

  .news__card {
        min-height: 784px;
        background:url("../images/home/bottomImgMobile.png") center/cover no-repeat;
        position: relative;
    }

    .news__card::after{
        position: absolute;
        content: "";
        background: url("../images/home/bottomGrad.png");
        top:0;
        right: 0;
        width: 100%;
        height: 45%;
        z-index: -1;
    }

    .shopping__card__img__mobile{
        width: 325px;
}
}