/* ==========================================================
   Milwaukee Service Global CSS
   Общие стили для milwaukee-servis.ru
   Цвета бренда: #AB0116 / #DA031D / #191E2B
   ========================================================== */

:root {
	--mw-red: #DA031D;
	--mw-red-dark: #AB0116;
	--mw-dark: #191E2B;
	--mw-dark-2: #111520;
	--mw-text: #F7F8FA;
	--mw-muted: rgba(255,255,255,.72);
	--mw-line: rgba(255,255,255,.12);
	--mw-card: rgba(255,255,255,.06);
	--mw-card-strong: rgba(255,255,255,.1);
	--mw-white: #ffffff;
	--mw-soft: #F5F6F8;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--mw-dark-2);
	color: var(--mw-text);
}

/* Универсальные контейнеры */
.mw-container {
	width: min(1200px, calc(100% - 32px));
	margin-left: auto;
	margin-right: auto;
}

/* Карточки */
.mw-card,
.mw-service-card,
.mw-scheme-card,
.mw-part-card,
.mw-guide-card {
	background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
	border: 1px solid var(--mw-line);
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(0,0,0,.26);
	backdrop-filter: blur(10px);
}

/* Кнопки */
.mw-btn,
.mw-action-btn,
.mw-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 16px;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mw-btn:hover,
.mw-action-btn:hover,
.mw-contact-btn:hover {
	transform: translateY(-2px);
}

.mw-btn-primary,
.mw-action-btn-primary {
	background: linear-gradient(135deg, var(--mw-red), var(--mw-red-dark));
	color: #fff !important;
	box-shadow: 0 18px 40px rgba(218,3,29,.34);
}

.mw-btn-dark,
.mw-action-btn-dark {
	background: rgba(255,255,255,.08);
	color: #fff !important;
	border-color: rgba(255,255,255,.14);
}

/* Шапка */
.mw-header {
	background:
		radial-gradient(circle at 15% 0%, rgba(218,3,29,.34), transparent 34%),
		linear-gradient(135deg, #10141f 0%, #191E2B 55%, #090B10 100%);
	border-bottom: 1px solid rgba(255,255,255,.12);
}

.mw-logo img,
.mw-logo svg {
	max-height: 48px;
	width: auto;
}

/* Первый экран */
.mw-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 80% 10%, rgba(218,3,29,.26), transparent 30%),
		linear-gradient(180deg, #191E2B 0%, #10141F 100%);
}

.mw-hero h1,
.mw-page-title {
	color: #fff;
	letter-spacing: -.04em;
}

.mw-hero p,
.mw-page-lead {
	color: var(--mw-muted);
}

/* Блоки схем */
.mw-scheme-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
	gap: 28px;
	align-items: start;
}

.mw-scheme-image-box {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background: #fff;
	border: 1px solid rgba(255,255,255,.14);
	box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.mw-scheme-image-box img {
	display: block;
	width: 100%;
	height: auto;
}

.mw-zoom-btn,
.mw-loupe {
	position: absolute;
	right: 18px;
	top: 18px;
	z-index: 5;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	border: none;
	background: linear-gradient(135deg, var(--mw-red), var(--mw-red-dark));
	color: #fff;
	box-shadow: 0 16px 34px rgba(218,3,29,.36);
	cursor: pointer;
}

/* Гайд по взрыв-схеме */
.mw-guide {
	display: grid;
	gap: 16px;
}

.mw-guide-step {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 14px;
	align-items: start;
	padding: 18px;
	border-radius: 18px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
}

.mw-guide-step-num {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--mw-red);
	color: #fff;
	font-weight: 900;
}

/* Таблица/карточки деталей */
.mw-parts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.mw-part-card {
	padding: 18px;
}

.mw-part-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.mw-part-pos {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(218,3,29,.16);
	color: #fff;
	font-weight: 900;
	border: 1px solid rgba(218,3,29,.38);
}

.mw-part-art {
	color: #fff;
	font-weight: 800;
}

.mw-part-name {
	color: #fff;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.25;
}

.mw-part-original {
	margin-top: 6px;
	color: var(--mw-muted);
	font-size: 13px;
}

.mw-part-meta {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mw-pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.1);
	color: rgba(255,255,255,.84);
	font-size: 13px;
	font-weight: 700;
}

/* Категории инструмента */
.mw-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mw-category-card {
	position: relative;
	overflow: hidden;
	min-height: 180px;
	padding: 24px;
	background:
		linear-gradient(145deg, rgba(218,3,29,.22), rgba(255,255,255,.05)),
		#191E2B;
	border-radius: 24px;
	border: 1px solid rgba(255,255,255,.12);
	text-decoration: none !important;
	color: #fff !important;
	box-shadow: 0 20px 55px rgba(0,0,0,.24);
}

.mw-category-card:after {
	content: "";
	position: absolute;
	right: -50px;
	bottom: -50px;
	width: 150px;
	height: 150px;
	border-radius: 999px;
	background: rgba(218,3,29,.28);
}

.mw-category-card h3 {
	position: relative;
	z-index: 2;
	margin: 0;
	color: #fff;
}

.mw-category-card p {
	position: relative;
	z-index: 2;
	color: var(--mw-muted);
}

/* Футер */
.mw-footer {
	background: #090B10;
	border-top: 1px solid rgba(255,255,255,.1);
	color: var(--mw-muted);
}

/* Мобильная версия */
@media (max-width: 991.98px) {
	.mw-scheme-layout,
	.mw-category-grid,
	.mw-parts-grid {
		grid-template-columns: 1fr;
	}

	.mw-hero {
		padding-top: 36px;
		padding-bottom: 36px;
	}

	.mw-card,
	.mw-service-card,
	.mw-scheme-card,
	.mw-part-card,
	.mw-guide-card {
		border-radius: 20px;
	}
}

@media (max-width: 575.98px) {
	.mw-container {
		width: min(100% - 22px, 1200px);
	}

	.mw-btn,
	.mw-action-btn,
	.mw-contact-btn {
		width: 100%;
		min-height: 54px;
	}

	.mw-parts-grid {
		gap: 10px;
	}

	.mw-part-card {
		padding: 15px;
	}

	.mw-part-top {
		align-items: flex-start;
		flex-direction: column;
	}

	.mw-zoom-btn,
	.mw-loupe {
		width: 46px;
		height: 46px;
		border-radius: 14px;
	}
}
