/* === ОСНОВНЫЕ СТИЛИ === */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --container-max-width: 1200px;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === КОНТЕЙНЕР === */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* === ХЕДЕР === */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
    color: var(--text-primary);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.875rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

/* === ОСНОВНОЙ КОНТЕНТ === */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* === ФИЛЬТРЫ === */
.filters-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.filters-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.filters-toggle {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filters-toggle.active {
    transform: rotate(180deg);
}

.filters-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.filter-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--bg-primary);
}

.age-inputs-compact {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.age-inputs-compact input {
    flex: 1;
    min-width: 50px;
}

.age-inputs-compact span {
    color: var(--text-muted);
    font-weight: 500;
}

.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* === ТЕГИ ФИЛЬТРОВ === */
.filter-tags-grid {
    display: grid;
    gap: 1.5rem;
}

.filter-tags-group label {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-filter {
    cursor: pointer;
    display: inline-block;
}

.tag-filter input {
    display: none;
}

.tag-filter span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.tag-filter:hover span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag-filter input:checked + span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === ДЕЙСТВИЯ ФИЛЬТРОВ === */
.filters-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* === КНОПКИ === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* === КАТАЛОГ === */
.catalog-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.catalog-header {
    margin-bottom: 1.5rem;
}

.catalog-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* === СЕТКА ДЕВУШЕК === */
.girls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* === КАРТОЧКА ДЕВУШКИ === */
.girl-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.girl-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.girl-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.girl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.girl-card:hover .girl-image img {
    transform: scale(1.05);
}

.verified-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--success-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.girl-info {
    padding: 1.25rem;
}

.girl-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.girl-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.girl-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.girl-metro {
    margin-bottom: 1rem;
}

.metro-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 500;
}

.girl-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.girl-actions .btn {
    flex: 1;
    text-align: center;
}

/* === ПАГИНАЦИЯ === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--bg-primary);
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === ФУТЕР === */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        align-items: flex-start;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .filters-compact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .age-inputs-compact {
        justify-content: center;
    }
    
    .filter-tags {
        gap: 0.375rem;
    }
    
    .filters-actions {
        flex-direction: column;
    }
    
    .girls-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .girl-info {
        padding: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .pagination-link {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .girls-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .main {
        padding: 1rem 0;
    }
    
    .filters-section,
    .catalog-section {
        padding: 1rem;
    }
}

/* === АНИМАЦИИ === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.girl-card {
    animation: fadeIn 0.3s ease-out;
}

/* === УЛУЧШЕНИЯ ДОСТУПНОСТИ === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === СОСТОЯНИЯ ЗАГРУЗКИ === */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Стили для страниц метро */
.girl-metro {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.metro-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.metro-tag.current {
    background: var(--primary-color);
    color: white;
}

.metro-more {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.metro-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.metro-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.875rem;
}

.metro-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.metro-info {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.metro-info h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.metro-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .metro-info {
        padding: 1.5rem;
    }
    
    .metro-links {
        gap: 0.5rem;
    }
    
    .metro-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
} 