:root{
    --black: #222;
    --black_bg: #3333;
    --btn_bg : #e01935;
}

header{
    margin-bottom: 100px;
}
.show-modal--error{
    cursor: pointer;
}
.top-header{
 padding: 15px 0;
 background-color: var(--black);
}
.top-header__content{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.top-header__content p{
    color: white;
}
.add-brand{
    border: 1px solid var(--btn_bg);
    border-radius: 20px;
    padding: 10px;
    font-weight: 400;
    font-size: 14px;
    min-width: 189px;
    background: var(--btn_bg);
    color: white;
}
.middle-header{
    border-bottom: 1px solid var(--black_bg); 
}
.middle-header__content{
    display: flex;
    align-items: center;
    gap: 100px;
    padding: 15px 0;
    position: relative;
}
.middle-header__content-menu{
    display: flex;
    gap: 20px;
}
.middle-header__content-menu a{
    color: var(--black);
    font-weight: 600;
}
.main-title{
    font-family: 'PlayfairDisplay';
    font-size: 60px;
    line-height: 110%;
    text-align: center;
    color: var(--black);
    max-width: 530px;
    margin: 0 auto 50px auto;
    font-weight: 600;
}
.main-text{
    
    max-width: 1105px;
    margin: 0 auto 50px auto;

}
.main-text p{
    font-family: 'Geologica';
    font-size: 24px;
    margin-bottom: 20px;
}
.main-btns{
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}
.main-btn{
    font-weight: 400;
    font-size: 20px;
    background-color: transparent;
    color: var(--btn_bg);
    padding: 25px;
    min-width: 267px;
    text-align: center;
    border:1px solid var(--btn_bg);
}
.main-btn--dark{
    background-color: var(--btn_bg);
    color: white;
}
section{
    padding-bottom: 50px;
}
.section-title{
    font-family: 'PlayfairDisplay';
    font-size: 45px;
    color: var(--black);
    font-weight:600 ;
    margin-bottom: 50px;
}
.popular-brand .row{
    gap: 30px 0;
}
.popular-brand__items{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    justify-content: space-between;
    height: 100%;
}
.popular-brand-item img{
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}
.popular-brand-item--horizontal img{
    max-height: 316px;
}
.catalog__card{
    position: relative;
    -webkit-box-shadow: -1px 1px 10px 2px rgba(0, 0, 0, 0.51);
    -moz-box-shadow: -1px 1px 10px 2px rgba(0, 0, 0, 0.51);
    box-shadow: -1px 1px 10px 2px rgba(0, 0, 0, 0.51);
    padding: 15px;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
}
.catalog__card-title{
    text-align: center;
    display: block;
    color: var(--black);
}
.catalog__card-image img{
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    height: 100%;
    width: 100%;
}
.catalog__card-image{
    margin-bottom: 10px;
}
.catalog__switcher{
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}
.catalog__switcher button{
    border:none;
    background: none;
    font-size: 18px;
    font-style: italic;
    position: relative;
}
.catalog__switcher button::after{
    content: '/';
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    margin: auto;
}
.catalog__card-brand{
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: red;
    overflow: hidden;
}
.catalog__card-brand img{
    max-width: 100%;
    width: 100%;
    height: 100%;
}
.catalog-container .row{
    gap: 24px 0;
}
.catalog__search{
    margin-bottom: 40px;
}
.catalog__search input{
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid gray;
    font-size: 18px;
}
footer{
    padding: 15px 0;
    border-top: 1px solid var(--black_bg);
}
.footer__items{
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    flex-wrap: wrap;

}
.footer__items a, .footer__items p{
    color: var(--black);

}
.middle-header__content-logo{
    z-index: 2;
}
.middle-header__content-burger{
    margin-left: auto;
    display: none;
    z-index: 2;
}
.no-scroll{
    overflow: hidden;
}
/* burger */
.menu-toggle {
    cursor: pointer;
    --_height: 2px;
    --_width: 2.3rem;
    --_center: calc(50% - var(--_height) / 2);
    width: var(--_width);
  }
  .menu-toggle .burger {
    height: 1.5rem;
    position: relative;
  }
  .menu-toggle .burger .line {
    width: var(--_width);
    height: var(--_height);
    background-color: #000000;
    position: absolute;
    transition: all 200ms;
  }
  .menu-toggle .burger .line:nth-child(1) {
    top: 0;
  }
  .menu-toggle .burger .line:nth-child(2) {
    top: var(--_center);
  }
  .menu-toggle .burger .line:nth-child(3) {
    top: calc(100% - var(--_height));
  }
  .menu-toggle[data-open="true"] .burger .line {
    transition: all 200ms;
  }
  .menu-toggle[data-open="true"] .burger .line:nth-child(1) {
    top: var(--_center);
    transform: rotate(45deg);
  }
  .menu-toggle[data-open="true"] .burger .line:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[data-open="true"] .burger .line:nth-child(3) {
    top: var(--_center);
    transform: rotate(-45deg);
  }
  .menu-toggle.-basic .burger .line {
    transition: top 0.2s 0.2s, transform 0.2s, opacity 0.2s;
  }
  .menu-toggle.-basic[data-open="true"] .burger .line {
    transition: top 0.2s, transform 0.2s 0.2s, opacity 0.2s 0.15s;
  }
  .menu-toggle.-basic[data-open="true"] .burger .line:nth-child(2) {
    opacity: 0;
  }
  
/* burger */
/* breadrscrumbs */
.breadrscrumbs ul{
    display: flex;
    align-items: center;
    gap: 40px;
 }
 .breadrscrumbs li > a span, .breadrscrumbs li span{
    color: var(--black);
    font-size: 14px;
    opacity: 1;
 }
 .breadrscrumbs li span{
    color: var(--black);
    opacity: 0.7;
 }
 .breadrscrumbs li a{
    position: relative;
 }
 .breadrscrumbs li a::after{
    content: '/';
    position: absolute;
    right: -20px;
    color: var(--black);
 }
/* breadrscrumbs */
/* detail_card */
.detail-card__image{
    overflow: hidden;
}
.detail-card__image img{
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}
.detail-card__title{
    font-size: 40px;
    font-weight: 600;
    font-family: 'PlayfairDisplay';
    margin-bottom: 40px;
}
.detail-card__description p{
    font-size: 16px;
    line-height: 1.2;
}
.detail-card__info ul{
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.detail-card__info ul li{
    display: flex;
    align-items: center;
    gap: 20px;
}
.detail-card__info-value a{
    color: var(--btn_bg);
}
/* detail_card */
/* brand__images */
.brand__images .row{
    gap: 24px 0;
}
.brand__image img{
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    height: auto;
}
/* brand__images */
/* same-brand */
.same-brand .row{
    gap: 24px 0;
}
/* same-brand */
/* append-own-brand */
.append-own-brand .section-title{
    margin-bottom: 20px;
}
.append-own-brand .add-brand{
    max-width: 460px;
    width: 100%;
    font-size: 18px;
    padding: 15px;
    margin: auto;
    text-align: center;
    display: block;
    margin-bottom: 50px;
}
.will-be-form{
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black_bg);
}

/* append-own-brand */

/* brand-form */
.append-brand{
    background-color: var(--black_bg);
    padding: 40px;
    border-radius: 30px;
}
.append-brand form{
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.append-brand form label{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.append-brand form span{
    font-size: 16px;
    color: var(--black);
    line-height: 1.2;
}
.append-brand form span>span{
    font-size: 12px;
    color: var(--btn_bg);
    font-family: Arial, Helvetica, sans-serif;
}
.append-brand form input, .append-brand form textarea{
    font-size: 16px;
    color: var(--black);
    line-height: 1.2;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid gray;    
}
.append-brand form input::placeholder{
    color: var(--black_bg);
}

.modal-header .close {
    color: #4b4b4b;
    opacity: 1;
    font-weight: 300;
    font-size: 46px;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    position: absolute;
    right: 8px;
    top: 5px;
}
.modal-title {
    color: var(--black);
    text-align: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 90%;
    text-transform: uppercase;
    margin-bottom: 0px;
    padding-top: 25px;
}
.modal .append-brand{
    background: none;
}
.modal-header {
    padding: 0;
    flex-direction: column;
    border: none;
}
@media(max-width:991px){
    .detail-card__title:not(.detail-card__title--mobile){
        display: none;
    }
    .detail-card__title{
        margin-bottom: 40px;
    }
    .detail-card__image{
        margin-bottom: 40px;
    }
}
@media(max-width:767px){
    /* detail_card */
    .detail-card__info ul{
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    /* detail_card */
    .footer__items{
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
@media(max-width:575px){
    .middle-header__content-nav{
        display: none;
    }
    .middle-header__content-burger{
        display: block;
    }
    .top-header__content{
        flex-direction: column;
        text-align: center;
    }
  
    .main-title{
        font-size: 36px;
    }
    .main-text p{
        font-size: 16px;
    }
    .main-btns{
        gap: 20px;
    }
    .main-btn{
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        padding: 20px;

    }
    .header__mobile-menu {
        display: block;
        position: absolute;
        top: 0;
        right: -12px;
        background-color: white;
        height: 900px;
        width: 100vw;
        z-index: 1;
    }
    .middle-header__content-menu{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 110px 0;
    }
    .middle-header__content-menu a{
        font-size: 18px;
    }
    .middle-header__content-menu li{
        border-bottom: 1px solid var(--black_bg);
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
    }
    .section-title{
        font-size: 40px;
    }
    /* detail_card */
    .detail-card__description p{
        font-size: 14px;
    }
    /* detail_card */

    .modal-title{
        font-size: 32px;
    }
}