/* =====================================================================
   GołąbSystem — szablon 2026
   Inspiracje: Linear, Vercel, Stripe. Monochromatyczny, ascetyczny.
   Geist (sans) + Instrument Serif (kursywa akcent) + Geist Mono (etykiety)
   ===================================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
    /* Skala szarości — chłodny neutralny */
    --gray-1000: #0a0a0a;
    --gray-900:  #171717;
    --gray-800:  #262626;
    --gray-700:  #404040;
    --gray-600:  #525252;
    --gray-500:  #737373;
    --gray-400:  #a3a3a3;
    --gray-300:  #d4d4d4;
    --gray-200:  #e5e5e5;
    --gray-150:  #ededed;
    --gray-100:  #f5f5f5;
    --gray-50:   #fafafa;
    --white:     #ffffff;

    /* Akcent — używany powściągliwie */
    --accent:    #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eff6ff;

    /* Stany */
    --success:    #15803d;  --success-bg: #f0fdf4;  --success-border: #bbf7d0;
    --danger:     #b91c1c;  --danger-bg:  #fef2f2;  --danger-border:  #fecaca;
    --warning-bg: #fffbeb;  --warning-border: #fde68a;

    /* Geometria — sharp ale nie ostry */
    --radius:        8px;
    --radius-sm:     6px;
    --radius-lg:     12px;
    --radius-pill:   999px;

    /* Cienie — bardzo subtelne */
    --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow:     0 4px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.04);

    /* Typografia */
    --font-sans:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif:   'Instrument Serif', Georgia, serif;
    --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Animacje */
    --ease:       cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01', 'cv11';
}

/* ---------- TYPOGRAFIA ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--gray-1000);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; }
h5 {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

em.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--gray-1000);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
a:hover { color: var(--accent); }

strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

::selection { background: var(--gray-1000); color: var(--white); }

/* ---------- LAYOUT ---------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}
.container-narrow { max-width: 760px; }

.main-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 32px 96px;
    min-height: 60vh;
}

/* Strona główna używa pełnej szerokości */
.home-page .main-content {
    max-width: none;
    padding: 0;
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-divider { border-top: 1px solid var(--gray-200); }

/* ---------- HEADER ---------- */
.site-header {
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.brand {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-1000);
    letter-spacing: -0.015em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.brand::before {
    content: '';
    width: 18px; height: 18px;
    background: var(--gray-1000);
    border-radius: 50%;
    flex-shrink: 0;
}
.brand:hover { color: var(--gray-1000); }

.site-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.site-nav a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
.site-nav a:hover { color: var(--gray-1000); background: none; }

.site-nav a:last-child {
    background: var(--gray-1000);
    color: var(--white);
    margin-left: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}
.site-nav a:last-child:hover {
    background: var(--gray-800);
    color: var(--white);
}

/* ---------- HERO ---------- */
.hero {
    padding: 120px 32px 96px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 28px;
    text-transform: uppercase;
}
.hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--gray-400);
}

.hero-title {
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    line-height: 0.98;
    font-weight: 500;
    letter-spacing: -0.04em;
    margin: 0 0 24px;
    color: var(--gray-1000);
}

.hero-lead {
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.5;
    color: var(--gray-600);
    max-width: 48ch;
    margin: 0 0 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Prawa kolumna — meta info zamiast ozdoby */
.hero-meta {
    border-left: 1px solid var(--gray-200);
    padding-left: 40px;
    padding-bottom: 8px;
}
.hero-meta-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}
.hero-meta-item:last-child { border-bottom: none; }
.hero-meta-item h5 { margin-bottom: 6px; }
.hero-meta-item p {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin: 0;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
    margin-bottom: 64px;
    max-width: 720px;
}
.section-header h2 {
    margin-top: 12px;
}
.section-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 56ch;
    margin-top: 16px;
}

/* ---------- FEATURE GRID — minimalne karty ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.feature {
    background: var(--white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: background 0.2s var(--ease);
}
.feature:hover { background: var(--gray-50); }
.feature-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.feature h3 {
    font-size: 1.375rem;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--gray-1000);
    letter-spacing: -0.02em;
}
.feature p {
    color: var(--gray-600);
    font-size: 0.97rem;
    line-height: 1.55;
    margin: 0 0 24px;
    flex: 1;
}
.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-1000);
    transition: gap 0.2s var(--ease);
}
.feature-link::after {
    content: '→';
    transition: transform 0.2s var(--ease);
}
.feature-link:hover { color: var(--gray-1000); gap: 10px; }

/* ---------- CTA ---------- */
.cta {
    background: var(--gray-1000);
    color: var(--white);
    padding: 96px 32px;
    text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta h2 {
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 20px;
}
.cta p {
    color: var(--gray-400);
    font-size: 1.125rem;
    max-width: 50ch;
    margin: 0 auto 36px;
}
.cta .hero-actions { justify-content: center; }
.cta .btn {
    background: var(--white);
    color: var(--gray-1000);
}
.cta .btn:hover {
    background: var(--gray-200);
    color: var(--gray-1000);
}
.cta .btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: var(--gray-700);
}
.cta .btn-ghost:hover {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-600);
}

/* ---------- KARTY (dla wszystkich pozostałych stron) ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.2s var(--ease);
}
.card:hover { border-color: var(--gray-300); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card-none {
    text-align: center;
    padding: 72px 28px;
    background: var(--white);
    border-style: dashed;
    color: var(--gray-500);
}

/* ---------- PRZYCISKI ---------- */
.btn, button[type="submit"], input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1;
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s var(--ease);
    white-space: nowrap;
    background: var(--gray-1000);
    color: var(--white);
}
.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background: var(--gray-800);
    color: var(--white);
}
.btn:active { transform: translateY(0.5px); }

.btn-primary { background: var(--gray-1000); color: var(--white); }
.btn-primary:hover { background: var(--gray-800); color: var(--white); }

.btn-ghost {
    background: var(--white);
    color: var(--gray-1000);
    border: 1px solid var(--gray-300);
}
.btn-ghost:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-1000);
}

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #991b1b; color: var(--white); }

.btn-sm { padding: 7px 12px; font-size: 0.825rem; }
.btn-lg { padding: 14px 24px; font-size: 0.98rem; }

/* ---------- FORMULARZE ---------- */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin: 16px 0 6px;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"],
input[type="datetime-local"], input[type="time"], input[type="tel"],
input[type="url"], input[type="file"],
select, textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--gray-1000);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gray-1000);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input[type="file"] { padding: 8px; }
input[type="checkbox"], input[type="radio"] {
    width: auto;
    margin-right: 6px;
    accent-color: var(--gray-1000);
}
.req { color: var(--danger); font-weight: 500; }
small, .help-text {
    display: block;
    color: var(--gray-500);
    font-size: 0.825rem;
    margin-top: 6px;
}

/* ---------- KOMUNIKATY ---------- */
.errors {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.errors ul { margin: 0; padding-left: 20px; }
.ok {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.box { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.92rem; }
.found { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.none  { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--gray-800); }

/* ---------- BADGES ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--gray-100);
    color: var(--gray-700);
    letter-spacing: 0.02em;
    font-family: var(--font-mono);
    text-transform: uppercase;
}
.badge.lost { background: var(--danger-bg); color: var(--danger); }

/* ---------- TABELE ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}
th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-150);
}
th {
    background: var(--gray-50);
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.12s var(--ease); }
tbody tr:hover { background: var(--gray-50); }

/* ---------- DL ---------- */
dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 28px;
    margin: 0;
}
dt {
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: center;
    font-family: var(--font-mono);
}
dd { margin: 0; color: var(--gray-1000); font-size: 0.95rem; }

/* ---------- POMOCNICZE ---------- */
.muted { color: var(--gray-500); font-size: 0.9em; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.15s var(--ease);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.back-link::before { content: '←'; }
.back-link:hover { color: var(--gray-1000); }

.big-price {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--gray-1000);
    letter-spacing: -0.03em;
    display: inline-block;
}

.auction {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* ---------- DASHBOARD MODULE NAV ---------- */
.module-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 24px 0;
}
.module-nav a {
    display: block;
    background: var(--white);
    padding: 24px 26px;
    color: var(--gray-1000);
    font-weight: 500;
    font-size: 0.97rem;
    text-decoration: none;
    transition: background 0.15s var(--ease);
    position: relative;
}
.module-nav a:hover {
    background: var(--gray-50);
    color: var(--gray-1000);
}
.module-nav a::after {
    content: '→';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    transition: all 0.15s var(--ease);
}
.module-nav a:hover::after { color: var(--gray-1000); transform: translate(3px, -50%); }

/* ---------- QR BANNER ---------- */
.qr-banner {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-1000);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
}
.qr-banner h2, .qr-banner h3 { color: var(--gray-1000); margin-top: 0; }
.qr-banner img {
    background: var(--white);
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    display: block;
    margin: 16px 0;
}

/* ---------- STOPKA ---------- */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 64px 32px 32px;
    margin-top: 96px;
    color: var(--gray-600);
}
.site-footer .container { max-width: 1100px; padding: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}
.footer-brand {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-1000);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.015em;
}
.footer-brand::before {
    content: '';
    width: 18px; height: 18px;
    background: var(--gray-1000);
    border-radius: 50%;
}
.footer-grid p { font-size: 0.92rem; color: var(--gray-600); max-width: 36ch; }
.footer-grid h5 {
    color: var(--gray-500);
    margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a {
    color: var(--gray-700);
    font-size: 0.92rem;
    transition: color 0.15s var(--ease);
}
.footer-grid a:hover { color: var(--gray-1000); }

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--gray-500);
    font-size: 0.825rem;
    font-family: var(--font-mono);
}

/* ---------- OBRAZY ---------- */
img.thumb {
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

/* ---------- LISTA GIEŁDY ---------- */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 28px 0;
}
.market-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: var(--gray-1000);
    transition: border-color 0.15s var(--ease);
    display: flex;
    flex-direction: column;
}
.market-card:hover {
    border-color: var(--gray-400);
    color: var(--gray-1000);
}
.market-card h3 { margin: 8px 0 10px; font-size: 1.1rem; }

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 968px) {
    .hero-grid    { grid-template-columns: 1fr; gap: 56px; }
    .hero-meta    { border-left: none; border-top: 1px solid var(--gray-200); padding: 24px 0 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .main-content      { padding: 40px 20px 64px; }
    .container         { padding: 0 20px; }
    .section           { padding: 64px 0; }
    .cta               { padding: 64px 20px; }
    .hero              { padding: 72px 20px 64px; }

    .site-header-inner { padding: 14px 20px; }
    .site-nav          { gap: 0; }
    .site-nav a        { padding: 6px 10px; font-size: 0.825rem; }
    .site-nav a:last-child { padding: 7px 14px; }

    .hero-title        { font-size: 2.5rem; }
    .hero-actions      { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }

    .feature           { padding: 28px 24px; }
    .card              { padding: 22px; }

    .section-header    { margin-bottom: 40px; }

    .footer-grid       { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
    .footer-bottom     { flex-direction: column; align-items: flex-start; }

    dl                 { grid-template-columns: 1fr; gap: 2px 0; }
    dt                 { margin-top: 12px; }

    table              { font-size: 0.82rem; }
    th, td             { padding: 9px 12px; }
}

@media (max-width: 480px) {
    .site-header-inner { gap: 12px; }
    .site-nav          { width: 100%; flex-wrap: wrap; gap: 4px; }
}

/* ---------- ANIMACJE WEJŚCIA (subtelne) ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > *, .feature, .card {
    animation: fadeIn 0.5s var(--ease) both;
}
.hero-meta { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.05s; }
.feature:nth-child(3) { animation-delay: 0.1s; }
.feature:nth-child(4) { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
