@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
	--font-primary: 'Montserrat', sans-serif;
	--font-secondary: 'Inter', sans-serif;
	--color-primary: #c5d800;
	--color-primary-hover: #d4e900;
	--color-text: #303030;
	--color-text-secondary: #535759;
	--color-white: #fff;
	--color-border: #d2d2d2;
	--color-surface: #f3f3f3;
	--color-dot: #c9c9c9;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
}

button {
	cursor: pointer;
	background-color: transparent;
}

body.no-scroll {
	overflow: hidden;
}

.container {
	margin: auto;
	max-width: 1600px;
	padding: 0 20px;
}

.header {
	position: relative;
	width: 100%;
	z-index: 100;
	background: var(--color-white);
	box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}

.header__sticky {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 100;
	background: var(--color-white);
}

/* Верхняя часть */
.header__top-border {
	border-bottom: 1px solid #d9d9d9;
}
.header__top {
	display: flex;
	justify-content: space-between;
	padding-bottom: 16px;
	padding-top: 16px;
}

.header__brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.header__brand-row {
	display: flex;
	align-items: center;
	gap: 40px;
}

.header__logo {
}

.header__logo-image {
	width: 90px;
	height: 56px;
}

.header__logo-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Упрощенный логотип */
.header__logo-mark {
}

.header__logo-mark span {
	position: absolute;
	display: block;
	border-radius: 5px;
}

.header__logo-mark span:first-child {
	top: 8px;
	left: 12px;
	width: 20px;
	height: 50px;
	background: #b8d900;
}

.header__logo-mark span:last-child {
	left: 1px;
	bottom: 0;
	width: 20px;
	height: 38px;
	background: #9ebd00;
}

.header__logo-info {
	display: flex;
	flex-direction: column;
	white-space: nowrap;
}

.header__logo-title {
	font-family: var(--font-primary);
	font-size: 36px;
	line-height: 1;
	font-weight: 400;
	color: #555;
}

.header__logo-description {
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 10px;
	color: var(--color-text-secondary);
}

/* Каталог */
.header__catalog {
	font-family: var(--font-primary);
	flex: 0 0 auto;
	padding: 12px 20px;
	background-color: var(--color-primary);
	border: none;
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	font-size: 18px;
	color: var(--color-text);
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		transform 0.15s ease;
}

.header__catalog:hover {
	background-color: var(--color-primary-hover);
}

.header__catalog:active {
	transform: translateY(1px);
}

.header__catalog-icon {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.header__catalog-icon span {
	width: 19px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition:
		transform 0.15s ease,
		opacity 0.15s ease;
}

.header__catalog.is-active .header__catalog-icon span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.header__catalog.is-active .header__catalog-icon span:nth-child(2) {
	opacity: 0;
}

.header__catalog.is-active .header__catalog-icon span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Контакты */
.header__contacts {
	display: flex;
	gap: 20px;
}

.header__office,
.header__sales {
	display: flex;
	flex-direction: column;
}

.header__office {
}

.header__sales {
}

.header__contact-title {
	font-family: var(--font-primary);
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text);
}

.header__phone {
	font-family: var(--font-primary);
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text-secondary);
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.header__phone:hover {
	opacity: 0.65;
}

.header__phone svg {
	fill: none;
	width: 20px;
	height: 20px;
	color: var(--color-text-secondary);
}

.header__divider {
	width: 1px;
	height: 50px;
	background: var(--color-border);
	margin-top: auto;
	margin-bottom: auto;
}

.header__sales-list {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.header__sales-item {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.header__phone-label {
	font-family: var(--font-primary);
	padding-left: 34px;
	font-weight: 500;
	font-size: 12px;
	color: var(--color-text-secondary);
}

/* Иконки справа */
.header__actions {
	display: flex;
	align-items: center;
}

.header__actions-messengers {
	display: flex;
	gap: 28px;
	align-items: center;
}

.header__messenger svg {
	width: 36px;
	height: 36px;
}

.header__actions-tools {
	display: flex;
	gap: 28px;
	align-items: center;
}

.header__tool svg {
	color: #696969;
	width: 24px;
	height: 24px;
	fill: none;
}

.header__tool--cart,
.header__tool--favorite {
	position: relative;
}

.header__tool--cart .header__counter,
.header__tool--favorite .header__counter {
	position: absolute;
	top: 2px;
	right: -7px;
}

.header__counter {
	font-family: var(--font-primary);
	width: 17px;
	height: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--color-white);
	background: #d63030;
	font-size: 10px;
	font-weight: 500;
}

.header__language {
	font-family: var(--font-primary);
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #696969;
	font-size: 16px;
	cursor: pointer;
	font-weight: 500;
	font-size: 12px;
}

.header__language svg {
	width: 24px;
	height: 24px;
}

/* Нижнее меню */
.header__nav {
	position: relative;
	z-index: 99;
	background: var(--color-white);
	margin-top: 103px;
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
}

.header__nav.is-hidden {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
}

.header__menu {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
}

.header__menu-item {
	display: flex;
	align-items: center;
}

.header__menu-link {
	font-family: var(--font-primary);
	position: relative;
	padding: 20px 0;
	font-weight: 500;
	font-size: 18px;
	color: var(--color-text);
	border: none;
	background-color: transparent;
	transition: color 0.15s ease;
	cursor: pointer;
}

.header__menu-link::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--color-primary);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.15s ease;
}

.header__menu-link:hover::after,
.header__menu-link.is-active::after {
	transform: scaleX(1);
}

/* Бургер */
.header__burger {
	display: none;
	width: 45px;
	height: 45px;
	padding: 9px;
	border: 0;
	background: transparent;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
}

.header__burger span {
	display: block;
	width: 100%;
	height: 3px;
	background: #333;
	border-radius: 2px;
	transition: 0.15s ease;
}

.header__burger.is-active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

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

.header__burger.is-active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Мобильное меню */
.header__mobile-menu {
	display: none;
}

/* Нижнее фиксированное меню (мобильное) */
.mobile-bar {
	display: none;
}

/* Попап "Связаться" */
.contact-popup {
	position: fixed;
	inset: 0;
	z-index: 102;
	background: rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.15s ease,
		visibility 0.15s ease;
}

.contact-popup.is-open {
	opacity: 1;
	visibility: visible;
}

.contact-popup__dialog {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 80px;
	max-width: 360px;
	max-height: calc(100vh - 100px);
	margin: 0 auto;
	padding: 28px 24px;
	overflow-y: auto;
	background: var(--color-white);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-popup__close {
	font-family: var(--font-primary);
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #999;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.contact-popup__divider {
	width: 100%;
	height: 1px;
	background: var(--color-border);
}

.contact-popup__title {
	font-family: var(--font-primary);
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text);
}

.contact-popup__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.contact-popup__messengers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.contact-popup__phone {
	font-family: var(--font-primary);
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	font-weight: 500;
	color: var(--color-text);
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.contact-popup__phone:hover {
	opacity: 0.65;
}

.contact-popup__phone svg {
	width: 18px;
	height: 20px;
}

.contact-popup__item {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.contact-popup__label {
	font-family: var(--font-primary);
	padding-left: 28px;
	font-weight: 500;
	font-size: 12px;
	color: var(--color-text-secondary);
}

.contact-popup__flag {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.contact-popup__messenger svg {
	width: 36px;
	height: 36px;
}

/* каталог */
.catalog-menu {
	position: fixed;
	top: 103px;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 101;
	background: var(--color-white);
	border-top: 1px solid #eeeeee;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition:
		opacity 0.15s ease,
		visibility 0.15s ease,
		transform 0.15s ease;
}

/* Открытое состояние */
.catalog-menu.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Контейнер */
.catalog-menu__container {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	column-gap: 50px;
	height: 100%;
	padding-top: 40px;
	padding-bottom: 40px;
}

/* Категории */
.catalog-menu__categories {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.catalog-menu__category {
	font-family: var(--font-primary);
	position: relative;
	width: 100%;
	padding: 23px 20px;
	border: 0;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	color: var(--color-text);
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		box-shadow 0.15s ease;
}

.catalog-menu__category span {
	display: block;
}

.catalog-menu__category svg {
	width: 6px;
	height: 12px;
	margin-left: 5px;
	transition: transform 0.15s ease;
}

.catalog-menu__category:hover {
	background: #fafafa;
}

.catalog-menu__category.is-active {
	background: var(--color-white);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.catalog-menu__category.is-active svg {
	transform: translateX(1px);
}

/* Аккордеон в списке категорий */
.catalog-menu__accordion-trigger {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 18px;
}

.catalog-menu__accordion.is-open > .catalog-menu__accordion-trigger {
	background: var(--color-white);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.catalog-menu__accordion.is-open > .catalog-menu__accordion-trigger svg {
	transform: rotate(90deg);
}

.catalog-menu__accordion-panel {
	display: none;
	flex-direction: column;
	padding: 0 0 10px;
}

.catalog-menu__accordion.is-open > .catalog-menu__accordion-panel {
	display: flex;
}

.catalog-menu__accordion-link {
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 400;
	color: var(--color-text-secondary);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	text-decoration: none;
	transition:
		color 0.15s ease,
		background-color 0.15s ease;
}

.catalog-menu__accordion-link svg {
	width: 6px;
	height: 12px;
	flex: 0 0 6px;
	margin-left: 8px;
}

/* Контент */
.catalog-menu__content {
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
}

.catalog-menu__products {
	display: none;
	grid-template-columns: repeat(4, minmax(120px, 1fr));
	gap: 30px;
	align-items: start;
}

.catalog-menu__products.is-active {
	display: grid;
}

/* Карточка товара */
.catalog-menu__product {
	min-width: 0;
	display: block;
	color: #333;
	text-decoration: none;
	transition: transform 0.15s ease;
}

.catalog-menu__product:hover {
	transform: translateY(-2px);
}

.catalog-menu__product:hover .catalog-menu__image {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.catalog-menu__product:hover .catalog-menu__title {
	color: #a6c400;
}

/* Изображение */
.catalog-menu__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	/* max-width: 226px; */
	margin-bottom: 9px;
	overflow: hidden;
	background: #f1f1f1;
	transition: box-shadow 0.15s ease;
}

.catalog-menu__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Название */
.catalog-menu__title {
	font-family: var(--font-secondary);
	display: block;
	font-size: 18px;
	font-weight: 400;
	color: var(--color-text-secondary);
	transition: color 0.15s ease;
}

/* Меню навигации (по клику на header__menu-item) */
.nav-menu {
	position: fixed;
	top: 166px;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 101;
	background: var(--color-white);
	border-top: 1px solid #eeeeee;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition:
		opacity 0.15s ease,
		visibility 0.15s ease,
		transform 0.15s ease;
}

.nav-menu.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu__container {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	column-gap: 34px;
	height: 100%;
	padding-top: 40px;
	padding-bottom: 40px;
}

.nav-menu__categories {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.nav-menu__category {
	font-family: var(--font-primary);
	position: relative;
	width: 100%;
	padding: 23px 20px;
	border: 0;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	color: var(--color-text);
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		box-shadow 0.15s ease;
}

.nav-menu__category span {
	display: block;
}

.nav-menu__category svg {
	width: 6px;
	height: 12px;
	margin-left: 5px;
	transition: transform 0.15s ease;
}

.nav-menu__category:hover {
	background: #fafafa;
}

.nav-menu__category.is-active {
	background: var(--color-white);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.nav-menu__category.is-active svg {
	transform: translateX(1px);
}

.nav-menu__content {
	min-width: 0;
	min-height: 0;
	/* overflow-y: auto; */
}

.nav-menu__products {
	display: none;
	grid-template-columns: repeat(4, minmax(120px, 1fr));
	gap: 30px;
	align-items: start;
}

.nav-menu__products.is-active {
	display: grid;
}

.nav-menu__products--links.is-active {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nav-menu__link {
	font-family: var(--font-secondary);
	font-size: 18px;
	font-weight: 400;
	color: var(--color-text-secondary);
	transition: color 0.15s ease;
}

.nav-menu__link:last-child {
	border-bottom: 0;
}

.nav-menu__link:hover {
	color: var(--color-primary);
}

.nav-menu__products--contacts.is-active {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 34px;
}

.nav-menu__products.nav-menu__products--news.is-active {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 34px;
	height: 100%;
	min-height: 0;
}

.nav-menu__news-sections {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nav-menu__news-section {
	font-family: var(--font-secondary);
	font-size: 18px;
	font-weight: 400;
	color: var(--color-text-secondary);
	transition: color 0.15s ease;
}

.nav-menu__news-section:last-child {
	border-bottom: 0;
}

.nav-menu__news-section:hover {
	color: var(--color-primary);
}

.nav-menu__news-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-content: start;
	gap: 24px 20px;
	height: 100%;
	min-height: 0;
	overflow-y: auto;
}

.nav-menu__news-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nav-menu__news-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-surface);
}

.nav-menu__news-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nav-menu__news-title {
	font-family: var(--font-secondary);
	font-size: 18px;
	font-weight: 400;
	color: var(--color-text-secondary);
	transition: color 0.15s ease;
}

.nav-menu__news-item:hover .nav-menu__news-title {
	color: var(--color-primary);
}

.nav-menu__contact-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nav-menu__contact-phones {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nav-menu__contact-emails {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nav-menu__contact-item {
	display: block;
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 16px;
	color: var(--color-text-secondary);
	transition: color 0.15s ease;
}

.nav-menu__contact-item--title {
	font-family: var(--font-secondary);
	font-size: 18px;
	font-weight: 600;
	color: var(--color-text);
}

.nav-menu__contact-item--email {
	font-weight: 400;
	font-size: 14px;
}

.nav-menu__contact-item--address {
	font-weight: 400;
	font-size: 14px;
}

a.nav-menu__contact-item:hover {
	color: var(--color-primary);
}

.nav-menu__products--schedule.is-active {
	display: block;
}

.nav-menu__products--schedule ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	margin: 0;
}

.nav-menu__products--schedule ul li {
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 400;
	color: var(--color-text-secondary);
}

.nav-menu__product {
	min-width: 0;
	display: block;
	color: #333;
	text-decoration: none;
}

.nav-menu__product:hover .nav-menu__title {
	color: #a6c400;
}

.nav-menu__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin-bottom: 9px;
	overflow: hidden;
	background: #f1f1f1;
	transition: box-shadow 0.15s ease;
}

.nav-menu__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nav-menu__title {
	font-family: var(--font-secondary);
	display: block;
	font-size: 18px;
	font-weight: 400;
	color: var(--color-text-secondary);
	transition: color 0.15s ease;
}

/* Пресс-формы, Красители, Декорирование, Медиа: 2 фото на всю ширину */
.nav-menu--catalog .nav-menu__products {
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
}

.nav-menu--catalog .nav-menu__image {
	aspect-ratio: auto;
}

.nav-menu--catalog .nav-menu__image img {
	height: auto;
}

/* Мобильный аккордеон меню навигации (О нас, Контакты) */
.nav-accordion {
	display: none;
	flex-direction: column;
	height: 100%;
	overflow-y: auto;
}

.nav-accordion__item {
	flex: 0 0 auto;
}

.nav-accordion__trigger,
.nav-accordion__link {
	font-family: var(--font-primary);
	width: 100%;
	padding: 23px 20px;
	border: 0;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	color: var(--color-text);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}

.nav-accordion__trigger.is-active {
	background: var(--color-white);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.nav-accordion__trigger svg,
.nav-accordion__link svg {
	width: 6px;
	height: 12px;
	flex: 0 0 6px;
	margin-left: 8px;
	transition: transform 0.15s ease;
}

.nav-accordion__trigger.is-active svg {
	transform: rotate(90deg);
}

.nav-accordion__panel {
	display: none;
	padding-bottom: 20px;
}

.nav-accordion__panel.is-active {
	display: block;
}

/* каталог */

/* Плашки на фото (независимо от каталога) */
.badges {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: start;
}

.badge {
	position: relative;
	padding: 10px 4px;
	font-family: var(--font-secondary);
	font-size: 10px;
	font-weight: 600;
	color: var(--color-white);
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}

.badge__tooltip {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: max-content;
	max-width: min(180px, calc(100vw - 32px));
	padding: 8px;

	background: var(--color-text);
	color: var(--color-white);
	font-family: var(--font-secondary);
	text-transform: none;
	white-space: normal;
	word-break: break-word;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(4px);
	transition:
		opacity 0.15s ease,
		transform 0.15s ease,
		visibility 0s linear 0.15s;
}

.badge__tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 12px;

	width: 0;
	height: 0;

	border: 5px solid transparent;
	border-bottom: 0;
	border-top-color: var(--color-text);
}

.badge__tooltip-title {
	font-family: var(--font-secondary);
	font-size: 12px;
	font-weight: 500;
	color: var(--color-white);
	text-transform: uppercase;
}

.badge__tooltip-text {
	font-family: var(--font-secondary);
	font-size: 12px;
	font-weight: 400;
	line-height: 13px;
	color: var(--color-white);
}

.badge:hover .badge__tooltip,
.badge:focus-visible .badge__tooltip,
.conditions__item:hover .badge__tooltip,
.conditions__item:focus-visible .badge__tooltip,
.detail-card__tag:hover .badge__tooltip,
.detail-card__tag:focus-visible .badge__tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition:
		opacity 0.15s ease,
		transform 0.15s ease,
		visibility 0s;
}

.badge--new {
	background: #fe3a3a;
}

.badge--hit {
	background: #ff8420;
}

.badge--patented {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 40px 2px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-primary);
	color: var(--color-text);
	font-weight: 400;
	font-size: 10px;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.badge--patented-lg {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 3.5px;
	background: var(--color-primary);
	color: var(--color-text);
	font-weight: 400;
	font-size: 14px;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

@media (max-width: 1300px) {
	.header__contacts {
		display: none;
	}

	.header__burger {
		display: flex;
	}
}

@media screen and (max-width: 1281px) {
	.nav-menu__news-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 1025px) {
	.nav-menu__products {
		grid-template-columns: repeat(3, minmax(120px, 1fr));
	}

	.nav-menu__news-list {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.catalog-menu__products {
		grid-template-columns: repeat(3, minmax(120px, 1fr));
	}
}

@media (max-width: 900px) {
	.header__brand-row {
		gap: 20px;
	}

	.header__actions-messengers {
		display: none;
	}

	.header__actions-tools {
		gap: 16px;
	}

	.nav-menu__products {
		grid-template-columns: repeat(2, minmax(120px, 1fr));
	}

	.catalog-menu__products {
		grid-template-columns: repeat(2, minmax(120px, 1fr));
	}
}

/* Scroll */
.scroll-to-top {
	position: fixed;
	bottom: 40px;
	right: 40px;
	z-index: 100;
	width: 70px;
	height: 70px;
	border: none;
	border-radius: 50%;
	background-color: var(--color-primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
	background-color: var(--color-primary-hover);
}

.scroll-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.scroll-to-top__icon {
	width: 24px;
	height: 24px;
	color: var(--color-white);
	transform: rotate(-90deg);
}

@media (max-width: 768px) {
	.header__top {
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.header__brand {
		width: 100%;
	}

	.header__brand-row {
		justify-content: space-between;
	}

	.header__logo-description {
		display: none;
	}

	.header__catalog-text {
		display: none;
	}

	.header__catalog {
		padding: 10px;
	}

	.header__contacts {
		display: none;
	}

	.header__actions-messengers {
		display: none;
	}

	.header__actions-tools {
		display: none;
	}

	.header__nav {
		margin-top: 81px;
		padding-top: 4px;
		padding-bottom: 4px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.header__nav::-webkit-scrollbar {
		display: none;
	}

	.header__menu {
		width: max-content;
		justify-content: flex-start;
		gap: 30px;
	}

	.header__menu-link {
		white-space: nowrap;
		font-size: 16px;
		padding: 16px 8px;
		background-color: var(--color-surface);
	}

	.header__mobile-menu.is-open {
		display: block;
		padding: 20px;
		border-top: 1px solid #d9d9d9;
	}

	.header__mobile-nav {
		display: flex;
		flex-direction: column;
	}

	.header__mobile-nav a {
		font-family: var(--font-primary);
		padding: 12px 0;
		font-weight: 500;
		font-size: 16px;
		color: var(--color-text);
		border-bottom: 1px solid #eee;
	}

	.header__mobile-nav a:last-child {
		border-bottom: 0;
	}

	.header__mobile-contacts {
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding-top: 16px;
	}

	.header__mobile-contact {
		display: flex;
		flex-direction: column;
		gap: 6px;
	}

	.header__mobile-contact span {
		font-family: var(--font-primary);
		font-size: 13px;
		color: #888;
	}

	.header__mobile-contact a {
		font-family: var(--font-primary);
		font-size: 15px;
		color: var(--color-text);
	}

	.mobile-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 103;
		height: 72px;
		display: flex;
		justify-content: space-between;
		gap: 5px;
		padding-top: 16px;
		padding-bottom: 16px;
		background: var(--color-white);
		box-shadow: 0px -2px 6px 0px rgba(0, 0, 0, 0.1);
	}

	.mobile-bar__item {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		border: 0;
		background: transparent;
		color: var(--color-text-secondary);
		font-family: var(--font-secondary);
		font-size: 10px;
		cursor: pointer;
	}

	.mobile-bar__item svg {
		width: 25px;
		height: 25px;
		fill: none;
	}

	.mobile-bar__counter {
		font-family: var(--font-primary);
		position: absolute;
		width: 17px;
		height: 17px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		background: #d63030;
		color: var(--color-white);
		font-size: 9px;
		font-weight: 500;
	}

	.mobile-bar__counter--cart {
		top: 2px;
		right: 2px;
	}

	.mobile-bar__counter--favorite {
		top: 2px;
		right: 10px;
	}

	.nav-menu {
		top: 140px;
	}

	.nav-menu__container {
		display: block;
		height: auto;
		padding-top: 20px;
		padding-bottom: 90px;
		overflow-y: auto;
	}

	.nav-accordion {
		padding-bottom: 90px;
	}

	.nav-menu__categories {
		width: 100%;
	}

	.nav-menu__category {
		font-size: 16px;
	}

	.nav-menu__link {
		font-size: 16px;
	}

	.nav-menu__content {
		overflow-y: visible;
	}

	.nav-menu__products {
		margin-top: 16px;
		margin-bottom: 20px;
	}

	.nav-menu--catalog:not(.nav-menu--accordion) .nav-menu__content {
		display: none;
	}

	.nav-menu--accordion .nav-menu__container {
		display: none;
	}

	.nav-menu--accordion .nav-accordion {
		display: flex;
	}

	.nav-accordion__panel .nav-menu__news-sections {
		margin-top: 16px;
		margin-bottom: 16px;
	}

	.nav-accordion__panel .nav-menu__news-list {
		height: auto;
		min-height: 0;
		overflow-y: visible;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nav-menu__products--contacts.is-active {
		grid-template-columns: 1fr;
	}

	.catalog-menu {
		top: 80px;
	}

	.catalog-menu__container {
		display: block;
		overflow-y: auto;
		padding-top: 0;
		padding-bottom: 20px;
	}

	.catalog-menu__categories {
		overflow-y: visible;
	}

	.catalog-menu__category {
		font-size: 16px;
	}

	.catalog-menu__content {
		display: none;
	}

	.badge {
		padding: 7px 3px;
		font-size: 7px;
	}

	.badge--patented {
		padding: 20px 1.5px;
		font-size: 10px;
	}

	.badge__tooltip {
		max-width: min(140px, calc(100vw - 32px));
	}

	.scroll-to-top {
		width: 35px;
		height: 35px;
		bottom: 20px;
		right: 20px;
	}

	.scroll-to-top__icon {
		width: 12px;
		height: 12px;
	}
}
