/* =========================================================================
   AMIK 94 — hero, статус, двор, локация, вътрешни hero-секции
   ========================================================================= */

/* Hero ------------------------------------------------------------------- */

.hero {
	padding-block: clamp(32px, 5vw, 72px) clamp(44px, 6vw, 88px);
	border-bottom: 1px solid var(--line);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(28px, 4vw, 48px);
	align-items: end;
}

.hero__title {
	max-width: 16ch;
	font-size: clamp(1.25rem, 4.6vw, 4.25rem);
}

.hero__lead {
	max-width: 52ch;
	margin: 24px 0 0;
	color: var(--steel);
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	font-weight: 300;
}

.hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 32px;
}

.spec-rail {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: clamp(32px, 5vw, 56px) 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.spec-rail__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-right: 12px;
	border-right: 1px solid var(--line);
}

.spec-rail__item:last-child {
	padding-right: 0;
	border-right: 0;
}

.spec-rail__value {
	font-family: var(--font-display);
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	font-weight: 500;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.spec-rail__label {
	color: var(--steel);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero__media {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--soft);
}

.hero__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	filter: saturate(0.92) contrast(1.02);
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 23, 27, 0.08);
	pointer-events: none;
}

.hero__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;
	margin: 0;
	padding: 8px 12px;
	background: var(--ink);
	color: var(--paper);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (min-width: 1024px) {
	.hero__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: stretch;
	}

	.hero__content {
		align-self: end;
	}

	.hero__media {
		height: 100%;
		min-height: 420px;
	}

	.hero__media img {
		height: 100%;
		aspect-ratio: auto;
		object-fit: cover;
	}
}

/* Working band — „В БАЗАТА РАБОТЯТ“ -------------------------------------- */

.working-band {
	padding-block: clamp(20px, 3vw, 32px);
	background: var(--ink);
	border-block: 1px solid var(--line-dark);
	color: var(--paper);
}

.working-band__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	margin-bottom: clamp(14px, 2vw, 22px);
}

.working-band .eyebrow {
	margin: 0 0 6px;
	color: var(--copper-light);
}

.working-band h2 {
	margin: 0;
	color: var(--paper);
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 1.7vw, 1.5rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.02em;
}

.working-band__all {
	color: var(--paper);
}

.working-band__all:hover {
	color: var(--copper-light);
}

.working-band__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px clamp(14px, 1.8vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.working-band__item {
	min-width: 0;
}

.working-band__link {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--paper);
	text-decoration: none;
}

.working-band__logo {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	overflow: hidden;
	background: var(--deep);
	border: 1px solid var(--line-dark);
}

.working-band__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.working-band__monogram {
	color: var(--copper-light);
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: -0.02em;
}

.working-band__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.working-band__name {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25;
	overflow-wrap: break-word;
	transition: color 0.12s ease;
}

.working-band__link:hover .working-band__name {
	color: var(--copper-light);
}

.working-band__activity {
	color: var(--steel-light);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

@media (max-width: 899px) {
	.working-band__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.working-band__head {
		align-items: flex-start;
	}

	.working-band__logo {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 479px) {
	.working-band__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Yard ------------------------------------------------------------------- */

.yard-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.yard-media {
	position: relative;
	margin: 0;
}

.yard-media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.yard-media__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 8px 12px;
	background: var(--ink);
	color: var(--paper);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.yard-text__lead {
	margin-top: 0;
	font-size: clamp(1.125rem, 1.3vw, 1.375rem);
	font-weight: 300;
}

.yard-text p {
	color: var(--steel);
}

.yard-examples {
	margin: 24px 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.yard-example {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.yard-example__num {
	color: var(--copper-ink);
	font-size: 0.75rem;
}

.yard-example h3 {
	margin-bottom: 4px;
	font-size: 1.0625rem;
}

.yard-example p {
	margin: 0;
	font-size: 0.9375rem;
}

/* Yard — ново хале ------------------------------------------------------- */

.yard-hall {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
	margin-top: clamp(36px, 5vw, 64px);
	padding-top: clamp(28px, 4vw, 48px);
	border-top: 1px solid var(--line);
}

.yard-hall__media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(10px, 1.5vw, 16px);
}

.yard-hall__media figure {
	margin: 0;
}

.yard-hall__media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.yard-hall__text h3 {
	margin-bottom: 12px;
	font-size: clamp(1.5rem, 2.4vw, 2.25rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.yard-hall__text p {
	max-width: 46ch;
	margin: 0;
	color: var(--steel);
}

/* Yard — различни производства ----------------------------------------- */

.yard-productions {
	margin-top: clamp(36px, 5vw, 64px);
	padding-top: clamp(24px, 3vw, 36px);
	border-top: 1px solid var(--line);
}

.yard-productions h3 {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.3;
}

.yard-productions__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(10px, 1.5vw, 16px);
	margin: clamp(16px, 2.4vw, 24px) 0 0;
	padding: 0;
	list-style: none;
}

.yard-productions__grid img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

@media (min-width: 1024px) {
	.yard-grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.yard-hall {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

/* Location --------------------------------------------------------------- */

.location-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: stretch;
}

.location-map {
	min-height: 320px;
	background: var(--soft);
	border: 1px solid var(--line);
}

.location-map iframe,
.location-map .amik-map {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
}

.amik-map {
	background: var(--paper-2);
}

.amik-map.leaflet-container {
	font-family: var(--font-text);
}

.amik-map .leaflet-tile {
	filter: grayscale(1) contrast(1.04) brightness(0.97);
}

.amik-map-marker span {
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--copper);
	border: 3px solid var(--deep);
}

.amik-map .leaflet-control-attribution {
	font-family: var(--font-mono);
	font-size: 10px;
	background: rgba(232, 229, 223, 0.88);
}

.amik-map .leaflet-popup-content-wrapper {
	border-radius: 2px;
}

.location-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
}

.location-list {
	margin: 0;
	border-top: 1px solid var(--line);
}

.location-list__row {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.location-list dt {
	color: var(--steel);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.location-list dd {
	margin: 0;
}

.location-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

@media (min-width: 1024px) {
	.location-grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

/* Split layouts ---------------------------------------------------------- */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.split__media {
	margin: 0;
}

.split__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.split--form .split__aside {
	padding: clamp(20px, 3vw, 32px);
	background: var(--paper-2);
	border: 1px solid var(--line);
}

@media (min-width: 1024px) {
	.split {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.split--reverse .split__media {
		order: -1;
	}
}

/* Page hero -------------------------------------------------------------- */

.page-hero {
	padding-block: clamp(44px, 6vw, 88px) clamp(32px, 4vw, 56px);
	border-bottom: 1px solid var(--line);
}

.page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}

.page-hero h1 {
	max-width: 20ch;
	font-size: clamp(2rem, 4.6vw, 4rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.page-hero__intro {
	max-width: 58ch;
	margin: 20px 0 0;
	color: var(--steel);
	font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
}

.page-hero__media {
	margin: 0;
}

.page-hero__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (min-width: 1024px) {
	.page-hero--split .page-hero__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

/* Prose ------------------------------------------------------------------ */

.prose {
	max-width: 70ch;
	overflow-wrap: break-word;
}

.prose h2 {
	margin: 1.4em 0 0.5em;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.prose h3 {
	margin: 1.4em 0 0.5em;
	font-size: 1.25rem;
}

.prose h2:first-child,
.prose h3:first-child {
	margin-top: 0;
}

.prose ul,
.prose ol {
	margin: 0 0 1.2em;
	padding-left: 1.2em;
}

.prose li {
	margin-bottom: 0.4em;
}

.prose blockquote {
	margin: 1.5em 0;
	padding-left: 20px;
	border-left: 2px solid var(--copper);
	color: var(--steel);
}

.prose--narrow {
	max-width: 72ch;
}

.privacy-updated {
	margin-bottom: 32px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
	color: var(--steel);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
