/* --- KARTA GŁÓWNA --- */
.bps-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bps-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #d1d5da;
}

.bps-content {
    padding: 30px 30px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bps-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #24292e;
    margin: 0 0 25px;
    letter-spacing: -0.5px;
    text-align: center;
    line-height: 1.3;
}

.bps-title i {
    color: #0366d6;
    margin-right: 8px;
}

.bps-specs {
    width: 100%;
    margin-bottom: 20px;
}

.bps-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaecef;
    transition: opacity 0.3s;
}

.bps-row:last-child {
    border: none;
    margin-bottom: 0;
}

.bps-icon {
    width: 30px;
    text-align: center;
    color: #6a737d;
    margin-right: 15px;
    font-size: 1.1rem;
}

.bps-text {
    text-align: left;
    line-height: 1.4;
}

.bps-label {
    color: #586069;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.bps-val {
    color: #24292e;
    font-weight: 600;
    font-size: 1rem;
}

.bps-select,
.bps-input {
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    color: #24292e;
    padding: 0;
    margin: 0;
    width: 100%;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    height: 30px;
}

.bps-select:focus,
.bps-input:focus {
    border-bottom: 2px solid #0366d6;
}

.bps-input {
    border-bottom: 1px solid transparent;
}

.bps-input::placeholder {
    color: #d1d5da;
    font-weight: 400;
}

.bps-action {
    padding: 20px 30px 30px;
}

.bps-btn {
    display: inline-block;
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    line-height: 1;
    text-align: center;
    background-color: #24292e;
    color: #ffffff;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(27, 31, 35, 0.1);
    text-transform: none;
}

.bps-btn:hover {
    background-color: #0366d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 102, 214, 0.2);
    color: #fff;
}

.bps-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.bps-btn:disabled {
    background: #f6f8fa;
    color: #959da5;
    border-color: #e1e4e8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fence-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 41, 46, 0.6);
    z-index: 999999;
    backdrop-filter: blur(4px);
}

.fence-modal-content {
    width: 90%;
    max-width: 420px;
    margin: 8vh auto;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fence-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #959da5;
    z-index: 10;
    transition: color 0.2s;
}

.fence-close:hover {
    color: #24292e;
}

#fence-contact-form .bps-input-modal {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    background-color: #fafbfc;
    color: #24292e;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    outline: none;
}

.bps-input-modal:focus {
    background-color: #fff;
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.3);
}

.bps-checkbox-label {
    font-size: 0.85rem;
    color: #586069;
    display: flex;
    align-items: center;
    margin: 5px 0 20px;
    cursor: pointer;
}

.bps-checkbox-label input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}