html {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    font: 15px/25px "Montserrat", Arial, sans-serif;
    background: #0B1D47;
}

a { color:#fff; }

.main_wrap{
    max-width: 1488px;
    padding: 0 30px 60px;
    margin: 0 auto;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}
.header{
    z-index: 1;
}
.footer{
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 46px;
}
.colored_theme_svg{
	fill: #3860D9
}
.header-wrapper {
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding: 27px 40px 27px;
}
.bg_overlay{
    background: url("../images/startmax.jpg") no-repeat;
	background-size: cover;
    background-position: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
    opacity: 0.5;
}
.demo_link{
    display: block;
    text-decoration: none;
	color: #fff;
    font-size: 14px;
    line-height: 17px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
    border-radius: 4px;
}
.bg_hover{
    -moz-transition:background-color .3s ease, color .3s ease;
    -ms-transition:background-color .3s ease, color .3s ease;
    -o-transition:background-color .3s ease, color .3s ease;
    -webkit-transition:background-color .3s ease, color .3s ease;
    transition:background-color .3s ease, color .3s ease;
}
.bg_hover:hover{
    background: #3860D9;
    border-color: #3860D9;
}
.bg_button{
    background: #3860D9;
    border-color: #3860D9;
}
.top_block__title{
    margin-top: 31px;
    font-weight: normal;
    font-size: 50px;
    line-height: 61px;
    text-align: center;
    color: #FFFFFF;
}
.top_block__description{
    margin-top: 22px;
    font-weight: normal;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    color: #FFFFFF;
}
.thematics__item{
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 14px;
    line-height: 17px;
    color: #333333;
    display: inline-block;
    padding: 9px 14px;
    margin-left: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}
.thematics__item:first-child{
    margin-left: 0;
}
.thematics__item:hover{
    color: #fff;
}
.thematics{
    text-align: center;
    margin-top: 56px;
}
.presets__group_title{
    font-weight: bold;
    font-size: 24px;
    line-height: 29px;
    color: #FFFFFF;
    margin-bottom: 34px;
}
.presets__preview {
    padding-top: 69%;
}
.presets__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    grid-gap: 48px;
}
.presets__preview{
    background-repeat: no-repeat;
    background-size: cover;
    box-sizing: border-box;
    border-radius: 4px;
    position: relative;
}
.presets__button {
    font-size: 13px;
    line-height: 16px;
    color: #FFFFFF;
    padding: 10px 20px 12px;
    background: #3860D9;    
    border-radius: 4px;
}
.presets__preview .button_wrap{
    position: absolute;
    top: calc(50% - 14px);
    left: 0;
    right: 0;
    text-align: center;
}
.presets__item .presets__preview:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #060C26;
    opacity: 0;
    border-radius: 4px;
    transition: .35s opacity;
}
.presets__item:hover .presets__preview:before{
    opacity: .6;
}
.presets__button{
    opacity: 0;
    transition: .35s opacity;
}
.presets__item:hover .presets__button{
    opacity: 1;
}
.presets__item{
    position: relative;
}
a.presets__link {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.presets__name{
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
    margin-top: 15px;
}
.presets__group{
    margin-top: 54px;
}
.hidden{
    display: none;
}
.thematics__item.active {
    background: #3860D9;
    border-color: #3860D9;
    color: #fff;
}
.sticker{
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.08em;
    font-weight: normal;
    color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
    border-radius: 3px;
    padding: 3px 5px 2px;
    vertical-align: middle;
    margin-left: 12px;
}
.sticker--NEW{
    background: #53B127;
}
.logo a{
    display: flex;
    margin-top: -1px;
}
.presets__group{
    opacity: 1;
    transition: .25s opacity, 0.5s transform;
    transform: translateY(0);
}
.opacity-0{
    opacity: 0;
    transform: translateY(25px);
}
.presets{
    overflow: hidden;
    padding-bottom: 50px;
}
.footer__copy{
    font-size: 12px;
    line-height: 15px;
    color: #FFFFFF;
    opacity: 0.75;
    margin-top: 13px;
}

@media(max-width: 767px){
    .main_wrap{
        padding: 0 20px;
    }
    .top_block__title {
        font-size: 35px;
        line-height: 40px;
        margin-top: 25px;
    }
    .top_block__description {
        display: none;
    }
    .header-wrapper {
        padding: 18px 20px 18px;
    }
    .thematics {
        margin-top: 40px;
    }
    .presets__group {
        margin-top: 34px;
    }
    .presets__group_title {
        font-size: 24px;
        line-height: 29px;
        margin-bottom: 20px;
    }
    .presets__items {
        grid-gap: 24px;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .thematics {
        -webkit-overflow-scrolling: auto;
        white-space: nowrap;
        display: flex;
        overflow: auto;
        flex-wrap: nowrap;
        justify-content: normal;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -10px;
        padding: 0 20px 2px 20px;
    }
    .thematics__item {
        flex-shrink: 0;
        white-space: normal;
    }
}
@media(max-width: 450px){
    .logo svg {
        max-width: 142px;
    }
    .demo_link {
        font-size: 12px;
        padding: 8px 16px;
        line-height: 15px;
    }
}
@media(max-width: 350px){
    .top_block__title {
        font-size: 31px;
        line-height: 35px;
    }
}


.presets.other { padding-bottom: 70px; border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15); margin-top: 20px; }

@media not all and (hover: none) {
	.presets.other { opcity:0.8; }
	.presets.other:hover { opcity: 1; }
}

.presets.other .presets__group_title { font-weight:normal; } 
.presets.other .presets__items { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
