/* Strona Usługi kodowania - layout 30% sidebar + 70% content */
.uslugi-page-wrap {
    display: flex;
    gap: 2rem;
    padding: 40px 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.uslugi-sidebar {
    flex: 0 0 30%;
    max-width: 320px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.uslugi-main {
    flex: 1;
    min-width: 0;
}

/* Szukaj */
.uslugi-search-wrap {
    margin-bottom: 1.5rem;
}

.uslugi-search-input {
    width: 100%;
    padding: 14px 18px 14px 44px;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: #EE7642;
    background-color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23EE7642' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 20px;
}

.uslugi-search-input:focus {
    outline: none;
    border-color: #EE7642;
    box-shadow: 0 0 0 3px rgba(238, 118, 66, 0.25);
}

.uslugi-search-input::placeholder {
    color: rgba(238, 118, 66, 0.6);
}

/* Filtry kategorii - custom dark theme */
.uslugi-filters {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #EE7642;
}

.uslugi-filters h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #EE7642;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uslugi-filter-label-block {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #EE7642;
    margin-bottom: 10px;
}

/* Custom dropdown - trigger (przycisk) */
.uslugi-custom-select {
    position: relative;
    width: 100%;
}

.uslugi-custom-select-trigger {
    width: 100%;
    padding: 14px 44px 14px 18px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #EE7642;
    background-color: #2a2a2a;
    border: 2px solid #EE7642;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.uslugi-custom-select-trigger:hover,
.uslugi-custom-select-trigger:focus {
    outline: none;
    border-color: #d65a2e;
    background-color: #333;
    box-shadow: 0 0 0 3px rgba(238, 118, 66, 0.25);
}

.uslugi-custom-select-value {
    flex: 1;
}

.uslugi-custom-select-arrow {
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23EE7642' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.uslugi-custom-select.open .uslugi-custom-select-arrow {
    transform: rotate(180deg);
}

/* Lista opcji - dropdown */
.uslugi-custom-select-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #2a2a2a;
    border: 2px solid #EE7642;
    border-radius: 10px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: none;
}

.uslugi-custom-select.open .uslugi-custom-select-list {
    display: block;
}

.uslugi-custom-option {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.uslugi-custom-option:hover {
    background-color: #EE7642;
    color: #fff;
}

.uslugi-custom-option.selected {
    background-color: #EE7642;
    color: #fff;
}

.uslugi-filter-group {
    margin-bottom: 16px;
}

.uslugi-filter-group:last-child {
    margin-bottom: 0;
}

/* Grupy usług */
.uslugi-groups {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.uslugi-group {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.uslugi-group.hidden {
    display: none;
}

.uslugi-group-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
}

.uslugi-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 20px;
}

.uslugi-service-card {
    display: block;
    padding: 18px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.uslugi-service-card:hover {
    background: #fff;
    border-color: #EE7642;
    box-shadow: 0 4px 12px rgba(238, 118, 66, 0.15);
}

.uslugi-service-card.hidden {
    display: none;
}

.uslugi-service-card h4 {
    font-size: 1.05rem;
    color: #222;
    margin-bottom: 8px;
    font-weight: 600;
}

.uslugi-service-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.uslugi-service-card .service-link {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #EE7642;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.uslugi-service-card:hover .service-link {
    color: #d65a2e;
}

/* Brak wyników */
.uslugi-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.uslugi-no-results.hidden {
    display: none !important;
}

.uslugi-no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 992px) {
    .uslugi-page-wrap {
        flex-direction: column;
        padding: 24px 16px 40px;
    }

    .uslugi-sidebar {
        flex: none;
        max-width: none;
        position: static;
    }

    .uslugi-group-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .uslugi-group-header {
        font-size: 1rem;
        padding: 14px 18px;
    }

    .uslugi-group-items {
        padding: 16px;
    }

    .uslugi-service-card {
        padding: 16px;
    }
}
