:root {
    /* color */
    --darck: #343a40;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --white: #fff;
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #28a745;
    --info: #17a2b8;
    --primary: #007bff;
    --img-bgc: #f3f3f3;

    /* size */
    --sm:576px;
    --md:768px;
    --lg:992px;
    --e-lg:1200px;
}

/* basic */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;500;700&display=swap');

html {
    font-size: 15px;
}
@media screen and (min-width: 768px) {
    html {
        font-size: 17px;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--darck);
    font-weight: 300;
    line-height: 1.5;
    min-height: 100vh;
}

.c {
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 1320px;
}

/* body */
.blur {
    filter: blur(5px);
}

/* header */
.header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 4rem;
    background-color: var(--darck);
    color: var(--white);
}
@media screen and (min-width: 1200px) {
    .header {
        margin-bottom: 5rem;
    }
}

.logo{
    background-color: var(--darck);
    color: #fff;
    font-size: 1.25em;
    padding: 0.25em .5em;
    display: inline-block;
}
.logo-mobile{
    border: 1px solid #fff;
}
.logo span{
    color: #10d83e;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.mobile-menu-button-open {
    height: 40px;
    width: 40px;
    cursor: pointer;
    background-image: url();
}

.header-links {
    display: none;
}

/* mobile-menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: var(--darck);
    z-index: 999;
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

.mobile-menu-show {
    display: flex;
}

.mobile-menu-links {
    margin-bottom: 2rem;
}

.mobile-menu-links a {
    font-size: 18px;
    display: block;
    padding: 5px;
}

.mobile-menu-button-close {
    display: inline-block;
    height: 50px;
    width: 50px;
    border: 1px solid var(--white);
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
}

.mobile-menu-footer__phone {
    font-size: 18px;
}
@media screen and (min-width: 992px) {
    .mobile-menu-button-open{
        display: none;
    }

    .mobile-menu {
        display: block;
        position: relative;
        background-color: inherit;
        z-index: 0;
        color: inherit;
        text-align: inherit;
        padding: 0;
    }
    .mobile-menu-header{
        display: none;
    }

    .mobile-menu-links {
        margin:0;
        display: flex;
        gap: 1.5rem;
    }

    .mobile-menu-links a {
        font-size: 1rem;
        display: block;
        padding: 5px;
    }

    .mobile-menu-button-close {
        display: none;
    }

    .mobile-menu-footer__phone {
        display: none;
    }
}






/* content */
/* product index*/
.product-index {
    display: block;
    color: inherit;
    margin: 0 auto 4rem;
    break-inside: avoid;
}
.product-index__img {
    background-color: var(--img-bgc);
    padding: 2rem;
    margin-bottom: 0.5rem;
    width: 100%;
    object-fit: contain;
}
.product-index__title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: .25rem;
}
.product-index__second-title {
    margin-bottom: .25rem;
}
@media screen and (min-width: 576px) {
    .product-index-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);;
        gap: 4rem 2rem;
        align-items: start;
        justify-content: center;
        margin: 0 auto 4rem;
    }
    .product-index {
        margin: 0;
    }
    .product-index__img {
        height: 250px;
    }
}
@media screen and (min-width: 992px) {
    .product-index-grid{
        grid-template-columns: repeat(3, 1fr);;
    }
}

@media screen and (min-width: 1200px) {
    .product-index-grid{
        grid-template-columns: repeat(2, 1fr);;
        gap: 5rem;
    }
    .product-index__img {
        height: 425px;
    }
    .product-index-grid-mb{
        display: block;
    }
}






/* product show */
.product {
    margin: auto;
    max-width: var(--sm);
    margin-bottom: 4rem;
}

.swiper {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--img-bgc);
    margin-bottom: 1rem;
    overflow: hidden !important;
}

.product-img__img {
    height: 100%;
    width: 100%;
    padding: 2rem;
    object-fit: contain;
}

.product-specification__name {
    font-size: 1.5rem;
    font-weight: 500;
}

.product-specification__second-name {
    font-size: 1.25rem;
}

.product-specification__price {
    font-size: 1.5rem;
}

.product-specification__vendor-code, .product-specification__price, .product-specification__description, .product-specification__details {
    margin-bottom: 1rem;
}
.product-specification > *:last-child{
    margin-bottom: inherit;
}



/* product show media */
@media (992px <= width) {
    .product{
        max-width: inherit;
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 2rem;
    }
    .product .swiper{
        margin-bottom: 0;
        aspect-ratio: 5/3;
    }
}
@media (1200px <= width) {
    .product{
        margin-bottom: 5rem;
    }
}






/* faq index */
.faq-index {
    margin: 0 auto 4rem;
    max-width: var(--md);
}

.faq-index__header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.question-index {
    border-top: 1px solid var(--secondary);
}

.question-index:last-of-type {
    border-bottom: 1px solid var(--secondary);
}

.question-index__header {
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.question-index__btn svg {
    height: 1rem;
    width: 1rem;
    transform-origin: center;
    transform: rotate(45deg);
}

.question-index__btn--open svg {
    transform: none;
}

.question-index__body {
    padding-bottom: 1rem;
    display: none;
    text-align: justify;
}

.question-index__body--open {
    display: block;
}





/* caontacts */
.contacts-index {
    margin: 0 auto 4rem;
    max-width: var(--md);

}

.contact {
    margin-bottom: 2rem;
}

.contact__title {
    font-size: 1.25rem;
    font-weight: 500;
}

.map {
    margin-bottom: 4rem;
}

.map__img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}


/* footer */
.footer {
    background-color: var(--darck);
    color: var(--white);
    padding: 1rem 0;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-contacts li {
    margin-bottom: 0.5rem;
}
