:root {
    --bg: #ffffff;
    --surface: #0b0c0e08;
    --border: #E5E7EB;
    --border-strong: #D1D5DB;
    --text: #111827;
    --muted: #6B7280;
    --primary: #111827;
    --primary-contrast: #ffffff;
    --radius: 12px;
    --radius-pill: 9999px;
    --gap: 12px;
    --pad: 10px;
    --pad-lg: 8px;
    --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 3px 12px rgba(17, 24, 39, .04);
    --focus: 0 0 0 3px rgba(59, 130, 246, .3)
}

.profiles-section {
    padding: 120px 20px
}

.container {
    max-width: 1200px;
    margin: 0 auto
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 20px
}

.profiles-title {
    font-size: 3.5rem;
    color: #333;
    margin: 0;
    font-weight: 400
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
    color: #666
}

.filter-btn:hover {
    background: linear-gradient(135deg, var(--accent), #fafafa);
    border-color: var(--accent);
    color: #666;
    transform: translateY(-2px)
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), #fafafa);
    border-color: var(--accent);
    color: #666
}

.cards-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 3rem
}

.profile-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px #0000001a;
    transition: all .3s ease;
    cursor: pointer
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px #00000026
}

.card-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative
}

.card-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    transition: transform .3s ease
}

.profile-card:hover .card-image img {
    transform: scale(1.05)
}

.card-info {
    padding: 25px 20px;
    text-align: center
}

.profile-name {
    font-size: 1.4rem;
    color: #333;
    margin: 0 0 8px;
    font-weight: 600
}

.profile-age {
    font-size: 1rem;
    color: #666;
    margin: 0
}

.see-more-container {
    text-align: center;
    margin-top: 2rem
}

.see-more-btn {
    background: linear-gradient(135deg, var(--accent), #fafafa);
    color: #666;
    padding: 15px 40px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 15px #0000004d
}

.see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #0006
}

@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px
    }

    .profiles-title {
        font-size: 2.5rem
    }

    .filter-buttons {
        width: 100%;
        justify-content: center
    }

    .cards-grid {
        grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px
    }

    .card-image {
        height: 350px
    }

    .card-info {
        padding: 20px 15px
    }
}

@media (max-width: 480px) {
    .profiles-section {
        padding: 40px 15px
    }

    .profiles-title {
        font-size: 2rem
    }

    .filter-buttons {
        gap: 10px
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: .9rem
    }

    .cards-grid {
        grid-template-columns:1fr
    }

    .card-image {
        height: 300px
    }

    .see-more-btn {
        padding: 12px 30px;
        font-size: 1rem
    }
}

.detailed-filters {
    width: 100%;
    display: grid;
    grid-template-columns:repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    padding: calc(var(--gap) * .75);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.filter-input {
    grid-column: span 5
}

.filter-field:nth-of-type(1), .filter-field:nth-of-type(2) {
    grid-column: span 2
}

.filter-field:nth-of-type(3), .filter-field:nth-of-type(4) {
    grid-column: span 2
}

.filter-reset {
    grid-column: span 1;
    justify-self: end
}

@media (max-width: 900px) {
    .detailed-filters {
        width: auto
    }

    .filter-input {
        grid-column: 1 / -1
    }

    .filter-field {
        grid-column: span 6 !important
    }

    .filter-reset {
        grid-column: span 6;
        justify-self: stretch
    }
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text);
    font: 500 13px/1.2 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial
}

.filter-number, .filter-select, .filter-input {
    padding: var(--pad-lg) calc(var(--pad-lg) + 2px);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease
}

.filter-number:hover, .filter-select:hover, .filter-input:hover {
    border-color: var(--border-strong)
}

.filter-number:focus, .filter-select:focus, .filter-input:focus {
    border-color: #3b82f6;
    box-shadow: var(--focus)
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 calc(var(--gap) * .75)
}

.filter-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font: 600 13px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
    box-shadow: 0 0 #0000
}

.filter-btn:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateY(-1px)
}

.filter-btn:focus {
    outline: none;
    box-shadow: var(--focus)
}

.filter-btn.active {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: var(--shadow)
}

.filter-reset {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--muted);
    padding: 10px 14px;
    border-radius: var(--radius);
    font: 600 13px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .06s ease
}

.filter-reset:hover {
    background: var(--surface);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
    color: var(--text);
    transform: translateY(-1px)
}

.filter-reset:focus {
    outline: none;
    box-shadow: var(--focus)
}
