/* Width display 320 px */
@media (min-width: 320px){
    .grid-wrapper{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 118px 1fr 50px;
    grid-template-areas: "hd"
                         "mn"
                         "ft";
    padding: 0 10px;
    }
    header{
        .header__inner{
            .header__item{
                .logo{
                    width: 136px;
                }
                .search{
                    display: none;
                }
                .sub-acc{
                    display: none;
                }
                .balance{
                    display: none;
                }
                .service-btns{
                    .btnsTp{
                        display: flex;
                    }
                    .btnsMg{
                        display: flex;
                    }
                    .btnsHp{
                        display: none;
                    }
                    .btnsAc{
                        display: none;
                    }
                    .btnsMn{
                        display: flex;
                    }
                }
            }
        }
    }
    .aside{
        display: none;
    }
    main{
        padding: 0 0 0 0;
        section{
            .welcome-card{
                height: 600px;
                background-size: cover;
                .title{
                    font-size: 28px;
                    margin-bottom: 130px;
                }
                .small-card-wrapper{
                    padding: 0 20px;
                    .card{
                        flex-direction: row;
                        justify-content: space-between;
                        width: 100%;
                        height: 64px;
                        margin-top: -12px;
                        padding: 20px;
                    }
                }
            }
        }
    }
    .main__inner{
        .main__item{
            width: 100%;
            max-width: 100%;
        }
        .main__item-full{
            padding: 20px;
            min-width: 0;
        }
        .main__item-ha{
            max-width: 100%;
            min-width: 0;
            padding: 20px;
        }
    }
    .select-period{
        .period{
            height: 48px;
            padding: 8px 10px;
        }
    }
    .card-bg-a, .card-bg-c{
        background-size: cover;
    }
}
/* -------------------------------------- */

/* Width display 576 px */
@media (min-width: 576px){
    .grid-wrapper{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 118px 1fr 50px;
    grid-template-areas: "hd"
                         "mn"
                         "ft";
    padding: 0 10px;
    }
    header{
        .header__inner{
            .header__item{
                .logo{
                    width: 136px;
                }
                .search{
                    display: none;
                }
                .sub-acc{
                    display: none;
                }
                .balance{
                    display: none;
                }
                .service-btns{
                    .btnsTp{
                        display: flex;
                    }
                    .btnsMg{
                        display: flex;
                    }
                    .btnsHp{
                        display: none;
                    }
                    .btnsAc{
                        display: none;
                    }
                    .btnsMn{
                        display: flex;
                    }
                }
            }
        }
    }
    .aside{
        display: none;
    }
    main{
        padding: 0 0 0 0;
        section{
            .welcome-card{
                height: 600px;
                background-size: cover;
                .title{
                    font-size: 28px;
                    margin-bottom: 130px;
                }
                .small-card-wrapper{
                    padding: 0 20px;
                    .card{
                        flex-direction: row;
                        justify-content: space-between;
                        width: 100%;
                        height: 64px;
                        margin-top: -12px;
                        padding: 20px;
                    }
                }
            }
        }
    }
    .main__inner{
        .main__item{
            width: 100%;
            max-width: 100%;
        }
        .main__item-full{
            padding: 40px;
            min-width: 0;
        }
        .main__item-ha{
            max-width: 100%;
            min-width: 0;
            padding: 40px;
        }
    }
    .select-period{
        .period{
            height: 44px;
            padding: 8px 20px;
        }
    }
    .card-bg-a, .card-bg-c{
        background-size: cover;
    }
}
/* -------------------------------------- */

/* Width display 768 px */
@media (min-width: 768px){
    .grid-wrapper{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 118px 1fr 50px;
    grid-template-areas: "hd"
                         "mn"
                         "ft";
    padding: 0 10px;
}
    header{
        .header__inner{
            .header__item{
                .logo{
                    width: 200px;
                }
                .search{
                    display: none;
                }
                .sub-acc{
                    display: none;
                }
                .balance{
                    display: none;
                }
                .service-btns{
                    .btnsTp{
                        display: flex;
                    }
                    .btnsMg{
                        display: flex;
                    }
                    .btnsHp{
                        display: none;
                    }
                    .btnsAc{
                        display: none;
                    }
                    .btnsMn{
                        display: flex;
                    }
                }
            }
        }
    }
    .aside{
        display: none;
    }
    main{
        padding: 0 0 0 0;
        section{
            .welcome-card{
                height: 600px;
                background-size: cover;
                .title{
                    font-size: 28px;
                    margin-bottom: 126px;
                }
                .small-card-wrapper{
                    padding: 0 40px;
                    .card{
                        flex-direction: row;
                        justify-content: space-between;
                        width: 100%;
                        height: 64px;
                        margin-top: -12px;
                        padding: 20px;
                    }
                }
            }
        }
    }
    .main__inner{
        .main__item{
            width: 100%;
            max-width: 100%;
        }
        .main__item-full{
            min-width: 400px;
        }
        .main__item-ha{
            max-width: 100%;
            min-width: 0;
        }
    }
    .select-period{
        .period{
            height: 35px;
        }
    }
    .card-bg-a, .card-bg-c{
        background-size: contain;
    }
}
/* -------------------------------------- */

/* Width display 992 px */
@media (min-width: 992px){
    .grid-wrapper{
    display: grid;
    grid-template-columns: 180px 1fr;
    grid-template-rows: 118px 1fr 50px;
    grid-template-areas: "hd hd"
                         "as mn"
                         "as ft";
    padding: 0 40px;
}
    header{
        .header__inner{
            .header__item{
                .logo{
                    width: 202px;
                }
                .search{
                    display: none;
                }
                .sub-acc{
                    display: none;
                }
                .balance{
                    display: flex;
                }
                .service-btns{
                    .btnsTp{
                        display: flex;
                    }
                    .btnsMg{
                        display: flex;
                    }
                    .btnsHp{
                        display: flex;
                    }
                    .btnsAc{
                        display: flex;
                    }
                    .btnsMn{
                        display: none;
                    }
                }
            }
        }
    }
    .aside{
        display: block;
    }
    main{
        padding: 0 0 0 20px;
        section{
            .welcome-card{
                height: 600px;
                background-size: cover;
                .title{
                    font-size: 34px;
                    margin-bottom: 90px;
                }
                .small-card-wrapper{
                    padding: 0 40px;
                    .card{
                        flex-direction: row;
                        justify-content: space-between;
                        width: 100%;
                        height: 64px;
                        margin-top: -12px;
                        padding: 20px;
                    }
                }
            }
        }
    }
    .main__inner{
        .main__item{
            max-width: calc(50% - 10px);
            min-width: 400px;
        }
        .main__item-ha{
            max-width: calc(50% - 10px);
            min-width: 400px;
        }
    }
}
/* -------------------------------------- */

/* Width display 1200 px */
@media (min-width: 1200px){
    .grid-wrapper{
    display: grid;
    grid-template-columns: 180px 1fr;
    grid-template-rows: 118px 1fr 50px;
    grid-template-areas: "hd hd"
                         "as mn"
                         "as ft";
    padding: 0 40px;
}
    header{
        .header__inner{
            .header__item{
                .search{
                    display: flex;
                }
                .sub-acc{
                    display: flex;
                }
            }
        }
    }
    .aside{
        display: block;
    }
    main{
        padding: 0 0 0 20px;
        section{
            .welcome-card{
                height: 600px;
                background-size: contain;
                .title{
                    font-size: 34px;
                    margin-bottom: 0;
                }
                .small-card-wrapper{
                    padding: 0 40px;
                    .card{
                        flex-direction: column;
                        width: 236px;
                        height: 113px;
                        margin-top: 51px;
                        padding: 20px;
                    }
                }
            }
        }
    }
    .main__inner{
        .main__item{
            /* max-width: 100%; */
            max-width: calc(50% - 10px);
            min-width: 400px;
        }
        .main__item-ha{
            max-width: calc(50% - 10px);
            min-width: 400px;
        }
    }
}
/* -------------------------------------- */

/* Width display 1440 px */
@media (min-width: 1440px){
    main{
        section{
            .welcome-card{
                height: 400px;
                background-size: contain;
                .small-card-wrapper{
                    .card{
                        flex-direction: column;
                        width: 236px;
                        height: 113px;
                        margin-top: 51px;
                        padding: 20px;
                    }
                }
            }
        }
    }
    .main__inner{
        .main__item{
            max-width: calc(50% - 10px);
            min-width: 400px;
        }
        .main__item-ha{
            max-width: calc(50% - 10px);
            min-width: 400px;
        }
    }
}

.select-period .topups-filter__period{
    height: 42px;
    padding: 0 18px;
}

@media (max-width: 640px){
    .select-period .topups-filter__period{
        height: 44px;
        padding: 0 14px;
    }
}
