* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-behavior: smooth;
}

html,
body {
	width: 100%;
	overflow-x: hidden;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	background: #f4f6f9;
	color: #1f2937;
	line-height: 1.7;
}

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

.container {
	width: 90%;
	max-width: 1200px;
	margin: auto;
}

/* =========================
   HEADER
========================= */

header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: rgba(15, 23, 42, 0.96);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0;
	min-height: 80px;
	position: relative;
}

.logo {
	color: white;
	font-size: 1.1rem;
	font-weight: bold;
	letter-spacing: 0.5px;
	line-height: 1.3;
	max-width: 320px;
}

.menu {
	display: flex;
	align-items: center;
	gap: 24px;
}

.menu a {
	color: white;
	text-decoration: none;
	transition: 0.3s;
	font-size: 0.95rem;
	white-space: nowrap;
}

.menu a:hover {
	color: #c9a227;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: white;
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
}

/* =========================
   HERO
========================= */

.hero {
	min-height: 100vh;
	background:
		linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)),
		url('https://adwokat-sarna.pl/1.png') center/cover no-repeat;
	display: flex;
	align-items: center;
	color: white;
	text-align: center;
	padding: 180px 20px 80px;
}

.hero-content {
	max-width: 900px;
	margin: auto;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 25px;
	line-height: 1.2;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 18px;
}

.cta-btn {
	display: inline-block;
	margin-top: 30px;
	background: #c9a227;
	color: #111827;
	text-decoration: none;
	padding: 16px 34px;
	border-radius: 6px;
	font-weight: bold;
	transition: 0.3s;
}

.cta-btn:hover {
	background: #b58f1e;
}

/* =========================
   SEKCJE
========================= */

section {
	padding: 100px 0;
	scroll-margin-top: 120px;
}

h2 {
	font-size: 2.5rem;
	margin-bottom: 30px;
	color: #0f172a;
	text-align: center;
	line-height: 1.2;
}

.section-text {
	font-size: 1.05rem;
	margin-bottom: 20px;
}

/* =========================
   ABOUT
========================= */

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.about-image img {
	border-radius: 12px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* =========================
   SERVICES
========================= */

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.service-box {
	background: white;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
	border-top: 5px solid #c9a227;
}

.service-box h3 {
	margin-bottom: 20px;
	color: #0f172a;
	line-height: 1.3;
}

.service-box ul {
	padding-left: 20px;
}

.service-box li {
	margin-bottom: 10px;
}

/* =========================
   FEATURES
========================= */

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.feature-box {
	background: white;
	padding: 35px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
	text-align: center;
}

/* =========================
   FAQ
========================= */

.faq-item {
	background: white;
	margin-bottom: 20px;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
	margin-bottom: 12px;
	color: #0f172a;
	line-height: 1.3;
}

/* =========================
   CTA
========================= */

.cta-section {
	background: #0f172a;
	color: white;
	text-align: center;
	padding: 90px 20px;
}

.cta-section h2 {
	color: white;
}

/* =========================
   CONTACT
========================= */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	margin-top: 40px;
}

.contact-box {
	background: white;
	padding: 35px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-box p {
	margin-bottom: 18px;
	word-break: break-word;
}

.contact-box a {
	color: #0f172a;
	text-decoration: none;
}

.contact-box a:hover {
	text-decoration: underline;
}

/* =========================
   FORM
========================= */

form input,
form textarea {
	width: 100%;
	padding: 14px;
	margin-bottom: 16px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
}

form textarea {
	min-height: 140px;
	resize: vertical;
}

form button {
	background: #c9a227;
	color: #111827;
	border: none;
	padding: 14px 28px;
	border-radius: 6px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
	font-size: 1rem;
}

form button:hover {
	background: #b58f1e;
}

/* =========================
   MAPA
========================= */

iframe {
	width: 100%;
	height: 320px;
	border: 0;
	border-radius: 12px;
	margin-top: 25px;
}

/* =========================
   FOOTER
========================= */

footer {
	background: #0b1120;
	color: #cbd5e1;
	text-align: center;
	padding: 35px 20px;
}

/* =========================
   POPUP
========================= */

.hidden-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

.popup {
	position: fixed;
	right: 20px;
	bottom: 20px;
	background: #0f172a;
	color: white;
	padding: 16px 24px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 9999;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	max-width: calc(100% - 40px);
}

.popup.show {
	opacity: 1;
}

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

	.about-grid,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.hero h1 {
		font-size: 2.7rem;
	}

	.hero p {
		font-size: 1.1rem;
	}

	.logo {
		font-size: 1rem;
		max-width: 240px;
	}

	.menu {
		gap: 14px;
	}

	.menu a {
		font-size: 0.9rem;
	}
}

/* =========================
   MOBILE MENU
========================= */

@media (max-width: 768px) {

	nav {
		min-height: 72px;
	}

	.menu-toggle {
		display: block;
	}

	.menu {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: #0f172a;

		display: flex;
		flex-direction: column;
		align-items: flex-start;

		padding: 20px;

		gap: 18px;

		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);

		transition:
			opacity 0.3s ease,
			transform 0.3s ease,
			visibility 0.3s;
	}

	.menu.active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.menu a {
		font-size: 1rem;
		width: 100%;
	}

	.hero {
		padding-top: 160px;
	}

	.hero h1 {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 2rem;
	}

	section {
		padding: 80px 0;
	}
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

	.container {
		width: 92%;
	}

	.logo {
		font-size: 0.9rem;
		max-width: 180px;
		line-height: 1.2;
	}

	.hero {
		padding-top: 150px;
		padding-left: 15px;
		padding-right: 15px;
	}

	.hero h1 {
		font-size: 1.9rem;
	}

	.hero p {
		font-size: 1rem;
	}

	h2 {
		font-size: 1.7rem;
	}

	.contact-box,
	.feature-box,
	.faq-item,
	.service-box {
		padding: 24px;
	}

	.cta-btn,
	form button {
		width: 100%;
		text-align: center;
	}

	iframe {
		height: 260px;
	}
}