/* =============================================================
   MTSP — Front Page (Homepage) · "Каталог v2" (navy + terracotta)
   Reads global design tokens from tokens.css (--mtsp-*).
   Component vocabulary mirrors docs-claude/styles/rsm-v2.css.
   ============================================================= */

.mtsp-fp {
	overflow-x: hidden;
	color: var(--mtsp-gray-800);
	font-family: var(--mtsp-font-body);
	line-height: 1.6;
}
.mtsp-fp * { box-sizing: border-box; }

/* ---- container (1280, aligns with the v2 header) ----------- */
.fpx {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- shared eyebrow (mono accent) ------------------------- */
.fp-eyebrow {
	display: block;
	color: var(--mtsp-accent);
	font-family: var(--mtsp-font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0 0 12px;
}

/* ---- buttons ---------------------------------------------- */
.fp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.fp-btn--accent {
	background: var(--mtsp-accent);
	color: var(--mtsp-white);
	border-color: var(--mtsp-accent);
	box-shadow: 0 4px 12px -2px rgba(217, 116, 65, .35);
}
.fp-btn--accent:hover {
	background: var(--mtsp-accent-hover);
	border-color: var(--mtsp-accent-hover);
	color: var(--mtsp-white);
	box-shadow: 0 8px 20px -4px rgba(217, 116, 65, .45);
}
.fp-btn--outline {
	background: transparent;
	color: var(--mtsp-white);
	border-color: rgba(255, 255, 255, .35);
}
.fp-btn--outline:hover {
	background: rgba(255, 255, 255, .1);
	border-color: var(--mtsp-white);
	color: var(--mtsp-white);
}

/* =============================================================
   1. HERO (navy)
   ============================================================= */
.fp-hero {
	background: var(--mtsp-navy);
	color: var(--mtsp-white);
	padding: 72px 0 64px;
	position: relative;
	overflow: hidden;
	/* subtle 1px divider so the navy hero detaches from the navy site header */
	border-top: 1px solid rgba(255, 255, 255, .09);
}
.fp-hero::before {
	content: '';
	position: absolute;
	top: -30%; right: -15%;
	width: 760px; height: 760px;
	background: radial-gradient(circle, rgba(217, 116, 65, .14), transparent 60%);
	pointer-events: none;
}
/* Hero content spans the full .fpx container width (single left line with the
   sections below); text stays left-aligned. */
.fp-hero__inner { position: relative; }
.fp-hero .fp-eyebrow { color: var(--mtsp-accent); }
.fp-hero__title {
	font-family: var(--mtsp-font-display);
	font-size: clamp(2rem, 4.4vw, 3rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -1px;
	margin: 0 0 18px;
	color: var(--mtsp-white);
}
.fp-hero__sub {
	font-size: 1.05rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, .82);
	max-width: 640px;
	margin: 0 0 28px;
}
.fp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 44px;
}
.fp-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, auto);
	gap: 40px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
.fp-stat { display: flex; flex-direction: column; gap: 4px; }
.fp-stat__num {
	font-family: var(--mtsp-font-display); /* serif Tinos — «цифри гордості», еталон = Про-нас ah-stat */
	font-size: 2.1rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	color: var(--mtsp-accent);
	line-height: 1.1;
}
.fp-stat__text {
	font-size: .85rem;
	color: rgba(255, 255, 255, .7);
	line-height: 1.4;
	max-width: 220px;
}

/* =============================================================
   SECTION shell + band-label
   ============================================================= */
.fp-section {
	padding: 44px 0;
	border-bottom: 1px solid var(--mtsp-gray-100);
}
.fp-section--alt { background: var(--mtsp-gray-50); }

.fp-band {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 36px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--mtsp-gray-200);
}
.fp-band__main { display: flex; align-items: center; gap: 16px; }
.fp-band__icon {
	flex-shrink: 0;
	width: 46px; height: 46px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 10px;
	background: var(--mtsp-accent-soft);
	color: var(--mtsp-accent);
}
.fp-band__icon svg { width: 24px; height: 24px; }
.fp-band__title {
	font-family: var(--mtsp-font-display);
	font-size: 1.7rem;
	font-weight: 600;
	color: var(--mtsp-navy);
	letter-spacing: -.5px;
	line-height: 1.15;
	margin: 0 0 2px;
}
.fp-band__sub {
	font-size: .9rem;
	color: var(--mtsp-gray-600);
	margin: 0;
}

/* =============================================================
   GRIDS + cards (shared)
   ============================================================= */
.fp-grid { display: grid; gap: 20px; }
.fp-grid--l { grid-template-columns: repeat(3, 1fr); }
.fp-grid--m { grid-template-columns: repeat(4, 1fr); }
.fp-grid--s { grid-template-columns: repeat(3, 1fr); gap: 18px; } /* nav-tile grid: gap уніфіковано 20→18 (трек 2026-07-14); base .fp-grid=20px лишається для --l/--m карток */

.fp-card {
	display: flex;
	flex-direction: column;
	background: var(--mtsp-white);
	border: 1px solid var(--mtsp-gray-200);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.fp-card:hover {
	border-color: var(--mtsp-accent);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -10px rgba(15, 36, 64, .18);
}
.fp-card__media {
	aspect-ratio: 4 / 3;
	background: var(--mtsp-gray-50);
	display: flex; align-items: center; justify-content: center;
	border-bottom: 1px solid var(--mtsp-gray-100);
	padding: 18px;
}
.fp-card__media img { width: 100%; height: 100%; object-fit: contain; }
.fp-card__media--m { aspect-ratio: 16 / 10; }
.fp-card__noimg {
	width: 44px; height: 44px;
	border-radius: 8px;
	background: var(--mtsp-gray-100);
	border: 1px dashed var(--mtsp-gray-300);
}
.fp-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.fp-card__eyebrow {
	font-family: var(--mtsp-font-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--mtsp-accent);
	margin-bottom: 8px;
}
.fp-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--mtsp-navy);
	line-height: 1.3;
	margin: 0 0 8px;
}
.fp-card__title--m { font-size: .98rem; }
/* series-hub benefit line ("for what/whom") — under the M-card title */
.fp-card__use {
	font-size: .82rem;
	color: var(--mtsp-gray-700);
	line-height: 1.45;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fp-card__desc {
	font-size: .85rem;
	color: var(--mtsp-gray-600);
	line-height: 1.6;
	margin: 0 0 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fp-card__spec {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
	margin-bottom: 10px;
	border-top: 1px dashed var(--mtsp-gray-200);
	border-bottom: 1px dashed var(--mtsp-gray-200);
}
.fp-card__spec-lbl {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--mtsp-gray-400);
	font-weight: 700;
}
.fp-card__spec-val {
	font-family: var(--mtsp-font-mono);
	font-size: .85rem;
	font-weight: 700;
	color: var(--mtsp-navy);
}
.fp-card__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 12px;
}
.fp-card__foot--m { border-top: 1px solid var(--mtsp-gray-100); }
.fp-card__more {
	font-size: .82rem;
	font-weight: 700;
	color: var(--mtsp-accent);
	white-space: nowrap;
}

/* price block (reuses .mtsp-card-price from mtsp_render_price) */
.fp-card .mtsp-card-price {
	font-family: var(--mtsp-font-mono);
	font-size: .95rem;
	font-weight: 700;
	color: var(--mtsp-navy);
}
.fp-card .mtsp-card-price--ask {
	font-size: .8rem;
	font-weight: 600;
	color: var(--mtsp-gray-500);
}

/* hub status pill */
.fp-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .78rem;
	font-weight: 600;
	color: var(--mtsp-green);
}
.fp-status::before {
	content: '';
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--mtsp-green);
}

/* =============================================================
   3. СЕРІЙНЕ — category blocks (tetris: small horizontal pair + big grid)
   ============================================================= */
/* Even rhythm between category blocks. 88px = 2× .fp-section padding (44+44),
   so the gap between series blocks equals the gap between full sections
   (Установки→Диспергатори→Відцентрові→Запчастини read on one rhythm). */
.fp-series-smalls,
.fp-cat-block--wide { margin-bottom: 88px; }
.fp-series-smalls:last-child,
.fp-cat-block--wide:last-child { margin-bottom: 0; }

/* Row of small (1-card) categories — two per row, equal columns/height. */
.fp-series-smalls {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: stretch;
}
.fp-cat-block { display: flex; flex-direction: column; }

/* Unified category heading — icon + text, same accent-soft square + Tinos title
   (size/weight/colour) as the .fp-band__main/.fp-band__title bands above. */
.fp-cat-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}
.fp-cat-head--row { justify-content: space-between; gap: 20px; }
.fp-cat-head__main {
	display: flex;
	align-items: center;
	gap: 16px;
}
.fp-cat-head__title {
	font-family: var(--mtsp-font-display);
	font-size: 1.7rem;
	font-weight: 600;
	color: var(--mtsp-navy);
	letter-spacing: -.5px;
	line-height: 1.15;
	margin: 0 0 2px;
}
.fp-cat-head__sub {
	font-size: .9rem;
	color: var(--mtsp-gray-600);
	margin: 0;
}
.fp-cat-head__all {
	flex-shrink: 0;
	font-size: .85rem;
	font-weight: 700;
	color: var(--mtsp-accent);
	text-decoration: none;
	white-space: nowrap;
}
.fp-cat-head__all:hover { color: var(--mtsp-accent-hover); }

/* Horizontal card (small categories) = the vertical .fp-card--m rotated 90°:
   the photo is the LEFT HALF (big block, ~45% of the card width, full height),
   the body is the right half — mirror of the vertical card's photo-top/body-bottom.
   Same body typography/elements as .fp-card--m → siblings. object-fit:contain
   (inherited) keeps equipment uncropped. Both small cards equal height (grid
   stretch above + min-height). If a future row gets crowded, narrow the card —
   the big-photo-left proportion is preserved. */
/* No min-height: now the photo is width-locked to one Г2 track (not inflated), the
   card height is natural (tallest body of the two). flex:1 + grid stretch above keep
   both small cards equal height with no leftover vertical space. */
.fp-card--h { flex-direction: row; flex: 1; }
.fp-card__media--h {
	flex-shrink: 0;
	/* Width = exactly one .fp-grid--m track (the vertical Г2 card below): both the
	   smalls grid (1fr 1fr) and the centrifugal grid (4×1fr) live in the same .fpx
	   with the same 20px gap, so (cardWidth − gap)/2 == (container − 3·gap)/4 == the
	   Г2 card width at ANY container width. calc(50% − 10px) = (606 − 20)/2 ≈ 293px
	   at the 1280 max → disperser photo sits edge-to-edge over the Г2 photo. */
	width: calc(50% - 10px); /* one Г2-card track wide; 10px = gap/2 */
	aspect-ratio: auto;       /* cancel base .fp-card__media 4/3 → height = card height */
	align-self: stretch;      /* photo spans full card height */
	border-bottom: 0;
	border-right: 1px solid var(--mtsp-gray-100);
}

/* Секція «Запчастини» головної: плитки → canon .nav-tile (.nav-tile--photo,
   nav-tiles.css). Грід-обгортка .fp-grid--s + хедери .fp-cat-block/.fp-cat-head*
   лишаються (в інших секціях). Сама плитка .fp-cat* видалена 2026-07-14. */

/* =============================================================
   5. ЧОМУ ОБИРАЮТЬ — advantages strip
   ============================================================= */
.fp-sec-head { max-width: 720px; margin-bottom: 32px; }
.fp-sec-head__title {
	font-family: var(--mtsp-font-display);
	font-size: 2rem;
	font-weight: 600;
	color: var(--mtsp-navy);
	letter-spacing: -.8px;
	line-height: 1.15;
	margin: 0;
}
.fp-adv-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
.fp-adv {
	padding-top: 16px;
	border-top: 2px solid var(--mtsp-gray-200);
	transition: border-color .25s;
}
.fp-adv:hover { border-top-color: var(--mtsp-accent); }
.fp-adv__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--mtsp-navy);
	margin: 0 0 6px;
	line-height: 1.35;
}
.fp-adv__text {
	font-size: .85rem;
	color: var(--mtsp-gray-600);
	line-height: 1.6;
	margin: 0;
}

/* =============================================================
   6. КОНСУЛЬТАЦІЯ (navy CTA)
   ============================================================= */
.fp-cta {
	background: linear-gradient(135deg, var(--mtsp-navy) 0%, var(--mtsp-navy-light) 100%);
	color: var(--mtsp-white);
	position: relative;
	overflow: hidden;
	padding: 64px 0;
}
.fp-cta::before {
	content: '';
	position: absolute;
	top: -30%; right: -15%;
	width: 760px; height: 760px;
	background: radial-gradient(circle, rgba(217, 116, 65, .15), transparent 60%);
	pointer-events: none;
}
.fp-cta__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 56px;
	align-items: start;
}
.fp-cta .fp-eyebrow { color: var(--mtsp-accent); }
.fp-cta__title {
	font-family: var(--mtsp-font-display);
	font-size: 2rem;
	font-weight: 600;
	color: var(--mtsp-white);
	letter-spacing: -.6px;
	line-height: 1.15;
	margin: 0 0 12px;
}
.fp-cta__sub {
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .8);
	margin: 0 0 24px;
}
.fp-cta__points { list-style: none; margin: 0 0 28px; padding: 0; }
.fp-cta__points li {
	position: relative;
	padding: 10px 0 10px 30px;
	font-size: .92rem;
	color: rgba(255, 255, 255, .9);
	line-height: 1.5;
}
.fp-cta__points li::before {
	content: '✓';
	position: absolute; left: 0; top: 9px;
	width: 20px; height: 20px;
	background: var(--mtsp-accent);
	color: #fff;
	border-radius: 50%;
	font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.fp-cta__phones {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 1.15rem;
	font-weight: 700;
}
.fp-cta__phones a { color: var(--mtsp-white); text-decoration: none; white-space: nowrap; }
.fp-cta__phones a:hover { color: var(--mtsp-accent); }
.fp-cta__sep { color: rgba(255, 255, 255, .3); }

/* form card */
.fp-cta__form {
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 12px;
	padding: 30px;
}
.fp-cta__form-title {
	font-family: var(--mtsp-font-display);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--mtsp-white);
	margin: 0 0 18px;
}
.fp-cta__form .wpcf7 input[type="text"],
.fp-cta__form .wpcf7 input[type="tel"],
.fp-cta__form .wpcf7 input[type="email"],
.fp-cta__form .wpcf7 textarea {
	width: 100%;
	padding: 11px 14px;
	font-size: .9rem;
	font-family: inherit;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 6px;
	background: rgba(255, 255, 255, .07);
	color: var(--mtsp-white);
	box-sizing: border-box;
	margin-bottom: 10px;
	transition: border-color .2s, background .2s;
}
.fp-cta__form .wpcf7 input::placeholder,
.fp-cta__form .wpcf7 textarea::placeholder { color: rgba(255, 255, 255, .4); }
.fp-cta__form .wpcf7 input:focus,
.fp-cta__form .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--mtsp-accent);
	background: rgba(255, 255, 255, .1);
}
.fp-cta__form .wpcf7 textarea { resize: vertical; min-height: 84px; }
.fp-cta__form .wpcf7 input[type="submit"] {
	width: 100%;
	padding: 13px 22px;
	background: var(--mtsp-accent);
	color: var(--mtsp-white);
	border: none;
	border-radius: 6px;
	font-size: .95rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	margin-top: 4px;
	box-shadow: 0 4px 12px -2px rgba(217, 116, 65, .35);
	transition: background .18s, box-shadow .18s;
}
.fp-cta__form .wpcf7 input[type="submit"]:hover {
	background: var(--mtsp-accent-hover);
	box-shadow: 0 8px 20px -4px rgba(217, 116, 65, .45);
}
.fp-cta__form .wpcf7 p[style] { color: rgba(255, 255, 255, .85) !important; }
.fp-cta__form .wpcf7-not-valid-tip { color: #ffcc80; font-size: .8rem; }
.fp-cta__form .wpcf7 .wpcf7-response-output {
	border-color: rgba(255, 255, 255, .4);
	color: rgba(255, 255, 255, .9);
	font-size: .85rem;
	padding: .5rem .75rem;
	margin: .5rem 0 0;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
	.fp-grid--l { grid-template-columns: repeat(2, 1fr); }
	.fp-grid--m { grid-template-columns: repeat(2, 1fr); }
	.fp-grid--s { grid-template-columns: repeat(2, 1fr); }
	.fp-adv-strip { grid-template-columns: repeat(2, 1fr); }
	.fp-cta__grid { grid-template-columns: 1fr; gap: 36px; }
	.fp-section { padding: 36px 0; }
}
@media (max-width: 680px) {
	.fp-hero { padding: 52px 0 48px; }
	.fp-hero__stats { grid-template-columns: 1fr; gap: 18px; }
	.fp-hero__actions { flex-direction: column; }
	.fp-btn { width: 100%; }
	.fp-grid--l, .fp-grid--m, .fp-grid--s { grid-template-columns: 1fr; }
	.fp-adv-strip { grid-template-columns: 1fr; gap: 18px; }
	.fp-band { flex-wrap: wrap; gap: 12px; }
	.fp-series-smalls { grid-template-columns: 1fr; }
	.fp-cat-head--row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* LEGACY · Blog "Релевантні товари" cards (C5) — ВИДАЛЕНО 2026-07-05.
   Стаття related-блок переведено на спільну canon-картку .mtsp-eq-related-card
   (template-parts/product-card-related.php + product-card.css). Клас-обгортка
   .mtsp-c5-rel-products більше НІДЕ не рендериться → ці правила були мертві.
   (Легасі .mtsp-related-card лишається лише в single-catalog слайдері — task #14.) */
