/* Krane-Pol — statyczna strona, paleta wg logo (stal/antracyt + czerwony akcent) */

:root {
	--color-bg: #ffffff;
	--color-bg-alt: #f4f5f6;
	--color-text: #23262b;
	--color-text-muted: #5b6169;
	--color-dark: #23262b;
	--color-dark-2: #32363d;
	--color-accent: #d81f26;
	--color-accent-dark: #a9151b;
	--color-border: #e2e4e7;
	--container-w: 1180px;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
	--transition: 200ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2.section-title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	text-transform: uppercase;
	letter-spacing: .03em;
}
p.section-lead {
	color: var(--color-text-muted);
	max-width: 60ch;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .8em 1.6em;
	border-radius: 999px;
	background: var(--color-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background var(--transition), transform var(--transition);
	font-size: .95rem;
}
.btn:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn.btn-outline {
	background: transparent;
	color: var(--color-dark);
	border: 2px solid var(--color-dark);
}
.btn.btn-outline:hover { background: var(--color-dark); color: #fff; }
.btn.btn-small { padding: .5em 1.1em; font-size: .85rem; }

/* ---------- Top bar ---------- */
.topbar {
	background: var(--color-dark);
	color: #d9dbde;
	font-size: .85rem;
}
.topbar-inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 36px;
	flex-wrap: wrap;
}
.topbar a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #d9dbde;
	text-decoration: none;
	white-space: nowrap;
}
.icon-phone { fill: var(--color-accent); flex-shrink: 0; }
.topbar a:hover { color: #fff; }
.topbar-email { margin-left: auto; }
@media (max-width: 500px) {
	.topbar-email { margin-left: 0; }
}

.lang-switch {
	display: flex;
	gap: 8px;
	padding-left: 14px;
	margin-left: 6px;
	border-left: 1px solid rgba(255,255,255,.25);
}
.lang-switch a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	letter-spacing: .03em;
	opacity: .7;
	font-size: .85rem;
}
.flag-icon {
	display: block;
	flex-shrink: 0;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a.is-active { color: var(--color-accent); opacity: 1; }
@media (max-width: 500px) {
	.lang-switch { padding-left: 0; margin-left: 0; border-left: none; }
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--color-border);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
}
.brand img { height: 46px; width: auto; }

.main-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
.main-nav a {
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	color: var(--color-dark);
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
	transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover { border-color: var(--color-accent); }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
	content: "";
	display: block;
	width: 26px;
	height: 3px;
	background: var(--color-dark);
	margin: 5px 0;
	border-radius: 2px;
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed;
		inset: 78px 0 0 0;
		background: #fff;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 10px 20px 30px;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
		overflow-y: auto;
	}
	.main-nav.is-open {
		opacity: 1;
		transform: translateY(0);
		visibility: visible;
	}
	.main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 62vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--color-dark);
}
.hero video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .55;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(35,38,43,.25) 0%, rgba(20,22,26,.85) 100%);
}
.hero-content {
	position: relative;
	z-index: 1;
	color: #fff;
	padding: 60px 0;
}
.hero-content h1 {
	font-size: clamp(1.9rem, 5vw, 3.2rem);
	max-width: 18ch;
}
.hero-content p { color: #d9dbde; max-width: 55ch; margin-bottom: 1.4em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
section.alt { background: var(--color-bg-alt); }
.anchor-offset { scroll-margin-top: 90px; }

.about-grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 50px;
	align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.quote-banner {
	background: var(--color-dark);
	color: #fff;
	border-radius: var(--radius);
	padding: 34px 40px;
	margin-bottom: 46px;
	display: flex;
	gap: 20px;
	align-items: center;
}
.quote-banner img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.quote-banner-title { margin: 0 0 .2em; font-weight: 700; font-size: 1.15rem; color: #fff; }
.quote-banner-text { margin: 0; color: #c7cad0; }

/* ---------- Offer intro / relokacje columns ---------- */
.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 6px 0;
}
.icon-list li::before {
	content: "\25B8";
	color: var(--color-accent);
	font-weight: 700;
	line-height: 1.5;
}

/* ---------- Fleet accordion ---------- */
.fleet {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
}
.fleet-item + .fleet-item { border-top: 1px solid var(--color-border); }
.fleet-item-header {
	width: 100%;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 4px;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: clamp(.9rem, 3.2vw, 1.05rem);
	font-weight: 700;
	color: var(--color-dark);
}
.fleet-item-header:hover { background: var(--color-bg-alt); }
.fleet-item-header .chevron {
	transition: transform var(--transition);
	flex-shrink: 0;
	color: var(--color-accent);
}
.fleet-item.is-open .fleet-item-header .chevron { transform: rotate(180deg); }
.fleet-item-header .model-max { font-weight: 400; color: var(--color-text-muted); font-size: .9rem; margin-left: auto; margin-right: 10px; }

.fleet-item-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 320ms ease;
}
.fleet-item.is-open .fleet-item-panel { max-height: 640px; }
.fleet-item-body {
	padding: 4px 22px 26px;
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
}
@media (max-width: 640px) { .fleet-item-body { grid-template-columns: 1fr; } }
.fleet-item-body img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: var(--radius);
}
@media (max-width: 640px) { .fleet-item-body img { height: 220px; } }
.fleet-specs { list-style: none; margin: 0 0 14px; padding: 0; color: var(--color-text-muted); }
.fleet-specs li { padding: 2px 0; }
.fleet-specs strong { color: var(--color-text); }
.fleet-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Certyfikaty ---------- */
.certs-grid {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 40px;
	align-items: center;
	margin-top: 30px;
}
.cert-doc {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: auto;
	max-width: 320px;
	height: auto;
}
.cert-logos {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	align-items: center;
}
.cert-logos img {
	width: 100%;
	max-width: 260px;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
@media (max-width: 700px) {
	.certs-grid { grid-template-columns: 1fr; }
	.cert-doc { max-width: 240px; margin: 0 auto; }
}

/* ---------- Counters ---------- */
.counters {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	text-align: center;
}
@media (max-width: 700px) { .counters { grid-template-columns: repeat(2, 1fr); } }
.counter-number {
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 800;
	color: var(--color-accent);
}
.counter-title { color: var(--color-text-muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 50px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
	background: var(--color-dark);
	color: #fff;
	border-radius: var(--radius);
	padding: 32px;
}
.contact-card h3 { color: #fff; margin-bottom: 10px; }
.contact-card .company-name { margin: 0 0 14px; color: #fff; font-weight: 600; line-height: 1.3; }
.contact-card .icon-list li { padding: 4px 0; line-height: 1.3; }
.contact-card .icon-list li::before { color: #ff6a6f; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--color-accent); }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-field input,
.form-field textarea {
	width: 100%;
	padding: .8em 1em;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--color-accent);
}
.form-field.honeypot { position: absolute; left: -9999px; opacity: 0; }

.checkbox-label {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400 !important;
	cursor: pointer;
	line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: var(--color-accent);
}
.checkbox-label a { color: var(--color-accent); text-decoration: underline; }
.checkbox-label a:hover { color: var(--color-accent-dark); }

.form-status {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: .9rem;
	display: none;
}
.form-status.is-visible { display: block; }
.form-status.ok { background: #e5f6ec; color: #1d6b3d; }
.form-status.err { background: #fdecec; color: #a12727; }

/* ---------- Mapa ---------- */
.map-embed {
	margin-top: 40px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	position: relative;
	padding-bottom: 32%;
	height: 0;
}
.map-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
@media (max-width: 700px) {
	.map-embed { padding-bottom: 75%; }
}

/* ---------- Legal page ---------- */
.legal-page {
	max-width: 780px;
	padding-top: 50px;
	padding-bottom: 60px;
}
.legal-page h1 { margin-bottom: 30px; }
.legal-page h2 {
	margin-top: 34px;
	font-size: 1.15rem;
	color: var(--color-accent);
}
.legal-page p { color: var(--color-text-muted); }
.legal-page .icon-list { margin: 8px 0 16px; color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--color-dark);
	color: #b9bcc2;
	padding: 30px 0;
	font-size: .9rem;
}
.site-footer .container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
.site-footer a { color: #d9dbde; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Gallery page ---------- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.gallery-grid figure {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	position: relative;
	cursor: zoom-in;
	box-shadow: var(--shadow);
}
.gallery-grid img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	transition: transform var(--transition);
}
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65));
	color: #fff;
	font-size: .85rem;
	padding: 22px 10px 8px;
}

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(15, 16, 18, .92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 200;
	padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 6px; }
.lightbox-close {
	position: absolute;
	top: 20px; right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
}

/* ---------- Cookie modal ---------- */
.cookie-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 16, 18, .55);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 300;
	padding: 20px;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-box {
	background: #fff;
	color: var(--color-text);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	max-width: 620px;
	width: 100%;
	padding: 28px 30px;
	margin-bottom: 20px;
}
.cookie-modal-box h3 { margin-bottom: .4em; }
.cookie-modal-box p {
	color: var(--color-text-muted);
	font-size: .92rem;
	margin: 0 0 .8em;
}
.cookie-modal-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}
@media (max-width: 500px) {
	.cookie-modal { align-items: center; }
	.cookie-modal-box { padding: 24px 20px; }
}
