/* MM Unified Child: light header + hero. Parent: ColorMag. */

/* ----- Fonts: PT Sans (from Komfort-live reference) ----- */
@font-face {
	font-family: "PT Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/pt-sans-v18-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
	font-family: "PT Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/pt-sans-v18-cyrillic_cyrillic-ext_latin_latin-ext-italic.woff2") format("woff2");
}
@font-face {
	font-family: "PT Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/pt-sans-v18-cyrillic_cyrillic-ext_latin_latin-ext-700.woff2") format("woff2");
}
@font-face {
	font-family: "PT Sans";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/pt-sans-v18-cyrillic_cyrillic-ext_latin_latin-ext-700italic.woff2") format("woff2");
}

/* ----- Global site font: PT Sans, крупнее ----- */
body.mm-unified-child {
	font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
	font-size: 18px;
	line-height: 1.5;
}
body.mm-unified-child .mm-unified-header,
body.mm-unified-child .mm-hero,
body.mm-unified-child #cm-content,
body.mm-unified-child .cm-primary,
body.mm-unified-child .cm-posts,
body.mm-unified-child .entry-title,
body.mm-unified-child .entry-content {
	font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}
body.mm-unified-child .mm-unified-header { font-size: 1rem; }
body.mm-unified-child #cm-content,
body.mm-unified-child .cm-primary,
body.mm-unified-child .entry-content { font-size: 1.125rem; }

/* ----- Header: light bar, logo, 4 menu items, search ----- */
.mm-unified-header {
	background: #fff;
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
	position: relative;
	z-index: 100;
}
.mm-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.mm-logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: none;
	white-space: nowrap;
}
.mm-logo:hover {
	color: #2563eb;
}
.mm-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}
.mm-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.25rem 1.5rem;
	flex-wrap: wrap;
	justify-content: center;
}
.mm-menu a {
	color: #374151;
	text-decoration: none;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.35em 0.5em;
	border-radius: 4px;
}
.mm-menu a:hover {
	color: #1a1a1a;
	background: rgba(0,0,0,.04);
}
.mm-header-actions {
	display: flex;
	align-items: center;
}
.mm-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	color: #374151;
	cursor: pointer;
	border-radius: 6px;
}
.mm-search-toggle:hover {
	background: rgba(0,0,0,.06);
	color: #1a1a1a;
}
.mm-search-dropdown {
	position: relative;
}
.mm-search-dropdown summary {
	list-style: none;
	cursor: pointer;
}
.mm-search-dropdown summary::-webkit-details-marker { display: none; }
.mm-search-form-wrap {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 4px;
	padding: 12px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0,0,0,.12);
	border-radius: 8px;
	min-width: 260px;
}
.mm-search-form-wrap label { display: block; }
.mm-search-form-wrap input[type="search"] {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 1rem;
}

/* Hide parent theme header elements if any leak through */
body.mm-unified-child #cm-masthead,
body.mm-unified-child .cm-header-1,
body.mm-unified-child .cm-header-2 { display: none !important; }
/* Hide account/cart in ColorMag if present */
body.mm-unified-child .tg-header-cart,
body.mm-unified-child .tg-header-user,
body.mm-unified-child .cm-header-right-sidebar .widget_shopping_cart,
body.mm-unified-child .menu-item-type-cart { display: none !important; }

/* ----- Hero: full-bleed на всю ширину экрана ----- */
/* Контейнер не обрезает hero */
body.mm-unified-child #cm-content,
body.mm-unified-child .inner-wrap { overflow-x: visible !important; }
.mm-hero {
	position: relative;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3rem 1.5rem;
	overflow: hidden;
	box-sizing: border-box;
	left: 0;
	right: 0;
}
.mm-hero-bg {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	top: 0;
	bottom: 0;
	/* Градиент в центр + плавный переход в белый по краям */
	background:
		linear-gradient(90deg, #fff 0%, transparent 12%, transparent 88%, #fff 100%),
		linear-gradient(135deg, #f8fafc 0%, #f1f5f9 40%, #e2e8f0 100%);
}
.mm-hero-pattern {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	top: 0;
	bottom: 0;
	opacity: 0.4;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30 30 60 0 30 30 0z' fill='%2394a3b8' fill-opacity='0.08'/%3E%3C/svg%3E");
	pointer-events: none;
}
.mm-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	width: 100%;
	margin: 0 auto;
	padding: 0 1.5rem;
	box-sizing: border-box;
}
.mm-hero-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	color: #1e293b;
	line-height: 1.2;
	margin: 0 0 0.75rem;
}
.mm-hero-sub {
	font-size: 1.25rem;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 1.5rem;
}
.mm-hero-cta {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	background: #2563eb;
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(37,99,235,.35);
	transition: background .2s, transform .1s;
}
.mm-hero-cta:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
	.mm-menu a { font-size: 1.2rem; letter-spacing: 0.05em; }
}
@media (max-width: 768px) {
	.mm-header-inner {
		padding: 0.6rem 1rem;
	}
	.mm-nav { order: 3; width: 100%; }
	.mm-menu {
		justify-content: flex-start;
		gap: 0.5rem;
	}
	.mm-menu a {
		font-size: 1rem;
		letter-spacing: 0.04em;
	}
	.mm-hero {
		min-height: 280px;
		padding: 2rem 1rem;
	}
	.mm-hero-title { font-size: 1.5rem; }
	.mm-hero-sub { font-size: 0.95rem; }
}
