/*! Projekt W — Serwis Wołyńska
 *  Author: Karol Gunia
 *  Stack: Bootstrap 5.3 + custom CSS
 */

/* =====================================================================
   0. Fonts (self-hosted)
   ===================================================================== */

@font-face {
    font-family: 'Inter';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/SpaceGrotesk-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/SpaceGrotesk-SemiBold-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF, U+2122;
}
@font-face {
    font-family: 'Space Grotesk';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/SpaceGrotesk-SemiBold-latin.woff2') format('woff2');
    unicode-range: U+0020-007F, U+00A0-00FF, U+2000-206F;
}
@font-face {
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/SpaceGrotesk-Bold.woff2') format('woff2');
}

/* =====================================================================
   1. Tokens
   ===================================================================== */

:root {
    --w-bg:        #0b0b12;
    --w-bg-2:      #11111c;
    --w-surface:   #161624;
    --w-line:      rgba(167, 139, 250, 0.14);
    --w-line-soft: rgba(255, 255, 255, 0.06);

    --w-fg:        #f4f4f8;
    --w-fg-muted:  #a4a4b8;
    --w-fg-dim:    #8d8da4;

    --w-accent:    #7c3aed;
    --w-accent-2:  #a78bfa;
    --w-accent-3:  #c4b5fd;

    --w-radius:    14px;
    --w-radius-lg: 20px;

    --w-shadow:    0 20px 60px -20px rgba(124, 58, 237, 0.35);
    --w-shadow-sm: 0 8px 24px -8px rgba(0, 0, 0, 0.6);

    --w-font:      'Inter', system-ui, -apple-system, sans-serif;
    --w-font-h:    'Space Grotesk', 'Inter', system-ui, sans-serif;

    --w-nav-h:     72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--w-nav-h);
}

body {
    font-family: var(--w-font);
    background: var(--w-bg);
    color: var(--w-fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

::selection { background: var(--w-accent); color: #fff; }

a { color: var(--w-accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--w-accent-3); }

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 999;
    background: var(--w-accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
}

/* =====================================================================
   2. Typography
   ===================================================================== */

h1, h2, h3, h4 {
    font-family: var(--w-font-h);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 .5em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; color: var(--w-fg-muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--w-font);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--w-accent-2);
    padding: 6px 14px;
    border: 1px solid var(--w-line);
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--w-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--w-accent);
}

.text-gradient {
    background: linear-gradient(120deg, var(--w-accent-3) 0%, var(--w-accent-2) 50%, var(--w-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead-muted {
    font-size: 1.05rem;
    color: var(--w-fg-muted);
}

/* =====================================================================
   3. Buttons
   ===================================================================== */

.btn-w, .btn-w-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-family: var(--w-font);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.btn-w {
    background: linear-gradient(135deg, var(--w-accent-2), var(--w-accent));
    color: #fff;
    box-shadow: var(--w-shadow);
}

.btn-w:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 22px 70px -20px rgba(124, 58, 237, 0.55);
}

.btn-w-outline {
    background: transparent;
    color: var(--w-fg);
    border-color: var(--w-line);
}

.btn-w-outline:hover {
    color: var(--w-fg);
    border-color: var(--w-accent-2);
    background: rgba(124, 58, 237, 0.06);
}

.btn-w--sm {
    padding: 9px 18px;
    font-size: 0.85rem;
    gap: 8px;
}

/* =====================================================================
   4. Navigation
   ===================================================================== */

.nav-w {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--w-nav-h);
    background: rgba(11, 11, 18, 0.82);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.nav-w.is-scrolled {
    border-bottom-color: var(--w-line);
    background: rgba(11, 11, 18, 0.96);
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav-w,
    .nav-w.is-scrolled {
        background: var(--w-bg);
    }
}

.nav-w-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 991.98px) {
    .nav-w > .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--w-fg);
    font-family: var(--w-font);
}

.brand:hover { color: var(--w-fg); }

.brand-mark {
    width: 38px;
    height: 38px;
    color: var(--w-accent-2);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-family: var(--w-font-h);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.16em;
}

.brand-text small {
    font-size: 0.7rem;
    color: var(--w-fg-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    color: var(--w-fg-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color .2s ease;
    position: relative;
}

.nav-menu a:not(.btn-w):hover,
.nav-menu a.is-active:not(.btn-w) {
    color: var(--w-fg);
}

.nav-menu a.btn-w,
.nav-menu a.btn-w:hover {
    color: #fff;
}

.nav-menu a:not(.btn-w).is-active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--w-accent);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--w-line);
    border-radius: 10px;
    padding: 10px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--w-fg);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .nav-toggle { display: inline-flex; }

    .nav-menu {
        position: absolute;
        top: var(--w-nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: var(--w-bg-2);
        border-bottom: 1px solid transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease, padding .3s ease, border-color .3s ease;
    }

    .nav-menu.is-open {
        max-height: 480px;
        padding: 16px;
        border-bottom-color: var(--w-line);
    }

    .nav-menu li { width: 100%; }

    .nav-menu a:not(.btn-w) {
        display: block;
        padding: 14px 8px;
        border-bottom: 1px solid var(--w-line-soft);
    }

    .nav-menu a.btn-w {
        margin-top: 12px;
        justify-content: center;
    }
}

/* =====================================================================
   5. Hero
   ===================================================================== */

.hero {
    position: relative;
    padding: calc(var(--w-nav-h) + 80px) 0 100px;
    overflow: hidden;
    isolation: isolate;
}

@media (max-width: 767.98px) {
    .hero {
        padding: calc(var(--w-nav-h) + 32px) 0 64px;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hex-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--w-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--w-line-soft) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 70%);
    opacity: 0.6;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
}

.glow-1 {
    width: 520px;
    height: 520px;
    top: -100px;
    right: -120px;
    background: radial-gradient(circle, var(--w-accent) 0%, transparent 70%);
}

.glow-2 {
    width: 420px;
    height: 420px;
    bottom: -120px;
    left: -100px;
    background: radial-gradient(circle, var(--w-accent-2) 0%, transparent 70%);
    opacity: 0.35;
}

.hero h1 {
    margin-top: 24px;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--w-fg-muted);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

@media (max-width: 575.98px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn-w,
    .hero-cta .btn-w-outline {
        justify-content: center;
        width: 100%;
    }
}

.hero-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--w-fg-dim);
    font-size: 0.9rem;
}

.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta i {
    color: var(--w-accent-2);
}

.hero-mark {
    position: relative;
    aspect-ratio: 1;
    max-width: 480px;
    margin-inline: auto;
    animation: float 8s ease-in-out infinite;
}

.hero-mark svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(124, 58, 237, 0.45));
}

.hero-mark .hex-outer {
    animation: rotate-slow 60s linear infinite;
    transform-origin: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-mark,
    .hero-mark .hex-outer { animation: none; }
}

/* =====================================================================
   6. Sections
   ===================================================================== */

.section {
    padding: 110px 0;
    position: relative;
}

@media (max-width: 991.98px) {
    .section { padding: 80px 0; }
}

@media (max-width: 575.98px) {
    .section { padding: 56px 0; }
}

.section + .section {
    border-top: 1px solid var(--w-line-soft);
}

.section-manifesto {
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
        var(--w-bg);
    text-align: center;
}

.manifesto-eyebrow {
    margin-bottom: 28px;
}

.manifesto-headline {
    font-family: var(--w-font-h);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 auto 32px;
    max-width: 14ch;
}

.manifesto-headline span {
    display: block;
}

.manifesto-lead {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--w-fg-muted);
}

.manifesto-card {
    background: var(--w-surface);
    border: 1px solid var(--w-line-soft);
    border-radius: var(--w-radius-lg);
    padding: 32px;
    height: 100%;
    text-align: left;
    transition: border-color .25s ease, transform .25s ease;
}

.manifesto-card:hover {
    border-color: var(--w-line);
    transform: translateY(-4px);
}

.manifesto-card i {
    font-size: 1.6rem;
    color: var(--w-accent-2);
    margin-bottom: 18px;
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: rgba(124, 58, 237, 0.12);
    border-radius: 12px;
}

.manifesto-card h3 {
    color: var(--w-fg);
    margin-bottom: 10px;
}

.manifesto-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* =====================================================================
   7. Services
   ===================================================================== */

.section-uslugi {
    background: var(--w-bg);
}

.card-w {
    background: var(--w-surface);
    border: 1px solid var(--w-line-soft);
    border-radius: var(--w-radius-lg);
    padding: 32px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease;
}

.card-w::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--w-accent-2), transparent);
    opacity: 0;
    transition: opacity .25s ease;
}

.card-w:hover {
    border-color: var(--w-line);
    transform: translateY(-4px);
}

.card-w:hover::before { opacity: 1; }

.card-w-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(124, 58, 237, 0.08));
    border: 1px solid var(--w-line);
    margin-bottom: 22px;
    font-size: 1.5rem;
    color: var(--w-accent-3);
}

.card-w h3 {
    color: var(--w-fg);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.card-w-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--w-accent-3);
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}
.card-w-link:hover,
.card-w-link:focus-visible { color: var(--w-fg); gap: 10px; }
.card-w-link:focus-visible {
    outline: 2px solid var(--w-accent-2);
    outline-offset: 3px;
    border-radius: 4px;
}

.card-w p {
    margin: 0;
    font-size: 0.95rem;
}

.card-w-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
}

.card-w-list li {
    position: relative;
    padding-left: 26px;
}

.card-w-list li::before {
    content: "\f270"; /* bi-check2-circle */
    font-family: bootstrap-icons;
    position: absolute;
    left: 0;
    top: 0.1em;
    color: var(--w-accent-3);
}

/* =====================================================================
   8. Philosophy / Founders
   ===================================================================== */

.section-filozofia {
    background:
        radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 55%),
        var(--w-bg-2);
}

.philosophy-list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.philosophy-list li {
    padding: 20px 0;
    border-top: 1px solid var(--w-line-soft);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 28px;
    align-items: start;
}

.philosophy-list li:last-child {
    border-bottom: 1px solid var(--w-line-soft);
}

.philosophy-list strong {
    font-family: var(--w-font-h);
    color: var(--w-fg);
    font-weight: 600;
    font-size: 1rem;
}

.philosophy-list span {
    color: var(--w-fg-muted);
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .philosophy-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.founders {
    background: var(--w-surface);
    border: 1px solid var(--w-line-soft);
    border-radius: var(--w-radius-lg);
    padding: 36px;
    box-shadow: var(--w-shadow-sm);
}

.founder {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--w-line-soft);
}

.founder:first-child { padding-top: 0; }

.founder-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--w-accent-2), var(--w-accent));
    color: #fff;
    font-family: var(--w-font-h);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.founder-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.founder-body strong {
    color: var(--w-fg);
    font-family: var(--w-font-h);
    font-weight: 600;
    font-size: 1.05rem;
}

.founder-body span {
    color: var(--w-fg-dim);
    font-size: 0.88rem;
}

.founders-quote {
    margin-top: 24px;
    padding: 24px;
    border-left: 3px solid var(--w-accent);
    color: var(--w-fg-muted);
    font-style: italic;
    line-height: 1.6;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 0 var(--w-radius) var(--w-radius) 0;
}

/* =====================================================================
   9. FAQ
   ===================================================================== */

.section-faq {
    background: var(--w-bg-2);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 920px;
    margin: 0 auto;
}

.faq-item {
    background: var(--w-surface);
    border: 1px solid var(--w-line-soft);
    border-radius: var(--w-radius-lg);
    transition: border-color .25s ease;
}

.faq-item[open] {
    border-color: var(--w-line);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 28px;
    font-family: var(--w-font-h);
    font-weight: 600;
    color: var(--w-fg);
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color .2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-item summary::after {
    content: '+';
    color: var(--w-accent-2);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    transition: transform .25s ease, color .25s ease;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--w-accent-3);
}

.faq-item summary:hover {
    color: var(--w-accent-3);
}

.faq-item-body {
    padding: 0 28px 22px;
}

.faq-item-body p {
    margin: 0;
    color: var(--w-fg-muted);
    line-height: 1.7;
}

@media (max-width: 575.98px) {
    .faq-item summary {
        padding: 18px 20px;
        font-size: 1rem;
    }
    .faq-item-body {
        padding: 0 20px 18px;
    }
}

/* =====================================================================
   10. Contact
   ===================================================================== */

.section-kontakt {
    background: var(--w-bg);
}

.contact-list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.contact-list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--w-line-soft);
}

.contact-list li > i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--w-line);
    color: var(--w-accent-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-list div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--w-fg-dim);
}

.contact-list a {
    color: var(--w-fg);
    font-weight: 500;
}

.contact-list a:hover {
    color: var(--w-accent-2);
}

.contact-list span:not(.contact-label) {
    color: var(--w-fg-muted);
}

.contact-note {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--w-fg-dim);
}

.map-wrap {
    position: relative;
    border-radius: var(--w-radius-lg);
    overflow: hidden;
    border: 1px solid var(--w-line);
    box-shadow: var(--w-shadow-sm);
    aspect-ratio: 4 / 3;
    background: var(--w-surface);
    z-index: 0;
}

/* Leaflet — adjust to dark theme */
.leaflet-container {
    background: var(--w-bg-2);
    font-family: var(--w-font);
    outline: none;
}

.leaflet-control-zoom a {
    background: var(--w-surface) !important;
    color: var(--w-fg) !important;
    border-color: var(--w-line) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--w-bg-2) !important;
    color: var(--w-accent-2) !important;
}

.leaflet-control-attribution {
    background: rgba(11, 11, 18, 0.85) !important;
    color: var(--w-fg-dim) !important;
}

.leaflet-control-attribution a {
    color: var(--w-accent-2) !important;
}

.hex-marker {
    background: transparent;
    border: 0;
    filter: drop-shadow(0 6px 16px rgba(124, 58, 237, 0.55));
}

.hex-marker svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* !important because leaflet.css is lazy-loaded after this sheet */
.leaflet-popup-content-wrapper {
    background: var(--w-surface) !important;
    color: var(--w-fg) !important;
    border: 1px solid var(--w-line);
    border-radius: var(--w-radius) !important;
    box-shadow: var(--w-shadow-sm) !important;
    padding: 4px;
}

.leaflet-popup-content {
    margin: 12px 16px;
    min-width: 240px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.leaflet-popup-tip {
    background: var(--w-surface) !important;
    border: 1px solid var(--w-line);
}

.leaflet-popup-close-button {
    color: var(--w-fg-muted) !important;
}

.map-popup-title {
    font-family: var(--w-font-h);
    font-size: 1rem;
    font-weight: 600;
    color: var(--w-fg);
    margin: 0 0 6px;
}

.map-popup-address {
    color: var(--w-fg-dim);
    margin: 0 0 14px;
}

.map-popup-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.map-popup-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--w-fg-muted) !important; /* leaflet.css sets .leaflet-container a colour */
}

.leaflet-popup-content .btn-w {
    color: #fff !important;
}

.map-popup-phone:hover {
    color: var(--w-fg);
}

/* =====================================================================
   11. Footer
   ===================================================================== */

.footer-w {
    background: #07070d;
    border-top: 1px solid var(--w-line-soft);
    padding: 60px 0 28px;
    color: var(--w-fg-dim);
    font-size: 0.92rem;
}

.brand--footer {
    margin-bottom: 18px;
}

.footer-tag {
    margin-top: 8px;
    padding-left: 14px;
    border-left: 2px solid var(--w-accent);
    color: var(--w-fg-muted);
    font-style: italic;
    max-width: 360px;
}

.footer-pages {
    margin-top: 16px;
}

.footer-pages a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--w-fg);
}

.footer-pages a::before {
    font-family: bootstrap-icons;
    color: var(--w-accent-3);
    width: 1.1em;
    margin-right: 8px;
    text-align: center;
    line-height: 1;
    position: relative;
    top: 0.07em; /* optical centring of the glyph against the text x-height */
}

.footer-pages a:nth-child(1)::before { content: "\f56d"; } /* bi-snow */
.footer-pages a:nth-child(2)::before { content: "\f790"; } /* bi-wrench-adjustable */

.footer-w h3 {
    font-family: var(--w-font-h);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--w-fg);
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-w a {
    display: block;
    color: var(--w-fg-muted);
    padding: 4px 0;
}

.footer-w .brand {
    display: inline-flex;
    padding: 0;
}

.footer-w a:hover { color: var(--w-fg); }

.footer-meta {
    color: var(--w-fg-muted);
    margin: 0;
    line-height: 1.7;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--w-line-soft);
    color: var(--w-fg-dim);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    color: var(--w-fg-dim);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.footer-links li {
    display: inline-flex;
    align-items: center;
}

.footer-links li:not(:last-child)::after {
    content: '·';
    color: var(--w-fg-dim);
    margin: 0 8px;
    font-size: 1.4rem;
    line-height: 1;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: var(--w-fg-muted);
    padding: 0;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--w-accent-2);
}

.footer-links li:first-child a {
    font-weight: 500;
}

.footer-links i {
    font-size: 1.2rem;
}

.footer-credit {
    color: var(--w-fg-dim);
}

.footer-credit::before {
    content: "\00b7";
    margin: 0 8px;
}

.footer-credit a {
    display: inline;
    padding: 0;
    color: var(--w-accent-2);
    font-weight: 500;
}

.footer-credit a:hover {
    color: var(--w-accent-3);
}

@media (max-width: 575.98px) {
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* =====================================================================
   11. Legal pages (polityka prywatności)
   ===================================================================== */

.legal-page {
    padding: calc(var(--w-nav-h) + 80px) 0 100px;
    background: var(--w-bg);
}

@media (max-width: 767.98px) {
    .legal-page {
        padding: calc(var(--w-nav-h) + 32px) 0 56px;
    }
}

.legal-page .container {
    max-width: 820px;
}

.legal-head h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-meta {
    margin-top: 20px;
    color: var(--w-fg-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.legal-body {
    margin-top: 56px;
}

.legal-body section + section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--w-line-soft);
}

.legal-body h2 {
    font-size: 1.4rem;
    color: var(--w-fg);
    margin-bottom: 16px;
}

.legal-body h3 {
    font-size: 1.05rem;
    margin: 20px 0 8px;
    color: var(--w-fg);
}

.legal-body p,
.legal-body ul {
    color: var(--w-fg-muted);
}

.legal-body ul {
    padding-left: 22px;
    margin: 0 0 16px;
}

.legal-body ul li {
    margin-bottom: 6px;
}

.legal-body strong {
    color: var(--w-fg);
}

.legal-body a {
    color: var(--w-accent-2);
}

.legal-body a:hover {
    color: var(--w-accent-3);
}

.legal-back {
    margin-top: 56px;
}

/* =====================================================================
   12. Cookie banner
   ===================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 18px 0;
    background: rgba(7, 7, 13, 0.96);
    border-top: 1px solid var(--w-line);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 240px;
}

.cookie-banner-text strong {
    display: block;
    font-family: var(--w-font-h);
    font-weight: 600;
    color: var(--w-fg);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--w-fg-muted);
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--w-accent-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    color: var(--w-accent-3);
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-link-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--w-fg-muted);
    cursor: pointer;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-link-btn:hover {
    color: var(--w-accent-2);
}

@media (max-width: 575.98px) {
    .cookie-banner {
        padding: 14px 0;
    }

    .cookie-banner-inner {
        gap: 14px;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions .btn-w,
    .cookie-banner-actions .btn-w-outline {
        width: 100%;
        justify-content: center;
    }
}
