/*
Theme Name:   DDP design
Description:  Firemní šablona DDP design s.r.o. – suchá výstavba, podhledy, akustika, fasády. Bez build kroku, bez placených pluginů.
Version:      2.6.2
Requires at least: 6.4
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:  ddp-design
*/

/* ==========================================================================
   1. Barvy (podle loga) a základní hodnoty
   ========================================================================== */

:root {
	--c-red:        #d71920; /* červená z loga */
	--c-red-dark:   #b01419;
	--c-black:      #141414; /* černá z loga – hlavička, patička */
	--c-graphite:   #23272b; /* grafit – tmavé sekce */
	--c-graphite-2: #30363b;
	--c-light:      #f4f5f6; /* světle šedé sekce */
	--c-line:       #e1e4e7;
	--c-text:       #1e2226;
	--c-muted:      #5f676e;
	--c-white:      #ffffff;

	--f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap:     75rem;
	--gutter:   clamp(1.25rem, 4vw, 2.5rem);
	--space-xl: clamp(4rem, 8vw, 6.5rem);
	--space-l:  clamp(3rem, 6vw, 4.5rem);
	--space-m:  clamp(2rem, 4vw, 3rem);
	--radius:   4px;
	--shadow:   0 18px 40px -22px rgba(20, 20, 20, 0.45);
}

/* ==========================================================================
   2. Písmo Barlow – uložené v šabloně (žádné Google Fonts)
   ========================================================================== */

@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/barlow-latin-400-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/barlow-latin-ext-400-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(assets/fonts/barlow-latin-600-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(assets/fonts/barlow-latin-ext-600-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(assets/fonts/barlow-latin-700-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(assets/fonts/barlow-latin-ext-700-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   3. Základ
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; }

p, ul, ol, dl, figure { margin: 0 0 1em; }

a { color: var(--c-red); text-underline-offset: 0.2em; }
a:hover { color: var(--c-red-dark); }

:focus-visible { outline: 3px solid var(--c-red); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
	a, .btn, .svc-card, .ref-card__media img { transition: color .15s, background-color .15s, border-color .15s, box-shadow .2s, transform .3s; }
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .75rem 1rem; background: var(--c-red); color: var(--c-white); }
.skip-link:focus { left: .5rem; top: .5rem; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.icon { width: 1.5rem; height: 1.5rem; }

/* ==========================================================================
   4. Tlačítka
   ========================================================================== */

.btn {
	display: inline-block;
	padding: .85rem 1.6rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--f-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.btn--primary { background: var(--c-red); border-color: var(--c-red); color: var(--c-white); }
.btn--primary:hover { background: var(--c-red-dark); border-color: var(--c-red-dark); color: var(--c-white); }

.btn--light { border-color: rgba(255,255,255,.7); color: var(--c-white); }
.btn--light:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-black); }

.btn--dark { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); }
.btn--dark:hover { background: var(--c-red); border-color: var(--c-red); color: var(--c-white); }

.btn--white { background: var(--c-white); border-color: var(--c-white); color: var(--c-red); }
.btn--white:hover { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); }

/* ==========================================================================
   5. Hlavička
   ========================================================================== */

.site-header { background: var(--c-black); position: relative; z-index: 20; }

.site-header__inner { display: flex; align-items: stretch; gap: 2rem; min-height: 5.25rem; }

.brand { display: flex; align-items: center; margin-right: auto; }
.brand__logo { height: 3.1rem; width: auto; }

.site-nav { display: flex; align-items: stretch; gap: 1.5rem; }

.site-nav__list { display: flex; margin: 0; padding: 0; list-style: none; }

.site-nav__list a {
	display: flex;
	align-items: center;
	height: 100%;
	padding-inline: 1.1rem;
	color: var(--c-white);
	font-weight: 600;
	font-size: .975rem;
	text-decoration: none;
}

.site-nav__list a:hover { background: var(--c-graphite-2); color: var(--c-white); }

.site-nav__list a[aria-current="page"],
.site-nav__list .current-menu-item > a { background: var(--c-red); color: var(--c-white); }

.site-nav__phone {
	display: flex;
	align-items: center;
	padding-left: 1.5rem;
	border-left: 1px solid rgba(255,255,255,.18);
	margin-block: 1.5rem;
	color: var(--c-white);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.site-nav__phone:hover { color: var(--c-red); }

.nav-toggle {
	display: none;
	align-items: center;
	gap: .6rem;
	border: 0;
	background: none;
	color: var(--c-white);
	font: 600 1rem var(--f-body);
	cursor: pointer;
}

.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 1.35rem; height: 2px; background: currentColor;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
	.site-header__inner { min-height: 4.5rem; }
	.brand__logo { height: 2.25rem; }
	.nav-toggle { display: inline-flex; }

	.site-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		gap: 0;
		padding: .5rem 0 1.5rem;
		background: var(--c-black);
		border-top: 1px solid rgba(255,255,255,.12);
	}
	.nav-open .site-nav { display: flex; }

	.site-nav__list { flex-direction: column; }
	.site-nav__list a { padding: 1rem var(--gutter); height: auto; }

	.site-nav__phone { margin: 1rem var(--gutter) 0; padding: 0; border: 0; font-size: 1.25rem; }
}

/* ==========================================================================
   6. Úvod (hero) + červený pás s výhodami
   ========================================================================== */

.hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(32rem, 78vh, 46rem);
	padding-block: var(--space-l) calc(var(--space-l) + 4rem);
	overflow: hidden;
	background: radial-gradient(circle at 75% 25%, var(--c-graphite-2), var(--c-graphite) 55%, #1a1d20);
	color: var(--c-white);
	text-align: center;
}

.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,.62) 60%, rgba(20,20,20,.78) 100%);
}

/* Bez fotky: velký domeček z loga jako jemná kresba v pozadí */
.hero__mark {
	position: absolute;
	right: -4%;
	bottom: -12%;
	height: 115%;
	width: auto;
	max-width: none;
	opacity: .07;
	filter: brightness(0) invert(1);
	pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.hero__bar { width: 3.5rem; height: 4px; background: var(--c-red); margin-bottom: 1.5rem; }

.hero__title {
	max-width: 18ch;
	font-size: clamp(2.375rem, 5.4vw, 4.25rem);
	line-height: 1.08;
	letter-spacing: -.01em;
	text-wrap: balance;
	margin-bottom: .45em;
}

.hero__lead {
	max-width: 40rem;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	color: #d5d9dc;
	margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0; }

.perks-wrap { position: relative; z-index: 2; margin-top: -4.5rem; }

.perks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--c-red);
	color: var(--c-white);
	box-shadow: var(--shadow);
}

.perks__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.75rem 1.75rem;
}

.perks__item + .perks__item { border-left: 1px solid rgba(255,255,255,.22); }

.perks__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--c-white);
	color: var(--c-red);
}

.perks__title { display: block; font-size: 1.125rem; line-height: 1.25; }
.perks__text { display: block; margin-top: .15rem; font-size: .9375rem; line-height: 1.4; color: rgba(255,255,255,.88); }

@media (max-width: 900px) {
	.perks-wrap { background: linear-gradient(transparent 4.5rem, var(--c-light) 4.5rem); }
	.perks-wrap + .section--light { margin-top: 0; padding-top: var(--space-l); }
	.perks { grid-template-columns: 1fr; }
	.perks__item + .perks__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
	.perks__item { padding: 1.25rem 1.5rem; }
}

/* ==========================================================================
   7. Sekce a nadpisy sekcí
   ========================================================================== */

.section { padding-block: var(--space-xl); }
.perks-wrap + .section { padding-top: calc(var(--space-xl) - 1rem); }
.section--light { background: var(--c-light); }
.perks-wrap + .section--light { margin-top: -4.5rem; padding-top: calc(var(--space-xl) + 3.5rem); }
.section--dark { background: var(--c-graphite); color: var(--c-white); }

.section-head { max-width: 40rem; margin: 0 auto var(--space-m); text-align: center; }

.section-head__title { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 0; }

.section-head__title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin: 1rem auto 0;
	background: var(--c-red);
}

.section-head__lead { margin: 1rem 0 0; color: var(--c-muted); font-size: 1.125rem; }
.section--dark .section-head__lead { color: #b9c0c5; }

.section-more { margin: var(--space-m) 0 0; text-align: center; }

.page-head {
	position: relative;
	background: var(--c-graphite);
	color: var(--c-white);
	padding-block: clamp(2.5rem, 6vw, 4rem);
	overflow: hidden;
}

.page-head__title {
	max-width: 24ch;
	margin-bottom: 0;
	font-size: clamp(2.125rem, 4.5vw, 3.25rem);
	line-height: 1.1;
	text-wrap: balance;
}

.page-head__title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin-top: 1rem;
	background: var(--c-red);
}

.page-head__lead { max-width: 42rem; margin: 1.25rem 0 0; font-size: 1.1875rem; color: #d5d9dc; }
.page-head__lead p:last-child { margin-bottom: 0; }
.page-head__lead a { color: var(--c-white); }

.page-head__back { margin-bottom: .75rem; font-size: .9375rem; }
.page-head__back a, .page-head__back { color: #b9c0c5; }
.page-head__back a:hover { color: var(--c-white); }

.page-head .hero__actions { justify-content: flex-start; margin-top: 2rem; }

.section--tight { padding-block: var(--space-m) var(--space-xl); }

.empty { max-width: 40rem; font-size: 1.1875rem; color: var(--c-muted); }

.notice { padding: 1rem 1.25rem; border-left: 4px solid var(--c-red); background: var(--c-light); }

/* ==========================================================================
   8. Karty služeb
   ========================================================================== */

.svc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.5rem;
}

.svc-card { background: var(--c-white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--c-line), 0 0 0 1px var(--c-line); overflow: hidden; }
.svc-card:hover { box-shadow: var(--shadow); }

.svc-card__link { display: flex; flex-direction: column; height: 100%; color: var(--c-text); text-decoration: none; }

.svc-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--c-graphite); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; }

.svc-card__icon {
	position: absolute;
	left: 1.5rem;
	bottom: -1.75rem;
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--c-red);
	color: var(--c-white);
	box-shadow: 0 0 0 5px var(--c-white);
}

.svc-card__media--icon {
	background: radial-gradient(circle at 70% 30%, var(--c-graphite-2), var(--c-graphite));
}

.svc-card__media--icon .svc-card__icon {
	left: 50%;
	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
	width: 4.5rem;
	height: 4.5rem;
	box-shadow: 0 0 0 8px rgba(255,255,255,.08);
}
.svc-card__media--icon .icon { width: 2rem; height: 2rem; }

.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 2.25rem 1.5rem 1.5rem; }
.svc-card__media--icon + .svc-card__body { padding-top: 1.5rem; }

.svc-card__title { font-size: 1.25rem; margin-bottom: .5rem; }
.svc-card__text { color: var(--c-muted); font-size: 1rem; line-height: 1.55; }
.svc-card__more { margin-top: auto; color: var(--c-red); font-weight: 700; font-size: .9375rem; }

.svc-card__link:hover .svc-card__title { color: var(--c-red); }
.svc-card__link:hover .svc-card__more { text-decoration: underline; }

/* ==========================================================================
   9. Realizace – mřížka a karty
   ========================================================================== */

.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }

.ref-card { min-width: 0; }
.ref-card__link { display: block; color: inherit; text-decoration: none; }

.ref-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-light);
}

.section--dark .ref-card__media { background: var(--c-graphite-2); }

.ref-card__media img, .ref-card__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ref-card__placeholder {
	background: url(assets/img/ddp-znacka.svg) center / 22% no-repeat;
	opacity: .35;
}

.ref-card__link:hover .ref-card__media img { transform: scale(1.04); }

.ref-card__media::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 4px;
	background: var(--c-red);
}
.ref-card__link:hover .ref-card__media::after { width: 100%; }
@media (prefers-reduced-motion: no-preference) { .ref-card__media::after { transition: width .3s; } }

.ref-card__title { margin: 1rem 0 0; font-size: 1.1875rem; line-height: 1.3; }
.ref-card__link:hover .ref-card__title { color: var(--c-red); }
.section--dark .ref-card__link:hover .ref-card__title { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-red); text-decoration-thickness: 2px; }

.ref-card__meta { margin: .3rem 0 0; font-size: .9375rem; line-height: 1.45; color: var(--c-muted); }
.section--dark .ref-card__meta { color: #9ea6ac; }
.ref-card__meta span { display: block; }

@media (max-width: 900px) { .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ref-grid { grid-template-columns: 1fr; } }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }

.filter a {
	padding: .45rem 1rem;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 999px;
	color: var(--c-white);
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
}
.filter a:hover { border-color: var(--c-white); color: var(--c-white); }
.filter a[aria-current="page"] { background: var(--c-red); border-color: var(--c-red); }

.navigation.pagination { margin-top: var(--space-m); }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers {
	display: inline-block;
	min-width: 2.75rem;
	padding: .55rem .8rem;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	color: var(--c-text);
	text-align: center;
	text-decoration: none;
}
.page-numbers.current { background: var(--c-red); border-color: var(--c-red); color: var(--c-white); }
a.page-numbers:hover { border-color: var(--c-red); color: var(--c-red); }

/* ==========================================================================
   10. Detail realizace, fakta
   ========================================================================== */

.facts { margin: 0; }

.facts__row {
	display: grid;
	grid-template-columns: 10rem minmax(0, 1fr);
	gap: 1rem;
	padding-block: .85rem;
	border-bottom: 1px solid var(--c-line);
}
.facts__row:first-child { border-top: 3px solid var(--c-red); }

.facts dt { color: var(--c-muted); font-size: .9375rem; line-height: 1.65; }
.facts dd { margin: 0; font-weight: 600; }

.ref-detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: var(--space-m) clamp(2rem, 5vw, 4rem);
	align-items: start;
	padding-block: var(--space-l);
}
.ref-detail__grid > .facts { position: sticky; top: 1.5rem; background: var(--c-light); padding: 0 1.25rem .5rem; }
.ref-detail__grid > .ref-detail__body:only-child { grid-column: 1 / -1; }

.ref-detail__cover { margin: 0 0 var(--space-m); }
.ref-detail__cover img { width: 100%; border-radius: var(--radius); }

.pager {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.5rem var(--space-xl);
	border-top: 1px solid var(--c-line);
}
.pager div:last-child { text-align: right; }
.pager a { font-weight: 600; }

@media (max-width: 860px) {
	.ref-detail__grid { grid-template-columns: 1fr; }
	.ref-detail__grid > .facts { position: static; }
	.pager { flex-direction: column; }
	.pager div:last-child { text-align: left; }
}

/* ==========================================================================
   11. Text z editoru
   ========================================================================== */

.prose { max-width: 44rem; }
.ref-detail__body .prose { max-width: none; }
.ref-detail__body .prose > p,
.ref-detail__body .prose > ul,
.ref-detail__body .prose > ol,
.ref-detail__body .prose > h2,
.ref-detail__body .prose > h3 { max-width: 44rem; }

.prose h2 { font-size: 1.75rem; margin-top: 1.5em; }
.prose h3 { font-size: 1.3125rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .3em; }
.prose li::marker { color: var(--c-red); }
.prose > *:last-child { margin-bottom: 0; }
.prose .wp-block-gallery { margin-block: 2rem; }
.prose .wp-block-image img { border-radius: var(--radius); }
.prose figcaption, .wp-element-caption { margin-top: .5rem; font-size: .9375rem; color: var(--c-muted); }

/* ==========================================================================
   12. Služba, pozice, kontakt
   ========================================================================== */

.service, .job {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--space-m) clamp(2rem, 5vw, 4rem);
	align-items: start;
	padding-block: var(--space-l);
}
.service__body .btn { margin-top: 1rem; }
.service__image { margin: 0; }
.service__image img { border-radius: var(--radius); }

.job__aside { background: var(--c-light); padding: 1.5rem; border-top: 3px solid var(--c-red); }
.job__aside .facts__row:first-child { border-top: 0; }
.job__aside .btn { margin-top: 1.5rem; }
.job__aside p { font-size: 1rem; }

.spec-list, .jobs { margin: 0; padding: 0; list-style: none; }

.jobs__item {
	padding: 1.5rem 1.75rem;
	margin-bottom: 1rem;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-left: 4px solid var(--c-red);
	border-radius: var(--radius);
}
.jobs__title { margin: 0; font-size: 1.375rem; }
.jobs__title a { color: var(--c-text); text-decoration: none; }
.jobs__title a:hover { color: var(--c-red); }
.jobs__meta { margin: .25rem 0 0; color: var(--c-muted); font-size: 1rem; }

.contact {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--space-m) clamp(2rem, 5vw, 4rem);
	align-items: start;
}
.contact__main { display: flex; flex-direction: column; gap: .25rem; }
.contact__big {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--c-text);
	text-decoration: none;
	overflow-wrap: anywhere;
}
.contact__big:hover { color: var(--c-red); }
.contact__facts { background: var(--c-light); padding: 0 1.25rem .5rem; }
.contact__map { grid-column: 2; margin: 0; font-weight: 600; }

@media (max-width: 860px) {
	.service, .job, .contact { grid-template-columns: 1fr; }
	.contact__map { grid-column: auto; }
}

/* ==========================================================================
   13. O firmě + veřejné zakázky
   ========================================================================== */

.about {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--space-m) clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.about__title { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.about__title::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: 1rem; background: var(--c-red); }

.about__text .prose { font-size: 1.1875rem; line-height: 1.6; margin-bottom: 2rem; }

.about__side { background: var(--c-light); border-top: 4px solid var(--c-red); padding: 2rem; }
.about__side-title { font-size: 1.375rem; }
.about__side p { color: var(--c-muted); font-size: 1rem; }

.clients { margin: 0; padding: 0; list-style: none; }
.clients li + li { margin-top: .5rem; }
.clients a {
	display: block;
	padding: .9rem 1.1rem;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	color: var(--c-text);
	font-weight: 700;
	font-size: 1.125rem;
	text-decoration: none;
}
.clients a:hover { border-color: var(--c-red); color: var(--c-red); }

@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ==========================================================================
   14. Poptávka (červený pás)
   ========================================================================== */

.cta { background: var(--c-red); color: var(--c-white); padding-block: var(--space-l); }

.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }

.cta__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: .3em; }
.cta__text { margin: 0; font-size: 1.125rem; color: rgba(255,255,255,.9); }

.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.cta__phone {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--c-white);
	text-decoration: none;
	white-space: nowrap;
}
.cta__phone:hover { color: var(--c-white); text-decoration: underline; }
.cta :focus-visible { outline-color: var(--c-white); }

/* ==========================================================================
   15. Patička
   ========================================================================== */

.site-footer { background: var(--c-black); color: #a8afb5; font-size: .975rem; }
.site-footer a { color: #e3e6e8; text-decoration: none; }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-red); }
.site-footer :focus-visible { outline-color: var(--c-white); }

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr .8fr;
	gap: 2.5rem;
	padding-block: var(--space-l) 3rem;
}

.site-footer__brand .brand__logo { height: 2.75rem; width: auto; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 22rem; }

.site-footer__title { margin-bottom: 1rem; font-size: 1.0625rem; color: var(--c-white); }
.site-footer__title::after { content: ""; display: block; width: 2rem; height: 2px; margin-top: .6rem; background: var(--c-red); }

.site-footer .site-nav__list { flex-direction: column; gap: .4rem; }
.site-footer .site-nav__list a { display: inline; height: auto; padding: 0; font-weight: 400; font-size: .975rem; background: none; }
.site-footer .site-nav__list a[aria-current="page"] { background: none; color: var(--c-white); }

.site-footer__legal { background: #0b0b0b; padding-block: 1.25rem; font-size: .875rem; color: #8a9298; }
.site-footer__legal p { margin: 0 0 .25rem; }
.site-footer__legal p:last-child { margin: 0; }
.site-footer__sep { margin-inline: .5rem; }

@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   16. Veřejné zakázky – štítek, odkazy
   ========================================================================== */

.ref-card__badge {
	position: absolute;
	top: .75rem;
	left: .75rem;
	z-index: 1;
	padding: .3rem .75rem;
	border-radius: 999px;
	background: var(--c-red);
	color: var(--c-white);
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1.3;
}

.ref-card__project { color: var(--c-text); font-weight: 600; }
.section--dark .ref-card__project { color: #dfe3e6; }

.perks__item { position: relative; }
.perks__link { position: absolute; inset: 0; z-index: 1; }
.perks__link:hover ~ span .perks__title,
.perks__item:has(.perks__link:hover) .perks__title { text-decoration: underline; }
.perks__link:focus-visible { outline: 3px solid var(--c-white); outline-offset: -6px; }

.about__side-more { margin: 1rem 0 0; font-weight: 700; }

/* ==========================================================================
   17. Certifikáty
   ========================================================================== */

.cert-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 1.5rem;
}

.cert-card {
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--c-red);
	border-radius: var(--radius);
	overflow: hidden;
}
.cert-card:hover { box-shadow: var(--shadow); }

.cert-card__link { display: flex; flex-direction: column; height: 100%; color: var(--c-text); text-decoration: none; }

.cert-card__media {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	padding: 1.5rem;
	background: var(--c-light);
}
.cert-card__media img { max-height: 100%; width: auto; object-fit: contain; }

.cert-card__icon {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: var(--c-red);
	color: var(--c-white);
}
.cert-card__icon .icon { width: 2rem; height: 2rem; }

.cert-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.5rem; }
.cert-card__issuer { margin: 0 0 .25rem; color: var(--c-red); font-weight: 700; font-size: .875rem; }
.cert-card__title { margin: 0 0 .5rem; font-size: 1.1875rem; line-height: 1.3; }
.cert-card__valid { margin: 0 0 1rem; color: var(--c-muted); font-size: .9375rem; }
.cert-card__more { margin-top: auto; color: var(--c-red); font-weight: 700; font-size: .9375rem; }
.cert-card__link:hover .cert-card__title { color: var(--c-red); }
.cert-card__link:hover .cert-card__more { text-decoration: underline; }

/* Náhled první strany certifikátu – list papíru vysunutý z karty */
.cert-card__media--doc {
	place-items: start center;
	padding: 1.75rem 1.5rem 0;
	overflow: hidden;
	background: linear-gradient(160deg, var(--c-graphite-2), var(--c-graphite));
}

.cert-card__media--doc .cert-card__doc {
	width: 72%;
	max-height: none;
	height: auto;
	object-fit: initial;
	background: var(--c-white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

@media (prefers-reduced-motion: no-preference) {
	.cert-card__doc { transition: transform .3s; }
	.cert-card__link:hover .cert-card__doc { transform: translateY(-6px); }
}

/* ==========================================================================
   18. Služba jako široký pás (kompletní dodávka)
   ========================================================================== */

.svc-band {
	margin-top: 1.5rem;
	background: linear-gradient(120deg, var(--c-graphite-2), var(--c-graphite) 60%);
	color: var(--c-white);
	border-left: 4px solid var(--c-red);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.svc-band__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1.5rem 2rem;
	align-items: center;
	padding: 2rem 2.25rem;
	color: inherit;
	text-decoration: none;
}
.svc-band__link:hover { color: inherit; }

.svc-band__icon {
	display: grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background: var(--c-red);
	color: var(--c-white);
	box-shadow: 0 0 0 8px rgba(255,255,255,.08);
}
.svc-band__icon .icon { width: 2rem; height: 2rem; }

.svc-band__title { margin-bottom: .35rem; font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.svc-band__text { margin: 0; max-width: 46rem; color: #c9ced2; }

.svc-band__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.svc-band__tags li {
	padding: .3rem .85rem;
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 600;
	color: #e3e6e8;
}

.svc-band__link:hover .svc-band__btn { background: var(--c-red-dark); border-color: var(--c-red-dark); }
.svc-band__link:hover .svc-band__title { text-decoration: underline; text-decoration-color: var(--c-red); text-decoration-thickness: 2px; }

@media (max-width: 860px) {
	.svc-band__link { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; }
	.svc-band__btn { justify-self: start; }
}
