@keyframes cart {
	
	50% {
		transform: scale(1.5, 1.5);
		color: var(--secondary);
	}
	100% {
		transform: none;
		color: inherit;
	}
	
}

.header {
    padding: 2rem 0;
    position: relative;
    z-index: 5;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.7em;
}

.header__section {
    display: flex;
    align-items: center;
    gap: 2rem;
}
@supports not (gap: 1rem) {
    .header__section--aside .header__item {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
.header__section--main {
    flex-grow: 1;
    gap: 2.7rem;
}
@supports not (gap: 1rem) {
    .header__logo-container {
        padding-right: 4rem;
    }
}

.header__item {
    display: flex;
    align-items: center;
    color: var(--dark);
}
	.header__item--cart {
		transition: 0.2s;
	}


.header__search-container {
    display: flex;
    width: 100%;
}
    .header__search {
        padding: 0.8rem 1.4rem;
        background-color: var(--light);
        border-radius: 0.5rem;
        border: none;
        font-size: 16px;
        transition: 0.2s ease;
        width: 100%;
    }
        .header__search:focus {
            transform: translateY(-1px) scale(1.02, 1.01);
            outline: none;
        }
        
        .header__search-result-caption {
            padding: 1rem;
            font-size: 0.8rem;
            color: var(--gray-dark)
        }

.header__section--aside {
    flex-direction: row-reverse;
    line-height: 1.3;
}

.header__item--icon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header__icon {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
}
.header__title {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 0.6;
    margin-top: 0.1rem;
}

.header__cart {
    margin-left: 2rem;
    margin-top: -0.333em;
    color: var(--primary);
}
.header__cart .header__icon {
    font-size: 2rem;
}
.header__cart .header__title {
    font-size: 0.8rem;
}

.header-announcement {
    font-size: 0.8rem;
    padding: 0.4rem;
    text-align: center;
}
    .header-announcement--red {
        background-color: #ff000024;
        color: var(--dark)
    }

    .header-announcement__link {
        color: inherit;
    }

    .header-announcement__contacts {
        margin-left: auto;
        width: fit-content;
        display: flex;
        gap: 1.5rem;
    }
        .header-announcement__contact {
            color: inherit;
        }
