.p-history {
	--history-gutter: calc(70 * var(--u));
	--history-gap: calc(120 * var(--u));
	--history-row-gap: calc(72 * var(--u));
	--history-copy-gap: calc(42 * var(--u));
	--history-radius: calc(20 * var(--u));
	max-width: 1920px;
	margin-inline: auto;
	background: #fbf7f2;
	color: #5f5f65;
	font: 400 calc(30 * var(--u))/1.4 var(--panga-font-family);
}

.p-history :is(h1, h2, h3, p) { margin: 0; color: inherit; }
.p-history h2 { font: 700 calc(56 * var(--u))/1.2 var(--panga-font-family); }
.p-history h3 { font: 600 1em/1.2 var(--panga-font-family); }
.p-history :is(p + p, h3 + p) { margin-top: var(--history-copy-gap); }
.p-history h2 + :is(p, div) { margin-top: calc(40 * var(--u)); }
.p-history img { display: block; max-width: 100%; height: auto; border-radius: var(--history-radius); }

.p-history__hero { position: relative; color: #fffcf7; }
.p-history__hero > img { width: 100%; border-radius: 0; }
.p-history__hero > nav, .p-history__hero > h1 { position: absolute; left: var(--history-gutter); }
.p-history__hero > nav {
	top: calc(154 * var(--u));
	display: flex;
	gap: calc(16 * var(--u));
	align-items: center;
	font-size: calc(20 * var(--u));
	font-weight: 500;
}
.p-history__hero > nav a { color: inherit; }
.p-history__hero > h1 {
	bottom: calc(120 * var(--u));
	font: 700 calc(88 * var(--u))/1 var(--panga-font-family);
	letter-spacing: calc(1.76 * var(--u));
}

.p-history__section {
	width: calc(100% - 2 * var(--history-gutter));
	margin: var(--history-gap) auto 0;
}
.p-history__section > h2, .p-history__center { text-align: center; }
.p-history__center { max-width: calc(1320 * var(--u)); margin-inline: auto !important; }
.p-history__center--narrow { max-width: calc(1188 * var(--u)); }
.p-history__center--wide { max-width: calc(1400 * var(--u)); }

.p-history__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: calc(64 * var(--u));
	align-items: center;
}
.p-history__section > .p-history__row { margin-top: var(--history-row-gap); }
.p-history__section > .p-history__row--specialists { margin-top: calc(var(--history-row-gap) - 4 * var(--u)); }
.p-history__row--intro { max-width: calc(1330 * var(--u)); margin-inline: auto; gap: calc(56 * var(--u)); }
.p-history__row--feedback { gap: calc(16 * var(--u)); }
.p-history__section > h2 + .p-history__row--feedback { margin-top: calc(40 * var(--u)); }
.p-history__row--detail { grid-template-columns: minmax(0, 835fr) minmax(0, 881fr); }
.p-history__row--reverse { grid-template-columns: minmax(0, 881fr) minmax(0, 835fr); }
.p-history__row--reverse > img { grid-column: 2; grid-row: 1; }

.p-history__reactions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: calc(24 * var(--u));
	margin-block: calc(var(--history-row-gap) - 2 * var(--u));
}
.p-history__reactions > div {
	padding: calc(55 * var(--u)) calc(40 * var(--u));
	background: #fffcf7;
	border-radius: var(--history-radius);
	font-weight: 600;
	line-height: 1.2;
}
.p-history__reactions img { width: calc(96 * var(--u)); border-radius: 50%; margin-bottom: calc(24 * var(--u)); }
.p-history__questions { list-style: none; padding: 0; margin: calc(18 * var(--u)) 0 var(--history-copy-gap); counter-reset: history-question; }
.p-history__questions li {
	display: grid;
	grid-template-columns: calc(74 * var(--u)) 1fr;
	counter-increment: history-question;
	padding: calc(24 * var(--u)) 0;
	border-bottom: 1px solid #bdbbc0;
	font-weight: 600;
	line-height: 1.2;
}
.p-history__question-line { display: block; }
.p-history__questions li::before { content: '/0' counter(history-question); }

.p-history__feeding {
	display: grid;
	grid-template-columns: minmax(0, 752fr) minmax(0, 608fr);
	align-items: center;
	max-width: calc(1360 * var(--u));
}
.p-history__feeding > div {
	z-index: 1;
	padding: calc(64 * var(--u)) calc(56 * var(--u));
	background: #fffcf7;
	border-radius: var(--history-radius);
}
.p-history__feeding > img { margin-left: calc(-82 * var(--u)); max-width: none; width: calc(690 * var(--u)); }
.p-history__patent { max-width: calc(1536 * var(--u)); grid-template-columns: minmax(0, 882fr) minmax(0, 614fr); gap: calc(40 * var(--u)); }
.p-history__patent > img { width: 100%; aspect-ratio: 614/736; object-fit: cover; }
.p-history__pause { width: 100%; background: #f1eded; padding: calc(96 * var(--u)) var(--history-gutter); }
.p-history__now { width: 100%; padding: 0 calc(16 * var(--u)); }
.p-history__gallery {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: calc(16 * var(--u));
	margin-block: var(--history-row-gap);
}
.p-history__gallery img { width: 100%; aspect-ratio: 301/438; object-fit: cover; object-position: center bottom; border-radius: calc(8 * var(--u)); }
.p-history__gallery img:nth-child(2), .p-history__gallery img:nth-child(5) { object-position: center top; }
.p-history__gallery img:last-child { object-position: 67% center; }
.p-history__now > p:last-child { max-width: calc(1288 * var(--u)); }

@media (max-width: 767px) {
	.p-history {
		--history-gutter: 16px;
		--history-gap: 56px;
		--history-row-gap: 24px;
		--history-copy-gap: 20px;
		--history-radius: 12px;
		font-size: 16px;
	}
	.p-history h2 { font-size: clamp(26px, 6vw, 40px); }
	.p-history h2 + :is(p, div), .p-history__section > h2 + .p-history__row--feedback { margin-top: 20px; }
	.p-history__hero > img { height: 390px; object-fit: cover; object-position: 73% center; }
	.p-history__hero::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, #28272c9c); }
	.p-history__hero > nav { top: 79px; gap: 7px; font-size: 12px; z-index: 1; }
	.p-history__hero > h1 { bottom: 28px; font-size: clamp(34px, 8vw, 56px); z-index: 1; }
	.p-history__center { max-width: 100%; }
	.p-history__now > .p-history__center, .p-history__now > p:last-child { max-width: calc(100% - 2 * var(--history-gutter)); }
	.p-history :is(.p-history__row, .p-history__reactions, .p-history__feeding) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.p-history__row--reverse > img { grid-column: auto; grid-row: auto; }
	.p-history__question-line { display: inline; }
	.p-history__questions li { grid-template-columns: 36px 1fr; padding: 14px 0; }
	.p-history__reactions > div { padding: 18px; display: flex; align-items: center; gap: 14px; }
	.p-history__reactions img { width: 50px; margin: 0; }
	.p-history__feeding { max-width: none; }
	.p-history__feeding > div { padding: 24px; }
	.p-history__feeding > img { width: 100%; margin: 0; aspect-ratio: 608/884; object-fit: cover; object-position: right; }
	.p-history__patent { max-width: none; }
	.p-history__patent > img { width: min(100%, 360px); justify-self: center; }
	.p-history__pause { padding-block: 36px; }
	.p-history__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}
