:root {
	--color-bg: #1a233f;
	--color-bg-light: #f2ebdc;
	--color-footer: #141b34;
	--color-surface: #202539;
	--color-surface-2: #1e2437;
	--color-input: #28304a;
	--color-accent: #d8bd82;
	--color-accent-light: #e1cd99;
	--color-accent-dark: hsl(41, 48%, 46%);
	--color-accent-soft: #f0dca688;
	--color-text: #2b2c34;
	--color-text-muted: #5a6072;
	--color-text-subtle: #848aa1;
	--color-border: rgba(216, 189, 130, 0.2);
	--color-white: #ffffff;
	--color-required-mark: #d9534f;
	--header-height: 88px;
	--footer-height: 88px;
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family:
		"Manrope",
		system-ui,
		-apple-system,
		"Segoe UI",
		sans-serif;
	background-color: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-weight: 500;
}

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

section {
	scroll-margin-top: var(--header-height);
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
	border-radius: 3px;
}

.page-section :focus-visible {
	outline-color: var(--color-accent-dark);
}

.page-section {
	min-height: 100vh;
	min-height: 100dvh;
}

.hero-section {
	position: relative;
	z-index: 0;
	background-color: var(--color-bg);
	min-height: calc(100vh - var(--header-height));
	min-height: calc(100dvh - var(--header-height));
	display: flex;
	flex-direction: column;
}

.hero-sun {
	position: absolute;
	top: 0;
	right: 4%; /* mniej więcej pod przyciskiem */
	transform: translateY(-60%); /* część światła "wychodzi" spod nagłówka */
	width: 250px;
	height: 250px;
	background: radial-gradient(
		ellipse at center,
		rgb(from var(--color-accent) r g b / 0.4),
		transparent 65%
	);
	filter: blur(50px);
	z-index: 0; /* nad tłem hero, pod treścią */
	pointer-events: none;
}

.hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;

	background-image:
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 50px 50px;

	-webkit-mask-image: radial-gradient(
		ellipse at center,
		black 30%,
		transparent 75%
	);
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.header-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border-bottom: 1px solid var(--color-accent-light);
	box-shadow: 0 8px 24px rgb(from var(--color-accent) r g b / 0.4);
	padding: 1.3rem;
	position: sticky;
	top: 0;
	z-index: 10;
	background-color: rgb(from var(--color-bg) r g b / 0.95);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.logo {
	width: 10rem;
	height: 2.5rem;
}

.header-left {
	display: flex;
	align-items: center;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 3rem;
	padding: 0 3rem 0 0;
}

.header-right a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

.header-section a {
	color: var(--color-white);
	text-decoration: none;
}

.header-section a.reservation-button {
	color: var(--color-bg);
	font-weight: 600;
}

.hamburger-icon {
	display: none;
}

.reservation-button {
	background-color: var(--color-accent);
	position: relative;
	padding: 0.5rem 1.5rem 0.5rem 1.5rem;
	display: inline-block;
	border-radius: 20px;
	box-shadow: 0 8px 24px 7px rgb(from var(--color-accent) r g b / 0.45);
	transition: box-shadow 0.3s;
}

.reservation-button:hover {
	box-shadow: 0 8px 32px rgb(from var(--color-accent) r g b / 0.6);
}

.main-page {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30rem;
}

.main-left-section {
	padding: 0 0 0 2rem;
}

.main-right-section {
	padding: 0 5rem 0 0;
}

.photo {
	width: 300px;
	height: 400px;
	border: 5px solid var(--color-white);
	border-radius: 20%;
}

.photo-frame {
	position: relative;
	z-index: 0;
	display: inline-block;
}

@keyframes ringSpin {
	to {
		transform: rotate(360deg);
	}
}

.photo-frame::before {
	content: "";
	position: absolute;
	inset: -40px;
	border-radius: 50%;
	z-index: -1;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		var(--color-accent-soft) 40deg,
		transparent 90deg,
		var(--color-text-subtle) 150deg,
		transparent 200deg,
		var(--color-accent-soft) 260deg,
		transparent 310deg,
		var(--color-accent) 350deg,
		transparent 360deg
	);
	filter: blur(14px);
	opacity: 0.85;
	animation: ringSpin 14s linear infinite;
	pointer-events: none;
}

.photo-frame::after {
	content: "";
	position: absolute;
	inset: -22px;
	border-radius: 50%;
	z-index: -1;
	background: conic-gradient(
		from 180deg,
		transparent,
		var(--color-accent-soft),
		transparent 120deg,
		var(--color-accent-dark),
		transparent 300deg
	);
	filter: blur(8px);
	opacity: 0.7;
	animation: ringSpin 9s linear infinite reverse;
	pointer-events: none;
}

@keyframes shine {
	0% {
		transform: translateX(-120%) rotate(8deg);
	}
	60%,
	100% {
		transform: translateX(220%) rotate(8deg);
	}
}

.photo-shine {
	position: relative;
	overflow: hidden;
	border-radius: 20%;
	display: inline-block;
	line-height: 0;
}

.photo-shine::after {
	content: "";
	position: absolute;
	top: -40%;
	left: 0;
	width: 55%;
	height: 180%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.4),
		transparent
	);
	transform: translateX(-120%) rotate(8deg);
	animation: shine 6.5s ease-in-out infinite;
	pointer-events: none;
}

.mini-title {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--color-accent);
	text-transform: uppercase;
}

.mini-title::before {
	content: "";
	width: 2em;
	height: 1px;
	background-color: var(--color-accent);
}

.motto {
	color: var(--color-white);
	max-width: 10ch;
	font-size: 3.5rem;
	margin: 0;
	font-weight: 500;
}

.motto-accent {
	color: var(--color-accent-light);
	font-style: italic;
}

.description {
	color: var(--color-text-subtle);
	max-width: 45ch;
	margin: 1.5rem 0 2rem 0;
}

.main-buttons-section {
	display: flex;
	gap: 1rem;
}

.main-buttons-section a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 510;
}

.contact-button {
	background-color: var(--color-accent);
	color: var(--color-bg);
	box-shadow: 0 8px 24px rgb(from var(--color-accent) r g b / 0.4);
	transition: box-shadow 0.3s;
}

.contact-button:hover {
	box-shadow: 0 8px 32px rgb(from var(--color-accent) r g b / 0.6);
}

.gallery-button {
	background-color: var(--color-surface);
	color: var(--color-white);
	box-shadow: 0 8px 24px rgba(80, 93, 143, 0.4);
	transition: box-shadow 0.3s;
	border: 1px solid gray;
}

.gallery-button:hover {
	box-shadow: 0 8px 32px rgba(80, 93, 143, 0.6);
}

@keyframes drift {
	0% {
		transform: translateY(0);
		opacity: 0;
	}
	12% {
		opacity: 0.9;
	}
	88% {
		opacity: 0.9;
	}
	100% {
		transform: translateY(-140px);
		opacity: 0;
	}
}

.dot {
	position: absolute;
	bottom: 40px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-accent-light);
	box-shadow: 0 0 10px var(--color-accent-light);
	pointer-events: none;
	animation: drift 8s ease-in-out infinite;
}

.dot:nth-child(1) {
	left: 16%;
	bottom: 40px;
	animation-duration: 8s;
	animation-delay: 0s;
}

.dot:nth-child(2) {
	left: 32%;
	bottom: 30px;
	animation-duration: 10s;
	animation-delay: 0.9s;
	width: 4px;
	height: 4px;
}
.dot:nth-child(3) {
	left: 48%;
	bottom: 44px;
	animation-duration: 9s;
	animation-delay: 1.8s;
	width: 5px;
	height: 5px;
}
.dot:nth-child(4) {
	left: 64%;
	bottom: 24px;
	animation-duration: 11s;
	animation-delay: 0.5s;
	width: 4px;
	height: 4px;
}
.dot:nth-child(5) {
	left: 80%;
	bottom: 54px;
	animation-duration: 9.5s;
	animation-delay: 2.4s;
}
.dot:nth-child(6) {
	left: 96%;
	bottom: 60px;
	animation-duration: 7s;
	animation-delay: 1.2s;
	width: 5px;
	height: 5px;
}

.marquee {
	overflow: hidden;
	background-color: var(--color-white);
	padding: 0.75rem 0;
}

.marquee-track {
	display: flex;
	width: max-content;
	animation: marquee 15s linear infinite;
}

.marquee-item {
	white-space: nowrap;
	color: var(--color-accent-dark);
	font-style: italic;
}

.star {
	margin: 0 1rem 0 1rem;
}

@keyframes marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

#about-me {
	background-color: var(--color-bg-light);
	display: flex;
	align-items: center;
	gap: 3rem;
	padding: 4rem;
}

.about-me-title {
	display: inline-block;
	font-size: 1rem;
	letter-spacing: 0.15ch;
	font-weight: bold;
	text-transform: uppercase;
	color: var(--color-accent-dark);
}

.about-me-title::after {
	content: "";
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-accent-dark);
	margin-top: 0.5rem;
}

.about-me-left-section {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.about-me-left-section img {
	margin: 0 0 0 3rem;
	width: 100%;
	max-width: 800px;
	height: 650px;
	object-fit: cover;
	object-position: center 30%;
	border: 4px solid var(--color-white);
	border-radius: 14px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
	margin: 0;
}

.about-me-right-section {
	flex: 1;
}

.about-me-motto {
	font-size: 2.75rem;
	line-height: 1.15;
	max-width: 25ch;
	color: var(--color-footer);
}

.accent {
	color: var(--color-accent-dark);
	font-style: italic;
}

.about-me-description {
	color: var(--color-text-muted);
	line-height: 1.7;
	max-width: 55ch;
}

.services {
	display: flex;
	align-items: stretch;
	gap: 1rem;
}

.service {
	background-color: var(--color-white);
	padding: 1rem;
	margin: 2rem 0 0 0;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.service:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-title {
	color: var(--color-text);
	margin: 0 0 0.5rem 0;
	font-size: 1.25rem;
	font-weight: bold;
}

.service-description {
	font-size: 0.875rem;
	max-width: 16ch;
	color: var(--color-text-muted);
}

#gallery {
	background-color: var(--color-bg-light);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 4rem 2rem;
}

.gallery-title {
	display: inline-block;
	font-size: 1rem;
	letter-spacing: 0.15ch;
	font-weight: bold;
	text-transform: uppercase;
	color: var(--color-accent-dark);
	margin: 0;
}

.gallery-title::after {
	content: "";
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-accent-dark);
	margin-top: 0.5rem;
}

#gallery h2 {
	font-size: 3rem;
	margin: 1rem 0 3rem 0;
	color: var(--color-bg);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px;
	gap: 1rem;
	width: 100%;
	max-width: min(90%, 120rem);
}

.gallery-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 4px solid var(--color-white);
	border-radius: 14px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	object-position: center 30%;
}

.gallery-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem;
	text-align: center;
	background-color: var(--color-surface);
	color: var(--color-text-subtle);
	border-radius: 14px;
}

.gallery-placeholder .placeholder-icon {
	width: 3rem;
	height: 3rem;
}

/*
.gallery-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
*/

.big {
	grid-column: 1 / span 2;
	grid-row: 1 / span 2;
}

.wide {
	grid-column: 3 / span 2;
	grid-row: 2;
}

.gallery-item img,
.gallery-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
}

#contact {
	background-color: var(--color-bg);
	display: flex;
	align-items: flex-start;
	padding: 4rem 2rem 4rem 8rem;
	min-height: calc(100vh - var(--header-height) - var(--footer-height));
	min-height: calc(100dvh - var(--header-height) - var(--footer-height));
}

.contact-left-section {
	flex: 1;
}

.contact-right-section {
	margin-top: 4rem;
	flex: 1;
}

.contact-title {
	display: inline-block;
	font-size: 1rem;
	letter-spacing: 0.15ch;
	font-weight: bold;
	text-transform: uppercase;
	color: var(--color-accent-dark);
}

.contact-title::after {
	content: "";
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-accent-dark);
	margin-top: 0.5rem;
}

#contact h2 {
	color: var(--color-white);
	font-size: 3rem;
	max-width: 18ch;
	font-weight: 400;
}

.contact-card {
	display: flex;
	align-items: center;
	border-radius: 14px;
	border: 1px solid var(--color-border);
	background-color: var(--color-surface);
	text-decoration: none;
	gap: 1rem;
	padding: 1rem;
	max-width: 32rem;
	margin-top: 1rem;
	transition:
		transform 0.3s ease,
		border-color 0.3s ease,
		background-color 0.3s ease;
}

.contact-card:hover {
	transform: translateY(-3px);
	border-color: var(--color-accent);
	background-color: var(--color-bg);
}

.contact-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 14px;
	background-color: var(--color-accent);
}

.contact-card-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.contact-card-label {
	color: var(--color-text-muted);
	font-size: 0.85rem;
}

.contact-card-value {
	color: var(--color-white);
	font-weight: bold;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background-color: var(--color-input);
	border: 1px solid var(--color-border);
	border-radius: 14px;
	padding: 2rem;
	max-width: 48rem;
}

.form-row {
	display: flex;
	gap: 1rem;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.contact-form {
	resize: vertical;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 14px;
	border: 1px solid var(--color-border);
	background-color: var(--color-surface-2);
	color: var(--color-white);
	font-family: inherit;
	resize: none;
}

.contact-form ::placeholder {
	color: var(--color-text-subtle);
	opacity: 1;
}

.contact-form label {
	font-size: 1rem;
	color: var(--color-white);
}

.contact-form button {
	padding: 1rem;
	border: none;
	border-radius: 14px;
	background-color: var(--color-accent);
	color: var(--color-bg);
	font-family: inherit;
	font-weight: bold;
	cursor: pointer;
}

.form-field:has(input:required) label::after,
.form-field:has(textarea:required) label::after {
	content: " *";
	color: var(--color-required-mark);
}

.required-mark {
	color: var(--color-required-mark);
}

.form-note {
	font-size: 0.85rem;
	color: var(--color-text-subtle);
}

.form-success-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
}

.form-success-overlay[hidden] {
	display: none;
}

.form-success-box {
	background-color: var(--color-bg);
	color: var(--color-white);
	padding: 2rem 3rem;
	border-radius: 14px;
	border: 1px solid var(--color-accent);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.site-footer {
	background-color: var(--color-footer);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2rem;
	border-top: 1px solid var(--color-accent-light);
	box-shadow: 0 8px 24px rgb(from var(--color-accent) r g b / 0.4);
}

.site-footer-logo {
	width: 10rem;
	height: 2.5rem;
}

.site-footer-copy {
	margin: 0;
	color: var(--color-accent-light);
	font-size: 0.75rem;
	justify-content: flex-end;
}

@media (prefers-reduced-motion: reduce) {
	.marquee-track,
	.photo-frame::before,
	.photo-frame::after,
	.photo-shine::after,
	.dot {
		animation: none !important;
	}
}

@media (max-width: 768px) {
	.hero-section {
		min-height: auto;
	}

	.main-page {
		flex-direction: column;
		gap: 2rem;
	}

	.main-left-section {
		text-align: center;
		padding: 0 1rem 0 1rem;
	}

	.main-right-section {
		padding: 0 1rem 1rem 1rem;
		justify-content: center;
	}

	.mini-title {
		justify-content: center;
	}

	.main-buttons-section {
		justify-content: center;
	}

	.motto {
		max-width: 60ch;
		font-size: 1.8rem;
		margin-inline: auto;
	}

	.description {
		font-size: 1rem;
		margin-inline: auto;
	}

	.photo {
		max-height: 43.5vh;
		height: auto;
		width: auto;
	}

	.hamburger-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		background: none;
		border: 1px solid var(--color-accent);
		border-radius: 14px;
		cursor: pointer;
	}

	.hamburger-icon .icon-close {
		display: none;
	}

	.hamburger-icon[aria-expanded="true"] .icon-menu {
		display: none;
	}

	.hamburger-icon[aria-expanded="true"] .icon-close {
		display: inline;
	}

	.header-section {
		padding: 1rem;
		z-index: 10;
	}

	.header-right {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: center;
		gap: 1rem;
		padding: 1rem;
		background-color: var(--color-bg);
		border-top: 1px solid var(--color-accent-light);
		border-bottom: 1px solid var(--color-accent-light);
	}

	.header-right.open {
		display: flex;
	}

	#about-me {
		min-height: auto;
		flex-direction: column;
		gap: 2rem;
		padding: 2rem;
	}

	.about-me-left-section {
		justify-content: center;
	}

	.about-me-right-section {
		justify-content: center;
	}

	.services {
		flex-direction: column;
		margin-top: 0;
	}

	.service {
		padding: 0.5rem 0.75rem 0 0.75rem;
		margin: 0;
	}

	.service-description {
		max-width: none;
		font-size: 0.75rem;
		margin: 0;
		margin-bottom: 0.5rem;
	}

	.about-me-title {
		margin: 0;
		font-size: 0.8rem;
	}

	.about-me-motto {
		font-size: 1.8rem;
		margin: 1rem 0 1rem 0;
	}

	.about-me-left-section img {
		height: 20vh;
		width: 40vh;
	}

	.about-me-description {
		font-size: 0.9rem;
		line-height: 1.5;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.big,
	.wide {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	#gallery h2 {
		font-size: 2rem;
		text-align: center;
		margin: 1rem;
	}

	#gallery.page-section {
		padding: 1rem 2rem 1rem 2rem;
	}

	#contact {
		flex-direction: column;
	}

	#contact-heading {
		margin: 0;
	}

	#contact.page-section {
		padding: 2rem 2rem 2rem 2rem;
	}

	.contact-right-section {
		margin-top: 2rem;
	}

	.contact-cards {
		display: flex;
		flex-wrap: wrap;
		gap: 1rem;
	}

	.contact-card {
		margin: 0;
		flex: 1;
	}
}
