.header_top,
.header_bottom,
header {
    position: relative;
}

header {
    z-index: 20;
}

.header_top {
    border-bottom: 1px solid #EEEEEE;
    background: #F7F9FB;
}
.header_top .container, .header_bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header_top .container {
    padding-top: 15px;
    padding-bottom: 14px;
    gap: 30px;
}
.header_top .container > p {
    font-size: 14px;
}
.header__top-right {
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.logo-block {
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo-block .site-footer__tagline {
    margin: 0;
}
header .phone {
    font-weight: 700;
    white-space: nowrap;
}
.phone__title {
    font-weight: 700;
}
.header_bottom {
    border-bottom: 1px solid #EEEEEE;
}
.header_bottom .container {
    padding-top: 30px;
    padding-bottom: 30px;
    gap: 40px;
}
.header__bottom-right {
    display: flex;
    align-items: center;
    gap: 9px;
}
.search-bar {
    display: flex;
    max-width: fit-content;
}
.search-bar input[type="text"] {
    padding: 0 15px;
    height: 42px;
}
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--red-color);
    cursor: pointer;
}
.burger {
    display: block;
    cursor: pointer;
    background: var(--gray-color);
    width: 42px;
    height: 42px;
    position: relative;
    padding: 0;
    border: 0;
    transition: all 0.5s;
}
.burger:hover {
    background: var(--red-color);
}
.burger:hover span {
    background: #fff;
}
.burger span {
    height: 3px;
    width: 25px;
    background: var(--red-color);
    position: absolute;
    left: 8.5px;
    transition:
        top 0.25s ease,
        opacity 0.2s ease,
        transform 0.25s ease;
}
.burger span:nth-child(1) {
    top: 11px;
}
.burger span:nth-child(2) {
    top: 19px;
}
.burger span:nth-child(3) {
    top: 27px;
}

.burger.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

.top-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: none;
    width: 100%;
    border-top: 1px solid var(--red-color);
    background: #fff;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.16);
}

.top-menu .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
}
.top-menu li {
    list-style-type: none;
}
.top-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: var(--black-color);
    font-size: 18px;
    line-height: 1.2;
}

.top-menu a:hover,
.top-menu a:focus-visible {
    color: var(--red-color);
}

.top-menu i {
    width: 0;
    height: 0;
    flex: 0 0 auto;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--red-color);
}
.contacts_mob {
    display: none;
}
.search-bar input[type="text"] {
    width: 258px;
}
.search-bar input[type="text"]:focus {
    outline: none;
}
.search-btn input {
    border-width: 0;
}
.search-btn.mob {
    display: none;
}
@media(max-width: 900px) {
    .header__top-right {
        gap: 15px;
        font-size: 14px;
    }
    .logo-block .site-footer__tagline {
        font-size: 14px;
    }
    .logo-block {
        gap: 10px;
    }
    .search-bar input[type="text"] {
        width: 165px;
    }
}
@media(max-width: 700px) {
    .header_bottom .container {
        padding: 12px 15px;
    }
    .header_top {
        display: none;
    }
    .burger {
        width: 30px;
        height: 30px;
        background: var(--red-color);
    }
    .burger span {
        background-color: #fff;
        width: 18px;
        height: 2px;
        left: 6px;
    }
    .burger span:nth-child(1) {
        top: 8px;
    }
    .burger span:nth-child(2) {
        top: 14px;
    }
    .burger span:nth-child(3) {
        top: 20px;
    }
    .burger.active span:nth-child(1), .burger.active span:nth-child(3) {
        top: 14px;
    }
    .header__bottom-right {
        justify-content: end;
    }
    .contacts_mob {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 2px;
        font-size: 14px;
        margin-top: 6px;
        min-width: max-content;
    }
    .logo-block {
        flex-direction: column;
        align-items: start;
        gap: 6px;
        width: 51%;
        max-width: 155px;
    }
    .logo-block img {
        width: 155px;
    }
    .search-bar {
        display: none;
    }
    .search-btn.mob {
        display: flex;
        width: 30px;
        height: 30px;
    }
    .top-menu {
        top: 47px;
    }
    .logo-block .site-footer__tagline {
        font-size: 14px;
        line-height: 18px;
    }
    .header_bottom .container {
        gap: 0;
    }
}
@media(max-width: 350px) {
    .logo-block img {
        width: 130px;
        margin-top: 3px;
    }
    .logo-block .site-footer__tagline {
        font-size: 12px;
        line-height: 16px;
    }
    .top-menu a {
        font-size: 16px;
    }
}

.site-footer {
    background: var(--gray-color);
    color: var(--black-color);
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
}

.site-footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 100px 20px 50px;
}
.site-footer__catalog li {
    list-style-type: none;
}
.site-footer__brand {
    flex: 0 0 200px;
}

.site-footer__identity {
    display: block;
}

.site-footer__logo {
    display: block;
    width: 200px;
    height: 37px;
}

.site-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer__tagline {
    margin-top: 17px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
footer .site-footer__tagline {
    max-width: 21ch;
}
.site-footer .site-footer__order {
    height: 37px;
    margin-top: 50px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--red-color);
}

.site-footer .site-footer__order:hover {
    background: var(--red-color);
    color: #fff;
}

.site-footer__catalog {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 249px;
}

.site-footer__catalog a {
    display: block;
    max-width: 250px;
    margin-bottom: 15px;
}

.site-footer__catalog-more {
    display: none;
    width: 100%;
}

button.site-footer__show-all {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    width: auto;
    margin-top: -1px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--black-color);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    text-transform: none;
    font-weight: 400;
}

.site-footer__show-all > span:last-child {
    width: 0;
    height: 0;
    transition: transform 0.25s ease;
    border-top: 7px solid var(--red-color);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
}

.site-footer__show-all.is-expanded > span:last-child {
    transform: rotate(180deg);
}

.site-footer__contacts {
    flex: 0 0 231px;
}

.site-footer__contacts h2 {
    padding: 0;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.site-footer__contacts h2::before {
    display: none;
}

.site-footer__contacts address {
    margin-top: 17px;
    font-style: normal;
}

.site-footer__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.site-footer__contact img {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    object-fit: contain;
}

.site-footer__contact--phone {
    font-weight: 700;
}

.site-footer__contact--address {
    align-items: flex-start;
    margin-top: 4px;
    margin-bottom: 0;
}

.site-footer__contact--address img {
    width: 23px;
    height: 22px;
    margin: 1px 2px 0 0;
}

.site-footer__contact--address span {
    white-space: nowrap;
}

.site-footer__socials {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}

.site-footer__socials a,
.site-footer__socials img {
    display: block;
    width: 25px;
    height: 25px;
}

.site-footer__legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 169px;
    gap: 17px;
    text-align: right;
}

.site-footer__legal a {
    max-width: 190px;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: underline;
}

.site-footer__mobile-break {
    display: none;
}

@media (max-width: 1100px) {
    .site-footer__container {
        align-content: flex-start;
        flex-wrap: wrap;
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .site-footer__brand, .site-footer__catalog, .site-footer__contacts {
        width: calc(33% - 20px);
        min-width: unset;
        flex: 3;
    }
    .site-footer__brand {
        flex: 2;
    }
    .site-footer__contact--address span {
        white-space: wrap;
    }
    .site-footer__logo {
        width: 200px;
    }

    .site-footer .site-footer__order {
        margin-top: 47px;
    }

    .site-footer__catalog > a {
        max-width: none;
    }

    .site-footer__contacts {
        margin-right: 0;
    }

    .site-footer__socials {
        margin-top: 16px;
    }

    .site-footer__legal {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap;
        flex: 0 0 100%;
        gap: 20px;
        text-align: left;
    }

    .site-footer__legal a {
        max-width: none;
        white-space: nowrap;
    }
}

@media (max-width: 700px) {
    .top-menu .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .site-footer__container {
        width: 100%;
        padding: 40px 15px;
    }

    .site-footer__brand {
        margin-right: 0;
    }

    .site-footer__logo {
        width: 155px;
        height: auto;
    }

    .site-footer__tagline {
        font-size: 14px;
        line-height: 1.08;
    }

    .site-footer .site-footer__order {
        height: 36px;
        margin-top: 17px;
    }

    .site-footer__catalog {
        display: none;
    }

    .site-footer__contacts {
        min-width: 0;
    }

    .site-footer__contacts h2 {
        font-size: 16px;
    }

    .site-footer__contacts address {
        margin-top: 15px;
    }

    .site-footer__contact {
        gap: 9px;
        margin-bottom: 8px;
    }

    .site-footer__contact--address span {
        font-size: 16px;
        line-height: 1.15;
        white-space: normal;
    }

    .site-footer__socials {
        gap: 14px;
        margin-top: 18px;
    }

    .site-footer__legal {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex: 0 0 auto;
        min-width: 0;
        text-align: left;
    }

    .site-footer__legal a {
        display: block;
        width: calc(100vw - 30px);
        max-width: 100%;
        font-size: 14px;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .site-footer__mobile-break {
        display: inline;
    }
}
@media(max-width: 500px) {
    .site-footer__contact--address {
        align-items: center;
    }
    footer .site-footer__logo, footer .site-footer__tagline {
        flex: unset;
        width: 50%;
    }
    .site-footer__container {
        gap: 25px;
    }
    .site-footer .site-footer__order.button {
        max-width: 100%;
    }
    .site-footer__tagline {
        margin-top: 0;
        font-size: 14px;
		min-width: 21ch;
    }
    .site-footer__brand, .site-footer__contacts {
        width: 100%;
        flex: unset;
    }
    .site-footer__identity {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}
@media(max-width: 350px) {
    .site-footer__tagline {
        font-size: 12px;
    }
}
