/* ============================================
   ASMIRE — Main Stylesheet (Merged & Clean)
   ============================================ */

/* ---- Font-face ---- */
/* Carattere — pismo ozdobne (nagłówki "script": nazwa marki, "Portfolio.", "O Nas.") */
@font-face { font-family: 'Carattere'; src: url('../fonts/Carattere-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

/* Cormorant Garamond — szeryfowy (wordmark w nagłówku, pionowy napis, przyszłe nagłówki sekcji) */
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/CormorantGaramond-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/CormorantGaramond-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/CormorantGaramond-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/CormorantGaramond-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/CormorantGaramond-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/CormorantGaramond-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/CormorantGaramond-MediumItalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/CormorantGaramond-SemiBoldItalic.ttf') format('truetype'); font-weight: 600; font-style: italic; font-display: swap; }

/* Calibre — krój podstawowy (body) — deklaracje DOKŁADNIE pod wgrane pliki */
@font-face { font-family: 'Calibre'; src: url('../fonts/calibre-light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Calibre'; src: url('../fonts/calibre-light-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Calibre'; src: url('../fonts/calibre-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Calibre'; src: url('../fonts/calibre-regular-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Calibre'; src: url('../fonts/calibre-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Calibre'; src: url('../fonts/calibre-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Calibre'; src: url('../fonts/calibre-bold-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Calibre'; src: url('../fonts/calibre-black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Calibre'; src: url('../fonts/calibre-thin-italic.woff2') format('woff2'); font-weight: 100; font-style: italic; font-display: swap; }

/* ---- Variables ---- */
:root {
    /* Paleta KMZ — zmieniono TYLKO wartości; nazwy zmiennych zostają (rebranding = kilka wartości) */
    --navy:   #1A1E0D;  /* było #111527 — najciemniejsza zieleń: ciemne sekcje, maskowanie luk */
    --red:    #2C3516;  /* było #591117 — oliwkowa zieleń: nagłówki "script" + tło stopki */
    --beige:  #CDD6B8;  /* było #AFACA1 — szałwiowa zieleń: jasne sekcje, tekst na ciemnym tle */
    --cream:  #F4ECDF;  /* było #E6DED1 — kremowy: najjaśniejszy akcent (pionowy napis KMZ) */
    --white:  #FFFFFF;
    --black:  #1A1E0D;  /* było #000000 — alias najciemniejszej zieleni (nagłówek na tym bazuje) */
    --header-h: 80px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Calibre', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400; color: var(--navy); background: var(--beige);
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }
h1, h2, h3, h4, h5 { font-weight: 300; line-height: 1.1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    height: 90px; background: var(--black);
    display: block; transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.header-topbar { display: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 40px; }
.header-wordmark { display: none; }

.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; min-width: 28px; }

.header-center { position: absolute; left: 50%; transform: translateX(-50%); }
.header-emblem img { height: 90px; width: auto; }
.emblem-dark { display: none; }
.emblem-light { display: block; }

.nav-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 18px; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 1px; background: var(--beige); }
.header-nav { display: none; }

/* Nav overlay */
.nav-overlay { position: fixed; inset: 0; background: var(--navy); z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-close { position: absolute; top: 24px; right: 40px; font-size: 24px; color: var(--beige); opacity: 0.7; transition: opacity var(--transition); }
.nav-close:hover { opacity: 1; }
.overlay-nav ul { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.overlay-nav a { font-size: clamp(16px,5vw,32px); font-weight: 300; letter-spacing: 0.04em; color: var(--beige); opacity: 0.8; transition: opacity var(--transition); }
.overlay-nav a:hover { opacity: 1; }
.overlay-cta { font-size: 14px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.4); padding: 12px 28px; opacity: 0.7; }
.overlay-social { position: absolute; bottom: 40px; display: flex; gap: 24px; }
.overlay-social a { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--beige); opacity: 0.5; transition: opacity var(--transition); }

/* ============================================
   BUTTONS
   ============================================ */
.btn { display: inline-block; font-size: 17px; font-weight: 300; letter-spacing: 0.14em; text-transform: uppercase; padding: 13px 30px; border: 2px solid currentColor; border-radius: 25px; transition: background var(--transition), color var(--transition); white-space: nowrap; }
.btn-light { color: var(--beige); border-color: var(--beige); }
.btn-light:hover { background: var(--cream); color: var(--red); }
.btn-dark { color: var(--red) !important; border-color: var(--red) !important; }
.btn-dark:hover { background: var(--red) !important; color: var(--beige) !important; }
.btn-red { color: var(--beige) !important; border-color: var(--red); }
.btn-red:hover { background: var(--red); color: var(--beige); }

/* ============================================
   HOME — Hero
   ============================================ */
.hero { display: grid; grid-template-columns: 50% 50%; min-height: auto; }
.hero-left { position: relative; background: var(--navy); overflow: visible; display: flex; flex-direction: column; z-index: 2; min-height: 0; margin-top: 90px; }
.hero-left-media { position: static; display: flex; align-items: center; justify-content: center; padding: 0 48px 0; flex: 0 1 auto; min-height: 0; overflow: visible; }
.hero-left-media video,
.hero-left-media img.hero-img { position: static; width: 100%; max-width: 480px; height: 600px; object-fit: cover; object-position: center; opacity: 1; display: block; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.hero-left-content { position: relative; z-index: 2; text-align: left; align-self: center; padding: 0 48px 40px; background: transparent; }
.hero-left-content .hero-quote { padding-bottom: 0; padding-top: 10px; margin-left: 70px; margin-right: 70px; font-size: 28px; font-weight: 300; font-style: normal; line-height: 1.3; color: var(--beige); max-width: 100%; margin-bottom: 0; }
.hero-right { background: var(--beige); display: flex; flex-direction: column; padding: 100px 48px 0; align-items: center; }
.hero-right-top { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; width: 100%; height:960px; }
.hero-right .section-label { display: none; }
.hero-right h2 { font-size: clamp(40px, 5.2vw, 70px); font-weight: 400; color: var(--red); letter-spacing: 0.01em; line-height: 1.08; margin-bottom: 24px; text-align: center; width: 100%; font-family: 'Carattere', cursive; }
.hero-right .ring-preview { width: 75%; max-width: 400px; aspect-ratio: 1; object-fit: cover; margin: 0 auto 24px; display: block; box-shadow: 0 8px 40px rgba(0,0,0,0.15); }
.hero-right .hero-body { font-size: 15px; font-weight: 300; line-height: 1.75; color: rgba(17,21,39,0.7); max-width: 340px; margin-bottom: 32px; text-align: center; margin-left: auto; margin-right: auto; }
.hero-right .btn { display: inline-block; width: auto; max-width: 280px; padding: 13px 48px; }

/* ============================================
   HOME — Feature
   ============================================ */
.feature-image { position: relative; height: clamp(320px, 50vw, 640px); overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 0.8s ease; }
.feature-image:hover img { transform: scale(1.03); }

/* ==========================================================================
   === PARALLAX — Feature Video (mocny efekt) ===
   ========================================================================== */

.feature-video {
    position: relative;
    width: 100%;
    height: clamp(320px, 50vw, 550px);
    overflow: hidden;
    background: var(--navy);
    --parallax-range: 0px;
}

.feature-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: calc(100% + var(--parallax-range));
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .feature-video video {
        transform: none !important;
    }
}
.header-emblem img {
    mix-blend-mode: screen;
}
/* ===========================================
   HOME — Portfolio Preview
   ============================================ */
.portfolio-preview {
    display: grid;
    grid-template-columns: 50% 50%;
    height: auto;
    min-height: 0;
}

/* Left — beige */
.portfolio-left {
    background: var(--beige);
    padding: 0 270px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-bottom: 60;
}

.portfolio-stamp {
    width: 200px; height: 200px;
    position: relative;
    z-index: 10;
    margin: 0 0 -100px 320px;
    display: block; object-fit: contain;
}

/* Slider */
.portfolio-slider {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    flex-grow: 0;          /* NIE rośnie — zachowuje swój naturalny rozmiar */
    min-height: 260px;
    aspect-ratio: 1 / 1;   /* Kwadrat jak w mockupie */
    margin: 0 0 32px 0;
    overflow: hidden;
    z-index: 1;
}
.portfolio-slider-track { display: flex; flex-wrap: nowrap; width: 100%; height: 100%; transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94); will-change: transform; }
.portfolio-slide { flex: 0 0 100%; width: 100%; min-width: 100%; height: 100%; overflow: hidden; padding-bottom: 60; }
.portfolio-slide img { width: 100%; height: 100%; object-fit: cover; display: block; padding-bottom: 60; }

.portfolio-title {
    font-family: 'Carattere', cursive;
    font-style: normal;
    font-size: 80px;
    font-weight: 300;
    color: var(--red);
    text-align: center;
    line-height: 1;
    margin-bottom: 0;
}

/* Slider controls */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: transparent;  color: var(--beige); cursor: pointer; transition: background 0.3s, border-color 0.3s; }
.slider-arrow:hover { background: transparent; }
.slider-arrow--prev { left: 16px; }
.slider-arrow--next { right: 16px; }
.slider-arrow svg {
    width: 52px;
    height: 52px;
}
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; gap: 8px; z-index: 5; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--beige); background: transparent; cursor: pointer; transition: background 0.3s, border-color 0.3s; }
.slider-dot.active, .slider-dot:hover { background: var(--beige); border-color: var(--beige); }

/* Right — oliwka */
.portfolio-right--video {
    background: var(--red);     /* oliwka #2C3516 (było var(--navy)) — zgodnie z wcześniejszą zmianą */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    min-width: 0;
    height: 100%;
    padding: 0;
}

.portfolio-video {
    width: 360px;
    height: 0;
    min-height: 0;
    max-height: 680px;
    flex: 1 1 100%;
    z-index: 1;
    margin-bottom: 0;
    display: block;
    padding-top: 15px;
}

.portfolio-right-content {
    flex: 0 0 auto;
    width: 620px;          /* było 720px — węższy, zwarty akapit jak w mockupie */
    max-width: 620px;      /* było 720px */
    margin: 0 0 0;
    position: relative;
    z-index: 10;
    text-align: left;
    padding: 0;
}

.portfolio-right--video h3 {
    font-size: 26px;       /* było 28px — mniejszy, subtelniejszy tekst */
    font-weight: 300;
    color: var(--beige);
    line-height: 1.5;      /* było 1.3 — więcej powietrza między wierszami */
    margin-right: 20px;
    margin-top: -5px;
}

/* Center button under video */
.portfolio-right--video .portfolio-right-content .btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
    text-align: center;
}
/* ============================================
   HOME — Proces (od pomysłu do wyrobu)
   ============================================ */

/* Ciemny pas wprowadzający */
.process-intro {
    background: var(--red);
    text-align: center;
    padding: clamp(56px, 9vw, 96px) 24px;
}
.process-intro h2 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 88px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--cream);
    margin-bottom: 16px;
}
.process-intro p {
    font-size: 47px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--cream);
    opacity: 0.85;
    max-width: 100%;
    margin: 0 auto;
}

/* Sekcja kroków — jasne tło (sage) */
.process {
    background: var(--beige);
    padding: 148px 48px
}
.process-grid {
    display: grid;
    grid-template-columns: 1fr;     /* mobile-first: jedna kolumna */
    gap: 10px;
    max-width: 100%;
    margin: 0 20;
}
.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Numer 01 / 02 / 03 */
.process-num {
    position: relative;
    width: 100%;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 400;
    line-height: 1;
    color: var(--navy);
    margin-bottom: 14px;
}
.process-num span {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 0 16px 10px;
    background: var(--beige);       /* „przecina" linię, by numer na niej leżał */
}

/* Tytuł etapu */
.process-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: clamp(26px, 4vw, 48px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: var(--red);
    margin-bottom: 28px;
}

/* Zdjęcie etapu (PNG na przezroczystym tle) */
.process-img {
    width: 500px;
    max-width: 500px;
    aspect-ratio: 1;
    object-fit: contain;            /* całe zdjęcie, bez przycięcia */
    margin: 0 0 28px;
    display: block;
}

/* Pod-etykieta */
.process-label {
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--navy);
    margin-bottom: 12px;
}

/* Opis */
.process-desc {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.3;
    color: rgba(26, 30, 13, 0.7);   /* var(--navy) z przezroczystością */
    max-width: 380px;
    margin: 0 auto;
}

/* ---- Tablet / desktop (≥768px): 3 kolumny + linia czasu ---- */
@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    /* Linia łącząca numery — wychodzi w połowę odstępu (gap/2 = 20px),
       więc odcinki sąsiadów stykają się w jedną ciągłą kreskę mimo grid-gap */
    .process-num::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -20px;
        right: -20px;
        height: 1px;
        background: rgba(26, 30, 13, 0.22);
        transform: translateY(-50%);
        z-index: 1;
    }
    .process-step:first-child .process-num::before { left: 50%; }  /* linia tylko w prawo */
    .process-step:last-child  .process-num::before { right: 50%; } /* linia tylko w lewo */
}

/* ============================================
   O NAS PAGE  (było: O ASMIRE PAGE)
   ============================================ */

/* Układ: 2 równe kolumny — zdjęcie | tekst */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

/* LEWO — zdjęcie na tle sage */
.about-hero-left {
    background-color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(56px, 6vw, 110px) clamp(32px, 4vw, 80px);
}
.about-hero-left img.about-main-img {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 4;                 /* portret jak w mockupie */
    object-fit: cover;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* PRAWO — tekst na tle wzoru biżuterii (sage + delikatny sketch) */
.about-hero-right {
    background-color: var(--beige);                          /* fallback + kolor bazowy */
    background-image: url('../images/tlo-bizuteria.jpg');    /* jeśli plik jest .jpg → zmień rozszerzenie */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--navy);                                      /* ciemny tekst = dobry kontrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(72px, 7vw, 120px) clamp(40px, 5vw, 90px);
}
.about-watermark { display: none; }
.about-hero-right h1 {
    font-family: 'Carattere', cursive;
    font-size: clamp(64px, 9vw, 130px);
    font-weight: 300;
    color: var(--red);
    line-height: 1;
    text-align: center;
    margin-bottom: clamp(28px, 3.5vw, 48px);
}
.about-hero-right .about-body {
    max-width: 720px;
    margin: 0 auto;                      /* blok wyśrodkowany w panelu, tekst do lewej */
}
.about-hero-right .about-body p {
    font-size: clamp(16px, 1.1vw, 19px);
    font-weight: 300;
    line-height: 1.6;
    color: var(--navy);
    margin-bottom: 18px;
}

/* Podtytuły sekcji (Cormorant, wersaliki) — dobre pod SEO */
.about-subhead {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: clamp(19px, 1.5vw, 26px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
    color: var(--red);
    margin: 28px 0 10px;
}
/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--red); color: var(--beige); padding: 90px 0 0; }
.footer-inner {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 38px; align-items: start; max-width: 100%; margin: 0 auto;
    padding: 0 40px 64px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-logo img { display: none; }
.footer-logo-link { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-decoration: none; }
.footer-logo-img { width: 720px; height: auto; object-fit: contain; }
.footer-about { display: flex; flex-direction: column; gap: 24px; padding-right: 20px; max-width: 90f%; }
.footer-tagline { font-size: 20px; font-weight: 300; line-height: 1.3; color: var(--beige); font-style: normal; }
.footer-social { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-social a {
    width: 44px; height: 44px; margin-top: 10px; border-radius: 50%;
    background: var(--black); display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition), opacity var(--transition); flex-shrink: 0;
    border: 1px solid var(--beige);
    color: var(--beige);
}
.footer-social a:hover { transform: translateY(-3px); opacity: 0.9; }
.footer-social a svg { width: 22px; height: 22px; }
.footer-nav-col h4 { font-size: 28px; font-weight: 400; text-transform: uppercase; color: var(--beige); margin-bottom: 24px; }
.footer-nav-col ul { display: flex; flex-direction: column; gap: 14px; list-style: none; padding: 0; margin: 0; }
.footer-nav-col a { font-size: 18px; font-weight: 300; color: var(--beige); transition: color var(--transition); line-height: 1.3; }
.footer-nav-col a:hover { color: var(--beige); }
.footer-bottom { text-align: center; padding: 22px 40px; }
.footer-bottom p { font-size: 14px; color: var(--beige); }

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio-header { padding: calc(var(--header-h) + 64px) 40px 48px; background: var(--beige); text-align: center; }
.portfolio-header h1 { font-family: 'Carattere', cursive; font-size: 130px; font-weight: 300; color: var(--red); margin-bottom: 16px; }
.portfolio-header .subtitle { font-size: 22px; font-weight: 300; color: rgba(17,21,39,0.6); max-width: 480px; margin: 0 auto 40px; line-height: 1.7; }
.portfolio-filters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 40px 48px; background: var(--beige); }
.portfolio-filter-btn { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 20px; border: 1px solid rgba(17,21,39,0.25); color: rgba(17,21,39,0.6); cursor: pointer; transition: all var(--transition); background: none; font-family: 'Calibre', sans-serif; }
.portfolio-filter-btn:hover, .portfolio-filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--beige); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--navy); }
.portfolio-grid { margin-top: 0; }
.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--black);  /* maskuje lukę tym samym kolorem co zdjęcia */
    line-height: 0;            /* zabija phantom space pod img */
    font-size: 0;              /* j.w. */
}.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;   /* wyrywamy z flow — wypełnia parent idealnie */
    inset: 0;             /* top:0 right:0 bottom:0 left:0 */
}.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item-overlay { position: absolute; inset: 0; background: rgba(17,21,39,0); display: flex; align-items: flex-end; padding: 24px; transition: background var(--transition); }
.portfolio-item:hover .portfolio-item-overlay { background: rgba(17,21,39,0.55); }
.portfolio-item-label { opacity: 0; transform: translateY(8px); transition: opacity var(--transition), transform var(--transition); font-size: 18px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--beige); }
.portfolio-item:hover .portfolio-item-label { opacity: 1; transform: translateY(0); }
.portfolio-cta-bar { background: var(--beige); padding: 64px 40px; text-align: center; }
.portfolio-cta-bar h2 { font-size: clamp(24px,3vw,40px); font-weight: 300; color: var(--navy); margin-bottom: 8px; }
.portfolio-cta-bar p { font-size: 15px; font-weight: 300; color: rgba(17,21,39,0.6); margin-bottom: 32px; }

/* ============================================
   KONTAKT PAGE
   ============================================ */
.kontakt-top { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(65vh - var(--header-h)); padding-top: var(--header-h); }
.kontakt-map {
    position: sticky; top: var(--header-h);
    min-height: calc(65vh - var(--header-h));
    background: #e0dbd3; z-index: 0;
    display: flex; overflow: hidden; margin: 0;
}
.kontakt-map iframe {
    width: 100%; height: 100%; display: block;
    border: none; margin: 0; padding: 0;
}
.kontakt-info {
    background: var(--beige); padding: clamp(56px,8vh,160px) clamp(40px,6vw,80px);
    display: flex; flex-direction: column; justify-content: center; gap: 56px;
    margin: -24px 0 0 0;
}
.kontakt-main { display: flex; flex-direction: column; gap: 10px; }
.kontakt-tel { font-size: clamp(28px,3.5vw,48px); font-weight: 300; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; transition: opacity var(--transition); }
.kontakt-tel:hover { opacity: 0.65; }
.kontakt-email { font-size: clamp(15px,1.6vw,20px); font-weight: 300; color: var(--navy); text-decoration: none; opacity: 0.65; transition: opacity var(--transition); }
.kontakt-email:hover { opacity: 1; }
.kontakt-salony { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.kontakt-salon { border-top: 1px solid rgba(17,21,39,0.18); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.salon-miasto { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(0, 0, 0); margin-bottom: 4px; }
.kontakt-salon address { font-style: normal; font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--navy); }
.kontakt-salon a { font-size: 13px; font-weight: 300; color: var(--navy); text-decoration: none; opacity: 0.65; transition: opacity var(--transition); line-height: 1.8; }
.kontakt-salon a:hover { opacity: 1; }
.kontakt-marker { background: transparent; border: none; }
.kontakt-marker div { width: 14px; height: 14px; background: var(--navy); border: 3px solid ; border-radius: 50%; box-shadow: 0 2px 8px rgb(0, 0, 0); }
.kontakt-formularz { background: var(--beige); border-top: 1px solid rgb(0, 0, 0); padding: clamp(72px,10vh,120px) 40px; }
.kontakt-formularz-port { background: var(--beige); border-top: 1px solid rgb(0, 0, 0); padding: clamp(72px,10vh,120px) 40px; }
.kontakt-formularz-inner { max-width: 720px; margin: 0 auto; }
.kontakt-formularz h2 { font-size: 32px; font-weight: 300; color: var(--navy); margin-bottom: 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.form-group { margin-bottom: 28px; }
.form-group label { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(0, 0, 0); margin-bottom: 10px; }
.form-group input, .form-group textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgb(0, 0, 0); padding: 10px 0; font-family: 'Calibre', sans-serif; font-size: 15px; font-weight: 300; color: var(--navy); outline: none; transition: border-color var(--transition); -webkit-appearance: none; border-radius: 0; }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--navy); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgb(0, 0, 0); }
.form-group textarea { resize: none; height: 110px; line-height: 1.65; }
.form-captcha-group { max-width: 320px; }
.form-captcha-group label { font-size: 12px; text-transform: none; letter-spacing: 0; }
.form-captcha-group input { max-width: 100px; }
.form-submit { margin-top: 16px; }
.form-submit .btn { min-width: 220px; text-align: center; justify-content: center; }
.form-note { margin-top: 16px; font-size: 12px; font-weight: 300; color: rgb(0, 0, 0); line-height: 1.6; }
.form-success { display: none; background: rgba(89,17,23,0.07); border-left: 3px solid var(--red); padding: 16px 20px; margin-top: 24px; font-size: 14px; color: var(--red); line-height: 1.6; }
.form-success.show { display: block; }
.formularz-heading
/* ============================================
   LIGHTBOX
   ============================================ */
.asmire-lightbox {
    position: fixed; inset: 0;
    background: rgba(17, 21, 39, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.asmire-lightbox.active { opacity: 1; pointer-events: auto; }
.asmire-lightbox img {
    max-width: 90vw; max-height: 90vh; object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.95); transition: transform 0.4s ease;
}
.asmire-lightbox.active img { transform: scale(1); }
.asmire-lightbox-close {
    position: absolute; top: 30px; right: 40px;
    color: var(--beige); font-size: 50px; font-weight: 100;
    cursor: pointer; line-height: 1;
    transition: opacity var(--transition);
    opacity: 0.5; background: none; border: none; z-index: 10000;
}
.asmire-lightbox-close:hover { opacity: 1; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.js-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-ready .reveal.in-view { opacity: 1; transform: translateY(0); }


/* ==================================================================
   RESPONSIVE
   ================================================================== */

/* ---- Desktop enhancements (≥769px) ---- */
@media (min-width: 769px) {
    .hero-left-media { padding-top: calc(var(--header-h) + 20px); }
    .hero-right { padding-top: calc(var(--header-h) + 80px); }
    .hero-right .ring-preview { width: 75%; max-width: 460px; margin-bottom: 40px; }
    .hero-right h2 { margin-bottom: 32px; }
}

/* ---- ≤1600px ---- */
@media (max-width: 1600px) {
    .footer-about { max-width: 100%; }
    .hero-quote { max-width: 100%; margin: 0 auto; text-align: left; }
    .portfolio-right-content { max-width: 100%; margin: 32px auto 0; text-align: left; }
}

/* ---- ≤1250px — Footer 2 kolumny ---- */
@media (max-width: 1250px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px 40px;
        max-width: 900px;
        margin: 0 auto;
    }
    .site-footer .footer-brand,
    .site-footer .footer-about,
    .site-footer .footer-nav-col {
        grid-column: span 1;
        padding-right: 0;
        background: url('../images/tło_stopka.png') no-repeat center / contain;

    }
    .footer-brand { align-items: flex-start; }
    .site-footer .footer-about { justify-content: flex-start; }
    .site-footer .footer-tagline { max-width: 100%; }
}

/* ---- ≤1024px ---- */
@media (max-width: 1024px) {
    .header-inner { padding: 0 28px; }
    .hero-left-content { padding: 0 36px 48px; margin-top: -80px; }
    .hero-right { padding: 100px 36px 48px; }

    /* About */
    .about-hero { grid-template-columns: 1fr; }
    .about-hero-left { min-height: 70vh; padding: calc(var(--header-h) + 40px) 24px 60px; }
    .about-hero-left img.about-main-img { width: 460px; max-width: 100%; }
    .about-hero-right { padding: 60px 24px; }
    .about-hero-right h1 { font-size: 56px; margin-bottom: 24px; }

    /* Kontakt */
    .kontakt-salony { grid-template-columns: 1fr 1fr; gap: 24px; }

    /* Services */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 60px 40px; max-width: 800px; }
}

/* ---- Tablet footer (1024px – 768px) ---- */
@media (max-width: 1024px) and (min-width: 769px) {
    .site-footer .footer-inner { grid-template-columns: 140px 1.4fr 1fr 1fr; gap: 24px; padding: 0 24px 56px; }
    .site-footer .footer-brand, .site-footer .footer-about, .site-footer .footer-nav-col { grid-column: span 1; grid-row: auto; padding-right: 0; order: 0; }
    .site-footer .footer-logo-img { width: 140px; }
    .footer-nav-col h4 { font-size: 18px; }
    .footer-tagline { font-size: 15px; }
    .footer-nav-col a { font-size: 15px; }
}

/* ---- ≤768px (mobile) ---- */
@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .header-inner { padding: 0 20px; }
    .nav-close { right: 24px; }

    /* Hero */
    .hero { grid-template-columns: 1fr; }
    .hero-left { min-height: 70vw; }
    .hero-left-media {
        display: flex; justify-content: center; align-items: center;
        width: 100%; min-height: 56vw; padding: 32px 24px 0;
    }
    .hero-left-media img.hero-img {
        width: 80%; margin: 0 auto; display: block;
        position: relative; left: auto; right: auto; transform: none;
    }
    .hero-left-content { padding: 0 24px 40px; margin-top: -80px; }
    .hero-right { padding: 48px 24px 40px; }
    .hero-right .ring-preview { width: 70%; max-width: none; }
    .hero-vertical-text { display: none; }

    /* Feature */
    .feature-image { height: clamp(220px, 50vw, 380px); }

    /* Portfolio preview */
    .portfolio-preview { grid-template-columns: 1fr; height: auto; }
    .portfolio-left { padding: 60px 24px; }
    .portfolio-stamp { width: 110px; height: 110px; margin-left: auto; margin-right: 0; margin-bottom: -40px; }
    .portfolio-slider { flex-grow: 0; height:350px; aspect-ratio: 1 / 1; min-height: auto; margin-bottom: 24px; }
    .slider-arrow { width: 66px; height: 66px; object-fit: cover; }
    .slider-arrow--prev { left: 8px; }
    .slider-arrow--next { right: 8px; }
    .slider-dot { width: 7px; height: 7px; }
    .portfolio-title { font-size: 32px; margin-top: 16px; }
    .portfolio-right--video { height: auto; padding: 32px 24px; }
    .portfolio-video { height: auto; flex: 0 0 auto; aspect-ratio: 4 / 5; }
    .portfolio-right-content { max-width: 100%; margin-top: -24px; }

    /* Services */
    .services { padding: 24px 24px; }
    .services-grid { grid-template-columns: repeat(2,1fr); gap: 32px 24px; }
    .service-icon { width: 80px; height: 80px; margin-bottom: 24px; }
    .service-item h3 { font-size: 20px; }
    .service-item p { font-size: 16px; }

    /* About */
    .about-hero { grid-template-columns: 1fr; }
    .about-hero-left { height: 260px; max-height: 260px; }
    .about-hero-left img { border: 4px solid var(--beige); object-fit: cover; position: static; width: 50%; height: 50%; }
    .about-hero-right { padding: 150px 24px 56px; }
    .about-hero-right .about-body p { font-size: 16px; }
    .brand-statement { padding: 56px 24px; }


    /* Portfolio page */
    .portfolio-header {     padding: calc(var(--header-h) + 40px) 24px 32px; }
    .portfolio-header h1 { font-size: 56px; margin-bottom: 16px; }
    .portfolio-header .subtitle { font-size: 18px; max-width: 100%; }
    .portfolio-filters { padding: 0 24px 32px; }
    .portfolio-grid { grid-template-columns: repeat(2,1fr); }
    .portfolio-grid .portfolio-item:nth-child(n+4) { display: none; }
    .portfolio-cta-bar { padding: 48px 24px; }

    /* Footer */
    .site-footer { padding: 60px 0 0; }
    .site-footer .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 48px; text-align: left; }
    .site-footer .footer-brand, .site-footer .footer-about, .site-footer .footer-nav-col { grid-column: auto; }
    .footer-bottom { padding: 20px 24px; }
    .footer-logo-img { width: 200px; height: auto; object-fit: contain; }
    /* Kontakt */
    .kontakt-top { grid-template-columns: 1fr; padding-top: var(--header-h); min-height: 0;height:460px; }
    .kontakt-map { position: relative; top: 0; height: 360px; min-height: 0; width: 100%; }
    .kontakt-info { padding: 72px 24px; gap: 40px; margin: 50 0 0 0; }
    .kontakt-salony { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .kontakt-formularz { margin-top: 224px; padding: 56px 24px; }
    .kontakt-formularz-port { padding: 56px 24px; }
    .form-captcha-group { max-width: 100%; }

    /* Lightbox */
    .asmire-lightbox-close { top: 20px; right: 24px; font-size: 40px; }
}

/* ---- ≤480px ---- */
@media (max-width: 480px) {

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

    /* Footer — Gefaell layout: logo + brand side by side, links below */
    .site-footer {
        padding: 14px 0 0;
    }

    .site-footer .footer-inner {
        display: grid;
        grid-template-columns: 1.3fr 1fr; /* Lewa kolumna z tekstem nieco szersza, prawa z linkami */
        grid-template-rows: auto auto; /* Dwa wiersze: 1. Logo, 2. Tekst i Linki */
        gap: 20px 20px; /* Większy odstęp pod logo (40px) i 20px między kolumnami */
        padding: 0 24px 12px;
        text-align: left;
    }

    /* 1. Wiersz: Wyśrodkowane logo na pełną szerokość */
    .site-footer .footer-brand {
        grid-column: 1 / -1; /* Rozciąga się od pierwszej do ostatniej kolumny */
        grid-row: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .site-footer .footer-logo-img {
        width: 300px;
        max-width: 100%;
    }

    /* Ukrywamy ikony social w głównym brandzie na mobile (bo masz drugie w .footer-about) */
    .site-footer .footer-brand > .footer-social {
        display: none;
    }

    /* 2. Wiersz, Lewa kolumna: Tekst i Sociale */
    .site-footer .footer-about {
        grid-column: 1;
        grid-row: 2;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        gap: 24px; /* Odstęp między tekstem a ikonami */
    }

    /* Ukrywamy zbędny napis ASMIRE, logo wystarczy */
    .site-footer .footer-about .footer-nav-col h4 {
        display: none;
    }

    .site-footer .footer-tagline {
        font-size: 11px;
        line-height: 1.3;
        color: var(--beige); /* Lekko wyszarzony, jak na screenie */
        text-align: left;
        margin: 0;
    }

    .site-footer .footer-social-mobile {
        display: flex;
        justify-content: flex-start;
        gap: 16px;
        margin: 0;
        margin-top: 10px; /* DODANE: Odstęp między tekstem a ikonami */
    }
    .header-toggle-text {
        font-size: 18px;
    }
    .site-footer .footer-social-mobile a {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid var(--beige);
        display: flex;
        justify-content: center; /* Wymuszenie w poziomie */
        align-items: center;     /* Wymuszenie w pionie */
        padding: 0;              /* Zerujemy ewentualny padding */
        text-decoration: none;
    }

    .site-footer .footer-social-mobile a svg {
        width: 16px;
        height: 16px;
        display: block;          /* Usuwa phantom space pod ikoną */
        margin: 0;               /* Zeruje marginesy SVG */
    }

    /* 2. Wiersz, Prawa kolumna: KONTAKT i linki */
    .site-footer .footer-inner > .footer-nav-col:last-child {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        padding-top: 0;
    }

    .site-footer .footer-inner > .footer-nav-col:last-child h4 {
        font-size: 14px;
        text-transform: uppercase;
        margin-bottom: 6px;
        padding-left: 37px; /* DODANE: Wyrównuje tytuł z linkami, dodając padding po lewej */
        color: var(--beige);
    }

    .site-footer .footer-nav-col ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 0 37px; /* DODANE: Wyrównuje linki z lewą kolumną, dodając padding po lewej */
        gap: 4px; /* DODANE: Zmniejsza odstęp między linkami, by zrównały się z lewą kolumną */
    }

    .site-footer .footer-nav-col a {
        font-size: 12px;
        color: var(--beige);
    }
    .footer-bottom { padding: 10px 20px; }


    /* Dolny pasek Copyright */
    .site-footer .footer-bottom {
        text-align: center;
        padding: 20px 24px;
        padding-top: 0;
        border-top: none; /* Czyste przejście */
    }

    .site-footer .footer-bottom p {
        font-size: 13px;
        color: var(--beige);
    }

          /* About */
  .about-hero { display: flex; flex-direction: column-reverse; }
.about-hero-left {
    height: auto;
    max-height: none;
    min-height: auto;
    padding: 32px 24px;
}
.about-hero-left img.about-main-img {
    width: 100%;
    max-width: 100%;
}

}
/* ---- ≤430px ---- */
@media (max-width: 430px) {
    /* Hero */
    .hero-left-media { padding: 32px 20px 0; }
    .hero-left-media img.hero-img { width: 100%; max-width: 280px; padding-top: 0; aspect-ratio: 4/5; margin: 40px auto 0; align-self: center; }
    .hero-left-content { padding: 0px 24px 40px; margin-top: 10px; }
    .hero-left-content .hero-quote {padding-bottom:20px; margin: 0; font-size: 16px; line-height: 1.3; }
    .hero-right { padding: 40px 24px 0; }
    .hero-right .ring-preview { width: 100%; max-width: 260px; margin: 0 auto 32px; }
    .hero-right h2 { font-size: 38px; word-wrap: break-word; margin-bottom: 20px; }
    .hero-right .hero-body { font-size: 14px; padding: 0; max-width: 100%; }
    .hero-right .btn { width: 100%; text-align: center; }

    /* Portfolio */
    .portfolio-preview { width: 100%; max-width: 100vw; overflow: hidden; }
    .portfolio-left { width: 100%; max-width: 100%; padding: 40px 20px; box-sizing: border-box; }
    .portfolio-slider { width: 100%; max-width: 100%; }
    .portfolio-title { font-size: 56px; max-width: 100%; word-wrap: break-word; margin-top: 16px; }
    .portfolio-right--video { width: 100%; max-width: 100%; padding: 40px 20px; box-sizing: border-box; }
    .portfolio-video { width: 100%; max-width: 100%; }
    .portfolio-right-content { width: 100%; max-width: 100%; padding: 0; }
    .portfolio-right--video h3 { font-size: 16px; word-wrap: break-word; margin-top: 40px;}
}
/* ==========================================================================
   === O NAS — mobile (≤480px, kalibracja pod 390px) ===
   Mobile: film u góry → tekst na wzorze. Dużą kolumnę ze zdjęciem chowamy,
   a zdjęcie pokazujemy inline po pierwszym akapicie.
   ========================================================================== */
.about-inline-img { display: none; }   /* domyślnie (desktop) ukryte */

@media (max-width: 480px) {


    .about-hero { display: block; min-height: 0; }
    .about-hero-left { display: none; }          /* duże zdjęcie ukryte na mobile */

    .about-hero-right {
        padding: 48px 24px 56px;                 /* bez offsetu headera — film jest wyżej */
        background-size: cover;
        background-position: center;
    }
    .about-hero-right h1 { font-size: 72px; margin-bottom: 24px; }
    .about-hero-right .about-body { max-width: 100%; }
    .about-hero-right .about-body p { font-size: 16px; line-height: 1.6; }
    .about-subhead { font-size: 20px; margin: 24px 0 8px; }

    /* Zdjęcie inline — tylko mobile, po pierwszym akapicie */
    .about-inline-img {
        display: block;
        width: 80%;
        max-width: 280px;
        margin: 24px auto 28px;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border: 6px solid var(--beige);
        box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    }
}
/* === FIX: Social icons — desktop pod logo, mobile pod tagline === */
.footer-social-mobile { display: none; }

@media (max-width: 480px) {
    .footer-brand .footer-social { display: none !important; }
    .footer-social-mobile { display: flex !important; justify-content: center; }
}
/* === FIX: Krótsza mapa na desktop === */
.kontakt-map {margin-top: 10px;
    height: calc(45vh - var(--header-h)) !important;
}
/* === FIX: Kontakt mobile — mapa + info + formularz === */
@media (max-width: 768px) {
    .kontakt-top {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
    }
    .kontakt-map {
        height: 480px !important;
        min-height: 0 !important;
        position: relative !important;
        margin: 0 !important;
    }
    .kontakt-info {
        margin: 0 !important;
        padding: 32px 24px !important;
    }
    .kontakt-formularz {
        position: relative;
        z-index: 10;
        margin-top: 0 !important;
        padding-top: 40px !important;
        border-top: none !important;
    }
}
/* === FIX: Formularz na stronie Portfolio === */
.kontakt-formularz-port {
    background: var(--beige);
    padding: clamp(72px, 10vh, 120px) 40px;
}
.kontakt-formularz-port .kontakt-formularz-inner {
    max-width: 720px;
    margin: 0 auto;
}
.kontakt-formularz-port h2 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 300;
    color: var(--navy);
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .kontakt-formularz-port {
        padding: 56px 24px;
    }
}
/* ============================================
   FIX: rozpychanie strony w prawo (1250–1600px)
   Sztywne px w portfolio-preview → wartości płynne.
   To wyśrodkuje też sekcję procesu i stopkę.
   ============================================ */

/* 1. Bezpiecznik globalny — nic nie wychodzi poza ekran.
   clip (nie hidden) NIE psuje position:sticky mapy na stronie Kontakt. */
main { overflow-x: clip; }

/* 2. Lewa kolumna portfolio — padding płynny zamiast sztywnych 270px */


/* 3. Logo-stamp — nie odsuwamy go sztywnymi 320px, tylko procentowo;
   max-width pilnuje, by nie wystawał poza kolumnę */
.portfolio-stamp {
    margin: 0 0 -100px;
    margin-left: clamp(0px, 18%, 320px);
    max-width: 100%;
}

/* 4. Treść pod wideo — szerokość elastyczna, nigdy szersza niż kolumna */
.portfolio-right-content {
    width: 100%;
    max-width: 720px;          /* nadal max 720px na dużym ekranie */
    box-sizing: border-box;
}

/* ============================================
   Header — logo po lewej (zamiast napisu KMZ)
   ============================================ */
.header-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;               /* zabija phantom space pod img */
}
.header-logo {
    height: 80px;                 /* logo skaluje się wysokością; szerokość auto */
    width: auto;
    display: block;
}

/* Mniejsze na mobile (pasek niższy) */
@media (max-width: 768px) {
    .header-logo { height: 38px; }
}
@media (max-width: 480px) {
    .header-logo { height: 45px; }
}
/* ============================================
   Nav overlay — wersja jasna ze wzorem biżuterii
   (sage + wzór widoczny, tekst ciemny)
   ============================================ */
.nav-overlay {
    background-color: var(--beige);                       /* fallback */
    background-image: url('../images/tlo-bizuteria.jpg'); /* wzór BEZ ciemnej warstwy */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Linki menu — Calibre Regular, ciemne, pełna czytelność */
.overlay-nav a {
    font-family: 'Calibre', sans-serif;
    font-weight: 400;                 /* Regular */
    color: var(--navy);
    opacity: 1;
}
.overlay-nav a:hover { opacity: 0.6; }

/* Aktualna strona — Calibre Medium (cięższa) */
.overlay-nav a[aria-current="page"] {
    font-weight: 500;                 /* Medium */
}

/* Przycisk zamknięcia (X) — ciemny */
.nav-close { color: var(--navy); opacity: 0.7; }
.nav-close:hover { opacity: 1; }

/* Social na dole — Calibre Regular, ciemne */
.overlay-social a {
    font-family: 'Calibre', sans-serif;
    font-weight: 400;
    color: var(--navy);
    opacity: 0.7;
}
.overlay-social a:hover { opacity: 1; }
/* ============================================
   FIX: hero-left + portfolio-right → oliwka #2C3516
   (jaśniejszy zielony z palety, nie najciemniejszy)
   ============================================ */
.hero-left { background: var(--red); }              /* było var(--navy) #1A1E0D */
.portfolio-right--video { background: var(--red); } /* było var(--navy) #1A1E0D */

/* ============================================
   FIX: hero-left @1920 — odstęp górny + pozycja quote wg mockupu
   (scope ≥769px = desktop; mobile 390px bez zmian)
   ============================================ */
@media (min-width: 769px) {
    /* Zdjęcie niżej od headera — większy odstęp górny */
    .hero-left-media {
        padding-top: calc(var(--header-h) + 30px);  /* ~170px; było calc(--header-h + 28px) ≈ 108px */
    }

    /* Quote NIŻEJ — z przerwą pod zdjęciem zamiast nachodzenia na nie */
    .hero-left-content {
        margin-top: 36px;   /* było -70px (ciągnęło quote w górę na zdjęcie) */
    }
}
/* ============================================
   FIX: portfolio-preview @1920 — slider + stamp wg mockupu
   (scope ≥769px = desktop; mobile 390px bez zmian)
   ============================================ */
@media (min-width: 769px) {

    /* Mniej paddingu — slider sam się centruje przez max-width */
    .portfolio-left { padding: 20px 80px 60px 80px; }   /* było 200px 270px */

    /* Slider: węższy + PORTRET 4:5 (było 100% szer., kwadrat 1/1) */
    .portfolio-slider {
        width: 100%;
        max-width: 480px;   /* ~48% panelu 960px, jak w mockupie */
        aspect-ratio: 4 / 5;     /* portret zamiast kwadratu */
        min-height: 0;           /* kasuje stare min-height: 260px */
        margin: 0 auto 36px;     /* wyśrodkowany + odstęp do "Portfolio." */
    }

    /* Stamp: większy, na górnym-prawym rogu slidera, nachodzi na zdjęcie */
    .portfolio-stamp {
        width: 350px;            /* było 200px */
        height: 350px;
        margin: 0 0 -170px 460px; /* left 500 = prawy-górny róg slidera; bottom -120 = nachodzenie */
    }
}
/* ============================================
   FIX 2: proces — WIDOCZNE kółka + grubsza linia + rozdzielacz
   ============================================ */

/* Kółko było niewidoczne: szałwiowe tło + za blada obwódka na szałwiowym tle.
   Wzmacniam obwódkę (grubsza + ciemniejsza). */
.process-num span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #1a1e0d80;   /* było 1px / 0.35 — za blade, zlewało się z tłem */
    background: var(--beige);                   /* tnie linię (zostaje sage, by ją zasłonić) */
    padding-bottom: 10;
    box-sizing: border-box;
}

/* Linia łącząca — grubsza i wyraźniejsza (była 1px / 0.22) */
@media (min-width: 768px) {
    .process-num::before {
        height: 2px;                            /* było 1px */
        background: rgba(26, 30, 13, 0.35);     /* było 0.22 — za blade */
    }
}

/* Rozdzielacz między etykietą (PROJEKT CYFROWY) a opisem — krótka kreska jak na SS */
.process-label { margin-bottom: 0; }
.process-label::after {
    content: '';
    display: block;
    width: 150px;
    height: 1px;
    background: rgba(26, 30, 13, 0.45);
    margin: 14px auto 16px;   /* 14px nad kreską, 16px pod — odstęp do opisu */
}
/* ============================================================
   STOPKA — dopasowanie do mockupu (desktop 1920 px)
   • duży znak wodny (monogram KMZ) po prawej
   • ikony social przeniesione pod akapit w środkowej kolumnie
   • ukryty zdublowany nagłówek nazwy marki
   Scope: ≥769px (mobile 390 bez zmian). Wklej na KOŃCU main.css.
   ============================================================ */
@media (min-width: 769px) {

    /* 1) Stopka jako kontener znaku wodnego.
          overflow:hidden przycina monogram wychodzący za prawą krawędź. */
    .site-footer {
        position: relative;
        overflow: hidden;
    }

    /* 2) Treść stopki MUSI być nad znakiem wodnym (warstwy z-index). */
    .site-footer .footer-inner,
    .site-footer .footer-social-row,
    .site-footer .footer-bottom {
        position: relative;
        z-index: 2;
    }

    /* 4) Logo do LEWEJ krawędzi kolumny (a nie wyśrodkowane). */
    .site-footer .footer-brand,
    .site-footer .footer-logo-link {
        align-items: flex-start;
    }

    /* 5) Środkowa kolumna — chowamy nagłówek z nazwą marki,
          bo logo po lewej już ją niesie (brak dublowania). */
    .site-footer .footer-about .footer-nav-col h4 {
        display: none;
    }

    /* 6) IKONY SOCIAL — pod akapitem w środkowej kolumnie, do lewej.
          Wyłączamy wyśrodkowany rząd pod kolumnami. */
    .site-footer .footer-social-row {
        display: none;
    }
    .site-footer .footer-social-mobile {
        display: flex !important;     /* nadpisuje globalne display:none */
        justify-content: flex-start;
        gap: 14px;
        margin-top: 28px;
    }
    .site-footer .footer-social-mobile a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid var(--beige);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--beige);
        transition: transform var(--transition), opacity var(--transition);
    }
    .site-footer .footer-social-mobile a:hover {
        transform: translateY(-3px);
        opacity: 0.85;
    }
    .site-footer .footer-social-mobile a svg {
        width: 20px;
        height: 20px;
    }
}
/* ============================================================
   STOPKA — układ 4-kolumnowy (desktop ≥769px)
   Logo = 2 części, akapit = 1 część, kontakt = 1 część.
   ============================================================ */
@media (min-width: 769px) {

    /* 4 równe kolumny zamiast 3 */
    .site-footer .footer-inner {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Logo rozciąga się na 2 z 4 kolumn (lewa połowa stopki) */
    .site-footer .footer-brand {
        grid-column: span 2;
    }

    /* Opcjonalnie: powiększ logo, żeby wypełniło szerszą kolumnę.
       Dostrój max-width do oka (zostaw tylko jeśli logo wygląda na zgubione). */
    .site-footer .footer-logo-img {
        width: 100%;
        max-width: 750px;
    }
}
/* ============================================================
   STOPKA — padding górny tylko na tekście + tło na prawej kolumnie
   (desktop ≥769px)
   ============================================================ */
@media (min-width: 769px) {

    /* 1) Zdejmujemy padding górny z CAŁEJ stopki
          → logo dochodzi teraz do górnej krawędzi. */
    .site-footer { padding-top: 0; }

    /* 2) Padding górny dodajemy TYLKO na elementach tekstowych:
          akapit + kolumna KONTAKT. Logo zostaje przy górze. */
    .site-footer .footer-about,
    .site-footer .footer-inner > .footer-nav-col {
        padding-top: 90px;          /* wartość do regulacji */
    }

    /* 3) Tło na elemencie najbardziej na prawo (kolumna KONTAKT).
          align-self: stretch → kolumna na pełną wysokość stopki,
          dzięki czemu tło wypełnia panel od góry do dołu. */
    .site-footer .footer-inner > .footer-nav-col {
        align-self: stretch;
        background-image: url('../images/tło_stopka.png');
        background-repeat: no-repeat;
        background-position: center right;
    }
}
/* ============================================================
   STOPKA — sekcja przyklejona do footer-bottom + tło 2× większe
   (desktop ≥769px)
   ============================================================ */
@media (min-width: 769px) {

    /* 1) Zerujemy DOLNY padding sekcji z kolumnami (było 64px)
          → logo / akapit / kontakt dochodzą do samego dołu. */
    .site-footer .footer-inner { padding-bottom: 0; }

    /* 2) W HTML jest pusty <div class="footer-bottom"></div>, który
          dorzucał ~44px luki nad copyrightem — chowamy TYLKO ten pusty. */
    .site-footer .footer-bottom:empty { display: none; }

    /* 3) Tło prawej kolumny 2× większe.
          200% = dwukrotność szerokości kolumny, wysokość proporcjonalnie. */
    .site-footer .footer-inner > .footer-nav-col {
        background-size: 400%;
    }
}
/* ============================================================
   PROCES + intro „OD POMYSŁU…" — dopasowanie do 390 px
   Sekcja nie miała ŻADNYCH reguł mobile → desktopowe rozmiary
   (h2 100px, img 500px) rozpychały layout poza ekran.
   ============================================================ */
@media (max-width: 480px) {

    /* ---- Pas „OD POMYSŁU DO DOSKONAŁOŚCI" ---- */
    .process-intro { padding: 56px 24px; }
    .process-intro h2 {
        font-size: 40px;       /* było 100px — „DOSKONAŁOŚCI" wychodziło poza ekran */
        line-height: 1.1;
        margin-bottom: 12px;
    }
    .process-intro p {
        font-size: 19px;       /* było 57px — nieproporcjonalne na telefonie */
        line-height: 1.35;
    }

    /* ---- Sekcja kroków ---- */
    .process { padding: 56px 24px; }     /* było 148px 48px */
    .process-grid { gap: 48px; }         /* odstęp między krokami w pionie */
    .process-step { min-width: 0; }      /* pozwala kolumnie zwęzić się do ekranu */

    /* SEDNO: obrazek 500px wymuszał szerokość CAŁEJ siatki (>390px),
       przez co treść ucinała się po prawej. 100% + cap to naprawia. */
    .process-img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 20px;
    }

    .process-label { font-size: 18px; }  /* było 32px — „PIERWSZY POMYSŁ" się ucinało */
    .process-desc  { font-size: 16px; }  /* było 28px */
    .site-footer .footer-social-row { display: none; }
    .portfolio-stamp { display: none; }
    .header-emblem img { height: 55px; width: auto; }
  }
/* ============================================================
   FIX: hero CTA „Poznaj naszą historię" — tylko ten przycisk
   • text-indent kompensuje letter-spacing doklejany po ostatniej literze
   • max-width:none zdejmuje cap 280px, przez który tekst dociskał
     się do prawego paddingu
   ============================================================ */
.hero-right .btn-dark {
    text-indent: 0.14em;   /* = letter-spacing z .btn → wyrównuje lukę L/P */
    max-width: none;       /* przycisk dopasuje szerokość do tekstu, bez ciasnoty */
}
/* ============================================================
   STOPKA — znak wodny KMZ przechodzący na sąsiednią kolumnę
   Tło z kolumny KONTAKT przenosimy na poziom .site-footer,
   bo background nie wychodzi poza boks elementu.
   (desktop ≥769px)
   ============================================================ */
@media (min-width: 769px) {

    /* 1) Zdejmujemy tło z samej kolumny KONTAKT (było clipowane do jej boksu) */
    .site-footer .footer-inner > .footer-nav-col {
        background-image: none;
    }

    /* 2) Footer = warstwa dla znaku wodnego; overflow przycina to, co wyjdzie za krawędź */
    .site-footer {
        position: relative;
        overflow: hidden;
    }

    /* 3) Treść stopki nad znakiem wodnym (warstwy z-index) */
    .site-footer .footer-inner,
    .site-footer .footer-bottom {
        position: relative;
        z-index: 2;
    }

    /* ============================================================
   STOPKA — znak wodny KMZ: większy + na lewo, ALE wciąż widoczny
   Niska stopka + overflow:hidden = widać tylko ŚRODKOWY pasek
   monogramu. Za duży = pasek trafia w pustkę między literami.
   (desktop ≥769px) — ZASTĘPUJE poprzedni ::after
   ============================================================ */
@media (min-width: 769px) {
    .site-footer::after {
        content: "";
        position: absolute;
        top: 50%;                 /* PION: zmieniaj (np. 40% / 60%), by okno trafiło na grubszą partię liter */
        right: 200px;             /* POZIOM: większe = bardziej w LEWO (na tekst); ujemne = w prawo */
        transform: translateY(-50%);
        width: 1140px;            /* ROZMIAR: 760 było widoczne, 1520 znikało → 1000 to złoty środek */
        height: 1140px;
        background: url('../images/tło_stopka.png') no-repeat center right / contain;
        pointer-events: none;
        z-index: 1;
    }
}
/* ============================================
   PORTFOLIO — slidery (auto-scroll, bez kontrolek)
   Cela slidera korzysta z istniejącej siatki .portfolio-item
   (kwadrat, gap 2px, ciemne tło) — dokładamy tylko mechanikę taśmy.
   ============================================ */

.portfolio-carousel {
    cursor: default;            /* brak klikania — nadpisuje pointer z .portfolio-item */
}

/* Taśma ze zdjęciami — przesuwa się w poziomie */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Pojedyncza klatka — zawsze 100% szerokości celi */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

/* WAŻNE: nadpisuje .portfolio-item img { position:absolute }.
   W sliderze klatki układa flex, więc img musi być static. */
.portfolio-carousel .carousel-slide img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dostępność — wyłącz animację przy preferencji zredukowanego ruchu */
@media (prefers-reduced-motion: reduce) {
    .carousel-track { transition: none; }
}
}
/* ============================================
   PORTFOLIO — slidery (utwardzone)
   ============================================ */
.portfolio-carousel { cursor: default; }

.portfolio-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
    will-change: transform;
}

.portfolio-carousel .carousel-slide {
    position: relative;        /* kotwica dla absolutnego <img> */
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.portfolio-carousel .carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-carousel .carousel-track { transition: none; }
}
/* ============================================================
   POPRAWKI 26.06 — STRONA GŁÓWNA / HERO  (desktop ≥769px)
   Kalibracja pod 1920px (panel ~960px). Mobile 390px bez zmian.
   Wartości dobrane „na oko" wg wzoru — łatwo podregulować.
   ============================================================ */
@media (min-width: 769px) {

    /* (4) Napis „Krakowska Manufaktura Złotnicza." (Carattere, script)
       — mniejszy + ciaśniejsza interlinia. Było: 88px / line-height 1.08 */
    .hero-right h2 {

        line-height: 0.95;      /* ⬇ z 1.08 — ciaśniej; jeśli pętle liter zachodzą, daj 1.0 */
        margin-bottom: 16px;    /* ⬇ z 32px → (3) przycisk bliżej tekstu */
    }

    /* (3) Przycisk „Poznaj naszą historię" — mniejsza ramka (box) */
    .hero-right .btn {
        padding: 10px 34px;     /* ⬇ z 13px 48px */
    }

    /* (1) Zdjęcie obrączek (prawy panel) — mniejsze. Było: 75% / max 460px */
    .hero-right .ring-preview {
        width: 68%;
        max-width: 400px;       /* ⬇ z 460px */
        margin-bottom: 32px;    /* lekko mniejszy odstęp do nagłówka */
    }

    /* (2) Cytat w lewym panelu — TROCHĘ wyżej. Było: margin-top 36px */
    .hero-left-content {
        margin-top: 8px;        /* ⬇ z 36px — podjeżdża pod zdjęcie, ale bez nachodzenia */
    }

    /* (5) Wodny znak „KMZ" w tle prawego panelu — wypełnia kwadrat,
       bez pustych pasów nad/pod. Było: background-size: contain */
    .hero-right {
        background-size: cover;
        background-position: center;
        /* Jeśli „cover" za mocno przycina boki monogramu →
           zamień na:  background-size: auto 100%;  */
    }
}
.hero-right {
    background-image: url('../images/tło_strona_główna.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
/* ============================================
   FIX: hero-left / hero-right — równa wysokość 1060px
   na desktopie (1920px), żeby żadna kolumna nie
   „dyktowała" wysokości wiersza przez zmienną
   długość tekstu. 1060px = 100px padding-top
   .hero-right + 960px kwadrat tła.
   ============================================ */
@media (min-width: 1600px) {

    .hero-left,
    .hero-right {
        height: 960px;   /* obie kolumny zawsze tej samej wysokości */
    }

    /* Treść w lewej kolumnie wyśrodkowana w pionie,
       żeby nadmiar/niedomiar miejsca nie zostawiał
       pustego pasa tylko na dole (jak wcześniej w prawej) */
    .hero-left {
        justify-content: center;
    }
}
