/* Главная страница [maro_home] */
.mh { --red: #C42034; --dark: #283043; --gray: #f4f5f7; font-family: 'Manrope', 'Comfortaa', sans-serif; color: var(--dark); }
.mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
.mh-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.mh a { text-decoration: none; }
.mh-sec { padding: 64px 0; }
.mh-sec-gray { background: var(--gray); }
.mh-h2 {
	font-family: 'Aqum', sans-serif; font-size: 34px; text-transform: uppercase; text-align: center;
	color: var(--dark); margin: 0 0 40px; position: relative; padding-bottom: 18px;
}
.mh-h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 120px; height: 3px; background: var(--red); transform: translateX(-50%); }
.mh-h2-left { text-align: left; }
.mh-h2-left::after { left: 0; transform: none; }

.mh-btn {
	display: inline-block; padding: 16px 30px; border-radius: 40px; background: var(--red); color: #fff !important;
	font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; border: 2px solid var(--red);
	transition: transform .15s, box-shadow .15s;
}
.mh-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(196,32,52,.35); }
.mh-btn-ghost { background: transparent; border-color: #fff; }
.mh-btn-ghost:hover { background: #fff; color: var(--red) !important; box-shadow: none; }
.mh-btn-light { background: #fff; color: var(--dark) !important; border-color: var(--dark); }

/* Первый экран */
.mh-hero {
	position: relative; color: #fff; text-align: center; padding: 110px 0 90px;
	background: linear-gradient(rgba(16,19,28,.72), rgba(16,19,28,.82)), var(--bg) center / cover no-repeat;
}
/* Логотип в первом экране только на телефоне: на компьютере он уже есть в шапке */
.mh-hero-brand { display: none; margin: 0 0 22px; }
.mh-hero-brand img { width: 380px; max-width: 80%; height: auto; display: inline-block; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.mh-hero h1 {
	font-family: 'Aqum', sans-serif; font-size: 52px; line-height: 1.15; text-transform: uppercase; margin: 0 0 22px; color: #fff;
	text-shadow: 0 3px 0 var(--red);
}
.mh-hero-sub { font-size: 20px; max-width: 720px; margin: 0 auto 34px; color: #e9ebf0; }
.mh-hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.mh-hero-contacts { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.mh-phone { color: #fff !important; font-size: 26px; font-weight: 800; margin-right: 8px; }
.mh-msg { padding: 9px 18px; border-radius: 30px; color: #fff !important; font-weight: 700; font-size: 15px; }
.mh-wa { background: #25D366; }
.mh-tg { background: #229ED9; }
.mh-rating {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 20px; border-radius: 40px;
	background: rgba(255,255,255,.12); color: #fff !important; font-size: 15px;
}
.mh-rating b { font-size: 22px; }
.mh-stars { color: #FFC107; letter-spacing: 2px; }

/* Цифры */
.mh-facts { background: var(--dark); color: #fff; padding: 34px 0; }
.mh-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mh-facts b { display: block; font-family: 'Aqum', sans-serif; font-size: 30px; color: #fff; margin-bottom: 6px; }
.mh-facts span { font-size: 15px; color: #c9cdd6; line-height: 1.4; }

/* Каталог */
.mh-cat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mh-cat-item {
	display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden;
	box-shadow: 0 2px 10px rgba(40,48,67,.1); transition: transform .15s, box-shadow .15s;
}
.mh-cat-item:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(40,48,67,.18); }
.mh-cat-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray); position: relative; }
.mh-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-stamp {
	position: absolute; inset: 0; margin: auto; width: 76%; height: 64px; display: flex; align-items: center; justify-content: center;
	border: 4px solid var(--red); border-radius: 6px; color: var(--red); font-family: 'Aqum', sans-serif; font-size: 22px;
	text-transform: uppercase; transform: rotate(-8deg);
	background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(40,48,67,.06) 22px 23px);
}
.mh-cat-title { padding: 16px 16px 4px; font-weight: 800; font-size: 16px; text-transform: uppercase; color: var(--dark); }
.mh-cat-price { padding: 0 16px 16px; color: var(--red); font-weight: 800; font-size: 17px; }
.mh-cat-title:last-child { padding-bottom: 16px; }

/* Клиенты */
.mh-clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.mh-client {
	background: #fff; border-radius: 10px; height: 110px; display: flex; align-items: center; justify-content: center; padding: 18px;
}
.mh-client img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.mh-client img[src*="luchi"] { max-height: 84px; }
.mh-client-name { font-family: 'Aqum', sans-serif; font-size: 24px; text-transform: uppercase; color: var(--dark); }

/* Портфолио */
.mh-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mh-work { margin: 0; }
.mh-work img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px; display: block; }
.mh-work-big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
/* Высоту большого фото задают два ряда соседей; flex-basis 0 — иначе Safari растягивает фото по его родной высоте */
.mh-work-big img { flex: 1 1 0; min-height: 0; height: 0; aspect-ratio: auto; }
.mh-work figcaption { padding: 10px 2px 0; font-size: 15px; color: #5a6275; }
.mh-work figcaption b { color: var(--dark); }
.mh-works-btns { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* Расчёт */
.mh-calc { background: var(--dark); color: #fff; }
.mh-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.mh-calc h2 { font-family: 'Aqum', sans-serif; font-size: 36px; text-transform: uppercase; color: #fff; margin: 0 0 26px; line-height: 1.2; }
.mh-calc ul { list-style: none; margin: 0; padding: 0; }
.mh-calc li { position: relative; padding-left: 34px; margin-bottom: 16px; font-size: 18px; line-height: 1.45; color: #e3e6ec; }
.mh-calc li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #fff; background: var(--red); width: 22px; height: 22px; border-radius: 50%; font-size: 13px; text-align: center; line-height: 22px; }
.mh-quiz { background: #fff; color: var(--dark); border-radius: 12px; padding: 30px; min-height: 380px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.mh-step { display: none; flex: 1; }
.mh-quiz [hidden] { display: none !important; }
.mh-opts label { position: relative; }
.mh-step.is-active { display: block; }
.mh-q { font-weight: 800; font-size: 20px; color: var(--red); margin: 0 0 18px; }
.mh-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mh-opts label { cursor: pointer; }
.mh-opts input { position: absolute; opacity: 0; }
.mh-opts span { display: block; padding: 12px 14px; border: 2px solid #dfe2e8; border-radius: 8px; font-size: 15px; font-weight: 600; height: 100%; }
.mh-opts input:checked + span { border-color: var(--red); background: #fdf1f2; }
.mh-file { display: block; border: 2px dashed #c6cad3; border-radius: 10px; padding: 34px 16px; text-align: center; cursor: pointer; font-weight: 700; }
.mh-file input { display: block; margin: 0 auto 10px; max-width: 100%; }
.mh-note { font-size: 13px; color: #7a8193; margin: 10px 0 0; }
.mh-quiz textarea, .mh-quiz input[type=text], .mh-quiz input[type=tel] {
	width: 100%; border: 2px solid #dfe2e8; border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 16px; margin-bottom: 12px; color: var(--dark);
}
.mh-agree { display: block; font-size: 13px; color: #5a6275; }
.mh-agree a { color: var(--red); text-decoration: underline; }
.mh-quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.mh-quiz-nav button {
	background: var(--red); color: #fff; border: 0; border-radius: 30px; padding: 12px 26px; font-weight: 800; font-size: 15px; cursor: pointer;
}
.mh-quiz-nav .mh-prev { background: #eceef2; color: var(--dark); }
.mh-quiz-nav button:hover { opacity: .9; }
.mh-progress { font-size: 14px; color: #7a8193; margin-left: auto; margin-right: auto; }
.mh-quiz-done { margin: auto; text-align: center; font-size: 18px; line-height: 1.6; }
.mh-quiz-err { color: var(--red); font-weight: 700; }
.mh-hp { position: absolute !important; left: -9999px !important; }

/* Отзывы */
.mh-reviews { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.mh-big-rating b { font-family: 'Aqum', sans-serif; font-size: 64px; color: var(--dark); vertical-align: middle; }
.mh-big-rating .mh-stars { font-size: 30px; vertical-align: middle; }
.mh-reviews-text p { font-size: 17px; line-height: 1.5; }
.mh-reviews-widget { height: 520px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(40,48,67,.1); }
.mh-reviews-widget iframe { width: 100%; height: 100%; border: 0; }

/* SEO-текст: виден целиком в коде, на экране свёрнут до первых строк */
.mh-seo { padding: 48px 0; background: #fff; }
.mh-seo-title { font-family: 'Aqum', sans-serif; font-size: 22px; text-transform: uppercase; color: var(--dark); margin: 0 0 16px; }
.mh-seo-text { position: relative; max-height: 150px; overflow: hidden; font-size: 14px; line-height: 1.6; color: #6b7285; max-width: 900px; }
.mh-seo-text::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.mh-seo-text h3 { font-size: 15px; font-weight: 800; color: var(--dark); margin: 16px 0 8px; }
.mh-seo-text p, .mh-seo-text ul { margin: 0 0 12px; }
.mh-seo-text ul { padding-left: 18px; }
.mh-seo.is-open .mh-seo-text { max-height: none; }
.mh-seo.is-open .mh-seo-text::after { display: none; }
.mh-seo-more { margin-top: 10px; background: none !important; border: 0; padding: 0; color: var(--red) !important; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: underline; }
@media (max-width: 767px) {
	.mh-seo-text { max-height: 120px; }
	.mh-seo-title { font-size: 18px; }
}

/* Призыв */
.mh-cta { text-align: center; background: linear-gradient(135deg, #C42034, #8e1424); color: #fff; }
.mh-cta h2 { font-family: 'Aqum', sans-serif; font-size: 34px; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.mh-cta p { font-size: 18px; margin: 0 0 24px; color: #fbe9eb; }
.mh-cta .mh-legal { font-size: 13px; margin: 30px 0 0; opacity: .75; }

/* Тестовая/главная: без заголовка страницы и боковых отступов темы */
body.maro-home .page-header { display: none; }
body.maro-home .site-main, body.maro-home main#content { max-width: none; padding: 0; margin: 0; }
body.maro-home .page-content { margin: 0; }

@media (max-width: 1024px) {
	.mh-cat { grid-template-columns: repeat(3, 1fr); }
	.mh-clients { grid-template-columns: repeat(4, 1fr); }
	.mh-calc-grid, .mh-reviews { grid-template-columns: minmax(0, 1fr); }
	.mh-facts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.mh-sec { padding: 44px 0; }
	.mh-h2 { font-size: 24px; margin-bottom: 28px; }
	.mh-hero { padding: 64px 0 56px; }
	.mh-hero h1 { font-size: 28px; }
	.mh-hero-brand { display: block; }
	.mh-hero-brand img { width: 260px; }
	.mh-hero-sub { font-size: 16px; }
	.mh-btn { width: 100%; text-align: center; }
	.mh-phone { width: 100%; margin: 0 0 6px; }
	.mh-facts b { font-size: 22px; }
	.mh-facts span { font-size: 13px; }
	.mh-cat { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.mh-cat-title { font-size: 13px; padding: 10px 10px 2px; }
	.mh-cat-price { font-size: 14px; padding: 0 10px 12px; }
	.mh-cat-title:last-child { padding-bottom: 12px; }
	.mh-stamp { font-size: 14px; height: 44px; border-width: 3px; }
	.mh-clients { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.mh-client { height: 84px; padding: 12px; }
	.mh-client-name { font-size: 18px; }
	.mh-works { grid-template-columns: 1fr 1fr; gap: 10px; }
	.mh-work-big { grid-row: auto; }
	.mh-work-big img { flex: none; aspect-ratio: 16 / 10; height: auto; }
	.mh-work figcaption { font-size: 12px; }
	.mh-calc h2, .mh-cta h2 { font-size: 24px; }
	.mh-calc li { font-size: 16px; }
	.mh-quiz { padding: 20px; }
	.mh-opts { grid-template-columns: 1fr; }
	.mh-reviews-widget { height: 460px; }
	.mh-big-rating b { font-size: 48px; }
}
.mh-max { background: linear-gradient(135deg, #3d7bff, #8b3dff); }
