* {
    box-sizing: border-box;
}

:root {
    --primary: #00b8b8;
    --primary-dark: #009898;
    --text: #17212b;
    --background: #f4f6f8;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text);
    background-color: ;
}

header {
    background: var(--white);
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    border-bottom: 1px solid #e5e7eb;
}

#header-left {
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -1.5px;
}

#header-left h1 {
    margin: 0;
    font-size: 32px;
}

#header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

#header-right a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

#header-right a:hover {
    color: var(--primary-dark);
}

aside {
    float: left;
    width: 21%;
    margin: 30px 0 30px 4%;
    padding: 25px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
}
.aside-h1{
    text-align: center;
}

aside h2,
aside h3 {
    margin-top: 0;
    font-size: 18px;
}

aside a {
    display: block;
    padding: 10px 0;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f0f1f3;
    transition: color 0.2s ease;
}

aside a:hover {
    color: var(--primary-dark);
}

main {
    float: right;
    width: 69%;
    margin: 30px 4% 40px 0;
}

#news-main,
#news-column-first,
#news-column-second {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    color: white;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(20, 30, 40, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#news-main::before,
#news-column-first::before,
#news-column-second::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.05)
    );
    pointer-events: none;
}

#news-main:hover,
#news-column-first:hover,
#news-column-second:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(20, 30, 40, 0.15);
}

#news-main {
    min-height: 380px;
    padding: 32px;
    background-image: url("main.jpg");
}

#news-column {
    display: flex;
    gap: 22px;
    margin-top: 22px;
}

#news-column-first,
#news-column-second {
    flex: 1;
    min-width: 0;
    min-height: 230px;
    padding: 24px;
}

#news-column-first {
    background-image: url("krakow.jpeg");
}

#news-column-second {
    background-image: url("paliwo.jpg");
}

#news-main > *,
#news-column-first > *,
#news-column-second > * {
    position: relative;
    z-index: 1;
}

#news-main h2 {
    max-width: 750px;
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 800;
}

#news-column h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
}

#news-main p,
#news-column p {
    margin-bottom: 0;
    line-height: 1.6;
}

#news-main a,
#news-column a {
    color: white;
    text-decoration: none;
}

footer {
    clear: both;
    padding: 30px 15px;
    text-align: center;
    background: #17212b;
    color: #d1d5db;
    font-size: 14px;
}

footer a {
    color: #5ee5e5;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    aside {
        width: 25%;
        margin-left: 3%;
        padding: 20px;
    }

    main {
        width: 66%;
        margin-right: 3%;
    }

    #news-main {
        min-height: 320px;
    }

    #news-column-first,
    #news-column-second {
        min-height: 200px;
        padding: 18px;
    }
}

@media (max-width: 700px) {
    header {
        min-height: 70px;
        padding: 15px 5%;
        gap: 15px;
    }

    #header-left h1 {
        font-size: 25px;
    }

    #header-right {
        gap: 12px;
        font-size: 13px;
    }

    aside,
    main {
        float: none;
        width: 90%;
        margin: 20px auto;
    }

    aside {
        padding: 18px;
    }

    #news-main {
        min-height: 300px;
        padding: 22px;
    }

    #news-main h2 {
        font-size: 26px;
    }

    #news-column {
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
    }

    #news-column-first,
    #news-column-second {
        min-height: 220px;
        padding: 22px;
    }

    #news-column h2 {
        font-size: 20px;
    }

    footer h2 {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    #header-left h1 {
        font-size: 21px;
    }

    #header-right {
        gap: 8px;
    }

    #news-main h2 {
        font-size: 23px;
    }
}