/* =========================================================
   Łososina Górna — main.css
   Delikatny styl: jasne tło, dyskretne separatory, lekka typografia.
   ========================================================= */

:root {
    --lg-bg: #fafaf7;
    --lg-surface: #ffffff;
    --lg-text: #2c2a26;
    --lg-muted: #7a766f;
    --lg-line: #e8e5df;
    --lg-accent: #191919;
    --lg-accent-soft: #f0f0ef;
    --lg-hover: rgba(0, 0, 0, .05);
    --lg-heart: #c25e5e;
    --lg-shadow: 0 1px 2px rgba(20, 18, 14, .04), 0 8px 24px rgba(20, 18, 14, .04);

    --lg-font: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --lg-serif: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --lg-sidebar: 20vw;
    --lg-sidebar-min: 280px;
    --lg-radius: 10px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--lg-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--lg-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--lg-text);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--lg-accent);
}

h1,
h2,
h3,
h4 {
    font-family: var(--lg-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 .6em;
    color: var(--lg-text);
}

h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* ---------- Layout ---------- */
.lg-app {
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: flex-start;
}

.lg-sidebar {
    flex: 0 0 var(--lg-sidebar);
    min-width: var(--lg-sidebar-min);
    background: #e6e6e4;
    border-right: 0;
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 1rem;
    height: calc(100vh - 2rem);
    overflow-y: auto;
}

.lg-main {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    overflow-x: hidden;
    background: #fff;
}

/* ---------- Sidebar — karta brand (biała, układ poziomy) ---------- */
.lg-brand-card {
    background: #fff;
    color: #191919;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.lg-brand__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.lg-brand__logo-wrap {
    display: inline-flex;
    flex: 0 0 auto;
}

.lg-brand__logo-wrap img,
.lg-brand__logo-wrap .custom-logo-link img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(0, 0, 0, .06);
    background: #f4f4f3;
}

.lg-brand__logo-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #444 0%, #1a1a1a 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lg-serif);
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lg-brand__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.lg-brand__name {
    font-family: var(--lg-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    color: #191919;
    letter-spacing: -0.01em;
}

.lg-brand__name:hover {
    color: #000;
}

.lg-brand__slogan {
    font-size: 12px;
    color: rgba(25, 25, 25, .6);
    line-height: 1.5;
    margin: 0;
}

.lg-brand__social {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.lg-brand__social-link {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.lg-brand__social-link:hover {
    background: #fff;
    color: #191919;
    transform: translateY(-2px);
}

.lg-brand__social-link i,
.lg-brand__social-link svg {
    display: block;
}

.lg-divider {
    height: 1px;
    background: var(--lg-line);
    border: 0;
    margin: 4px 0;
}

.lg-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lg-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--lg-text);
    background: transparent;
    transition: padding-left .25s ease, color .2s ease;
}

.lg-nav a:hover {
    background: transparent;
    color: #000;
    padding-left: 14px;
}

.lg-nav__label {
    flex: 1 1 auto;
    min-width: 0;
}

.lg-nav__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #dcdcd9;
    color: #5a5a55;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.lg-nav a:hover .lg-nav__icon {
    background: #191919;
    color: #fff;
}

.lg-nav .current-menu-item>a,
.lg-nav .current_page_item>a,
.lg-nav .current-menu-item>.lg-nav__row>a,
.lg-nav .current_page_item>.lg-nav__row>a {
    background: transparent;
    color: #000;
}

.lg-nav .current-menu-item>a .lg-nav__icon,
.lg-nav .current_page_item>a .lg-nav__icon,
.lg-nav .current-menu-item>.lg-nav__row>a .lg-nav__icon,
.lg-nav .current_page_item>.lg-nav__row>a .lg-nav__icon {
    background: #191919;
    color: #fff;
}

/* Pozycja menu z podmenu: link + chevron */
.lg-nav__row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.lg-nav__row>a {
    flex: 1 1 auto;
}

.lg-nav__toggle {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--lg-muted);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}

.lg-nav__toggle:hover {
    background: var(--lg-hover);
    color: #000;
}

.lg-nav__chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease-out;
    margin-top: -3px;
}

.menu-item-has-children.is-open>.lg-nav__row .lg-nav__toggle {
    background: transparent;
    color: #000;
}

.menu-item-has-children.is-open>.lg-nav__row .lg-nav__chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* Podmenu — czysta animacja height (grid 0fr→1fr), bez opacity. Szybko, ease-out. */
.lg-nav .menu-item-has-children {
    display: grid;
    grid-template-rows: auto 0fr;
    transition: grid-template-rows .25s ease-out;
}

.lg-nav .menu-item-has-children.is-open {
    grid-template-rows: auto 1fr;
}

.lg-nav ul.lg-nav__submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    min-height: 0;
    padding: 2px 0 4px 18px;
    margin: 0;
}

/* Submenu — kompaktowo: bez kółek, mała czarna kropka przez ::before */
.lg-nav__submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--lg-muted);
    padding: 4px 8px 4px 6px;
    border-radius: 6px;
    transition: padding-left .2s ease, color .2s ease;
}

.lg-nav__submenu a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
    opacity: .55;
    transition: opacity .2s ease, transform .2s ease;
}

.lg-nav__submenu .lg-nav__icon {
    display: none;
}

.lg-nav__submenu a:hover {
    color: #000;
    background: transparent;
    padding-left: 10px;
}

.lg-nav__submenu a:hover::before {
    opacity: 1;
    transform: scale(1.3);
}

.lg-nav__submenu .current-menu-item>a,
.lg-nav__submenu .current_page_item>a {
    color: #000;
}

.lg-nav__submenu .current-menu-item>a::before,
.lg-nav__submenu .current_page_item>a::before {
    opacity: 1;
    transform: scale(1.3);
}

.lg-projects {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lg-projects__title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lg-muted);
    margin: 0 0 4px;
}

.lg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    border: 1px solid var(--lg-line);
    border-radius: var(--lg-radius);
    background: var(--lg-surface);
    color: var(--lg-text);
    cursor: pointer;
    transition: all .2s ease;
}

.lg-btn:hover {
    border-color: var(--lg-accent);
    background: var(--lg-accent-soft);
    color: var(--lg-accent);
    transform: translateY(-1px);
}

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

.lg-btn--primary:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.lg-sidebar__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lg-contact-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ---------- Social block (FB badge + IG/tel/email) ---------- */
.lg-social-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.lg-social-fb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    background: #1877F2;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.lg-social-fb:hover {
    background: #166fe0;
    color: #fff;
    transform: translateY(-1px);
}

.lg-social-fb__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: 0 0 auto;
}

.lg-social-fb__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.1;
}

.lg-social-fb__count {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lg-social-fb__label {
    font-size: 11px;
    opacity: .85;
    margin-top: 1px;
}

.lg-social-fb__arrow {
    font-size: 12px;
    opacity: .7;
    flex: 0 0 auto;
    transition: transform .2s ease, opacity .2s ease;
}

.lg-social-fb:hover .lg-social-fb__arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.lg-social-mini {
    display: flex;
    gap: 6px;
}

.lg-social-mini__link {
    flex: 1 1 0;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    color: #191919;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, .06);
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.lg-social-mini__link:hover {
    background: #191919;
    color: #fff;
    border-color: #191919;
    transform: translateY(-1px);
}

.lg-social-mini__link--ig:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border-color: transparent;
}

/* ---------- Bio autora (light gradient à la mrcng.pl) ---------- */
.lg-bio {
    background: linear-gradient(135deg, #f0e9f7 0%, #e7e9f5 50%, #e6eff5 100%);
    color: #191919;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 24px rgba(110, 90, 180, .08);
}

.lg-bio__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lg-bio__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.lg-bio__heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lg-bio__name {
    margin: 0;
    font-family: var(--lg-serif);
    font-size: 18px;
    line-height: 1.15;
    color: #191919;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lg-bio__role {
    font-size: 11px;
    color: rgba(25, 25, 25, .5);
    letter-spacing: .3px;
}

.lg-bio__text {
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(25, 25, 25, .72);
    margin: 0;
}

.lg-bio__link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 14px;
    background: #191919;
    color: #fff;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.lg-bio__link:hover {
    background: #000;
    color: #fff;
    transform: translateX(2px);
}

.lg-bio__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #191919;
    font-size: 11px;
    line-height: 1;
    transition: transform .25s ease;
}

.lg-bio__link:hover .lg-bio__arrow {
    transform: rotate(-45deg);
}

/* ---------- Carousel ---------- */
.lg-carousel {
    width: 100%;
    height: 100vh;
    position: relative;
    padding: 1rem;
    background: #fff;
}

.lg-carousel .swiper {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

.lg-carousel .swiper-wrapper,
.lg-carousel .swiper-slide {
    width: 100%;
    height: 100%;
}

.lg-carousel .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.lg-carousel .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35) 100%);
    pointer-events: none;
    border-radius: 1rem;
}

.lg-slide__caption {
    position: absolute;
    left: 40px;
    bottom: 64px;
    color: #fff;
    font-family: var(--lg-serif);
    font-size: 28px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    max-width: 60%;
    z-index: 2;
}

.lg-carousel .swiper-pagination-bullet {
    background: #fff;
    opacity: .55;
    width: 8px;
    height: 8px;
}

.lg-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.25);
}

.lg-carousel .swiper-button-next,
.lg-carousel .swiper-button-prev {
    color: #fff;
    opacity: .85;
}

.lg-carousel .swiper-button-next:hover,
.lg-carousel .swiper-button-prev:hover {
    opacity: 1;
}

/* ---------- Inner pages (single/page/archive/404) ---------- */
.lg-content {
    padding: 56px clamp(24px, 3.5vw, 64px) 56px clamp(28px, 3vw, 56px);
    max-width: 1080px;
    margin: 0;
    background: #fff;
}

.lg-content h1 {
    font-size: clamp(28px, 3vw, 40px);
}

.lg-content h2 {
    font-size: clamp(22px, 2vw, 28px);
    margin-top: 1.6em;
}

.lg-content p {
    margin: 0 0 1.1em;
    line-height: 1.8;
}

/* osadzenia (YouTube, Vimeo, mapy itp.) — żeby nie powodowały scrolla poziomego */
.lg-content iframe,
.lg-content embed,
.lg-content object,
.lg-content video {
    max-width: 100%;
}

.lg-content .wp-block-embed__wrapper,
.lg-content .wp-block-embed iframe {
    max-width: 100%;
}

.lg-content table {
    max-width: 100%;
}

.lg-content pre {
    max-width: 100%;
    overflow-x: auto;
}

.lg-article+.lg-article {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--lg-line);
}

.lg-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: .6em 0 1.8em;
    color: var(--lg-muted);
    font-size: 13px;
}

.lg-article__meta-date {
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 12px;
}

.lg-article__meta-cats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    position: relative;
    padding-left: 14px;
}

.lg-article__meta-cats::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--lg-muted);
    border-radius: 50%;
    transform: translateY(-50%);
}

.lg-article__meta-cats a {
    color: var(--lg-text);
    text-decoration: none;
    border-bottom: 1px solid var(--lg-line);
    padding-bottom: 1px;
    transition: border-color .15s ease;
}

.lg-article__meta-cats a:hover {
    border-color: var(--lg-accent);
}

/* Gutenberg image block + galeria (tylko treść artykułu) */
.lg-article__body .wp-block-image img,
.lg-article__body .wp-block-gallery img,
.lg-article__body .blocks-gallery-item img {
    border-radius: 1rem;
}

/* Listy w treści artykułu */
.lg-article__body ul,
.lg-article__body ol {
    margin: 0 0 1.2em;
    padding-left: 1.6em;
    list-style: none;
}

.lg-article__body ul li,
.lg-article__body ol li {
    position: relative;
    line-height: 1.8;
    margin-bottom: .35em;
}

.lg-article__body ul > li::before {
    content: "";
    position: absolute;
    left: -1.1em;
    top: .72em;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
}

/* Bloki galerii Gutenberga — bez naszych kropek i bez paddingu listy */
.lg-article__body .wp-block-gallery,
.lg-article__body .blocks-gallery-grid {
    padding-left: 0;
    margin: 0 0 1.2em;
}

.lg-article__body .wp-block-gallery li,
.lg-article__body .blocks-gallery-item {
    margin-bottom: 0;
}

.lg-article__body .wp-block-gallery li::before,
.lg-article__body .blocks-gallery-item::before {
    content: none;
}

.lg-article__body ol {
    counter-reset: lg-ol;
}

.lg-article__body ol > li {
    padding-left: .2em;
}

.lg-article__body ol > li::before {
    counter-increment: lg-ol;
    content: counter(lg-ol) ".";
    position: absolute;
    left: -1.6em;
    top: 0;
    color: #000;
    font-weight: 600;
}

/* Nawigacja prev/next na single */
.lg-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--lg-line);
}

.lg-post-nav > span {
    flex: 1 1 0;
    font-size: 14px;
    color: var(--lg-muted);
    line-height: 1.5;
}

.lg-post-nav > span:last-child {
    text-align: right;
}

.lg-post-nav > span:only-child {
    margin-left: auto;
    flex: 0 1 auto;
}

.lg-post-nav a {
    color: var(--lg-text);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s ease;
}

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

@media (max-width: 560px) {
    .lg-post-nav {
        flex-direction: column;
    }
    .lg-post-nav > span,
    .lg-post-nav > span:last-child {
        text-align: left;
    }
}

.lg-search {
    display: flex;
    gap: 8px;
    margin: 16px 0 32px;
}

.lg-search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--lg-line);
    border-radius: var(--lg-radius);
    font: inherit;
    background: var(--lg-surface);
    color: var(--lg-text);
}

.lg-search input[type="search"]:focus {
    outline: none;
    border-color: var(--lg-accent);
}

.lg-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 112px);
    text-align: center;
    gap: 12px;
}

.lg-404 .code {
    font-family: var(--lg-serif);
    font-size: 96px;
    line-height: 1;
    color: var(--lg-accent);
}

.lg-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.lg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--lg-line);
    border-radius: 6px;
    font-size: 13px;
    color: var(--lg-text);
    background: var(--lg-surface);
    transition: all .2s ease;
}

.lg-pagination .page-numbers:hover {
    border-color: var(--lg-accent);
    color: var(--lg-accent);
}

.lg-pagination .current {
    background: var(--lg-accent);
    color: #fff;
    border-color: var(--lg-accent);
}

/* ---------- Grid kart (page-news / galeria / miejsca / firmy) ---------- */
.lg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0 8px;
}

.lg-grid--companies {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.lg-card {
    display: flex;
    flex-direction: column;
    background: var(--lg-surface);
    border: 1px solid var(--lg-line);
    border-radius: var(--lg-radius);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.lg-card:hover {
    box-shadow: var(--lg-shadow);
    border-color: var(--lg-accent);
    transform: translateY(-2px);
}

.lg-card__thumb {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--lg-accent-soft);
}

.lg-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.lg-card:hover .lg-card__thumb img {
    transform: scale(1.04);
}

.lg-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--lg-accent-soft) 0%, var(--lg-line) 100%);
}

.lg-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 20px;
    flex: 1 1 auto;
}

.lg-card__title {
    font-family: var(--lg-serif);
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
}

.lg-card__title a {
    color: var(--lg-text);
}

.lg-card__title a:hover {
    color: var(--lg-accent);
}

.lg-card__meta {
    font-size: 12px;
    color: var(--lg-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.lg-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--lg-text);
}

.lg-card__excerpt p {
    margin: 0;
}

.lg-card__more {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 4px;
    font-size: 13px;
    color: var(--lg-accent);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.lg-card__more:hover {
    border-bottom-color: var(--lg-accent);
}

/* karty firm — dane kontaktowe */
.lg-card__info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.lg-card__info a {
    color: var(--lg-text);
}

.lg-card__info a:hover {
    color: var(--lg-accent);
}

.lg-card__info-item span[aria-hidden] {
    display: inline-block;
    width: 18px;
    color: var(--lg-muted);
}

/* ---------- Badges (sub-kategorie katalogu) ---------- */
.lg-badges {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lg-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f7f6f4;
    color: var(--lg-text);
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #ece9e3;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.lg-badge:hover {
    background: #191919;
    border-color: #191919;
    color: #fff;
}

/* ---------- Lista firm (katalog) — wiersze ---------- */
.lg-list {
    margin: 24px 0 8px;
}

.lg-list--companies {
    display: flex;
    flex-direction: column;
}

.lg-row {
    display: grid;
    grid-template-columns: 96px 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--lg-line);
    transition: background .2s ease;
}

.lg-row:hover {
    background: var(--lg-accent-soft);
}

.lg-row:last-child {
    border-bottom: 0;
}

.lg-row__thumb {
    display: block;
    width: 96px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--lg-accent-soft);
    border-radius: 6px;
}

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

.lg-row__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--lg-accent-soft) 0%, var(--lg-line) 100%);
}

.lg-content h2.lg-row__title {
    margin: 0;
    font-family: var(--lg-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.lg-row__title a {
    color: var(--lg-text);
}

.lg-row__title a:hover {
    color: var(--lg-accent);
}

.lg-row__info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    font-size: 13px;
    color: var(--lg-text);
}

.lg-row__info a {
    color: var(--lg-text);
}

.lg-row__info a:hover {
    color: var(--lg-accent);
}

.lg-row__info-item {
    display: inline-flex;
    align-items: center;
}

.lg-row__info-item i.fa-solid,
.lg-row__info-item i.fa-regular {
    color: var(--lg-muted);
    margin-right: 6px;
    width: 14px;
    text-align: center;
    font-size: 12px;
}

.lg-row__info-item--icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--lg-muted);
    transition: background .2s ease, color .2s ease;
}

.lg-row__info-item--icon a i.fa-solid {
    margin: 0;
    width: auto;
    font-size: 13px;
    color: inherit;
}

.lg-row__info-item--icon a:hover {
    background: var(--lg-line);
    color: var(--lg-accent);
}

.lg-row__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 14px;
    background: #191919;
    color: #fff;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.lg-row__more:hover {
    background: #000;
    color: #fff;
    transform: translateX(2px);
}

.lg-row__more-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #191919;
    font-size: 11px;
    transition: transform .25s ease;
}

.lg-row__more:hover .lg-row__more-arrow {
    transform: rotate(-45deg);
}

/* --- RWD: badge'y subkategorii — przewijanie poziome bez widocznego scrolla --- */
@media (max-width: 600px) {
    .lg-badges {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        /* delikatny fade na prawym brzegu — subtelna sugestia, że jest więcej */
        mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    }

    .lg-badges::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .lg-badges > li {
        flex: 0 0 auto;
    }

    .lg-badge {
        white-space: nowrap;
    }
}

/* --- RWD: wiersz katalogu — wąski desktop / tablet poziomy (781–1200px)
   Tytuł w jednej linii nad infem, pod spodem adres + telefon + mail + globe i obok Zobacz --- */
@media (min-width: 781px) and (max-width: 1200px) {
    .lg-row {
        grid-template-columns: 96px 1fr auto;
        grid-template-areas:
            "thumb title title"
            "thumb info  more";
        column-gap: 20px;
        row-gap: 6px;
        padding: 14px 4px;
        align-items: center;
    }

    .lg-row__thumb {
        grid-area: thumb;
        align-self: center;
    }

    .lg-content h2.lg-row__title {
        grid-area: title;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lg-row__info {
        grid-area: info;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 18px;
    }

    .lg-row__more {
        grid-area: more;
        align-self: center;
    }
}

/* --- RWD: wiersz katalogu — tablet (≤780px) --- */
@media (max-width: 780px) {
    .lg-row {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "thumb title"
            "thumb info"
            "more  more";
        gap: 8px 16px;
        padding: 16px 4px;
    }

    .lg-row__thumb {
        grid-area: thumb;
        width: 80px;
        align-self: start;
    }

    .lg-content h2.lg-row__title {
        grid-area: title;
        font-size: 16px;
    }

    .lg-row__info {
        grid-area: info;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 13px;
    }

    .lg-row__more {
        grid-area: more;
        margin-top: 6px;
        justify-self: start;
    }
}

/* --- RWD: wiersz katalogu — telefon (≤520px): mocniej zwarte --- */
@media (max-width: 520px) {
    .lg-row {
        grid-template-columns: 64px 1fr;
        grid-template-areas:
            "thumb title"
            "info  info"
            "more  more";
        gap: 10px 14px;
        padding: 16px 2px;
    }

    .lg-row__thumb {
        width: 64px;
    }

    .lg-content h2.lg-row__title {
        font-size: 15px;
        align-self: center;
    }

    .lg-row__info {
        gap: 6px;
        font-size: 13px;
    }

    .lg-row__info-item {
        line-height: 1.4;
    }

    /* Globe wraca do układu wierszowego — nie wycentrowanego kółeczka */
    .lg-row__info-item--icon a {
        width: auto;
        height: auto;
        border-radius: 0;
        padding: 0;
        color: var(--lg-muted);
    }

    .lg-row__info-item--icon a:hover {
        background: transparent;
        color: var(--lg-accent);
    }
}

/* ---------- Single: firma z katalogu ---------- */
.lg-company {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.lg-company__header {
    margin-bottom: 4px;
}

.lg-company__address {
    margin: 6px 0 0;
    color: var(--lg-muted);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lg-company__address i {
    color: var(--lg-muted);
    font-size: 13px;
    width: 14px;
    text-align: center;
}

.lg-company__hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.lg-company__media {
    border-radius: var(--lg-radius);
    overflow: hidden;
    background: var(--lg-accent-soft);
    aspect-ratio: 4 / 3;
    position: relative;
}

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

.lg-company__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--lg-accent-soft) 0%, var(--lg-line) 100%);
}

.lg-company__intro {
    align-self: start;
}

.lg-company__intro > :first-child {
    margin-top: 0;
}

.lg-company__intro > :last-child {
    margin-bottom: 0;
}

/* Pasek kontaktowy — pill buttons jak lg-bio__link */
.lg-company__contact {
    list-style: none;
    margin: 0;
    padding: 16px 18px;
    background: var(--lg-accent-soft);
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lg-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    background: #191919;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.lg-pill:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

.lg-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: #191919;
    font-size: 12px;
    flex: 0 0 auto;
}

.lg-pill__label {
    white-space: nowrap;
}

/* Mapa Google — responsywny kontener */
.lg-company__map {
    border-radius: var(--lg-radius);
    overflow: hidden;
    border: 1px solid var(--lg-line);
    background: var(--lg-accent-soft);
    line-height: 0;
}

.lg-company__map iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
}

@media (max-width: 900px) {
    .lg-company__hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lg-company__media {
        aspect-ratio: 16 / 10;
    }

    .lg-company__map iframe {
        min-height: 280px;
    }
}

@media (max-width: 520px) {
    .lg-company {
        gap: 22px;
    }

    .lg-company__contact {
        padding: 12px;
        gap: 8px;
    }

    .lg-pill {
        font-size: 12.5px;
        padding: 7px 14px 7px 8px;
    }

    .lg-pill__icon {
        width: 24px;
        height: 24px;
    }
}

/* ---------- Made with by Net-Factory ---------- */
.lg-credit {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 50;
    font-size: 11px;
    color: rgba(255, 255, 255, .9);
    letter-spacing: .4px;
    background: rgba(20, 18, 14, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 999px;
    pointer-events: auto;
}

.lg-credit a {
    color: inherit;
    border-bottom: 1px dotted rgba(255, 255, 255, .5);
}

.lg-credit a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.lg-credit .lg-heart {
    color: var(--lg-heart);
    display: inline-block;
    animation: lgPulse 1.6s ease-in-out infinite;
}

@keyframes lgPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }
}

/* Wewnątrz białych podstron — przyciemnij plakietkę dla czytelności */
body:not(.home) .lg-credit {
    background: rgba(20, 18, 14, .08);
    color: var(--lg-muted);
}

body:not(.home) .lg-credit a {
    border-bottom-color: rgba(0, 0, 0, .25);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    :root {
        --lg-sidebar: 30vw;
    }
}

/* ---------- Hamburger (mobile only) ---------- */
.lg-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .08);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.lg-menu-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--lg-accent);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

body.lg-menu-open .lg-menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.lg-menu-open .lg-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

body.lg-menu-open .lg-menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .lg-content h1 {
        margin-top: 3rem;
    }

    .lg-app {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        /* logo (absolute) referuje się do .lg-app, scrolluje się z treścią */
    }

    /* Hamburger widoczny tylko na mobile */
    .lg-menu-toggle {
        display: inline-flex;
    }

    /* Sidebar: w stanie zamkniętym brak własnej powierzchni — logo trafia
       w kontekst .lg-app, więc scrolluje się z treścią. */
    .lg-sidebar {
        flex: 0 0 auto;
        position: static;
        width: auto;
        height: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        gap: 0;
        overflow: visible;
    }

    /* Spłaszczamy strukturę karty brand żeby logo dało się wypozycjonować
       absolutnie względem .lg-sidebar (a nie .lg-brand-card) */
    .lg-sidebar .lg-brand-card,
    .lg-sidebar .lg-brand__head {
        display: contents;
    }

    /* W stanie zamkniętym chowamy wszystko poza logiem */
    .lg-sidebar .lg-brand__info,
    .lg-sidebar .lg-nav,
    .lg-sidebar .lg-projects,
    .lg-sidebar .lg-sidebar__footer,
    .lg-sidebar .lg-divider {
        display: none;
    }

    .lg-sidebar .lg-brand__logo-wrap {
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 60;
        pointer-events: auto;
    }

    /* Większe logo na mobile (zamknięty stan) */
    .lg-sidebar .lg-brand__logo-wrap img,
    .lg-sidebar .lg-brand__logo-wrap .custom-logo-link img,
    .lg-sidebar .lg-brand__logo-fallback {
        width: 84px;
        height: 84px;
        border-width: 3px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    }

    /* Stan otwarty — pełnoekranowy sidebar w wersji desktopowej */
    body.lg-menu-open {
        overflow: hidden;
    }

    body.lg-menu-open .lg-sidebar {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: #e6e6e4;
        padding: 1rem;
        gap: 14px;
        overflow-y: auto;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        z-index: 50;
    }

    body.lg-menu-open .lg-sidebar .lg-brand-card,
    body.lg-menu-open .lg-sidebar .lg-brand__head {
        display: flex;
    }

    body.lg-menu-open .lg-sidebar .lg-brand-card {
        flex-direction: column;
        gap: 14px;
        margin-top: 0;
    }

    body.lg-menu-open .lg-sidebar .lg-brand__head {
        align-items: flex-start;
        gap: 14px;
    }

    body.lg-menu-open .lg-sidebar .lg-brand__logo-wrap {
        position: static;
    }

    /* Logo w otwartym stanie wraca do desktopowego rozmiaru */
    body.lg-menu-open .lg-sidebar .lg-brand__logo-wrap img,
    body.lg-menu-open .lg-sidebar .lg-brand__logo-wrap .custom-logo-link img,
    body.lg-menu-open .lg-sidebar .lg-brand__logo-fallback {
        width: 60px;
        height: 60px;
        border-width: 2px;
        box-shadow: none;
    }

    body.lg-menu-open .lg-sidebar .lg-brand__info,
    body.lg-menu-open .lg-sidebar .lg-nav,
    body.lg-menu-open .lg-sidebar .lg-projects,
    body.lg-menu-open .lg-sidebar .lg-sidebar__footer,
    body.lg-menu-open .lg-sidebar .lg-divider {
        display: revert;
    }

    /* Hamburger po otwarciu: czysty czarny X, bez tła i paddingu */
    body.lg-menu-open .lg-menu-toggle {
        top: 1.5rem;
        right: 2rem;
        width: 28px;
        height: 28px;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 0;
        z-index: 70;
    }

    body.lg-menu-open .lg-menu-toggle__bar {
        background: #000;
        width: 28px;
        height: 2px;
        position: absolute;
        top: 50%;
        left: 0;
    }

    body.lg-menu-open .lg-menu-toggle__bar:nth-child(1) {
        transform: translateY(-50%) rotate(45deg);
    }

    body.lg-menu-open .lg-menu-toggle__bar:nth-child(2) {
        display: none;
    }

    body.lg-menu-open .lg-menu-toggle__bar:nth-child(3) {
        transform: translateY(-50%) rotate(-45deg);
    }

    /* Plakietka "Made with by Net-Factory" — ukryj gdy mobilne menu otwarte */
    body.lg-menu-open .lg-credit {
        display: none;
    }

    .lg-main {
        min-height: 60vh;
    }

    /* Pełnoekranowa karuzela na mobile */
    .lg-carousel {
        height: 100vh;
        height: 100dvh;
        padding: 0;
    }

    .lg-carousel .swiper,
    .lg-carousel .swiper-slide {
        border-radius: 0;
    }

    .lg-carousel .swiper-slide::after {
        border-radius: 0;
    }

    .lg-slide__caption {
        font-size: 20px;
        left: 20px;
        bottom: 40px;
    }

    /* Plakietka credit — mocno zmniejszona, w samym rogu */
    .lg-credit {
        right: .5rem;
        bottom: .5rem;
        font-size: 8px;
        letter-spacing: .2px;
        padding: 3px 7px;
    }
}

/* ---------- Galeria — masonry (column-count) ---------- */
.lg-masonry {
    column-count: 3;
    column-gap: 16px;
    margin: 32px 0 8px;
}

.lg-masonry__item {
    position: relative;
    display: block;
    break-inside: avoid;
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: var(--lg-radius);
    background: var(--lg-accent-soft);
    line-height: 0;
}

.lg-masonry__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}

.lg-masonry__placeholder {
    display: block;
    width: 100%;
    padding-top: 66%;
    background: linear-gradient(135deg, var(--lg-accent-soft) 0%, var(--lg-line) 100%);
}

.lg-masonry__caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px 18px;
    font-family: var(--lg-serif);
    font-size: 18px;
    line-height: 1.25;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity .25s ease;
}

.lg-masonry__item:hover .lg-masonry__caption,
.lg-masonry__item:focus-visible .lg-masonry__caption {
    opacity: 1;
}

.lg-masonry__item:hover .lg-masonry__img {
    transform: scale(1.03);
}

/* Wariant tekstowy — wpis bez miniatury (archive/category/search) */
.lg-masonry__item--text {
    background: #fff;
    border: 1px solid var(--lg-line);
    line-height: 1.4;
}

.lg-masonry__item--text .lg-masonry__placeholder {
    padding-top: 38%;
    background: linear-gradient(135deg, var(--lg-accent-soft) 0%, var(--lg-line) 100%);
}

.lg-masonry__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 22px;
}

.lg-masonry__date {
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--lg-muted);
}

.lg-masonry__title {
    font-family: var(--lg-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lg-text);
}

.lg-masonry__item--text:hover {
    border-color: var(--lg-accent);
}

.lg-masonry__item--text:hover .lg-masonry__title {
    color: var(--lg-accent);
}

@media (max-width: 900px) {
    .lg-masonry {
        column-count: 2;
    }
}

@media (max-width: 560px) {
    .lg-masonry {
        column-count: 1;
    }

    .lg-masonry__caption {
        opacity: 1;
    }
}