:root {
    --bg-base: #f8fafc;
    --bg-card: #ffffff;
    --border-light: #e2e8f0;

    --logo-navy: #0f2d59;
    --logo-teal: #00ccd6;
    --logo-blue: #0284c7;

    --text-dark: #0f2d59;
    --text-muted: #475569;

    --gradient-brand: linear-gradient(135deg, var(--logo-teal) 0%, var(--logo-blue) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(224, 242, 254, 0.4) 100%);

    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* --- NAWIGACJA / HEADER SYSTEMOWY (PANCERNE CENTROWANIE LOGO) --- */
.system-header {
    display: flex;
    justify-content: center;
    /* Centrowanie w poziomie */
    align-items: center;
    /* Centrowanie w pionie */
    width: 100%;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(15, 45, 89, 0.02);
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Wymuszenie centrowania dzieci wewnątrz linku */
    justify-content: center;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: auto;
    width: 100%;
    max-width: clamp(200px, 30vw, 320px);
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img:hover {
    transform: scale(1.03);
}

.logo-fallback {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--logo-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -1px;
}

.logo-fallback span {
    color: var(--logo-teal);
}

/* --- HERO SECTION --- */
.hero {
    background: var(--gradient-hero);
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 24px;
    padding: 48px 32px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(15, 45, 89, 0.03);
    position: relative;
    overflow: hidden;
}

.hero-sys-info {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--logo-blue);
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--logo-navy);
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.85rem;
    }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 850px;
}

/* --- SEKCJE STRONY --- */
.page-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--logo-navy);
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--border-light);
}

/* --- SIATKA KORZYŚCI --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

.value-dot {
    width: 10px;
    height: 10px;
    background: var(--gradient-brand);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.value-content strong {
    display: block;
    color: var(--logo-navy);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.value-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- SIATKA USŁUG --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    border-color: var(--logo-teal);
    box-shadow: 0 10px 25px rgba(0, 204, 214, 0.04);
}

.service-content-wrapper {
    margin-bottom: 20px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.service-icon {
    font-size: 1.5rem;
    background: #f0fdfa;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 214, 0.15);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--logo-navy);
    margin: 0;
    line-height: 1.3;
}

.service-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tech-log {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: #f0fdfa;
    border-left: 3px solid var(--logo-teal);
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    color: var(--logo-navy);
}

.tech-log-title {
    font-weight: bold;
    color: var(--logo-blue);
    margin-bottom: 2px;
}

/* --- MODEL WSPÓŁPRACY --- */
.cooperation-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 32px;
}

.cooperation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .cooperation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.coop-item h3 {
    font-size: 1.15rem;
    color: var(--logo-navy);
    margin: 0 0 8px 0;
}

.coop-item p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-muted);
}

/* --- CALL TO ACTION --- */
.cta-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 48px 24px;
    text-align: center;
    margin-top: 16px;
    box-shadow: 0 10px 30px rgba(15, 45, 89, 0.02);
    position: relative;
    overflow: hidden;
}

.cta-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--logo-navy);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.cta-section p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 30px auto;
}

.contact-channel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--logo-navy);
}

.channel-item a {
    color: var(--logo-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.channel-item a:hover {
    border-color: var(--logo-blue);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-btn {
    display: inline-block;
    background: var(--gradient-brand);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 44px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(2, 130, 199, 0.2);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 214, 0.3);
}

/* --- STOPKA --- */
.footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 48px;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    font-family: var(--font-mono);
}