:root {
    --color-black: #202020;
    --color-white: #fff;
    --color-red: #CA0F14;

    --icon-burger: url('../img/icons/burger.svg');
    --icon-phone: url('../img/icons/icon-phone.svg');

    --swiper-pagination-color: var(--color-red);
    --swiper-pagination-bullet-inactive-color: var(--color-white);
    --swiper-pagination-bullet-inactive-opacity: 1;
    --swiper-pagination-bullet-horizontal-gap: 9px;
    --swiper-pagination-bullet-width: 10px;
    --swiper-pagination-bullet-height: 10px;
    --swiper-pagination-bottom: 22px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-size: 16px;
    color: var(--color-black);
    font-family: 'Onest', 'Arial';
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--color-black);
    transition: 300ms;
}

a:hover {
    color: var(--color-red);
}

p:first-child {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.container {
    max-width: 1170px;
    width: 100%;
    margin: 0 auto;
}

section {
    margin: 7.5em 0;
    position:relative;
}

.icon {
    width: 1.5em;
    height: 1.5em;
    display: block;
    transition: 300ms;
}
.icon:before {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    transition: 300ms;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.icon-phone:before {
    background-image: url('../img/icons/icon-phone.svg');
}
.icon-mail:before {
    background-image: url('../img/icons/icon-mail.svg');
}


.btn {
    padding: 1.125em 1.5em;
    border-radius: 2em;
    background: var(--color-white);
    border: 1px solid var(--color-white);
    cursor: pointer;
    transition: 300ms;
}

.btn-red {
    background: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}
.btn-red:hover {
    background: var(--color-white);
    color: var(--color-red);
}

.logo {
    display: flex;
    align-items: center;
    max-width: 11.875em;
    max-height: 2.5em;
    width: 100%;
    height: 100%;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
}

#toTop {
    position: fixed;
    right: 2em;
    bottom: 2em;
    width: 3.75em;
    height: 3.75em;
    background: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-red);
    pointer-events: none;
    cursor: pointer;
    transition: 300ms;
    opacity: 0;
    z-index: 10;
}
#toTop.is-show {
    opacity: 1;
    pointer-events: auto;
}

.header-wrapper {
    height: 6.25em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1.875em;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em;
}
.header-contacts {
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--color-black);
    width: max-content;
    position: relative;
    text-align: center;
    z-index: 1;
}
.header-contacts .phone-area__button {
    cursor: pointer;
}
.header-contacts .phone-area__button .contact-item {
    border-bottom: 1px dashed;
}
.header-contacts .phone-area__collapse {
    overflow: hidden;
    max-height: 0;
    position: absolute;
    transition: max-height 300ms, background 300ms;
    background: var(--color-white);
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 0.5em;
}
.header-contacts .phone-area__collapse-block {
    display: flex;
    flex-direction: column;
}
.header-contacts:hover .phone-area__collapse, .header-contacts.is-active .phone-area__collapse {
    max-height: 300px;
    background: #fff;
    -webkit-box-shadow: 0px 0px 10px -3px #00000040;
    box-shadow: 0px 0px 10px -3px #00000040;
}
#menu-glavnoe-menyu, #menu-produkty {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.5em;
    font-size: 1.125em;
}
.header-menu-items {
    background: var(--color-black);
    color: var(--color-white);
}
#menu-produkty {
    gap: 0;
}
#menu-produkty>.menu-item a {
    display: block;
    padding: 0.79em 1.666em;
    border: 1px solid #404040;
    border-top: unset;
    border-bottom: unset;
}
#menu-produkty>.menu-item a:hover, #menu-produkty>.menu-item.menu-current a {
    background: var(--color-red);
    border-color: var(--color-red);
}
.header-menu-items a {
    color: var(--color-white);
}

@media(max-width: 1340px) {
    html, body {
        font-size: 1.194vw;
    }
    .container {
        max-width: 87%;
    }
}

@media (min-width: 769px) {
    .show-mob {
        display: none !important;
    }
}

@media (max-width: 768px) {
    html, body {
        font-size: 16px;
    }
    .show-pc {
        display: none !important;
    }
    section {
        margin: 3.5em 0;
    }
}