@media(max-width: 1280px) {}

@media (max-width: 768px) {
    .search-result-item {
        flex-wrap: wrap;
    }

    .search-result-image {
        flex: 0 0 60px;
    }

    .search-result-image img {
        width: 60px;
        height: 60px;
    }

    .search-result-actions {
        flex: 0 0 100%;
        margin-top: 10px;
        justify-content: flex-start;
    }

    .view-message{
        height: calc(100vh - 260px);
    }
    .form_operator_orders {
        gap: 5px;
        flex-wrap: wrap;
    }
    .orders-filter span{
        font-size: 0.9em;
    }
    .order-info{
        font-size: 0.9em;
    }
	/* Header */
	header {
		box-shadow:
			inset 0 1em 4em rgba(0, 37, 54, 0.1),
			0 10px 12px 0 rgb(255, 255, 255),
			0.3em 0.3em 1em rgb(96, 160, 233);
		/*background-image: linear-gradient(var(--border-color));*/
		max-width: 100%;
		max-height: none;
		border-radius: 0;
		background-image: none;
		margin: 0;
		padding: 0;
	}
	.header_container {
		display: grid;
		grid-template-areas:
			"logo-mini container-titles-mobile mobile-menu-toggle"
			"container-center container-center container-center";
		grid-template-columns: 60px 1fr 60px;
		grid-template-rows: max-content max-content;
		width: 100%;
		height: auto;
		padding-bottom: 10px;
	}
	.container-search {
		margin: 0;
		padding: 0;
	}
	.container-search input {
		height: auto;
		margin: 0;
		border-radius: 8px;
	}
	.container-titles-mobile {
		grid-area: container-titles-mobile;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		text-align: center;
		padding-bottom: 10px;
	}
	.mobile-menu-toggle img {
		width: 60px;
		height: 60px;
		margin-top: 5px;
	}
	.container-left {
		display: none;
	}
	.logo-mini {
		display: flex;
		width: 60px;
		padding: 10px 5px 5px 5px;
	}
	.container-center {
		grid-area: container-center;
		display: flex;
		align-items: center;
		margin: 0;
		padding: 0;
	}
	.container-titles {
		display: none;
	}
	.container-address {
		display: none;
	}
/****************************/
/***** Правый контейнер *****/
#mobile-menu-overlay .nav-menu {
		order: 2; /* Меню будет снизу */
}
#mobile-menu-overlay .container-right {
	grid-template-rows: auto;
	order: 1;/* Контейнер будет сверху */
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}
#mobile-menu-overlay .container-language{
	display: flex;
	flex-direction: row;
	align-items: start;
	justify-content: space-between;
	width: 90%;
	margin: 10px 0;
}
.container-language-msg {
	width: 38px;
	height: 38px;
	margin-left: 0;
}
.container-language-txt{
	margin: 0;
	padding: 0;
}
.language-selector {
	display: flex;
	flex-direction: row;
}
#mobile-menu-overlay .language-selector .box_language {
	width: 32px;
	height: 32px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.555);
	margin-left: 5px;
	margin-bottom: 10px;
}
#mobile-menu-overlay .language-selector .box_language .language {
	font-size:16px;
	top: 2px;
	left: 1px;
}
    #mobile-menu-overlay  .account{
        width: 40px;
        height: 40px;
        opacity: 0.7;
        padding-right: 5px;
        background-color: white;
        border-radius: 50%;
        border: 1px solid var(--border-color);
    }
#mobile-menu-overlay .container-autorise{
	width: 90%;
	height: 55px;
	border-radius: 5px;
	justify-content: center;
	background-color: #a5cde5;
	margin-bottom: 10px;
	border: 1px solid var(--border-color);
}
#mobile-menu-overlay .container-basket {
	width: 90%;
	height: 45px;
	border-radius: 5px;
	background-color: #a5cde5;
	border: 1px solid var(--border-color);
}
#mobile-menu-overlay .container-autorise img {
	max-width: 32px;
	padding-left: 0;
	margin-right: 10px;
	height: auto;
}
#mobile-menu-overlay .container-basket img {
    max-width: 40px;
    height: auto;
}
#mobile-menu-overlay .container-basket {
    display: flex;
    justify-content: center;
    align-items: center;
}
#mobile-menu-overlay .basket_count {
    display: flex;
    align-items: center;
}
    #mobile-menu-overlay .basket_count p {
        position: absolute;
        font-size: var(--font-size-h1);
        color: rgb(255, 255, 255);
        top: 2px;
        left: 6px;
    }
    #mobile-menu-overlay .basket_count p span {
        font-size: 12px;
    }

#mobile-menu-overlay .basket {
    display: flex;
    flex-direction: column;
    align-items: start;
}
#mobile-menu-overlay .basket a {
    color: var(--text-color-dark);
    text-decoration: none;
    margin-top: 0;
}
	/* Main */
	main {
		width: 100%;
		/* На мобильных устройствах блок занимает всю ширину */
		padding: 0 10px 10px 10px;
		/* Добавляем отступы для лучшего отображения */
		font-size: var(--font-size-h4);
		/* Уменьшаем размер шрифта для мобильных устройств */
	}
	.main-content {
		display: grid;
		grid-template-areas:
							"leftmenu"
							"services-content";
		/* Оставляем только основное содержимое */
		grid-template-columns: 100%; /*1fr*/
		/* Один столбец на всю ширину */
		grid-template-rows:  min-content auto;
		/* Высота зависит от контента */
		padding: 0;
		margin: 0;
		gap: 0;
	}
	.table-left td,
	.table-right td{
		width: 100%;
	}
	.table-left .dropdown-content,
	.table-right .dropdown-content {
		display: none;
		position: absolute;
		width: 100%;
		top: 40px;
		border: 1px solid var(--border-color);

	}
	.table-right,
	.table-left {
		width: 100%;
		padding: 0;
	}
	.table-content {
		width: 100%;
	}
	.container-reviews {
		width: 100%;
		/* Робимо блок на всю ширину */
		margin-left: 0;
		/* Видаляємо відступ зліва */
		margin-top: 20px;
		/* Додаємо відступ зверху */
	}
	.question-table {
		flex-direction: column;
		/* Змінюємо напрямок на колонку */
	}
	.not-questiuon img {
		position: static;
		/* Видаляємо абсолютне позиціювання */
		margin-top: 10px;
		/* Додаємо відступ зверху */
	}
	/* Контент */
	.content {
		flex-direction: column;
		padding: 0 10px;
	}
	.services-content {
		min-height: auto;
		height: auto;
}

	.text-content {
		font-weight: normal;
		color: var(--text-color-dark);
		text-align: justify;
	}
	.size-name-device {
		padding-bottom: 10px;
		text-align: left;
	}
	.style-title-content {
		text-align: center;
		margin-bottom: 10px;
	}

	.size-name-device {
		margin: 0 10px;
	}

/****************************/
/******* Оборудование *******/
.hidden-content {
	display: none;
}
    button.btn.btn-basket{
        font-size: 0.9em;
        margin-left: 0;
        margin-bottom: 3px;
        margin-top: -4px;
        color: #6d9db2;
    }
    .modal_title {
        font-size: 1em;
    }
button.btn-h2 {
	font-size: 12px;
    line-height: 0.8em;
    /*padding: 0.3em 0.3em 0.8em 0.3em;*/
    border-radius: 0.4em;
    margin-top: 8px;
}
.show-more-btn {
	display: block;
}
.button-content-block {
	display: flex;
	text-align: end;
	/*display: block;*/
}
.img-content {
	float: none;
	/* Вирівнювання по лівому краю */
	margin: 7px 7px 7px 0;
	/* Відступи навколо картинки */
	width: 90%;
}
/****************************/
/*****  Модельное кокно *****/
.modal-content {
	width: 90%;
}
    .card-header span{
        font-size: 0.9em;
    }

    .card-header-order{
        font-size: 0.8em;
    }
/****************************/
/****  Вертикальне меню  ****/
.leftmenu {
    overflow: hidden; /* Скрываем содержимое, которое выходит за пределы */
    max-height: 0; /* Начальное состояние: меню скрыто */
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Анимация */
    opacity: 0; /* Начальная прозрачность */
    margin: 0 10px 0 10px;
}
.leftmenu.open {
    max-height: max-content; /* Максимальная высота, чтобы вместить содержимое */
    opacity: 1; /* Показываем меню */
}
.menu_name_header{
display: none;
}
/****************************/
/********** Footer **********/
footer {
		max-width: 100%;
		/* Футер занимает всю ширину экрана */
		width: 100%;
		/* Убедимся, что ширина 100% */
		height: auto;
		/* Высота зависит от контента */
		border-radius: 0;
		/* Убираем скругление углов для мобильной версии */
		background-image: none;
		/* Убираем фоновое изображение для мобильной версии */
		padding: 10px;
		/* Добавляем отступы для лучшего отображения */
		box-sizing: border-box;
		/* Учитываем padding в общей ширине */
}
.footer-content {
		display: grid;
		grid-template-areas:
			"footer-logo footer-socials"
			"footer-info-1 footer-info-2"
			"footer-info-3 footer-info-4";
		grid-template-columns: 1fr 1fr;
		/* Два столбца на всю ширину */
		grid-template-rows: auto auto auto;
		/* Три строки, высота зависит от контента */
		width: 100%;
		/* Контейнер занимает всю ширину */
		height: auto;
		/* Высота зависит от контента */
		gap: 10px;
		/* Добавляем промежутки между элементами */
		box-sizing: border-box;
		/* Учитываем padding в общей ширине */
}
.footer-logo,
.footer-socials {
		text-align: center;
		/* Центрируем логотип и соцсети */
}
.footer-info-1,
.footer-info-2,
.footer-info-3,
.footer-info-4 {
		text-align: center;
		/* Центрируем текст */
}
/*****************************/
/**** Горизонтальное меню ****/
#mobile-menu-toggle {
	display: flex;
	cursor: pointer;
}
#mobile-menu-overlay {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	right: -60%;
	width: 70%;
	height: 100vh;
	background-color: #BADCEF;
	box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
	z-index: 1000;
	transition: right 0.3s ease-in-out;
	opacity: 0;
	visibility: hidden;
	overflow-y: auto;
}
#mobile-menu-overlay.active {
	right: 0;
	opacity: 1;
	visibility: visible;
}
.nav-menu {
	flex-direction: column;
	padding: 0;
	margin-top: 20px;
	list-style: none;
	width: 100%;
	margin-bottom: 130px;
}
.sub-menu {
	display: flex;
	justify-content: center;
  width: 100%; /* Ширина на весь экран */
  margin: 0; /* Убираем отступы */
	padding: 0;
  background-image: none; /* Убираем градиент */
	border: none;
}
.sub-menu li {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-bottom: 4px;
	width: 90%;
}
.style-name-parent{
	width: 100%;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	background-color: #a5cde5;
	position: relative;
}
.sub-menu li a {
	text-align: center;
	color: var(--text-color-dark);
	text-decoration: none;
	font-size: 13px;
	line-height: 26px;
	width: 100%;
	padding-bottom: 6px;
	border: none;
}
.sub-menu li ul {
	display: flex;
	flex-direction: column;
	justify-content: center; /* Центрирование по вертикали */
	align-items: center;     /* Центрирование по горизонтали */
	height: 100%;
	position: static;
	visibility: visible;
	/*display: none;*/
	width: 100%;
	background-image: none;
	box-shadow: none;
	border: none;
	padding-top: 10px;
}
.sub-menu li:hover ul {
    display: block; /* Показываем подменю при наведении */
}
.sub-menu li ul li {
	left:initial;
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	font-size: var(--font-size-h1);
	cursor: pointer;
	background-color: #dbecfc;
	border-radius: 5px;
	box-shadow: none;
	-moz-box-shadow: none;
	-o-box-shadow: none;
	-webkit-box-shadow: none;
	/*-ms-box-shadow: none;*/
	border: 1px solid var(--border-color);
}
.sub-menu li ul li:hover {
	background-color: #a2c9e9c4;
}
.sub-menu li ul li a {
	text-align: start;
	font-weight: normal;
	width: 100%;
	margin: 0;
	font-size: 12px;
	text-decoration: none;
	line-height: 14px;
	padding-left: 10px;
	padding-top: 5px;
	padding-bottom: 10px;
	background-color: transparent;
}
.sub-menu li ul li:hover a {
	background-image: none;
	border: none;
}
.sub-menu li.parent .style-name-parent>a::after {/* Индикатор наличия подкатегорий верхнего уровня */
	position: absolute;
	border-left: 1px solid var(--border-color);
	border-top: 1px solid var(--border-color);
	content: "";
	vertical-align: middle;
	top: 40%;
	right: 10px;
	/*-webkit-transform: rotate(-135deg);*/
	/*-moz-transform: rotate(-135deg);*/
	-ms-transform: rotate(-135deg);
	/*-o-transform: rotate(-135deg);*/
	transform: rotate(-135deg);
	height: 5px;
	width: 5px;
}
.sub-menu li.parent.active > ul {
	display: block;
}
.sub-menu li.parent > ul {
	display: none;
}
/* Кнопка открытия вертикального меню */
.button-content {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 100%;
    margin-bottom: 10px;
}
.button-opem-left-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #a5cde5;
	width: 100px;
	height: 24px;
	border-radius: 0 0 5px 5px;
	border-left: 1px solid var(--border-color);
	border-right: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}
.button-open-left-menu p{
	font-size: 30px;
	line-height: 10px;
	padding-bottom: 20px;
}
.button-open-left-menu:hover ul {
	border: none;
	display: block;
	/* Показываем подменю при наведении */
}
/*  */
.product-card {
	grid-template-columns: 100%; /* Одна колонка на всю ширину */
}
    .category-img {
        width: 90%;
    }
    .text-main {
        max-width: 300px;
    }
    .category-content{
        display: flex;
        flex-direction: row;
        align-content: center;
        flex-wrap: wrap;
        justify-content: center;
    }

.category-card {
	grid-template-columns: 100%; /* Одна колонка на всю ширину */
}
/* Отзывы */
.container-reviews-all{
	width: 90%;
}

/* Корзина */
    .switch, p {
        margin-bottom: 0;
        line-height: 1.4em;
    }
    .label-price {
        font-size: 20px;
        color: var(--border-color);
        margin-right: 10px;
        line-height: 1.2em;
        margin-bottom: 0.6em;
    }
    .lang-msg .new span {
        padding: 0 0 4px 0;
    }
    .image-search-size{
        margin-top: 5px;
    }
    button.btn-h4{
        font-size: 0.7em;
        line-height: 1.2em;
        padding: 0.3em 0.5em 0.7em 0.6em;
        border-radius: 0.7em;
    }
	button.btn.no-style{
        padding: 0;
        color: #5e90a5;
    }

    .chat-close{
        display: block;
        position: relative;
    }
    .chat-close span{
        position: absolute;
        right: 7px;
        top: 9px;
    }

	span {
		font-size: 1em;
	}
    .cart-line {
        margin-top: 10px;
        padding: 0;
        border-top: 1px dotted #888484;
    }

    .load-file {
        font-size: 13px;
    }

    /* Dashboard menu */
    .dashboard_menu {
        display: flex;
        text-align: center;
        margin-top: -10px;
        margin-bottom: 15px;
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: center;
    }
    .discount-row{
        display: flex;
        padding-top: 0;
        padding-left: 15px;
    }
    .personal-info{
        gap: 5px;
    }
    .accordion {
        margin-bottom: 10px;
    }
    .personal-info span{
        line-height: 1.4em;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3px;
    }
    .chat-window {
        overflow-y: auto;
        height: calc(100vh - 210px); /*226*/
        padding: 0 10px;
    }

/* Заказ неавторизированих пользователей */
    .order-name {
        flex-direction: column;
        gap: 0;
    }
    .order-guest {
        font-size: 0.9em;
    }
    .order-edit-operator {
        flex-wrap: wrap;
        line-height: 0.8em;
    }
    .order-name span{
        font-size: 0.8em;
        line-height: 1.8em;
    }
    .orders-div span{
        font-size: 0.8em;
    }
    span.format-text{
        white-space: nowrap;
        margin: 0;
        padding: 0;
        line-height: normal;
    }

    .delivery-input {
        font-size: 0.8em;
        padding-top: 7px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-back {
        margin-top: 5px;

    }
    .discount-text {
        top: 20px;
    }
    .discount-title {
        width: 98%;
    }
    .label-font-content {
        font-size: 0.9em;
        color: #999;
        text-decoration: line-through;
        margin-right: 8px;
    }
    .style_title {
        font-size: 0.8em;
    }

    .label-price .total_sum{
        margin-right: 10px;
        line-height: 1em
    }
    .label_position {
        margin-bottom: 0;
    }
    .breadcrumb-title{
        display: none;
    }
    .cart-item-info {
        line-height: 20px;
        font-size: .7em;
    }
    .cart-quantity{
        padding-left: 1px;
    }
    .cart-item {
        margin-top: 10px;
        display: flex;
        align-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    .details-order{
        font-size: 0.7em;
    }

    .label_position {
        padding-bottom: 0;
    }
    .span-style-line{
        line-height: 0;
        padding-top: 8px;
    }



}

/* На десктопах кнопка скрыта */
@media (min-width: 769px) {
    .show-more-btn {
        display: none;
    }
    /* для форми адаптация */
    .order-form {
        flex-wrap: nowrap;
        align-items: center;
        column-gap: 10px;
    }

    .order-form > * {
        flex: unset;
    }

    .order-form .form-control {
        min-width: 200px;
    }

}
