body {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    background: #fafafa;
    color: #333;
}

.container {
    display: flex;
    max-width: 95%;
    margin: 0 auto;
    justify-content: center;
}
.flex-container{display:flex;justify-content:center}

.container#calculatorSection {
    display: block;
}

.inline-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-container h4 {
    margin: 5px;
}

.content,
.content-index {
    width: 90%;
    position: relative;
    z-index: 2;
}

.content-index {
    font-size: 1.5rem;
    padding: 25px;
    text-align: center;
    background-color: #f6fdf5;
}

.content-index h1 { font-size: 2em; }
.content-index h2 { font-size: 1.5em; }
.content-index h3 { font-size: 1.17em; }
.content-index h4 { font-size: 1em; }
.content-index .text-start,
.content-index ol,
.content-index ul { text-align: left; }
.content-index input {
    margin: 0 20px;
}

.full-width-button {
    width: 100%;
}

h1 { color: #a5a5a5; }
h2 { color: #325b32; }
h4 { color: #222a; }

ul, ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
ul li, ol li {
    margin-bottom: 0.5rem;
}

a {
    color: #222a;
    text-decoration: none;
    transition: all 0.3s;
}
a:hover {
    color: #2223;
    text-shadow: 0 0 100px #333;
}

hr {
    color: #325b3280;
    height: 5px;
}

footer {
    position: fixed;
    bottom: 0;
}

.table-responsive {
    overflow-x: auto;
}

.stretched-table {
    width: 100%;
    margin: 0 auto 1rem auto;
    border-collapse: collapse;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

table th, table td {
    border: 2px solid #325b3280;
}
table th {
    background-clip: padding-box;
    background-color: #e6f6bc;
    position: sticky;
    top: 0;
}
thead.thead-dark th {
    background-color: #343a40;
    color: #fff;
}

.stretched-table tbody {
    background-color: #8d8d8d;
}

/* Statusy */
.if-true { color: green; }
.if-false { color: red; }

/* Przyciski */
.full-width-button, .btn-equal {
    width: 100%;
    min-width: 150px;
    max-width: 300px;
    flex: 1;
}
.btn-equal {
    width: 100%;
    min-width: 150px;
    max-width: 300px;
    flex: 1;
}


.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}
.btn-outline-warning:hover {
    color: #fff;
    background-color: #ffc107;
    border-color: #ffc107;
}
.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}
.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-container{
    display:flex;
    flex-direction:column;      /* pion na xs */
    align-items:stretch;
    gap:.75rem;
    width:100%;
}

/* Sekcja HERO */
.section-hero {
    width: 98%;
    height: 50vh;
    min-height: 300px;
    background-image: url("/graphic/banner_background.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: start;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.1);
}

/* HERO SECTION na całą stronę */
#heroSection {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}
#heroSection .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(2px);
}
#heroSection .content {
    position: relative;
    z-index: 2;
}
#heroSection .hero-row {
    min-height: 60vh;
}
#heroSection h1 { line-height: 1.2; }

.hero-image,
.section-image {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.hero-image { max-height: 80vh; width: auto; }
.section-image { max-height: 400px; object-fit: cover; }

section.onepage {
    padding: 4rem 0;
}

/* Wykresy */
.chart-container {
    width: 800px;
    height: 400px;
    margin: 3rem auto;
}

/* Video */
.video-wrapper-80 {
    width: 80vw;
    max-width: 1024px;
    margin: 0 auto;
}
.video-wrapper-80 .ratio { width: 100%; }
.video-wrapper-80 iframe {
    width: 100%;
    display: block;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Modal */
.modal-content {
    height: auto;
    max-height: 50vh;
    overflow-y: auto;
    width: fit-content;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 576px) {
    .container,
    .content,
    .content-index,
    .text-col,
    .img-col {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    h1.display-5 { font-size: 1.8rem; line-height: 1.3; }
    h2, h3 { font-size: 1.4rem; }


    .btn-equal {
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
        /*margin-bottom: 0.5rem;*/
        margin-left: 15px;
        margin-right: 15px;
    }
    .btn-container .btn{
        width:100%;
        max-width:none;
        min-width:0;
    }
    .section-image,
    .hero-image {
        max-width: 100%;
        height: auto;
    }
    .chart-container,
    canvas {
        max-width: 100%;
        height: auto;
    }
    .table-responsive,
    .stretched-table {
        overflow-x: auto;
        display: block;
    }
    .video-wrapper {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .ratio {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
}
@media(min-width:576px){
    .btn-container{
        flex-direction:row;
        justify-content:center;
        gap:1rem;
    }
}

@media (max-width: 576px){
    #heroSection > .container{
        display:block !important;   /* zabija flex wyłącznie w tym miejscu */
    }
}