/* --- ZMIENNE GLOBALNE (Zastępujące konfigurację Tailwind) --- */
:root {
    --primary: #3d6a00;
    --primary-container: #64a40f;
    --primary-fixed: #b0f761;
    --primary-fixed-dim: #95d948;
    --on-primary: #ffffff;
    --on-primary-container: #1a3200;
    --secondary: #575e70;
    --secondary-container: #d9dff5;
    --on-secondary: #ffffff;
    --text-muted: #4b5563;
    
    --background: #f9f9f9;
    --surface: #f9f9f9;
    --surface-container: #eeeeee;
    --surface-container-low: #f3f3f4;
    --surface-container-lowest: #ffffff;
    --surface-variant: #e2e2e2;
    --surface-dim: #dadada;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --inverse-surface: #2f3131;
    --on-surface: #1a1c1c;
    --border-subtle: #e8e8e8;
    
    --brand-gradient: linear-gradient(135deg, #73be0f 0%, #64a40f 100%);
    --font-body: 'Inter', sans-serif;
    --font-headline: 'Hanken Grotesk', sans-serif;
}

/* Przyciski */
.btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.btn-primary {
    background: var(--brand-gradient);
    color: var(--on-primary);
}
.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    color: #fff !important;
}
.btn-primary:active {
    transform: scale(0.95);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-container);
    color: var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background-color: rgba(61, 106, 0, 0.05);
}
.btn-icon {
    gap: 8px;
    padding: 16px 32px;
}
.btn-block {
    width: 100%;
    padding: 16px;
}

/* Karty Szklane */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Teksty */
.brand-gradient-text {
    background: linear-gradient(135deg, #73be0f 0%, #3d6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.section-header {
    margin-bottom: 60px;
    max-width: 768px;
}
.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.section-title {
    font-family: var(--font-headline);
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 600;
    margin-bottom: 24px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    padding: 80px 0px 100px 0px;
    align-items: center;
    overflow: hidden;
    background-color: var(--surface-container-lowest);
}
.hero-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
}
.hero-title {
    font-family: var(--font-headline);
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 24px;
}
.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 512px;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.hero-visual {
    position: relative;
}
.main-visual {
    padding: 16px;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.main-visual img {
    border-radius: 24px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.stats-overlay {
    position: absolute;
    bottom: -24px;
    left: -24px;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: var(--border-subtle);
    max-width: 220px;
}
.stats-value {
    color: var(--primary);
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 4px;
}
.stats-text {
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 360px) {
    .hero-title {
      font-size: 50px !important;
    }
}

/* Sekcja Zalety (Dlaczego My) */
.value-section {
    padding: 100px 0;
    background-color: var(--surface-container-lowest);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1080px) {
    .cards-grid { 
        grid-template-columns: 1fr; 
    }
}

.value-card {
    background-color: var(--surface-container-lowest);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
    
    /* SUBGRID */
    grid-row: span 3; 
    display: grid;
    grid-template-rows: subgrid; 
    row-gap: 0;
}

.value-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

@media (max-width: 360px) {
    .value-card {
        padding: 40px 10px 40px 10px !important;
    }
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: rgba(61, 106, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px; 
    transition: transform 0.3s;
    justify-self: start; 
}

.value-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Poprawka koloru ikon Font Awesome */
.icon-wrapper i {
    color: var(--primary);
    font-size: 24px;
}

.value-card h3 {
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px; 
    line-height: 1.2;
    
    /* NOWOŚĆ: Centrowanie pionowe wewnątrz subgrida */
    display: flex;
    align-items: center; /* To sprawia, że krótsze tytuły będą idealnie na środku wysokości najdłuższego */
}

.value-card p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* Usługi (Specjalizacje) */
.services-section {
    padding: 100px 0;
    background-color: var(--surface);
}

.services-grid {
    display: grid;
    /* Tworzymy 4 kolumny */
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card {
    padding: 32px;
    border-radius: 30px;
    transition: background-color 0.3s;
    
    /* KLUCZOWA ZMIANA: Karta rozciąga się na 3 wiersze głównej siatki (grid) */
    grid-row: span 3; 
    
    /* Wewnątrz karty również odpalamy grid i mówimy mu, aby dziedziczył wiersze od rodzica */
    display: grid;
    grid-template-rows: subgrid; 
    row-gap: 12px; /* Odstępy między ikoną, tytułem a tekstem */
}

.service-card:hover {
    background-color: var(--surface-container-lowest);
}

.service-icon {
    padding: 16px;
    color: #64a40f;
    background-color: var(--surface-container-lowest);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    /* margin-bottom usuwamy, bo teraz row-gap oraz subgrid sterują przestrzenią */
    margin-bottom: 0; 
    display: flex;
    justify-self: start; 
}

.service-icon .material-symbols-outlined {
    color: var(--primary);
}

.service-icon i {
    color: var(--primary);
}

.service-card h4 {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 700;
    margin: 0; /* Zerujemy marginesy, subgrid dba o równe odstępy */
    line-height: 1.2;
    
    /* NOWOŚĆ: Centrowanie pionowe tytułu wewnątrz subgrida */
    display: flex;
    align-items: center; /* Krótsze tytuły będą idealnie na środku wysokości tego najdłuższego */
}

.service-card p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Bento Grid Section */
.bento-section {
    padding: 100px 0;
    background-color: var(--surface-container-lowest);
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .bento-grid > div { grid-column: span 12 !important; }
}
.bento-item {
    border-radius: 30px;
    padding: 32px;
}
.bento-large {
    grid-column: span 8;
    background-color: var(--surface-container);
    position: relative;
    overflow: hidden;
    display: flex;
}
.bento-large h3 {
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}
.bento-content {
    max-width: 448px;
    position: relative;
    z-index: 10;
}
.bento-large p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 10px;
    border-radius: 12px;
}
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.check-list .material-symbols-outlined {
    font-size: 14px;
}
.bento-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
}
.bento-image img {
    width: 100%;
    border-top-left-radius: 30px;
    transform: translateY(40px);
    transition: transform 0.7s ease;
}
.bento-large:hover .bento-image img {
    transform: translateY(20px);
}
.bento-accent {
    grid-column: span 4;
    background-color: var(--primary-container);
    color: var(--on-primary);
}
.bento-icon {
    font-size: 36px;
    margin-bottom: 24px;
    display: block;
}
.bento-accent h3 {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.bento-accent p {
    opacity: 0.9;
    font-size: 16px;
}
.bento-outline-card {
    grid-column: span 4;
    border: 1px solid var(--border-subtle);
    transition: background-color 0.3s;
}
.bento-outline-card:hover {
    background-color: var(--surface-container);
}
.icon-green { color: var(--primary); }
.bento-outline-card h3 {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.bento-outline-card p {
    color: var(--text-muted);
    font-size: 16px;
}
.bento-medium {
    grid-column: span 8;
    border: 1px solid rgba(61, 106, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.bento-medium h3 {
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}
.medium-content { flex: 1; }
.medium-content p { color: var(--text-muted); font-size: 16px; }
.medium-icon-box {
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    background-color: rgba(61, 106, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.medium-icon-box .material-symbols-outlined {
    font-size: 48px;
    color: var(--primary);
}
@media (max-width: 768px) {
    .bento-content {
      max-width: none !important;
    }
    .bento-large p {
      background-color: transparent !important;
      font-size: 18px !important;
    }
    .bento-image { display: none; }
    .bento-accent h3 {
      font-size: 32px !important;
    }
    .bento-accent p {
        font-size: 18px !important;
    }
    .bento-outline-card h3 {
        font-size: 32px !important;
    }
    .bento-outline-card p {
        font-size: 18px !important;
    }
    .medium-content p {
        font-size: 18px !important;
    }
    .medium-icon-box { display: none; }
}

/* Proces */
.hww-section {
    margin: 0;
    padding: 100px 0px;
    background-color: #f3f3f4;
    font-family: 'Inter', sans-serif;
    color: #1a1c1c;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

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

/* Główny kontener sekcji */
.hww-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

/* Mały nadtytuł (Badge) */
.hww-badge {
    display: inline-block;
    color: #3d6a00;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* Główny nagłówek sekcji */
.hww-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 32px; /* Mobilny rozmiar startowy */
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 auto 16px auto;
}

/* Opis pod nagłówkiem */
.hww-description {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    max-width: 576px;
    margin: 0 auto 80px auto;
}

/* Siatka Grid dla kroków */
.hww-steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

/* Karta pojedynczego kroku */
.hww-step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hww-icon-wrapper {
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

/* Duże cyfry (01, 02 itd.) w tle */
.hww-step-number {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: rgba(61, 106, 0, 0.1); /* Kolor akcentu z 10% widoczności */
}

/* Okrąg na ikonę */
.hww-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(61, 106, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d6a00;
}

.hww-icon-circle i {
    font-size: 30px;
}

/* Tytuł kroku */
.hww-step-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #1a1c1c;
}

/* Opis kroku */
.hww-step-text {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    padding: 0 16px;
    margin: 0;
}

/* --- Style Responsywne (RWD) --- */

/* Tablety i średnie ekrany (odpowiednik md:) */
@media (min-width: 768px) {
    .hww-title {
        font-size: 48px; /* Pełny rozmiar nagłówka */
    }
    .hww-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Duże ekrany i komputery (odpowiednik lg:) */
@media (min-width: 1024px) {
    .hww-steps-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 32px;
        row-gap: 80px;
    }
}

/* Integracje */
.integration-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.integration-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
@media (max-width: 768px) {
    .integration-container { grid-template-columns: 1fr; }
}
.integration-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}
.integration-item {
    display: flex;
    gap: 16px;
}
.item-icon {
    width: 48px;
    height: 48px;
    background-color: var(--surface-container-lowest);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.item-icon i { color: var(--primary); }
.integration-item h5 { font-weight: 700; font-size: 16px; }
.integration-item p { font-size: 16px; color: var(--text-muted); }

.integration-visual {
    position: relative;
}
.pulse-circle {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, rgba(61, 106, 0, 0.05) 0%, rgba(87, 94, 112, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .pulse-circle {
        display: none !important;
    }
}
.glass-inner-box {
    width: 75%;
    height: 75%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}
.logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.logo-box {
    width: 64px;
    height: 64px;
    background-color: var(--surface-container-lowest);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-box.muted i { color: rgba(26, 28, 28, 0.2); }
.logo-box.active i { color: var(--primary); }
.logo-box.highlight { background-color: var(--primary); }
.logo-box.highlight i { color: white; }


/*CALL TO ACTION BLOCK*/
.cta-section {
    padding: 100px 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-box {
    border-radius: 40px;
    padding: 96px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 0px 30px;
}

.cta-decorators {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

.brand-gradient-bg {
    background: var(--brand-gradient);
}

.decorative-shape {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.cta-dec-left-circle {
    top: -128px;
    left: -128px;
    width: 384px;
    height: 384px;
    border: 60px solid #ffffff;
}

.cta-dec-right-blob {
    bottom: -128px;
    right: -128px;
    width: 384px;
    height: 384px;
    background-color: #ffffff;
}

.cta-content-wrapper {
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 48px;
    color: #ffffff;
    margin: 0 0 24px 0;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
}

.cta-actions-flex {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .cta-actions-flex { flex-direction: column; }
    
    .cta-title {
        font-size: 32px;
    }
    .cta-section {
        padding: 80px 0;
    }
}

@media (max-width: 500px) {
    .cta-box {
      padding: 30px 6px !important;
    }
}

/* Buttons */
.btn-white {
    background-color: #ffffff;
    color: #3d6a00;
    padding: 20px 48px;
    border-radius: 12px;
}
.btn-white:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.btn-large {
    font-size: 14px;
    letter-spacing: 0.05em;
}