@import url('https://fonts.googleapis.com/css2?family=TASA+Orbiter:wght@400..800&display=swap');

:root {
    --color-primary: #000000;
    --color-secondary: #ffffff;
    --color-text: #212529;
    --color-background: #ffffff;
    --color-accent: #EC572A;
    --header-height: 104px;
    --footer-height: 76px;
}

* { box-sizing: border-box; }

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

html { scroll-behavior: smooth; }

body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: "TASA Orbiter", sans-serif;
    color: var(--color-text);
    background: var(--color-background);
}

img { max-width: 100%; height: auto; }

/* Nagłówek leży bezpośrednio na sekcji hero i nie zajmuje osobnego miejsca. */
#header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 10;
    background: transparent;
}

.navbar {
    min-height: var(--header-height);
    padding: 18px clamp(18px, 3vw, 48px);
    background: transparent !important;
}

.navbar .container-fluid {
    width: 100%;
    padding: 0;
}

a.navbar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px 28px;
    border-radius: 65px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.navbar-brand img {
    display: block;
    width: auto;
    height: 28px;
}

main {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
}

#hero {
    isolation: isolate;
    position: relative;
    min-width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    text-align: left;
    background: #151515 url(/assets/img/hero-bg.jpg) center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.48) 46%, rgba(0,0,0,.12) 100%),
        linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,.18));
}

.hero-content {
    width: 100%;
    padding: calc(var(--header-height) + 24px) clamp(24px, 6vw, 96px) 32px;
}

.hero-panel { max-width: 700px; }

.hero-panel h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.45rem, 5vw, 5.35rem);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
}

.hero-panel h1, .hero-panel p {
    text-shadow: 0px 0px 8px #000;
}

.hero-lead {
    max-width: 700px;
    margin: clamp(18px, 3vh, 30px) 0 0;
    font-size: clamp(1.05rem, 1.55vw, 1.35rem);
    line-height: 1.48;
}

.hero-meta {
    margin: 14px 0 0;
    font-size: clamp(.92rem, 1.2vw, 1.05rem);
    font-weight: 400;
}

span.font_orange {
    color: #EC572A;
}

span.font_bold {
    font-weight: 700;
}

a.btn {
    border: 0;
    border-radius: 65px;
    padding: 8px 35px;
}

a.btn.orange {
    margin-top: clamp(22px, 3.2vh, 34px);
    padding: 14px 48px;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    font-weight: 700;
}

.orange { background-color: var(--color-accent); }
.orange:hover, .orange:focus-visible {
    background-color: #ffffff;
    color: var(--color-accent);
}

.btn_icon {
    display: inline-block;
    position: relative;
    top: 2px;
    width: 30px;
    height: 22px;
    margin-left: 6px;
}

.orange .btn_icon.slide {
    background: url(/assets/img/sliders-horizontal-stroke-rounded.svg) center / auto 100% no-repeat;
}

.orange:hover .btn_icon.slide,
.orange:focus-visible .btn_icon.slide {
    background-image: url(/assets/img/sliders-horizontal-stroke-rounded-orange.svg);
}

#footer {
    flex: 0 0 auto;
    min-height: var(--footer-height);
    position: relative;
    margin-top: -60px;
    padding: 16px clamp(18px, 3vw, 48px);
    border-radius: 38px 38px 0 0;
    background-color: #0f0f0f;
    color: #ffffff;
    text-align: center;
}

.footer-inner {
    min-height: calc(var(--footer-height) - 32px);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
}

#footer p { margin: 0; font-size: .9rem; }
#footer p a {
    position: relative;
    display: inline-block;
    padding: 0 12px 3px;
    color: #e3702b;
    text-decoration: none;
    transition: color .3s ease-out;
}
#footer p a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transform: translateX(-50%);
    transition: width .3s ease-out;
}
#footer p a:hover { color: #ffffff; }
#footer p a:hover::after { width: calc(100% - 24px); }
#footer .separator { color: #494949; }

@media (max-width: 767.98px) {
    :root { --header-height: 86px; --footer-height: 104px; }
    .navbar { padding: 14px 18px; }
    a.navbar-brand { padding: 11px 18px; }
    .navbar-brand img { height: 27px; }

    #hero { align-items: center; 
	background: #151515 url(/assets/img/hero-bg-mobile.jpg) center / cover no-repeat;}
    .hero-overlay {
        background: linear-gradient(0deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.52) 58%, rgba(0,0,0,.16) 100%);
    }
    .hero-content { padding: calc(var(--header-height) + 14px) 22px 26px; }
    .hero-panel { max-width: 560px; }
    .hero-panel h1 { font-size: clamp(2rem, 10vw, 3.25rem); line-height: 1.02; }
    .hero-lead { margin-top: 15px; font-size: .98rem; line-height: 1.38; }
    .hero-meta { margin-top: 10px; font-size: .86rem; }
    a.btn.orange { width: 100%; margin-top: 18px; padding: 12px 24px; font-size: 1.08rem; }

    #footer { padding: 11px 16px; border-radius: 28px 28px 0 0; }
    .footer-inner { flex-direction: column; justify-content: center; gap: 5px; }
    #footer p { font-size: .72rem; line-height: 1.25; }
}

@media (max-height: 700px) {
    :root { --header-height: 76px; --footer-height: 66px; }
    .navbar { min-height: var(--header-height); padding-top: 10px; padding-bottom: 10px; }
    .navbar-brand img { height: 25px; }
    .hero-content { padding-top: calc(var(--header-height) + 8px); padding-bottom: 16px; }
    .hero-panel h1 { font-size: clamp(2rem, 7vh, 4rem); }
    .hero-lead { margin-top: 12px; font-size: .95rem; line-height: 1.32; }
    .hero-meta { margin-top: 7px; }
    a.btn.orange { margin-top: 14px; padding-top: 10px; padding-bottom: 10px; }
    #footer { min-height: var(--footer-height); padding-top: 9px; padding-bottom: 9px; }
}

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