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

:root {
    --bg-page: #111111;
    --bg-header: #161616;
    --bg-section: #181818;
    --bg-panel: #242322;
    --bg-card: rgba(31, 31, 30, 0.72);
    --text-primary: #f1f0ec;
    --text-secondary: #c7c3bc;
    --text-muted: #8f8b84;
    --accent: #b9b0a5;
    --accent-hover: #ddd6cc;
    --border: #343331;
    --shadow: rgba(0, 0, 0, 0.35);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-page);
}

.fade-section {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1.35s ease, transform 1.35s ease;
}

.fade-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.accent {
    color: #f26a21 !important;
}

.hero-accent {
    opacity: 0;
    transform: translateX(720px);
}

.hero-accent.is-visible {
    animation: slideInFromRight 1.8s cubic-bezier(0.25, 0.85, 0.35, 1) both;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(720px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============ NAGŁÓWEK ============ */
.header {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.is-scrolled {
    background-color: rgba(18, 18, 18, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* border-bottom-color: var(--border); */
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: inline-flex;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-hover);
}

.nav-links a.nav-link-accent {
    color: #f26a21;
}

.nav-links a.nav-link-accent:hover {
    color: #ff7a32;
}

/* ============ HERO BANNER ============ */
.hero {
    position: relative;
    min-height: 520px;
    background-color: var(--bg-page);
}

.hero-background {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem 15rem;
}

.hero h1 {
    /* font-family: 'Bebas Neue', sans-serif; */
    font-family: 'Oswald', sans-serif;
    font-size: 10rem;
    text-transform: uppercase;
    line-height: 1em;
    color: var(--text-primary);
}

.hero-image {
    position: relative;
    flex: 0 0 33.333vw;
    max-width: 33.333vw;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(17, 17, 17, 0.82), rgba(17, 17, 17, 0.08));
    z-index: 1;
}

.hero-fill {
    flex: 1;
    background-color: var(--bg-panel);
}

.hero-full-image {
    overflow: hidden;
}

.hero-full-image .hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-full-image .hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.42)),
        rgba(17, 17, 17, 0.26);
}

.hero-full-image .hero-background video,
.hero-full-image .hero-background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08) brightness(0.62);
}

/* ============ ABOUT US ============ */
.about-us {
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem;
    background: var(--bg-page);
}

.about-us::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        repeating-radial-gradient(circle at 17% 23%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 3px),
        repeating-radial-gradient(circle at 82% 61%, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 4px);
    opacity: 0;
    transition: opacity 1.8s ease;
}

.about-us::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 112% -18%, rgba(242, 106, 33, 0.22) 0%, rgba(242, 106, 33, 0.1) 18%, rgba(17, 17, 17, 0) 48%);
    opacity: 0;
    transition: opacity 2.2s ease;
}

.about-us.is-visible::before {
    opacity: 0.075;
}

.about-us.is-visible::after {
    opacity: 1;
}

.about-us .container {
    position: relative;
    z-index: 2;
}

.about-layout {
    display: block;
}

.about-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.about-body .section-copy {
    flex: 1 1 0;
    max-width: 780px;
    min-width: 0;
}

.about-heading-logo {
    flex: 0 0 auto;
    width: clamp(210px, 24vw, 360px);
    height: auto;
}

.about-title {
    font-family: 'Oswald', sans-serif;
    font-size: 8rem;
    line-height: 1;
    color: #f26a21;
}

.section-copy {
    max-width: 780px;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

p.about-us-p {
    font-size: 2.3rem;
}

.partners-copy {
    max-width: none;
}

/* ============ PARTNERS ============ */
.partners-section {
    padding: 3rem 2rem;
    background-color: var(--bg-section);
}

.partners-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: center;
    gap: 1.5rem;
}

.partner-logo {
    min-width: 0;
    min-height: 118px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(185, 176, 165, 0.24);
    border-radius: 8px;
    background-color: rgba(31, 31, 30, 0.42);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    border-color: rgba(185, 176, 165, 0.45);
}

.partner-logo img {
    display: block;
    width: 100%;
    max-width: 190px;
    max-height: 72px;
    object-fit: contain;
}

/* ============ CONTENT SECTION ============ */
.content-section {
    padding: 4rem 2rem;
    background-color: var(--bg-section);
}

/* ============ CONTACT ============ */
.contact-section {
    padding: 0;
    background-color: var(--bg-section);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 33.333vw) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.contact-image {
    position: relative;
    min-height: 560px;
    max-height: 600px;
    width: 100%;
    overflow: hidden;
}

.contact-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(17, 17, 17, 0.82), rgba(17, 17, 17, 0.08));
    z-index: 1;
}

.contact-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(1) contrast(1.08) brightness(0.72);
}

.contact-details h2 {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 560px;
    padding: 4rem 2rem 4rem 4rem;
    justify-content: center;
}

.contact-detail span {
    display: block;
    margin-bottom: 0.45rem;
    color: #f26a21;
    font-weight: 700;
}

.contact-detail p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.7;
}

.contact-detail a {
    color: var(--text-secondary);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.cards-full-width {
    position: relative;
    z-index: 2;
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 0 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.card {
    min-width: 0;
    /* background-color: var(--bg-card); */
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: start;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    border-color: rgba(185, 176, 165, 0.45);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1179px) {
    .hero-content {
        padding-inline: clamp(1.25rem, 5vw, 3rem);
    }

    .hero h1 {
        font-size: clamp(3rem, 11vw, 8rem);
    }

    .hero-accent {
        transform: translateX(40vw);
    }

    .hero-accent.is-visible {
        animation-name: slideInFromRightNarrow;
    }

    @keyframes slideInFromRightNarrow {
        from {
            opacity: 0;
            transform: translateX(40vw);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        min-height: 440px;
    }

    .hero-background {
        flex-direction: column;
    }

    .hero-image {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
        height: 280px;
    }

    .cards-grid {
        gap: 1.5rem;
    }

    .partners-row {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

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

    .contact-image,
    .contact-details {
        min-height: auto;
    }

    .contact-image {
        aspect-ratio: 16 / 10;
    }

    .contact-details {
        padding: 3rem 2rem;
    }

    .about-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .about-heading-logo {
        align-self: center;
        width: min(260px, 70vw);
    }
}

@media (max-width: 800px) {
    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {

    .hero-content {
        padding-top: 10rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 30vw, 3rem);
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .partners-row {
        grid-template-columns: minmax(0, 1fr);
    }
    p.about-us-p {
        font-size: 1.5rem;
    }

}

/* @media (prefers-reduced-motion: reduce) {
    .fade-section,
    .hero-accent {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
} */
