@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* KOLORY - Ciepła paleta z pasją */
    --background-color: #faf8f3;      /* Biały z nutką ciepła */
    --text-color      : #2c2c2c;      /* Ciemny szary - elegancki */
    --primary-color   : #ff6b35;      /* Żywy pomarańcz - PASJA */
    --secondary-color : #7c3aed;      /* Fiolet - kreatywność */
    --accent-color    : #fbbf24;      /* Amber/złoto - ciepło */
    --success-color   : #16a34a;      /* Zielony dopasowany do palety */
    --success-hover   : #166534;      /* Ciemniejszy zielony na hover */
}

/* RESET */
* {
    box-sizing: border-box;
}

html {
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
}

main {
    flex: 1;
}

/*      CZCIONKI      */

h1, h2, h3, h4 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

p {
    margin: 0 0 1.5em 0;
    font-weight: 400;
    text-align: justify;
    text-indent: 0;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    margin: 2em 0 1em 0;
}

h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    line-height: 1.25;
}

h4 {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    line-height: 1.25;
}












/*      HEADER      */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--background-color);
    border-bottom: 2px solid var(--primary-color);
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(0.8rem, 2.5vw, 2rem);
    margin: 0;
    padding: 0;
}

nav ul li {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

nav ul li a {
    color: inherit;
    text-decoration: none;
}

nav ul li:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

nav ul li.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

@media (max-width: 768px) {
    header {
        position: relative;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav.open ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-color);
        border: 1px solid var(--primary-color);
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav.open ul li {
        margin: 0.5rem 0;
        text-align: center;
    }
}

/*      sections      */

section {
    margin: 2rem auto;
    padding: clamp(1rem, 3vw, 2rem);
    max-width: clamp(320px, 90vw, 1200px);
    width: 100%;
    height: auto;
}

/*      section-1      */

section.section-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    min-height: 50vh;
    text-align: center;
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(167, 218, 220, 0.15) 100%);
    border-radius: 12px;
}

section.section-1 h2 {
    color: var(--primary-color);
    font-weight: 600;
}

section.section-1 h3 {
    color: var(--secondary-color);
    font-weight: 500;
    font-style: italic;
}

section.section-1 h4 {
    color: var(--text-color);
    font-weight: 400;
    opacity: 0.8;
}

section.section-1 h1 {
    color: var(--primary-color);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    section.section-1 {
        min-height: 40vh;
        gap: 0.75rem;
    }
} 













/*      section-2      */

section.section-2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    height: auto;
}

section.section-2 .questions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

section.section-2 .img {
    flex: 1;
    min-width: 250px;
    background: rgba(251, 191, 36, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(68, 122, 156, 0.1);
}

section.section-2 .img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

section.section-2 .questions p {
    background: linear-gradient(135deg, var(--primary-color), rgba(255, 107, 53, 0.85));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.section-2 .questions p:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(68, 122, 156, 0.25);
}

@media (max-width: 768px) {
    section.section-2 {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    section.section-2 .questions,
    section.section-2 .img {
        flex-basis: auto;
        width: 100%;
        min-width: unset;
    }
}

















/*      section-3      */

section.section-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

section.section-3 h3 {
    color: var(--secondary-color);
    font-weight: 500;
}

section.section-3 h2 {
    color: var(--primary-color);
}

section.section-3 h1 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

section.section-3 .buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}

section.section-3 .buttons a {
    background: var(--primary-color);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-decoration: none;
}

section.section-3 .buttons a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 55, 70, 0.3);
}

section.section-3 .buttons a:first-child {
    background: var(--primary-color);
}

section.section-3 .buttons a:last-child {
    background: var(--success-color); /* zielony od startu */
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
}

section.section-3 .buttons a:last-child:hover {
    background: var(--success-hover); /* ciemniejszy zielony przy hover */
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.28);
}

@media (max-width: 768px) {
    section.section-3 .buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    section.section-3 .buttons p {
        width: 100%;
    }
}

footer {
    background: var(--text-color);
    color: white;
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-content p {
    margin: 0;
    color: white;
    text-align: center;
}

.contact-page main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-page section.section-1 {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

.contact-page .content-panel {
    max-width: 900px;
    margin: 0 auto;
}

.contact-page section.section-1 h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-page .content-panel p {
    text-align: left;
}

.contact-page .contact-email {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    margin: 1rem 0;
    color: var(--secondary-color);
}

section.section-3 .buttons a {
    font-size: clamp(1rem, 1.5vw, 1.5rem);  /* z 1.25rem → 1rem */
    line-height: 1.2;
    margin-top: 5%;
    text-align: center;
}


/* ===== Articles list page ===== */
.section-articles {
    text-align: left;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.article-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,248,243,0.98));
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(44,44,44,0.06);
    display: flex;
    flex-direction: column;
    max-width: min(900px, 100vw);
    margin: 0 auto;
}

.article-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-card h3 {
    margin: 0.75rem 0 0.25rem;
    color: var(--text-color);
    font-size: 1.05rem;
}

.article-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    margin-top: 0.25rem;
    color: var(--text-color);
    opacity: 0.85;
    flex: 1;
}

.read-more {
    margin-top: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.read-more:hover {
    background: var(--secondary-color);
}

@media (max-width: 650px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.5em;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .article-card img {
        height: auto;
    }

    section.section-1 h2 {
        text-align: center;
    }

    section.section-3 h1 {
        text-align: center;
    }

    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* ===== Table styles ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.75em;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

/* ===== List styles ===== */
ul, ol {
    text-align: left;
}

li {
    text-align: left;
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    header {
        position: relative;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav.open ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-color);
        border: 1px solid var(--primary-color);
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav.open ul li {
        margin: 0.5rem 0;
        text-align: center;
    }

    section {
        padding: clamp(0.5rem, 2vw, 1rem);
    }

    .article-card {
        padding: 0.75rem;
    }
}

@media (max-width: 650px) {
    body {
        font-size: clamp(0.9rem, 1.2vw, 1rem);
    }

    h1 {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }

    h2 {
        font-size: clamp(1.3rem, 3vw, 2.2rem);
        margin: 1.5em 0 0.75em 0;
    }

    h3 {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }

    section.section-1 {
        min-height: 30vh;
        padding: 1rem 0.5rem;
    }

    section.section-3 {
        padding: 1rem 0.25rem;
    }

    .article-card {
        padding: 0.5rem;
        max-width: 100%;
        margin: 0 auto;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.8rem;
    }

    th, td {
        padding: 0.4em;
        white-space: normal;
    }

    footer {
        padding: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    section.section-1 {
        min-height: 25vh;
        padding: 0.75rem 0.25rem;
    }

    section.section-3 {
        padding: 0.75rem 0.125rem;
    }

    .article-card {
        padding: 0.25rem;
    }

    table {
        font-size: 0.75rem;
    }

    th, td {
        padding: 0.3em;
    }

    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}