/**
 * Style dla bloku PT Quick Facts (Frontend - Nowoczesny Design z `.container`)
 */

.pt-custom-box {
    position: relative;
    overflow: visible; /* Zmienione z hidden na visible, żeby romb nie był ucinany */
    padding: 90px 0 90px 0; /* Zwiększony padding górny, aby zrobić miejsce na romb i treść */
    margin: 0;
    transition: background-color 0.3s ease;
}
.pt-custom-box::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -15px; /* Pozycjonowanie na samej górze ramki */
    transform: translateX(-50%) rotate(45deg);
    width: 30px;
    height: 30px;
    background: #1b2d42;
    border: 2px solid #ffffff;
    pointer-events: none;
    z-index: 20; /* Wyższy zindex, żeby był na wierzchu */
}
/* Motywy tekstowe */
.pt-custom-box.theme-light {
    color: #2e445c;
}
.pt-custom-box.theme-light .pt-eyebrow {
    color: #1b2d42;
}
.pt-custom-box.theme-light .pt-heading {
    color: #1b2d42;
}
.pt-custom-box.theme-light .pt-lead {
    color: #526071;
}
.pt-custom-box.theme-light .pt-item-row {
    background: #ffffff;
    border: 1px solid rgba(27, 45, 66, 0.06);
    box-shadow: 0 4px 20px rgba(27, 45, 66, 0.03);
}
.pt-custom-box.theme-light .pt-item-row:hover {
    border-color: rgba(27, 45, 66, 0.15);
    box-shadow: 0 8px 30px rgba(27, 45, 66, 0.06);
}
.pt-custom-box.theme-light .pt-item-icon-wrap {
    background: rgba(27, 45, 66, 0.04);
    color: #1b2d42;
}

.pt-custom-box.theme-dark {
    color: #ffffff;
}
.pt-custom-box.theme-dark .pt-eyebrow {
    color: #90caf9;
}
.pt-custom-box.theme-dark .pt-heading {
    color: #ffffff;
}
.pt-custom-box.theme-dark .pt-lead {
    color: rgba(255, 255, 255, 0.8);
}
.pt-custom-box.theme-dark .pt-item-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.pt-custom-box.theme-dark .pt-item-row:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.pt-custom-box.theme-dark .pt-item-icon-wrap {
    background: rgba(255, 255, 255, 0.08);
    color: #90caf9;
}

/* Nagłówki i Lead wyrównane do lewej */
.pt-box-header {
    text-align: center;
    margin-bottom: 20px;
}

.pt-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
    display: block;
}

.pt-heading {
    font-family: 'Lora', serif !important;
    font-weight: 600 !important;
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
}

.pt-lead {
    text-align: center;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    letter-spacing: 0.01em !important;
    font-weight: 400 !important;
    margin-bottom: 48px;
}

/* Lista / Tabela elementów (Nowoczesne karty wierszy) */
.pt-items-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pt-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(.16, 1, .3, 1);
}

.pt-item-label-group {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    flex: 1;
}

.pt-item-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pt-item-row:hover .pt-item-icon-wrap {
    transform: scale(1.08);
}

.pt-item-icon {
    font-size: 20px;
}

.pt-item-title {
    letter-spacing: -0.01em;
}

.pt-item-value {
    flex: 1.2;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.pt-item-value a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}
.pt-item-value a:hover {
    opacity: 0.7;
}


.pt-box-buttons {
	width:100%;
    display: flex;
    justify-content: center; 
    gap: 18px;
    margin-top: 48px;
}

.pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.35s cubic-bezier(.16, 1, .3, 1);
}

.pt-custom-box.theme-light .btn-primary {
    background: #1b2d42;
    color: #ffffff;
}
.pt-custom-box.theme-light .btn-primary:hover {
    background: #101d2a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(27, 45, 66, 0.06);
}
.pt-custom-box.theme-light .btn-outline {
    background: transparent;
    color: #1b2d42;
    border-color: #1b2d42;
}
.pt-custom-box.theme-light .btn-outline:hover {
    background: #1b2d42;
    color: #ffffff;
    transform: translateY(-2px);
}

.pt-custom-box.theme-dark .btn-primary {
    background: #ffffff;
    color: #1b2d42;
}
.pt-custom-box.theme-dark .btn-primary:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}
.pt-custom-box.theme-dark .btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.pt-custom-box.theme-dark .btn-outline:hover {
    background: #ffffff;
    color: #1b2d42;
    transform: translateY(-2px);
}

/* Responsywność */
@media (max-width: 992px) {
    .pt-custom-box {
        padding: 50px 0;
    }
    .pt-heading {
        font-size: 32px !important;
    }
    .pt-lead,
    .pt-item-value,
    .pt-item-label-group {
        font-size: 15px !important;
    }
    .pt-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }
    .pt-item-value {
        text-align: left;
        padding-left: 60px;
    }
    .pt-box-buttons {
        flex-direction: column;
        gap: 14px;
    }
    .pt-btn {
        width: 100%;
        box-sizing: border-box;
    }
}