/* =========================================================
   СТРАНИЦА ПРОЕКТА — по макету Figma «HP», фрейм lifemebel/
   Общие стили для страниц проектов (папка projects/).
   ========================================================= */

:root {
	--bg: #ffffff;
	--text: #141414;
	--gutter: 40px;
	--font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-weight: 300;
	/* Inter Light для обычного текста */
	font-size: 16px;
	line-height: normal;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* --- Шапка: чёрная полоса с логотипом (ведёт на главную) --- */
.project-header {
	display: flex;
	justify-content: center;
	padding: var(--gutter);
	background: #000;
}

.project-header a {
	display: block;
	line-height: 0;
}

.project-header img {
	width: 257px;
	height: 50px;
}

/* --- Обложка с заголовком поверх --- */
.project-hero {
	position: relative;
	aspect-ratio: 1440 / 1026;
	overflow: hidden;
	background: #000;
}

.project-hero>img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-title {
	position: relative;
	/* поверх картинки */
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: var(--gutter);
	color: #fff;
}

.project-title h1 {
	margin: 0;
	font-size: 24px;
	line-height: 30px;
	font-weight: 600;
}

.project-title time {
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
}

/* --- Текст о проекте ---
   Три колонки 1 : 4 : 1, текст в средней. */
.project-intro {
	display: grid;
	grid-template-columns: minmax(0, 0.25fr) minmax(0, 1fr) minmax(0, 0.25fr);
	padding: var(--gutter) var(--gutter) 0;
}

.project-intro__body {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	gap: 100px;
	padding: 80px 0;
}

.project-intro p {
	max-width: 800px;
	margin: 0;
	padding-right: 20px;
	font-size: 20px;
	line-height: 1.4;
}

.project-intro__logo {
	width: 100%;
}

/* Ссылки в тексте о проекте — цвета текста, с тонким подчёркиванием */
.project-intro a {
	color: inherit;
	text-underline-position: from-font;
}

/* --- Галерея --- */
.gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gallery img {
	width: 100%;
}

/* Два билборда рядом, по центру */
.gallery__pair {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 1262px;
	aspect-ratio: 1440 / 913;
	max-height: 800px;
	min-height: 0;
	/* высоту задаёт пропорция, а не картинки */
}

.gallery__pair img {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
	height: 100%;
}

/* Два грузовика внахлёст: большой внизу слева, маленький сверху справа */
.gallery__trucks {
	display: grid;
	width: 100%;
	padding: 24px 0;
}

.gallery__trucks img {
	grid-area: 1 / 1;
}

.gallery__trucks .truck-1 {
	width: 84.63%;
	margin-top: 10.05%;
	/* проценты считаются от ширины */
}

.gallery__trucks .truck-2 {
	width: 44.97%;
	margin-left: 55.03%;
	mix-blend-mode: multiply;
	/* белый фон картинки «растворяется» */
}

/* Две футболки рядом */
.gallery__row {
	display: flex;
	width: 100%;
}

.gallery__row img {
	width: 50%;
}

.gallery__box {
	max-width: 1600px;
}

/* --- Подвал --- */
.project-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: var(--gutter);
	line-height: 1;
}

.project-footer p {
	margin: 0;
}

.project-footer a {
	color: inherit;
	text-underline-position: from-font;
}

/* --- Телефоны --- */
@media (max-width: 760px) {
	:root {
		--gutter: 20px;
	}

	.project-intro {
		grid-template-columns: 1fr;
	}

	.project-intro__body {
		grid-column: 1;
		gap: 48px;
		padding: 40px 0;
	}

	.project-intro p {
		font-size: 18px;
		padding-right: 0;
	}

	.project-header img {
		width: 180px;
		height: auto;
	}
}

/* Тонкое подчёркивание у всех ссылок на сайте.
   Толщину меняйте здесь (0.3px — очень тонко). */
a {
	text-decoration-thickness: 0.3px;
	text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
	/* линия полупрозрачная: 40% цвета текста */
}
