@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&family=DM+Mono:wght@400;500&display=swap');

.ss-widget, .ss-widget * { box-sizing: border-box; margin: 0; padding: 0; }

.ss-widget {
    font-family: 'Inter', system-ui, sans-serif;
    --ss-accent:        #6aaa43;
    --ss-accent-dark:   #4e8a2f;
    --ss-heading:       #ffffff;
    --ss-nav-normal:    rgba(255,255,255,0.35);
    --ss-nav-active:    #6aaa43;
    --ss-icon-color:    #6aaa43;
    --ss-icon-text:     rgba(255,255,255,0.70);
    --ss-desc:          rgba(255,255,255,0.60);
    --ss-bullet-dash:   #6aaa43;
    --ss-dim-label:     #6aaa43;
    --ss-dim-value:     #ffffff;
    --ss-dim-border:    rgba(255,255,255,0.15);
    --ss-cta-text:      #6aaa43;
    --ss-cta-border:    #6aaa43;
    --ss-cta-fill:      #6aaa43;
    --ss-cta-text-hover:#ffffff;
    --ss-img-bg:        #ffffff;
    --ss-img-padding:   0px;
    --ss-img-margin:    28px;
    --mono: 'DM Mono','Courier New',monospace;
    width: 100%;
    color: var(--ss-heading);
}

/* ══════════════════════════
   LAYOUT
══════════════════════════ */
.ss-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: start;
    /* punkt 6: usunięta kreska między kolumnami */
}

/* ══════════════════════════
   LEWA KOLUMNA
══════════════════════════ */
.ss-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ══════════════════════════
   SUWAK — 75% kolumny
   KLUCZOWE: etykiety MUSZĄ być dokładnie nad kropkami
══════════════════════════ */
.ss-slider-wrap {
    width: 75%;
    padding: 20px 0 0;
    --ss-progress: 0%;
    --ss-count: 5;
    position: relative;
    user-select: none;
}

/* Track najpierw — żebyśmy wiedzieli gdzie są kropki */
.ss-track-line {
    position: relative;
    height: 26px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.ss-track-bg {
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 2px;
    background: rgba(255,255,255,0.12);
    transform: translateY(-50%);
    pointer-events: none;
}
.ss-track-progress {
    position: absolute;
    left: 0; top: 50%;
    height: 2px;
    width: var(--ss-progress, 0%);
    background: linear-gradient(90deg, var(--ss-accent-dark), var(--ss-accent));
    box-shadow: 0 0 8px rgba(106,170,67,.45);
    transform: translateY(-50%);
    transition: width .28s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.ss-dot {
    position: absolute;
    top: 50%;
    width: 10px; height: 10px;
    border: 2px solid rgba(255,255,255,.22);
    background: #1a1d1d;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    z-index: 1;
}
.ss-dot.active {
    border-color: var(--ss-accent);
    background: var(--ss-accent);
    box-shadow: 0 0 0 4px rgba(106,170,67,.18), 0 0 14px rgba(106,170,67,.4);
}
.ss-handle {
    position: absolute;
    top: 50%;
    width: 26px; height: 26px;
    border: 2px solid var(--ss-accent);
    border-radius: 50%;
    background: radial-gradient(circle, var(--ss-accent) 0 30%, #151818 32%);
    box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 0 16px rgba(106,170,67,.35);
    transform: translate(-50%, -50%);
    transition: left .28s cubic-bezier(.4,0,.2,1);
    z-index: 3;
    cursor: grab;
    touch-action: none;
}
.ss-handle:active { cursor: grabbing; }
.ss-handle::before, .ss-handle::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-color: var(--ss-accent);
    border-style: solid;
}
.ss-handle::before { left: -8px; top: -8px; border-width: 2px 0 0 2px; }
.ss-handle::after  { right: -8px; bottom: -8px; border-width: 0 2px 2px 0; }

/*
   ETYKIETY — pozycjonowane ABSOLUTNIE nad track
   każda etykieta ma left: X% identyczne jak kropka
   i transform: translateX(-50%) żeby była wyśrodkowana nad kropką
*/
.ss-nav-labels {
    position: relative;
    height: 60px;
    margin-bottom: 14px;  /* wyraźny odstęp między etykietami a track */
}
.ss-nav-btn {
    position: absolute;
    bottom: 0;           /* przylegają do dołu = bezpośrednio nad track */
    transform: translateX(-50%);
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--ss-nav-normal);
    transition: color .2s;
    white-space: nowrap;
    text-align: center;
}
.ss-nav-btn:hover  { color: rgba(255,255,255,0.70); }
.ss-nav-btn.active { color: var(--ss-nav-active); }

.ss-nav-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    line-height: 1.2;
}
.ss-nav-area {
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.2;
}

/* ── 2+3. ZDJĘCIE — padding, margin od suwaka ── */
.ss-image-wrap {
    width: 100%;
    margin-top: var(--ss-img-margin);   /* punkt 3: odstęp suwak → zdjęcie */
    padding: var(--ss-img-padding);     /* punkt 2: dopełnienie zdjęcia */
}
.ss-image-stage {
    width: 100%;
    background: var(--ss-img-bg);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    overflow: hidden;
}
.ss-slide { display: none; }
.ss-slide.active { display: block; line-height: 0; }
.ss-slide img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    display: block;
    object-fit: unset !important;
}
.ss-slide-placeholder {
    padding: 60px 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.2);
}
.ss-slide-placeholder svg { width: 72px; height: 72px; }

/* ── FEATURES BAR ── */
.ss-features {
    width: 75%;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 16px 0 20px;
}
.ss-feat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    border-right: 1px solid rgba(255,255,255,.08);
}
.ss-feat:last-child { border-right: none; }
.ss-feat-icon {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ss-icon-color);
    overflow: hidden;
}
.ss-feat-icon svg,
.ss-widget .ss-feat-icon svg {
    width: 20px !important; height: 20px !important;
    max-width: 20px !important; max-height: 20px !important;
    min-width: 20px !important; min-height: 20px !important;
    fill: var(--ss-icon-color) !important;
    display: block !important;
}
.ss-feat-text { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.ss-feat-line1 { font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ss-icon-text); line-height: 1.3; }
.ss-feat-line2 { font-size: 9px; color: var(--ss-desc); line-height: 1.3; }

/* ══════════════════════════
   PRAWA KOLUMNA — bez border-left
══════════════════════════ */
.ss-right {
    /* punkt 6: brak border-left */
    position: relative;
}

.ss-info {
    display: none;
    flex-direction: column;
    padding: 20px 28px 24px;
    position: relative;
}
.ss-info.active { display: flex; }

/* narożniki zielone */
.ss-info::before, .ss-info::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border-color: var(--ss-accent);
    border-style: solid;
    opacity: .9;
    pointer-events: none;
}
.ss-info::before { top: 18px; left: 18px; border-width: 3px 0 0 3px; }
.ss-info::after  { top: 18px; right: 18px; border-width: 3px 3px 0 0; }

/* punkt 5: nazwa lewa, metraż prawa — na jednym poziomie */
.ss-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 24px 0 18px;
}
.ss-box-name {
    font-size: clamp(32px, 3.2vw, 50px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--ss-heading);
    text-transform: uppercase;
    flex: 1;
    min-width: 0;
    text-align: left;
    /* line-height:1 może dawać złudzenie — wyrównanie przez padding */
    padding-top: 4px;
}
.ss-area-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-family: var(--mono);
    font-size: 17px;
    font-weight: 500;
    color: var(--ss-accent);
    border: 1px solid var(--ss-accent);
    white-space: nowrap;
    flex-shrink: 0;
    /* wyrównanie względem nazwy — self center */
    align-self: center;
}
.ss-area-tag::before {
    content: ''; position: absolute;
    top: -4px; left: -4px; width: 8px; height: 8px;
    border-top: 2px solid var(--ss-accent); border-left: 2px solid var(--ss-accent);
}
.ss-area-tag::after {
    content: ''; position: absolute;
    bottom: -4px; right: -4px; width: 8px; height: 8px;
    border-bottom: 2px solid var(--ss-accent); border-right: 2px solid var(--ss-accent);
}

/* Cena */
.ss-price-block {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.ss-netto { font-size: 28px; font-weight: 900; color: var(--ss-heading); letter-spacing: -.5px; line-height: 1; }
.ss-netto small { font-size: 14px; font-weight: 400; color: var(--ss-desc); letter-spacing: 0; }
.ss-brutto { font-size: 12px; color: var(--ss-desc); margin-top: 4px; }

/* Opis */
.ss-desc-text {
    font-size: 13px; line-height: 1.75;
    color: var(--ss-desc); margin-bottom: 14px;
}

/* Bullets */
ul.ss-bullets, .ss-widget ul.ss-bullets {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 0 !important;   /* punkt 4: margines między bullets a wymiarami — przez ss-dims-cta padding-top */
    display: flex; flex-direction: column; gap: 7px;
}
ul.ss-bullets li, .ss-widget ul.ss-bullets li {
    list-style: none !important;
    display: flex !important; align-items: baseline;
    gap: 10px; font-size: 13px; line-height: 1.5;
    color: var(--ss-desc); padding: 0 !important; margin: 0 !important;
}
ul.ss-bullets li::before, ul.ss-bullets li::after { display: none !important; content: none !important; }
.ss-bullet-dash { color: var(--ss-bullet-dash); font-size: 14px; font-weight: 700; flex-shrink: 0; line-height: 1.3; }

/* punkt 4: odstęp między bullets a wymiarami */
.ss-dims-cta {
    margin-top: 24px;    /* ← odstęp od bullets */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Wymiary */
.ss-dims { display: flex; gap: 0; width: 100%; }
.ss-dim {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; gap: 5px;
    background: rgba(255,255,255,.04);
    padding: 12px 8px;
    border: 1px solid var(--ss-dim-border);
    border-right-width: 0;
    text-align: center;
}
.ss-dim:last-child { border-right-width: 1px; }
.ss-dim-label { font-size: 8px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ss-dim-label); }
.ss-dim-value { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ss-dim-value); }
.ss-dim-value span { font-size: 11px; font-weight: 400; color: var(--ss-desc); margin-left: 2px; }

/* CTA */
.ss-cta {
    display: flex; width: 100%;
    align-items: center; justify-content: space-between;
    gap: 16px; padding: 15px 20px;
    text-decoration: none !important;
    color: var(--ss-cta-text) !important;
    border: 2px solid var(--ss-cta-border);
    position: relative; overflow: hidden;
    transition: color .3s ease; cursor: pointer;
}
.ss-cta::before {
    content: ''; position: absolute; inset: 0;
    background: var(--ss-cta-fill);
    transform: translateX(101%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    z-index: 0;
}
.ss-cta:hover::before { transform: translateX(0); }
.ss-cta:hover { color: var(--ss-cta-text-hover) !important; text-decoration: none !important; }
.ss-cta-text { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; position: relative; z-index: 1; }
.ss-cta-arrow { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ss-cta-arrow svg { width: 13px; height: 13px; display: block; }
.ss-cta:hover .ss-cta-arrow svg { animation: ss-arrow-pop .26s ease forwards; }
@keyframes ss-arrow-pop {
    0%   { opacity:0; transform:translate(-4px,4px); }
    100% { opacity:1; transform:translate(0,0); }
}

/* ══════════════════════════
   MOBILE
══════════════════════════ */
@media (max-width: 900px) {
    .ss-layout { grid-template-columns: 1fr; }
    .ss-slider-wrap { width: 88%; }
    .ss-features { width: 88%; }
    .ss-right { padding-top: 8px; }
    .ss-info { padding: 22px 18px 20px; }
    .ss-info::before, .ss-info::after { display: none; }
    .ss-box-name { font-size: 28px; letter-spacing: -1px; }
    .ss-netto { font-size: 22px; }
}
@media (max-width: 480px) {
    .ss-slider-wrap { width: 92%; }
    .ss-features { width: 92%; }
    .ss-box-name { font-size: 24px; }
    .ss-nav-name { font-size: 9px; }
}
