/*
Theme Name: Like a Plan
Theme URI: https://likeaplan.events
Author: Like a Plan Events
Description: Jednopazdestronna strona dla agencji eventowej Like a Plan – 9 sekcji z kotwicami
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: likeaplan
*/

/* ============================
   FONTY WŁASNE
   ============================ */
@font-face {
    font-family: 'Benedict';
    src: url('fonts/Benedict-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('fonts/TT-Ramillas-Trial-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('fonts/TT-Ramillas-Trial-Light-Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('fonts/TT-Ramillas-Trial-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('fonts/TT-Ramillas-Trial-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('fonts/TT-Ramillas-Trial-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Ramillas';
    src: url('fonts/TT-Ramillas-Trial-Medium-Italic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* ============================
   ZMIENNE
   ============================ */
:root {
    --color-white:   #ffffff;
    --color-black:   #111111;
    --color-dark:    #1a1a1a;
    --color-mid:     #2a2a2a;
    --color-gray:    #e8e8e8;
    --color-gray2:   #cccccc;
    --font-script:   'Benedict', cursive;
    --font-rough:    'Benedict', cursive;
    --font-serif:    'TT Ramillas', serif;
    --font-sans:     'TT Ramillas', sans-serif;
    --font-calligraphy: 'Benedict', cursive;
    --nav-height:    72px;
    --section-pad:   96px 0;
    --radius-card:   24px;
    --radius-pill:   50px;
    --transition:    0.3s ease;
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================
   NAVIGACJA
   ============================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background var(--transition), border-color var(--transition);
}

.site-nav.nav-dark {
    background: rgba(26, 26, 26, 0.97);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-logo {
    font-family: var(--font-script);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.5px;
    transition: color var(--transition);
}

.site-nav.nav-dark .nav-logo { color: var(--color-white); }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-black);
    opacity: 0.75;
    transition: opacity var(--transition), color var(--transition);
    position: relative;
    padding-bottom: 3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

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

.site-nav.nav-dark .nav-links a { color: var(--color-white); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: var(--transition);
}

.site-nav.nav-dark .nav-toggle span { background: var(--color-white); }

/* ============================
   WSPÓLNE STYLE SEKCJI
   ============================ */
.section {
    min-height: 100vh;
    padding: var(--section-pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section:first-of-type { padding-top: var(--nav-height); }

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

.section-dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Placeholder zdjęcia */
.photo-placeholder {
    background: var(--color-gray);
    border: 2px dashed var(--color-gray2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray2);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::after {
    content: '+ zdjęcie';
}

/* Gdy w placeholder jest prawdziwy img – dodaj klasę "filled" w HTML */
.photo-placeholder.filled {
    background: transparent !important;
    border-color: transparent !important;
    display: block;
}

.photo-placeholder.filled::after {
    display: none !important;
}

.photo-placeholder.filled img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.home-photo.filled img {
    object-fit: contain;
}

.about-photo .filled img {
    object-fit: contain;
}

.section-dark .photo-placeholder {
    background: #333;
    border-color: #555;
    color: #777;
}

/* Typografia sekcji */
.section-heading {
    font-family: var(--font-rough);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.4em;
}

.section-subtext {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 640px;
}

/* Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border-radius: var(--radius-pill);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-outline {
    border: 2px solid var(--color-black);
    color: var(--color-black);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-outline-white {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

/* ============================
   SEKCJA 1 – HOME
   ============================ */
#home {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
    background: var(--color-white);
    text-align: center;
}

.home-tagline {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--color-black);
    margin-bottom: 16px;
}

.home-brand {
    font-family: var(--font-script);
    font-size: clamp(72px, 14vw, 160px);
    font-weight: 700;
    line-height: 0.95;
    color: var(--color-black);
    letter-spacing: -2px;
    margin-bottom: 48px;
    text-shadow:
        4px 4px 0px rgba(0,0,0,0.12),
        5px 5px 0px rgba(0,0,0,0.06);
    position: relative;
    display: inline-block;
}

.home-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 48px;
    align-items: start;
}

.home-photo--left {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
}

.home-photo-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.home-stat {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-black);
    text-align: left;
    padding: 4px 0 8px;
}

.home-photo-tall-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-photo--right-top,
.home-photo--right-bottom {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    width: 100%;
}

.home-description {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 700px;
    margin: 0 auto 48px;
    color: var(--color-black);
}

.home-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   SEKCJA 2 – O MNIE
   ============================ */
#o-mnie {
    background: var(--color-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}

.about-title {
    font-family: var(--font-rough);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 32px;
    line-height: 1.1;
}

.about-text p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-photo .photo-placeholder {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    width: 100%;
}

/* O mnie – drugi blok (zdjęcie po lewej, tekst po prawej) */
.about-grid--block2 {
    margin-top: 72px;
    padding-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================
   SEKCJA 3 – WARTOŚCI
   ============================ */
#wartosci {
    background: var(--color-white);
}

.values-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 48px;
}

.values-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 48px;
}

.values-heading .script {
    font-family: var(--font-script);
    font-size: 1.6em;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.values-photo-1 {
    width: min(500px, 80%);
    aspect-ratio: 4/3;
    margin: 0 auto 56px;
    border-radius: 4px;
}

.values-main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: end;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.value-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    align-items: baseline;
    border-bottom: 1px solid var(--color-gray);
    padding: 14px 0;
}

.value-row:last-child { border-bottom: none; }

.value-label {
    font-family: var(--font-calligraphy);
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--color-black);
    font-style: normal;
    line-height: 1.2;
}

.value-desc {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--color-black);
    line-height: 1.65;
}

.values-notebook-photo {
    width: 300px;
    aspect-ratio: 3/4;
    border-radius: 4px;
    align-self: flex-end;
}

/* ============================
   SEKCJA 4 – STATYSTYKI
   ============================ */
#statystyki {
    background: var(--color-dark);
}

.stats-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.stats-heading {
    font-family: var(--font-calligraphy);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 64px;
    line-height: 1.2;
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: center;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 8px 0;
}

.stat-row--budget {
    align-items: baseline;
}

.stat-number {
    font-family: var(--font-script);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-variant-numeric: tabular-nums;
	font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    display: inline-block;
    text-align: left;
}

.stat-label {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.stat-label--pre {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-right: 8px;
    white-space: nowrap;
}

.stat-label--post {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-left: 8px;
    white-space: nowrap;
}

.stats-photo {
    width: 380px;
    aspect-ratio: 3/4;
    border-radius: 4px;
    align-self: center;
}

/* Przypis pod statystykami */
.stats-footnote {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 48px;
    line-height: 1.6;
    font-style: italic;
}

/* ============================
   SEKCJA 5 – REALIZACJE (karty)
   ============================ */
#realizacje {
    background: var(--color-white);
}

.realizacje-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.realizacje-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
    color: var(--color-black);
}

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

.project-card {
    border: 2px solid var(--color-black);
    border-radius: var(--radius-card);
    padding: 36px 28px 40px;
}

.project-card-title {
    font-family: var(--font-script);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 20px;
    text-align: center;
}

.project-stats {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-black);
}

.project-desc {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-black);
    text-align: center;
}

.project-year {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gray2);
    margin-top: 16px;
    text-align: center;
}

/* ============================
   SEKCJA 6 – KONTAKT (dane)
   ============================ */
.kontakt-info-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}

.kontakt-tagline-top {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 30px;
}

.kontakt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.kontakt-info-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.kontakt-logo-text {
    font-family: var(--font-script);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1;
}

.kontakt-info-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kontakt-detail {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    font-style: normal;
    line-height: 1.7;
    transition: color var(--transition);
}

a.kontakt-detail:hover { color: var(--color-white); }

.kontakt-address { margin-top: 10px; }

.kontakt-social {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kontakt-social-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.kontakt-social-link:hover { color: var(--color-white); }

.kontakt-info-photo .photo-placeholder {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    width: 100%;
}

/* ============================
   SEKCJA 7 – GŁOSY ZZA KULIS
   ============================ */
#glosy {
    background: var(--color-white);
    padding: 80px 0;
    min-height: auto;
}

.glosy-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.glosy-wrap .section-heading {
    text-align: center;
    margin-bottom: 56px;
}

.glosy-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-track-wrap {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.carousel-slide:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    flex: 1;
    min-height: 0;
}

.carousel-slide-link {
    display: block;
    padding: 9px 14px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.4px;
    color: rgba(0,0,0,0.4);
    text-decoration: none;
    transition: color var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.carousel-slide-link:hover {
    color: var(--color-black);
}

.glosy-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    overflow-y: auto;
    padding: 56px 20px 40px;
    text-align: center;
    cursor: zoom-out;
    box-sizing: border-box;
}

.glosy-lightbox.open {
    display: block;
}

.glosy-lightbox-img {
    display: block;
    margin: 0 auto;
    max-width: min(90vw, 860px);
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.5);
    cursor: default;
}

.glosy-lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.glosy-lightbox-close:hover {
    color: #fff;
}

/* Głosy — miniatury */
.glosy-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.glosy-thumbs::-webkit-scrollbar { display: none; }

.glosy-thumb {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.glosy-thumb-img {
    position: relative;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    background: #fff;
    transition: box-shadow 0.3s;
}

.glosy-thumb-img:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.2);
}

.glosy-thumb-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.glosy-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: none;
}

.glosy-thumb-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 200;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s, transform 0.3s;
}

.glosy-thumb-img:hover .glosy-thumb-overlay { background: rgba(0,0,0,0.35); }
.glosy-thumb-img:hover .glosy-thumb-icon { opacity: 1; transform: scale(1); }

.glosy-thumb-link {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.8px;
    color: rgba(0,0,0,0.38);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.glosy-thumb-link:hover { color: var(--color-black); }

/* Lightbox głosy */
#glosy-lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    overflow-y: auto;
    padding: 56px 20px 40px;
    box-sizing: border-box;
    text-align: center;
    cursor: zoom-out;
}

#glosy-lb.open { display: block; }

.glosy-lb-img {
    display: block;
    margin: 0 auto;
    max-width: min(90vw, 700px);
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.5);
    cursor: default;
}

.glosy-lb-prev,
.glosy-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 10001;
}

.glosy-lb-prev:hover,
.glosy-lb-next:hover { background: rgba(255,255,255,0.22); }

.glosy-lb-prev { left: 12px; }
.glosy-lb-next { right: 12px; }

.glosy-lb-close {
    position: fixed;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
    padding: 0;
}

.glosy-lb-close:hover { color: #fff; }

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    background: var(--color-white);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.carousel-btn:hover {
    background: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.18);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
    background: var(--color-black);
    transform: scale(1.25);
}

/* ============================
   SEKCJA 8 – KONTAKT + CF7
   ============================ */
#kontakt {
    background: var(--color-dark);
	padding: 60px 0;
    min-height: unset;
}

.contact-form-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 48px;
    text-align: center;
}

.contact-form-wrap .section-heading {
    color: var(--color-white);
    margin-bottom: 16px;
}

.contact-form-wrap .wpcf7-form {
    display: contents;
}

/* Underline fields — 2 kolumny */
.cf7-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 56px;
    margin-bottom: 44px;
    text-align: left;
}

.cf7-field {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 22px 0 14px;
    transition: border-color 0.3s;
}

.cf7-field:focus-within {
    border-bottom-color: rgba(255,255,255,0.55);
}

.cf7-field-full {
    grid-column: 1 / -1;
}

.cf7-acceptance {
    border-bottom: none;
    padding: 16px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cf7-acceptance .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
}

.cf7-acceptance .wpcf7-list-item-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

.cf7-acceptance .wpcf7-list-item-label a {
    color: rgba(255,255,255,0.75);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cf7-acceptance input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #fff;
    cursor: pointer;
}

.cf7-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.67rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 8px;
    user-select: none;
    transition: color 0.3s;
}

.cf7-label abbr { text-decoration: none; }

.cf7-field:focus-within .cf7-label {
    color: rgba(255,255,255,0.65);
}

/* Legacy — stary cf7-grid (fallback) */
.cf7-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 48px;
    text-align: left;
}

/* Przywrócenie tła komórek wewnątrz grid */
.cf7-grid .cf7-field {
    background: var(--color-dark);
    padding: 18px 20px 16px;
    border-bottom: none;
    min-width: 0;
    overflow: hidden;
}

.cf7-grid .cf7-field:focus-within {
    background: rgba(255,255,255,0.03);
    border-bottom-color: transparent;
}

.cf7-grid .cf7-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
}

.cf7-grid .cf7-field:focus-within .cf7-label {
    color: rgba(255,255,255,0.85);
}

/* Fix overflow tekstu w komórkach gridu */
.cf7-grid .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.cf7-grid .wpcf7-form-control-wrap input,
.cf7-grid .wpcf7-form-control-wrap textarea,
.cf7-grid .wpcf7-form-control-wrap select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cf7-field-empty { pointer-events: none; }

.fh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.3);
    font-size: 0.55rem;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-left: 5px;
    line-height: 1;
}

.fh-bubble {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    color: #111;
    font-size: 0.72rem;
    font-family: var(--font-sans);
    letter-spacing: 0;
    text-transform: none;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    line-height: 1.4;
    pointer-events: none;
}

.fh-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(255,255,255,0.95);
}

.fh.open .fh-bubble { display: block; }

.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form input[type="number"],
.contact-form-wrap .wpcf7-form input[type="date"],
.contact-form-wrap .wpcf7-form textarea,
.contact-form-wrap .wpcf7-form select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.5;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
}

.contact-form-wrap .wpcf7-form input::placeholder,
.contact-form-wrap .wpcf7-form textarea::placeholder {
    color: rgba(255,255,255,0.28);
    font-style: italic;
}

.contact-form-wrap .wpcf7-form textarea {
    resize: none;
    height: 100px !important;
    min-height: auto;
}

.contact-form-wrap .wpcf7-form p { margin: 0; }

.contact-form-wrap .wpcf7-form input[type="submit"],
.contact-form-wrap .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 56px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.45) !important;
    background: transparent !important;
    color: var(--color-white) !important;
    font-family: var(--font-script);
    font-size: 1.9rem;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    margin-top: 40px;
}

.contact-form-wrap .wpcf7-form input[type="submit"]:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.85) !important;
}

.contact-form-wrap .wpcf7-not-valid-tip {
    color: #ff8080;
    font-size: 0.75rem;
    margin-top: 6px;
    display: block;
    font-family: var(--font-sans);
}

.contact-form-wrap .wpcf7-response-output {
    margin-top: 24px;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--color-white);
}

/* Closing */
.contact-closing {
    margin-bottom: 48px;
    text-align: center;
}

.contact-script-title {
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: rgba(255,255,255,0.18);
    line-height: 1.2;
    margin-bottom: 12px;
}

.contact-tagline {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================
   SEKCJA 9 – NEWSY
   ============================ */
#aktualnosci {
    display: none !important;
    background: var(--color-white);
}

.news-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.news-wrap .section-heading {
    color: var(--color-black);
    margin-bottom: 48px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.news-item {}

.news-photo .photo-placeholder {
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 16px;
}

.news-category {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.45);
    margin-bottom: 2px;
}

.news-date {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(0,0,0,0.45);
    margin-bottom: 12px;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-black);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-title a {
    color: inherit;
    transition: opacity var(--transition);
}

.news-title a:hover { opacity: 0.7; }

/* ============================
   MOBILE MENU
   ============================ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-dark);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.nav-overlay.open { display: flex; }

.nav-overlay a {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-white);
    letter-spacing: 0.5px;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.nav-overlay a:hover { opacity: 1; }

.nav-overlay-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ============================
   SEKCJA 9 – GALERIA
   ============================ */
.galeria-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.galeria-wrap .section-heading {
    color: var(--color-white);
    text-align: center;
    margin-bottom: 12px;
}

.galeria-wrap .realizacje-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.5);
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-rows: repeat(3, 170px);
    grid-auto-flow: column;
    grid-auto-columns: auto;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    margin: 0 -48px;
    padding: 0 48px 4px;
}

.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-grid.is-dragging { cursor: grabbing; }

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    height: 100%;
}

.gallery-item img {
    width: auto;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
    pointer-events: none;
}

.gallery-overlay-icon {
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(255,255,255,0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.6rem;
    font-weight: 200;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0,0,0,0.42);
}

.gallery-item:hover .gallery-overlay-icon {
    opacity: 1;
    transform: scale(1);
}

/* Gallery lightbox */
#gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

#gallery-lightbox.open { display: flex; }

.gal-lb-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gal-lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 2px;
    display: block;
}

.gal-lb-close {
    position: fixed;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.gal-lb-close:hover { color: #fff; }

.gal-lb-prev,
.gal-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 16px 20px;
    transition: color 0.2s;
    z-index: 2;
    line-height: 1;
}

.gal-lb-prev { left: 8px; }
.gal-lb-next { right: 8px; }
.gal-lb-prev:hover, .gal-lb-next:hover { color: #fff; }

.gal-lb-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 2px;
    z-index: 2;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .kontakt-info-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .kontakt-info-photo { display: none; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-rows: repeat(3, 130px); }
    .stats-content { grid-template-columns: 1fr; gap: 48px; }
    .stats-photo { width: 100%; max-width: 380px; margin: 0 auto; }
    .values-main-layout { grid-template-columns: 1fr 220px; }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --section-pad: 60px 0;
    }

    .site-nav { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .container,
    .about-grid,
    .values-wrap,
    .stats-wrap,
    .realizacje-wrap,
    .galeria-wrap,
    .wspolprace-wrap,
    .contact-form-wrap,
    .news-wrap { padding: 0 24px; }

    /* O mnie */
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-photo { order: -1; }
    .about-photo .photo-placeholder { aspect-ratio: 4 / 3; }

    /* Wartości */
    .values-main-layout { grid-template-columns: 1fr; }
    .values-notebook-photo { width: 100%; max-width: 300px; aspect-ratio: 4/3; margin: 0 auto; align-self: auto; }
    .value-row { grid-template-columns: 1fr; gap: 4px; }

    /* Home */
    .home-photos { grid-template-columns: 1fr; }
    .home-photo--left { height: auto; aspect-ratio: 4 / 3; }

    /* Realizacje */
    .projects-grid { grid-template-columns: 1fr; }

    /* Kontakt info */
    .kontakt-info-wrap { padding: 0 24px; }
    .kontakt-info-grid { grid-template-columns: 1fr; gap: 32px; }
    .kontakt-info-photo { display: block; }
    .kontakt-info-photo .photo-placeholder { aspect-ratio: 4/3; }
    .kontakt-info-brand { align-items: center; text-align: center; }
    .kontakt-logo-text { font-size: 3.5rem; }
    .kontakt-tagline-top { margin-bottom: 40px; }

    /* CF7 formularz */
    .cf7-fields { gap: 0 32px; }
    .cf7-grid { grid-template-columns: 1fr 1fr; }
    .cf7-field-full { grid-column: 1 / -1; }
    .cf7-field-empty { display: none; }

    /* Głosy */
    #glosy { padding: 44px 0; }
    .glosy-wrap { padding: 0 16px; }
    .glosy-wrap .section-heading { margin-bottom: 28px; }
    .glosy-thumbs { gap: 12px; }

    /* Galeria */
    .gallery-grid { grid-template-rows: repeat(3, 140px); margin: 0 -24px; padding: 0 24px 4px; }
    /* Newsy */
    .news-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    /* Statystyki */
    .stat-number { font-size: clamp(2.5rem, 10vw, 3.8rem); min-width: unset; }
    .stat-row { flex-wrap: wrap; gap: 4px 12px; }
    .stats-heading { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .home-brand { font-size: 72px; }
    .home-buttons { flex-direction: column; align-items: center; }
    .home-stat { text-align: center; }
    .gallery-grid { grid-template-rows: repeat(2, 130px); margin: 0 -20px; padding: 0 20px 4px; }
	.news-grid { grid-template-columns: 1fr; }
    .cf7-fields { grid-template-columns: 1fr; }
    .cf7-field-full { grid-column: 1; }
    .cf7-grid { grid-template-columns: 1fr; }
    #glosy { padding: 40px 0; }
    .glosy-wrap { padding: 0 12px; }
    .glosy-thumbs { gap: 8px; }
    .glosy-thumb-link { font-size: 0.72rem; }
	.stat-number { font-size: 2.5rem; }
    .value-label { font-size: 1.7rem; }
}

/* ============================
   PODSTRONY (page.php)
   ============================ */
.subpage-main {
    min-height: 70vh;
    padding: calc(var(--nav-height) + 64px) 0 80px;
    background: var(--color-white);
}

.subpage-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 48px;
}

.subpage-title {
    font-family: var(--font-rough);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 40px;
    line-height: 1.2;
}

.subpage-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.subpage-content h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 12px; color: var(--color-dark); }
.subpage-content h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 8px; color: var(--color-dark); }
.subpage-content p  { margin-bottom: 16px; }
.subpage-content ul, .subpage-content ol { padding-left: 24px; margin-bottom: 16px; }
.subpage-content li { margin-bottom: 6px; }
.subpage-content a  { color: var(--color-dark); text-decoration: underline; }

@media (max-width: 768px) {
    .subpage-wrap { padding: 0 24px; }
}

@media (max-width: 480px) {
    .subpage-wrap { padding: 0 16px; }
    .subpage-main { padding-top: calc(var(--nav-height) + 40px); }
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: var(--color-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 48px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    flex: 1;
}

.footer-nav a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.footer-nav a:hover { color: rgba(255,255,255,0.9); }

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-social-link {
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.footer-social-link:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
}

.footer-innometh {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.03em;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-innometh:hover { color: rgba(255,255,255,0.55); }

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
    }
    .footer-right { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
    .footer-inner { padding: 20px 16px; }
}

