/* =========================================================
   OSP GRODYSŁAWICE
   Czysty CSS - bez frameworków
========================================================= */

:root {
    --black: #111111;
    --dark: #1b1b1b;
    --white: #ffffff;
    --light: #f5f5f3;
    --line: #ddddda;
    --gray: #666666;
    --red: #c8102e;
    --red-dark: #a80d26;

    --container: 1200px;
    --radius: 8px;
    --ease: 280ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

button,
a {
    font: inherit;
}

button {
    border: 0;
}

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

figure {
    margin: 0;
}

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


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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(12px);
    transition: box-shadow var(--ease);
}

.site-header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50%;
    background: #111;
    flex: 0 0 42px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-size: 15px;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width var(--ease);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-contact {
    padding: 10px 16px;
    border-radius: 5px;
    background: var(--red);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    transition: background var(--ease), transform var(--ease);
}

.nav-contact:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: var(--black);
    transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* =========================================================
   TYPOGRAFIA / WSPÓLNE
========================================================= */

.eyebrow {
    margin-bottom: 12px;
    color: var(--red);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.section {
    padding: 115px 0;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 65px;
}

.section-number {
    padding-top: 5px;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.section-heading h2 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 21px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: background var(--ease), transform var(--ease);
}

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

.button-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.button span {
    transition: transform var(--ease);
}

.button:hover span {
    transform: translateX(4px);
}


/* =========================================================
   HERO - CELOWO NISKI, BEZ DUŻEGO ZDJĘCIA
========================================================= */

.hero {
    min-height: 500px;
    padding-top: 76px;
    display: flex;
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 424px;
}

.hero-copy {
    max-width: 760px;
}

.hero h1 {
    margin-bottom: 24px;
    font-size: clamp(55px, 8vw, 98px);
    line-height: 0.91;
    letter-spacing: -0.065em;
}

.hero h1 span {
    color: var(--red);
}

.hero-text {
    max-width: 540px;
    margin-bottom: 30px;
    color: var(--gray);
    font-size: 17px;
    line-height: 1.65;
}

.hero-side {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 38px;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    writing-mode: horizontal-tb;
    transform: none;
}

.hero-line {
    width: 42px;
    height: 1px;
    background: var(--red);
}


/* =========================================================
   O NAS
========================================================= */

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 85px;
    align-items: center;
}

.large-text {
    max-width: 590px;
    color: #333;
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.62;
    letter-spacing: -0.018em;
}

.about-image {
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #eee;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   DZIAŁALNOŚĆ
========================================================= */

.activity {
    background: var(--light);
}

.activity-list {
    border-top: 1px solid var(--line);
}

.activity-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 45px;
    gap: 30px;
    align-items: center;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
    transition: padding var(--ease);
}

.activity-item:hover {
    padding-left: 8px;
}

.activity-number {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.activity-item h3 {
    max-width: 800px;
    margin-bottom: 10px;
    font-size: clamp(21px, 2.5vw, 31px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.activity-item p {
    max-width: 760px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.75;
}

.activity-arrow {
    color: #999;
    font-size: 22px;
    transition: color var(--ease), transform var(--ease);
}

.activity-item:hover .activity-arrow {
    color: var(--red);
    transform: translate(4px, -4px);
}


/* =========================================================
   WYDARZENIA
========================================================= */

.events {
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.event-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform var(--ease), box-shadow var(--ease);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.event-image {
    height: 290px;
    overflow: hidden;
    background: #eee;
}

.event-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.event-card:hover .event-image img {
    transform: scale(1.035);
}

.event-content {
    padding: 25px 25px 28px;
}

.event-label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.event-content h3 {
    margin-bottom: 11px;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.event-content p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   GALERIA
========================================================= */

.gallery-section {
    background: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: 250px;
    gap: 12px;
}

.gallery-item {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #ddd;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
}

.gallery-large {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-portrait {
    grid-row: span 2;
}


/* =========================================================
   KONTAKT
========================================================= */

.contact {
    background: var(--black);
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact h2 {
    font-size: clamp(45px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.contact-content > p {
    max-width: 530px;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    line-height: 1.75;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.contact-detail {
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-detail span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.contact-detail strong {
    font-size: 15px;
    font-weight: 500;
}

.contact-detail strong a {
    color: inherit;
    transition: color var(--ease);
}

.contact-detail strong a:hover {
    color: var(--red);
}


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

.site-footer {
    padding: 28px 0;
    background: #090909;
    color: var(--white);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}

.footer-inner span,
.footer-inner p {
    color: #777;
    font-size: 11px;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 90px;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--ease), visibility var(--ease);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(1200px, 90vw);
    max-height: 84vh;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    color: var(--white);
    background: transparent;
    cursor: pointer;
    transition: color var(--ease), transform var(--ease);
}

.lightbox-close {
    top: 18px;
    right: 24px;
    font-size: 42px;
    font-weight: 300;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--red);
}

.lightbox-prev:hover {
    transform: translate(-4px, -50%);
}

.lightbox-next:hover {
    transform: translate(4px, -50%);
}


/* =========================================================
   ANIMACJE
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


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

@media (max-width: 950px) {

    .main-nav {
        gap: 18px;
    }

    .nav-contact {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-copy {
        max-width: 700px;
    }

    .about-image {
        height: 450px;
    }

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

    .event-image {
        height: 330px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}


@media (max-width: 700px) {

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

    .header-inner {
        min-height: 68px;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 19px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--ease), visibility var(--ease), transform var(--ease);
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 455px;
        padding-top: 68px;
    }

    .hero-inner {
        min-height: 387px;
    }

    .hero h1 {
        font-size: clamp(54px, 16vw, 75px);
    }

    .hero-text {
        max-width: 470px;
        font-size: 15px;
    }

    .hero-side {
        display: none;
    }

    .section {
        padding: 82px 0;
    }

    .section-heading {
        gap: 16px;
        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .large-text {
        font-size: 20px;
    }

    .about-image {
        height: 330px;
    }

    .activity-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 14px;
        padding: 30px 0;
    }

    .activity-arrow {
        display: none;
    }

    .activity-item h3 {
        font-size: 22px;
    }

    .activity-item p {
        font-size: 13px;
    }

    .event-image {
        height: 280px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
        gap: 8px;
    }

    .gallery-large {
        grid-row: span 2;
    }

    .gallery-wide {
        grid-column: span 2;
    }

    .gallery-portrait {
        grid-row: span 2;
    }

    .contact h2 {
        font-size: 50px;
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .lightbox {
        padding: 55px 18px;
    }

    .video-lightbox {
        padding: 55px 14px 20px;
    }

    .video-lightbox video {
        width: 96vw;
        max-height: 78vh;
    }

    .lightbox img {
        max-width: 94vw;
        max-height: 78vh;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   KAFEL FILMOWY W GALERII
========================================================= */

.gallery-video {
    position: relative;
    cursor: pointer;
}

.gallery-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111;
    transition: transform 650ms ease;
}

.gallery-video:hover video {
    transform: scale(1.035);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.12),
        rgba(0,0,0,0.48)
    );
    color: #fff;
    pointer-events: none;
}

.video-play {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    padding-left: 3px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    background: rgba(200,16,46,0.92);
    font-size: 20px;
    line-height: 1;
    transition: transform var(--ease), background var(--ease);
}

.gallery-video:hover .video-play {
    transform: scale(1.07);
    background: var(--red-dark);
}

.video-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* =========================================================
   VIDEO LIGHTBOX
========================================================= */

.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0,0,0,0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--ease), visibility var(--ease);
}

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-lightbox video {
    width: min(1100px, 92vw);
    max-height: 84vh;
    border-radius: 6px;
    background: #000;
    outline: none;
}

.video-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-size: 42px;
    font-weight: 300;
    transition: color var(--ease);
}

.video-lightbox-close:hover {
    color: var(--red);
}
