/* ==========================================================
   KRZEMOWO — PIERWSZY SZKIC STRUKTURY
   DK Brooks Universe
========================================================== */

:root {
    --bg: #071014;
    --bg-deep: #030709;
    --panel: rgba(9, 18, 22, 0.92);
    --panel-hover: rgba(15, 29, 34, 0.98);

    --orange: #d87532;
    --orange-light: #f2b06f;

    --text: #edf0ef;
    --muted: #b7c0bf;

    --line: rgba(222, 139, 76, 0.24);
    --shadow: rgba(0, 0, 0, 0.64);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(35, 87, 98, 0.22), transparent 34%),
        linear-gradient(180deg, #0a171c 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

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

.hero {
    position: relative;
    min-height: 100svh;
    padding: 28px clamp(18px, 4vw, 64px) 72px;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(2, 7, 9, 0.28) 0%,
            rgba(2, 7, 9, 0.52) 48%,
            rgba(2, 7, 9, 0.94) 100%
        ),
        url("krzemowo-tlo.jpg") center center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), transparent 32%, transparent 68%, rgba(0, 0, 0, 0.38)),
        radial-gradient(circle at center, transparent 44%, rgba(0, 0, 0, 0.36) 100%);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.top-nav {
    width: min(1260px, 100%);
    margin: 0 auto;
    padding-bottom: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.16);

    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.top-nav a {
    color: #e5e8e6;
    text-decoration: none;
}

.top-nav a:hover {
    color: var(--orange-light);
}

.top-nav span {
    color: #a8b1b0;
}

.hero-content {
    width: min(920px, 100%);
    margin: auto;
    padding: 80px 0 62px;
    text-align: center;
}

.eyebrow,
.section-kicker,
.card-label {
    color: var(--orange-light);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.hero h1 {
    margin-top: 12px;

    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(4.4rem, 13vw, 10rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.025em;
    text-transform: uppercase;

    color: #f4f3ed;

    text-shadow:
        0 7px 30px rgba(0, 0, 0, 0.86),
        0 0 32px rgba(216, 117, 50, 0.18);
}

.hero-lead {
    margin-top: 25px;
    color: #f1eee8;
    font-size: clamp(1.15rem, 2.3vw, 1.72rem);
    line-height: 1.5;
}

.hero-note {
    max-width: 720px;
    margin: 20px auto 0;
    color: #c4cdcb;
    font-size: 1rem;
    line-height: 1.85;
}

.scroll-link {
    align-self: center;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;

    color: #d6dddc;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
}

.scroll-link span {
    color: var(--orange-light);
    font-size: 1.3rem;
}

/* ==========================================================
   GŁÓWNA TREŚĆ
========================================================== */

main {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    padding: 70px 0 100px;
}

.intro-section,
.project-note {
    max-width: 900px;
}

.intro-section h2,
.project-note h2 {
    margin-top: 9px;

    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1;
    text-transform: uppercase;
}

.intro-section > p:last-child,
.project-note > p:last-child {
    margin-top: 24px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

/* ==========================================================
   KAFELKI
========================================================== */

.cards {
    margin-top: 54px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    min-height: 295px;
    padding: 30px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(23, 39, 44, 0.36), transparent 52%),
        var(--panel);

    box-shadow:
        0 20px 52px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--orange-light), var(--orange));
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 159, 96, 0.6);
    background:
        linear-gradient(145deg, rgba(34, 58, 64, 0.48), transparent 54%),
        var(--panel-hover);
}

.card-wide {
    grid-column: 1 / -1;
    min-height: 250px;
}

.card-number {
    color: rgba(242, 176, 111, 0.54);
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
}

.card-content {
    margin-top: 28px;
}

.card h3 {
    margin-top: 8px;
    color: #f3efe8;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 400;
    line-height: 1.2;
}

.card-content > p:last-child {
    margin-top: 17px;
    color: var(--muted);
    line-height: 1.8;
}

.card-status {
    margin-top: auto;
    padding-top: 28px;

    color: #8e9b9a;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ==========================================================
   INFORMACJA O KIERUNKU
========================================================== */

.project-note {
    margin-top: 86px;
    padding: 38px;
    border-left: 3px solid var(--orange);
    background:
        linear-gradient(90deg, rgba(216, 117, 50, 0.11), transparent 64%),
        rgba(7, 14, 17, 0.75);
}

/* ==========================================================
   STOPKA
========================================================== */

.page-footer {
    padding: 28px clamp(18px, 4vw, 64px);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    border-top: 1px solid var(--line);
    background: #020506;

    color: #899190;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.page-footer a {
    color: #cbd2d1;
    text-decoration: none;
}

.page-footer a:hover {
    color: var(--orange-light);
}

.page-footer span {
    margin: 0 8px;
    color: var(--orange-light);
}

/* ==========================================================
   RESPONSYWNOŚĆ
========================================================== */

@media (max-width: 760px) {
    .hero {
        background-position: 58% center;
    }

    .top-nav span {
        display: none;
    }

    .hero-content {
        padding-top: 70px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card-wide {
        grid-column: auto;
    }

    .page-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    main {
        width: min(100% - 26px, 1200px);
        padding-top: 55px;
    }

    .card,
    .project-note {
        padding: 25px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .card {
        transition: none;
    }
}
