/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #c09e6c; /* Złoty/Brązowy akcent */
    --primary-hover: #a8844f;
    --secondary-color: #69440b;   
    --third-color: #3e3c39;
    --primary-soft: rgba(192, 158, 108, 0.12);
    --primary-line: rgba(192, 158, 108, 0.28);

    --bg-dark: #1b1b1b;
    --bg-darker: #121212;
    --bg-darkest: #0d0d0d;
    --bg-light: #f7f6f2;   /* Tło sekcji jasnych */
    --bg-cream: #efece3;   /* Tło sekcji kremowych */

    --text-light: #ffffff;
    --text-gray: #a3a3a3;
    --text-muted: #6f6a63;
    --text-dark: #1a1a1a;

    --line-dark: rgba(255, 255, 255, 0.1);
    --line-light: rgba(26, 26, 26, 0.12);

    /* Lokalne fonty (wp-fonts-local): Inter 400/700, Playfair Display 400 + 400 italic. */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --container-width: 1400px;
    --radius: 4px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

::selection {
    background: var(--primary-color);
    color: #fff;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    font-size: 13px;
    letter-spacing: 1px;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ==========================================================================
   SECTION SHELLS & HEADERS
   ========================================================================== */
.section-light { background-color: var(--bg-light); }
.section-cream { background-color: var(--bg-cream); }
.section-dark  { color: var(--text-light); 
        background-image: url('/wp-content/themes/millsftcustommadefurniture/assets/img/bga2.webp')
}
.section-dark .section-subtitle{
    color: var(--primary-hover); 
}

.page-view main{
    padding-top: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-left {
    text-align: left;
    margin-bottom: 30px;
}

.section-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--third-color);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 400;
    line-height: 1.15;
    color: inherit;
}

.section-light .section-title,
.section-cream .section-title {
    color: var(--text-dark);
}

.section-rule {
    display: block;
    width: 56px;
    height: 1px;
    background: var(--primary-color);
    margin: 22px auto 0;
    position: relative;
}

.section-rule::before,
.section-rule::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    border: 1px solid var(--primary-color);
    transform: translateY(-50%) rotate(45deg);
    background: inherit;
}

.section-rule::before { left: -10px; }
.section-rule::after  { right: -10px; }

.section-header-left .section-rule {
    margin-left: 0;
    margin-right: auto;
}

.section-header-left .section-rule::before {
    display: none;
}

.section-lead {
    max-width: 640px;
    margin: 26px auto 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
}

.section-dark .section-lead {
    color: var(--text-gray);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 16px;
    height: 16px;
    margin-left: 10px;
    transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 10px 30px -10px rgba(192, 158, 108, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-color: var(--text-light);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

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

/* Przyciski w headerze i hero — tło wg wzoru przycisk1.png:
   skośny gradient od przygaszonego brązu (lewa krawędź) do pełnego złota (prawa/dół).
   Kąt i stopy dobrane pomiarowo do wzoru (śr. różnica jasności ~2,6/255). */
.header .btn-primary,
.hero .btn-primary {
    background-image: linear-gradient(96deg,
        #9a744a 0%,
        #ab8151 30%,
        #bd9560 62%,
        #c59d65 82%,
        #c69f6a 100%);
}

/* hover musi podmienić background-image — sam background-color z .btn-primary:hover
   byłby zasłonięty przez gradient */
.header .btn-primary:hover,
.hero .btn-primary:hover {
    background-image: linear-gradient(96deg,
        #a67e51 0%,
        #b78b59 30%,
        #c9a068 62%,
        #d1a86e 82%,
        #d2aa72 100%);
}
.header .header-right a.btn{
    font-weight: 400;
}
/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 22px 0;
    background: linear-gradient(180deg, rgb(10 10 10) 0%, rgb(10 10 10 / 62%) 10%, rgb(10 10 10 / 0%) 100%);
    transition: var(--transition);
}

.header.scrolled {
    position: fixed;
    background: linear-gradient(180deg, rgb(10 10 10) 0%, rgba(10, 10, 10, 0.479) 100%);
    backdrop-filter: blur(10px);
    padding: 12px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-light);
    flex-shrink: 0;
}

.logo-img {
    width: 144px;
    height: auto;
    transition: var(--transition);
}

.logo-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.18);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--text-gray);
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-light);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center; /* podkreślenie rozwija się od środka na boki */
    transition: transform 0.35s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--primary-color);
}

.phone-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0 11px;
}

.burger span {
    display: block;
    /* Pełne 2px: ułamkowa wysokość (1.5px) renderowała skrajne linie
       cieniej, gdy wypadały na granicy pół-piksela. */
    height: 2px;
    width: 100%;
    background: var(--text-light);
    transition: var(--transition);
}

.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg-darker);
    padding: 110px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mobile-list a {
    display: block;
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--text-light);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition);
}

.mobile-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--text-gray);
    font-size: 14px;
}

.mobile-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.mobile-phone i, .mobile-phone svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden; /* przycina animację zoomu tła, inaczej powoduje poziomy scroll */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    /* szerzej niż 700px, żeby dłuższe hasła rotatora mieściły się w 2 liniach
       i nie rozpychały boxu ponad wysokość głównego hasła */
    max-width: 820px;
    color: var(--text-light);
}

.hero-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-title .highlight {
    color: var(--primary-color);
    font-style: italic;
}

/* złoty akcent bez kursywy — do nazw producentów itp. */
.hero-title .accent {
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Rotator haseł w hero — slajdy leżą na sobie w jednej komórce gridu,
   więc kontener ma wysokość najwyższego z nich i nic pod spodem nie skacze.
   -------------------------------------------------------------------------- */
.rotator {
    display: grid;
    /* krótkie hasła wyśrodkowane w boxie — inaczej wisiałyby u góry z dziurą pod spodem */
    align-items: center;
    min-height: 1px;
}

/* wszystkie hasła w rozmiarze głównego nagłówka — treść skrócona tak,
   by każda linia mieściła się w kolumnie (≈27 znaków przy 64px) */
.rotator .slide {
    grid-area: 1 / 1;
    visibility: hidden;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.1;
}

.rotator .slide.is-active,
.rotator .slide.is-leaving {
    visibility: visible;
}

/* --------------------------------------------------------------------------
   Animacja nagłówka hero — słowa wjeżdżają zza maski (script.js je rozbija)
   -------------------------------------------------------------------------- */

/* ukryte do czasu rozbicia na słowa, żeby nie mignął nierozbity tekst;
   .split dokłada JS — bez JS (brak klasy .js) nagłówek jest normalnie widoczny */
.js .hero-title { opacity: 0; }
.hero-title.split { opacity: 1; }

.hero-title .line { display: block; }

.hero-title .word {
    display: inline-block;
    overflow: hidden;
    /* zapas na ogonki (ą, ę), akcenty (ó) i skos kursywy — maska inaczej je ucina.
       Ujemny margines zdejmuje ten zapas z układu, więc odstępy zostają bez zmian. */
    padding: 0.18em 0.09em 0.24em;
    margin: -0.18em -0.09em -0.24em;
}

.hero-title .word > span {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    will-change: transform, opacity;
}

/* wjazd słów aktywnego slajdu */
.hero-title.split .slide.is-active .word > span {
    animation: heroWordRise 0.85s var(--ease-out) var(--d, 0ms) both;
}

/* wyjazd — słowa uciekają dalej w górę, za maskę (efekt taśmy) */
.hero-title.split .slide.is-leaving .word > span {
    animation: heroWordLeave 0.55s cubic-bezier(0.55, 0, 0.85, 0.2) var(--dx, 0ms) both;
}

/* złote akcenty — po wjeździe delikatny rozbłysk */
.hero-title.split .slide.is-active .highlight > span,
.hero-title.split .slide.is-active .accent > span {
    animation:
        heroWordRise 0.85s var(--ease-out) var(--d, 0ms) both,
        heroWordGlow 1.9s ease-in-out calc(var(--d, 0ms) + 620ms);
}

@keyframes heroWordRise {
    from { transform: translateY(110%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes heroWordLeave {
    from { transform: translateY(0);     opacity: 1; }
    to   { transform: translateY(-110%); opacity: 0; }
}

@keyframes heroWordGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(246, 228, 196, 0); }
    45%      { text-shadow: 0 0 26px rgba(246, 228, 196, 0.55); }
}

/* bez animacji: pokazujemy tylko główne hasło, reszta nie zajmuje miejsca */
@media (prefers-reduced-motion: reduce) {
    .rotator .slide:not(.is-active) { display: none; }
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.hero-scroll-line {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--primary-color);
    animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { top: -60px; }
    100% { top: 60px; }
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features {
    background-color: var(--bg-darker);
    padding: 50px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: translateY(-3px);
}

.feature-icon i, .feature-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.feature-text h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
}

.feature-text p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ==========================================================================
   OFERTA
   ========================================================================== */
.offer {
    padding: 100px 0;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.offer-card {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 350px;
}

.offer-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--ease-out);
}

.offer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 100%);
    transition: var(--transition);
}

.offer-card:hover .offer-image {
    transform: scale(1.06);
}

.offer-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background-color: var(--bg-dark);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

.offer-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--primary-color);
    transition: width 0.45s var(--ease-out);
}

.offer-card:hover .offer-label {
    background-color: #262626;
}

.offer-card:hover .offer-label::before {
    width: 100%;
}

.offer-icon {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    margin-right: 15px;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.offer-name {
    font-size: 16px;
    font-weight: 400;
    flex-grow: 1;
}

.offer-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-gray);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.offer-card:hover .offer-arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

.offer-footer {
    text-align: center;
}

/* ==========================================================================
   PROCES
   ========================================================================== */
.process {
    padding: 100px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 70px;
    align-items: stretch;
}

.process-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.process-media img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}

.process-media:hover img {
    transform: scale(1.04);
}

.process-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 2px solid var(--primary-color);
}

.process-badge-num {
    font-family: var(--font-serif);
    font-size: 42px;
    line-height: 1;
    color: var(--primary-color);
}

.process-badge-num sup {
    font-size: 20px;
}

.process-badge-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-gray);
    line-height: 1.4;
}

.process-lead {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 42px;
    max-width: 560px;
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
    margin-bottom: 45px;
}

.step {
    position: relative;
    padding-left: 4px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

/* Kolumna 1: ikona + numer, kolumna 2: tytuł + opis. */
.step-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.step-body {
    min-width: 0;
}

.step-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 49px;
    background-color: #ffffff8c;
    color: var(--third-color);
    transition: var(--transition);
}

.step-icon i, .step-icon svg {
    stroke-width: 1.5;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--third-color);
    display: block;
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================================
   REALIZACJE
   ========================================================================== */
.works {
    padding: 100px 0;
}

.works-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-gray);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 11px 22px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    grid-auto-flow: dense; /* backfill luk, gdy kafel wide/tall nie mieści się w rzędzie */
    gap: 16px;
}

.work {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--bg-darker);
}

.work-wide { grid-column: span 2; }
.work-tall { grid-row: span 2; }

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out);
}

.work::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.work:hover img {
    transform: scale(1.07);
}

.work:hover::after {
    opacity: 1;
}

.work-cap {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px 24px;
    width: 100%;
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.45s var(--ease-out);
}

.work:hover .work-cap {
    transform: translateY(0);
    opacity: 1;
}

.work-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    border: 1px solid var(--primary-line);
    padding: 4px 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.35);
}

.work-cap h3 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
}

.work-cap h3 span {
    color: var(--text-gray);
    font-size: 15px;
    font-style: italic;
}

.work-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.35s var(--ease-out);
}

.work-zoom i, .work-zoom svg {
    width: 16px;
    height: 16px;
}

.work:hover .work-zoom {
    opacity: 1;
    transform: scale(1);
}

.work.is-hidden {
    display: none;
}

.works-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 60px 0;
    font-style: italic;
}

.works-footer {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================================================
   MATERIAŁY
   ========================================================================== */
.materials {
    padding: 100px 0;
}

.mat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 60px;
}

.mat {
    background: #fff;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.mat:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
    border-color: var(--primary-line);
}

.mat-swatch {
    aspect-ratio: 4 / 5;
    position: relative;
    isolation: isolate;
}

.mat-swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.18;
    mix-blend-mode: soft-light;
}

.tex-oak {
    background: repeating-linear-gradient(90deg, rgba(111, 81, 55, 0.14) 0 2px, transparent 2px 9px),
        repeating-linear-gradient(90deg, rgba(255, 244, 222, 0.16) 0 26px, transparent 26px 54px),
        linear-gradient(180deg, #d8be97 0%, #c9a87e 100%);
}

.tex-walnut {
    background: repeating-linear-gradient(0deg, rgba(38, 24, 12, 0.22) 0 2px, transparent 2px 11px),
        repeating-linear-gradient(0deg, rgba(255, 220, 180, 0.08) 0 30px, transparent 30px 62px),
        linear-gradient(160deg, #7a5a3d 0%, #5a3f2a 100%);
}

.tex-stone {
    background: radial-gradient(80% 60% at 25% 20%, rgba(255, 253, 247, 0.7), rgba(255, 253, 247, 0) 60%),
        radial-gradient(70% 55% at 78% 75%, rgba(150, 140, 122, 0.35), rgba(150, 140, 122, 0) 65%),
        linear-gradient(150deg, #ddd6c8 0%, #c6bcaa 100%);
}

.tex-linen {
    background: repeating-linear-gradient(0deg, rgba(120, 104, 80, 0.09) 0 2px, transparent 2px 4px),
        repeating-linear-gradient(90deg, rgba(120, 104, 80, 0.09) 0 2px, transparent 2px 4px),
        linear-gradient(180deg, #e7ddca 0%, #dbcfb7 100%);
}

.tex-metal {
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 3px),
        linear-gradient(100deg, #cdc9c2 0%, #a8a39a 70%, #b9b4ab 100%);
}

.tex-lacquer {
    background: radial-gradient(120% 100% at 70% 0%, rgba(255, 252, 244, 0.5), rgba(255, 252, 244, 0) 55%),
        linear-gradient(160deg, #bdb2a0 0%, #a89d8a 100%);
}

.mat figcaption {
    padding: 16px 16px 18px;
}

.mat figcaption h3 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.mat figcaption span {
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Brands */
.brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 32px 0;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    margin-bottom: 60px;
}

.brands-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.brands-list {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-chip {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    padding: 10px 24px;
    border: 1px solid var(--line-light);
    transition: var(--transition);
}

.brand-chip:hover {
    color: var(--text-dark);
    border-color: var(--primary-color);
}

/* Wideshot */
.wideshot {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.wideshot img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}

.wideshot:hover img {
    transform: scale(1.03);
}

.wideshot figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-top: 2px solid var(--primary-color);
}

.wideshot figcaption i, .wideshot figcaption svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* ==========================================================================
   O NAS / PRACOWNIA
   ========================================================================== */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: stretch;
    margin-bottom: 80px;
}

.about-body > p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
    max-width: 620px;
}

.about-body strong {
    color: var(--primary-color);
    font-weight: 700;
}

.about-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-media img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}

.about-media:hover img {
    transform: scale(1.05);
}

.about-media-cap {
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(6px);
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 2px solid var(--primary-color);
}

.about-media-cap strong {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.about-media-cap span {
    font-size: 12px;
    color: var(--text-gray);
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.scard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 26px 22px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.scard:hover {
    background: rgba(192, 158, 108, 0.06);
    border-color: var(--primary-line);
    transform: translateY(-4px);
}

.scard-icon {
    width: 26px;
    height: 26px;
    color: var(--primary-color);
    stroke-width: 1.5;
    margin-bottom: 16px;
}

.scard h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.scard p {
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-gray);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
    text-align: center;
    padding: 34px 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat:hover {
    border-color: var(--primary-line);
    background: rgba(192, 158, 108, 0.05);
}

.stat-icon {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    stroke-width: 1.25;
    margin: 0 auto 16px;
}

.stat b {
    display: block;
    font-family: var(--font-serif);
    font-size: 46px;
    font-weight: 400;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.stat b small {
    font-size: 18px;
    color: var(--text-gray);
    margin-right: 6px;
    font-family: var(--font-sans);
    font-weight: 400;
}

.stat b sup {
    font-size: 24px;
}

.stat h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.stat p {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==========================================================================
   OPINIE
   ========================================================================== */
.reviews {
    padding: 100px 0;
}

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

.review {
    background: #fff;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: 12px 2px 17px -20px rgba(0, 0, 0, 0.3);
}

.review::before {
    content: '”';
    position: absolute;
    top: 6px;
    right: 24px;
    font-family: var(--font-serif);
    font-size: 90px;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.18;
}

.review-stars {
    display: flex;
    gap: 4px;
    color: var(--primary-color);
}

.review-stars i, .review-stars svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.review blockquote {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: #45413c;
    font-style: italic;
    flex-grow: 1;
}

.review figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line-light);
}

.review-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    color: var(--primary-hover);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50%;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-meta strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.review-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

.reviews-info{
    padding: 40px 10px 10px 10px;
    font-size: 0.8rem;
    color: #6b6b6b;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: start;
}

.faq-head > p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 380px;
}

.faq-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--text-dark);
    transition: var(--transition);
}

.faq-phone i, .faq-phone svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.faq-phone:hover {
    color: var(--primary-color);
}

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

.faq-item {
    border-bottom: 1px solid var(--line-light);
}

.faq-q {
    width: 100%;
    background: transparent;
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    padding: 24px 0;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
}

.faq-q:hover {
    color: var(--primary-hover);
}

.faq-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.35s var(--ease-out);
}

.faq-q[aria-expanded="true"] .faq-ico {
    transform: rotate(45deg);
}

.faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease-out);
}

.faq-panel > div {
    overflow: hidden;
}

.faq-item.open .faq-panel {
    grid-template-rows: 1fr;
}

.faq-panel p {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
    padding-bottom: 24px;
    max-width: 640px;
}

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 14px;
}

.cinfo {
    display: block;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    border-left: 2px solid var(--primary-line);
    transition: var(--transition);
}

a.cinfo:hover {
    background: rgba(192, 158, 108, 0.07);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.cinfo i, .cinfo svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    stroke-width: 1.5;
    margin-bottom: 14px;
}

.cinfo-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.cinfo strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.cinfo-sub {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
    font-weight: 400;
}

/* Form */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 40px;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-gray);
}

.field input,
.field select,
.field textarea {
    font-family: inherit;
    font-size: 14.5px;
    color: #fff;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    padding: 13px 15px;
    transition: var(--transition);
    width: 100%;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c09e6c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

.field select option {
    background: var(--bg-dark);
    color: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #6b6b6b;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
}

.field input.invalid,
.field textarea.invalid {
    border-color: #b4553f;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 6px 0 24px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.6;
}

.checkbox input {
    appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.checkbox input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox input:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox input.invalid {
    border-color: #b4553f;
}

.form-note {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    color: var(--text-gray);
}
.form-note.success,
.form-note.error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0 22px;
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid;
    border-left-width: 3px;
    border-radius: var(--radius);
    animation: mft-note-in 0.45s var(--ease-out) both;
}

.form-note.success::before,
.form-note.error::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: currentColor;
    -webkit-mask: var(--note-icon) center / contain no-repeat;
    mask: var(--note-icon) center / contain no-repeat;
}

.form-note.success {
    --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
    color: #d9c09a;
    background: var(--primary-soft);
    border-color: var(--primary-line);
    border-left-color: var(--primary-color);
}

.form-note.error {
    --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E");
    color: #e39274;
    background: rgba(180, 85, 63, 0.14);
    border-color: rgba(209, 120, 95, 0.35);
    border-left-color: #d1785f;
}

@keyframes mft-note-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-cream);
    color: #000000;
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-logo {
    width: 130px;
    height: auto;
    margin-bottom: 22px;
}

.footer-brand p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    max-width: 320px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-social i, .footer-social svg {
    width: 17px;
    height: 17px;
}

.footer-col h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 22px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
    display: inline-block;
}

.footer-col address {
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    margin-bottom: 20px;
}

.footer-contact {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12.5px;
    font-weight: 400;
    color: #1f1f1f;
}

.footer-bottom a {
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

.to-top i, .to-top svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* display:flex powyżej nadpisałoby display:none z atrybutu [hidden],
   przez co zamknięty lightbox przechwytywałby kliknięcia na całej stronie */
.lightbox[hidden] {
    display: none;
}

.lightbox.show {
    opacity: 1;
}

.lb-figure {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.lb-figure img {
    max-width: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    border-radius: var(--radius);
}

.lb-figure figcaption {
    color: var(--text-gray);
    font-size: 14px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.lb-close { top: 24px; right: 24px; }
.lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }

.lb-close i, .lb-prev i, .lb-next i,
.lb-close svg, .lb-prev svg, .lb-next svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js [data-reveal].revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1300px) {
    .nav-list { gap: 22px; }
    .nav-link { font-size: 11.5px; }
    .header-right { gap: 18px; }
    .logo-divider, .logo-text { display: none; }
}

@media (max-width: 1200px) {
    .container { padding: 0 28px; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px;
    }

    .feature-item:nth-child(2)::after { display: none; }

    .mat-grid { grid-template-columns: repeat(3, 1fr); }

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

    .process-media img { min-height: 340px; }

    .works-grid { grid-template-columns: repeat(3, 1fr); }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .nav { display: none; }
    .header-right .btn { display: none; }
    .burger { display: flex; }
    .logo-img { width: 92px; }

    .offer-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .services { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .header-right .phone-link { display: none; }

    .offer, .process, .works, .materials, .about, .reviews, .faq, .contact {
        padding: 70px 0;
    }

    .section-header { margin-bottom: 40px; }

    .hero { min-height: 92vh; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-scroll { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-item::after { display: none; }

    .offer-grid { grid-template-columns: 1fr; }
    .offer-card { height: 280px; }

    .steps { grid-template-columns: 1fr; gap: 26px; }

    .process-badge { padding: 16px 18px; }
    .process-badge-num { font-size: 32px; }

    .mat-grid { grid-template-columns: repeat(2, 1fr); }

    .works-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .work-wide { grid-column: span 1; }
    .work-tall { grid-row: span 1; }

    .work-cap {
        opacity: 1;
        transform: none;
        padding: 18px;
    }

    .brands { gap: 20px; flex-direction: column; }

    .wideshot img { aspect-ratio: 16 / 10; }
    .wideshot figcaption {
        position: static;
        border-top: none;
        border-left: 2px solid var(--primary-color);
    }

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

    .contact-form { padding: 26px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .footer { padding-top: 60px; }

    /* Stopka <768: marka wyśrodkowana na całej szerokości, „Na skróty"
       i „Oferta" obok siebie, kontakt pod nimi również wyśrodkowany. */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
        padding-bottom: 44px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand p { max-width: 420px; }

    .footer-grid > .footer-col:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-bottom { justify-content: center; text-align: center; }

    .mobile-menu { padding: 100px 24px 32px; }
    .mobile-list a { font-size: 22px; padding: 13px 0; }

    .lightbox { padding: 70px 16px; }
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
    .lb-close { top: 16px; right: 16px; }
    .to-top { right: 16px; bottom: 16px; }
}


/* ==========================================================================
   INTEGRACJA WORDPRESS — style dodane do designu „theme4”
   ========================================================================== */

/* Podstrony: nagłówek zawsze na ciemnym tle (czytelny nad jasnymi sekcjami). */
body.page-view .header {
    position: fixed;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Pasek administracyjny WP a przyklejony nagłówek / menu mobilne. */
@media screen {
    body.admin-bar .header.scrolled,
    body.admin-bar.page-view .header { top: 32px; }
    body.admin-bar .mobile-menu { top: 32px; }
}
@media screen and (max-width: 782px) {
    body.admin-bar .header.scrolled,
    body.admin-bar.page-view .header { top: 46px; }
    body.admin-bar .mobile-menu { top: 46px; }
}

/* Nagłówek podstron zapasowych (wpis, 404, wyszukiwarka, blog). */
.page-head { padding: 150px 0 60px; text-align: center; }
.page-head .section-title { color: var(--text-light); margin: 0; }
.page-head-lead { color: var(--text-gray); margin-top: 14px; }

.blog .page-head, .wp-singular .page-head{
    padding: 90px 0 60px 0px;
    text-align: center;
}

/* Treść zwykłej strony (np. polityka prywatności). */
.entry { padding: 80px 0 100px; }
.entry.section-light { color: var(--text-dark); }
.entry-content {
    max-width: 1300px;
    margin: 0 auto;
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.8;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-dark);
    margin: 1.6em 0 0.6em;
    line-height: 1.25;
}
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content a { color: var(--primary-hover); text-decoration: underline; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.1em 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.entry-content blockquote {
    margin: 1.4em 0;
    padding: 6px 0 6px 22px;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
    color: var(--text-muted);
}

/* Wyrównanie i podpisy obrazków wstawionych z edytora WP w treść wpisu
   (klasy align*, wp-caption). Bez tego np. „alignright” nie oblewa tekstem. */
.entry-content .alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.entry-content .alignleft { float: left; margin: 0.4em 1.6em 1em 0; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignnone { display: block; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figure.alignright,
.entry-content figure.alignleft { max-width: 50%; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption img { display: block; }
.entry-content .wp-caption-text,
.entry-content figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}
/* Domknięcie opływania — obrazek nie „wychodzi” poza treść wpisu. */
.entry-content::after { content: ""; display: block; clear: both; }
/* Telefony: zamiast ciasnego oblewania — obrazek na całą szerokość, wyśrodkowany. */
@media (max-width: 560px) {
    .entry-content .alignright,
    .entry-content .alignleft {
        float: none;
        display: block;
        margin: 1em auto;
    }
    .entry-content figure.alignright,
    .entry-content figure.alignleft { max-width: 100%; }
}

/* „O nas” — treść opisowa z edytora WP (obszar .about-body). */
.about-content { max-width: 620px; }
.about-content > :first-child { margin-top: 0; }
.about-content > :last-child { margin-bottom: 0; }
.about-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}
.about-content ul,
.about-content ol { margin: 0 0 20px 1.3em; color: var(--text-gray); font-weight: 400; }
.about-content li { margin-bottom: 8px; line-height: 1.7; }
.about-content a { color: var(--primary-color); text-decoration: underline; }

/* Materiały — dekor ze zdjęciem z biblioteki (zamiast tła CSS). */
.mat-swatch-img { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* „Jak pracujemy” — panel bez zdjęcia (brak wybranego zdjęcia z biblioteki).
   Neutralny gradient designu, bez fotografii dołączonej do motywu (licencja GPL). */
.process-placeholder {
    height: 100%;
    min-height: 460px;
    background:
        radial-gradient(90% 70% at 22% 16%, rgba(192, 158, 108, 0.22), rgba(192, 158, 108, 0) 60%),
        linear-gradient(155deg, #efe6d5 0%, #ddceb2 100%);
}

/* „O nas” — brak zdjęcia = układ jednokolumnowy (kolumna zdjęcia ukryta). */
.about-grid-single { grid-template-columns: 1fr; }

/* Licznik „Jak pracujemy” — podpis pobierany z Dostosuj (1. licznik, bez <br>);
   ograniczenie szerokości zawija dłuższy podpis, zachowując kompaktowy kafel. */
.process-badge-label { max-width: 92px; }

/* Honeypot formularza kontaktowego — ukryty przed użytkownikiem. */
.mft-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Lista wpisów „Aktualności” (blog / wyszukiwarka) — siatka 3 karty w wierszu
   na desktopie, 2 na tablecie, 1 na telefonie (media queries niżej). */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-light); border-radius: 17px; overflow: hidden; cursor: pointer; transition: var(--transition); }
.news-card-image { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.news-card-body h3 { font-weight: 700; font-size: 20px; margin: 6px 0 10px; }
.news-card-body h3 a { color: var(--text-dark); }
.news-card-body p { margin: 0; }
.news-date { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--primary-hover); }
.news-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; align-self: flex-start; font-weight: 700; font-size: 14px; color: var(--primary-color); }
.news-more:hover { color: var(--primary-hover); }
.news-more svg { transition: transform .2s ease; }
.pagination { display: flex; gap: 8px; justify-content: center; list-style: none; margin: 50px 0 0; padding: 0; }
.pagination a { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line-light); border-radius: var(--radius); color: var(--text-dark); }
.pagination .active a { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
@media (max-width: 992px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Podstrony oferty i realizacji (single-oferta.php / single-realizacja.php)
   -------------------------------------------------------------------------- */

/* Okruszki w nagłówku podstrony. */
.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 16px;
}
.breadcrumbs a { color: var(--primary-color); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--primary-hover); }

/* Oferta — podstrona pozycji: obrazek + opis + CTA. */
.offer-single { padding: 80px 0 90px; }
.offer-single-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}
.offer-single-grid.offer-single-noimg { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.offer-single-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}
.offer-single-body .entry-content { max-width: none; margin: 0; }
.offer-single-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.offer-single-more { padding-top: 0; }

/* Realizacja — podstrona: opis + galeria z powiększeniem (lightbox). */
.real-single { padding: 60px 0 100px; }
.real-single-desc {
    max-width: 820px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-gray);
}
.real-single-desc p { margin: 0 0 1.1em; }
.real-single-desc > :last-child { margin-bottom: 0; }
.real-single-desc a { color: var(--primary-color); text-decoration: underline; }
.real-single-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; }
.real-single-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 50px; }

/* Jedno zdjęcie + opis: zdjęcie z lewej, tekst z prawej (obok siebie). */
.real-single-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 55px;
    align-items: center;
}
.real-single-split .work { aspect-ratio: 4 / 3; }
.real-single-desc-side {
    max-width: none;
    margin: 0;
    text-align: left;
}

/* Ikona po lewej stronie tekstu przycisku (odwrotność .btn-icon). */
.btn-icon-left { width: 16px; height: 16px; margin-right: 10px; }

/* Kafle-linki (lista realizacji) i kafle galerii — widoczny fokus klawiatury. */
.work:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }

@media (max-width: 992px) {
    .offer-single-grid { grid-template-columns: 1fr; gap: 36px; }
    .real-single-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
    .real-single-split { grid-template-columns: 1fr; gap: 32px; }
    .real-single-split .work { aspect-ratio: 16 / 10; }
    .real-single-desc-side { text-align: center; }
}

@media (max-width: 768px) {
    .offer-single { padding: 60px 0 70px; }
    .offer-single-cta .btn { flex: 1 1 100%; }
    .real-single-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .real-single-footer .btn { flex: 1 1 100%; }
}

/* Zgoda RODO w formularzu — link do polityki prywatności. */
.checkbox a { color: var(--primary-color); text-decoration: underline; }
.checkbox a:hover { color: var(--primary-hover); }
