#main-slider .swiper-button-next,
#main-slider .swiper-button-prev {
    bottom: 20px;
    top: auto;
}

#main-slider .swiper-button-next {
    right: 10px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23fff'%2F%3E%3C%2Fsvg%3E");
}

#main-slider .swiper-button-prev {
    left: 10px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23fff'%2F%3E%3C%2Fsvg%3E");
}

/* * * */
.auth-title{
    color: #af9e88;
    font-style: italic;
    font-weight: 600;
}
.auth-row{
    padding: 0 0 15px 0;
}

.auth-form tbody{
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* * * */

.main-best {
    height: 600px;
    background-image: url("/local/templates/avel/images/content/best.png");
    background-position: center;
    background-repeat: no-repeat;
}

.main-best__title {
    font-weight: 600;
    font-size: 40px;
    color: white;
    text-align: center;
    text-transform: uppercase;
    padding: 40px 0;
}

.main-best__item {
    padding: 10px 15px;
    height: 180px;
}

.main-best__item-body {
    background-color: rgb(74, 67, 61);
    opacity: 0.7;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5px 0 20px;
}

.main-best__item-image {
    width: 72px;
    height: 72px;
    margin-right: 10px;
}

.main-best__item-text {
    color: white;
    font-style: italic;
    margin: 0;
    width: calc(100% - 72px);
}

/* * * */

.main-about {
    margin-top: 60px;
    margin-bottom: 45px;
}

.main-about h1,
.main-about h2 {
    font-size: 40px;
    font-family: "Ubuntu";
    color: rgb(175, 158, 136);
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
}

.main-about img {
    max-width: 100%;
    height: auto;
}

/* * * * */
.catalog-sections__title{
    font-size: 40px;
    color: rgb(175, 158, 136);
    font-weight: bold;
    text-transform: uppercase;
    margin: 30px auto;
    text-align: center;
}
.catalog-sections {
    height: 800px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 30px;
}

.catalog-section {
    position: relative;
    display: flex;
    margin-right: 10px;
    margin-left: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
    text-decoration: none;
}

.catalog-section:nth-child(5){
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-section:nth-child(1),
.catalog-section:nth-child(6) {
    height: 450px;
}

.catalog-section:nth-child(2),
.catalog-section:nth-child(3),
.catalog-section:nth-child(4),
.catalog-section:nth-child(7) {
    height: 240px;
}

.catalog-section:nth-child(1),
.catalog-section:nth-child(3),
.catalog-section:nth-child(4),
.catalog-section:nth-child(6){
    margin-bottom: 30px;
    padding-top: 80px;
    align-items: flex-start;
    justify-content: center;
}

.catalog-section:nth-child(2),
.catalog-section:nth-child(7){
    padding-bottom: 50px;
    align-items: flex-end;
    justify-content: center;
}

.catalog-section__active{
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(52, 49, 45, 0.7);
    top:0;
    left:0;
    padding: 10px;
    align-items: center;
    justify-content: center;
    z-index: 0;
}
.catalog-section__active-border{
    width: 100%;
    height: 100%;
    border: 1px solid #b5b3b2;
}
.catalog-section__name-block{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b5b3b2;
    width: 280px;
    height: 80px;
    padding: 10px;
    position: relative;
    z-index: 1;
}
.catalog-section__name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #4a433d;
    color: white;
    font-size: 28px;
    text-transform: uppercase;
    text-decoration: none;
}

.catalog-section:hover{
    text-decoration: none;
}
.catalog-section:hover .catalog-section__name-block{
    border: none;
}
.catalog-section:hover .catalog-section__name{
    background: #252220;
}
.catalog-section:hover .catalog-section__active{
    display: flex;
}

/* * * * */

/* adaptive */
@media (max-width: 1023px) {
    .row.swiper-container {
        display: none;
    }

    .catalog-sections__title {
        font-size: 25px;
    }

    .row.catalog-sections-main .catalog-sections {
        height: auto;
        flex-direction: row;
        padding: 0 15px;
    }
    .row.catalog-sections-main .catalog-section {
        height: 280px;
        padding: 0px;
        align-items: center;
        margin-bottom: 30px;
        width: calc(50% - 20px);
    }

    .main-best {
        height: auto;
        background-size: auto 100%;
        padding-bottom: 30px;
    }

    .main-about__image {
        display: none;
    }
}

@media (max-width: 500px) {
    .row.catalog-sections-main .catalog-section {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
    .row.catalog-sections-main .catalog-sections {
        height: auto;
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    .main-best__item-image{
        display: none;
    }

    .main-best__title, .main-about h1, .main-about h2 {
        font-size: 25px;
    }
    .main-best__item-body {
        justify-content: center;
        padding: 5px;
    }
    .main-best__item-text{
        text-align: center;
    }
}

/* * * * */
.catalog-card {
    position: relative;
}

.label-block{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 15px;
    left: 0;
    align-items: baseline;
}
.label-block__action{
    background-color: #d81551;
}
.label-block__topsale{
    background-color: #4da993;
}
.label-block__new{
    background-color: #34312d;
}
.label-block__action,
.label-block__topsale,
.label-block__new{
    position: relative;
    color: white;
    padding-left: 5px;
    font-style: italic;
    font-size: 12px;
    height: 25px;
    display: flex;
    align-items: center;
    margin-top: 5px;
    padding-right: 5px;
}
.label-block__action::after{
    border-top: 25px solid #d81551;
    content:'';
    display: block;
    border-right: 15px solid transparent;
    position: absolute;
    right: -15px;
}
.label-block__topsale::after{
    border-top: 25px solid #4da993;
    content:'';
    display: block;
    border-right: 15px solid transparent;
    position: absolute;
    right: -15px;
}
.label-block__new::after{
    border-top: 25px solid #34312d;
    content:'';
    display: block;
    border-right: 15px solid transparent;
    position: absolute;
    right: -15px;
}
