/* Импорты общих стилей */
@import url('common/base.css');
@import url('common/header.css');
@import url('common/navigation.css');
@import url('common/footer.css');
@import url('common/loading.css');
@import url('common/age-verification.css');

/* Стили только для главной страницы */

/* Секция карусели */
.carousel-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel.loaded {
    opacity: 1;
    transform: translateY(0);
}

.carousel-arrow {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    color: #d4af37;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: #d4af37;
    color: #0f0f0f;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
    will-change: transform;
}

.carousel-item {
    height: 400px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-decoration: none;
    display: block;
}

.carousel-item:hover {
    border-color: #d4af37;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.carousel-item-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

.carousel-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-item-image img {
    transform: scale(1.05);
}

.carousel-item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.carousel-item:hover .carousel-item-image::after {
    transform: translateX(100%);
}

.carousel-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    padding: 0.8rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    backdrop-filter: blur(5px);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-item-info h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-item-info p {
    color: #cccccc;
    font-size: 0.8rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Бейдж PREMIUM для элементов карусели */
.carousel-item::after {
    content: 'PREMIUM';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0f0f0f;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    display: block;
}

/* Основной контент */
.main {
    flex: 1 0 auto;
    padding: 3rem 0;
    min-height: calc(100vh - 400px);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    background: transparent;
}

/* Боковая панель */
.sidebar {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 140px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    
}

.sidebar-title i {
    font-size: 1.1rem;
    color: #f4d03f;
}

.sidebar-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999999;
    font-size: 0.9rem;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.sidebar-subtitle i {
    font-size: 0.8rem;
    color: #666;
}

/* Стили для списка локаций */
.locations-container {
    margin-top: 1.5rem;
}

.regions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.region-item {
    margin-bottom: 0.5rem;
}

.region-button-container {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.region-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    display: block;
}

.region-arrow-button {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(51, 51, 51, 0.5);
    padding: 0.8rem 0.8rem;
    color: #d4af37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.region-button:hover {
    background: rgba(212, 175, 55, 0.1);
}

.region-arrow-button:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #f4d03f;
}

.region-name {
    flex: 1;
    font-family: 'Inter', sans-serif;
}

.region-arrow {
    font-size: 0.8rem;
    color: inherit;
}

.cities-container {
    margin-top: 0.5rem;
    margin-left: 1rem;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    padding-left: 1rem;
}

.cities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-item {
    margin-bottom: 0.3rem;
}

.city-button {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.5rem 0.8rem;
    color: #cccccc;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
    border-radius: 6px;
    position: relative;
    text-decoration: none;
    display: block;
}

.city-button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #ffffff;
}



/* Основная сетка контента */
.main-content {
    min-height: 600px;
    background: transparent;
}

/* Премиум раздел */
.premium-section {
    margin-bottom: 3rem;
    display: none; /* По умолчанию скрыт */
    background: transparent;
}

/* На странице поиска премиум секция управляется JavaScript */
.search-page .premium-section {
    display: none; /* По умолчанию скрыта, показывается только при наличии премиум объявлений */
}

.premium-header {
    text-align: center;
    margin-bottom: 2rem;
    background: transparent;
}

.premium-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.premium-title i {
    font-size: 1.8rem;
    color: #f4d03f;
    animation: crown-glow 2s ease-in-out infinite alternate;
}

@keyframes crown-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(244, 208, 63, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(244, 208, 63, 0.8));
    }
}

.premium-subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    background: transparent;
}

.premium-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    aspect-ratio: 3/4;
    text-decoration: none;
    display: block;
}

.premium-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.premium-card::after {
    content: 'PREMIUM';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0f0f0f;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    display: block; /* Показываем на всех устройствах */
}

.premium-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

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

.premium-card:hover .premium-image img {
    transform: scale(1.08);
}

.premium-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.premium-card:hover .premium-image::after {
    transform: translateX(100%);
}

.premium-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    padding: 1rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    backdrop-filter: blur(5px);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.premium-info h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.premium-info p {
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Раздел обычных профилей */
.profiles-section {
    margin-top: 3rem;
    background: transparent;
}

.profiles-header {
    text-align: center;
    margin-bottom: 2rem;
    background: transparent;
}

.profiles-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.profiles-title i {
    font-size: 1.8rem;
    color: #cccccc;
    transition: color 0.3s ease;
}

.profiles-title:hover i {
    color: #d4af37;
}

.profiles-subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    background: transparent;
}

/* Раздел всех профилей */
.all-profiles-section {
    margin-top: 6rem;
    background: transparent;
}

.all-profiles-header {
    text-align: center;
    margin-bottom: 2rem;
    background: transparent;
}

.all-profiles-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.all-profiles-title i {
    font-size: 1.8rem;
    color: #cccccc;
    transition: color 0.3s ease;
}

.all-profiles-title:hover i {
    color: #d4af37;
}

.all-profiles-subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
}

.all-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    background: transparent;
}

.profile-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    aspect-ratio: 3/4;
    text-decoration: none;
    display: block;
}

.profile-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.profile-card:hover::before {
    transform: scaleX(1);
}

.profile-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

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

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

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.profile-card:hover .profile-image::after {
    transform: translateX(100%);
}

.profile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    padding: 0.8rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    backdrop-filter: blur(5px);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-info h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-info p {
    color: #cccccc;
    font-size: 0.8rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Стили для пустых состояний */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-state-icon {
    margin-bottom: 1.5rem;
}

.empty-state-icon i {
    font-size: 4rem;
    color: #d4af37;
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.empty-state h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.empty-state p {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Стили для пустого состояния карусели */
.carousel-empty-state {
    width: 100%;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 12px;
    margin: 1rem 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-empty-icon {
    margin-bottom: 1.5rem;
}

.carousel-empty-icon i {
    font-size: 4rem;
    color: #d4af37;
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

.carousel-empty-state h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.carousel-empty-state p {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.8;
}



/* Адаптивный дизайн для главной страницы */
@media (max-width: 1200px) {
    /* Средние экраны - 4-5 карточек в карусели */
    .carousel-item {
        height: 350px;
    }
}

/* Кнопка активации sidebar для мобильных устройств */
.sidebar-toggle-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 50%;
    color: #0f0f0f;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sidebar-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}

.sidebar-toggle-btn:active {
    transform: scale(0.95);
}

/* Модальное окно для sidebar */
.sidebar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.sidebar-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.sidebar-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
}

.sidebar-modal.active .sidebar-modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

.sidebar-modal.closing .sidebar-modal-content {
    animation: modalSlideOut 0.3s ease-in;
}

.sidebar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.sidebar-modal-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-modal-title i {
    font-size: 1.1rem;
    color: #f4d03f;
}

.sidebar-modal-close {
    background: transparent;
    border: none;
    color: #999999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.sidebar-modal-body::-webkit-scrollbar {
    width: 6px;
}

.sidebar-modal-body::-webkit-scrollbar-track {
    background: rgba(51, 51, 51, 0.3);
    border-radius: 3px;
}

.sidebar-modal-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.6);
    border-radius: 3px;
}

.sidebar-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.8);
}

/* Стили для элементов в модальном окне */
.sidebar-modal-body .region-item {
    margin-bottom: 0.5rem;
}

.sidebar-modal-body .region-button-container {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-modal-body .region-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    display: block;
}

.sidebar-modal-body .region-arrow-button {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(51, 51, 51, 0.5);
    padding: 0.8rem 0.8rem;
    color: #d4af37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-modal-body .region-arrow-button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #f4d03f;
}

.sidebar-modal-body .region-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.sidebar-modal-body .cities-container {
    margin-top: 0.5rem;
    padding-left: 1rem;
    display: none;
}

.sidebar-modal-body .cities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-modal-body .city-item {
    margin-bottom: 0.3rem;
}

.sidebar-modal-body .city-button {
    display: block;
    padding: 0.6rem 0.8rem;
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: rgba(51, 51, 51, 0.3);
    border: 1px solid rgba(51, 51, 51, 0.3);
}

.sidebar-modal-body .city-button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #f4d03f;
    border-color: rgba(212, 175, 55, 0.3);
}

/* Стили для бесконечной прокрутки */
.infinite-scroll-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin: 2rem 0;
    width: 100%;
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        display: none; /* Скрываем sidebar на мобильных */
    }

    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .sidebar-toggle-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
    
    .sidebar-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .sidebar-modal-header {
        padding: 1rem;
    }
    
    .sidebar-modal-body {
        padding: 1rem;
    }
    
    
    .main-content {
        order: 1;
    }
    
    /* Планшеты - 3-4 карточки в ряду */
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .all-profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .premium-title,
    .profiles-title,
    .all-profiles-title {
        font-size: 1.6rem;
    }
    
    .premium-title i,
    .profiles-title i,
    .all-profiles-title i {
        font-size: 1.4rem;
    }
    
    .premium-subtitle,
    .profiles-subtitle,
    .all-profiles-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Скрываем карусель на мобильных устройствах */
    .carousel-section {
        display: none;
    }
    
    /* Показываем премиум раздел на мобильных устройствах */
    .premium-section {
        display: block;
    }
    
    /* Адаптивность заголовков разделов */
    .premium-title,
    .profiles-title {
        font-size: 1.6rem;
    }
    
    .premium-title i,
    .profiles-title i {
        font-size: 1.4rem;
    }
    
    .premium-subtitle,
    .profiles-subtitle {
        font-size: 0.9rem;
    }
    
    /* Адаптивность премиум сетки */
    .premium-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    /* Мобильные устройства - 2-3 карточки в ряду */
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .all-profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .premium-title,
    .profiles-title,
    .all-profiles-title {
        font-size: 1.6rem;
    }
    
    .premium-title i,
    .profiles-title i,
    .all-profiles-title i {
        font-size: 1.4rem;
    }
    
    .premium-subtitle,
    .profiles-subtitle,
    .all-profiles-subtitle {
        font-size: 0.9rem;
    }
    
    .profile-image {
        height: 100%;
        font-size: 2.2rem;
    }
    
    /* Адаптивность списка локаций для мобильных устройств */
    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .region-button-container {
        margin-bottom: 0.5rem;
    }
    
    .region-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .region-arrow-button {
        padding: 0.6rem 0.6rem;
        min-width: 44px;
    }
    
    .city-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .cities-container {
        margin-left: 0.5rem;
        padding-left: 0.8rem;
    }
    
    /* Адаптивность пустых состояний для мобильных устройств */
    .empty-state {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .empty-state-icon i {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
    
    /* Адаптивность пустого состояния карусели для мобильных устройств */
    .carousel-empty-state {
        padding: 3rem 1.5rem;
        min-height: 250px;
    }
    
    .carousel-empty-icon i {
        font-size: 3rem;
    }
    
    .carousel-empty-state h3 {
        font-size: 1.3rem;
    }
    
    .carousel-empty-state p {
        font-size: 0.9rem;
    }
    
    .premium-title,
    .profiles-title,
    .all-profiles-title {
        font-size: 1.6rem;
    }
    
    .premium-title i,
    .profiles-title i,
    .all-profiles-title i {
        font-size: 1.4rem;
    }
    
    .premium-subtitle,
    .profiles-subtitle,
    .all-profiles-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Маленькие мобильные устройства - 2 карточки в ряду */
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .all-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* Премиум сетка для маленьких экранов */
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .premium-title,
    .profiles-title {
        font-size: 1.6rem;
    }
    
    .premium-title i,
    .profiles-title i {
        font-size: 1.4rem;
    }
    
    .premium-subtitle,
    .profiles-subtitle {
        font-size: 0.9rem;
    }
    
    .profile-image {
        height: 100%;
        font-size: 1.8rem;
    }
    
    .profile-info h3 {
        font-size: 0.9rem;
    }
    
    .profile-info p {
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    /* Очень маленькие экраны - 2 карточки в ряду с меньшими отступами */
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .all-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .premium-title,
    .profiles-title,
    .all-profiles-title {
        font-size: 1.4rem;
    }
    
    .premium-title i,
    .profiles-title i,
    .all-profiles-title i {
        font-size: 1.2rem;
    }
    
    .premium-subtitle,
    .profiles-subtitle,
    .all-profiles-subtitle {
        font-size: 0.8rem;
    }
    
    /* Премиум сетка для очень маленьких экранов */
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    /* Адаптивность списка локаций для очень маленьких экранов */
    .region-button {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .region-arrow-button {
        padding: 0.5rem 0.5rem;
        min-width: 44px;
    }
    
    .city-button {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .cities-container {
        margin-left: 0.3rem;
        padding-left: 0.6rem;
    }
    
    .premium-title,
    .profiles-title {
        font-size: 1.4rem;
    }
    
    .premium-title i,
    .profiles-title i {
        font-size: 1.2rem;
    }
    
    .premium-subtitle,
    .profiles-subtitle {
        font-size: 0.8rem;
    }
    
    .premium-info {
        padding: 0.8rem;
    }
    
    .premium-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .premium-info p {
        font-size: 0.7rem;
    }
    
    .profile-image {
        height: 100%;
        font-size: 1.6rem;
    }
    
    .profile-info {
        padding: 0.6rem;
    }
    
    .profile-info h3 {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
    
    .profile-info p {
        font-size: 0.65rem;
    }
    
    /* Адаптивность пустых состояний для очень маленьких экранов */
    .empty-state {
        padding: 1.5rem 0.8rem;
        margin: 0.8rem 0;
    }
    
    .empty-state-icon i {
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.1rem;
    }
    
    .empty-state p {
        font-size: 0.8rem;
    }
    
    /* Адаптивность пустого состояния карусели для очень маленьких экранов */
    .carousel-empty-state {
        padding: 2rem 1rem;
        min-height: 200px;
    }
    
    .carousel-empty-icon i {
        font-size: 2.5rem;
    }
    
    .carousel-empty-state h3 {
        font-size: 1.1rem;
    }
    
    .carousel-empty-state p {
        font-size: 0.8rem;
    }
}
