/* OGB Oceny - style */
.ogb-oceny-wrapper {
    width: 100%;
    margin: 30px 0;
}

.ogb-oceny-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ogb-ocena-card {
    background: #fff;
    padding: 28px 30px 24px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
}

.ogb-ocena-title {
    text-align: center;
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a6e;
    margin: 0 0 18px 0;
    line-height: 1.3;
}

.ogb-ocena-question {
    text-align: center;
    margin-bottom: 32px;
}

.ogb-ocena-question span {
    display: inline-block;
    border: 1.5px solid #7cb342;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 15px;
    color: #1e3a6e;
    font-weight: 500;
    background: #fff;
}

/* Wykres */
.ogb-ocena-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    height: 260px;
    margin-bottom: 28px;
    padding: 0 5px;
}

.ogb-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.ogb-bar-inner {
    position: relative;
    width: 100%;
    max-width: 84px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 12px;
}

.ogb-bar-fill {
    width: 100%;
    height: 0%;
    border-radius: 12px 12px 0 0;
    position: relative;
    transition: height 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    will-change: height;
}

.ogb-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}

.ogb-bar-percent {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}

.ogb-bar-percent.inside {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.ogb-bar-percent.outside {
    position: absolute;
    bottom: 100%;
    margin-bottom: 6px;
    color: #1e3a6e;
}

.ogb-bar-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a6e;
    line-height: 1.25;
    max-width: 90px;
    min-height: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Footer */
.ogb-ocena-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #c5d0e0;
    margin-top: 10px;
}

.ogb-ocena-logo {
    display: flex;
    align-items: center;
}

.ogb-ocena-button {
    background: #c43d3d;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.ogb-ocena-button:hover {
    background: #a93232;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 61, 61, 0.3);
    color: #fff !important;
}

/* Animacja wejścia */
.ogb-ocena-card {
    opacity: 0;
    transform: translateY(20px);
    animation: ogbFadeIn 0.6s ease forwards;
}

.ogb-ocena-card:nth-child(2) { animation-delay: 0.1s; }
.ogb-ocena-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes ogbFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsywność */
@media (max-width: 1024px) {
    .ogb-oceny-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .ogb-ocena-card {
        padding: 22px 18px;
    }
    
    .ogb-ocena-title {
        font-size: 18px;
    }
    
    .ogb-ocena-question span {
        font-size: 14px;
        padding: 7px 16px;
    }
    
    .ogb-ocena-chart {
        height: 220px;
        gap: 8px;
    }
    
    .ogb-bar-inner {
        height: 170px;
        max-width: none;
    }
    
    .ogb-bar-percent {
        font-size: 15px;
    }
    
    .ogb-bar-label {
        font-size: 12px;
        max-width: 70px;
    }
    
    .ogb-ocena-footer {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
}