* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #060D1C;
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #060D1C;
    color: #FFFFFF;
    width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top Navigation Header */
.top-nav {
    background: #060D1C;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.5vw, 20px);
    flex-wrap: nowrap;
    position: relative;
}

.nav-logo {
    margin-right: auto;
    flex-shrink: 0;
}

.nav-menu {
    overflow: visible;
}

/* Mobile menu (hidden by default, shown below nav on mobile) */
.nav-menu-mobile {
    display: none;
}

.nav-logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo .logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 100%;
    max-height: 60px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    display: inline-block;
    align-items: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.nav-link {
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.62%;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-label {
    display: block;
}

.nav-underline {
    width: 117px;
    height: 2px;
    background: #C60997;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1px;
}

.nav-link.active .nav-underline {
    opacity: 1;
}

.nav-link:hover {
    color: #C60997;
}

.nav-item .nav-link.active {
    position: relative;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
    color: #FFFFFF;
    font-weight: 700;
}

.nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(198, 9, 151, 0.8);
}

.nav-link.active {
    color: #FFFFFF;
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 20px);
    flex-shrink: 0;
    margin-left: auto;
}

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 1002;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SF Pro Text', sans-serif;
    font-size: clamp(11px, 1vw, 14px);
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-icon {
    width: 20px;
    height: 20px;
}

.lang-btn .lang-flag {
    flex-shrink: 0;
    width: 20px;
    height: 15px;
}

.lang-text {
    display: none;
}

.lang-arrow {
    width: 8px;
    height: 5px;
    transition: transform 0.3s ease;
}

.lang-btn.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(6, 13, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #FFFFFF;
    text-decoration: none !important;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.lang-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

.lang-flag-emoji {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* Profile Type Selector */
.profile-type-selector {
    position: relative;
    z-index: 1002;
}

.profile-type-btn {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.5vw, 8px);
    padding: clamp(6px, 0.7vw, 8px) clamp(8px, 1vw, 12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SF Pro Text', sans-serif;
    font-size: clamp(11px, 1vw, 14px);
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-type-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-type-icon {
    width: 20px;
    height: 20px;
}

.profile-type-text {
    text-transform: capitalize;
}

.profile-type-arrow {
    width: 8px;
    height: 5px;
    transition: transform 0.3s ease;
}

.profile-type-btn.active .profile-type-arrow {
    transform: rotate(180deg);
}

.profile-type-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(6, 13, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 180px;
    max-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-type-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-type-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #FFFFFF;
    text-decoration: none !important;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-type-option:last-child {
    border-bottom: none;
}

.profile-type-option:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.profile-type-option.active {
    background: rgba(198, 9, 151, 0.2);
    color: #C60997;
}

/* Account Button */
.account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #C60997;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'SF Pro Text', sans-serif;
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.account-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 9, 151, 0.3), transparent);
    transition: left 0.5s;
}

.account-btn:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(198, 9, 151, 0.5);
    text-decoration: none;
}

.account-btn:hover::before {
    left: 100%;
}

.account-btn:hover .account-text {
    color: #ff00ff;
}

.account-icon {
    width: 20px;
    height: 20px;
}

.account-btn svg {
    stroke: #C60997;
    fill: none;
}

.account-btn svg circle,
.account-btn svg path {
    stroke: #C60997;
    fill: none;
}

.account-text {
    display: none;
}

.container {
    margin: 0 auto;
    padding: 20px 20px 20px 0; /* Убираем padding слева */
    position: relative;
    min-height: 100vh;
    min-width: 100%;
    background-color: #060D1C;
}

/* Background Blur Effect */
.background-blur {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    aspect-ratio: 650 / 460;
    background: #A93ADE;
    border-radius: 50%;
    filter: blur(400px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

/* Content Area (Right Side) */
/* Страница 404 */
.error-404-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    margin: 0 auto;
}

.error-404-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.error-404-content h1 {
    font-size: 120px;
    font-weight: bold;
    color: rgba(198, 9, 151, 0.8);
    margin: 0;
    line-height: 1;
}

.error-404-content h2 {
    font-size: 32px;
    color: #FFFFFF;
    margin: 20px 0;
    font-weight: 600;
}

.error-404-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
    line-height: 1.6;
}

.error-404-content a {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: rgba(198, 9, 151, 0.8);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.error-404-content a:hover {
    background: rgba(198, 9, 151, 1);
}

@media (max-width: 768px) {
    .error-404-content h1 {
        font-size: 80px;
    }
    
    .error-404-content h2 {
        font-size: 24px;
    }
    
    .error-404-content p {
        font-size: 16px;
    }
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Центрирование контента 404 внутри content-area */
.content-area:has(.error-404-container) {
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.content-area:has(.error-404-container) .header,
.content-area:has(.error-404-container) .profiles-section {
    display: none;
}

.content-area:has(.error-404-container) .error-404-container {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Section */
.header {
    text-align: left;
    margin-bottom: 60px;
    padding-top: 0;
    position: relative;
}

/* Градиентная блямба под seo text1 */
.header::after {
    content: '';
    position: absolute;
    width: 90vw;
    aspect-ratio: 900 / 500;
    top: 254px;
    left: 40%;
    transform: translateX(-50%) rotate(-15.52deg);
    background: radial-gradient(ellipse at center, rgba(169, 58, 222, 0.6) 0%, rgba(169, 58, 222, 0.3) 40%, rgba(169, 58, 222, 0) 70%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.header-banner-wrapper {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.header-banner-link {
    display: block;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.3s;
}

.header-banner-link:hover {
    opacity: 0.9;
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
    object-fit: contain;
}

.header-title {
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.193;
    letter-spacing: 1.45%;
    margin: 0 0 30px 0;
    padding: 0;
    color: #FFFFFF;
    position: relative;
    z-index: 1;
}

.header-subtitle {
    margin: 0 0 30px 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.header-description {
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 400;
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.34;
    letter-spacing: 1%;
    text-align: justify;
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 44px;
    margin-top: 0;
    margin-bottom: 40px;
    margin-left: 0; /* Убираем отступ слева */
    align-items: flex-start;
}

/* Location Sidebar (Combined with Filters) */
.location-sidebar {
    width: 370px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: visible;
    align-self: flex-start;
    padding-left: 20px; /* Добавляем padding только для сайдбара */
    padding-bottom: 20px;
}

/* Close Button for Location Sidebar (Mobile) */
.location-sidebar-close {
    display: none; /* Скрыта по умолчанию, показывается только в мобильной версии */
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: rgba(6, 13, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.location-sidebar-close:hover {
    background: rgba(6, 13, 28, 1);
    border-color: rgba(255, 255, 255, 0.2);
}

.location-sidebar-close svg {
    width: 24px;
    height: 24px;
}

.location-block {
    background: rgba(6, 13, 28, 0.8);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 0;
    position: relative;
    backdrop-filter: blur(10px);
    z-index: 10;
    overflow: visible;
}

/* Затемненный фон для широких экранов */
@media (min-width: 1201px) {
    .location-sidebar .location-block {
        background: #050b17;
    }
    
    .location-sidebar .filter-block {
        background: #050b17;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
}

/* Filter Block (Inside Location Sidebar) */
.filter-block {
    background: #060D1C;
    border-radius: 20px;
    padding: 20px;
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    min-height: fit-content;
    max-height: none;
    height: auto;
    position: relative;
    z-index: 1;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-icon {
    width: 24px;
    height: 24px;
}

.filter-title {
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.193;
    letter-spacing: 1.45%;
    opacity: 0.8;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-dropdown {
    position: relative;
    cursor: pointer;
}

.filter-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 50px;
    box-sizing: border-box;
}

.filter-label {
    display: block;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.076;
    letter-spacing: -0.62%;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0.5;
    margin: 0;
    flex: 1;
}

.dropdown-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 0;
}

/* Убираем border-bottom если dropdown-content пустой */
.dropdown-content:empty {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.dropdown-content:hover {
    background: transparent;
}

.dropdown-value {
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 2.125;
    letter-spacing: 1.21%;
    color: #FFFFFF;
}

.dropdown-arrow {
    width: 13px;
    height: 8px;
    opacity: 0.7;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.filter-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Убираем нижнее подчеркивание у заголовка фильтра при раскрытии */
.filter-dropdown.active .filter-header-row {
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 0;
}

/* Expanded Filter Panel */
.filter-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0;
    margin-top: 0;
}

.filter-dropdown.active .filter-expanded,
.filter-group.active .filter-expanded {
    max-height: none;
    height: auto;
    padding: 0;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    overflow: visible;
}

.filter-text-input,
.filter-number-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #FFFFFF;
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.filter-text-input:focus,
.filter-number-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-text-input::placeholder,
.filter-number-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

/* Range Slider */
.range-slider-container {
    padding: 10px 0;
}

.range-slider {
    position: relative;
    width: 100%;
    height: 4px;
    margin: 20px 0;
}

.range-track {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

.range-progress {
    position: absolute;
    height: 2px;
    background: #C60997;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
    transition: all 0.1s ease;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0px 3px 1px 0px rgba(0, 0, 0, 0.1), 0px 1px 1px 0px rgba(0, 0, 0, 0.16), 0px 3px 8px 0px rgba(0, 0, 0, 0.15);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-input::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0px 3px 1px 0px rgba(0, 0, 0, 0.1), 0px 1px 1px 0px rgba(0, 0, 0, 0.16), 0px 3px 8px 0px rgba(0, 0, 0, 0.15);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.range-input::-webkit-slider-runnable-track {
    background: transparent;
}

.range-input::-moz-range-track {
    background: transparent;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #C7C7C9;
}

/* Filter List Options */
.filter-list-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    min-height: fit-content;
}

.filter-list-btn {
    padding: 13px 19px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(199, 199, 201, 0.2);
    border-radius: 100px;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.166;
    letter-spacing: -0.62%;
    text-transform: uppercase;
    color: #C7C7C9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-list-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-list-btn.active {
    background: linear-gradient(126deg, rgba(98, 83, 184, 1) 0%, rgba(237, 128, 194, 1) 100%);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* Dropdown Select Filter */
.filter-dropdown-select {
    width: 100%;
    padding: 13px 19px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(199, 199, 201, 0.2);
    border-radius: 100px;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.166;
    letter-spacing: -0.62%;
    text-transform: uppercase;
    color: #C7C7C9;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6.5 6L12 1' stroke='%23C7C7C9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 19px center;
    padding-right: 45px;
    margin: 10px 0;
}

.filter-dropdown-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-dropdown-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
}

.filter-dropdown-select option {
    background: #1a1a1a;
    color: #C7C7C9;
    padding: 10px;
}

.filter-dropdown.has-value .filter-dropdown-select {
    background: linear-gradient(126deg, rgba(98, 83, 184, 1) 0%, rgba(237, 128, 194, 1) 100%);
    border-color: #FFFFFF;
    color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6.5 6L12 1' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 19px center;
}

.filter-group {
    margin-bottom: 30px;
    position: relative;
    cursor: pointer;
}

.filter-group .filter-buttons {
    cursor: pointer;
}

.filter-group-label {
    display: block;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.384;
    letter-spacing: -0.62%;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0.7;
    margin-bottom: 10px;
}

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

.filter-btn {
    padding: 13px 19px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #FFFFFF;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: linear-gradient(126deg, rgba(98, 83, 184, 1) 0%, rgba(237, 128, 194, 1) 100%);
    border-color: #FFFFFF;
}

.filter-arrow {
    position: absolute;
    right: 0;
    top: 35px;
    width: 13px;
    height: 8px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.filter-group.active .filter-arrow {
    transform: rotate(180deg);
}

.location-block {
    margin-bottom: 0;
}

.location-title {
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.193;
    letter-spacing: 1.45%;
    color: #FFFFFF;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Country/City Selector */
.location-country-city-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.location-selector-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-clear-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.location-clear-btn:hover {
    opacity: 1;
}

.location-clear-btn svg {
    width: 100%;
    height: 100%;
}

.location-main-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 19px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(199, 199, 201, 0.2);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.location-main-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.location-main-text {
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.166;
    letter-spacing: -0.62%;
    text-transform: uppercase;
    color: #C7C7C9;
    text-align: center;
    flex: 1;
}

.location-main-arrow {
    width: 5px;
    height: 3px;
    transition: transform 0.3s ease;
}

.location-main-btn.active .location-main-arrow {
    transform: rotate(180deg);
}

.location-main-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgb(6, 13, 28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1003;
}

.location-main-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.location-main-option {
    padding: 12px 19px;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    color: #C7C7C9;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.location-main-option:last-child {
    border-bottom: none;
}

.location-main-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

/* Location Row */
.location-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.location-label {
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.166;
    letter-spacing: -0.62%;
    text-transform: uppercase;
    color: #FFFFFF;
    min-width: 60px;
    flex-shrink: 0;
}

/* Location Selector (Unified for Country, City, Area, Subway) */
.location-selector-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 19px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(199, 199, 201, 0.2);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.location-selector-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.location-selector-text {
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.166;
    letter-spacing: -0.62%;
    text-transform: uppercase;
    color: #C7C7C9;
    flex: 1;
    text-align: left;
}

.location-selector-arrow {
    width: 5px;
    height: 3px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.location-selector-btn.active .location-selector-arrow {
    transform: rotate(180deg);
}

.location-selector-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgb(6, 13, 28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    max-height: 300px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1003;
    display: flex;
    flex-direction: column;
}

.location-selector-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.location-search-input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.location-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.location-selector-options {
    max-height: 250px;
    overflow-y: auto;
}

.location-selector-option {
    padding: 12px 19px;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    color: #C7C7C9;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-selector-option:last-child {
    border-bottom: none;
}

.location-selector-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.location-selector-option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 19px;
}

.location-selector-option-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #C60997;
}

.location-selector-option-checkbox label {
    cursor: pointer;
    flex: 1;
    margin: 0;
}

.location-subway-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.subway-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(198, 9, 151, 0.2);
    border: 1px solid rgba(198, 9, 151, 0.5);
    border-radius: 20px;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 11px;
    color: #C60997;
    text-transform: uppercase;
}

.subway-selected-tag .remove-btn {
    background: none;
    border: none;
    color: #C60997;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.subway-selected-tag .remove-btn:hover {
    color: #FFFFFF;
}

.location-tag-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgb(6, 13, 28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1003;
}

.location-tag-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.location-tag-option {
    padding: 10px 13px;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    color: #C7C7C9;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-tag-option:last-child {
    border-bottom: none;
}

.location-tag-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

/* Subway Tags */
.location-subway-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: relative;
    flex: 1;
}

.subway-tag-btn {
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(199, 199, 201, 0.2);
    border-radius: 100px;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.166;
    letter-spacing: -0.62%;
    text-transform: uppercase;
    color: #C7C7C9;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subway-tag-btn:hover,
.subway-tag-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

.subway-tag-arrow {
    width: 5px;
    height: 3px;
    margin-left: 8px;
    opacity: 0.7;
}

/* Show All Filters Button */
.filter-show-all {
    margin-top: 20px;
    margin-bottom: 20px;
}

.show-all-btn,
.show-all-link {
    color: #FFFFFF;
    text-decoration: underline;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-all-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Кнопка "Показать все опции" для конкретного фильтра */
.filter-show-options {
    margin-top: 15px;
    margin-bottom: 10px;
}

.show-options-link {
    color: #FFFFFF;
    text-decoration: underline;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-options-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.filter-option-hidden {
    display: none !important;
}

.show-all-arrow {
    width: 13px;
    height: 8px;
    transition: transform 0.3s ease;
}

.filter-reset {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.reset-filters-link {
    color: #FFFFFF;
    text-decoration: underline;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

.reset-filters-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.show-all-arrow {
    width: 13px;
    height: 8px;
    transition: transform 0.3s ease;
}

/* Text and Number Input Filters */
.filter-text-input,
.filter-number-input {
    width: 100%;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(199, 199, 201, 0.2);
    border-radius: 100px;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    color: #C7C7C9;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.filter-text-input::placeholder,
.filter-number-input::placeholder {
    color: rgba(199, 199, 201, 0.5);
    text-transform: uppercase;
}

.filter-text-input:focus,
.filter-number-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

/* Checkbox and Radiobox Buttons */
.checkbox-btn {
    position: relative;
    padding: 13px 19px;
    padding-left: 45px;
}

.checkbox-btn::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(199, 199, 201, 0.5);
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.checkbox-btn.active::before {
    background: #C60997;
    border-color: #C60997;
}

.checkbox-btn.active::after {
    content: '✓';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
}

.radiobox-btn {
    position: relative;
    padding: 13px 19px;
    padding-left: 45px;
}

.radiobox-btn::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(199, 199, 201, 0.5);
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.radiobox-btn.active::before {
    background: #C60997;
    border-color: #C60997;
}

.radiobox-btn.active::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFFFFF;
}

.filter-ok-button {
    margin-top: 40px;
}

.ok-btn {
    width: 100%;
    padding: 17px;
    background: #060D1C;
    border: 1px solid #FFFFFF;
    border-radius: 100px;
    color: #FFFFFF;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 9, 151, 0.4);
}

.count-badge {
    position: static;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 2px 8px;
    font-size: 12px;
    opacity: 0.5;
    margin-left: 4px;
}

/* Profiles Section */
.profiles-section {
    width: 100%;
    min-width: 0; /* Позволяет flex-элементу сжиматься */
    margin-bottom: 40px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    width: 100%;
    position: relative;
    z-index: 1;
    align-items: stretch;
}

/* Profile Card */
.profile-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(198, 9, 151, 0.2);
    border-color: rgba(198, 9, 151, 0.3);
}

.profile-image {
    width: 100%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

/* Photo Popup */
#photo-popup {
    position: fixed;
    pointer-events: none;
    display: none;
    z-index: 9999;
}

#photo-popup-img {
    display: block;
    max-width: 500px;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    border: none;
}

/* Profile Image Zoomed (Hover) */
#profile-image-zoomed {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    display: none;
    transform: none;
    left: 0;
    top: 0;
}

#profile-image-zoomed.active {
    display: block;
}

#profile-image-zoomed img {
    display: block;
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Profile Photo Modal (Mobile) */
.profile-photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.profile-photo-modal.active {
    display: flex;
}

.profile-photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.profile-photo-modal-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.profile-photo-modal-media img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.profile-photo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    line-height: 1;
    padding: 0;
}

.profile-photo-modal-close:hover {
    opacity: 0.8;
}

.profile-status {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 4px;
    height: 4px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.profile-info {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
    margin-top: 12px;
    padding: 0 20px;
}

.profile-name {
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.34;
    letter-spacing: 1%;
    text-transform: uppercase;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-name-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s;
}

.profile-name-link:hover {
    color: #ff00ff;
    text-decoration: none;
}

.profile-name-link:hover .profile-age {
    color: #ff00ff;
}

.profile-name-link:hover .profile-name-separator {
    color: #ff00ff;
}

.profile-name {
    position: relative;
    padding-bottom: 4px;
}

.profile-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(198, 9, 151, 0.8);
}

.profile-name-separator {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    transition: color 0.2s;
}

.profile-age {
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.34;
    letter-spacing: 1%;
    color: #FFFFFF;
    text-transform: uppercase;
    transition: color 0.2s;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    margin-top: 23px;
    padding-left: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-item:last-of-type {
    margin-bottom: 0;
}

.detail-label {
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.193;
    letter-spacing: 1.45%;
    text-transform: uppercase;
    color: #FFFFFF;
}

.detail-value {
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.193;
    letter-spacing: 1.45%;
    text-transform: uppercase;
    color: #EAEAEA;
}

.profile-location {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
    margin-bottom: 0;
    padding-left: 20px;
    flex-shrink: 0;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.location-item:last-child {
    margin-bottom: 0;
}

.show-phone-btn {
    width: calc(100% - 40px);
    height: 30px;
    padding: 0;
    background: transparent;
    border: 1px solid #C60997;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кнопка в списке анкет - фиксированная ширина */
.profiles-grid .show-phone-btn,
.profile-card .show-phone-btn {
    width: calc(100% - 40px);
}

/* В мобильной версии кнопка показа телефона шире */
@media (max-width: 768px) {
    .profiles-grid .show-phone-btn,
    .profile-card .show-phone-btn,
    .profile-info .show-phone-btn {
        max-width: 750px;
    }
}

/* Кнопка на странице анкеты - без отступов слева */
.profile-view-container .show-phone-btn {
    left: 0;
    width: 100%;
    right: 0;
}

.show-phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 9, 151, 0.3), transparent);
    transition: left 0.5s;
}

.show-phone-btn:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(198, 9, 151, 0.5);
}

.show-phone-btn:hover::before {
    left: 100%;
}

.show-phone-text {
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.273;
    letter-spacing: 1.5%;
    text-transform: uppercase;
    color: #FFFFFF;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.show-phone-btn:hover .show-phone-text {
    color: #ff00ff;
}

/* Footer */
.footer {
    text-align: left;
    padding: 40px 0;
    margin-top: 0;
    width: 100%;
}

.footer-description {
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.34;
    letter-spacing: 1%;
    text-align: justify;
    margin: 0 0 20px 0;
    padding: 0;
    color: #FFFFFF;
    opacity: 0.9;
}

.footer-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.footer-filter-link {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #C60997;
    border-radius: 20px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 12px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.footer-filter-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 9, 151, 0.3), transparent);
    transition: left 0.5s;
}

.footer-filter-link:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(198, 9, 151, 0.5);
    text-decoration: none;
}

.footer-filter-link:hover::before {
    left: 100%;
}

.footer-filter-link:hover {
    color: #ff00ff;
}

/* Empty State */
.profiles-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    grid-column: 1 / -1;
}

@media (max-width: 1200px) {
    .profiles-empty {
        width: 100vw;
    }
}

.profiles-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.profiles-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.profiles-empty-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    background: rgba(6, 13, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(6, 13, 28, 1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle .menu-icon {
    display: block;
    width: 24px;
    height: 24px;
}

/* Скрываем кнопку-бургер на странице профиля */
.profile-view-container ~ * .mobile-menu-toggle,
body:has(.profile-view-container) .mobile-menu-toggle {
    display: none !important;
}

/* На странице профиля перемещаем nav-right вправо */
body:has(.profile-view-container) .nav-container .nav-right {
    margin-left: auto !important;
    order: 999;
}

/* Скрываем кнопку-бургер, когда сайдбар открыт */
@media (max-width: 1400px) {
    
    .nav-link {
        font-size: 14px;
    }
    
    .nav-right {
        gap: 12px;
    }
    
    .lang-btn,
    .profile-type-btn,
    .account-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 1199px) {
    .top-nav {
        padding: 10px 0 0 0;
    }
    
    .mobile-menu-toggle.hidden {
        display: none !important;
    }
    
    /* Скрываем обычное меню в навигации */
    .nav-menu {
        display: none;
    }
    
    /* Показываем мобильное меню под навигацией */
    .nav-menu-mobile {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        padding: 8px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: #060D1C;
    }
    
    .nav-menu-mobile::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        font-size: 13px;
    }
}

@media (min-width: 841px) {
    .nav-menu-mobile {
        justify-content: center;
    }
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
    
    /* Показываем кнопку-бургер на узких экранах */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Скрываем кнопку-бургер на странице профиля в мобильной версии */
    body:has(.profile-view-container) .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Скрываем sidebar по умолчанию на узких экранах */
    .location-sidebar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        z-index: 1000;
        background: #060D1C;
        overflow-y: auto;
        padding: 20px;
        padding-top: 60px; /* Добавляем отступ сверху для кнопки закрытия */
        padding-bottom: 50px; /* Добавляем отступ снизу */
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        visibility: hidden;
        opacity: 0;
    }
    
    /* Показываем кнопку закрытия в мобильной версии */
    .location-sidebar-close {
        display: flex;
    }
    
    /* Показываем sidebar когда открыт */
    .location-sidebar.mobile-open {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }
    
    /* Затемнение фона когда меню открыто */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0);
        z-index: 999;
        backdrop-filter: blur(0px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* На всех разрешениях больше 768px логотип должен быть слева */
@media (min-width: 769px) {
    .nav-logo {
        margin-left: 0;
        margin-right: auto;
        position: relative;
        left: auto;
        transform: none;
        z-index: auto;
    }
}

/* ==================== МОБИЛЬНАЯ ВЕРСТКА (768px и меньше) ==================== */
@media (max-width: 768px) {
    /* Скрываем увеличенные фотки при наведении на анкету */
    #profile-image-zoomed {
        display: none !important;
    }
    /* Навигация */
    .top-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        padding: 10px 0 0 0;
    }
    
    /* Добавляем отступ сверху для основного контента, чтобы он не перекрывался фиксированным топбаром */
    .main-content {
        margin-top: 50px;
    }
    
    .container {
        padding-top: 70px;
    }
    
    .profile-view-container {
        padding-top: 70px;
    }
    
    .profile-page-wrapper {
        margin-top: 115px;
    }
    
    /* Если мобильное меню открыто, увеличиваем отступ */
    .nav-menu-mobile {
        position: relative;
    }
    
    .nav-container {
        flex-wrap: nowrap;
        padding: 8px 12px;
        gap: 12px;
        justify-content: space-between;
    }
    
    /* Бутерброд слева, иконки справа */
    .mobile-menu-toggle {
        display: block;
        order: 1;
        margin-right: auto;
    }
    
    .nav-right {
        order: 2;
        margin-left: auto;
    }
    
    /* Если бутерброда нет, иконки остаются справа */
    .nav-container:not(:has(.mobile-menu-toggle)) .nav-right {
        margin-left: auto;
    }
    
    /* Центрируем логотип */
    .nav-logo {
        margin-left: 0;
        margin-right: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .nav-logo .logo-image {
        height: 80px;
    }
    
    /* Скрываем обычное меню в навигации */
    .nav-menu {
        display: none;
    }
    
    /* Показываем мобильное меню под навигацией */
    .nav-menu-mobile {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        padding: 8px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: #060D1C;
    }

    .nav-menu-mobile::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Подсветка активного пункта меню в мобильной версии */
    .nav-menu-mobile .nav-item .nav-link.active {
        position: relative;
        color: #FFFFFF;
        font-weight: 700;
    }
    
    .nav-menu-mobile .nav-item .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(198, 9, 151, 0.8);
    }

    .nav-right {
        gap: 8px;
        flex-shrink: 0;
        margin-left: 0;
    }
    
    /* На странице профиля nav-right должен быть справа */
    body:has(.profile-view-container) .nav-right {
        margin-left: auto !important;
    }

    .lang-btn,
    .profile-type-btn,
    .account-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: auto;
    }

    .lang-text,
    .profile-type-text {
        font-size: 11px;
    }

    .account-text {
        display: none;
    }

    /* Контейнеры */
    .container {
        padding: 12px;
        padding-top: 70px; /* Учитываем фиксированный топбар + мобильное меню */
    }
    
    .profile-view-container {
        padding-top: 70px;
    }
    
    .profiles-section {
        padding-top: 30px;
    }
    
    .profile-page-wrapper {
        margin-top: 115px;
    }
    
    .location-sidebar {
        padding: 16px;
        padding-bottom: 50px; /* Добавляем отступ снизу */
        max-width: 100%;
    }

    /* Заголовки */
    .header {
        margin-bottom: 0;
    }

    .header-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .header-description,
    .footer-description {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Сетка анкет */
    .profiles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }

    .profile-card {
        width: 100%;
        margin: 0;
        height: auto;
        min-height: 200px;
        flex-direction: column;
    }

    .profile-image {
        width: auto;
        height: auto;
        flex-shrink: 0;
        display: inline-block;
        margin: 0 auto;
        padding: 0;
        background: transparent;
        overflow: visible;
    }
    
    .profile-image img {
        width: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0;
        padding: 0;
    }

    .profile-info {
        flex: 1;
        min-height: auto;
        padding-bottom: 0;
    }

    .profile-header {
        padding: 0 12px;
        margin-top: 8px;
        justify-content: center;
    }

    .profile-name {
        font-size: 14px;
    }

    .profile-age {
        font-size: 14px;
    }

    .profile-details {
        padding-left: 12px;
        margin-top: 12px;
    }

    .detail-item {
        margin-bottom: 8px;
    }

    .detail-label,
    .detail-value {
        font-size: 11px;
    }

    .profile-location {
        padding-left: 12px;
        margin-top: 16px;
    }

    .location-item {
        margin-bottom: 8px;
    }

    .show-phone-btn {
        width: calc(100% - 24px);
        height: 32px;
        margin: 20px auto;
        font-size: 11px;
    }
    
    /* На странице профиля nav-container выравниваем вправо */
    body:has(.profile-view-container) .nav-container {
        justify-content: flex-end;
    }

    /* Фильтры */
    .filter-section {
        padding: 12px;
    }

    .filter-item {
        margin-bottom: 16px;
    }

    /* Кнопка OK в фильтрах */
    .filter-ok-btn {
        width: 100%;
        padding: 14px;
        font-size: 14px;
        margin-top: 20px;
    }
}

/* ==================== МОБИЛЬНАЯ ВЕРСТКА (480px и меньше) ==================== */
@media (max-width: 480px) {
    .nav-container {
        padding: 6px 10px;
        justify-content: flex-end;
    }
    
    /* На странице профиля nav-container выравниваем вправо */
    body:has(.profile-view-container) .nav-container {
        justify-content: flex-end;
    }

    .nav-menu {
        gap: 8px;
        padding: 6px 0;
    }

    .nav-link {
        font-size: 16px;
        padding: 5px 6px;
    }

    .lang-btn,
    .profile-type-btn,
    .account-btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    .container {
        padding: 10px;
        padding-top: 70px; /* Учитываем фиксированный топбар + мобильное меню */
    }
    
    .profile-view-container {
        padding-top: 70px;
    }
    
    .profile-page-wrapper {
        margin-top: 115px;
    }

    .location-sidebar {
        padding: 12px;
        padding-bottom: 50px; /* Добавляем отступ снизу */
    }

    .header-title {
        font-size: 20px;
    }

    .profiles-grid {
        gap: 12px;
    }

    .profile-card {
        border-radius: 12px;
        flex-direction: column;
        height: auto;
        align-items: center;
        padding: 0;
    }

    .profile-image {
        width: auto;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
        background: transparent;
        overflow: visible;
        flex-shrink: 0;
    }
    
    .profile-image img {
        width: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0;
        padding: 0;
    }

    .profile-info {
        min-height: auto;
        padding-bottom: 0;
        width: 100%;
    }

    .profile-header {
        padding: 0 12px;
        margin-top: 12px;
        justify-content: center;
    }

    .profile-details {
        padding-left: 12px;
        margin-top: 16px;
    }

    .profile-location {
        padding-left: 12px;
        margin-top: 20px;
    }

    .show-phone-btn {
        width: calc(100% - 50px) !important;
        height: 40px;
        margin: 20px auto;
        font-size: 12px;
    }
}

/* Scrollbar Styling */
.location-sidebar::-webkit-scrollbar {
    width: 6px;
}

.location-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.location-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.location-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Стили, перенесенные из inline */
.profile-main-photo.clickable {
    cursor: pointer;
}

.profile-main-photo.default-cursor {
    cursor: default;
}

.profile-view-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}


.header-subtitle {
    font-size: 20px;
    color: #FFFFFF;
    opacity: 0.9;
}

.profile-image.clickable {
    cursor: pointer;
}

.location-selector-item.hidden,
.location-row.hidden,
.filter-option-hidden,
#hiddenFilters.hidden,
.filter-show-all.hidden {
    display: none;
}

