

@import url('_toper.css');
@import url('_footer.css');

/* reset */
 
*, *::before, *::after{
    box-sizing: border-box; /* Set the sizing of an element to include it's border */
}

*{
    margin: 0; /* Set the default margin to 0 */
    padding: 0; /* Set the default padding to 0 */
}

ul[role='list'], ol[role='list']{
    list-style: none; /* Turn off numbered and unordered list decoration */
}

html:focus-within{
    scroll-behavior: smooth; /* Make the scrolling inside of any scrollable element smooth */
}

a:not([class]){
    text-decoration-skip-ink: auto; /* Makes link undelines look better */
}

img, picture, svg, video, canvas{
    max-width: 100%; /* Makes it responsive */
    height: auto; /* Makes it responsive */
    vertical-align: middle; /* Makes text next to inline images look better */
    font-style: italic; /* If the images don't load it makes the alt decription look better */
    background-repeat: no-repeat;
    /* The background repeat and size are there if you want to load a picture first like a backroung image that is worse quality while the better quality image loads */
    background-size: cover;
}

input, button, textarea, select{
    font: inherit; /* Makes these elements inherit fonts */
}

/* Turns off animation for people who don't want to see them */
@media (prefers-reduced-motion: reduce){
    html:focus-within {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition: none;
    }
}

body, html{
    height: 100%; /* Makes the body element full screen */
    scroll-behavior: smooth; /* Makes normal scrolling smooth */
}

/* koniec reset */


/* colors */

:root {
    /* Color Palette */
    --toper-color: #821730;
    --bg-white: #fff;
    --bg-gray-png: url(/img/tlo.png);

    /* Neutral Colors */
    --white: #4d4d4d;
    --black: #000;
    --grey-100: #f8f9fa;
    --grey-200: #e9ecef;
    --grey-300: #dee2e6;
    --grey-400: #ced4da;
    --grey-500: #adb5bd;
    --grey-600: #6c757d;
    --grey-700: #495057;
    --grey-800: #343a40;
    --grey-900: #212529;

    --blue-light: #2858ff;
    
    --red: #be050e;
    --green-dark: #075e1a;
    --black: rgb(1, 0, 8);

    --beige-pasze: #e4decf;

       /* Shadows */
       --box-shadow-very-smooth: 0px 0px 4px rgba(0,0,0,0.05), 0px 1px 2px rgba(0,0,0,0.1);
       --box-shadow-smooth: 0px 0px 8px rgba(0,0,0,0.1), 0px 1px 2px rgba(0,0,0,0.2);
       --box-shadow-medium: 0px 0px 8px rgba(0,0,0,0.1), 0px 2px 4px rgba(0,0,0,0.3);
       --box-shadow-large: 0px 0px 12px rgba(0,0,0,0.3), 0px 2px 6px rgba(0,0,0,0.8);


    
}



/* typography */




/* Ustawienie podstawowego rozmiaru czcionki dla strony */
html {
    font-size: 62.5%; /* to ustawia 1rem na 10px, co ułatwia przeliczanie */
}



/* Style podstawowe */
body {
    font-family:  'Inter',  system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 1.4rem; /* 16px na urządzeniach mobilnych */
    line-height: 1.5;
    color: var(--grey-900);
}

h1 { font-size: 1.9rem; } /* Mniejsze rozmiary nagłówków dla mobilnych */
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5, h6 { font-size: 1.1rem; }

p, ul, ol, blockquote, pre, code {
    margin-bottom: 1rem;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Media queries dla większych ekranów */
@media (min-width: 768px) {
    /* Rozmiary czcionek dla tabletów i desktopów */
    h1 { font-size: 2.5rem; } /* Zwiększenie rozmiarów nagłówków dla większych ekranów */
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    h5 { font-size: 1.25rem; }
    h6 { font-size: 1rem; }
}

@media (min-width: 1024px) {
    body { font-size: 1.4rem; } /* Nieco większy tekst na desktopach */

    /* Można dodać dodatkowe style specyficzne dla desktopu, jeśli to konieczne */
}



/* basic laypout */



html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    background-color: #fdfaf9;
    background: var(--bg-gray-png);
}

@media (max-width: 740px) {
    /* waskie ekrany */
    .hidden-sm {
        display: none;
    }

    body {

        overflow-x: auto;
        overflow-y: auto;
        overflow-scrolling: touch;
    }

    .onlyDesktop {
        display: none;
    }

}

@media (min-width: 741px) {
    /* szerokie ekrany */
    .hidden-lg {
        display: none;
    }

    .onlyMobile {
        display: none;
    }
}

.container {
    max-width: 1040px;
    margin: 0 auto;
}

.clearfix {
    clear: both;
}

.red-text {
    color: var(--red);
}

.black-text {
    color: var(--black);
}



body.galeria{
background: var(--grey-900);

}


.gallery-top {
    height: 80%;
    width: 100%;
}
.gallery-top .swiper-slide,
.gallery-top .swiper-lazy,
.top_foto .swiper-slide {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    height: 100%;
}


.galeria .toper_mobile{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.galeria .top_foto {
    margin-top: 55px;
  }

.galeria .top_foto .swiper-container {
    width: 100%;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
}
.galeria .top_foto .swiper-slide {
    height: 100px;
    text-align: center;
}
  

@media (max-height:340px){
    .galeria .top_foto .swiper-slide {
        height: 250px;
    }
    .galeria .top_foto .swiper-container {
        height: 250px;
    }
}


@media (min-height:341px) and (max-height:375px){
    .galeria .top_foto .swiper-slide {
        height: 310px;
    }
    .galeria .top_foto .swiper-container {
        height: 310px;
    }
}

@media (min-height:376px) and (max-height:420px){
    .galeria .top_foto .swiper-slide {
        height: 350px;
    }
    .galeria .top_foto .swiper-container {
        height: 350px;
    }
}

@media (min-height:421px) and (max-height:470px){
    .galeria .top_foto .swiper-slide {
        height: 400px;
    }
    .galeria .top_foto .swiper-container {
        height: 400px;
    }
}

@media (min-height:471px) and (max-height:520px){
    .galeria .top_foto .swiper-slide {
        height: 450px;
    }
    .galeria .top_foto .swiper-container {
        height: 450px;
    }
}

@media (min-height:521px) and (max-height:570px){
    .galeria .top_foto .swiper-slide {
        height: 500px;
    }
    .galeria .top_foto .swiper-container {
        height: 500px;
    }
}

@media (min-height:571px) and (max-height:670px){
    .galeria .top_foto .swiper-slide {
        height: 550px;
    }
    .galeria .top_foto .swiper-container {
        height: 550px;
    }
}


@media (min-height:671px) and (max-height:770px){
    .galeria .top_foto .swiper-slide {
        height: 650px;
    }
    .galeria .top_foto .swiper-container {
        height: 650px;
    }
}

@media (min-height:771px) and (max-height:870px){
    .galeria .top_foto .swiper-slide {
        height: 750px;
    }
    .galeria .top_foto .swiper-container {
        height: 750px;
    }
}

@media (min-height:871px) and (max-height:970px){
    .galeria .top_foto .swiper-slide {
        height: 850px;
    }
    .galeria .top_foto .swiper-container {
        height: 850px;
    }
}

@media (min-height:971px) and (max-height:1070px){
    .galeria .top_foto .swiper-slide {
        height: 950px;
    }
    .galeria .top_foto .swiper-container {
        height: 950px;
    }
}
@media (min-height:1071px) and (max-height:1170px){
    .galeria .top_foto .swiper-slide {
        height: 1050px;
    }
    .galeria .top_foto .swiper-container {
        height: 1050px;
    }
}
@media (min-height:1171px) and (max-height:1270px){
    .galeria .top_foto .swiper-slide {
        height: 1150px;
    }
    .galeria .top_foto .swiper-container {
        height: 1150px;
    }
}
@media (min-height:1271px) and (max-height:1370px){
    .galeria .top_foto .swiper-slide {
        height: 1250px;
    }
    .galeria .top_foto .swiper-container {
        height: 1250px;
    }
}
@media (min-height:1371px) {
    .galeria .top_foto .swiper-slide {
        height: 1350px;
    }
    .galeria .top_foto .swiper-container {
        height: 1350px;
    }
}

  .ale_nie_na_glownej {
    margin-bottom: 0 !important;

  }

  .ale_nie_na_glownej .glowna_lista {
      padding-bottom: 8px;
  }

    .small-ad-card {
        position: relative;
        display: flex;
        flex-direction: column;
        border: 1px solid #ddd;
        border-radius: 8px;
        /* overflow: hidden; */
        background-color: #fff;
        height: 100%;
        font-family: sans-serif;
        max-width: 240px; /* Ograniczenie szerokości karty */
        margin: 0 auto; /* Wyśrodkowanie w kolumnie siatki */
        margin-top: 2px;
        margin-left: 2px;
        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    }

    .small-ad-card.podswietlenie5 {
        background: linear-gradient(-10deg, rgb(255, 224, 190), rgb(255, 248, 236), rgb(255, 250, 241));      
        border-top-left-radius: 0;
        margin-top: 2px;
    }

    .small-ad-card__top-offer {
        position: absolute;
        top: -2px;
        left: -3px;
        z-index: 30;
    }

    .small-ad-card__top-offer img {
        width: 90px;
        height: auto;
    }

    .small-ad-card__image {
        width: 100%;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
    }

    .small-ad-card.podswietlenie5 .small-ad-card__image {
        border-top-left-radius: 0;
    }

    .small-ad-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.2s ease-in-out;
    }

    .small-ad-card:hover .small-ad-card__image img {
        transform: scale(1.05);
    }

    .small-ad-card__info {
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
    }

    .small-ad-card__main-content {
        white-space: normal;
        height: 100px;;
    }

    .small-ad-card__title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
    }

    .small-ad-card__title a {
        color: #333;
        text-decoration: none;
    }
    .small-ad-card__title a:hover {
        text-decoration: underline;
    }

    .small-ad-card__details {
        font-size: 12px;
        color: #555;
        line-height: 1.3;
        margin: 0 0 6px 0;
    }

    .small-ad-card__price {
        font-size: 16px;
        font-weight: bold;
        color: #d10000;
        text-align: right;
    }

    .small-ad-card__price .nieaktualne {
        font-size: 14px;
        font-weight: normal;
        color: #e53e3e; /* red-600 */
    }

    .small-ad-card__footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
        gap: 4px;
        height: 20px;
    }

    .small-ad-card__location {
        font-size: 11px;
        color: #666;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .small-ad-card__price-wrapper {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .small-ad-card__details .hd_last:last-child{
        display: none;
    }

    .swiper-slide-240px {
        width: 240px !important; /* Ustawienie szerokości slajdu na 240px */
    }

    .promowane_ale_nie_na_glownej{
        display: block;
        border-top:0px solid #fff; 
        margin-top:24px; 
        padding-top: 8px; 
        padding-bottom: 8px;
        padding-left: 2px; 
        font-size: 120%;
        font-weight: bold;
        color: #333;
    }