/* Fonty ładowane przez <link> w <head> każdej strony (szybciej niż @import). */

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

:root {
  --navy: #0B1F3A;
  --navy-mid: #122B50;
  --navy-light: #1A3A6B;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #FBF4E4;
  --cream: #FAF8F3;
  --white: #FFFFFF;
  --text-dark: #0B1F3A;
  --text-mid: #3A4F6A;
  --text-muted: #6E83A0;
  --border: rgba(11,31,58,0.1);
  --border-gold: rgba(201,168,76,0.25);
  --shadow-sm: 0 2px 12px rgba(11,31,58,0.07);
  --shadow-md: 0 8px 32px rgba(11,31,58,0.1);
  --shadow-lg: 0 20px 60px rgba(11,31,58,0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(11,31,58,0.97);
  backdrop-filter: blur(14px);
  height: 70px;
  display: flex; align-items: center;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(201,168,76,0.18);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.25); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

.nav-logo span { color: var(--gold); }

.nav-logo svg { width: 28px; height: 32px; }

.nav-center {
  display: flex; gap: 0.3rem;
  margin: 0 auto;
  list-style: none;
}

.nav-center a {
  color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 0.88rem; font-weight: 400;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}

.nav-center a:hover, .nav-center a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-center a.active { color: var(--gold-light); }

.nav-cta-btn {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-cta-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── PAGE HEADER (shared across subpages) ── */
.page-header {
  background: var(--navy);
  padding: 130px 5vw 70px;
  position: relative; overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 50%, rgba(201,168,76,0.07) 0%, transparent 55%),
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
}

.page-header-inner { position: relative; z-index: 1; max-width: 700px; }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 1.2rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold-light); }
.breadcrumb-sep { opacity: 0.4; }

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--white);
  line-height: 1.2; margin-bottom: 0.8rem;
}

.page-header h1 em { font-style: normal; color: var(--gold); }

.page-header p {
  font-size: 1.05rem; font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 520px; line-height: 1.7;
}

/* ── SECTION UTILITIES ── */
.section-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.25; margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 1rem; font-weight: 300;
  color: var(--text-mid); max-width: 540px; line-height: 1.7;
}

.section-title.white { color: var(--white); }
.section-subtitle.white { color: rgba(255,255,255,0.6); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  padding: 0.8rem 1.8rem; border-radius: 50px;
  font-size: 0.92rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.35);
}

.btn-outline-navy {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  padding: 0.8rem 1.8rem; border-radius: 50px;
  font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
  border: 1.5px solid rgba(11,31,58,0.25);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline-navy:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 0.8rem 1.8rem; border-radius: 50px;
  font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline-white:hover {
  border-color: rgba(201,168,76,0.6);
  background: rgba(201,168,76,0.07);
}

/* ── FOOTER ── */
footer {
  background: var(--navy-mid);
  padding: 4rem 5vw 2rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px; margin: 0 auto 3rem;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.8rem;
}

.footer-logo-text span { color: var(--gold); }

.footer-brand p {
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
  line-height: 1.7; max-width: 260px; margin-bottom: 1.2rem;
}

.footer-partner-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
}

.footer-partner-badge strong { color: var(--gold-light); font-weight: 600; }

.footer-col h5 {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

.footer-col ul li a {
  font-size: 0.85rem; color: rgba(255,255,255,0.42);
  text-decoration: none; transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.8rem;
}

.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); }

/* ── ANIMATIONS ── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim { opacity: 0; animation: fade-in-up 0.6s ease forwards; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.22s; }
.d3 { animation-delay: 0.34s; }
.d4 { animation-delay: 0.46s; }

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; margin-left: auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.22); border-radius: 10px;
  cursor: pointer; padding: 0 10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--gold-light); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER EXTRAS ── */
.footer-muted { font-size: 0.85rem; color: rgba(255,255,255,0.42); }
.footer-legal {
  max-width: 1200px; margin: 0 auto 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.4rem;
}
.footer-legal p { font-size: 0.74rem; color: rgba(255,255,255,0.3); line-height: 1.65; max-width: 900px; }
.footer-bottom p a { color: inherit; text-decoration: none; }
.footer-bottom p a:hover { color: var(--gold-light); }

/* ── ACCESSIBILITY & POLISH ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
::selection { background: rgba(201,168,76,0.28); color: var(--navy); }
[id] { scroll-margin-top: 90px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--gold); color: var(--navy);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600; font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .anim { opacity: 1 !important; transform: none !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .footer-top { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-cta-btn { display: none; }
  .nav-center {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(11,31,58,0.99);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201,168,76,0.18);
    padding: 0.5rem 5vw 1rem;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-center.open { max-height: 80vh; }
  .nav-center a { display: block; padding: 0.85rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
}
