/* ========================================== */
/* СОВРЕМЕННЫЕ СТИЛИ ДЛЯ CITYCODES */
/* ПОЛНАЯ ВЕРСИЯ С ИСПРАВЛЕНИЯМИ */
/* ========================================== */

:root {
    --primary-dark: #1a1a2e;
    --primary-light: #16213e;
    --accent: #667eea;
    --accent-hover: #5a67d8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================== */
/* ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦ */
/* ========================================== */

.breadcrumbs { 
    margin-bottom: 2rem; 
    font-size: 0.85rem; 
    color: #6c757d; 
}
.breadcrumbs a { 
    color: #1a1a2e; 
    text-decoration: none; 
}
.breadcrumbs a:hover { 
    color: #667eea; 
}

.page-with-sidebar { 
    display: flex; 
    gap: 30px; 
    flex-wrap: wrap; 
}
.page-main-content { 
    flex: 1; 
    min-width: 0; 
}
.page-sidebar { 
    width: 320px; 
    flex-shrink: 0; 
}

.content-card { 
    background: white; 
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    overflow: hidden; 
}
.content-header { 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
    padding: 2rem; 
    text-align: center; 
    color: white; 
}
.content-header h1 { 
    margin: 0; 
    font-size: 1.8rem; 
}
.content-header p { 
    margin: 0.5rem 0 0; 
    opacity: 0.8; 
}
.content-body { 
    padding: 2rem; 
}

/* ========================================== */
/* БЛОК ОПИСАНИЯ */
/* ========================================== */

.page-description {
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    border-left: 4px solid #667eea;
}

.page-description .lead {
    font-size: 1rem;
    line-height: 1.5;
    color: #2c3e50;
    margin: 0;
    font-weight: 400;
}

/* ========================================== */
/* БЫСТРЫЙ ПОИСК ПО КОДУ */
/* ========================================== */

.quick-lookup {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.quick-lookup h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.quick-lookup .code-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 350px;
    margin: 0 auto;
}

.quick-lookup .code-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.9rem;
    text-align: center;
    font-family: monospace;
    font-weight: 600;
}

.quick-lookup .code-input:focus {
    outline: none;
    border-color: #667eea;
}

.lookup-btn {
    border-radius: 50px !important;
    padding: 0 1.2rem !important;
    white-space: nowrap;
}

.lookup-result {
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: none;
}

.lookup-result.found {
    background: #d1fae5;
    color: #065f46;
    display: inline-block;
}

.lookup-result.not-found {
    background: #fee2e2;
    color: #991b1b;
    display: inline-block;
}

/* ========================================== */
/* ПОИСКОВАЯ СТРОКА */
/* ========================================== */

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.result-title {
    font-weight: 600;
    color: #1a1a2e;
}

.result-subtitle {
    font-size: 0.7rem;
    color: #6c757d;
}

.result-code {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
    font-family: monospace;
}

/* ========================================== */
/* СЕТКА ОКРУГОВ (ГЛАВНАЯ) */
/* ========================================== */

.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.district-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.district-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.district-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.regions-list {
    max-height: 400px;
    overflow-y: auto;
}

.region-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.region-item:hover {
    background: #f8f9fa;
    padding-left: 1.2rem;
}

.region-name {
    font-weight: 500;
    color: #1a1a2e;
    font-size: 0.85rem;
    flex: 1;
}

/* ===== БЛОК КОДОВ РЕГИОНА (ОСНОВНОЙ + ДОПОЛНИТЕЛЬНЫЕ) ===== */
.region-code-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.region-code {
    font-weight: 700;
    color: #667eea;
    font-size: 0.85rem;
    font-family: monospace;
    background: #f0f4ff;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.region-additional {
    font-size: 0.65rem;
    color: #6c757d;
    font-family: monospace;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-200);
    margin-bottom: 1rem;
}

/* ========================================== */
/* ДЕТАЛЬНАЯ СТРАНИЦА РЕГИОНА */
/* ========================================== */

.region-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 2.5rem 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.region-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 50%;
}

.region-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: rgba(118, 75, 162, 0.1);
    border-radius: 50%;
}

.region-hero-content {
    position: relative;
    z-index: 1;
}

.region-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.region-hero .back-link:hover {
    color: white;
    transform: translateX(-5px);
}

.region-hero .code-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.region-hero .code-number {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #c3cfe2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.25rem;
}

.region-hero .region-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.region-hero .region-sub {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.region-hero .region-sub strong {
    color: white;
}

/* Информационная сетка */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.info-card .info-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.info-card .info-label {
    font-size: 0.7rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.info-card .info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.info-card .info-value code {
    background: var(--gray-100);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Карточка столицы */
.info-card.capital-card {
    grid-column: span 2;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: var(--warning);
}

.info-card.capital-card .info-value {
    font-size: 1.3rem;
    color: #92400e;
}

.info-card.capital-card .info-icon {
    font-size: 2rem;
}

/* Города */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.city-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
}

.city-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.city-item .city-name {
    font-weight: 500;
    color: var(--primary-dark);
    display: block;
}

.city-item .city-capital {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.55rem;
    color: var(--warning);
    font-weight: 700;
    background: #fef3c7;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    border: 1px solid #fde68a;
}

.city-item .city-population {
    font-size: 0.7rem;
    color: var(--gray-600);
    display: block;
    margin-top: 0.2rem;
}

.city-item .city-no-data {
    font-size: 0.65rem;
    color: var(--gray-200);
    font-style: italic;
    display: block;
    margin-top: 0.2rem;
}

/* ========================================== */
/* ФОРМЫ (ДОБАВЛЕНИЕ/РЕДАКТИРОВАНИЕ) */
/* ========================================== */

.citycodes-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.citycodes-form-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.citycodes-form-card .form-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem 2rem;
}

.citycodes-form-card .form-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.citycodes-form-card .form-header p {
    margin: 0;
    opacity: 0.75;
    font-size: 0.9rem;
}

.citycodes-form-card .form-body {
    padding: 2rem;
}

.citycodes-form-card .form-body .form-group {
    margin-bottom: 1.5rem;
}

.citycodes-form-card .form-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.citycodes-form-card .form-body .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.citycodes-form-card .form-body .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.citycodes-form-card .form-body textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.citycodes-form-card .form-body .form-text {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.3rem;
}

.citycodes-form-card .form-body .form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.citycodes-form-card .form-body .form-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.citycodes-form-card .form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ========================================== */
/* КНОПКИ */
/* ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    color: white;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

/* ========================================== */
/* СТИЛИ ДЛЯ УДАЛЕНИЯ */
/* ========================================== */

.delete-warning {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.delete-warning i {
    font-size: 1.5rem;
}

.delete-preview {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--danger);
}

.delete-preview p {
    margin: 0.3rem 0;
    color: var(--gray-700);
}

.delete-preview .preview-label {
    font-weight: 600;
    color: var(--gray-800);
}

.delete-preview .preview-content {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    border-left: 3px solid var(--danger);
}

/* ========================================== */
/* SEO БЛОК */
/* ========================================== */

.seo-tips {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(16,185,129,0.2);
}

.seo-tips h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.75rem;
}

.seo-tips h4 i {
    font-size: 1.1rem;
}

.seo-tips ul {
    margin: 0;
    padding-left: 1.25rem;
}

.seo-tips li {
    margin-bottom: 0.5rem;
    color: #065f46;
    font-size: 0.85rem;
    line-height: 1.4;
}

.seo-tips li strong {
    color: #047857;
    font-weight: 600;
}

.seo-tips li:last-child {
    margin-bottom: 0;
}

/* ========================================== */
/* РЕКОМЕНДУЕМЫЕ СТРАНИЦЫ */
/* ========================================== */

.recommended-section { 
    margin-top: 2rem; 
    padding: 1rem; 
    background: #f8f9fa; 
    border-radius: 12px; 
}
.recommended-title { 
    font-size: 1rem; 
    font-weight: 600; 
    color: #1a1a2e; 
    margin-bottom: 0.75rem; 
    padding-bottom: 0.4rem; 
    border-bottom: 2px solid #667eea; 
    display: inline-block; 
}
.recommended-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.75rem; 
    margin-top: 0.75rem; 
}
.recommended-card { 
    flex: 1; 
    min-width: 160px; 
    max-width: 200px; 
    background: white; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); 
    transition: all 0.3s ease; 
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
}
.recommended-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 14px rgba(0,0,0,0.12); 
}
.recommended-image { 
    width: 100%; 
    height: 90px; 
    object-fit: cover; 
}
.recommended-no-image { 
    width: 100%; 
    height: 90px; 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: rgba(255,255,255,0.6); 
    font-size: 1.5rem; 
}
.recommended-content { 
    padding: 0.6rem; 
}
.recommended-card-title { 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: #1a1a2e; 
    margin-bottom: 0.2rem; 
    line-height: 1.3; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.recommended-excerpt { 
    font-size: 0.65rem; 
    color: #6c757d; 
    line-height: 1.3; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    margin-top: 0.2rem; 
}

/* ========================================== */
/* СЧЁТЧИК ПРОСМОТРОВ */
/* ========================================== */

.page-eye { 
    display: flex; 
    justify-content: flex-end; 
    padding: 1rem 2rem 2rem 2rem; 
    border-top: 1px solid rgba(0,0,0,0.05); 
}
.stat-gradient { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem; 
    padding: 0.5rem 1.2rem; 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
    border-radius: 40px; 
    color: white; 
    font-size: 0.9rem; 
    font-weight: 500; 
}

/* ========================================== */
/* АДМИН-ПАНЕЛЬ */
/* ========================================== */

.page-admin-panel { 
    background: #f8f9fa; 
    border-top: 1px solid #e9ecef; 
    padding: 1rem 2rem; 
}
.admin-actions { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap; 
    justify-content: flex-end; 
}
.admin-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.5rem 1rem; 
    border-radius: 8px; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    font-weight: 500; 
    font-size: 0.85rem; 
}
.admin-btn-primary { 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
    color: white; 
}
.admin-btn-secondary { 
    background: #6c757d; 
    color: white; 
}
.admin-btn-info { 
    background: #17a2b8; 
    color: white; 
}
.admin-btn-dark { 
    background: #343a40; 
    color: white; 
}

/* ========================================== */
/* РЕКЛАМНЫЙ БЛОК */
/* ========================================== */

.page-ad-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
}

/* ========================================== */
/* АДАПТИВНОСТЬ */
/* ========================================== */

@media (max-width: 1024px) {
    .districts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .region-hero .code-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .page-with-sidebar {
        flex-direction: column;
    }
    .page-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content-body {
        padding: 1rem;
    }
    
    .content-header {
        padding: 1.5rem 1rem;
    }
    
    .content-header h1 {
        font-size: 1.3rem;
    }
    
    .districts-grid {
        grid-template-columns: 1fr;
    }
    
    .region-hero {
        padding: 1.5rem;
    }
    
    .region-hero .code-number {
        font-size: 2.8rem;
    }
    
    .region-hero .region-name {
        font-size: 1.3rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .info-card.capital-card {
        grid-column: span 1;
    }
    
    .cities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .city-item {
        padding: 0.6rem 0.8rem;
    }
    
    .city-item .city-capital {
        position: static;
        display: inline-block;
        margin-top: 0.3rem;
        font-size: 0.5rem;
    }
    
    .citycodes-form-card .form-body {
        padding: 1.2rem;
    }
    
    .citycodes-form-card .form-actions {
        flex-direction: column;
    }
    
    .citycodes-form-card .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .quick-lookup .code-input-group {
        flex-direction: column;
        max-width: 100%;
    }
    
    .quick-lookup .code-input {
        border-radius: 12px;
    }
    
    .lookup-btn {
        border-radius: 12px !important;
        width: 100%;
        justify-content: center;
    }
    
    .recommended-grid {
        flex-direction: column;
    }
    
    .recommended-card {
        min-width: 100%;
        max-width: 100%;
        flex-direction: row;
        align-items: center;
    }
    
    .recommended-image,
    .recommended-no-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .recommended-content {
        padding: 0.5rem 0.8rem;
    }
    
    .page-eye {
        padding: 0.8rem 1rem;
    }
    
    .stat-gradient {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .region-hero .code-number {
        font-size: 2.2rem;
    }
    
    .content-header h1 {
        font-size: 1.1rem;
    }
    
    .region-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-card .info-value {
        font-size: 1rem;
    }
    
    .region-code-block {
        gap: 0.3rem;
    }
    
    .region-code {
        font-size: 0.75rem;
        padding: 0.05rem 0.3rem;
    }
    
    .region-additional {
        font-size: 0.55rem;
    }
    
    .citycodes-form-card .form-header {
        padding: 1rem 1.2rem;
    }
    
    .citycodes-form-card .form-header h2 {
        font-size: 1.1rem;
    }
}

/* ========================================== */
/* АНИМАЦИИ */
/* ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.district-card,
.region-hero-content,
.info-card,
.city-item {
    animation: fadeInUp 0.5s ease-out forwards;
}

.district-card:nth-child(1) { animation-delay: 0.05s; }
.district-card:nth-child(2) { animation-delay: 0.1s; }
.district-card:nth-child(3) { animation-delay: 0.15s; }
.district-card:nth-child(4) { animation-delay: 0.2s; }
.district-card:nth-child(5) { animation-delay: 0.25s; }

.info-card:nth-child(1) { animation-delay: 0.05s; }
.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.15s; }
.info-card:nth-child(4) { animation-delay: 0.2s; }