/*
Theme Name: TELE-MAX Klucze Samochodowe
Theme URI: https://telemax24.pl/
Author: TELE-MAX Tomasz Sobota
Author URI: https://telemax24.pl/
Description: Jednostronicowy motyw dla TELE-MAX w Bytomiu: dorabianie i programowanie kluczy samochodowych, piloty oraz awaryjny dojazd 24/7. Jasny layout, konfigurowalne podpisy i alt texty zdjec, dane firmy w Schema.org.
Version: 7.1.2
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telemax-klucze
Tags: one-page, custom-logo, accessibility-ready, translation-ready, full-width-template
*/

:root {
	--tm-ink: #1b1f26;
	--tm-ink-2: #515a66;
	--tm-ink-3: #6a7280;
	--tm-paper: #ffffff;
	--tm-soft: #f4f5f6;
	--tm-line: #e4e6e8;
	--tm-line-2: #d1d4d8;
	--tm-accent: #b3401a;
	--tm-accent-dark: #8d3214;
	--tm-max: 1180px;
	--tm-narrow: 780px;
	--tm-gutter: clamp(20px, 4vw, 44px);
	--tm-block: clamp(64px, 7.5vw, 116px);
	--tm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--tm-paper);
	color: var(--tm-ink);
	font-family: var(--tm-font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body, button, input, select, textarea { font-family: var(--tm-font); }

img, picture, iframe { display: block; max-width: 100%; }
.tm-elementor-content { width: 100%; min-height: 40vh; }
.tm-elementor-content > .elementor { width: 100%; }
img { height: auto; }

a { color: var(--tm-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tm-accent-dark); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

h1, h2, h3, h4 {
	color: var(--tm-ink);
	font-weight: 640;
	letter-spacing: -0.022em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 4.7vw, 3.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.1; }
h3 { font-size: 1.0625rem; line-height: 1.32; letter-spacing: -0.012em; }

p { color: var(--tm-ink-2); }

:focus-visible {
	outline: 3px solid var(--tm-accent);
	outline-offset: 2px;
}

.tm-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 14px 20px;
	background: var(--tm-accent);
	color: #fff;
	font-weight: 650;
	text-decoration: none;
}
.tm-skip:focus { left: 8px; top: 8px; color: #fff; }

.tm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.tm-shell {
	width: 100%;
	max-width: var(--tm-max);
	margin: 0 auto;
	padding: 0 var(--tm-gutter);
}

.tm-shell-narrow { max-width: var(--tm-narrow); }

.tm-section {
	padding: var(--tm-block) 0;
	scroll-margin-top: 80px;
}

.tm-section-soft { background: var(--tm-soft); }

.tm-head { max-width: 40ch; }
.tm-head h2 { max-width: 26ch; }
.tm-head p { margin-top: 16px; font-size: 1.0625rem; line-height: 1.6; max-width: 58ch; }

.tm-lead { font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.62; max-width: 56ch; }

.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 15px 26px;
	border: 1px solid var(--tm-accent);
	background: var(--tm-accent);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tm-btn:hover, .tm-btn:focus-visible {
	border-color: var(--tm-accent-dark);
	background: var(--tm-accent-dark);
	color: #fff;
}

.tm-btn-ghost {
	border-color: var(--tm-line-2);
	background: transparent;
	color: var(--tm-ink);
}
.tm-btn-ghost:hover, .tm-btn-ghost:focus-visible {
	border-color: var(--tm-ink);
	background: transparent;
	color: var(--tm-ink);
}

.tm-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tm-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--tm-line);
	backdrop-filter: saturate(1.08) blur(8px);
}

.tm-header-in {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	min-height: 112px;
}

.tm-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.tm-brand img { width: auto; height: 86px; }

.tm-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.tm-nav a {
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	color: var(--tm-ink-2);
	font-size: 0.9375rem;
	font-weight: 550;
	text-decoration: none;
}
.tm-nav a:hover, .tm-nav a:focus-visible { border-bottom-color: var(--tm-accent); color: var(--tm-ink); }

.tm-header-call {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 12px 18px;
	background: var(--tm-accent);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
}
.tm-header-call span { color: rgba(255, 255, 255, 0.82); font-size: 0.8125rem; font-weight: 500; }
.tm-header-call:hover, .tm-header-call:focus-visible { background: var(--tm-accent-dark); color: #fff; }

.tm-burger {
	display: none;
	width: 48px;
	height: 48px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--tm-line-2);
	background: transparent;
	cursor: pointer;
}
.tm-burger span {
	display: block;
	width: 20px;
	height: 1.5px;
	margin: 4px auto;
	background: var(--tm-ink);
}

.tm-menu { border-top: 1px solid var(--tm-line); background: var(--tm-paper); }
.tm-menu[hidden] { display: none; }
.tm-menu-in { display: flex; flex-direction: column; padding: 8px 0 22px; }
.tm-menu a {
	padding: 15px 0;
	border-bottom: 1px solid var(--tm-line);
	color: var(--tm-ink);
	font-weight: 550;
	text-decoration: none;
}
.tm-menu a:hover { color: var(--tm-accent); }
.tm-menu .tm-btn { margin-top: 20px; border-bottom: 1px solid var(--tm-accent); color: #fff; }

.tm-shot { width: 100%; }
.tm-shot-media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--tm-soft);
}
.tm-shot-media picture { display: block; width: 100%; height: 100%; }
.tm-shot-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.tm-shot figcaption {
	padding-top: 10px;
	color: var(--tm-ink-3);
	font-size: 0.8125rem;
	line-height: 1.5;
}
.tm-ratio-43 .tm-shot-media { aspect-ratio: 4 / 3; }
.tm-ratio-34 .tm-shot-media { aspect-ratio: 3 / 4; }
.tm-ratio-169 .tm-shot-media { aspect-ratio: 16 / 9; }

.tm-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); }
.tm-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.tm-hero-copy .tm-lead { margin-top: 22px; }
.tm-hero-copy .tm-actions { margin-top: 32px; }
.tm-hero-note {
	margin-top: 26px;
	padding-left: 18px;
	border-left: 2px solid var(--tm-accent);
	font-size: 0.9375rem;
	line-height: 1.6;
	max-width: 46ch;
}

.tm-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: clamp(44px, 5vw, 72px);
	list-style: none;
	background: var(--tm-line);
}
.tm-facts li {
	padding: 22px 24px;
	background: var(--tm-paper);
	color: var(--tm-ink-2);
	font-size: 0.9375rem;
	line-height: 1.55;
}
.tm-facts b { display: block; margin-bottom: 4px; color: var(--tm-ink); font-weight: 650; }

.tm-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3vw, 44px) clamp(28px, 3.5vw, 56px);
	margin-top: clamp(44px, 5vw, 68px);
	list-style: none;
}
.tm-services li { padding-top: 20px; border-top: 2px solid var(--tm-ink); }
.tm-services li:nth-child(n + 4) { border-top-color: var(--tm-line-2); }
.tm-services p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.6; }

.tm-ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: clamp(44px, 5vw, 68px);
	padding-top: 30px;
	border-top: 1px solid var(--tm-line);
}
.tm-ask p { max-width: 62ch; font-size: 0.9375rem; line-height: 1.65; }

.tm-split {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.tm-split-copy p { margin-top: 18px; font-size: 1.0625rem; line-height: 1.62; max-width: 54ch; }
.tm-split-copy .tm-actions { margin-top: 30px; }

.tm-points { margin-top: 26px; list-style: none; }
.tm-points li {
	padding: 14px 0 14px 22px;
	border-top: 1px solid var(--tm-line);
	color: var(--tm-ink-2);
	font-size: 0.9375rem;
	line-height: 1.6;
	position: relative;
}
.tm-points li::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 0;
	width: 10px;
	height: 2px;
	background: var(--tm-accent);
}
.tm-points li:last-child { border-bottom: 1px solid var(--tm-line); }

.tm-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	margin-top: clamp(44px, 5vw, 68px);
	list-style: none;
}
.tm-tiles li {
	padding: 26px 24px 28px;
	border: 1px solid var(--tm-line);
	background: var(--tm-paper);
	transition: border-color 0.15s ease;
}
.tm-tiles li:hover { border-color: var(--tm-line-2); }
.tm-tiles p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.6; }

.tm-proof {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
.tm-proof > div > p { margin-top: 18px; font-size: 1.0625rem; line-height: 1.62; max-width: 52ch; }

.tm-facts-list { margin-top: 28px; list-style: none; }
.tm-facts-list li {
	padding: 14px 0;
	border-bottom: 1px solid var(--tm-line);
	color: var(--tm-ink-2);
	font-size: 0.9375rem;
	line-height: 1.6;
}
.tm-facts-list li:first-child { border-top: 1px solid var(--tm-line); }

.tm-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 1.6vw, 22px);
	margin-top: clamp(40px, 4.5vw, 60px);
}
.tm-gallery button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
}
.tm-gallery button:hover .tm-shot-media img { transform: scale(1.03); }

.tm-faq { margin-top: clamp(32px, 4vw, 48px); }
.tm-faq details { border-top: 1px solid var(--tm-line); }
.tm-faq details:last-child { border-bottom: 1px solid var(--tm-line); }
.tm-faq summary {
	position: relative;
	padding: 20px 44px 20px 0;
	color: var(--tm-ink);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq summary::after {
	position: absolute;
	top: 18px;
	right: 4px;
	content: "+";
	color: var(--tm-accent);
	font-size: 1.25rem;
	font-weight: 500;
}
.tm-faq details[open] summary::after { content: "\2013"; }
.tm-faq p { padding: 0 44px 24px 0; font-size: 0.9375rem; line-height: 1.68; }

.tm-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 4vw, 64px);
	margin-top: clamp(40px, 4.5vw, 60px);
	align-items: start;
}

.tm-data > div {
	padding: 16px 0;
	border-bottom: 1px solid var(--tm-line-2);
}
.tm-data > div:first-child { border-top: 1px solid var(--tm-line-2); }
.tm-data dt { color: var(--tm-ink-3); font-size: 0.875rem; }
.tm-data dd { color: var(--tm-ink); font-size: 0.9375rem; font-weight: 550; }
.tm-data dd a { display: inline-block; padding: 4px 0; text-decoration: none; }
.tm-data dd a:hover { text-decoration: underline; }
.tm-data-phone dd { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }

.tm-hours { width: 100%; border-collapse: collapse; text-align: left; }
.tm-hours caption {
	padding-bottom: 12px;
	color: var(--tm-ink);
	font-weight: 650;
	text-align: left;
}
.tm-hours th, .tm-hours td {
	padding: 13px 0;
	border-bottom: 1px solid var(--tm-line-2);
	font-size: 0.9375rem;
	line-height: 1.5;
	vertical-align: top;
}
.tm-hours th { padding-right: 20px; color: var(--tm-ink); font-weight: 550; white-space: nowrap; }
.tm-hours td { color: var(--tm-ink-2); font-weight: 400; }
.tm-contact-side .tm-actions { margin-top: 28px; }

.tm-map { margin-top: clamp(36px, 4vw, 56px); border: 1px solid var(--tm-line-2); }
.tm-map iframe { width: 100%; height: clamp(280px, 38vw, 420px); border: 0; }

.tm-footer { padding: clamp(52px, 6vw, 80px) 0 28px; border-top: 1px solid var(--tm-line); }
.tm-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
	gap: clamp(32px, 4vw, 64px);
}
.tm-footer-brand img { width: auto; height: 72px; }
.tm-footer-brand p { margin-top: 18px; font-size: 0.9375rem; line-height: 1.65; max-width: 44ch; }
.tm-footer h2 {
	font-size: 0.875rem;
	font-weight: 650;
	letter-spacing: 0;
	color: var(--tm-ink-3);
}
.tm-footer ul { margin-top: 14px; list-style: none; }
.tm-footer li { padding: 5px 0; color: var(--tm-ink-2); font-size: 0.9375rem; line-height: 1.5; }
.tm-footer li a { display: inline-block; padding: 4px 0; color: var(--tm-ink); text-decoration: none; }
.tm-footer li a:hover { color: var(--tm-accent); text-decoration: underline; }
.tm-footer-phone a { font-size: 1.125rem; font-weight: 650; }
.tm-footer-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: clamp(40px, 4vw, 60px);
	padding-top: 22px;
	border-top: 1px solid var(--tm-line);
}
.tm-footer-bar p { color: var(--tm-ink-3); font-size: 0.8125rem; }

.tm-callbar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 70;
	gap: 10px;
	padding: 10px var(--tm-gutter);
	border-top: 1px solid var(--tm-line-2);
	background: rgba(255, 255, 255, 0.97);
}
.tm-callbar .tm-btn { flex: 1 1 auto; min-height: 50px; padding: 12px 16px; }
.tm-callbar .tm-btn-ghost { flex: 0 1 34%; }

.tm-page { padding: clamp(56px, 6vw, 96px) 0 var(--tm-block); }
.tm-page-code { color: var(--tm-accent); font-size: 0.9375rem; font-weight: 650; }
.tm-page h1 { margin-top: 10px; }
.tm-page-body { margin-top: 26px; }
.tm-page-body p, .tm-page-body li { color: var(--tm-ink-2); font-size: 1.0625rem; line-height: 1.68; }
.tm-page-body p + p, .tm-page-body ul, .tm-page-body ol { margin-top: 18px; }
.tm-page-body ul, .tm-page-body ol { padding-left: 20px; }
.tm-page-body h2 { margin-top: 34px; }
.tm-page-body h3 { margin-top: 26px; }
.tm-page .tm-actions { margin-top: 36px; }

.tm-lightbox {
	width: min(1100px, 94vw);
	max-width: 94vw;
	max-height: 94vh;
	padding: 0;
	border: 0;
	background: var(--tm-paper);
}
.tm-lightbox::backdrop { background: rgba(27, 31, 38, 0.82); }
.tm-lightbox-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--tm-line);
}
.tm-lightbox-bar p { color: var(--tm-ink-3); font-size: 0.8125rem; }
.tm-lightbox-actions { display: flex; gap: 8px; }
.tm-lightbox-actions button {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--tm-line-2);
	background: var(--tm-paper);
	color: var(--tm-ink);
	font-size: 0.875rem;
	font-weight: 550;
	cursor: pointer;
}
.tm-lightbox-actions button:hover { border-color: var(--tm-ink); }
.tm-lightbox img {
	width: 100%;
	max-height: 76vh;
	object-fit: contain;
	background: var(--tm-soft);
}
.tm-lightbox figcaption {
	padding: 12px 16px 16px;
	color: var(--tm-ink-2);
	font-size: 0.875rem;
	line-height: 1.55;
}
.tm-lightbox figcaption:empty { display: none; }

@media (max-width: 1080px) {
	.tm-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-services li:nth-child(n + 3) { border-top-color: var(--tm-line-2); }
}

@media (max-width: 960px) {
	.tm-nav, .tm-header-call { display: none; }
	.tm-burger { display: block; }
	.tm-hero-grid, .tm-split, .tm-proof, .tm-contact-grid { grid-template-columns: minmax(0, 1fr); }
	.tm-split-photo { order: 2; }
	.tm-facts { grid-template-columns: minmax(0, 1fr); }
	.tm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-hero { padding-top: clamp(36px, 6vw, 56px); }
}

@media (max-width: 720px) {
	.tm-callbar { display: flex; }
	body { padding-bottom: 72px; }
	.tm-ask { flex-direction: column; align-items: flex-start; }
	.tm-footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
	.tm-services, .tm-tiles, .tm-gallery { grid-template-columns: minmax(0, 1fr); }
	.tm-actions .tm-btn { width: 100%; }
	.tm-hours th { white-space: normal; }
	.tm-lightbox-actions button { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.tm-gallery button:hover .tm-shot-media img { transform: none; }
}

@media print {
	.tm-header, .tm-callbar, .tm-map, .tm-gallery { display: none; }
	body { padding-bottom: 0; color: #000; }
	.tm-section { padding: 24px 0; }
}
