/* ==========================================================================
   1. CZCIONKI I PODSTAWOWE REGULACJE
   ========================================================================== */
@font-face {
    font-family: 'Futura-Book';
    src:url('../../../fonts/ParaType-Futura-PT-Book.otf');
    src:url('../../../fonts/ParaType-Futura-PT-Book.ttf');
}
@font-face {
    font-family: 'Futura-Light';
    src:url('../../../fonts/ParaType-Futura-PT-Light.otf');
    src:url('../../../fonts/ParaType-Futura-PT-Light.ttf');
}

body #container-rebranding {
    font-family: 'Futura-Book';
    margin: 0 auto;
    margin-bottom: -50px;
	margin-top:0px !important;
}

#container-rebranding h1, h2, h3 { text-transform: none; }
#container-rebranding h1 { font-size: 65px; line-height: 65px; }
#container-rebranding h2 { font-size: 55px; line-height: 60px; }
#container-rebranding h3 { font-size: 30px; }
#container-rebranding p, .row > .text-section { font-size: 16px; }

/* ==========================================================================
   2. OGÓLNE REGUŁY DLA WIERSZY (ORYGINALNE)
   ========================================================================== */
.row {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

.row > img, .row > picture > img {
    width: 100%;
    display: block;
}

.semi-section, .tres-section, .five-section {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    padding: 0 8%;
}

.tres-section { width: 33.33%; padding: 0 2.5%; }

.five-section {
    display: flex;
    flex-direction: column;
    font-family: 'Futura-Light';
    align-items: center;
    position: relative;
    width: 20%;
    padding: 0 2.5%;
    margin: 200px auto;
}

.five-section > div {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 90px;
    width: 200px;
    height: 200px;
    border: 2px #c6af75 solid;
}

.text-section {
    width: 100%;
    padding: 0 10%;
    margin: 100px auto;
    text-align: justify;
}

/* Pomocnicze */
.center { align-items: center; left: 50%; transform: translate(-50%, 0); }
.text-center { text-align: center; }
.white { color: #fff; }
.gold { color: #c6af75; }
.subtitle { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   3. SPECJALNA NAPRAWA DLA ROW 1 (TEKST LEWO, FOTO PRAWO)
   ========================================================================== */
#row1.row {
    display: flex !important;
    flex-direction: row-reverse !important; 
    flex-wrap: wrap !important;
    background-color: #0c1524;
    height: auto !important;
    min-height: 400px;
}

#row1 picture, #row1 .semi-section {
    position: relative !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

#row1 .semi-section { padding: 60px 5% !important; justify-content: center !important; }
#row1 h1 { text-align: left !important; }

/* ==========================================================================
   4. NOWY PROJEKT ROW 2 (KARTY ROZWIĄZAŃ)
   ========================================================================== */
.rebranding-special-row { width: 90% !important; max-width: 1800px; z-index: 2; }
.mini-logo { width: 280px !important; margin-bottom: 20px; }
.header-content h2 { font-size: 42px !important; line-height: 1.2 !important; margin-bottom: 10px !important; color: #000; }
.solutions-container { display: flex; gap: 20px; width: 100%; margin-top: 40px; }

.solution-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    border: 1px solid rgba(198, 175, 117, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.solution-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.9); border-color: #c6af75; }
.solution-card.featured { background: rgba(12, 21, 36, 0.9); color: #fff; border: 1px solid #c6af75; }
.solution-card.featured h3 { color: #c6af75; }
.card-number { font-size: 50px; font-weight: 900; opacity: 0.1; position: absolute; top: -5px; right: 10px; }
.solution-card h3 { font-size: 20px !important; margin-bottom: 15px !important; font-weight: 600; text-transform: uppercase; }
.solution-card p { font-size: 14px !important; line-height: 1.6; margin: 0 !important; text-align: left !important; }
.brand-description { margin-top: 40px !important; font-size: 13px !important; max-width: 700px; opacity: 0.8; }

/* ==========================================================================
   5. SPECJALNA NAPRAWA DLA ROW 3A (ODWRÓCONY UKŁAD)
   ========================================================================== */
#row3a.row {
    display: flex !important;
    flex-direction: row-reverse !important;
    flex-wrap: wrap !important;
    background-color: #0c1524;
    height: auto !important;
    position: relative !important;
}

#row3a picture, #row3a .tres-section {
    position: relative !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

#row3a .tres-section { padding: 60px 8% !important; justify-content: center !important; }
#row3a picture img { width: 100% !important; height: 100% !important; object-fit: cover; }

/* ==========================================================================
   6. WYJĄTKI DLA POZOSTAŁYCH WIERSZY
   ========================================================================== */
#row2 h2, #row4 h2 { font-size: 65px; }
#row2 p { text-align: center; }
#row2 .semi-section { width: 85%; }
#row2 .semi-section img { width: 25%; margin: 80px 0; }

#row3 > img, #row3 > picture > img { width: 67%; float: right; }
#row3 .tres-section { background-color: #0c1524; padding: 0 7.5%; }
#row3 .tres-section img { width: 35%; margin-top: 45px; margin-bottom: 15px; }

#row4 { padding: 80px 4% !important; }
#row4 .tres-section { position: relative; }
#row4 .text-section { margin-top: 40px; text-align: center; }

#row5 .semi-section { top: -7%; padding-left: 10%; }
#row5 .semi-section:last-child { top: 2%; left: 45%; padding: 0 6%; }
#row5 .semi-section img { margin-bottom: 20px; width: 90%; }

#row6 { display: flex; background-color: #0c1524; padding: 0 5% !important; }

#row7 .semi-section { left: 4%; }
#row7 h2 { font-size: 65px; line-height: normal; margin: 0; }

#row8 { display: flex; }
#row8 .tres-section { justify-content: space-between; position: relative; padding: 100px 5%; height: auto; }
#row8 .tres-section:nth-child(1) { background-color: #323963; }
#row8 .tres-section:nth-child(2) { background-color: #c6af75; }
#row8 .tres-section:nth-child(3) { background-color: #e7e7e7; }

#row10 .semi-section { top: 9%; }
#row11 { display: flex; background-color: #0c1524; padding: 0 5% !important; }

/* ==========================================================================
   7. RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
    #row1.row, #row3a.row { flex-direction: column !important; }
    #row1 picture, #row1 .semi-section, #row3a picture, #row3a .tres-section {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #row1 .semi-section, #row3a .tres-section { padding: 40px 10% !important; text-align: center !important; }
    #row1 h1 { text-align: center !important; }

    /* Row 2 Mobile */
    .solutions-container { flex-direction: column; }
    #row2 .semi-section { width: 100% !important; padding: 50px 5% !important; position: relative !important; height: auto !important; }

    /* Oryginalne mobile reszta */
    .semi-section, .tres-section { width: 100%; height: 100%; display: flex; padding: 0 10%; }
    #row5 .semi-section { height: 50%; left: 0 !important; }
    #row5 .semi-section:last-child { top: 48%; }
}

@media (max-width: 1000px) {
    #row8 { flex-direction: column; }
    #row8 .tres-section { width: 100%; height: 170px; padding: 50px 13%; }
    .open-vip { height: auto !important; }
}

@media (max-width: 650px) {
    #row1 .semi-section, #row2 .semi-section, #row3 .tres-section, #row10 .semi-section {
        padding: 18px 6% !important;
    }
}

/* ==========================================================================
   ROW 3B - ZDJĘCIE PO LEWEJ, TEKST PO PRAWEJ
   ========================================================================== */
#row3b.row {
    display: flex !important;
    flex-direction: row !important; /* Wymusza standardową kolejność */
    flex-wrap: wrap !important;
    background-color: #0c1524 !important; /* Ciemne tło dla spójności */
    position: relative !important;
    height: auto !important;
    min-height: 500px;
    align-items: stretch !important; /* Rozciąga zdjęcie i tekst do tej samej wysokości */
}

/* Obrazek po lewej */
#row3b picture {
    position: relative !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    order: 1 !important; /* Pierwszy w kolejności */
}

#row3b picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Wypełnia połowę bez deformacji */
    display: block !important;
}

/* Tekst po prawej */
#row3b .tres-section {
    position: relative !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 60px 7% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    order: 2 !important; /* Drugi w kolejności */
    background: transparent !important;
}

#row3b h2 {
    margin-bottom: 20px !important;
    font-size: 45px !important;
    line-height: 1.2 !important;
}

#row3b p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* Responsywność */
@media (max-width: 900px) {
    #row3b.row {
        flex-direction: column !important;
    }
    #row3b picture, 
    #row3b .tres-section {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #row3b picture { height: 350px !important; }
    #row3b .tres-section { padding: 40px 10% !important; text-align: center !important; }
    #row3b p { text-align: center !important; }
}

/* ==========================================================================
   NOWOCZESNA SEKCJA PRODUKCYJNA (ROW-PRODUCTION)
   ========================================================================== */
#row-production-options {
    background-color: #f9f9f9;
    padding: 80px 0 !important;
    display: block !important;
    height: auto !important;
}

.production-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.production-header h2 {
    font-size: 38px !important;
    margin-bottom: 15px !important;
    color: #0c1524;
}

/* Siatka możliwości */
.capabilities-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 60px 0;
}

.cap-item {
    flex: 1;
    background: #fff;
    padding: 40px 30px;
    border-bottom: 3px solid #e7e7e7;
    transition: all 0.3s ease;
    text-align: center;
}

.cap-item:hover {
    border-color: #c6af75;
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.cap-icon {
    font-size: 40px;
    font-weight: 900;
    color: #c6af75;
    opacity: 0.3;
    display: block;
    margin-bottom: 20px;
}

/* Ścieżki wdrożenia */
.pathways-box {
    background: #0c1524;
    padding: 50px;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 50px;
}

.pathways-box h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 40px !important;
    font-size: 24px !important;
}

.paths-flex {
    display: flex;
    gap: 30px;
}

.path-card {
    flex: 1;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    position: relative;
}

.path-card.gold-border {
    border-color: #c6af75;
}

.path-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #c6af75;
    color: #0c1524;
    padding: 4px 10px;
    position: absolute;
    top: -10px;
    left: 20px;
    font-weight: bold;
}

.path-card h4 {
    color: #c6af75;
    font-size: 20px !important;
    margin-bottom: 15px !important;
}

.path-card p {
    font-size: 14px !important;
    color: #ccc;
    line-height: 1.6;
}

/* Przycisk CTA */
.cta-button-gold {
    display: inline-block;
    background: #c6af75;
    color: #0c1524;
    padding: 20px 40px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.cta-button-gold:hover {
    background: #0c1524;
    color: #c6af75;
    box-shadow: 0 10px 20px rgba(198, 175, 117, 0.3);
}

/* RWD */
@media (max-width: 900px) {
    .capabilities-grid, .paths-flex {
        flex-direction: column;
    }
    .production-header h2 { font-size: 28px !important; }
    .pathways-box { padding: 30px 20px; }
}

/* --- POPRAWKI PRODUKCJA V2 --- */
#row-production-v2 {
    background: #fff;
    padding: 100px 0 !important;
    text-align: center;
}

#row-production-v2 .content-wrapper { max-width: 900px; margin: 0 auto; padding: 0 20px; }

#row-production-v2 .main-header h2 { font-size: 32px !important; color: #111; letter-spacing: -1px; margin-bottom: 10px; }

#row-production-v2 .services-list {
    display: flex; justify-content: center; gap: 40px; margin: 50px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 30px 0;
}

.service-point { font-size: 14px; font-weight: 600; text-transform: uppercase; color: #555; }
.service-point span { color: #c6af75; margin-right: 5px; }

.decision-box {
    display: flex; background: #0c1524; color: #fff; padding: 40px; border-radius: 2px; align-items: center; margin-bottom: 40px;
}

.path-item { flex: 1; text-align: left; }
.path-label { font-size: 10px; text-transform: uppercase; color: #c6af75; letter-spacing: 2px; margin-bottom: 10px; }
.path-item h3 { color: #fff; font-size: 20px !important; margin-bottom: 5px !important; }
.path-item p { font-size: 14px !important; color: #999 !important; margin: 0 !important; }

.path-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.1); margin: 0 40px; }

.btn-modern-gold {
    display: inline-block; padding: 18px 40px; background: #c6af75; color: #fff; font-weight: 700; text-decoration: none; border-radius: 2px; transition: 0.3s;
}
.btn-modern-gold:hover { background: #0c1524; transform: translateY(-3px); }

/* --- SEKCJA TELEGRAM --- */
#row-telegram {
    background: #f4f7f9; padding: 80px 0 !important; display: flex; justify-content: center;
}

.telegram-card {
    background: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); display: flex; overflow: hidden; max-width: 800px; width: 90%; border: 1px solid #e1e8ed;
}

.telegram-icon {
    background: #0088cc; color: #fff; width: 120px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.telegram-icon svg { width: 60px; height: 60px; }

.telegram-content { padding: 30px; flex-grow: 1; }
.telegram-content h2 { font-size: 26px !important; margin-bottom: 20px !important; color: #0c1524; }
.telegram-content h2 span { color: #0088cc; font-weight: 900; }

.telegram-benefits { list-style: none; padding: 0; margin-bottom: 30px;text-align: left; }
.telegram-benefits li { position: relative; padding-left: 25px; margin-bottom: 10px; font-size: 15px; color: #444; }
.telegram-benefits li:before { content: '✓'; position: absolute; left: 0; color: #0088cc; font-weight: bold; }

.telegram-button {
    display: inline-block; background: #0088cc; color: #fff; padding: 15px 30px; border-radius: 30px; text-decoration: none; font-weight: 700; transition: 0.3s;
}
.telegram-button:hover { background: #006699; box-shadow: 0 10px 20px rgba(0,136,204,0.3); }

.section-divider { border: 0; height: 1px; background: #eee; margin: 0; }

/* RWD */
@media (max-width: 768px) {
    .services-list, .decision-box, .telegram-card { flex-direction: column; text-align: center; }
    .path-divider { width: 80%; height: 1px; margin: 20px auto; }
    .path-item { text-align: center; }
    .telegram-icon { width: 100%; padding: 30px 0; }
}




/* ==========================================================================
   SEKCJA ALTERNATYWY DLA SREBRA (MODERN STYLE)
   ========================================================================== */
#row-alternatives {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px;
}

#row-alternatives picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.alternatives-overlay {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1100px;
    padding: 60px 0;
}

.alt-header h2 {
    font-size: 36px !important;
    color: #fff;
    margin-bottom: 10px !important;
    letter-spacing: -0.5px;
}

.alt-cards-container {
    display: flex;
    gap: 30px;
    margin: 50px 0;
}

.alt-card {
    flex: 1;
    background: rgba(12, 21, 36, 0.8); /* Głęboki granat z przezroczystością */
    backdrop-filter: blur(15px); /* Efekt rozmycia szkła */
    padding: 40px;
    border: 1px solid rgba(198, 175, 117, 0.3);
    border-radius: 4px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.alt-card:hover {
    transform: translateY(-8px);
    border-color: #c6af75;
}

.alt-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #c6af75;
    color: #0c1524;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    text-transform: uppercase;
    border-radius: 20px;
}

.alt-card h3 {
    color: #c6af75;
    font-size: 24px !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
}

.alt-list {
    list-style: none;
    padding: 0;
}

.alt-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #c6af75;
}

.mini-hallmark {
    width: 80px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.small-text {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
    .alt-cards-container {
        flex-direction: column;
    }
    .alt-header h2 {
        font-size: 26px !important;
    }
    #row-alternatives {
        min-height: auto;
    }
}

/* ==========================================================================
   SEKCJA ALTERNATYWY DLA SREBRA - POPRAWIONA CZYTELNOŚĆ
   ========================================================================== */
#row-alternatives {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px;
}

#row-alternatives picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.alternatives-overlay {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1100px;
    padding: 60px 0;
}

/* POPRAWKA: Ciemniejszy kolor i delikatny cień dla nagłówków na jasnym tle */
.alt-header h2 {
    font-size: 38px !important;
    color: #0c1524 !important; /* Ciemny granat zamiast bieli */
    margin-bottom: 10px !important;
    letter-spacing: -0.5px;
    text-shadow: 0px 1px 2px rgba(255,255,255,0.8); /* Jasna poświata pod ciemnym tekstem */
}

.alt-header .subtitle.gold {
    color: #a68a44 !important; /* Nieco ciemniejsze złoto dla kontrastu */
    font-weight: 700;
    text-shadow: 0px 1px 1px rgba(255,255,255,1);
}

.alt-cards-container {
    display: flex;
    gap: 30px;
    margin: 50px 0;
}

/* KARTY: Pozostają ciemne, co zapewnia idealny kontrast dla treści wewnątrz */
.alt-card {
    flex: 1;
    background: rgba(12, 21, 36, 0.9) !important; /* Zwiększona nieprzezroczystość */
    backdrop-filter: blur(15px);
    padding: 40px;
    border: 1px solid rgba(198, 175, 117, 0.4);
    border-radius: 4px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.alt-card:hover {
    transform: translateY(-8px);
    border-color: #c6af75;
}

.alt-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #c6af75;
    color: #0c1524;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    text-transform: uppercase;
    border-radius: 2px;
}

.alt-card h3 {
    color: #c6af75;
    font-size: 24px !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
}

.alt-list {
    list-style: none;
    padding: 0;
}

.alt-list li {
    color: #fff !important; /* Czysta biel dla maksymalnego kontrastu wewnątrz karty */
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.alt-list li::before {
    content: '→'; 
    position: absolute;
    left: 0;
    color: #c6af75;
}

/* STOPKA: Ciemniejszy tekst na jasnym tle */
.alt-footer .small-text.gold {
    color: #0c1524 !important; /* Ciemny tekst w stopce */
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
}

.mini-hallmark {
    width: 80px;
    margin-bottom: 10px;
    filter: brightness(0.2); /* Przyciemnienie logotypu, aby był widoczny na jasnym tle */
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
    .alt-cards-container { flex-direction: column; }
    .alt-header h2 { font-size: 28px !important; }
}

/* Klasa kontenera (picture) */
.main-background-image {
    display: block !important;       /* Wymuś widoczność */
    width: 100%;
    height: 60vh;                    /* Wysokość to 60% wysokości ekranu (możesz dać np. 500px) */
    max-height: 600px;               /* Nigdy nie będzie wyższe niż 600px - to naprawia "duży odstęp" */
    overflow: hidden;                /* Wszystko co wystaje poza 600px jest ukrywane */
    position: relative;              /* Zostaje w normalnym przepływie strony */
    margin-bottom: 0;                /* Reset marginesów */
}

/* Samo zdjęcie wewnątrz */
.main-background-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;    /* KLUCZOWE: Obcina górę/dół zamiast spłaszczać zdjęcie */
    object-position: center center;  /* Centruje zdjęcie */
    display: block;
}

/* Opcjonalnie: Na bardzo dużych ekranach (np. TV) trzymaj rygor */
@media (min-width: 1920px) {
    .main-background-image {
        height: 500px; /* Sztywna wysokość na dużych ekranach */
    }
}

/* Klasa kontenera (picture) */
.main-background-image {
    display: block !important;       /* Wymuś widoczność */
    width: 100%;
    height: 60vh;                    /* Wysokość to 60% wysokości ekranu (możesz dać np. 500px) */
    max-height: 800px;               /* Nigdy nie będzie wyższe niż 600px - to naprawia "duży odstęp" */
    overflow: hidden;                /* Wszystko co wystaje poza 600px jest ukrywane */
    position: relative;              /* Zostaje w normalnym przepływie strony */
    margin-bottom: 0;                /* Reset marginesów */
}


/* Opcjonalnie: Na bardzo dużych ekranach (np. TV) trzymaj rygor */
@media (min-width: 1920px) {
    .main-background-image {
        height: 600px; /* Sztywna wysokość na dużych ekranach */
    }
}

/* 1. KONTENER GŁÓWNY */
/* Musi dopasować wysokość do treści (tekstu), a nie do zdjęcia */
#row2.row {
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 600px;             /* Minimalna wysokość startowa */
    padding: 0 !important;
    overflow: hidden;              /* Ukrywa ewentualne wystające elementy */
}

/* 2. ZDJĘCIE JAKO TŁO ABSOLUTNE */
/* Wyjmujemy zdjęcie z przepływu i każemy mu wypełnić 100% dostępnego miejsca pod tekstem */
#row2 .main-background-image {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;       /* KLUCZOWE: Rozciąga tło na całą wysokość, nawet jak tekstu jest dużo */
    z-index: 0;                    /* Warstwa pod spodem */
    margin: 0 !important;
}

#row2 .main-background-image img { 
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;  /* KLUCZOWE: Zdjęcie wypełni tło bez deformacji (obetnie boki, ale zakryje dół) */
    object-position: center top;   /* Zakotwiczamy górę zdjęcia, żeby logo było na ładnym tle */
    display: block;
}

/* 3. TREŚĆ (LOGO, TEKSTY, KARTY) */
/* Musi być 'relative', żeby leżeć NA zdjęciu i dyktować wysokość sekcji */
#row2 .semi-section {
    position: relative !important;
    z-index: 2;                    /* Warstwa nad zdjęciem */
    width: 100% !important;
    height: auto !important;
    padding: 80px 5% !important;   /* Dodajemy marginesy góra/dół, żeby treść miała oddech */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Opcjonalnie: poprawka dla kart, żeby nie dotykały samego dołu */
#row2 .solutions-container {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #container-rebranding h2 {
        font-size: 27px !important;
        line-height: 44px !important;
    }
} 

@media (max-width: 768px) {
    .cap-item {
     padding: 5px 0px;
    }
} 

@media (max-width: 768px) {
    .alt-list li {
     margin-bottom: 5px;
    }
} 

@media (max-width: 768px) {
    #row-production-options {
     padding: 20px 0 !important;
    }
} 

/* Responsywność dla sekcji #row10 - góry/usługi jubilerskie */
@media (max-width: 991px) {
    #row10 {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    #row10 picture {
        display: block;
        width: 100%;
        height: auto;
        position: relative;
    }

    #row10 picture img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    /* Resetowanie pozycjonowania tekstu na mobile */
    #row10 .semi-section {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        padding: 40px 20px !important;
        background: #fff;
        box-sizing: border-box;
    }
    
    #row10 h2 {
        margin-top: 0;
        font-size: 24px;
    }
}
/* ==========================================================================
   NAPRAWA ROW 10 (USŁUGI JUBILERSKIE) - WERSJA "TEKST NA ZDJĘCIU" DLA MOBILE
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. Ustawienie kontenera głównego */
    #row10.row {
        position: relative !important;
        display: block !important; /* Resetujemy ewentualny flex */
        /* Ustalamy sztywną wysokość na mobile, aby sekcja miała wymiar. 
           Możesz zmienić 600px na inną wartość, jeśli jest za wysoka/za niska */
        height: 600px !important; 
        min-height: 600px !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2. Zdjęcie jako tło absolutne rozciągnięte na cały kontener */
    #row10 picture,
    #row10 picture img {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        /* object-fit: cover jest KLUCZOWE - obcina boki zdjęcia, 
           ale wypełnia całą przestrzeń bez deformacji */
        object-fit: cover !important; 
        z-index: 1; /* Warstwa spodnia */
        display: block !important;
        float: none !important;
    }

    /* 3. Blok z tekstem nałożony na zdjęcie */
    #row10 .semi-section {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 2; /* Warstwa wierzchnia (nad zdjęciem) */
        
        /* Centrowanie tekstu w pionie i poziomie */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        
        padding: 20px 8% !important; /* Marginesy boczne, żeby tekst nie dotykał krawędzi */
        box-sizing: border-box !important;
        transform: none !important;

        /* OPCJONALNIE: Dodaj delikatne przyciemnienie tła pod samym tekstem, 
           jeśli biały tekst jest nieczytelny na jasnych partiach zdjęcia. 
           Jeśli nie chcesz przyciemnienia, usuń poniższą linijkę background. */
        background: rgba(0, 0, 0, 0.3) !important; 
    }

    /* 4. Wymuszenie białego koloru tekstu i wyśrodkowania */
    #row10 .semi-section h2,
    #row10 .semi-section p {
        color: #ffffff !important; /* Biały tekst */
        text-align: center !important; /* Wyśrodkowanie tekstu na mobile wygląda lepiej */
        text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Lekki cień dla lepszej czytelności */
    }
    
    #row10 .semi-section h2 {
        font-size: 34px !important; /* Dostosowanie wielkości nagłówka do mobile */
        line-height: 1.2 !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }
    
    #row10 .semi-section p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}