/* =========================================================
   GIEŁDA KAMIENIA — nowy design (2026)
   W pełni responsywny: desktop / tablet / mobile
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --c-dark: #151d27;          /* nagłówek / stopka */
    --c-dark-2: #1d2836;
    --c-ink: #1c2530;           /* tekst główny */
    --c-muted: #5c6672;         /* tekst pomocniczy */
    --c-light: #f4f4f2;         /* tło strony */
    --c-white: #ffffff;
    --c-border: #e5e7ea;
    --c-green: #17573f;
    --c-green-2: #1d6b4c;
    --c-blue: #123650;
    --c-blue-2: #175079;
    --c-gold: #d9a441;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(16, 24, 34, .07);
    --shadow-md: 0 6px 24px rgba(16, 24, 34, .10);
    --header-h: 80px;
    --container: 1200px;
    --font: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-ink);
    background: var(--c-light);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

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

/* Typografia pomocnicza */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 10px;
}

.section-head h2 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--c-ink);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-muted);
    white-space: nowrap;
    transition: color .2s;
}

.link-arrow:hover { color: var(--c-ink); }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Przyciski ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}

.btn:active { transform: scale(.98); }

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 9px 18px;
    transition: border-color .2s, background-color .2s;
}

.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .38); }

.btn-ghost-light {
    background: transparent;
    color: rgba(255, 255, 255, .85);
    padding: 9px 14px;
}

.btn-ghost-light:hover { color: #fff; }

.btn-white {
    background: #fff;
    color: var(--c-ink);
    padding: 13px 24px;
    font-weight: 600;
}

.btn-white:hover { background: #eef1f4; }

.btn-dark {
    background: var(--c-ink);
    color: #fff;
    border: 1px solid var(--c-ink);
}

.btn-dark:hover { background: #000; color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--header-h);
    background: var(--c-dark);
    color: #fff;
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-mark {
    display: block;
    height: 52px;
    width: auto;
}

.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: .95; }

.brand-text strong {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    white-space: nowrap;
}

.brand-text strong .brand-sub {
    font-size: 17.5px;
    font-weight: 800;
    letter-spacing: .115em;
    margin-left: 1px;
}

.site-header .brand-text small { display: none; }

.header-pictos {
    display: block;
    height: 46px;
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    object-fit: contain;
    margin-left: 22px;
    opacity: .95;
}

/* Nawigacja */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    transition: color .2s, background-color .2s;
    white-space: nowrap;
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.nav-item { position: relative; }

.nav-item .chevron { transition: transform .2s; }

.nav-item.open .chevron { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 950;
}

.nav-item.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 14px;
    color: var(--c-ink);
    transition: background-color .15s;
}

.dropdown-menu a:hover { background: #f2f4f6; }

/* Akcje po prawej */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-actions .btn,
.header-actions .icon-btn { white-space: nowrap; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    transition: background-color .2s, color .2s;
}

/* Ulubione — serce + licznik (nagłówek na stronie głównej) */
.icon-btn-fav {
    width: auto;
    gap: 8px;
    padding: 0 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.fav-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #d9a441;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Wyszukiwarka w nagłówku (rozwijana) */
.header-search {
    position: absolute;
    right: 24px;
    top: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 10px;
    display: none;
    z-index: 940;
}

.header-search.open { display: flex; gap: 8px; }

.header-search input[type="text"] {
    width: min(340px, 72vw);
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}

.header-search input[type="text"]:focus { border-color: var(--c-dark-2); }

.header-search .btn { padding: 10px 18px; }

/* Szybkie wyszukiwanie ofert po nazwie (pasek górny) */
.header-quicksearch {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 340px;
    min-width: 0;
    height: 38px;
    margin: 0 auto;
    padding: 0 4px 0 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 19px;
    color: rgba(255, 255, 255, .85);
    transition: background-color .2s, border-color .2s;
}

.header-quicksearch:focus-within {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .4);
}

.header-quicksearch svg { flex-shrink: 0; }

.header-quicksearch input[type="text"] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    outline: none;
}

.header-quicksearch input::placeholder { color: rgba(255, 255, 255, .55); }

.header-quicksearch button {
    flex-shrink: 0;
    height: 30px;
    padding: 0 14px;
    border: none;
    border-radius: 15px;
    background: #d9a441;
    color: #fff;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s;
}

.header-quicksearch button:hover { background: #c8922f; }

.header-quicksearch + .header-actions { margin-left: 0; }

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
}

.hamburger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s, opacity .2s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobilne */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 890;
    background: var(--c-dark);
    color: #fff;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px 20px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav .m-search {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mobile-nav .m-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 15px;
    outline: none;
}

.mobile-nav .m-search input::placeholder { color: rgba(255, 255, 255, .5); }

.mobile-nav .m-links { padding: 6px 0; }

.mobile-nav .m-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    font-size: 15.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.mobile-sub { display: none; padding: 2px 0 8px; }

.mobile-nav .mobile-sub a {
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
}

.mobile-nav .m-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 16px;
}

.mobile-nav .m-actions .btn-outline-light { text-align: center; }

.mobile-nav .m-panel {
    display: grid;
    gap: 10px;
    padding-top: 16px;
}

.mobile-nav .m-panel a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
}

.mobile-nav .m-user { font-size: 13px; color: rgba(255,255,255,.55); text-align: center; padding-bottom: 4px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    background:
        url('uploads/kamien/hero_gielda.jpg') center 62% / cover no-repeat,
        repeating-linear-gradient(112deg, #3a424b 0 58px, #414951 58px 63px, #373f48 63px 116px, #3f474f 116px 121px, #3b434c 121px 178px),
        #3a424b;
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(13, 18, 26, .90) 0%, rgba(13, 18, 26, .78) 32%, rgba(13, 18, 26, .38) 62%, rgba(13, 18, 26, .30) 100%);
}

/* kolumna "Zapisz wynik wyszukiwania" (prawa strona quick-search) */
#alertFields { display: none; flex-direction: column; gap: 8px; }
#alertFields.visible { display: flex; }

/* checkbox "Zapisz wynik wyszukiwania" w quick-search */
.qs-save-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    padding: 10px 14px;
    border: 1px dashed #b9c2ca;
    border-radius: 10px;
    background: rgba(255, 255, 255, .55);
}
.qs-save-check:hover { border-color: #1d6b4c; }
.qs-save-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #1d6b4c;
    cursor: pointer;
}
.qs-save-label { font-size: 13px; font-weight: 600; color: #1c2530; }

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 34px;
    padding-top: clamp(18px, 2.1vw, 24px);
    padding-bottom: clamp(18px, 2.1vw, 24px);
}

/* naklejka CTA na grafice hero: Zarejestruj się i pobierz aplikację! */
.hero-app-badge {
    position: absolute;
    right: 18px;
    top: 14px;
    width: clamp(84px, 7.5vw, 118px);
    transform: rotate(-9deg);
    z-index: 3;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .38));
    transition: transform .2s ease;
    animation: heroBadgeFloat 3.4s ease-in-out infinite;
}
.hero-app-badge:hover { transform: rotate(0deg) scale(1.06); }
@keyframes heroBadgeFloat {
    0%, 100% { transform: rotate(-9deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(-6px); }
}
@media (max-width: 1280px) {
    .hero-app-badge { width: 84px; top: 4%; right: 2%; }
}
@media (max-width: 960px) {
    .hero-app-badge { display: none; }
}

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

.hero-eyebrow {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 10px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: heroIn .8s cubic-bezier(.2, .7, .2, 1) both;
}

/* Linia 1 — mniejsza, spokojna (Inter) */
.hero-title-line {
    display: inline-block;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(16px, 2vw, 23px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.hero-title-line:nth-child(2) {
    animation-delay: .12s;
}

/* Linia 2 — duża, inny krój (Anton), złoty gradient, bez podkreślenia */
.hero-title-accent {
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 3.9vw, 44px);
    line-height: 1.04;
    letter-spacing: .01em;
    background: linear-gradient(94deg, #f6dc8a 0%, #e7bd55 38%, #d9a441 62%, #a97e17 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 14px rgba(217, 164, 65, .30));
    text-transform: uppercase;
    padding-right: .06em;
}

.hero-title-bang {
    font-style: normal;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title { animation: none; }
}

.hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
    max-width: 560px;
}

.hero-sub-lock {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    letter-spacing: .08em;
    font-weight: 600;
    color: rgba(255, 255, 255, .95);
}

/* Cechy nałożone na grafikę hero — prawy dolny róg, jeden poziomy rząd */
.hero-features {
    margin-top: auto;
    margin-bottom: -16px;
    align-self: flex-end;
    flex-shrink: 0;
    max-width: 700px;
}

.hero-features .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hero-features .feature {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    text-align: left;
    flex: 1 1 0;
    min-width: 118px;
    border-left: none;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(13, 18, 26, .30);
    box-shadow: inset 1px 0 0 rgba(13, 18, 26, .15), inset -1px 0 0 rgba(13, 18, 26, .15);
}

/* szkło kafla jako ::before — dzięki temu dymek (dziecko) ma własne, działające rozmycie */
.hero-features .feature::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
    z-index: -1;
}
.hero-features .feature-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.hero-features .feature-icon svg {
    width: 14px;
    height: 14px;
}

.hero-features .feature h4 {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(13, 18, 26, .6);
}

/* Dymek z rozszerzoną informacją — w stylu kafla */
.hero-features .feature p {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 215px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(13, 18, 26, .30);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: inset 1px 0 0 rgba(13, 18, 26, .15), inset -1px 0 0 rgba(13, 18, 26, .15);
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 1px 3px rgba(13, 18, 26, .6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 5;
}

.hero-features .feature p::after {
    content: "";
    position: absolute;
    bottom: -4.5px;
    left: 50%;
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, .14);
    border-right: 1px solid rgba(13, 18, 26, .30);
    border-bottom: 1px solid rgba(13, 18, 26, .30);
    transform: translateX(-50%) rotate(45deg);
}

.hero-features .feature:hover p,
.hero-features .feature:focus-within p {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ostatni kafel — dymek dosunięty do prawej, żeby nie wychodził poza ekran */
.hero-features .feature:last-child p {
    left: auto;
    right: -6px;
    transform: translateY(4px);
}

.hero-features .feature:last-child p::after {
    left: auto;
    right: 16px;
    transform: rotate(45deg);
}

.hero-features .feature:last-child:hover p,
.hero-features .feature:last-child:focus-within p {
    transform: translateY(0);
}

/* =========================================================
   BANER ROTACYJNY
   ========================================================= */
.promo-rotator {
    margin: 16px auto 0;
}

.promo-rotator-inner {
    position: relative;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-border);
    box-shadow: 0 10px 22px rgba(16, 24, 34, .42), 0 3px 8px rgba(16, 24, 34, .24);
}

.rotator-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s;
    pointer-events: none;
}

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

/* kotwica musi być blokiem — inaczej width:100% obrazka rozwiązuje się od jej zwężonego boxa */
.rotator-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.rotator-slide img {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    object-fit: cover;
    display: block;
}

.rotator-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #8a919c;
    font-size: 14px;
    background:
        repeating-linear-gradient(45deg, #fafafa 0 14px, #f2f3f4 14px 28px);
}

.rotator-placeholder a { color: #6a7280; font-weight: 600; }
.rotator-placeholder a:hover { text-decoration: underline; }

/* =========================================================
   SEKCJA CTA — MAM MATERIAŁ / SZUKAJ MATERIAŁU
   ========================================================= */
.cta-section { margin-top: 20px; }

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

/* Kafle CTA — wyraźne tła ze zdjęć (nowe, dedykowane) + głębokie stonowane nakładki */
.cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    padding: 26px 30px 24px;
    color: #fff;
    background-image:
        var(--cta-overlay, linear-gradient(100deg, rgba(18, 46, 36, .92) 0%, rgba(18, 46, 36, .78) 40%, rgba(18, 46, 36, .30) 70%, rgba(18, 46, 36, .12) 100%)),
        var(--cta-photo, linear-gradient(180deg, #1c2530, #2a3644));
    background-size: auto, cover;
    background-position: left top, center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, .10);
    overflow: hidden;
    min-height: 210px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16, 24, 34, .22);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cta-green {
    --cta-photo: url('uploads/kamien/cta_tlo_mam.jpg');
    --cta-overlay: linear-gradient(100deg, rgba(14, 41, 31, .93) 0%, rgba(14, 41, 31, .80) 38%, rgba(14, 41, 31, .32) 68%, rgba(14, 41, 31, .12) 100%);
    --accent-line: var(--c-green-2);
    --icon-bg: rgba(255, 255, 255, .14);
    --kicker: #7ed6a4;
}

.cta-blue {
    --cta-photo: url('uploads/kamien/cta_tlo_szukam.jpg');
    --cta-overlay: linear-gradient(100deg, rgba(16, 30, 46, .93) 0%, rgba(16, 30, 46, .80) 38%, rgba(16, 30, 46, .32) 68%, rgba(16, 30, 46, .12) 100%);
    --accent-line: #6ea8cf;
    --icon-bg: rgba(255, 255, 255, .14);
    --kicker: #9cc4e2;
}

.cta-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--accent-line, var(--c-green-2));
    opacity: .85;
}

a.cta-card { text-decoration: none; }

a.cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(16, 24, 34, .28);
    border-color: rgba(255, 255, 255, .22);
}

a.cta-card .btn { pointer-events: none; }

.cta-kicker {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(13, 20, 28, .42);
    border-radius: 8px;
    padding: 6px 14px;
    margin: 0;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cta-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--icon-bg, rgba(255, 255, 255, .14));
    color: #fff;
}

.cta-head h2 {
    font-size: clamp(19px, 1.9vw, 23px);
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #fff;
}

.cta-head p {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    margin-top: 2px;
}

.cta-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 18px;
    margin-top: 0;
    max-width: 420px;
}

.cta-card .btn-white {
    align-self: flex-start;
    background: rgba(255, 255, 255, .96);
    border: none;
    border-radius: 9px;
    color: var(--c-ink);
    padding: 11px 22px;
    font-size: 14px;
}

.cta-card .btn { align-self: flex-start; margin-top: 12px; padding: 10px 20px; }

/* =========================================================
   SZYBKIE WYSZUKIWANIE
   ========================================================= */
.quick-search-wrap { margin-top: 34px; }

.quick-search {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--c-dark);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 22px 24px;
    flex-wrap: wrap;
}

.qs-info { flex: 0 0 auto; max-width: 260px; display: flex; align-items: center; }

.qs-info svg { color: #fff; flex-shrink: 0; }

.qs-info h3 {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 4px;
    color: #fff;
}

.qs-info p { font-size: 13.5px; color: rgba(255, 255, 255, .62); }

.qs-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(90px, max-content) auto;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    align-items: stretch;
}

/* Dolny wiersz: wcięty pod ikonę lupy — lewe krawędzie pól zrównane z górnym rzędem */
.qs-bottom-row {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-left: 54px; /* szerokość ikony (30px) + odstęp flex (24px) */
}

.qs-third-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.75fr) minmax(0, 1.4fr) auto;
}
.qs-third-row #alertFields.visible { display: block; grid-column: 1 / -1; }
.qs-third-row .qs-save-check { align-self: center; }

.qs-bottom-row .qs-advanced-link,
.qs-third-row .qs-advanced-link {
    grid-column: 1 / -1;
    justify-self: end;
    align-self: end;
    max-width: none;
    white-space: nowrap;
    text-align: right;
    line-height: 1.25;
}

/* Wyraźniejszy odstęp: grupa filtrów (Materiał, Kolor) | pole e-mail — na mobile przerwa znika */
.qs-bottom-row .qs-spacer { display: block; }

.qs-field {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--c-muted);
    transition: border-color .2s, box-shadow .2s;
    min-width: 0;
}

.qs-field:focus-within {
    border-color: #9aa4b0;
    box-shadow: 0 0 0 3px rgba(28, 37, 48, .06);
}

.qs-field > svg { flex-shrink: 0; color: var(--c-ink); }

.qs-field select,
.qs-field input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-ink);
    cursor: pointer;
    padding: 0;
    line-height: 1.3;
}

.qs-field input { cursor: text; }

.qs-field select { appearance: none; -webkit-appearance: none; padding-right: 16px; }

.qs-field input::placeholder { color: #b6bec7; font-weight: 600; }

.qs-field option { color: var(--c-ink); font-weight: 500; }

/* Status ostrzegawczy nieprawidłowej miejscowości (js/city_check.js) */
.gc-city-status {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .01em;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qs-select-wrap .gc-city-status { min-height: 13px; }

.gc-city-status:empty { display: none; }

.gc-city-status.gc-fail { color: #c2620a; }

.form-group .gc-city-status { margin: 2px 0 0; font-size: 12px; }

/* Lista podpowiedzi miejscowości (js/city_check.js, styl OLX) */
.gc-dropdown {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #d8dfe0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    max-height: 264px;
    overflow-y: auto;
    padding: 4px;
}

.gc-option {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #1c2530;
}

.gc-option:hover,
.gc-option.active { background: #f1f4f6; }

.gc-option-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gc-option-meta { flex-shrink: 0; display: flex; align-items: baseline; gap: 8px; }

.gc-option-code { font-size: 11px; font-weight: 600; color: #5c6672; }

.gc-option-kind { flex-shrink: 0; font-size: 11px; font-weight: 500; color: #98a1ab; }

select[name="max_distance"]:disabled { opacity: .55; cursor: not-allowed; }

.qs-select-wrap { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.qs-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #5f6a76;
    letter-spacing: .04em;
}

.qs-select-wrap::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 9px;
    width: 7px;
    height: 7px;
    border-right: 1.6px solid #8a919c;
    border-bottom: 1.6px solid #8a919c;
    transform: rotate(45deg);
    pointer-events: none;
}

.qs-submit {
    height: 100%;
    padding: 0 26px;
    font-size: 15px;
    background: var(--c-gold);
    color: #1c2530;
    border: 1px solid var(--c-gold);
    font-weight: 600;
}

.qs-submit:hover { background: #c6922f; color: #1c2530; border-color: #c6922f; }

.qs-actions { flex-basis: 100%; display: flex; justify-content: flex-end; }

/* Pasek zapisu powiadomień e-mail o nowych ofertach (pod szybkiem wyszukiwaniem) */
.qs-alert-form {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px dashed rgba(255, 255, 255, .28);
    border-radius: 10px;
    color: rgba(255, 255, 255, .75);
}

.qs-alert-form input[type="email"] {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-ink);
    outline: none;
}

.qs-alert-form input[type="email"]:focus { border-color: #9aa4b0; }

.qs-alert-form .btn { flex-shrink: 0; padding: 9px 18px; }

/* Komunikat zapisu powiadomienia */
.alert-notice {
    max-width: 860px;
    margin: 0 auto 18px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
}

.alert-notice.ok {
    background: #e8f7ee;
    border: 1px solid #b7e4c7;
    color: #1d7a47;
}

.alert-notice.err {
    background: #fdeeee;
    border: 1px solid #f2c4c4;
    color: #b03a2e;
}

.qs-advanced-link {
    background: transparent;
    border: none;
    padding: 2px 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qs-advanced-link:hover { color: #fff; }

/* =========================================================
   CECHY / ZALETY
   ========================================================= */
.features { margin: 42px auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.feature {
    padding: 8px 26px;
    border-left: 1px solid var(--c-border);
}

.features .feature:first-child { border-left: none; padding-left: 0; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--c-border);
    color: var(--c-ink);
    margin-bottom: 14px;
}

.feature h4 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 7px;
    letter-spacing: -.01em;
}

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

/* =========================================================
   KAFLE MATERIAŁÓW
   ========================================================= */
.materials-section { margin-bottom: 46px; }

.material-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.material-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 3.9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.material-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.material-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.material-tile:hover img { transform: scale(1.05); }

/* fallback gdy brak zdjęcia */
.material-tile .tile-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-fallback .tf-slab {
    position: absolute;
    inset: -20%;
    background:
        repeating-linear-gradient(118deg, var(--tf-a) 0 42px, color-mix(in srgb, var(--tf-a) 78%, #000) 42px 46px, var(--tf-b) 46px 88px, color-mix(in srgb, var(--tf-b) 85%, #fff) 88px 92px);
    transform: rotate(4deg);
    opacity: .95;
}

.tile-fallback .tf-mark {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .9);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.material-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 20, .82) 0%, rgba(10, 14, 20, .38) 38%, rgba(10, 14, 20, .08) 62%, transparent 100%);
}

.material-info {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
}

.material-info h3 {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 3px;
}

.material-info .m-count {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
}

.material-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(3px);
    transition: background-color .2s, transform .2s;
}

.material-tile:hover .material-arrow { background: rgba(255, 255, 255, .3); transform: translateX(3px); }

/* =========================================================
   OFERTY — KARTY
   ========================================================= */
.offers-section { margin-bottom: 52px; }

/* =========================================================
   PROMOWANE OFERTY — rotacja jak baner reklamowy
   ========================================================= */
.promoted-section { margin-top: 54px; margin-bottom: 56px; }

.promoted-section .section-head { margin-bottom: 0; }

.section-head h2.promo-heading {
    color: #c9931f;
}

.promo-offers-rotator { position: relative; }

.promo-offers-viewport {
    overflow: hidden;
    margin: 0 -9px;
    padding: 10px 0 16px;
}

.promo-offers-track {
    display: flex;
    align-items: stretch;
    transform: translateX(0);
    will-change: transform;
}

.promo-offers-cell {
    display: flex;
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 9px;
}

.promo-offers-cell .offer-card {
    width: 100%;
}

.promo-offers-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
}

.promo-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d8dce1;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}

.promo-dot:hover { background: #b98c2e; }

.promo-dot.active {
    background: #d9a441;
    transform: scale(1.2);
}

@media (max-width: 1100px) {
    .promo-offers-cell { flex-basis: 33.3333%; max-width: 33.3333%; }
}

@media (max-width: 980px) {
    .promo-offers-cell { flex-basis: 50%; max-width: 50%; }
}

@media (max-width: 640px) {
    .promo-offers-cell { flex-basis: 100%; max-width: 100%; }
}

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

/* Kafelek "więcej ofert" — ostatnia komórka siatki (prawy dolny róg) */
.offers-more-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px 18px;
    background: var(--c-ink);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.offers-more-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.offers-more-tile .omt-count { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }

.offers-more-tile .omt-label { font-size: 13.5px; color: rgba(255, 255, 255, .78); }

.offers-more-tile .omt-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .2s;
}

.offers-more-tile:hover .omt-cta { background: rgba(255, 255, 255, .12); }

/* Domykanie siatki do prawej krawędzi — zależnie od liczby kolumn i ofert na stronę */
@media (max-width: 1100px) and (min-width: 641px) {
    .offers-more-tile.landing { grid-column: -3 / -1; }
    .offers-grid.grid .offers-more-tile.p15 { grid-column: 1 / -1; }
    .offers-grid.grid .offers-more-tile.p25 { grid-column: span 2; }
    .offers-grid.grid .offers-more-tile.p100 { grid-column: span 2; }
}

@media (min-width: 1101px) {
    .offers-grid.grid .offers-more-tile.p25 { grid-column: span 3; }
    .offers-grid.grid .offers-more-tile.p50 { grid-column: span 2; }
    .offers-grid.grid .offers-more-tile.p100 { grid-column: span 4; }
}

.offer-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(16, 24, 34, .22), 0 2px 6px rgba(16, 24, 34, .14);
    transition: transform .25s ease, box-shadow .25s ease;
    color: inherit;
}

.offer-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16, 24, 34, .28), 0 4px 10px rgba(16, 24, 34, .16); }

/* Karta oferty promowanej — złota ramka (jak sekcja „Promowane oferty") */
.offer-card.promoted {
    border: 2px solid #d9a441;
    box-shadow: 0 6px 22px rgba(217, 164, 65, .22), 0 2px 6px rgba(16, 24, 34, .10);
}

.offer-card.promoted:hover { box-shadow: 0 14px 34px rgba(217, 164, 65, .32), 0 4px 10px rgba(16, 24, 34, .12); }

.offer-media .promo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 999px;
    background: #d9a441;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(120, 84, 10, .35);
}

.offer-media {
    position: relative;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background: #eceef0;
}

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

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

.offer-media .no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa2ac;
    font-size: 13px;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--c-ink);
    box-shadow: 0 1px 4px rgba(16, 24, 34, .18);
    transition: transform .2s, background-color .2s;
}

.fav-btn:hover { transform: scale(1.08); background: #fff; }
.fav-btn.active svg { fill: #e5484d; stroke: #e5484d; }

.offer-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px 16px 13px;
}

.offer-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.offer-head h3 { min-width: 0; }
.offer-head .offer-price,
.offer-head .offer-price-off { flex-shrink: 0; }

.offer-body h3 {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 2px;
    color: var(--c-ink);
}

.offer-material { font-size: 12.5px; color: var(--c-muted); margin-bottom: 11px; }

.offer-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 0;
}

.offer-meta li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--c-muted);
}

.offer-meta svg { flex-shrink: 0; color: #8a919c; }

.offer-qty { margin-left: auto; padding-left: 8px; white-space: nowrap; }

.offer-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--c-green);
    letter-spacing: -.01em;
}

.offer-price span { font-size: 12.5px; font-weight: 500; color: var(--c-muted); }

.offer-price-off {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-muted);
}

/* Widok listy (wyniki wyszukiwania) */
.offers-grid.list { grid-template-columns: 1fr; gap: 14px; }

.offers-grid.list .offer-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: 230px;
}

.offers-grid.list .offer-media { aspect-ratio: auto; height: 230px; }
.offers-grid.list .offer-media img { height: 100%; }

.offers-grid.list .offer-body { padding: 18px 22px 14px; }

.offers-grid.list .offer-meta { margin-bottom: 0; }

.offers-grid.list .offer-body h3 { font-size: 18px; }

/* =========================================================
   WYNIKI WYSZUKIWANIA — pasek narzędzi, paginacja
   ========================================================= */
.results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 0;
}

.results-head h1 {
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-controls .sort-label { font-size: 13px; color: var(--c-muted); }

.sort-controls select {
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: #fff;
    font-size: 13.5px;
    color: var(--c-ink);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235c6672' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.view-controls { display: flex; align-items: center; gap: 8px; }

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: #fff;
    color: var(--c-muted);
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}

.view-btn:hover { border-color: #b9c0c9; color: var(--c-ink); }

.view-btn.active {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: #fff;
}

.view-btn svg { fill: currentColor; }

.results-count { font-size: 13.5px; color: var(--c-muted); }
.results-count strong { color: var(--c-ink); }

.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 30px 0 10px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-ink);
    transition: all .2s;
}

.pagination a:hover { border-color: var(--c-ink); }

.pagination a.active {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: #fff;
}

.pagination-info { font-size: 13px; color: var(--c-muted); margin-left: 8px; }

.perpage-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--c-muted);
}

.perpage-form select {
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: #fff;
    font-size: 13.5px;
    cursor: pointer;
}

.no-results {
    padding: 70px 20px;
    text-align: center;
    color: var(--c-muted);
    font-size: 15px;
    background: #fff;
    border: 1px dashed var(--c-border);
    border-radius: 12px;
}

/* =========================================================
   STOPKA
   ========================================================= */
.site-footer {
    background: var(--c-dark);
    color: #fff;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 40px 32px;
    padding-top: 54px;
    padding-bottom: 46px;
}

.f-brand .brand { margin-bottom: 14px; }

.f-brand .brand-mark { height: 52px; }

.f-brand .brand-text strong { font-size: 24px; }

.f-brand .brand-text small { font-size: 11.5px; }

.f-brand p.tagline {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .6);
    max-width: 300px;
}

.f-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.f-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .85);
    transition: background-color .2s, color .2s, transform .2s;
}

.f-social a:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    transform: translateY(-2px);
}

.f-social a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.f-col h4,
.f-newsletter h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .95);
}

.f-col h4::after,
.f-newsletter h4::after {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    margin-top: 8px;
    border-radius: 2px;
    background: #d9a441;
}

.f-col ul { display: grid; gap: 10px; }

.f-col a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .68);
    transition: color .2s, padding-left .2s;
}

.f-col a:hover { color: #fff; padding-left: 4px; }

.f-contact { margin-top: 16px; font-size: 13.5px; }

.f-contact a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
}

.f-contact a:hover { color: #fff; border-color: #d9a441; }

.f-newsletter p {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    gap: 6px;
    max-width: 340px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 13.5px;
    color: var(--c-ink);
    background: transparent;
}

.newsletter-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: var(--c-ink);
    color: #fff;
    transition: background-color .2s;
    flex-shrink: 0;
}

.newsletter-form button:hover { background: #000; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}

.footer-bottom .fb-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}

.footer-bottom .fb-links a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color .2s;
}

.footer-bottom .fb-links a:hover { color: #fff; }

/* =========================================================
   MODAL PRODUKTU (podgląd ogłoszenia)
   ========================================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(12, 17, 24, .62);
    padding: 124px 24px 24px;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    border-radius: 14px;
    max-width: 880px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--c-border);
    background: linear-gradient(180deg, #f7f8f9 0%, #f1f3f5 100%);
    position: sticky;
    top: 0;
    z-index: 5;
}

.modal-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-ink); }

.modal-header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.close-modal {
    border: none;
    background: rgba(28, 37, 48, .07);
    color: var(--c-ink);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s;
    flex-shrink: 0;
}

.close-modal:hover { background: rgba(28, 37, 48, .14); }

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 22px;
}

.gallery-container { position: relative; align-self: start; }

.gallery-container .main-image {
    width: 100%;
    border-radius: 10px;
    background: #f0f1f3;
    max-height: 420px;
    object-fit: contain;
}.thumbnail-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumbnail {
    flex: 0 0 auto;
    width: 64px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .75;
    transition: opacity .2s, border-color .2s;
}

.thumbnail.active { border-color: var(--c-ink); opacity: 1; }

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

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 8px rgba(16, 24, 34, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    z-index: 4;
}

/* strzałki na połowie wysokości zdjęcia głównego (nad miniaturkami) */
.main-image-wrap { position: relative; }

.nav-arrow.prev { left: 10px; }
.nav-arrow.next { right: 10px; }

.product-stats-modal {
    display: flex;
    gap: 8px;
}

.stat-item {
    background: #f6f7f8;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    padding: 5px 11px;
    font-size: 10.5px;
    color: var(--c-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.25;
    white-space: nowrap;
}

.stat-item strong { font-size: 14px; color: var(--c-ink); }

.modal-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-ink);
    transition: border-color .2s;
    flex-shrink: 0;
}

.modal-favorite-btn:hover { border-color: #b9c0c9; }
.modal-favorite-btn.active svg { fill: #e5484d; stroke: #e5484d; }

.product-details { font-size: 14px; }

.detail-row {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #d8dce1;
    align-items: baseline;
}

.detail-row:last-of-type { border-bottom: none; }

.detail-label {
    flex: 0 0 150px;
    font-size: 12.5px;
    color: var(--c-muted);
}

.detail-row a { color: var(--c-blue-2); font-weight: 500; }
.detail-row a:hover { text-decoration: underline; }

.show-advertiser-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 14px;
    border: 1px solid #2a3542;
    border-radius: 10px;
    background: linear-gradient(180deg, #2c3846, var(--c-ink));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 4px 14px rgba(16, 24, 34, .18);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.show-advertiser-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 24, 34, .26);
}

.show-advertiser-btn:active { transform: translateY(0); }

.show-advertiser-btn .sa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    flex-shrink: 0;
}

.advertiser-info {
    display: none;
    margin-top: 14px;
    background: #f8f9fa;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 16px 18px;
}

.advertiser-info.visible { display: block; }

.advertiser-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.advertiser-header h3 { font-size: 15px; font-weight: 700; }

.show-all-products-btn {
    padding: 8px 14px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-ink);
    transition: border-color .2s;
}

.show-all-products-btn:hover { border-color: #b9c0c9; }

.show-all-products-btn.standalone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 11px 16px;
    font-size: 13.5px;
    background: #f2f4f7;
    border-color: #e2e5ea;
    transition: background-color .2s, border-color .2s;
}

.show-all-products-btn.standalone:hover {
    background: #fff;
    border-color: #c3c9d1;
}

.show-all-products-btn.standalone svg {
    transition: transform .2s;
}

.show-all-products-btn.standalone:hover svg { transform: translateX(3px); }

#mapContainer { width: 100%; height: 300px; margin-top: 10px; border-radius: 8px; position: relative; z-index: 1; }

/* Powiększone zdjęcie */
.enlarged-image-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(10, 14, 20, .92);
}

.enlarged-image-container:target,
.enlarged-image-container.open { display: flex; }

.enlarged-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enlarged-image { max-width: 92vw; max-height: 88vh; border-radius: 8px; cursor: pointer; }

.close-enlarged {
    position: absolute;
    top: -44px;
    right: 0;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.enlarged-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.enlarged-nav-arrow:hover { background: rgba(0, 0, 0, .75); }

.enlarged-caption {
    position: absolute;
    top: -44px;
    left: 0;
    z-index: 10;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    pointer-events: none;
    white-space: nowrap;
}
.enlarged-nav-arrow.prev { left: -60px; }
.enlarged-nav-arrow.next { right: -60px; }

/* =========================================================
   WYSZUKIWARKA ZAAWANSOWANA (modal)
   ========================================================= */
.advanced-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Wymiary (szerokość/wysokość/grubość) — trzy grupy w jednej linii */
.dim-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Kategoria/Materiał/Kolor/Powierzchnia — cztery grupy w jednej linii */
.selects-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Lokalizacja | Promień | Powiadomienia — jedna linia, promień najwęźszy */
.loc-alert-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(105px, max-content) minmax(0, 1.15fr);
    gap: 16px;
}

.loc-alert-row .form-group-radius select { width: 100%; }

/* Wyraźniejsze ramki pól w wyszukiwarce zaawansowanej */
#advancedSearchModal .form-group .form-control {
    border: 1.5px solid #7d8896;
}

#advancedSearchModal .form-group .form-control:hover {
    border-color: #5c6672;
}

#advancedSearchModal .form-group .form-control:focus {
    border-color: #1c2530;
    box-shadow: 0 0 0 3px rgba(28, 37, 48, .1);
}

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label { font-size: 13px; font-weight: 600; color: var(--c-ink); }

.form-group .form-control {
    padding: 11px 13px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    background: #fff;
    color: var(--c-ink);
}

.form-group .form-control:focus {
    border-color: #9aa4b0;
    box-shadow: 0 0 0 3px rgba(28, 37, 48, .07);
}

.range-group { display: flex; gap: 8px; }

/* Suwak zakresu ceny (wyszukiwarka zaawansowana) */
.price-slider {
    position: relative;
    height: 24px;
    margin-top: 2px;
}

.price-slider-track {
    position: absolute;
    left: 3px;
    right: 3px;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: #e2e6ea;
    border-radius: 2px;
}

.price-slider-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: #1c2530;
    border-radius: 2px;
    left: 0;
    right: 100%;
}

.price-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
}

.price-range:focus { outline: none; }

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #1c2530;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.price-range::-moz-range-thumb {
    pointer-events: auto;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #1c2530;
    cursor: pointer;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

.form-actions .search-btn {
    padding: 12px 28px;
    background: var(--c-ink);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.form-actions .search-btn:hover { background: #000; }

.form-actions .clear-btn {
    padding: 12px 20px;
    background: #fff;
    color: var(--c-ink);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.form-actions .clear-btn:hover { border-color: #b9c0c9; }

/* =========================================================
   RODO — zgoda na cookies
   ========================================================= */
#rodo-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    padding: 16px 24px;
    background: rgba(21, 29, 39, .98);
    color: #fff;
    box-shadow: 0 -6px 24px rgba(10, 14, 20, .35);
}

.rodo-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.rodo-text p {
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .75);
    margin: 0;
}

.rodo-text a { color: #7fc7a4; text-decoration: underline; text-underline-offset: 2px; }

.rodo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#rodo-accept, #rodo-reject {
    padding: 10px 22px;
    border: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

#rodo-accept {
    background: var(--c-green-2);
    color: #fff;
}

#rodo-accept:hover { background: var(--c-green); }

#rodo-reject {
    background: transparent;
    color: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .35);
}

#rodo-reject:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }

@media (max-width: 700px) {
    #rodo-popup { flex-direction: column; align-items: stretch; text-align: left; padding: 14px 16px; gap: 12px; }
    .rodo-actions { justify-content: stretch; }
    #rodo-accept, #rodo-reject { flex: 1; text-align: center; padding: 11px 16px; }
}

/* =========================================================
   STRONY PLACEHOLDER (firmy, jak to działa, kontakt)
   ========================================================= */
.page-section { padding: 46px 24px 60px; }

.page-section h1 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

.page-section .lead {
    font-size: clamp(15px, 1.7vw, 17.5px);
    color: var(--c-muted);
    max-width: none;
    margin-bottom: 30px;
}

.placeholder-box {
    background: #fff;
    border: 1px dashed #cfd4da;
    border-radius: 12px;
    padding: 40px 28px;
    text-align: center;
    color: var(--c-muted);
    font-size: 14.5px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 26px;
    max-width: 560px;
    box-shadow: var(--shadow-sm);
}

.contact-card h2 { font-size: 17px; margin-bottom: 14px; }

.contact-list { display: grid; gap: 12px; }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
}

.contact-list svg { color: var(--c-ink); flex-shrink: 0; }

/* =========================================================
   KOMPATYBILNOŚĆ — starsze podstrony (login.php, cennik_reklam.php)
   ========================================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    height: var(--header-h);
    background: var(--c-dark);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.main-header h1 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.main-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-header .search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}

.main-header .search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
}

.main-header .search-form input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, background-color .2s;
}

.main-header .search-form input[type="text"]::placeholder { color: rgba(255, 255, 255, .5); }

.main-header .search-form input[type="text"]:focus {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .12);
}

.main-header .search-buttons { display: flex; gap: 6px; }

.main-header .search-buttons button {
    padding: 10px 16px;
    border: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.main-header .search-buttons .search-btn { background: #fff; color: var(--c-ink); }
.main-header .search-buttons .search-btn:hover { background: #eef1f4; }

.main-header .search-buttons .clear-btn,
.main-header .search-buttons .advanced-btn {
    background: transparent;
    color: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .3);
}

.main-header .search-buttons .clear-btn:hover,
.main-header .search-buttons .advanced-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }

.main-header .header-link {
    color: rgba(255, 255, 255, .85);
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}

.main-header .header-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.main-header .user-name {
    color: var(--c-gold);
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
}

.main-header .header-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}

.main-header .header-btn:hover { background: rgba(255, 255, 255, .12); }
.main-header .header-btn.active { background: #fff; color: var(--c-ink); }
.main-header .header-btn.btn-logout { border-color: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .75); }

/* Kontener treści dla starych podstron */
.container-main {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ads-list-section {
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
}

.pricing-section {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.pricing-section .subtitle { color: var(--c-muted); }

.pricing-table th { background: #f6f7f8; color: var(--c-ink); }

.contact-info { display: grid; gap: 8px; }
.contact-info i { margin-right: 10px; color: var(--c-muted); width: 20px; text-align: center; }

.highlight { color: var(--c-green-2); font-weight: 700; }

.container-main .main-footer { width: 100%; }

@media (max-width: 640px) {
    .main-header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 16px;
        gap: 10px;
    }

    .main-header .search-container {
        order: 3;
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .container-main { padding: 20px 16px 32px; }
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1350px) {
    .header-pictos { display: none; }
}

@media (max-width: 1100px) {
    .material-grid { grid-template-columns: repeat(4, 1fr); }
    .features-grid { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
    .features .feature:nth-child(4) { border-left: none; padding-left: 0; }
    .features .feature { padding: 8px 22px; }
    .offers-grid { grid-template-columns: repeat(3, 1fr); }
    .main-nav { gap: 0; }
    .nav-link { padding: 9px 9px; font-size: 13.5px; }
}

@media (max-width: 980px) {
    :root { --header-h: 60px; }

    .main-nav { display: none; }
    .header-actions .btn { display: none; }
    /* nick użytkownika zostaje widoczny w wąskim oknie */
    .hamburger { display: flex; }
    .mobile-nav { display: block; }

    /* Na mobile pole wyszukiwania jest w menu mobilnym */
    .header-quicksearch { display: none; }

    .header-search { right: 20px; }

    .hero .container { padding-top: 24px; padding-bottom: 24px; }

    .cta-grid { grid-template-columns: 1fr; }
    .cta-card { min-height: 0; padding: 20px 20px 22px; }
    .cta-head { padding-left: 0; min-height: 0; }
    .cta-card .btn { margin-top: 0; }

    .quick-search { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
    .qs-info { max-width: none; }
    .qs-fields { grid-template-columns: 1fr 1fr; }
    .qs-bottom-row, .qs-third-row { grid-template-columns: 1fr 1fr; margin-left: 0; }
    .qs-bottom-row .qs-spacer { display: none; }
    .qs-third-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.75fr) minmax(0, 1.4fr) auto;
}
.qs-third-row #alertFields.visible { display: block; grid-column: 1 / -1; }
.qs-third-row .qs-save-check { align-self: center; }

.qs-bottom-row .qs-advanced-link,
.qs-third-row .qs-advanced-link { white-space: normal; justify-self: start; }
    .qs-submit { height: 48px; }
    .qs-actions { justify-content: center; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features .feature { border-left: none; padding: 0; }

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

    .hero .container { flex-direction: column; gap: 22px; }
    .hero-features { width: 100%; max-width: none; margin-top: 0; justify-content: flex-start; }
    .hero-features .features-grid { justify-content: flex-start; }
    .hero-features .feature { flex: 1 1 140px; }

    .modal-body { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header-inner { padding: 0 16px; gap: 12px; }

    .page-section { padding: 36px 16px 48px; }

    .brand-mark { height: 40px; }
    .brand-text strong { font-size: 17px; }

    .hero .container { padding-top: 24px; padding-bottom: 24px; }

    .promo-rotator { margin-top: 12px; }
    .promo-rotator-inner { height: 120px; }

    .cta-section, .quick-search-wrap { margin-top: 16px; }
    .features { margin: 30px auto; }

    .qs-fields { grid-template-columns: 1fr; }
    .qs-bottom-row, .qs-third-row { grid-template-columns: 1fr; margin-left: 0; }
    .qs-submit { width: 100%; height: 50px; }

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

    .material-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .offers-grid { grid-template-columns: 1fr; }

    .hero-features .features-grid { gap: 6px; }
    .hero-features .feature { flex: 1 1 45%; min-width: 0; }

    .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }

    .offers-grid.list .offer-card { grid-template-columns: 1fr; }

    .pagination-wrap { justify-content: center; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }

    .modal { padding: 10px; }
    .modal-body { padding: 16px; }
    .detail-label { flex-basis: 120px; }
    .advanced-search-form { grid-template-columns: 1fr; }
    .dim-row { grid-template-columns: 1fr; gap: 14px; }
    .selects-row { grid-template-columns: 1fr; gap: 14px; }
    .loc-alert-row { grid-template-columns: 1fr; gap: 14px; }

    .modal-header { flex-wrap: wrap; padding: 10px 14px; }
    .modal-header-tools { width: 100%; justify-content: space-between; order: 3; }
    .product-stats-modal { flex: 1; justify-content: space-between; overflow-x: auto; }
    .modal-favorite-btn span { display: none; }
}

@media (max-width: 400px) {
    .offers-grid { gap: 12px; }
    .offer-body { padding: 12px 12px 14px; }
}

/* ===== Rozwijane menu użytkownika (spójne z panelem) ===== */
.header-user {
    display: inline-flex;
    align-items: center;
    height: 38px;
    max-width: 220px;
    padding: 0 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-menu-wrap { position: relative; }
#userMenuBtn { cursor: pointer; border: none; gap: 7px; font-family: inherit; }
.user-menu-chevron { transition: transform .15s ease; }
#userMenuBtn[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); }
.user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    min-width: 190px;
    padding: 6px;
    z-index: 1300;
}
.user-menu.open { display: block; }
.user-menu a,
.user-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
}
.user-menu a:hover,
.user-menu button:hover { background: #f2f4f6; }
.user-menu .user-menu-danger { color: #b03a2e; }
.user-menu .user-menu-danger:hover { background: #fdecea; }

/* Modal usuwania konta */
.del-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.del-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    margin: 0 15px;
}
.del-modal-title { margin-bottom: 10px; color: #2c3e50; }
.del-warning-text { color: #575757; margin-bottom: 8px; }
.del-warning-list { text-align: left; margin: 0 auto 16px; padding-left: 20px; color: #b03a2e; font-size: 14px; }
.del-confirm-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #b03a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.del-confirm-btn:hover { background: #922f25; }
.del-cancel-btn {
    margin-top: 10px;
    padding: 9px;
    width: 100%;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}
.del-cancel-btn:hover { background: #5a6268; }

/* zwijane sekcje ofert (Najnowsze / Promowane) */
.section-head-tools { display: inline-flex; align-items: center; gap: 12px; }
.sec-collapse-btn {
    padding: 6px 14px; font-size: 12.5px; font-weight: 700;
    border: 1px solid #c9ced4; border-radius: 20px; background: #fff; color: #3c4650;
    cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.sec-collapse-btn:hover { border-color: #1d6b4c; color: #1d6b4c; }
.collapsible.collapsed .collapsible-body { display: none !important; }
.collapsible.collapsed .sec-collapse-btn { background: #eef1f4; }

/* cena w prawym dolnym rogu kafla oferty */
.offer-price-bottom {
    text-align: right;
    margin-top: 8px;
    margin-left: auto;
}
.offer-price-bottom span { font-size: 12px; }
.offer-body .offer-material { display: none; }

/* dolny wiersz kafla: lokalizacja po lewej + cena po prawej (w jednej linii) */
.offer-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}
.offer-loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--c-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-price-row .offer-price { flex-shrink: 0; }

/* =========================================================
   UPROSZCZONE KAFLĘ CTA (Dodaj ofertę / Szukaj materiału)
   płaskie, bez zdjęć w tle — wyróżniają się z treści strony.
   ABY COFNĄĆ: usuń ten cały blok.
   ========================================================= */
.cta-card {
    min-height: 0;
    padding: 18px 22px 16px;
    color: #1c2530;
    background: var(--cta-bg, #fff) !important;
    background-image: none !important;
    border: 1px solid #c9ced4;
    box-shadow: 0 2px 10px rgba(16, 24, 34, .07);
}
.cta-card::before { height: 3px; opacity: 1; }
.cta-green {
    --cta-photo: none;
    --cta-overlay: none;
    --cta-bg: linear-gradient(135deg, #eef7f2 0%, #ffffff 62%);
    --accent-line: #1d6b4c;
    --icon-bg: #d9ede4;
    --kicker: #17573f;
    border-top: 3px solid #1d6b4c;
}
.cta-blue {
    --cta-photo: none;
    --cta-overlay: none;
    --cta-bg: linear-gradient(135deg, #edf4fa 0%, #ffffff 62%);
    --accent-line: #4a7fa5;
    --icon-bg: #dcebf5;
    --kicker: #2c5a7c;
    border-top: 3px solid #4a7fa5;
}
a.cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(16, 24, 34, .12);
    border-color: var(--accent-line, #c9ced4);
}
.cta-kicker {
    position: static;
    align-self: flex-start;
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--kicker, #17573f);
    background: none;
    padding: 0;
    margin-bottom: 8px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.cta-head { gap: 12px; margin-bottom: 6px; }
.cta-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--kicker, #17573f);
}
.cta-head h2 { font-size: 20px; color: #1c2530; }
.cta-head p { font-size: 13px; color: #5c6672; margin-top: 1px; }
.cta-text { font-size: 13.5px; color: #5c6672; margin-bottom: 12px; }
.cta-card .btn-white {
    background: var(--icon-bg, #e7f0ec);
    color: #17573f;
    border: none;
    padding: 9px 18px;
    font-size: 13.5px;
}
.cta-card .btn { margin-top: 8px; padding: 9px 18px; }
