/* Afryka.pl – domena na sprzedaż */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

.ad {
	--ink: #fff7ea;
	--muted: rgba(255, 240, 220, .78);
	--gold: #ffc65c;
	--deep: #1e0d14;
	--display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	color: var(--ink);
	font-family: var(--sans);
	background: linear-gradient(180deg,
		#170c2e 0%, #3a1748 24%, #8a2c44 46%, #d4522f 62%, #f08a33 74%, #fbc35f 84%, #fbc35f 100%);
	overflow-x: hidden;
}

/* ---------- scena ---------- */
.ad-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ad-scene svg { width: 100%; height: 100%; display: block; }

.ad-stars circle { animation: ad-twinkle 4s ease-in-out infinite; }
.ad-stars circle:nth-child(3n)   { animation-delay: -1.3s; }
.ad-stars circle:nth-child(3n+1) { animation-delay: -2.6s; }

.ad-sun { animation: ad-sink 30s ease-in-out infinite alternate; }
.ad-sun__glow { transform-box: fill-box; transform-origin: center; animation: ad-pulse 6s ease-in-out infinite; }

.ad-birds { animation: ad-fly 48s linear infinite; }
.ad-bird { transform-box: fill-box; transform-origin: center; animation: ad-flap .9s ease-in-out infinite; }
.ad-bird--2 { animation-delay: -.3s; }
.ad-bird--3 { animation-delay: -.6s; }

.ad-tree { transform-box: fill-box; transform-origin: 50% 100%; animation: ad-sway 9s ease-in-out infinite; }

.ad-walk { animation: ad-walk 80s linear infinite; }
.ad-giraffe { animation: ad-bob 1.4s ease-in-out infinite; }
.ad-leg { transform-box: fill-box; transform-origin: 50% 0; animation: ad-step 1.4s ease-in-out infinite; }
.ad-leg--b { animation-delay: -.7s; }

@keyframes ad-twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }
@keyframes ad-sink    { from { transform: translateY(-14px); } to { transform: translateY(18px); } }
@keyframes ad-pulse   { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .8; } }
@keyframes ad-fly     { from { transform: translate(-200px, 360px); } to { transform: translate(1800px, 250px); } }
@keyframes ad-flap    { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-.5); } }
@keyframes ad-sway    { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(-.8deg); } }
@keyframes ad-walk    { from { transform: translateX(-160px); } to { transform: translateX(1820px); } }
@keyframes ad-bob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes ad-step    { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(-9deg); } }

/* ---------- treść ---------- */
.ad-main {
	position: relative;
	z-index: 1;
	width: min(640px, 100% - 32px);
	margin: clamp(48px, 13vh, 140px) 0 0 clamp(16px, 8vw, 140px);
	flex: 1;
}

.ad-eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 198, 92, .55);
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--gold);
	background: rgba(23, 12, 46, .35);
	backdrop-filter: blur(4px);
}

.ad-title {
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(3.6rem, 13vw, 8.5rem);
	line-height: .92;
	letter-spacing: -.02em;
	text-shadow: 0 4px 40px rgba(23, 12, 46, .45);
}
.ad-title span { color: var(--gold); }

.ad-lead {
	max-width: 34em;
	margin: 22px 0 0;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.6;
	color: var(--muted);
}

.ad-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	font-size: .9rem;
	color: var(--muted);
}
.ad-facts strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--ink); }

.ad-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-top: 34px;
}

.ad-btn {
	display: inline-block;
	padding: 15px 30px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--deep);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(240, 138, 51, .45);
	transition: transform .2s, box-shadow .2s, background .2s;
}
.ad-btn:hover { transform: translateY(-2px); background: #ffd685; box-shadow: 0 14px 36px rgba(240, 138, 51, .6); }
.ad-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.ad-mail { margin: 0; font-size: .95rem; color: var(--muted); }
.ad-mail a { color: var(--ink); text-underline-offset: 3px; }

.ad-price { margin: 16px 0 0; font-size: .9rem; font-style: italic; color: var(--muted); }

.ad-foot {
	position: relative;
	z-index: 1;
	padding: 18px 16px;
	text-align: center;
	font-size: .8rem;
	color: rgba(255, 240, 220, .55);
}

@media (max-width: 700px) {
	.ad-main { margin-left: 16px; margin-top: 40px; }
}

/* Ekrany pionowe: przesuń scenę tak, by słońce i akacja były widoczne */
@media (max-aspect-ratio: 1/1) {
	.ad-scene svg {
		position: absolute;
		bottom: 0;
		width: 177.78vh;
		left: calc(50vw - 122vh);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ad *, .ad *::before, .ad *::after { animation: none !important; transition: none !important; }
	.ad-walk { transform: translateX(560px); }
}
