/* PBR Komtech spol. s r.o. – styl webu (2026) */

:root {
	--navy: #0d4f85;      /* nadpisy */
	--navy-2: #1a1a1a;    /* tmavé plochy (patička, CTA) – černá z loga */
	--accent: #1a7fcf;
	--accent-2: #5aa9e0;
	--sky: #8ec5e8;
	--sky-light: #e3f1fa;
	--ink: #161a1f;
	--ink-2: #4a5566;
	--muted: #6b7686;
	--line: #d9e0ea;
	--bg: #f4f6f9;
	--card: #ffffff;
	--max: 1180px;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(15, 42, 71, .06), 0 8px 24px -12px rgba(15, 42, 71, .18);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin-top: 2em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.3em; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.icon { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.35em; flex: none; }
.icon-sm { width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.icon-xs { width: .8em; height: .8em; vertical-align: -.05em; }
.icon-lg { width: 2.2rem; height: 2.2rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-2); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #b9d7ec; }
.rays {
	background-color: var(--sky);
	background-image:
		repeating-conic-gradient(from 0deg at 14% 50%, rgba(255,255,255,.42) 0 2.5deg, rgba(255,255,255,0) 2.5deg 8deg),
		radial-gradient(ellipse 60% 140% at 14% 50%, #ffffff 0%, #d7ebf8 28%, #8ec5e8 60%, #5aa9e0 100%);
}
.header-inner { background: transparent; }
.topbar { background: var(--navy-2); color: #cfd8e0; font-size: .85rem; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-inner { display: flex; gap: 1.5rem; padding: .35rem 0; flex-wrap: wrap; }
.topbar-inner > :last-child { margin-left: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; position: relative; }

.brand { display: flex; flex-direction: column; color: var(--navy); line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 185px; height: auto; display: block; }
.brand-sub { font-size: .7rem; color: #2b3a47; letter-spacing: .08em; text-transform: uppercase; margin: .35rem 0 0 .1rem; }

.nav-main, .sub { list-style: none; margin: 0; padding: 0; }
.nav-main { display: flex; gap: .25rem; align-items: center; }
.nav-main > li > a {
	display: inline-flex; align-items: center; gap: .3rem;
	padding: .55rem .9rem; border-radius: 8px; color: var(--ink); font-weight: 600;
}
.nav-main > li > a:hover { background: rgba(255,255,255,.55); text-decoration: none; }
.nav-main > li > a[aria-current="page"] { color: var(--navy); background: rgba(255,255,255,.8); }

.has-sub { position: relative; }
.sub {
	position: absolute; top: calc(100% + .35rem); left: 0; min-width: 270px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: .5rem; display: grid; gap: 2px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 8px; color: var(--ink); }
.sub a:hover, .sub a[aria-current="page"] { background: var(--bg); color: var(--accent); text-decoration: none; }
.sub .icon { color: var(--accent); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; border-radius: 8px; }
.nav-burger span { display: block; height: 2px; background: #111; border-radius: 2px; transition: .2s; }

@media (max-width: 900px) {
	.topbar-inner span:nth-child(2) { display: none; }
	.nav-burger { display: flex; }
	.nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		max-height: 0; overflow: auto; transition: max-height .25s ease;
	}
	.nav-toggle:checked ~ .nav { max-height: calc(100vh - 120px); }
	.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
	.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
	.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
	.nav-main { flex-direction: column; align-items: stretch; padding: .75rem 1rem 1rem; gap: 0; }
	.nav-main > li > a { display: flex; width: 100%; padding: .75rem .5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
	.has-sub > a .icon-xs { display: none; }
	.sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: .25rem 0 .5rem .75rem; min-width: 0; }
}

/* ---------- Hero ---------- */
.hero {
	background-color: var(--sky);
	background-image:
		repeating-conic-gradient(from 0deg at 20% 60%, rgba(255,255,255,.3) 0 2deg, rgba(255,255,255,0) 2deg 7deg),
		radial-gradient(ellipse 70% 160% at 20% 60%, #ffffff 0%, #e3f1fa 25%, #a9d3ee 55%, #5aa9e0 100%);
	color: var(--ink); padding: clamp(2.5rem, 6vw, 5rem) 0; position: relative; overflow: hidden;
	border-bottom: 1px solid #b9d7ec;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #111; font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); margin-bottom: .5em; }
.hero p { color: #233240; font-size: 1.12rem; max-width: 56ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.hero-badges li { background: rgba(255, 255, 255, .65); border: 1px solid rgba(13, 79, 133, .2); border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; display: inline-flex; gap: .4rem; align-items: center; }
.hero-art { justify-self: center; width: min(100%, 360px); }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 10px; font-weight: 600; transition: .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #111; color: #fff; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.btn-primary:hover { background: #333; }
.btn-ghost { color: #111; border: 1px solid rgba(0, 0, 0, .35); background: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; }
.hero .btn + .btn { margin-left: .6rem; }

@media (max-width: 800px) {
	.hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
	.hero-art { order: -1; width: min(60%, 240px); }
}

/* ---------- Sekce a karty ---------- */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head h2 { margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .4rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; color: var(--ink);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sky-light); color: var(--navy); display: grid; place-items: center; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card-more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .9rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.stat strong { display: block; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: flex-start; color: var(--ink); }
.cert:hover { text-decoration: none; border-color: var(--accent-2); box-shadow: var(--shadow); }
.cert img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.cert strong { display: block; color: var(--navy); }
.cert span { font-size: .85rem; color: var(--muted); }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; padding: 0; list-style: none; }
.partners a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 96px; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); font-weight: 600; text-align: center; transition: .15s; }
.partners a:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.partners img { max-height: 52px; width: auto; max-width: 150px; object-fit: contain; border-radius: 6px; transition: .15s; }
.partners a:hover img { transform: scale(1.04); }
.partner-name { font-size: 1.05rem; }
.partner-desc { font-size: .8rem; font-weight: 400; color: var(--muted); }

.cta { background: var(--navy-2); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { color: #cfd8e0; margin: 0; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.cert-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: .15s; }
.cert-card:hover { text-decoration: none; border-color: var(--accent-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.cert-thumb { display: block; background: #e8ecf1; padding: 1rem 1.5rem 0; height: 170px; overflow: hidden; }
.cert-thumb img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.cert-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.1rem; }
.cert-body strong { color: var(--navy); }
.cert-body > span { font-size: .88rem; color: var(--ink-2); }
.cert-dl { margin-top: .4rem; color: var(--accent); font-weight: 600; font-size: .85rem !important; }

/* ---------- Recenze ---------- */
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.8rem; }
.reviews-head h2 { margin: 0 0 .3em; }
.reviews-head p { margin: 0; max-width: 52ch; }
.rating { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .8rem; align-items: center; padding: 1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.rating:hover { text-decoration: none; border-color: var(--accent-2); box-shadow: var(--shadow); }
.rating-value { grid-row: 1 / 3; font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.rating-stars { color: #f5a623; font-size: 1.25rem; letter-spacing: .1em; line-height: 1; }
.rating-count { font-size: .85rem; color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.review-stars { color: #f5a623; letter-spacing: .1em; font-size: .95rem; }
.review p { margin: 0; font-size: .97rem; color: var(--ink-2); flex: 1; }
.review footer { font-size: .8rem; color: var(--muted); }
.reviews-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.reviews-actions .btn-ghost { border-color: rgba(0,0,0,.25); background: #fff; cursor: pointer; font: inherit; }
.gmap iframe { display: block; width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Podstránky ---------- */
.page-head { background: linear-gradient(90deg, var(--sky-light), #fff 70%); border-bottom: 1px solid var(--line); padding: 2rem 0 1.6rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumb a { color: var(--muted); }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: .7rem; }
.page-head .icon-lg { color: var(--navy); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; padding: 2.5rem 0 3.5rem; }
.content { max-width: 72ch; }
.content h2:first-child { margin-top: 0; }
.content ul li { margin-bottom: .35em; }
.content img.inline-right { float: right; margin: 0 0 1rem 1.5rem; border-radius: 10px; width: 240px; }
.content figure { margin: 1.5rem 0; }
.content figure img { border-radius: 10px; border: 1px solid var(--line); }
.content figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
.note { background: #fff8e6; border-left: 4px solid #e6a700; padding: .8rem 1rem; border-radius: 6px; color: #5f4b00; }
.docs { list-style: none; padding: 0; display: grid; gap: .5rem; }
.docs a { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.docs a:hover { border-color: var(--accent); text-decoration: none; }
.docs .icon { color: var(--accent); }
.docs small { color: var(--muted); margin-left: auto; }

.aside { display: flex; flex-direction: column; gap: 1.2rem; }
.aside-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.aside-box h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .8rem; }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list a { display: flex; align-items: center; gap: .6rem; padding: .45rem .3rem; color: var(--ink); border-radius: 6px; }
.aside-list a:hover { color: var(--accent); text-decoration: none; }
.aside-list a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.aside-list .icon { color: var(--accent); }
.aside-contact p { margin: 0 0 .5rem; }
.aside-contact .btn { width: 100%; justify-content: center; margin-top: .5rem; }

@media (max-width: 900px) {
	.layout { grid-template-columns: 1fr; gap: 2rem; }
	.content img.inline-right { float: none; width: 100%; margin: 0 0 1rem; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.contact-card h2 { font-size: 1rem; margin: 0 0 .7rem; display: flex; gap: .5rem; align-items: center; }
.contact-card h2 .icon { color: var(--accent); }
.contact-card p { margin: 0 0 .3rem; }
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #e8ecf1; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-placeholder { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: .2rem;
	background-color: var(--sky-light);
	background-image: linear-gradient(rgba(13,79,133,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(13,79,133,.08) 1px, transparent 1px); background-size: 32px 32px; }
.map-placeholder .icon-lg { color: var(--navy); width: 2.8rem; height: 2.8rem; }
.map-placeholder p { margin: 0; max-width: 46ch; }
.map-placeholder .btn { margin-top: 1rem; }
.map-foot { padding: .7rem 1rem; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; background: #fff; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.aside .dl { grid-template-columns: 1fr; gap: 0; }
.aside .dl dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.aside .dl dd { margin-bottom: .6rem; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: 0 } .dl dd { margin-bottom: .5rem } }

/* ---------- Tabulka ceníku ---------- */
.table-wrap { overflow-x: auto; }
table.price { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.price th, table.price td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
table.price th { background: var(--bg); color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
table.price td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.price th { white-space: nowrap; }

/* ---------- Patička ---------- */
.site-footer { background: var(--navy-2); color: #c5ced6; margin-top: auto; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-logo { width: 150px; height: auto; filter: invert(1); margin-bottom: .8rem; display: block; }
.footer-h { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .8rem; }
.site-footer .muted { color: #9aa6b2; font-size: .92rem; }
.site-footer address { font-style: normal; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 1; font-size: .92rem; }
.footer-links li { margin-bottom: .25rem; }
.footer-links a { color: #c5ced6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: #9aa6b2; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
	.site-header, .site-footer, .aside, .hero .btn { display: none; }
	body { background: #fff; }
}
