/* =========================================
   STYLE DODATKOWE DLA PODSTRON OCIEPLENIA I OGRZEWANIE
   Wprowadza unikalne układy graficzne, asymetrię, 
   pływające karty i osie czasu.
   ========================================= */

/* === 1. ASYMETRYCZNE KARTY (HOVER CARDS) - DLA OCIEPLEŃ === */
.asym-cards-section {
    padding: 6rem 2rem;
    background: #f8fafc;
    overflow: hidden;
}
.asym-cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center; /* Karty będą się różnie układać w pionie */
}
/* Środkowa karta jest lekko wysunięta w dół, tworząc asymetrię */
.asym-cards-grid .asym-card:nth-child(2) {
    transform: translateY(40px);
}
.asym-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.asym-card:hover {
    transform: translateY(-10px) !important; /* Nadpisuje asymetrię na hover */
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: var(--frame-color);
}
.asym-icon-wrap {
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: #111;
    transition: all 0.4s ease;
}
.asym-card:hover .asym-icon-wrap {
    background: var(--frame-color);
    transform: scale(1.1) rotate(5deg);
}
.asym-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
}
.asym-card p {
    color: #475569;
    line-height: 1.7;
    font-size: 1.05rem;
}
/* Dekoracyjny blob w tle karty */
.asym-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(203,251,36,0.3) 0%, rgba(203,251,36,0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.asym-card:hover::after {
    opacity: 1;
}

/* === 2. PŁYWAJĄCE STATYSTYKI WOKÓŁ ZDJĘCIA === */
.floating-showcase {
    max-width: 1200px;
    margin: 6rem auto;
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 0 2rem;
}
.floating-image-wrap {
    flex: 1;
    position: relative;
    border-radius: 40px;
}
.floating-main-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.float-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.float-badge.active {
    transform: translateY(0);
    opacity: 1;
}
.float-badge-icon {
    width: 45px;
    height: 45px;
    background: var(--frame-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}
.float-badge-text span.val {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #111;
    line-height: 1;
}
.float-badge-text span.lbl {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}
.float-1 { top: 10%; left: -10%; }
.float-2 { bottom: 15%; right: -10%; }

.floating-text-wrap {
    flex: 1;
}
.floating-text-wrap h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 25px;
    line-height: 1.2;
}
.floating-text-wrap p {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* === 3. INTERAKTYWNA OŚ CZASU (TIMELINE) - DLA OGRZEWANIA === */
.timeline-section {
    padding: 8rem 2rem;
    background: #111; /* Ciemne tło dla kontrastu */
    color: #fff;
}
.timeline-header {
    text-align: center;
    margin-bottom: 5rem;
}
.timeline-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
}
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
/* Pionowa linia */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}
.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--frame-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 6px rgba(203, 251, 36, 0.2);
    z-index: 2;
}
.timeline-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--frame-color);
    transform: scale(1.02);
}
.timeline-step {
    color: var(--frame-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}
.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
}
.timeline-content p {
    color: #94a3b8;
    line-height: 1.6;
}

/* === 4. DYNAMICZNE WSKAŹNIKI PORÓWNAWCZE === */
.comparison-bars-section {
    padding: 6rem 2rem;
    background: #ffffff;
}
.comp-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 60px;
}
.comp-header {
    text-align: center;
    margin-bottom: 50px;
}
.comp-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #111;
}
.comp-item {
    margin-bottom: 40px;
}
.comp-item:last-child { margin-bottom: 0; }
.comp-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #334155;
    font-size: 1.1rem;
}
.comp-bar-bg {
    width: 100%;
    height: 16px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.comp-bar-fill {
    height: 100%;
    background: #111;
    border-radius: 10px;
    width: 0; /* Animowane przez JS */
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.comp-bar-fill.highlight {
    background: var(--frame-color); /* Na zielono to co lepsze */
}

/* === RESPONSIVE OVERRIDES === */
@media (max-width: 1024px) {
    .asym-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .asym-cards-grid .asym-card:nth-child(2) { transform: translateY(0); } /* Reset asymetrii */
    .floating-showcase { flex-direction: column; gap: 4rem; }
    .float-1 { top: -20px; left: 10px; }
    .float-2 { bottom: -20px; right: 10px; }
}
@media (max-width: 768px) {
    .asym-cards-grid { grid-template-columns: 1fr; }
    .timeline-container::before { left: 30px; }
    .timeline-dot { left: 30px; }
    .timeline-item { flex-direction: column !important; align-items: flex-end; }
    .timeline-content { width: calc(100% - 60px); padding: 30px 20px; }
    .comp-wrapper { padding: 30px; }
}
