/* ===== css-0 (0-960px) ===== */

/* ===== Шапка maket2027 (mk-header): мобильный вариант (<=960px) ===== */
/* Страховка от горизонтального скролла на узких экранах */
body {
	overflow-x: hidden;
}
/* Старую мобильную шапку (header1m) заменяет новая mk-шапка */
#header1m {
	display: none !important;
}
/* Тёмная полоса: прячу «доставку», «гарантию», «поддержку»,
   показываю только город, замерщика, телефон и «О компании» */
.mk-topline {
	display: none;
}
.mk-topline-inner {
	height: 40px;
	padding: 0 10px;
}
.mk-topline-left {
	gap: 14px;
}
.mk-topline-right {
	gap: 16px;
}
.mk-topline-right a {
	font-size: 17px;
}
.mk-topline-measure span {
	font-size: 12px;
}
.mk-topline-measure--mobile {
	display: flex;
}
/* Основная оранжевая строка: бургер + лого + иконки */
.mk-main-inner {
	height: auto;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px;
	position: relative;
}
/* Панель мобильного меню позиционируем под шапкой */
.mk-mobile-menu {
	position: static;
	box-shadow: none;
	border-bottom: 1px solid #e0e0e0;
	max-height: calc(100vh - 120px);
}
.mk-menu-open .mk-mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	max-height: 100vh;
	box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
/* Бургер: на мобильных виден */
.mk-burger {
	display: flex;
	flex-shrink: 0;
	order: -1;
}
/* Лого: уменьшенный размер */
.mk-logo-svg svg {
	width: 130px;
	height: 26px;
}
.mk-logo {
	flex: 1;
	text-align: center;
}
/* Иконки справа: только иконки без подписей */
.mk-icons {
	gap: 12px;
	margin-left: auto;
}
.mk-icon-item span {
	display: none;
}
.mk-icon-item svg {
	width: 22px;
	height: 22px;
}
/* Поиск: во вторую строку, на всю ширину */
.mk-search {
	order: 3;
	flex: 1 1 100%;
}
.mk-search input[type="text"],
.mk-search input[type="search"],
.mk-search input:not([type]) {
	height: 40px;
	font-size: 14px;
}
.mk-search button {
	height: 40px;
	min-width: 48px;
}
/* Оранжевая полоса с категориями: скрыта, её заменяет мобильная панель */
.mk-nav {
	display: none;
}

/* --- Мобильная шапка (header1m) --- */
#header1m {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.header1m_logo svg {
    display: block;
}
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* --- Мобильный нижний бар (footer1m) --- */
#footer1m {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 15px 0;
}
.footer1m_item {
    text-align: center;
    font-size: 11px;
}
.footer1m_item a {
    color: #787878;
    text-decoration: none;
    font-size: 11px;
}
.footer1m_item a:hover {
    color: #000;
}


/* --- Контейнер шапки --- */
.header-wrapper {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Контейнер контента --- */
.content-wrapper {
    width: 100%;
    margin: 20px auto 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- Хлебные крошки --- */
.breadcrumbs-bar {
    background-color: #ffffff;
}
.breadcrumbs-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.breadcrumbs-inner table {
    width: 100%;
}

/* --- header1 (город, кнопки, телефон) --- */
#header1 {
    display: none;
}
/* --- header1 (город, кнопки, телефон) --- */
#header1.visible {
    background-color: #ededed;
    border-radius: 7px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}
#header1_block1 {
    font-size: 14px;
    padding: 5px 8px;
    display: flex;
    width: 220px;
    order: 1;
}
#header1_block1 A {
    color: #000;
    text-decoration: none;
}
#header1_block1 A:hover {
    color: #4f4f4f;
    text-decoration: underline;
}
#header1_menu {
    display: none;
}
#header1_block2 {
    order: 2;
}
#header1_block2 .btn {
    font-size: 12px;
    padding: 5px 12px;
}
#header1_block4 {
    font-size: 14px;
    font-weight: bold;
    padding: 5px 8px;
    order: 3;
}
#header1_block5 {
    order: 4;
}
#header1_block5 .btn {
    font-size: 12px;
    padding: 5px 12px;
}
.btn {
    background-color: #fb832f;
    border-radius: 7px;
    color: #fff;
    border: 0px;
    padding: 7px 20px;
    font-family: "Roboto Condensed", serif;
    font-size: 14px;
    cursor: pointer;
}

/* --- header2 --- */
#header2 {
    display: none;
}
/* --- header2 --- */
#header2.visible {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 10px 0;
    gap: 8px;
}
.header2_logo {
    width: 220px;
    order: 1;
}
.header2_logo svg {
    width: 130px;
    height: auto;
}
.header2_catalogbtn {
    order: 2;
    width: 220px;
}
.header2_catalogbtn button {
    background: #ee5013;
    border: 0px;
    border-radius: 7px;
    color: #fff;
    height: 36px;
    font-size: 16px;
    width: 220px;
    background-image: url("/images/catalog.png");
    background-repeat: no-repeat, no-repeat;
    background-position: center left 0.8em;
    background-size: 16px;
    padding-left: 32px;
    padding-right: 12px;
    cursor: pointer;
}
.header2_search {
    order: 5;
    width: 100%;
}
/* В новой шапке mk-search иконка-лупа и кнопка — отдельные элементы,
   фон-картинку search.png у инпута не применяем */
.header2_icons {
    order: 3;
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-grow: 1;
}
.header2_icons A {
    color: #787878;
    font-size: 12px;
    text-decoration: none;
}
.header2_icons A:hover {
    color: #000;
}

/* --- header3 (меню под шапкой) --- */
#header3 {
    background-color: #EDEDED;
    padding: 0 15px;
    margin: 0 0 15px;
}
.header3_menu {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    gap: 20px;
}
.header3_menu LI {
    list-style-type: none;
}
.header3_menu LI A {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.header3_menu LI A:hover {
    color: #ec6608;
}
.header3_menu LI {
    position: relative;
}
.header3_menu LI:hover .header3_submenu {
    display: block;
}
.header3_submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    list-style: none;
    margin: 0;
}
.header3_submenu LI {
    list-style-type: none;
}
.header3_submenu LI A {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}
.header3_submenu LI A:hover {
    background: #f5f5f5;
    color: #ec6608;
}

/* ===== Подменю (header3): вертикальное / горизонтальное раскрытие ===== */
/* Вертикально: пункты в столбик, панель под пунктом меню (по умолчанию) */
.header3_submenu {
    flex-direction: column;
    min-width: 180px;
}
/* Горизонтально: пункты в строку, панель растягивается от левого края меню */
.header3_menu LI:hover .header3_submenu.header3_submenu--horizontal {
    display: flex;
}
.header3_submenu--horizontal {
    left: 0;
    right: auto;
    min-width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    border-radius: 0 6px 6px 6px;
}
.header3_submenu--horizontal LI {
    border-right: 1px solid #e0e0e0;
    flex-grow: 1;
}
.header3_submenu--horizontal LI:last-child {
    border-right: none;
}
.header3_submenu--horizontal LI A {
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
}

/* --- Футер (footer1) на мобильных: колонки в столбец --- */
.footer1-inner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
}
#footer1 .item {
    width: 100%;
    text-align: center;
}
