/* SPAMEL rich content — independently scoped reusable template */

.spamel-rc {
    --navy: #092b67;
    --blue: #1267c6;
    --red: #f12937;
    --ink: #193252;
    --muted: #64758d;
    --pale: #f4f7fb;
    --line: #e4ebf3;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    color: var(--ink);
    font: 400 16px/1.55 Arial,Helvetica,sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

.spamel-rc *, .spamel-rc *:before,.spamel-rc *:after {
    box-sizing: border-box;
}

.spamel-rc img {
    max-width: 100%;
    display: block;
}

.spamel-rc button {
    font: inherit;
}

.spamel-rc .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.spamel-rc .hero {
    position: relative;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    min-height: 490px;
    background: linear-gradient(110deg,#eaf3ff 0%,#fff 48%);
    overflow: hidden;
}

.spamel-rc .hero:before {
    content: "";
    position: absolute;
    width: 190px;
    height: 620px;
    top: -160px;
    left: -150px;
    background: linear-gradient(130deg,#0064b7,#59a8ec);
    transform: rotate(28deg);
}

.spamel-rc .hero:after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: 25px;
    width: 160px;
    height: 13px;
    background: var(--red);
    transform: rotate(-52deg);
}

.spamel-rc .hero-photo {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 25px 14px 25px 34px;
}

.spamel-rc .hero-photo img {
    width: 100%;
    max-width: 515px;
    filter: drop-shadow(0 23px 27px rgba(16,53,95,.1));
}

.spamel-rc .hero-content {
    padding: 36px 38px 36px 14px;
    position: relative;
    z-index: 1;
}

.spamel-rc .brand {
    width: 258px;
    max-width: 75%;
    height: auto;
    margin-bottom: 25px;
}

.spamel-rc .eyebrow {
    font-size: 19px;
    color: #8998ac;
    font-weight: 700;
    letter-spacing: .05em;
}

.spamel-rc h1 {
    font-size: clamp(27px,3.7vw,45px);
    letter-spacing: -.035em;
    line-height: 1.09;
    color: var(--navy);
    margin: 4px 0;
}

.spamel-rc .sku {
    font-size: clamp(19px,2.2vw,27px);
    font-weight: 800;
    color: #b1becd;
    margin: 0 0 23px;
}

.spamel-rc .badges {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 7px;
    margin: 0 0 23px;
}

.spamel-rc .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #e7ebf3;
    border-radius: 11px;
    background: #f8fafd;
    padding: 11px 5px;
    font-size: 12px;
    color: #17345f;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.spamel-rc .badge b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #126de2;
    color: #fff;
    flex: none;
    font-size: 13px;
}

.spamel-rc .badge:first-child b {
    background: var(--red);
}

.spamel-rc .intro {
    margin: 0;
    color: #31455f;
    font-size: 15px;
    max-width: 590px;
}

.spamel-rc .section {
    background: var(--pale);
    margin: 16px 18px;
    padding: 25px 22px;
    border-radius: 12px;
}

.spamel-rc h2 {
    color: var(--navy);
    font-size: clamp(23px,2.6vw,30px);
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 0 0 25px;
}

.spamel-rc h2:after {
    content: "";
    display: block;
    width: 43px;
    height: 3px;
    background: var(--red);
    margin-top: 7px;
}

.spamel-rc .features {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 13px;
}

.spamel-rc .feature {
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    min-height: 150px;
    padding: 18px 9px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.38;
    color: var(--navy);
}

.spamel-rc .feature svg {
    height: 43px;
    width: 43px;
    fill: none;
    stroke: #092b67;
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.spamel-rc .feature .accent svg {
    stroke: var(--red);
}

.spamel-rc .notice {
    display: flex;
    gap: 11px;
    align-items: center;
    background: #e3f0ff;
    border-radius: 9px;
    margin-top: 12px;
    padding: 13px 15px;
    font-size: 13px;
    color: var(--navy);
}

.spamel-rc .notice strong {
    background: #0b71df;
    color: white;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    flex: none;
    font-style: normal;
    font-size: 16px;
}

.spamel-rc .gallery {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 13px;
}

.spamel-rc .gallery .gallery-item {
    cursor: pointer;
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 10px;
    color: var(--navy);
    transition: transform .15s,box-shadow .15s;
    text-align: center;
}

.spamel-rc .gallery img {
    aspect-ratio: 1;
    object-fit: contain;
    width: 100%;
    margin: 0 auto 10px;
}

.spamel-rc .gallery span {
    font-size: 13px;
}

.spamel-rc .spec-layout {
    display: grid;
    grid-template-columns: minmax(0,1.7fr) minmax(0,.8fr);
    gap: 24px;
    align-items: center;
}

.spamel-rc table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    line-height: 1.36;
}

.spamel-rc tr:nth-child(odd) {
    background: #e8eef5;
}

.spamel-rc tr:nth-child(even) {
    background: #f9fbfd;
}

.spamel-rc td {
    padding: 9px 13px;
    border: 0;
}

.spamel-rc td:last-child {
    width: 32%;
    font-weight: 600;
    white-space: nowrap;
}

.spamel-rc .spec-visual {
    opacity: .3;
    mix-blend-mode: multiply;
    max-height: 340px;
    width: 100%;
    object-fit: contain;
}

.spamel-rc .about {
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: center;
    gap: 28px;
    min-height: 160px;
}

.spamel-rc .about img {
    width: 225px;
}

.spamel-rc .about p {
    font-size: 15px;
    margin: 0;
    border-left: 1px solid #bdc9d9;
    padding-left: 29px;
}

@media (max-width:900px) {
    .spamel-rc .hero {
        grid-template-columns: 43% 57%;
        min-height: 390px;
    }

    .spamel-rc .hero-content {
        padding: 25px 20px 25px 0;
    }

    .spamel-rc .badges {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .spamel-rc .feature {
        font-size: 12px;
    }

    .spamel-rc .section {
        padding: 22px 18px;
    }

    .spamel-rc .about {
        grid-template-columns: 190px 1fr;
    }
}

@media (max-width:640px) {
    .spamel-rc {
        font-size: 14px;
    }

    .spamel-rc .hero {
        grid-template-columns: 1fr;
    }

    .spamel-rc .hero-photo {
        padding: 20px 45px 0;
    }

    .spamel-rc .hero-photo img {
        max-width: 400px;
    }

    .spamel-rc .hero-content {
        padding: 15px 22px 28px;
    }

    .spamel-rc .brand {
        width: 190px;
        margin-bottom: 14px;
    }

    .spamel-rc .eyebrow {
        font-size: 15px;
    }

    .spamel-rc h1 {
        font-size: 31px;
    }

    .spamel-rc .sku {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .spamel-rc .badges {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
        margin-bottom: 16px;
    }

    .spamel-rc .intro {
        font-size: 14px;
    }

    .spamel-rc .section {
        margin: 12px 10px;
        padding: 20px 14px;
    }

    .spamel-rc h2 {
        font-size: 23px;
        margin-bottom: 19px;
    }

    .spamel-rc .features {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px;
    }

    .spamel-rc .feature {
        min-height: 128px;
        font-size: 13px;
    }

    .spamel-rc .notice {
        align-items: flex-start;
    }

    .spamel-rc .gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .spamel-rc .gallery .gallery-item {
        padding: 9px;
    }

    .spamel-rc .spec-layout {
        grid-template-columns: 1fr;
    }

    .spamel-rc .spec-visual {
        display: none;
    }

    .spamel-rc table {
        font-size: 12px;
    }

    .spamel-rc td {
        padding: 9px 7px;
        overflow-wrap: anywhere;
    }

    .spamel-rc td:last-child {
        width: 34%;
        white-space: normal;
    }

    .spamel-rc .about {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .spamel-rc .about img {
        width: 190px;
    }

    .spamel-rc .about p {
        border-left: 0;
        padding: 0;
        font-size: 14px;
    }
}

@media (max-width:360px) {
    .spamel-rc h1 {
        font-size: 26px;
    }

    .spamel-rc .badge {
        font-size: 11px;
    }

    .spamel-rc .features {
        gap: 7px;
    }
}

/* Zdjęcie zachowuje oryginalne proporcje – bez rozciągania, także w osadzeniu. */

.spamel-rc .hero-photo {
    min-width: 0;
    min-height: 0;
    align-self: center;
    overflow: visible;
}

.spamel-rc .hero-photo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 455px !important;
    aspect-ratio: 1170/1345 !important;
    object-fit: contain !important;
    margin-inline: auto;
    flex: none;
}

.spamel-rc .gallery .gallery-item {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 10px;
    color: var(--navy);
    text-align: center;
    cursor: default;
}

.spamel-rc .gallery .gallery-item img {
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

@media (max-width:900px) {
    .spamel-rc .hero-photo img {
        max-height: 390px !important;
    }
}

@media (max-width:640px) {
    .spamel-rc .hero-photo img {
        max-height: 360px !important;
    }
}

/* Logo producenta: zachowaj proporcje oryginalnego pliku 768 x 192. */

.spamel-rc .about img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto !important;
    aspect-ratio: 4 / 1;
    object-fit: contain;
}

.spamel-rc .brand {
    height: auto !important;
    aspect-ratio: auto;
    object-fit: contain;
}

@media (max-width:640px) {
    .spamel-rc .about img {
        max-width: 220px;
    }
}

/* Ulepszona sekcja najważniejszych cech */

.spamel-rc .features {
    align-items: stretch;
}

.spamel-rc .feature {
    min-height: 172px;
    padding: 20px 16px 18px;
    gap: 10px;
    justify-content: flex-start;
    box-shadow: 0 6px 16px rgba(12,43,92,.04);
}

.spamel-rc .feature svg {
    height: 46px;
    width: 46px;
    margin-top: 4px;
}

.spamel-rc .feature-label {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #6d7e95;
    min-height: 32px;
}

.spamel-rc .feature-value {
    display: block;
    font-size: 19px;
    line-height: 1.24;
    font-weight: 800;
    color: var(--navy);
    max-width: 260px;
}

.spamel-rc .notice b {
    color: var(--navy);
}

@media (max-width:900px) {
    .spamel-rc .feature {
        min-height: 165px;
        padding: 18px 12px;
    }

    .spamel-rc .feature-label {
        font-size: 12px;
    }

    .spamel-rc .feature-value {
        font-size: 17px;
    }
}

@media (max-width:640px) {
    .spamel-rc .feature {
        min-height: 148px;
        padding: 16px 10px;
    }

    .spamel-rc .feature-label {
        min-height: auto;
        font-size: 11px;
    }

    .spamel-rc .feature-value {
        font-size: 16px;
        max-width: none;
    }

    .spamel-rc .notice span {
        line-height: 1.5;
    }
}

/* Galeria bez podpisów */

.spamel-rc .gallery img {
    margin-bottom: 0;
}
