@font-face {
    font-family: 'Poppins';
    src: url('/files/descriptions/font/13/13365787/storage_app_opisy2_philips_2144858a_fonts/poppins_extralight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/files/descriptions/font/13/13365787/storage_app_opisy2_philips_2144858a_fonts/poppins_regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/files/descriptions/font/13/13365787/storage_app_opisy2_philips_2144858a_fonts/poppins_medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/files/descriptions/font/13/13365787/storage_app_opisy2_philips_2144858a_fonts/poppins_semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/files/descriptions/font/13/13365787/storage_app_opisy2_philips_2144858a_fonts/poppins_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

#sg_product_card {
    width: 100%;
    max-width: 1000px;
    background: #f9f8f6;
    color: #62524e;
    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 sup,
#sg_product_card sub {
    font-size: 0.6em;
}

/* ---------------- HERO (baner) ---------------- */

#sg_product_card .zdjecie-kontener .sg_hero {
    position: relative;
    color: #62524e;
    height: 410px;
    overflow: hidden;
}

#sg_product_card .sg_hero > picture {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 0;
    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 > img {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 180px;
    z-index: 2;
}

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

#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;
}

#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: 16px;
}

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

/* ---------------- Panele zdjęcie w tle + tekst (sg_other_features) ---------------- */

#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:first-of-type {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: none;
    z-index: 0;
}

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

#sg_product_card .sg_other_features_grid_item > picture img {
    right: 0;
    height: 100%;
    position: absolute;
}

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

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

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

/* Blok 1: s7, s8, s12, s2, s3, s4, s5, s6 */
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(1) .sg_other_features_grid_item_inner,
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(2) .sg_other_features_grid_item_inner,
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(3) .sg_other_features_grid_item_inner {
    width: 50%;
    margin-left: auto;
}

#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(2) .sg_other_features_grid_item_inner,
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(3) .sg_other_features_grid_item_inner,
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(5) .sg_other_features_grid_item_inner,
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(6) .sg_other_features_grid_item_inner,
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(8) .sg_other_features_grid_item_inner {
    color: #ffffff;
}

#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(4) .sg_other_features_grid_item_inner {
    width: 45%;
}

#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(5) .sg_other_features_grid_item_inner,
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(6) .sg_other_features_grid_item_inner {
    width: 50%;
    margin-left: auto;
}

#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(7) .sg_other_features_grid_item_inner,
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(8) .sg_other_features_grid_item_inner {
    width: 50%;
}

/* Odznaka "2,1 miliona pobrań" na panelu 8 (Dopasuj rutynę) */
#sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(8) > img:nth-of-type(2) {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: auto;
    z-index: 3;
}

/* Blok 2: s11, s19, s14 */
#sg_product_card .sg_card_content > .sg_other_features:nth-child(3) .sg_other_features_grid_item:nth-child(1) .sg_other_features_grid_item_inner {
    width: 50%;
    margin-left: auto;
}

#sg_product_card .sg_card_content > .sg_other_features:nth-child(3) .sg_other_features_grid_item:nth-child(2) .sg_other_features_grid_item_inner {
    width: 33.333%;
    margin-left: auto;
}

#sg_product_card .sg_card_content > .sg_other_features:nth-child(3) .sg_other_features_grid_item:nth-child(2) .sg_other_features_grid_item_inner .sg_other_features_grid_item_title {
    font-size: clamp(18px, 6vw, 36px);
    line-height: 1.2;
}

#sg_product_card .sg_card_content > .sg_other_features:nth-child(3) .sg_other_features_grid_item:nth-child(3) .sg_other_features_grid_item_inner {
    width: 45%;
    margin-left: auto;
}

@media (max-width: 767px) {
    #sg_product_card .sg_hero > picture img {
        right: unset;
        width: 100%;
        object-fit: cover;
        object-position: center -30px;
    }
    #sg_product_card .zdjecie-kontener .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_other_features_grid_item {
        height: unset;
    }

    #sg_product_card .sg_other_features_grid_item > img:first-of-type {
        inset: 0;
        object-fit: cover;
        object-position: left center;
        position: relative;
        width: 100%;
        height: 280px;
    }

    /* s2, s5, s6 w źródle mają object-position:right center (nie left) na mobile */
    #sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(4) > img:first-of-type,
    #sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(7) > img:first-of-type,
    #sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(8) > img:first-of-type {
        object-position: right center;
    }

    #sg_product_card .sg_other_features_grid_item > picture {
        position: relative;
        width: 100%;
        height: 280px;
        left: 0;
        transform: none;
    }

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

    #sg_product_card .sg_other_features_grid_item_inner,
    #sg_product_card .sg_card_content > .sg_other_features .sg_other_features_grid_item_inner {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 40px 20px;
        color: #62524e !important;
    }

    #sg_product_card .sg_card_content > .sg_other_features:nth-child(1) .sg_other_features_grid_item:nth-child(8) > img:nth-of-type(2) {
        top: 130px;
        right: 20px;
        width: 90px;
    }
}

/* ---------------- Panele z diagramem (harmonogram, dopasowanie) ---------------- */

#sg_product_card .sg_chess {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-radius: 0;
    padding: 40px;
    color: #62524e;
}

#sg_product_card .sg_chess:not(.sg_chess--reversed) .sg_chess_item {
    flex-direction: column;
}

#sg_product_card .sg_chess:not(.sg_chess--reversed) .sg_chess_item .sg_chess_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
    padding-bottom: 0;
}

#sg_product_card .sg_chess:not(.sg_chess--reversed) .sg_chess_item .sg_chess_content .sg_chess_header {
    flex: 4;
}

#sg_product_card .sg_chess:not(.sg_chess--reversed) .sg_chess_item .sg_chess_content .sg_chess_text {
    flex: 3;
}

#sg_product_card .sg_chess:not(.sg_chess--reversed) .sg_chess_item .sg_chess_image {
    flex: unset;
    min-width: unset;
    max-width: unset;
}

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

#sg_product_card .sg_chess--reversed .sg_chess_item {
    flex-direction: row;
}

#sg_product_card .sg_chess_content {
    flex: 3;
}
#sg_product_card .sg_chess_image {
    flex: 4;
}

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

#sg_product_card .sg_chess_title {
    color: #62524e;
    text-transform: uppercase;
    font-weight: 200;
    font-size: clamp(22px, 10vw, 52px);
    line-height: 1;
    margin-bottom: 16px;
}

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

@media (max-width: 767px) {
    #sg_product_card .sg_chess {
        padding: 20px;
    }

    #sg_product_card .sg_chess--reversed .sg_chess_item,
    #sg_product_card .sg_chess_item {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    #sg_product_card .sg_chess_image {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }

    #sg_product_card .sg_chess:not(.sg_chess--reversed) .sg_chess_item .sg_chess_content {
        flex-direction: column;
        gap: 8px;
    }

    #sg_product_card .sg_card_content > .sg_other_features:nth-child(3) .sg_other_features_grid_item:nth-child(2) .sg_other_features_grid_item_inner .sg_other_features_grid_item_title {
        font-size: clamp(22px, 10vw, 52px);
        line-height: 1;
    }
}

/* ---------------- Bezpieczeństwo + przypisy ---------------- */

#sg_product_card .sg_card_content > .szeroka_sekcja:nth-child(5) {
    text-align: center;
    padding: 140px 80px;
}

#sg_product_card .sg_card_content > .szeroka_sekcja:nth-child(5) .sg_title {
    text-transform: uppercase;
    font-weight: 200;
    font-size: clamp(44px, 10vw, 84px);
    line-height: 1.1;
}

#sg_product_card .sg_card_content > .szeroka_sekcja:nth-child(5) .sg_center {
    font-weight: 600;
    font-size: clamp(16px, 3vw, 24px);
}

#sg_product_card .sg_card_content > .szeroka_sekcja:nth-child(6) {
    padding: 40px;
}

#sg_product_card .sg_card_content > .szeroka_sekcja:nth-child(6) .sg_center {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 767px) {
    #sg_product_card .sg_card_content > .szeroka_sekcja:nth-child(5) {
        padding: 120px 40px;
    }

    #sg_product_card .sg_card_content > .szeroka_sekcja:nth-child(6) {
        padding: 20px;
    }
}
