:root {
    --color-navy: #0F172A;
    --color-navy-pro: #0A2A4E;
    --color-cyan: #22D3EE;
    --color-cyan-dark: #0891B2;
    --color-blue: #2563EB;
    --color-graphite: #334155;
    --color-platinum: #F8FAFC;
    --color-white: #FFFFFF;

    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(10 42 78 / 0.1), 0 2px 4px -2px rgb(10 42 78 / 0.1);
    --shadow-lg: 0 10px 25px -3px rgb(10 42 78 / 0.1), 0 4px 6px -4px rgb(10 42 78 / 0.1);
    --shadow-xl: 0 20px 40px -5px rgb(10 42 78 / 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-graphite);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-navy-pro);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-navy-pro);
}

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

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-navy-pro);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Header */
header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-navy-pro);
}

.logo-link img {
    height: 48px;
    width: auto;
}

header nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

header nav a {
    color: var(--color-navy-pro);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

header nav a:not(.cta-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-cyan);
    transition: width var(--transition-fast);
}

header nav a:not(.cta-button):hover::after {
    width: 100%;
}

/* Buttons */
.cta-button,
.secondary-button,
.submit-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all var(--transition-smooth);
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cta-button {
    background-color: var(--color-navy-pro);
    color: var(--color-white) !important;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background-color: var(--color-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-button {
    background-color: transparent;
    color: var(--color-navy-pro);
    border: 2px solid var(--color-navy-pro);
}

.secondary-button:hover {
    background-color: var(--color-platinum);
}

/* Hero Section (Global Consulting Style) */
.hero-consulting {
    position: relative;
    padding: 8rem 0 10rem 0;
    /* Extra bottom padding for overlap */
    background-color: var(--color-platinum);
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-color: var(--color-navy-pro);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    padding-right: 2rem;
}

.hero-subtitle {
    color: var(--color-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-consulting h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-graphite);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual-content {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    background: var(--color-white);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(2rem);
    /* Assymmetry */
}

.hero-abstract-art {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-navy-pro), var(--color-blue));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-profile-image {
    position: relative;
    z-index: 3;
    width: 95%;
    /* W zależności od kadru, zapewnienie by postać mieściła się w divie */
    height: auto;
    object-fit: contain;
    object-position: bottom;
    align-self: flex-end;
}

.art-shape {
    position: absolute;
    background: var(--color-cyan);
    opacity: 0.8;
}

.shape-1 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    transform: rotate(45deg);
}

.art-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* Competence Section (Overlapping Cards) */
.competence-section {
    padding: 0 0 6rem 0;
    background-color: var(--color-white);
    position: relative;
    z-index: 10;
}

.overlapping-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: -6rem;
    /* Overlaps hero section */
}

.consulting-card {
    background: var(--color-white);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--color-navy-pro);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.consulting-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-elevated {
    border-top-color: var(--color-cyan);
    margin-top: -2rem;
    /* Asymmetry inside the grid */
    margin-bottom: 2rem;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-platinum);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.consulting-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.consulting-card p {
    font-size: 1rem;
    color: var(--color-graphite);
    flex-grow: 1;
}

.clean-list {
    list-style: none;
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-platinum);
    padding-top: 1.5rem;
}

.clean-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-navy-pro);
    font-weight: 500;
}

.clean-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-cyan-dark);
    font-weight: bold;
}

/* Section O Gwarancie (Process/Experience) */
.process-section {
    padding: 8rem 0;
    background-color: var(--color-platinum);
}

.process-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: center;
}

.process-image {
    position: relative;
}

.process-image img {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-xl);
    border-radius: 4px;
}

.experience-badge {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--color-cyan);
    color: var(--color-navy-pro);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.lead-text {
    font-size: 1.5rem;
    color: var(--color-blue);
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--color-white);
    padding: 1.5rem;
    border-left: 4px solid var(--color-navy-pro);
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2rem;
    color: var(--color-navy-pro);
    font-weight: 900;
    min-width: 120px;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-graphite);
    font-weight: 500;
}

/* CTA & Form Section */
.cta-form-section {
    padding: 8rem 0;
    position: relative;
    background-color: var(--color-white);
    overflow: hidden;
}

.cta-bg-shape {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 70%;
    height: 80%;
    background-color: var(--color-navy-pro);
    z-index: 1;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
    align-items: center;
}

.cta-text {
    color: var(--color-white);
    padding: 3rem 0;
}

.cta-text h2 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-cyan);
}

.form-wrapper {
    background: var(--color-white);
    padding: 4rem;
    box-shadow: var(--shadow-xl);
}

.global-form .form-group {
    margin-bottom: 1.5rem;
}

.global-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-navy-pro);
    font-size: 0.95rem;
}

.global-form input[type="text"],
.global-form input[type="email"],
.global-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: var(--color-platinum);
}

.global-form input[type="text"]:focus,
.global-form input[type="email"]:focus,
.global-form textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    background: var(--color-white);
}

.global-form textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--color-graphite);
    font-weight: 400;
    margin: 0;
}

.checkbox-group label a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.large-submit {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
}

/* Privacy Page Overrides */
.privacy-content {
    max-width: 800px;
    margin: 4rem auto 8rem;
    background: var(--color-white);
    padding: 4rem;
    box-shadow: var(--shadow-lg);
}

.privacy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

/* Custom Checkbox Design for demo */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-navy-pro);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
}

input[type="checkbox"]:checked::after {
    content: '\2714';
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Footer Section */
footer {
    background-color: var(--color-navy);
    color: var(--color-platinum);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p {
    opacity: 0.8;
}

.footer-section img {
    filter: brightness(0) invert(1);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section ul a {
    color: var(--color-platinum);
    opacity: 0.8;
}

.footer-section ul a:hover {
    opacity: 1;
    color: var(--color-cyan);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--color-platinum);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom a:hover {
    color: var(--color-cyan);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-navy-pro);
    margin: 5px 0;
    transition: var(--transition-fast);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1000;
    padding: 80px 2rem 2rem;
    transition: right var(--transition-smooth);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-navy-pro);
}

.mobile-menu .cta-button {
    text-align: center;
    margin-top: 1rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-consulting h1 {
        font-size: 3rem;
    }

    .overlapping-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-elevated {
        margin-top: 0;
    }

    .cta-grid {
        gap: 2rem;
    }

    .form-wrapper {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .header-content nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-consulting {
        padding: 4rem 0 6rem 0;
    }

    .hero-bg-accent {
        width: 100%;
        height: 65%;
        clip-path: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-text-content {
        padding-right: 0;
        color: var(--color-white);
    }

    .hero-text-content h1,
    .hero-text-content .hero-subtitle,
    .hero-text-content .hero-description {
        color: var(--color-white);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .secondary-button {
        color: var(--color-white);
        border-color: var(--color-white);
        width: 100%;
    }

    .cta-button {
        background-color: var(--color-cyan);
        color: var(--color-navy-pro) !important;
        width: 100%;
    }

    .hero-image-wrapper {
        transform: translateY(0);
        margin-top: 1rem;
    }

    .overlapping-cards-grid {
        grid-template-columns: 1fr;
        margin-top: -1.5rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        padding: 1.5rem 1rem;
        justify-content: center;
        text-align: left;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-form-section {
        padding: 4rem 0 3rem 0;
    }

    .cta-bg-shape {
        width: 100%;
        height: 60%;
        top: 0;
        transform: none;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 2.5rem 1.5rem;
    }

    footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .privacy-content {
        padding: 2rem 1.5rem;
    }
}