/* ===================================== */
/* GLOBAL */
/* ===================================== */

:root {
    --primary-blue: #26445F;
    --dark-blue: #142742;
    --yellow: #FFD158;
    --light-bg: #E5EAEE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--light-bg);
    color: var(--dark-blue);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 90px 0;
}

h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 50px;
}

/* ===================================== */
/* HERO */
/* ===================================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(20,39,66,0.92), rgba(38,68,95,0.92)),
        url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?q=80&w=2070&auto=format&fit=crop')
        center/cover no-repeat;
    color: white;
    padding: 110px 0;
    text-align: center;
}

.hero h1 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
}

.btn-primary {
    background: var(--yellow);
    color: var(--dark-blue);
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e6bc3f;
}

/* ===================================== */
/* GRID + CARDS */
/* ===================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

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

.card {
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expandable {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #142742, #26445F);
    color: white;
    padding: 30px;
    opacity: 0;
    transform: translateY(100%);
    transition: 0.4s;
}

.expandable:hover .card-content {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================== */
/* STATYSTYKI */
/* ===================================== */

.why {
    background: var(--primary-blue);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    text-align: center;
}

.stat-box h3 {
    font-size: 42px;
    font-weight: 900;
    color: var(--yellow);
}

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

/* ===================================== */
/* FORM */
/* ===================================== */

.form-section {
    background: white;
    padding: 50px;
    border-radius: 8px;
    max-width: 650px;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

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

form button {
    width: 100%;
    padding: 15px;
    border-radius: 4px;
    border: none;
    background: var(--yellow);
    color: var(--dark-blue);
    font-weight: 700;
    cursor: pointer;
}

.error-text {
    display: none;
    color: red;
    font-size: 13px;
    margin-bottom: 15px;
}

.consent-box {
    margin-bottom: 20px;
    font-size: 14px;
}

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

/* ===================================== */
/* COOKIE */
/* ===================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #142742;
    color: white;
    padding: 15px;
    text-align: center;
    display: none;
}

.cookie-banner button {
    background: var(--yellow);
    border: none;
    padding: 8px 15px;
    margin-left: 15px;
    cursor: pointer;
}

/* ===================================== */
/* ROZBUDOWANY FOOTER */
/* ===================================== */

.footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: #E5EAEE;
    padding: 70px 0 30px 0;
    border-top: 4px solid var(--yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 209, 88, 0.3);
    font-size: 13px;
    color: #7796A5;
}
.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: var(--yellow);
}
@media (max-width:1024px){
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px){
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===================================== */
/* STRONY TEKSTOWE (np. polityka) */
/* ===================================== */

.text-page {
    padding: 60px 0;
}

.text-page .container {
    max-width: 900px;
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.text-page h1 {
    margin-bottom: 30px;
}

.text-page h2 {
    margin-top: 30px;
    text-align: left;
}

.text-page ul {
    padding-left: 20px;
}

/* RESPONSYWNOŚĆ */
@media (max-width:768px){

    .text-page .container{
        padding: 25px;
    }

    .text-page h1{
        font-size:22px;
    }

    .text-page h2{
        font-size:18px;
    }

    .text-page{
        padding: 30px 0;
    }
}