:root {
    --green-950: #0a4638;
    --green-900: #0f4a39;
    --green-800: #165844;
    --green-700: #2a6a55;

    --cream-100: #fbf7f1;
    --cream-200: #f4ede2;
    --cream-300: #eadfce;
    --cream-400: #dac8af;

    --gold-500: #c39a54;
    --gold-400: #d3ab67;
    --gold-300: #e0c28e;

    --ink: #173229;
    --muted: #5e6d66;

    --white: #ffffff;

    --border: rgba(15, 74, 57, 0.12);

    --shadow-small:
        0 10px 24px rgba(16, 44, 34, 0.08);

    --shadow-large:
        0 28px 60px rgba(10, 41, 31, 0.12);

    --container: 1200px;

    /* CZCIONKI — zgodne z index.html */
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", Arial, sans-serif;
}

/* ========================================
   RESET
======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}


body {
    margin: 0;

    color: var(--ink);
    background: var(--cream-100);

    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;

    overflow-x: hidden;
}


img {
    display: block;
    max-width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


h1,
h2,
h3,
p {
    margin-top: 0;
}


h1,
h2,
h3 {
    color: var(--green-950);

    font-family: var(--serif);

    line-height: 1.08;
}


h1 {
    margin-bottom: 20px;

    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 600;

    letter-spacing: -0.04em;
}


h2 {
    margin-bottom: 18px;

    font-size: clamp(2.3rem, 4vw, 3.6rem);
    font-weight: 600;

    letter-spacing: -0.03em;
}


h3 {
    margin-bottom: 10px;

    font-size: 1.3rem;
    font-weight: 600;
}


p {
    margin-bottom: 20px;
}


.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}


/* ========================================
   TYPOGRAPHY
======================================== */

.eyebrow {
    margin-bottom: 12px;

    color: var(--gold-500);

    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    line-height: 1.4;

    text-transform: uppercase;
}


.eyebrow-gold {
    color: var(--gold-400);
}


.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    border: 0;

    overflow: hidden;

    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* ========================================
   BUTTONS
======================================== */

.button {
    min-height: 50px;

    padding: 14px 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 4px;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.06em;
    line-height: 1.2;

    text-align: center;
    text-transform: uppercase;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button:focus-visible,
.main-nav a:focus-visible,
.footer-column a:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 4px;
}


.button-primary {
    color: var(--white);

    background: var(--green-900);
    border-color: var(--green-900);

    box-shadow:
        0 8px 18px rgba(8, 56, 44, 0.12);
}


.button-primary:hover {
    background: var(--green-800);
    border-color: var(--green-800);
}


.button-gold {
    color: var(--white);

    background:
        linear-gradient(
            180deg,
            #d6b06a 0%,
            #c4954a 100%
        );

    border-color: #c4954a;
}


.button-gold:hover {
    background:
        linear-gradient(
            180deg,
            #ddb97a 0%,
            #cb9e57 100%
        );

    border-color: #cb9e57;
}


/* ========================================
   HEADER
======================================== */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;

    background: rgba(251, 247, 241, 0.96);

    border-bottom:
        1px solid rgba(15, 74, 57, 0.08);

    backdrop-filter: blur(10px);
}


.header-inner {
    min-height: 86px;

    display: flex;
    align-items: center;

    gap: 28px;
}


.logo {
    display: flex;
    align-items: center;

    gap: 12px;

    flex: 0 0 auto;
}


.logo img {
    width: 48px;
    max-height: 48px;

    object-fit: contain;
}


#tytulowy {
    margin: 0;

    color: var(--green-950);

    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;

    line-height: 0.95;

    letter-spacing: 0.02em;

    text-transform: uppercase;
}


.main-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 22px;
}


.main-nav a {
    position: relative;

    padding: 8px 0;

    color: var(--green-950);

    font-size: 0.72rem;
    font-weight: 600;
}


.main-nav a::after {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;

    content: "";

    background: var(--gold-500);

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform 180ms ease;
}


.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}


.main-nav a.active {
    color: var(--green-800);
}


.header-button {
    min-height: 42px;

    padding: 12px 18px;

    border-radius: 6px;

    font-size: 0.7rem;

    box-shadow: none;
}


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

.materials-hero {
    position: relative;

    min-height: 610px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 90px 0;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(201, 169, 104, 0.13),
            transparent 26%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(15, 74, 57, 0.07),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fcf8f2 0%,
            #f7f0e6 100%
        );

    overflow: hidden;
}


.materials-content {
    position: relative;
    z-index: 2;

    max-width: 850px;

    text-align: center;
}


.materials-content .eyebrow {
    margin-bottom: 16px;

    color: var(--green-700);
}


.materials-content h1 {
    margin-bottom: 16px;

    color: var(--green-950);
}


.gold-line {
    width: 70px;
    height: 2px;

    margin: 0 auto 26px;

    background: var(--gold-500);
}


.construction-label {
    margin-bottom: 20px;

    color: var(--green-900);

    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;

    line-height: 1.1;
}


.materials-description {
    max-width: 650px;

    margin: 0 auto 32px;

    color: var(--muted);

    font-size: 0.98rem;
    line-height: 1.8;
}


.materials-decoration {
    position: absolute;

    color: var(--gold-500);

    font-family: var(--serif);
    font-size: 5rem;

    opacity: 0.18;
}


.decoration-left {
    top: 22%;
    left: 7%;

    transform: rotate(-15deg);
}


.decoration-right {
    right: 7%;
    bottom: 18%;

    transform: rotate(15deg);
}


/* ========================================
   COMING SECTION
======================================== */

.coming-section {
    padding: 90px 0;

    background: var(--cream-100);
}


.coming-card {
    max-width: 1050px;

    padding: 70px 60px;

    margin: 0 auto;

    text-align: center;

    background: var(--white);

    border:
        1px solid rgba(15, 74, 57, 0.08);

    border-radius: 10px;

    box-shadow: var(--shadow-small);
}


.coming-icon {
    width: 54px;
    height: 54px;

    margin: 0 auto 22px;

    display: grid;
    place-items: center;

    color: var(--gold-500);

    border:
        1px solid rgba(195, 154, 84, 0.45);

    border-radius: 50%;

    font-size: 1.4rem;
}


.coming-card > h2 {
    margin-bottom: 16px;
}


.coming-card > p:not(.eyebrow) {
    max-width: 680px;

    margin-right: auto;
    margin-bottom: 48px;
    margin-left: auto;

    color: var(--muted);
}


/* ========================================
   MATERIAL ITEMS
======================================== */

.materials-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    text-align: left;
}


.material-item {
    min-height: 210px;

    padding: 28px 24px;

    background: var(--cream-100);

    border:
        1px solid rgba(15, 74, 57, 0.08);

    border-radius: 7px;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}


.material-item:hover {
    transform: translateY(-4px);

    border-color:
        rgba(195, 154, 84, 0.42);

    box-shadow: var(--shadow-small);
}


.material-number {
    display: block;

    margin-bottom: 16px;

    color: var(--gold-500);

    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
}


.material-item h3 {
    margin-bottom: 10px;

    font-size: 1.15rem;

    text-transform: uppercase;
}


.material-item p {
    margin-bottom: 0;

    color: var(--muted);

    font-size: 0.84rem;
    line-height: 1.6;
}


/* ========================================
   NEWSLETTER
======================================== */
.newsletter-section {
    padding: 70px 0;

    color: var(--cream-100);

    background: var(--green-950);
}

.newsletter-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 0.9fr);

    align-items: center;

    gap: 60px;
}

.newsletter-section h2,
.newsletter-section h3 {
    color: var(--cream-100);
}

.newsletter-section h2 {
    font-size:
        clamp(2.4rem, 4vw, 3.6rem);
}

.newsletter-section p {
    max-width: 680px;

    color:
        rgba(253, 251, 246, 0.76);
}

.newsletter-box {
    padding: 26px;

    border:
        1px solid rgba(220, 192, 128, 0.22);

    background:
        rgba(255, 255, 255, 0.04);

    border-radius: 6px;
}

.newsletter-box h3 {
    font-size: 1.35rem;
}

.newsletter-box p {
    font-size: 0.82rem;
}

.newsletter-form {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;
}

.newsletter-form input {
    min-width: 0;

    min-height: 50px;

    padding: 14px 16px;

    color: var(--ink);

    background: var(--white);

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

    border-right: 0;

    outline: none;
}


.newsletter-form input::placeholder {
    color: #6b756f;
}

.newsletter-form input:focus {
    border-color: var(--gold-400);
}

.newsletter-note {
    margin: 10px 0 0;

    color: rgba(253, 251, 246, 0.65);

    font-size: 0.68rem;

    line-height: 1.4;

    text-align: left;
}

.newsletter-note span {
    margin-right: 5px;
}


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

.site-footer {
    padding-top: 48px;

    color:
        rgba(253, 251, 246, 0.74);

    background: #0a382c;
}


.footer-grid {
    display: grid;

    grid-template-columns:
        1.3fr 1fr 1fr 1fr;

    gap: 36px;
}


.footer-brand img {
    width: 150px;
    max-height: 64px;

    margin-bottom: 18px;

    object-fit: contain;
    object-position: left;

    filter: brightness(0) invert(1);
}


.footer-brand p {
    max-width: 240px;

    font-size: 0.8rem;
}


.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;
}


.footer-column h2 {
    margin-bottom: 8px;

    color: var(--cream-100);

    font-family: var(--sans);
    font-size: 0.72rem;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


.footer-column a {
    font-size: 0.76rem;

    transition:
        color 180ms ease;
}


.footer-column a:hover {
    color: var(--gold-400);
}


.footer-bottom {
    margin-top: 42px;

    padding: 18px 0;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);
}


.footer-bottom p {
    margin: 0;

    font-size: 0.72rem;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1050px) {

    .main-nav {
        gap: 14px;
    }


    .main-nav a {
        font-size: 0.66rem;
    }


    .materials-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .newsletter-grid {
        gap: 42px;
    }


    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* ========================================
   MOBILE NAV / TABLET
======================================== */

@media (max-width: 850px) {

    html {
        scroll-padding-top: 140px;
    }


    .header-inner {
        padding: 14px 0;

        flex-wrap: wrap;

        gap: 12px 20px;
    }


    .main-nav {
        order: 3;

        width: 100%;

        padding-top: 8px;

        border-top:
            1px solid var(--border);

        justify-content: flex-start;

        overflow-x: auto;
    }


    .main-nav a {
        padding: 10px 0;

        white-space: nowrap;
    }


    .header-button {
        margin-left: auto;
    }


    .materials-hero {
        min-height: 540px;

        padding: 70px 0;
    }


    .materials-decoration {
        display: none;
    }


    .coming-section {
        padding: 70px 0;
    }


    .coming-card {
        padding: 55px 35px;
    }


    .newsletter-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 620px) {

    .container {
        width:
            min(
                calc(100% - 30px),
                var(--container)
            );
    }


    .site-header {
        position: relative;
    }


    .header-inner {
        justify-content: center;
    }


    .logo {
        width: 100%;

        justify-content: center;
    }


    .header-button {
        margin: 0;
    }


    h1 {
        font-size: 3.2rem;
    }


    h2 {
        font-size: 2.2rem;
    }


    .materials-hero {
        min-height: 500px;

        padding: 60px 0;
    }


    .construction-label {
        font-size: 2rem;
    }


    .materials-description {
        font-size: 0.9rem;
    }


    .coming-section {
        padding: 55px 0;
    }


    .coming-card {
        padding: 45px 20px;
    }


    .coming-card > p:not(.eyebrow) {
        margin-bottom: 35px;
    }


    .materials-grid {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .material-item {
        min-height: auto;

        padding: 26px 22px;
    }


    .newsletter-section {
        padding: 60px 0;
    }


    .newsletter-form {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    .newsletter-form input {
        border-right:
            1px solid rgba(255, 255, 255, 0.16);
    }


    .newsletter-form .button {
        width: 100%;
    }


    .newsletter-box {
        padding: 22px 18px;
    }


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