/**
 * Сторінка «Контакти» (page-contact-us.php).
 *
 * Та сама мова, що в Trade-in і кабінеті: білі картки з радіусом 22 на
 * світлому тлі, Manrope, великий номер телефону як головна дія.
 */

.am-ct {
	padding-bottom: 72px;
}

.am-ct__crumbs {
	padding: 26px 0 12px;
}

/* ---------- заголовок ---------- */

.am-ct__hero {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 24px;
}

.am-ct__title {
	margin: 0 0 10px;
	font-size: 44px;
	line-height: 1.05;
	letter-spacing: -0.035em;
	font-weight: 800;
}

.am-ct__lead {
	margin: 0;
	max-width: 58ch;
	color: var(--am-text-3);
	font-size: 16px;
	line-height: 1.55;
}

.am-ct__status {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.am-ct__status.is-closed {
	color: var(--am-text-3);
}

/* ---------- фото + колонка ---------- */

.am-ct__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
	gap: 18px;
	align-items: stretch;
}

.am-ct__photo {
	position: relative;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--am-r-2xl);
	background: var(--am-surface-3);
}

.am-ct__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.am-ct__caption {
	position: absolute;
	left: 18px;
	bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 16px;
	border-radius: 16px;
	background: rgba(17, 18, 20, 0.78);
	color: #fff;
	font-size: 13.5px;
	line-height: 1.35;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.am-ct__caption b {
	font-size: 15px;
}

.am-ct__side {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.am-ct__side .am-ct__card {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Другий ряд: графік і карта поруч. */
.am-ct__second {
	display: grid;
	grid-template-columns: minmax(300px, 1fr) minmax(0, 1.45fr);
	gap: 18px;
	margin-top: 18px;
}

.am-ct__card {
	padding: 22px 24px;
	border: 1px solid var(--am-border);
	border-radius: var(--am-r-2xl);
	background: var(--am-surface);
}

.am-ct__label {
	margin-bottom: 8px;
	color: var(--am-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.am-ct__phone {
	display: block;
	color: var(--am-text);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.am-ct__phone:hover {
	color: var(--am-accent);
}

.am-ct__addr {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.am-ct__note {
	margin: 8px 0 0;
	color: var(--am-text-3);
	font-size: 13.5px;
	line-height: 1.5;
}

.am-ct__btn {
	margin-top: 16px;
	width: 100%;
	justify-content: center;
}

.am-ct__link {
	display: inline-block;
	margin-top: 12px;
	color: var(--am-accent);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.am-ct__link:hover {
	text-decoration: underline;
}

/* Графік — той самий список, що в шапці, у спокійнішому вигляді. */
.am-ct .am-ct__hours {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 2px;
}

.am-ct .am-ct__hours .am-hours__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 10px;
	margin: 0 -10px;
	border-radius: 9px;
	font-size: 14.5px;
}

.am-ct .am-ct__hours .am-hours__time {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.am-ct .am-ct__hours .is-today {
	background: var(--am-surface-3);
	font-weight: 700;
}

.am-ct .am-ct__hours .is-off .am-hours__time {
	color: var(--am-hit-text);
}

/* ---------- карта ---------- */

.am-ct__map {
	position: relative;
	min-height: 380px;
	overflow: hidden;
	border: 1px solid var(--am-border);
	border-radius: var(--am-r-2xl);
	background: var(--am-surface-3);
}

.am-ct__map iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.am-ct__mapbtn {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--am-dark);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--am-shadow-float);
}

.am-ct__mapbtn:hover {
	background: var(--am-dark-2);
	color: #fff;
}

/* ---------- нижній ряд ---------- */

.am-ct__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.am-ct__mail {
	display: grid;
	gap: 2px;
	margin: 0;
}

.am-ct__mail dt {
	color: var(--am-text-3);
	font-size: 13px;
}

.am-ct__mail dd {
	margin: 0 0 8px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.am-ct__mail a,
.am-ct__card--links a {
	color: var(--am-text);
	text-decoration: none;
}

.am-ct__mail a:hover {
	color: var(--am-accent);
}

.am-ct__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.am-ct__socials a {
	padding: 8px 14px;
	border: 1px solid var(--am-border-ctl);
	border-radius: 999px;
	color: var(--am-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.am-ct__socials a:hover {
	border-color: var(--am-text);
}

.am-ct__card--links {
	display: flex;
	flex-direction: column;
}

.am-ct__card--links a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--am-divider);
	font-weight: 600;
}

.am-ct__card--links .am-ct__label + a {
	border-top: 0;
	padding-top: 2px;
}

.am-ct__card--links a span {
	color: var(--am-muted);
}

.am-ct__card--links a:hover span {
	color: var(--am-text);
}

.am-ct__notice {
	margin-top: 18px;
	padding: 18px 22px;
	border-radius: var(--am-r-xl);
	background: var(--am-surface-3);
	color: var(--am-text-2);
	font-size: 14px;
	line-height: 1.55;
}

.am-ct__notice p {
	margin: 4px 0 0;
}

/* ---------- планшет і телефон ---------- */

@media (max-width: 1024px) {
	.am-ct__grid {
		grid-template-columns: 1fr;
	}

	.am-ct__side {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}


	.am-ct__second {
		grid-template-columns: 1fr;
	}

	.am-ct__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.am-ct__card--links {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.am-ct {
		padding-bottom: 48px;
	}

	.am-ct__crumbs {
		padding: 16px 0 8px;
	}

	.am-ct__title {
		font-size: 32px;
	}

	.am-ct__lead {
		font-size: 15px;
	}

	.am-ct__grid,
	.am-ct__side,
	.am-ct__second,
	.am-ct__row {
		gap: 12px;
	}

	.am-ct__side,
	.am-ct__row {
		grid-template-columns: 1fr;
	}

	.am-ct__card {
		padding: 18px;
		border-radius: var(--am-r-xl);
	}

	.am-ct__phone {
		font-size: 26px;
	}

	.am-ct__photo,
	.am-ct__map {
		border-radius: var(--am-r-xl);
	}

	.am-ct__caption {
		left: 12px;
		bottom: 12px;
		padding: 10px 12px;
	}

	.am-ct__second,
	.am-ct__row,
	.am-ct__notice {
		margin-top: 12px;
	}

	.am-ct__map {
		min-height: 320px;
	}

	/* На телефоні кнопка налазить на «Відкрити на Картах»; маршрут є в картці адреси. */
	.am-ct__mapbtn {
		display: none;
	}
}

.am-ct__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}


/* Соцмережі зі значками. */
.am-ct__socials a {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.am-ct__socials a[data-soc="yt"] .am-soc-ico { color: #ff0033; }
.am-ct__socials a[data-soc="fb"] .am-soc-ico { color: #1877f2; }
.am-ct__socials a[data-soc="ig"] .am-soc-ico { color: #d6249f; }
.am-ct__socials a[data-soc="tg"] .am-soc-ico { color: #229ed9; }
