/*
 * Contact section — two variants:
 *   1) .contact-grid + .contact-card (3 hover-flip cards) — for /kontakt/
 *   2) .hp-contact* (homepage info accordion + map) — for the home page
 *   Plus shared .map-wrap.
 */

/* Cards */
.teledom-design .contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.teledom-design .contact-card {
	padding: 40px 30px;
	background: var(--paper);
	border: 1px solid var(--line-light);
	border-radius: var(--r-lg);
}

.teledom-design .contact-card .icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--paper-2);
	display: grid;
	place-items: center;
	margin-bottom: 24px;
	overflow: hidden;
}

.teledom-design .contact-card .icon img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	display: block;
}

.teledom-design .contact-card .role {
	display: block;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 18px;
}

.teledom-design .contact-card .name {
	display: block;
	font-family: var(--display);
	font-size: 18px;
	color: var(--ink);
	margin: 4px 0 12px;
	letter-spacing: -0.01em;
}

.teledom-design .contact-card a.line {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink-2);
	font-size: 14px;
	padding: 6px 0;
	border-top: 1px solid var(--line-light);
}

.teledom-design .contact-card a.line:hover {
	color: var(--gold);
}

/* Generic map wrapper (legacy — kept for any other page that still uses it) */
.teledom-design .map-wrap {
	height: 520px;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: #ddd;
	position: relative;
}

.teledom-design .map-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: saturate(0.9);
}

/* /kontakt/ — Address + Google Map split block.
 * Scoped to .teledom-page-kontakt so the section.compact padding override
 * cannot leak to .compact sections on other pages. */
.teledom-design.teledom-page-kontakt section.compact {
	padding: 0;
}

.teledom-design .kn-location {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 50px;
	align-items: stretch;
}

.teledom-design .kn-location__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 50px 0;
}

.teledom-design .kn-location__info .eyebrow {
	margin-bottom: 14px;
}

.teledom-design .kn-location__info h2 {
	margin: 0 0 28px;
	font-size: clamp(28px, 3vw, 48px);
}

.teledom-design .kn-location__addr {
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink-2);
	margin: 0 0 28px;
}

.teledom-design .kn-location__addr strong {
	display: block;
	font-family: var(--display);
	color: var(--ink);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.01em;
	margin-bottom: 6px;
}

/* Legal IDs (operating company + IČO/DIČ) — fine-print line under the address.
 * Smaller, monospace, muted so the statutory disclosure stays present without
 * competing with the address proper. */
.teledom-design .kn-location__legal {
	display: inline-block;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--line-light);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.teledom-design .kn-location__highlights {
	display: flex;
	gap: 40px;
	padding: 22px 0;
	border-top: 1px solid var(--line-light);
	border-bottom: 1px solid var(--line-light);
	margin-bottom: 32px;
}

.teledom-design .kn-location__hl {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.teledom-design .kn-location__hl-num {
	font-family: var(--display);
	font-size: 30px;
	color: var(--gold-deep);
	font-weight: 500;
	line-height: 1;
}

.teledom-design .kn-location__hl-num small {
	font-size: 0.55em;
	margin-left: 2px;
	color: var(--muted);
	font-weight: 400;
}

.teledom-design .kn-location__hl-lbl {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.teledom-design .kn-location__map {
	overflow: hidden;
	min-height: 480px;
	box-shadow: var(--shadow-soft);
	border: 1px solid var(--line-light);
	background: var(--paper-2);
	position: relative;
	/* Full-bleed to viewport right edge — same trick as .hp-contact-map on home. */
	margin-right: calc(var(--maxw) / 2 - 50vw - 34px);
}

.teledom-design .kn-location__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	position: absolute;
	inset: 0;
	filter: saturate(0.95) contrast(1.02);
}

@media (max-width: 1100px) {
	.teledom-design .kn-location { grid-template-columns: 1fr; gap: 36px; }
	.teledom-design .kn-location__map { min-height: 420px; margin-right: 0; }
}

@media (max-width: 720px) {
	.teledom-design .kn-location__highlights { gap: 28px; flex-wrap: wrap; }
	.teledom-design .kn-location__map { min-height: 340px; }
}

/* Homepage contact + map block */
.teledom-design .hp-contact {
	padding: 50px 0 85px;
}

.teledom-design section.hp-contact.compact {
	padding: 0 100px 0;
}

.teledom-design .hp-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 50px;
	align-items: stretch;
}

.teledom-design .hp-contact-map {
	/* Extend right edge to viewport edge while keeping left column aligned
	 * with the rest of the page. Distance derived from the section's
	 * symmetric padding (100px) + container's right padding (34px) +
	 * (viewport - container max-width) / 2 for the auto-margin gap. */
	margin-right: calc(var(--maxw) / 2 - 50vw - 34px);
}

.teledom-design .hp-contact-info {
	padding: 30px 0;
}

.teledom-design .hp-contact-info .eyebrow {
	margin-bottom: 14px;
}

.teledom-design .hp-contact-info h2 {
	margin: 0 0 24px;
	font-size: clamp(28px, 3vw, 48px);
	letter-spacing: -0.02em;
}

.teledom-design .hp-contact-info .hp-addr {
	margin: 0 0 30px;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.7;
	font-family: var(--sans);
	font-weight: 400;
}

/* Legal IDs (IČO / DIČ) sub-line under the home-page address. Same fine-print
 * treatment as .kn-location__legal so the statutory disclosure is consistent
 * across the homepage and the /kontakt/ page. */
.teledom-design .hp-contact-info .hp-addr__legal {
	display: inline-block;
	margin-top: 8px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.teledom-design .hp-acc {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--line-light);
}

.teledom-design .hp-acc details {
	border-bottom: 1px solid var(--line-light);
}

.teledom-design .hp-acc summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 4px;
	cursor: pointer;
	list-style: none;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-deep);
	font-weight: 600;
	transition: color 0.25s var(--ease);
}

.teledom-design .hp-acc summary::-webkit-details-marker {
	display: none;
}

.teledom-design .hp-acc summary:hover {
	color: var(--ink);
}

.teledom-design .hp-acc summary .ico {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	font-size: 12px;
	color: var(--gold-deep);
	transition: transform 0.35s var(--ease);
}

.teledom-design .hp-acc details[open] summary .ico {
	transform: rotate(180deg);
}

.teledom-design .hp-acc summary .t {
	flex: 1;
}

.teledom-design .hp-acc .bd {
	padding: 6px 4px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.teledom-design .hp-acc .bd .row {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 14px;
	align-items: baseline;
}

.teledom-design .hp-acc .bd .row .l {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

.teledom-design .hp-acc .bd .row .v {
	font-family: var(--sans);
	font-size: 15px;
	color: var(--ink);
	font-weight: 500;
}

.teledom-design .hp-acc .bd .row a.v {
	color: var(--ink);
	transition: color 0.25s var(--ease);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	/* Grid blockifies <a> grid items to display: block, which makes the
	 * border-bottom span the whole cell. Shrink the link to its content. */
	justify-self: start;
	width: max-content;
	max-width: 100%;
}

.teledom-design .hp-acc .bd .row a.v:hover {
	color: var(--gold-deep);
	border-bottom-color: var(--gold);
}

.teledom-design .hp-contact-map {
	overflow: hidden;
	background: var(--paper-2);
	min-height: 476px;
	position: relative;
	box-shadow: var(--shadow-soft);
	border: 1px solid var(--line-light);
}

.teledom-design .hp-contact-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	position: absolute;
	inset: 0;
	filter: saturate(0.95) contrast(1.02);
}

/* ----- Responsive (mobile-only — desktop above is untouched) ----- */

@media (max-width: 1100px) {
	.teledom-design .hp-contact,
	.teledom-design section.hp-contact.compact {
		padding: 70px 0;
	}
	.teledom-design .hp-contact-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.teledom-design .hp-contact-map {
		min-height: 380px;
		/* Reset the desktop negative-margin viewport-extend trick — on
		 * single-column mobile layout the map sits inside the container
		 * normally. */
		margin-right: 0;
	}
}

@media (max-width: 720px) {
	.teledom-design .hp-contact,
	.teledom-design section.hp-contact.compact {
		padding: 56px 0;
	}
	.teledom-design .hp-contact-grid {
		gap: 32px;
	}
	.teledom-design .hp-contact-info {
		padding: 0;
	}
	.teledom-design .hp-contact-info h2 {
		font-size: clamp(26px, 7vw, 36px);
		margin-bottom: 18px;
	}
	.teledom-design .hp-contact-info .hp-addr {
		margin-bottom: 24px;
		font-size: 14px;
	}
	.teledom-design .hp-acc summary {
		padding: 18px 4px;
		font-size: 10.5px;
		gap: 10px;
	}
	.teledom-design .hp-acc .bd {
		padding: 4px 4px 22px;
	}
	.teledom-design .hp-acc .bd .row {
		grid-template-columns: 70px 1fr;
		gap: 10px;
	}
	.teledom-design .hp-acc .bd .row .v {
		font-size: 14px;
	}
	.teledom-design .hp-contact-map {
		min-height: 320px;
		border-radius: 12px;
	}
}

@media (max-width: 540px) {
	.teledom-design .hp-acc .bd .row {
		grid-template-columns: 1fr;
		gap: 2px;
		padding: 8px 0;
		border-bottom: 1px solid rgba(41, 43, 44, 0.06);
	}
	.teledom-design .hp-acc .bd .row:last-child {
		border-bottom: 0;
	}
}
