@font-face {
    font-family: "Rubik";
    src: url("../fonts/Rubik/static/Rubik-Light.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --first-text-color: rgb(131, 131, 131);
    --second-text-color: #EB2629;
    --main-border-color: 180, 180, 180;
}

/* common */
html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

body {
    font: 14px/22px Roboto, Arial, Helvetica, sans-serif;
}

header,
footer {
    width: 100%;
    margin: 0px auto;
}

a {
    text-decoration: none;
    color: var(--second-text-color);
}

/* header */
header {
    background: white;
    z-index: 999;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

.nav__menu {
    display: flex;
    margin: 0px auto;
    border-bottom: 0.5px rgba(var(--main-border-color), 0.6) solid;
}

.bar {
    width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

/* header icons */
.icons {
    display: inline-flex;
    list-style: none;
    margin: 10px auto 0px -35px;
}

.icon-social {
    margin-right: 25px;
}

.icon-social img {
    width: 25px;
    height: 25px;
}

.icon-social img:hover {
    filter: opacity(0.8) grayscale(0.8);
}

.menu {
    margin: 8px 0px 8px auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 4px 0px;
    list-style: none;
}

/* header nav */
.menu li {
    background: white;
    opacity: 0.8;
}

.menu li a {
    padding: 1em;
    font-size: 15px;
    line-height: 16px;
    color: var(--first-text-color);
}

.menu li a:hover,
.f__menu li a:hover {
    color: var(--second-text-color);
}

.menu li a.btn-active {
    color: var(--second-text-color);
}

.menu .last {
    border-bottom: 0.5px rgba(var(--main-border-color), 0.6) solid;
}

/* header logo */
.header__logo {
    width: 1600px;
    margin: 15px auto 0px auto;
    display: flex;
    flex-direction: row;
    justify-content: start;
    vertical-align: middle;
}

.header__logo img {
    width: 161px;
    height: 69px;
    margin-right: auto;
}

.header__logo img:hover {
    filter: opacity(0.8) grayscale(0.8);
}

.header__logo a {
    font-size: 16px;
    font-weight: 600;
}

.header__logo a:hover {
    color: var(--first-text-color);
}

/* header phones */
.phones {
    display: flex;
    flex-direction: column;
    width: 150px;
    margin: 25px auto;
    font-size: 22px;
}

/* header buttons */
.action-btn {
    margin: 30px 10px 0px 0px;
}

.action-btn a {
    padding: 10px 15px;
    background: var(--second-text-color);
    border: none;
    border-radius: 0;
    color: white;
    font-size: 18px;
    font-weight: normal;
    border: 0.5px solid var(--second-text-color);
}

.action-btn a:hover {
    color: var(--second-text-color);
    background: white;
    border: 0.5px solid var(--second-text-color);
}

.top-stripe {
    height: 80px;
    width: 100%;
    background: rgba(var(--main-border-color), 0.2);
}

.icon-4 img {
    width: 50px;
    height: 50px;
    margin: 15px auto 0px 1675px;
}

/* footer */
footer {
    margin: 25px auto;
    background: rgba(var(--main-border-color), 0.2);
}

.bottom-stripe {
    height: 40px;
    width: 100%;
    background: rgba(var(--main-border-color), 0.2);
}

.footer__info {
    margin: -35px auto 0px auto;
    width: 1600px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    vertical-align: middle;
}

/* footer menu table */
.f__menu {
    display: table;
    width: 1060px;
}

.f__menu-title {
    font-weight: bold;
}

.f__menu ul {
    display: table-row;
}

.f__menu li {
    display: table-cell;
    margin: 0;
    padding: 5px 25px;
    text-align: left;
    font-size: 14px;
}

.f__menu li a {
    color: rgb(77, 77, 77);
}

/* main page */
.banners {
    margin: 225px auto 50px auto;
    width: 1600px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.main-title h1 {
    margin: 15px 0;
    color: var(--first-text-color);
    font-size: 32px;
    font-family: 'Rubik', Roboto, serif;
    font-weight: 600;
    line-height: 1.2em;
}

/* main scroll-up arrow */
.scrUp {
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: all .3s ease-in-out;
    position: fixed;
    margin: 34% auto 0px 1800px;
}

.scrUp:hover {
    filter: grayscale(0.8);
}

.scrUp::before {
    content: '';
    width: 60px;
    height: 60px;
    border: solid 1px rgba(var(--main-border-color), 0.2);
    border-radius: 50%;
    margin: -13px -51px 0px 0px;
    padding: 0;
    box-shadow: 0px 2px 2px 1px rgba(var(--main-border-color), 0.2);
}

.arrow {
    padding: 5px;
    width: 60px;
    height: 60px;
    margin: auto 0px auto auto;
}

.arrow path {
    fill: var(--second-text-color);
    stroke: none;
    stroke-width: 0;
}

/* main accordion */
.accordion, 
.factory {
    width: 100%;
    margin: 25px auto;
}

/* .accordion details {
    text-indent: 1.5em;
} */

details {
    /* min-height: 153px; */
    overflow: hidden;
    transition: .3s;
    margin: 10px auto;
    color: var(--first-text-color);
    font-size: 24px;
    font-family: 'Rubik', Roboto, serif;
    line-height: 1.2em;
    text-align: justify;
    border: solid 0.02em rgba(var(--main-border-color), 0.2);
    border-radius: 0.2em;
}

details[open] {
    /* min-height: 150px; */
    color: var(--second-text-color);
    background: none;
    border-radius: 0.2em;
}

details summary,
details p {
    padding: 10px;
}

details summary {
    border-bottom: dashed 0.02em rgba(var(--main-border-color), 0.5);
}

details summary::marker {
    content: url('../images/icons/icon-flame.png');
}

details summary:focus {
    color: rgba(var(--main-border-color));
}

details summary:hover {
    color: rgba(var(--main-border-color));
}

.advitem {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.advitem img {
    width: 250px;
    height: 250px;
}

.advitem-pic {
    display: flex;
    flex-direction: column;
}

.advitem-pic span {
    text-align: center;
}

.advsec {
    text-indent: 0;
}

/* main factory cards */
.factory {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
}

.title-mob {
    display: none;
}

.factory img {
    width: 780px;
    height: 580px;
}

/* products page */
.prod__main {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 25px 0px;
}

.prod_item-img {
    margin: 25px auto;
}

.prod_item-chars {
    margin: 50px auto;
    text-align: center;
}

.prod_item-img {
    width: 30%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.prod__main .prod_item-img img {
    width: 500px;
    height: 500px;
}

.prod_item-chars {
    width: 70%;
    font-size: 22px;
    line-height: 1.5em;
}

.prod_item-more,
.prod-info {
    width: 100%;
}

.prod-info {
    min-height: 0px;
    text-align: center;
}

details,
details[open] {
    border-bottom: none;
    color: var(--first-text-color);
}

.prod-info summary::marker {
    content: ' ';
}

.prod-info p {
    text-align: left;
    line-height: 2em;
}

/* cert page */
.cert {
    margin-top: 50px;
}

.cert p {
    margin: 50px auto;
    color: var(--first-text-color);
    font-size: 22px;
    line-height: 1.5em;
}

.cert-img {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cert-img img {
    width: 380px;
}

.cert-img img:hover {
    cursor: grab;
}

/* cert-img popover lightbox */
.trigger-btn,
#my-pop1,
#my-pop2,
#my-pop3,
#my-pop4,
#my-pop5,
#my-pop6,
#my-pop7,
#my-pop8 {
    background: none;
    border: none;
    border-radius: 0;
}

#my-pop1 img,
#my-pop2 img,
#my-pop3 img,
#my-pop4 img,
#my-pop5 img,
#my-pop6 img,
#my-pop7 img,
#my-pop8 img {
    width: 650px;
}

#my-pop1::backdrop,
#my-pop2::backdrop,
#my-pop3::backdrop,
#my-pop4::backdrop,
#my-pop5::backdrop,
#my-pop6::backdrop,
#my-pop8::backdrop {
    backdrop-filter: blur(5px);
}

.close-btn {
    border: none;
    background: none;
    font-weight: 600;
    font-size: 48px;
    color: var(--first-text-color);
    position: absolute;
    right: 0.25rem;
    top: 0.1rem;
}

/* contacts page */
div .contact__form {
    margin: 25px 0px 0px -360px;
}

div .contacts__form--map {
    margin: 25px -350px 0px 180px;
}

address {
    font-style: normal;
}

#feedback-form {
    max-width: 700px;
    padding: 0.5em;
    background: #ffffff;
}

#feedback-form [required] {
    width: 100%;
    box-sizing: border-box;
    margin: 0.2em 0;
    padding: 2%;
    border: 1px solid rgba(var(--main-border-color), 0.2);
}

#feedback-form [required]:hover {
    border-color: var(--second-text-color);
}

#feedback-form [required]:focus {
    outline: none;
    border-color: var(--second-text-color);
    transition: .2s linear;
}

#feedback-form [type="submit"] {
    padding: 10px 15px;
    background: var(--second-text-color);
    border: 0.5px solid var(--second-text-color);
    color: white;
    font-size: 18px;
    font-weight: normal;
}

#feedback-form [type="submit"]:hover {
    color: var(--second-text-color);
    background: white;
    border: 0.5px solid var(--second-text-color);
    cursor: pointer;
}

.contacts__form--text {
    font-size: 15px;
}

.mob-contacts {
    visibility: hidden;
}

/* mobile */
@media screen and (max-width: 1080px) {
    /* header */
    header,
    .header__logo,
    .banners,
    footer {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .nav__menu {
        width: 100%;
    }

    .menu {
        align-items: center;
    }

    .menu li {
        opacity: 1;
    }

    .icon-social img {
        width: 35px;
        height: 35px;
    }

    .menu li a {
        font-size: 24px;
    }

    .phones {
        width: 130px;
        margin: 25px 50px 25px 400px;
        font-size: 16px;
    }

    .action-btn {
        margin: 35px 25px;
    }

    .action-btn a {
        padding: 20px 30px;
        font-size: 24px;
    }

    .icon-4 img {
        width: 70px;
        height: 70px;
        display: inline-block;
        margin: 5px auto 0px 800px;
    }

    /* footer */
    .f__menu {
        display: inline-block;
        width: 100%;
    }

    .f__menu li {
        font-size: 20px;
    }

    /* main */
    details {
        width: 95%;
        font-size: 42px
    }

    details[open] {
        font-size: 42px;
    }

    .advitem {
        flex-direction: column;
        align-items: center;
    }

    .scrUp {
        display: none;
    }

    /* main factory cards */
    .title-desc {
        display: none;
    }

    .factory {
        width: 50%;
        flex-direction: column;
        justify-content: center;
    }   

    .title-mob {
        display: flex;
    }

    .title-mob h1 {
        text-align: center;
    }

    /* products */
    .prod__main,
    .prod_item-img {
        justify-content: space-evenly;
    }

    .prod__main .action-btn a {
        margin: 0px 150px;
        padding: 25px 35px;
        font-size: 32px;
    }

    .prod_item-img,
    .prod_item-chars,
    .prod_item-more,
    .prod-info {
        width: 95%;
    }

    .prod_item-chars,
    .prod-info p {
        text-align: center;
        font-size: 16px;
        line-height: 3em;
    }

    .prod__main p {
        text-align: justify;
    }

    /* cert */
    .cert {
        margin: 15px auto;
        width: 95%;
    }

    .cert p {
        font-size: 16px;
        line-height: 3em;
    }

    .cert-img {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .cert-img img {
        margin-top: 15px;
        min-width: 95%;
    }

    /* cert-img popover lightbox */
    #my-pop1 img,
    #my-pop2 img,
    #my-pop3 img,
    #my-pop4 img,
    #my-pop5 img,
    #my-pop6 img,
    #my-pop7 img,
    #my-pop8 img {
        width: 100%;
    }

    .close-btn {
        font-weight: 600;
        font-size: 48px;
        right: 0.25rem;
        top: 0.35rem;
    }

    /* contacts */
    .contacts-page {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    #form {
        display: none;
    }

    #feedback-form {
        max-width: 700px;
    }

    .contacts-page .contacts {
        margin: 25px auto 25px 140px;
    }

    .mob-contacts {
        margin: 15px auto;
        visibility: visible;
    }
}