:root {
	--navy: #1b2a4a;
	--navy-mid: #2c3f6a;
	--red: #c0272d;
	--red-soft: #d9474d;
	--cream: #faf8f4;
	--warm: #f2ede3;
	--text: #1b2a4a;
	--muted: #7a8299;
	--border: rgba(27, 42, 74, 0.12);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	scroll-behavior: smooth;
}

body {
	font-family: "Jost", sans-serif;
	background: var(--cream);
	color: var(--text);
	overflow-x: hidden;
	max-width: 100vw;
}

img {
	max-width: 100%;
	height: auto;
}

/* ══ HERO ══ */
.hero {
	min-height: 100vh;
	background: var(--navy);
	display: grid;
	grid-template-rows: auto 1fr auto;
	position: relative;
	overflow: hidden;
}

/* siatka w tle */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(
		ellipse 80% 80% at 50% 0%,
		black 30%,
		transparent 100%
	);
}

/* czerwona wstęga diagonalna */
.hero::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 120px;
	background: var(--cream);
	clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0 100%);
}

/* ── topbar ── */
.topbar {
	position: relative;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 28px 60px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-logo {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.topbar-logo img {
	height: 44px;
	width: auto;
	max-width: 100%;
}

.top-nav {
	display: flex;
	gap: 36px;
	list-style: none;
}

.top-nav a {
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color 0.2s;
}

.top-nav a:hover {
	color: #fff;
}

.top-nav .cta-nav {
	color: var(--red-soft);
	border: 1px solid rgba(192, 39, 45, 0.5);
	padding: 7px 18px;
	border-radius: 1px;
	transition:
		background 0.2s,
		color 0.2s;
}

.top-nav .cta-nav:hover {
	background: var(--red);
	color: #fff;
	border-color: var(--red);
}

.nav-toggle {
	display: none;
}

.hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 20px;
	cursor: pointer;
	z-index: 1001;
}

.hamburger span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: #fff;
	border-radius: 2px;
	transition:
		transform 0.3s,
		opacity 0.3s;
}

/* ── hero center ── */
.hero-center {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 20px 100px;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.hero-eyebrow {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--red-soft);
	margin-bottom: 28px;
	opacity: 0;
	animation: slide-up 0.8s ease 0.2s forwards;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

.hero-logo-img {
	display: block;
	width: min(360px, 80vw);
	max-width: 100%;
	margin: 0 auto 40px;
	opacity: 0;
	animation: slide-up 0.9s ease 0.4s forwards;
}

.hero-desc {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(1.1rem, 2.5vw, 1.7rem);
	font-style: italic;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.65);
	max-width: 560px;
	width: 100%;
	line-height: 1.7;
	margin: 0 auto 48px;
	opacity: 0;
	animation: slide-up 0.9s ease 0.6s forwards;
	overflow-wrap: break-word;
	word-break: break-word;
}

.hero-desc em {
	color: #fff;
	font-style: normal;
}

.hero-btns {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	opacity: 0;
	animation: slide-up 0.9s ease 0.8s forwards;
}

.btn-primary {
	background: var(--red);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 15px 36px;
	text-decoration: none;
	border-radius: 1px;
	transition:
		background 0.2s,
		transform 0.2s;
}

.btn-primary:hover {
	background: var(--red-soft);
	transform: translateY(-2px);
}

.btn-primary.disabled {
	background: var(--muted);
	color: rgba(255, 255, 255, 0.7);
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none; /* Disables mouse clicks and hover effects */
	transform: none !important; /* Forces hover translateY off */
}

.btn-outline {
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 15px 36px;
	text-decoration: none;
	border-radius: 1px;
	transition:
		border-color 0.2s,
		color 0.2s;
}

.btn-outline:hover {
	border-color: #fff;
	color: #fff;
}

@keyframes slide-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ══ STATS STRIP ══ */
.stats-strip {
	background: var(--red);
	padding: 0;
}

.stats-inner {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	divide: 1px;
}

.stat {
	flex: 1;
	text-align: center;
	padding: 32px 20px;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat:last-child {
	border-right: none;
}

.stat-num {
	font-family: "Cormorant Garamond", serif;
	font-size: 2.4rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	margin-bottom: 6px;
}

.stat-label {
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

/* ══ SEKCJE ══ */
.section {
	max-width: 1060px;
	margin: 0 auto;
	padding: 100px 40px;
}

.tag {
	display: inline-block;
	font-size: clamp(0.9rem, 1.5vw, 1.1rem);
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 14px;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

.section-title {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(1.6rem, 4vw, 3.2rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--navy);
	margin-bottom: 16px;
	overflow-wrap: break-word;
	word-break: break-word;
}

.rule {
	width: 52px;
	height: 3px;
	background: var(--red);
	margin-bottom: 40px;
	border-radius: 1px;
}

/* ══ KURSY ══ */
#kursy {
	background: var(--warm);
}

.courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2px;
	margin-top: 56px;
	border: 2px solid var(--navy);
}

.course-card {
	background: var(--cream);
	padding: 40px 36px;
	position: relative;
	border: 1px solid transparent;
	transition: background 0.3s;
	cursor: default;
}

.course-card:hover {
	background: var(--navy);
}
.course-card:hover .course-title {
	color: #fff;
}
.course-card:hover .course-desc {
	color: rgba(255, 255, 255, 0.6);
}
.course-card:hover .course-level {
	color: var(--red-soft);
	border-color: var(--red-soft);
}
.course-card:hover .course-arrow {
	opacity: 1;
	color: var(--red-soft);
}

.course-level {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--red);
	border: 1px solid var(--red);
	display: inline-block;
	padding: 3px 10px;
	margin-bottom: 18px;
	border-radius: 1px;
	transition:
		color 0.3s,
		border-color 0.3s;
}

.course-title {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 12px;
	transition: color 0.3s;
}

.course-desc {
	font-size: 0.88rem;
	line-height: 1.75;
	color: var(--muted);
	transition: color 0.3s;
}

.course-arrow {
	position: absolute;
	bottom: 28px;
	right: 28px;
	font-size: 1.2rem;
	opacity: 0;
	transition: opacity 0.3s;
}

/* ══ O NAS ══ */
#o-nas {
	background: var(--cream);
}

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

.about-text {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #3a4560;
	margin-bottom: 20px;
	overflow-wrap: break-word;
	word-break: break-word;
}

.about-visual {
	position: relative;
	width: 100%;
}

.about-visual2 {
	position: relative;
	color: var(--text);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
	text-align: center;
}

.bridge-svg-wrap {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--navy);
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.bridge-svg-wrap2 {
	width: 100%;
	max-width: 320px;
	padding: 16px;
	background: transparent;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	margin: 0 auto;
}

.bridge-svg-wrap2 img {
	max-width: 100%;
	max-height: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.bridge-svg-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 20px,
		rgba(255, 255, 255, 0.02) 20px,
		rgba(255, 255, 255, 0.02) 21px
	);
}

.bridge-accent {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: var(--red);
}

.about-logo-display {
	width: 65%;
	position: relative;
	z-index: 1;
}

.about-quote {
	margin-top: 36px;
	padding: 24px 28px;
	border-left: 3px solid var(--red);
	background: var(--warm);
}

.about-quote p {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.2rem;
	font-style: italic;
	color: var(--navy);
	line-height: 1.6;
	margin: 0;
}

/* ══ METODY ══ */
#metody {
	background: var(--warm);
}

.methods-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	margin-top: 56px;
}

.method-item {
	text-align: center;
}

.method-icon {
	width: 64px;
	height: 64px;
	border: 2px solid var(--navy);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	margin: 0 auto 20px;
	transition:
		background 0.3s,
		border-color 0.3s;
}

.method-item:hover .method-icon {
	background: var(--red);
	border-color: var(--red);
}

.method-item h3 {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.method-item p {
	font-size: 0.88rem;
	line-height: 1.75;
	color: var(--muted);
}

/* ══ KONTAKT ══ */
#kontakt {
	background: var(--navy);
	position: relative;
	overflow: hidden;
}

#kontakt::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 60px 60px;
}

#kontakt .section {
	position: relative;
	z-index: 1;
}
#kontakt .section-title {
	color: #fff;
}
#kontakt .tag {
	color: var(--red-soft);
}

.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: start;
}

.contact-info p {
	font-size: 0.95rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 32px;
}

.contact-detail {
	margin-bottom: 20px;
}

.contact-detail span {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--red-soft);
	margin-bottom: 4px;
}

.contact-detail a,
.contact-detail p {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	margin: 0;
	transition: color 0.2s;
}

.contact-detail a:hover {
	color: #fff;
}

@keyframes fade-out {
	0% {
		opacity: 1;
	}
	80% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.contact-form-msg {
	margin-top: 16px;
	padding: 12px;
	font-size: 14px;
	text-align: center;
	animation: fade-out 3s forwards;
}
.contact-form-msg.success {
	background: #dcfce7;
	color: #166534;
	display: block;
}
.contact-form-msg.error {
	background: #fee2e2;
	color: #991b1b;
	display: block;
}
.contact-input-validation {
	text-align: right;
	color: #991b1b;
	padding: 5px 0px;
	font-size: 14px;
	min-height: 24px;
	display: block;
}

/* formularz */
.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	font-family: "Jost", sans-serif;
	font-size: 0.92rem;
	padding: 13px 16px;
	border-radius: 1px;
	outline: none;
	transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: rgba(192, 39, 45, 0.6);
}

.form-group select option {
	background: var(--navy);
}
.form-group textarea {
	height: 110px;
	resize: vertical;
}
.form-group.pomidor {
	display: none;
}

.form-submit {
	width: 100%;
	background: var(--red);
	color: #fff;
	border: none;
	font-family: "Jost", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 16px;
	cursor: pointer;
	border-radius: 1px;
	transition: background 0.2s;
	margin-top: 8px;
}

.form-submit:hover {
	background: var(--red-soft);
}

.htmx-indicator {
	display: none;
}
.htmx-request .htmx-indicator {
	display: inline;
}
.htmx-request .htmx-indicator-off {
	display: none;
}
form.htmx-request button[type="submit"] {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
	transform: none !important;
}

/* ══ FOOTER ══ */
footer {
	background: #0b1526;
	padding: 40px 60px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

footer img {
	height: 36px;
	filter: brightness(1) invert(0) opacity(1);
}

.footer-copy {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.25);
	letter-spacing: 0.08em;
}

.footer-links {
	display: flex;
	gap: 28px;
}

.footer-links a {
	font-size: 0.73rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.3);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: rgba(255, 255, 255, 0.7);
}

/* ══ MOBILE ══ */
@media (max-width: 767px) {
	.hamburger {
		display: flex;
	}
	.topbar {
		padding: 22px 24px;
	}
	.top-nav {
		display: none;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: rgba(15, 15, 15, 0.95); /* Adjust background color/opacity */
		backdrop-filter: blur(8px);
		padding: 24px 0;
		gap: 20px;
		z-index: 1000;
	}
	.top-nav .lang-switcher {
		display: flex;
		gap: 16px;
		margin-top: 10px;
	}
	.nav-toggle:checked ~ .top-nav {
		display: flex;
	}
	/* Animated Hamburger to 'X' icon */
	.nav-toggle:checked + .hamburger span:nth-child(1) {
		transform: translateY(9px) rotate(45deg);
	}
	.nav-toggle:checked + .hamburger span:nth-child(2) {
		opacity: 0;
	}
	.nav-toggle:checked + .hamburger span:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg);
	}
	.section {
		padding: 60px 20px;
	}
	.about-layout,
	.contact-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.methods-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
	.stats-inner {
		flex-wrap: wrap;
	}
	.stat {
		flex: 1 1 50%;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}
	footer {
		flex-direction: column;
		text-align: center;
		padding: 32px 20px;
	}
	.hero-center {
		padding: 40px 20px 80px;
	}
	.hero-btns {
		flex-direction: column;
		width: 100%;
		align-items: center;
	}
	.btn-primary,
	.btn-outline {
		width: 100%;
		max-width: 280px;
		text-align: center;
	}
}

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

/* ══ FORMULARZ ══ */

.exam-form-wrapper {
	max-width: 520px;
	margin: 40px auto;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	font-family: Arial, Helvetica, sans-serif;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.exam-form-wrapper h2 {
	margin-top: 0;
	font-size: 22px;
	color: #222;
}
.exam-form-wrapper label {
	display: block;
	margin-top: 16px;
	margin-bottom: 6px;
	font-weight: bold;
	font-size: 14px;
	color: #333;
}
.exam-form-wrapper input[type="text"],
.exam-form-wrapper input[type="email"],
.exam-form-wrapper input[type="tel"],
.exam-form-wrapper select {
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}
.exam-form-wrapper button {
	margin-top: 24px;
	width: 100%;
	padding: 12px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	cursor: pointer;
}
.exam-form-wrapper button:hover {
	background: #1d4ed8;
}
.exam-form-msg {
	margin-top: 16px;
	padding: 12px;
	border-radius: 6px;
	font-size: 14px;
	display: none;
}
.exam-form-msg.success {
	background: #dcfce7;
	color: #166534;
	display: block;
}
.exam-form-msg.error {
	background: #fee2e2;
	color: #991b1b;
	display: block;
}
.exam-form-wrapper altcha-widget {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}
/* pole "honeypot" - niewidoczne dla ludzi, chroni przed prostymi botami */
.exam-form-wrapper .hp-field {
	position: absolute;
	left: -9999px;
}
