/**
 * „Контакти и магазини" (TASKS P8.3, P11.4).
 * Макет: contacts.html → мрежата с панелите на магазините, панелите със снимка и карта (P17), под тях „Пишете ни".
 */

.infk-section--contacts {
	padding-top: 40px;
}

.infk-contacts {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.infk-contacts__stores {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
	gap: 24px;
	min-width: 0;
}

/* Под магазините: „Пишете ни" сам на реда (P17). */
.infk-contacts__row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 32px;
}

/* ---------- Панел на магазин ---------- */

.infk-store {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 18px;
	min-width: 0;
}

.infk-store > * {
	margin: 0;
	overflow-wrap: anywhere;
}

/* Снимката горе и картата долу в панела (P17). */
.infk-store__photo,
.infk-store__map {
	align-self: stretch;
	border-radius: 12px;
	background: var(--infk-tint);
	contain: paint;
}

.infk-store__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.infk-store__map iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	border: 0;
}

/* Картата е в дъното на панела - картите на панелите в един ред са на една линия. */
.infk-store__map {
	margin-top: auto;
}

.infk-store__route {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
}

.infk-store__name {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--infk-tint);
	color: var(--infk-blue);
	font-family: var(--infk-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
}

.infk-store__address {
	font-family: var(--infk-font-head);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--infk-text);
}

.infk-store__hours {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 0;
	list-style: none;
	color: var(--infk-muted);
}

.infk-store__phone {
	font-family: var(--infk-font-head);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
}

.infk-store__email {
	font-weight: 600;
}

/* ---------- „Пишете ни" ---------- */

.infk-contacts__form {
	display: flex;
	flex: 1 1 100%;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.infk-contacts__form > h2,
.infk-contacts__lead {
	margin: 0;
}

.infk-contacts__form > h2 {
	font-size: 24px;
}

.infk-contacts__lead {
	color: var(--infk-muted);
	line-height: 1.65;
}

#infk-contact .infk-form__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

#infk-contact .infk-form__field--wide {
	grid-column: 1 / -1;
}

@media (max-width: 767px) {
	#infk-contact .infk-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
