/* ZOM Świdnica - odświeżony wygląd (2026). Bez Flasha, responsywnie. */
:root {
	--navy: #012581;
	--navy-dark: #011a5c;
	--blue: #206fd0;
	--green: #4f8a03;
	--green-light: #63a404;
	--red: #c62828;
	--text: #1f2933;
	--muted: #5b6875;
	--line: #e3e7ec;
	--bg: #f3f5f7;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hide { display: none; }
.clr, .clear { clear: both; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* przyciski */
.btn {
	display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
	background: var(--green-light); color: #fff; border: 0; border-radius: 999px;
	padding: .65em 1.4em; font: inherit; font-weight: 600; text-decoration: none;
	transition: background .15s ease;
}
.btn:hover { background: var(--green); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e8eefc; color: var(--navy); }
.btn-secondary { background: #e8ecf1; color: var(--text); }
.btn-secondary:hover { background: #d9dfe6; color: var(--text); }

/* nagłówek */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }
.site-header .logo img { display: block; width: 170px; }
.site-header .tagline { color: var(--muted); font-size: .95rem; margin: 0; }
.site-header .tagline strong { color: var(--navy); }
.header-contact { text-align: right; font-size: .95rem; }
.header-contact a { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.menu-toggle { display: none; }

/* hero */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background: var(--navy) url('../gfx/hero.jpg') center 40% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 26, 92, .55) 0%, rgba(1, 26, 92, .15) 55%, rgba(1, 26, 92, 0) 100%); }
.hero .wrap { position: relative; padding-top: 70px; padding-bottom: 70px; }
.hero h1, .hero .hero-title { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0 0 .3em; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.hero p { font-size: 1.15rem; max-width: 34em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.hero-small .wrap { padding-top: 46px; padding-bottom: 46px; }
.hero-small .hero-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* strona główna - wybór oddziału */
.branches-select { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: -40px 0 40px; position: relative; }
.branch-card {
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 28px 24px;
	display: flex; flex-direction: column; border-top: 5px solid var(--green-light);
}
.branch-card .label { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); font-weight: 700; }
.branch-card h2 { font-size: 1.5rem; margin: .15em 0 .5em; }
.branch-card address { font-style: normal; color: var(--text); margin-bottom: 1.2em; }
.branch-card .woj { display: inline-block; background: #eef4e5; color: var(--green); border-radius: 999px; padding: .1em .8em; font-size: .85rem; font-weight: 600; margin-bottom: .8em; }
.branch-card .btn { margin-top: auto; align-self: flex-start; }
.home-badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-bottom: 40px; }
.home-badges img { display: block; }

/* układ podstron */
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 40px; }
.sidebar > * + * { margin-top: 20px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.content { padding: 30px 34px; min-height: 300px; }

/* menu boczne */
.nav-main { padding: 8px 0; }
.nav-main ul { list-style: none; margin: 0; padding: 0; }
.nav-main > ul > li > a, .nav-main .submenu-toggle {
	display: block; width: 100%; text-align: left; padding: .7em 1.2em .7em 1.4em; color: var(--text);
	font: inherit; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer;
	border-left: 4px solid transparent;
}
.nav-main > ul > li > a:hover, .nav-main .submenu-toggle:hover { background: #f2f6fd; color: var(--navy); }
.nav-main > ul > li.active > a { border-left-color: var(--green-light); color: var(--navy); background: #f2f6fd; }
.nav-main .submenu-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; line-height: 1.35; }
.nav-main .submenu-toggle::after { content: "▾"; flex: 0 0 auto; color: var(--muted); transition: transform .15s; }
.nav-main > ul > li > a { line-height: 1.35; }
.nav-main li.open > .submenu-toggle::after { transform: rotate(180deg); }
.nav-main .submenu { background: #fafbfc; padding: 4px 0; }
.nav-main .submenu a { display: block; padding: .45em 1.2em .45em 2.4em; color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-main .submenu a:hover, .nav-main .submenu li.active a { color: var(--navy); background: #f2f6fd; }

.extra { padding: 10px; display: grid; gap: 8px; }
.extra:empty { display: none; }
.extra-link {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px;
	background: linear-gradient(135deg, #d32f2f, #b71c1c); color: #fff; font-weight: 700; text-decoration: none;
}
.extra-link:hover { color: #fff; filter: brightness(1.08); }
.extra-link::after { content: "›"; margin-left: auto; font-size: 1.5rem; line-height: 1; opacity: .85; }

.branches { padding: 20px 22px; }
.branches .title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 0; }
.branches .woj { color: var(--muted); font-size: .9rem; margin: 0 0 .8em; }
.branches ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.branches li a { display: block; padding: .45em 0 .45em 1.2em; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); position: relative; }
.branches li a::before { content: "›"; position: absolute; left: 2px; color: var(--green-light); font-weight: 700; }
.branches li a:hover, .branches li.active a { color: var(--blue); }
.side-banners { display: grid; gap: 14px; justify-items: center; }
.side-banners img { display: block; border-radius: 8px; }

/* menu gminy */
.top-menu { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px; }
.top-menu .title { color: #fff; font-size: 1.25rem; margin: 0 0 .5em; }
.top-menu .menu { display: flex; flex-wrap: wrap; gap: 6px; }
.top-menu .menu a { color: #fff; text-decoration: none; padding: .3em .9em; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .95rem; }
.top-menu .menu a:hover, .top-menu .menu a.active { background: #fff; color: var(--navy); }

/* treść */
.content h1.Title { font-size: 1.7rem; border-bottom: 3px solid var(--green-light); padding-bottom: .35em; margin-bottom: .8em; }
.content h1.Title .crumb { color: var(--muted); font-weight: 400; font-size: .75em; display: block; }
.content h2.Title { color: var(--green); font-size: 1.25rem; margin-top: 1.2em; }
.Text { overflow-wrap: anywhere; }
.Text::after { content: ""; display: table; clear: both; }
.Text ul, .Text ol { padding-left: 1.4em; }
.Text table { border-collapse: collapse; max-width: 100%; }
.Text td, .Text th { padding: 4px 8px; }
.Text img { height: auto; }
.text-photos { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 1em; }
.text-photos .Photos { flex: 0 0 auto; display: grid; gap: 10px; max-width: 45%; }
.text-photos .Text { flex: 1 1 auto; min-width: 0; }
.text-photos img { border-radius: 6px; display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 1em 0 1.5em; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { border-radius: 6px; display: block; margin: 0 auto; box-shadow: var(--shadow); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .4em; }
.form-errors { color: var(--red); }

/* strona główna regionu */
.first { display: flex; gap: 20px; align-items: flex-start; background: #f2f7ea; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.first::before { content: ""; flex: 0 0 64px; height: 64px; border-radius: 50%; background: #fff url('../gfx/apple.gif') center / 80% no-repeat; }
.first-title { color: var(--green); margin: 0 0 .3em; font-size: 1.3rem; }
.first-text p { margin: 0 0 .6em; }
.first-text .more { margin: .4em 0 0; }
.news-head { font-size: 1.4rem; }
.news-list { display: grid; gap: 16px; }
.news-row { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-row:last-child { border-bottom: 0; }
.news-row .photo img { width: 97px; height: 97px; object-fit: cover; border-radius: 8px; display: block; background: #eef1f4; }
.news-row .text { min-width: 0; }
.news-row .photo-placeholder { display: block; width: 97px; height: 97px; border-radius: 8px; background: #eef2fa url('../gfx/logo-zom.png') center / 70% no-repeat; }
.news-row .time { color: var(--muted); font-size: .85rem; margin: 0; }
.news-row .title { font-size: 1.1rem; margin: .1em 0 .3em; }
.news-row .title a { color: var(--navy); text-decoration: none; }
.news-row .title a:hover { color: var(--blue); }
.news-row p.text { margin: 0; color: var(--text); }

/* formularze */
.Kontakt, .KontaktBin { margin: 1.2em 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3em; }
.field .req { color: var(--red); }
input.contactForm, textarea.contactForm, select.contactForm {
	width: 100%; font: inherit; padding: .6em .75em; border: 1px solid #cfd6de; border-radius: 8px; background: #fff;
}
input.contactForm:focus, textarea.contactForm:focus { outline: 2px solid rgba(32, 111, 208, .35); border-color: var(--blue); }
textarea.contactForm { min-height: 130px; resize: vertical; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-row label { font-weight: 400; display: inline-flex; align-items: center; gap: .4em; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.formbin .company { display: none; }
.formbin.is-company .company { display: block; }
.formbin.is-company .person { display: none; }
h3.info { color: var(--red); text-align: center; margin: 1.4em 0 .6em; }
.table-wrap { overflow-x: auto; }
table.bin { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.bin th, table.bin td { border-bottom: 1px solid var(--line); padding: .55em .5em; text-align: center; }
table.bin thead th { background: #f2f6fd; color: var(--navy); font-size: .85rem; }
table.bin label { display: inline-flex; gap: .4em; align-items: center; cursor: pointer; }
table.bin input[type=number] { width: 4.5em; padding: .35em; border: 1px solid #cfd6de; border-radius: 6px; font: inherit; }
.form-message { padding: .8em 1em; border-radius: 8px; background: #fdecea; color: var(--red); margin-top: 1em; display: none; white-space: pre-line; }

/* stopka */
.site-footer { background: var(--navy-dark); color: #d6def0; font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 0 0 .3em; }

/* cookies */
.cookies {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto;
	background: #fff; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
	padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: .88rem;
}
.cookies p { margin: 0; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; padding: 20px; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-close { position: absolute; top: 14px; right: 20px; color: #fff; font-size: 2.2rem; background: none; border: 0; cursor: pointer; line-height: 1; }

/* RWD */
@media (max-width: 900px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar { order: 2; }
	.main { order: 1; }
	.site-header .tagline { display: none; }
	.menu-toggle { display: inline-flex; }
	.sidebar .nav-main { display: none; }
	body.nav-open .sidebar { order: 0; }
	body.nav-open .sidebar .nav-main { display: block; }
	.content { padding: 22px 18px; }
}
@media (max-width: 600px) {
	.site-header .wrap { min-height: 72px; }
	.site-header .logo img { width: 130px; }
	.header-contact { font-size: .8rem; }
	.header-contact a { font-size: 1rem; }
	.form-grid { grid-template-columns: 1fr; }
	.text-photos { flex-direction: column; }
	.text-photos .Photos { max-width: 100%; }
	.news-row .photo img, .news-row .photo-placeholder { width: 72px; height: 72px; }
	.cookies { flex-direction: column; align-items: flex-start; }
	.hero .wrap { padding-top: 44px; padding-bottom: 54px; }
}
