@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

#sg_product_card {
    width: 100%;
    max-width: 1000px;
    background: #f9f8f6;
    color: #475570;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 22px;
}

#sg_product_card * {
    box-sizing: border-box;
}

#sg_product_card p {
    margin: 0;
}

#sg_product_card video,
#sg_product_card img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

#sg_product_card video {
    width: 100%;
}

#sg_product_card .zdjecie-kontener .sg_hero {
    position: relative;
    color: #ffffff;
    height: 500px;
    overflow: hidden;
}

#sg_product_card .sg_hero:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
    z-index: 1;
}

#sg_product_card .sg_hero > picture {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

#sg_product_card .sg_hero > picture img {
    right: 0;
    height: 100%;
    position: absolute;
    z-index: 0;
}

#sg_product_card .zdjecie-kontener .sg_hero > video {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}

#sg_product_card .zdjecie-kontener .sg_hero > img {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 180px;
    z-index: 2;
}

#sg_product_card .sg_card_content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

#sg_product_card .szeroka_sekcja {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#sg_product_card .sg_logo {
    text-align: center;
    padding: 88px 0;
}

#sg_product_card .sg_strong {
    font-family: 'Poppins';
    font-weight: 200;
    font-size: clamp(22px, 10vw, 52px);
    line-height: 1;
}

#sg_product_card .sg_medium {
    font-weight: 500;
}

#sg_product_card .sg_hero_content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

#sg_product_card .sg_main_section {
    padding-block: 32px;
    border-radius: 48px;
    border: 1px solid #dfdfdf;
    background: linear-gradient(180deg, #ffffff 0%, #f5f4f4 100%);
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

/* ------------------------- POŚWIATA ------------------------- */
#sg_product_card .sg_main_section_bg { 
    border-radius: 100%;
    width: 170px; /* szerokość */
    height: 260px; /* wysokość */
    background: #2f2a24; /* Kolor */
    filter: blur(48px);
    position: absolute;
    right: 20%; /* Pozycja lewo/prawo */
    bottom: 37px; /* Pozycja góra/dół */
}

#sg_product_card .sg_title {
    text-align: center;
    color: #475570;
    text-transform: uppercase;
    font-size: clamp(22px, 10vw, 52px);
    font-weight: 600;
    line-height: 1;
    position: relative;
    z-index: 1;
    padding: 48px 40px 24px;
}

#sg_product_card .sg_main_section_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 92px; /* szerokość zdjęcie a siatka */
    position: relative;
    z-index: 1;
    padding: 0 132px;
}


/* Siatka 2 kolumny (np. 2 x 2)*/
#sg_product_card .sg_main_section_icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Siatka na 3 kolumny (np 3 x 2)

#sg_product_card .sg_main_section_icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}*/

/* Ostatni wiersz wyśrodkowany - jeden element*/
.sg_main_section_icon:last-child {
    grid-column: 1 / 3;
    justify-self: center;
}

#sg_product_card .sg_main_section_icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

#sg_product_card .sg_main_section_icon_desc {
    font-size: 10px;
    line-height: normal;
    display: flex;
    align-items: center;
    gap: 2px;
	font-size: 13px;
}


#sg_product_card .sg_inline_icon {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-inline: auto;
    padding: 30px 0 0;
}

#sg_product_card .sg_inline_icon_title {
    color: #2f2a24;
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
    text-align: center;
}


#sg_product_card .sg_video_with_desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 12px;
    line-height: 18px;
}

#sg_product_card .sg_video_with_desc img {
    border-radius: 32px;
}

#sg_product_card .sg_video_with_desc video {
    border-radius: 32px;
}

#sg_product_card .sg_chess_header {
    display: flex;
    align-items: center;
    gap: 10px;
}

#sg_product_card .sg_chess_header img {
    flex-shrink: 0;
}

#sg_product_card .sg_chess_header_title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#sg_product_card .sg_chess_title {
    color: #475570;
    font-weight: 200;
    font-size: clamp(22px, 10vw, 52px);
    line-height: 1;
}

#sg_product_card .sg_chess_att, .sg_inline_icon_att {
    font-weight: bold;
}

#sg_product_card .sg_inline_icon_att {
    text-align: center;
}

#sg_product_card .sg_chess_item {
    display: flex;
    align-items: center;
}

#sg_product_card .sg_chess_image {
    flex: 1;
    min-width: 50%;
    max-width: 50%;
}

#sg_product_card .sg_chess_image video {
    object-fit: cover;
    object-position: center;
    height: 375px;
}

#sg_product_card .sg_chess--reversed .sg_chess_item:nth-of-type(odd) {
    flex-direction: row-reverse;
}

#sg_product_card .sg_chess_content {
    padding: 40px;
    height: 100%;
    flex: 1;
    min-width: 50%;
    max-width: 50%;
}

#sg_product_card .sg_chess_text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #475570;
    font-weight: 600;
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.2;
    margin-top: 8px;
}

#sg_product_card .sg_chess_image img {
    width: 100%;
    border-radius: 0;
    font-size: 0;
    line-height: 0;
}



#sg_product_card .sg_center {
    text-align: center;
}

#sg_product_card .sg_other_features {
    position: relative;
}

#sg_product_card .sg_other_features_grid_item {
    position: relative;
    height: 410px;
    overflow: hidden;
}

#sg_product_card .sg_other_features_grid_item > img {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: none;
    z-index: 0;
}

#sg_product_card .sg_other_features_grid_item_inner {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

#sg_product_card .sg_other_features_grid_item_title {
    text-align: left;
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp(22px, 10vw, 52px);
    line-height: 1;
}

#sg_product_card .sg_other_features_grid_item_text {
    font-weight: 400;
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.2;
}



@media (max-width: 991px) {

    #sg_product_card .sg_main_section_grid {
        padding: 0 80px;
    }

    #sg_product_card .sg_main_section_icons {
        gap: 16px;
    }

    #sg_product_card .sg_main_section_bg {
        right: 25%;
    }
}

@media (max-width: 767px) {
    #sg_product_card .sg_hero {
        height: 500px;
    }

    #sg_product_card .zdjecie-kontener .sg_hero > img {
        top: 24px;
        left: 24px;
        width: 140px;
    }

    #sg_product_card .sg_hero_content {
        padding: 20px;
    }

    #sg_product_card .sg_hero:after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.4) 100%);
        z-index: 1;
    }

    #sg_product_card .sg_other_features_grid_item {
        height: unset;
    }

    #sg_product_card .sg_other_features_grid_item > img {
        inset: 0;
        object-fit: cover;
        object-position: right center;
        position: relative;
        width: 100%;
        height: 300px;
    }

    #sg_product_card .sg_other_features_grid_item_inner {
        width: 100%;
        padding: 40px 20px;
    }
}

@media (max-width: 649px) {
    #sg_product_card .sg_other_features_grid_item {
        grid-column: span 1;
    }

    #sg_product_card .sg_other_features_grid_item_empty {
        display: none;
    }


    #sg_product_card .sg_chess--reversed .sg_chess_item,
    #sg_product_card .sg_chess--reversed .sg_chess_item:nth-of-type(odd) {
        flex-direction: column;
    }
    
    #sg_product_card .sg_chess_content {
        width: 100%;
        min-width: unset;
        max-width: unset;
        padding: 40px 20px;
    }
    #sg_product_card .sg_chess_image {
        width: 100%;
        min-width: unset;
        max-width: unset;
        flex: unset;
    }

    #sg_product_card .sg_chess_item:nth-of-type(2n) {
        grid-template-areas:
            "image"
            "text";
    }

    #sg_product_card .sg_chess--reversed .sg_chess_item:nth-of-type(2n) {
        grid-template-areas:
            "image"
            "text";
    }

    #sg_product_card .sg_chess_image img {
        border-radius: 0;
    }
}


@media (max-width: 767px) {

    #sg_product_card .sg_video_with_desc img {
        border-radius: 20px;
    }

    #sg_product_card .sg_video_with_desc video {
        border-radius: 20px;
    }

}


/* KLUCZOWE CECHY w przypadku nie parzystych - ostatni element wyśrodkowany

@media (max-width: 649px) {
    #sg_product_card .sg_other_features_grid_item:nth-last-child(2) {
        grid-column: 1 / -1;          
        justify-self: center;         
        width: 100%;                  
    }
} */


/* ---------------- ZAWARTOŚĆ ZESTAWU ---------------- */

#sg_product_card .sg_set_simple {
    position: relative;
    height: 410px;
    overflow: hidden;
    color: #475570;
}

#sg_product_card .sg_set_simple .sg_title {
    text-align: left;
    text-transform: uppercase;
    padding: 40px;
    position: relative;
    z-index: 2;
    font-size: clamp(22px, 10vw, 52px);
    line-height: 1;
}

#sg_product_card .sg_set_simple > picture {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 0;
}

#sg_product_card .sg_set_simple > picture img {
    right: 0;
    height: 100%;
    position: absolute;
    border-radius: 0;
}

#sg_product_card .sg_set_simple_list {
    position: relative;
    z-index: 2;
    padding: 0 40px 40px 60px;
}

#sg_product_card .sg_set_simple_list {
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.2;
}

#sg_product_card .sg_set_simple_item {
    
}

@media (max-width: 767px) {
    #sg_product_card .sg_set_simple {
        height: unset;
    }

    #sg_product_card .sg_set_simple > picture {
        position: relative;
        width: 100%;
        height: auto;
        transform: none;
        left: 0;
    }

    #sg_product_card .sg_set_simple > picture img {
        position: relative;
        height: auto;
        width: 100%;
    }

    #sg_product_card .sg_set_simple .sg_title,
    #sg_product_card .sg_set_simple_list {
        width: 100%;
        padding: 20px;
    }

    #sg_product_card .sg_set_simple_list {
        padding-left: 60px;
        padding-top: 0;
        margin-top: 0;
    }
}

/*---------------- Kafelki ----------------*/

#sg_product_card .sg_matt_wrapper{
    display:flex;
    flex-wrap:nowrap;
    justify-content:space-between;
    align-items:flex-start;
    gap:0;
    width:100%;
    padding: 0;
    border-radius: 0;
    border: none;
    background: none;
}

#sg_product_card .sg_matt_wrapper .sg_matt_box{
    width:50%;
    max-width:50%;
    min-width:0;
    flex:0 0 50%;
    text-align:center;
}

#sg_product_card .sg_matt_wrapper .sg_matt_box img{
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    margin: 0 0 18px;
    border-radius: 0;
}

#sg_product_card .sg_matt_wrapper .sg_matt_box video{
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    margin: 0 0 18px;
    border-radius: 0;
}

#sg_product_card .sg_matt_wrapper .sg_matt_text {
    margin-bottom: 20px;
}

#sg_product_card .sg_matt_wrapper .sg_matt_title{
    color: #475570;
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp(16px, 3vw, 22px);
    line-height: 1.15;
    margin: 0 0 8px;
}

#sg_product_card .sg_matt_wrapper .sg_matt_box p{
    color: #475570;
    font-weight: 400;
    font-size: 14px;
}

/* Druga instancja sg_matt_wrapper: "Poznaj serię Aqua Edition" (3 kafelki) —
   różnicowana selektorem sąsiedztwa względem sg_title, bo :nth-of-type()
   liczy pozycję wśród WSZYSTKICH <div>, nie tylko .sg_matt_wrapper */
#sg_product_card .sg_title + .sg_matt_wrapper .sg_matt_box{
    width: 33.333%;
    max-width: 33.333%;
    flex: 0 0 33.333%;
}

#sg_product_card .sg_title + .sg_matt_wrapper .sg_matt_title{
    text-transform: none;
    font-weight: 200;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
}

#sg_product_card .sg_title + .sg_matt_wrapper .sg_matt_box p{
    font-size: 20px;
}

@media (max-width: 767px){
    #sg_product_card .sg_matt_wrapper{
        flex-wrap:wrap;
        padding: 0;
    }

    #sg_product_card .sg_matt_wrapper .sg_matt_box{
        width:50%;
        max-width:50%;
        flex:0 0 50%;
        text-align: center;
    }

    #sg_product_card .sg_title + .sg_matt_wrapper{
        flex-direction: column;
    }

    #sg_product_card .sg_title + .sg_matt_wrapper .sg_matt_box{
        width:100%;
        max-width:100%;
        flex:0 0 100%;
        text-align: center;
    }
}

#sg_product_card .sg_divider {
    border: none;
    height: 1px;
    background-color: #dfdfdf;
    margin: 20px 0 10px;
}


#sg_product_card .sg_title_other_features {
    text-align: center;
    font-size: 34px;
    font-weight: 500;
    line-height: 36px;
    position: relative;
    z-index: 1;
}

/* ----------------- IKONKA AI -------------------------- */
#sg_product_card .zdjecie-kontener {
  position: relative;
  /* display: inline-block; */
}

#sg_product_card .zdjecie-kontener img {
  display: block;
  max-width: 100%;
}

#sg_product_card .ikonka-chmurka {
    position: absolute;
    bottom: 0;
    left: 0;
    outline: none;
    z-index: 10;
}

#sg_product_card .ikona {
    width: 90px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    background: rgba(255, 255, 255, 0.75);
    color: #555555;
    border-radius: 4px;
    margin: 12px 12px;
}
/* ------------------------------------------------------ */

/* Tabela wymiarów */
#sg_product_card .sg_dimensions {
    padding-inline: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

#sg_product_card .sg_dimensions_table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 360px;
}

#sg_product_card .sg_dimensions_table_row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 6px;
    border-bottom: 1px solid #dfdfdf;
    font-size: 14px;
    line-height: 20px;
}

#sg_product_card .sg_dimensions_table_row:last-child {
    border-bottom: none;
}

#sg_product_card .sg_dimensions_table_row div:last-child {
    text-align: right;
}

#sg_product_card .sg_dimensions_table_row.sg_semibold {
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2f2a24;
    font-weight: 600;
}

#sg_product_card .sg_dimensions img {
    width: 265px;
    height: auto;
}

@media (max-width: 991px) {
    #sg_product_card .sg_dimensions {
        padding-inline: 16px;
    }

    #sg_product_card .sg_dimensions_table {
        width: 100%;
    }
}

@media (max-width: 767px) {
    #sg_product_card .sg_dimensions {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    #sg_product_card .sg_dimensions_table {
        width: 100%;
    }

    #sg_product_card .sg_dimensions img {
        width: 265px;
        max-width: 100%;
    }
}

/* SPECKA */

#sg_product_card .sg_spec {
    padding-inline: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

#sg_product_card .sg_spec img {
    width: 265px;
    height: auto;
}

#sg_product_card .sg_spec_title {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2f2a24;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    color: #2f2a24;
    display: block;
}

#sg_product_card .sg_spec_table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 360px;
}

#sg_product_card .sg_spec_table_row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 6px;
    border-bottom: 1px solid #dfdfdf;
    font-size: 14px;
    line-height: 20px;
}

#sg_product_card .sg_spec_table_row:last-child {
    border-bottom: none;
}

#sg_product_card .sg_spec_table_row div:last-child {
    text-align: right;
}

#sg_product_card .sg_spec_table_row.sg_semibold {
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2f2a24;
    font-weight: 600;
}

@media (max-width: 991px) {
    #sg_product_card .sg_spec {
        padding-inline: 16px;
    }

    #sg_product_card .sg_spec_table {
        width: 100%;
    }
}

@media (max-width: 767px) {
    #sg_product_card .sg_spec {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    #sg_product_card .sg_spec_table {
        width: 100%;
    }

    #sg_product_card .sg_spec img {
        width: 265px;
        max-width: 100%;
    }
}

#sg_product_card .szeroka_sekcja .sg_matt_wrapper {
    flex-direction: column;
}

#sg_product_card .szeroka_sekcja .sg_matt_wrapper .sg_matt_box {
    width: 100%;
    min-width: unset;
    max-width: unset;
    flex: unset;
}

#sg_product_card .szeroka_sekcja .sg_matt_wrapper .sg_matt_box img {
    aspect-ratio: unset;
}

#sg_product_card .szeroka_sekcja .sg_matt_wrapper .sg_matt_title {
    font-size: clamp(22px, 10vw, 52px);
    line-height: 1;
    padding: 40px;
    padding-bottom: 0;
}

#sg_product_card .szeroka_sekcja .sg_matt_wrapper .sg_matt_text {
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.2;
    padding: 40px;
    padding-top: 0;
    margin-top: 8px;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    #sg_product_card .szeroka_sekcja .sg_matt_wrapper .sg_matt_title,
    #sg_product_card .szeroka_sekcja .sg_matt_wrapper .sg_matt_text {
        padding: 20px;
        text-align: left;
    }
    #sg_product_card .szeroka_sekcja .sg_matt_wrapper .sg_matt_title {
        padding-bottom: 0;
    }
    #sg_product_card .szeroka_sekcja .sg_matt_wrapper .sg_matt_text {
        padding-top: 0;
        margin-top: 0;
    }
}