:root {
    --primary: #1e2229;
    --primary-dark: #0d0f13;
    --accent: #f0b429;
    --background: #0a0b0e;
    --surface: #14161c;
    --text: #eceef2;
    --text-muted: #8b919c;
    --font-heading: 'Syne', 'Segoe UI', sans-serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    --radius: 4px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--background);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: color-mix(in srgb, var(--accent) 35%, transparent);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav a:hover {
    color: var(--primary);
}

/* Charcoal: --primary jest ciemnoszary — zwykłe linki były niewidoczne na tle */
.theme-charcoal a:not(.btn) {
    color: #facc15;
}

.theme-charcoal a:not(.btn):hover {
    color: #fef08a;
}

.theme-charcoal .nav a {
    color: var(--text-muted);
}

.theme-charcoal .nav a:hover {
    color: #facc15;
}

.theme-charcoal .contact-list a.contact-link {
    color: #facc15;
}

.theme-charcoal .contact-list a.contact-link:hover {
    color: #fef08a;
}

.theme-charcoal .brand {
    color: var(--text);
}

.theme-charcoal .brand:hover {
    color: #facc15;
}

/* Hero */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 4rem 0;
}

.hero-content {
    width: 100%;
}

.hero h1 {
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.02em;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.hero-lede {
    max-width: 38rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 2rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero-center .hero-lede {
    margin-left: auto;
    margin-right: auto;
}

.hero-right .hero-lede {
    margin-left: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-left .hero-content { text-align: left; }
.hero-center .hero-content { text-align: center; }
.hero-right .hero-content { text-align: right; }

.hero-center .hero-cta { justify-content: center; }
.hero-right .hero-cta { justify-content: flex-end; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* Sections */
.section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-alt {
    background: var(--surface);
}

.section .container > h2 {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.section .container > h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 3px;
    border-radius: 2px;
    /* Odcień głównego koloru „rozmyty” w tło strony — czytelna kreska w tej samej tonacji co --background */
    background: var(--primary);
    background: color-mix(in srgb, var(--primary) 58%, var(--background));
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    background: color-mix(in srgb, var(--text) 6%, var(--surface));
    box-shadow: 0 4px 24px color-mix(in srgb, var(--text) 10%, transparent);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.04);
}

/* Map */
.map-embed {
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Contact */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.contact-list li {
    background: var(--background);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.contact-list a.contact-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contact-list a.contact-link:hover {
    color: var(--primary-dark);
}

.contact-hint {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-top: 3rem;
}

.site-footer a {
    color: #fff;
}

.site-footer .footer-admin {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    opacity: 0.92;
}

@media (max-width: 640px) {
    .nav {
        display: none;
    }
    .hero {
        min-height: 60vh;
    }
}
