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

:root {
    --bg: #0f0f0f;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --link: #a5b4fc;
}

#cookies-settings {
    scroll-margin-top: 5.5rem;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 0.875rem 1.5rem;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.site-logo span {
    color: var(--text-muted);
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem 1.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.site-nav a[aria-current="page"] {
    color: var(--text);
}

.site-nav .nav-cta {
    color: var(--bg);
    background: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.site-nav .nav-cta:hover {
    color: var(--bg);
    opacity: 0.92;
}

@media (max-width: 640px) {
    .site-nav a:not(.nav-cta) {
        display: none;
    }
}

.subpage-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.subpage-main {
    flex: 1;
    padding: 6rem 1.5rem 4rem;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.subpage-main.wide {
    max-width: 1000px;
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.prose {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.prose h2 {
    color: var(--text);
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    font-weight: 600;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul,
.prose ol {
    margin: 0 0 1rem 1.25rem;
}

.prose li {
    margin-bottom: 0.35rem;
}

.prose a {
    color: var(--link);
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.back-row {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.tech-detail-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .tech-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tech-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.tech-detail-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-detail-card-thumb {
    display: block;
    width: calc(100% + 3rem);
    max-width: none;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    height: 140px;
    object-fit: cover;
    border-radius: 11px 11px 0 0;
}

.tech-card-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
}

.tech-card-more:hover {
    text-decoration: underline;
}

/* Podstrony technologii (hero grafiki) */
.tech-sub-hero {
    margin: 0 -1.5rem 1.5rem;
    border-radius: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.tech-sub-hero img {
    width: 100%;
    height: min(42vw, 280px);
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .tech-sub-hero {
        margin: 0 0 2rem;
        border-radius: 16px;
        border: 1px solid var(--border);
    }

    .tech-sub-hero img {
        height: 280px;
    }
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.breadcrumb a {
    color: var(--link);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.tech-sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.tech-sub-nav span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    width: 100%;
    margin-bottom: 0.25rem;
}

.tech-sub-nav a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s, color 0.2s;
}

.tech-sub-nav a:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
}

.tech-sub-nav a[aria-current="page"] {
    color: var(--text);
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.08);
}

.tech-detail-card h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tech-detail-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.65;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card dt {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.contact-card dd {
    margin: 0 0 1.25rem;
    font-size: 1rem;
}

.contact-card dd:last-child {
    margin-bottom: 0;
}

.contact-card a {
    color: var(--link);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

footer {
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.85;
    text-align: center;
    max-width: 36rem;
    line-height: 1.5;
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover {
        transform: none;
    }
}
