/* =============================================
   DOBADO.TJ — Modern Design 2026
   ============================================= */

/* --- Переменные --- */
:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --primary-light: #818cf8;
  --primary-glow:  rgba(99,102,241,.15);
  --accent:        #f43f5e;
  --accent-hover:  #e11d48;
  --success:       #10b981;
  --warning:       #f59e0b;

  --bg:            #f8faff;
  --bg2:           #f1f5fe;
  --card-bg:       #ffffff;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.12);
  --shadow-glow: 0 8px 32px rgba(99,102,241,.25);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: .2s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

/* --- Сброс --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* --- Контейнер --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   ШАПКА
   ============================================= */
.site-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-dot { color: var(--primary-light); }
.logo:hover { color: var(--primary-dark); }

/* Поиск в шапке */
.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 9px 38px 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: all var(--transition);
}
.header-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.header-search button {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer; font-size: 14px;
  transition: color var(--transition);
}
.header-search button:hover { color: var(--primary); }

/* Навигация */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}
.header-nav a:hover { background: var(--bg2); color: var(--text); }
.header-nav a.active { background: var(--primary-glow); color: var(--primary); font-weight: 600; }

/* Переключатель языка */
.lang-switcher { display: flex; gap: 4px; }
.lang-switcher a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.lang-switcher a:hover { border-color: var(--primary); color: var(--primary); }
.lang-switcher a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Кнопка Submit в шапке */
.header-submit {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
  transition: all var(--transition) !important;
}
.header-submit:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,.4) !important;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  margin-left: auto;
  border-radius: 8px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================= */
.mobile-menu {
  display: none;
  background: #fff;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  font-weight: 500;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a i { color: var(--primary); width: 18px; }

/* =============================================
   ГЕРОЙ
   ============================================= */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 70%, #6366f1 100%);
  padding: 72px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(139,92,246,.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236,72,153,.2) 0%, transparent 40%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: .3px;
}
.hero-badge i { color: #fbbf24; }

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}
.hero h1 span {
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  font-weight: 400;
}

/* Большой поиск */
.hero-search {
  display: flex;
  max-width: 580px;
  margin: 0 auto 28px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  transition: all var(--transition);
}
.hero-search:focus-within {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  color: #fff;
  font-family: var(--font);
  font-weight: 400;
}
.hero-search input::placeholder { color: rgba(255,255,255,.55); }
.hero-search button {
  padding: 10px 22px;
  background: #fff;
  color: var(--primary);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  border-radius: 50px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hero-search button:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,.5);
}

/* Счётчики */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stat-item strong {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-item span {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 3px;
  font-weight: 500;
}

/* =============================================
   СЕКЦИИ
   ============================================= */
.section { padding: 48px 0; }
.section-alt { background: var(--card-bg); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-blue   { background: #dbeafe; color: #2563eb; }
.icon-orange { background: #ffedd5; color: #ea580c; }
.icon-green  { background: #d1fae5; color: #059669; }
.icon-pink   { background: #fce7f3; color: #db2777; }

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--primary-glow);
  transition: all var(--transition);
  white-space: nowrap;
}
.section-link:hover { background: var(--primary); color: #fff; }

/* =============================================
   КАТЕГОРИИ
   ============================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.category-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.category-card:hover::before { opacity: 1; }
.category-card:hover .cat-icon,
.category-card:hover .cat-name,
.category-card:hover .cat-count { color: #fff !important; background: rgba(255,255,255,.15) !important; }

.cat-icon {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  transition: all var(--transition);
}
.cat-name {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  transition: color var(--transition);
}
.cat-count {
  position: relative;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg2);
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
}

/* =============================================
   КАРТОЧКИ САЙТОВ — СЕТКА
   ============================================= */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.site-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.site-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.site-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 10px;
}
.site-logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--bg);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  padding: 5px;
}
.site-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-card-domain {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-card-featured {
  font-size: 10px;
  font-weight: 700;
  color: var(--warning);
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 50px;
  margin-left: auto;
  flex-shrink: 0;
  letter-spacing: .3px;
}
.site-card-desc {
  padding: 0 16px 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.site-card-tags {
  padding: 0 16px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  font-size: 11px;
  background: var(--primary-glow);
  color: var(--primary);
  padding: 3px 9px;
  border-radius: 50px;
  font-weight: 600;
}
.site-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.site-stats { display: flex; gap: 12px; }
.site-stat {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.site-stat i { font-size: 11px; }

.btn-visit {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.btn-visit:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
.btn-visit.btn-sm { padding: 5px 12px; font-size: 11px; }

/* =============================================
   СПИСОК САЙТОВ
   ============================================= */
.sites-list { display: flex; flex-direction: column; gap: 10px; }

.site-list-item {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
}
.site-list-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}
.site-list-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--bg);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  padding: 4px;
}
.site-list-body { flex: 1; min-width: 0; }
.site-list-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-list-name:hover { color: var(--primary); }
.site-list-domain {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.site-list-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-list-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* =============================================
   КНОПКИ
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,.4);
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(244,63,94,.25); }
.btn-accent:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost {
  background: var(--bg2);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* Лайк */
.btn-like {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.btn-like:hover, .btn-like.liked {
  border-color: #f43f5e;
  color: #f43f5e;
  background: #fff1f3;
}

/* =============================================
   ФОРМА
   ============================================= */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.1px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: all var(--transition);
  font-family: var(--font);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { border-color: #f43f5e !important; box-shadow: 0 0 0 3px rgba(244,63,94,.1) !important; }
.error-msg { font-size: 12px; color: #f43f5e; margin-top: 4px; font-weight: 500; }

/* =============================================
   АЛЕРТЫ
   ============================================= */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}
.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--success); }
.alert-error   { background: #fff1f2; color: #881337; border-left: 4px solid var(--accent); }
.alert-warning { background: #fffbeb; color: #78350f; border-left: 4px solid var(--warning); }
.alert-info    { background: #eff6ff; color: #1e3a5f; border-left: 4px solid var(--primary); }

/* =============================================
   ПАГИНАЦИЯ
   ============================================= */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}
.page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(99,102,241,.3); }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { color: var(--text-light); }

/* =============================================
   LAYOUT С САЙДБАРОМ
   ============================================= */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.widget {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.widget-title {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  letter-spacing: -.1px;
}
.widget-body { padding: 12px 16px; }

.widget-site-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.widget-site-item:last-child { border-bottom: none; }
.widget-site-logo {
  width: 30px; height: 30px;
  border-radius: 7px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
  padding: 2px;
}
.widget-site-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.widget-site-name:hover { color: var(--primary); }
.widget-site-stat {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 600;
}

/* =============================================
   ДЕТАЛЬНАЯ СТРАНИЦА САЙТА
   ============================================= */
.site-detail-header {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.site-detail-logo {
  width: 84px; height: 84px;
  border-radius: 20px;
  object-fit: contain;
  background: var(--bg);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.site-detail-name {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 4px;
  line-height: 1.2;
}
.site-detail-domain {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.site-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.site-detail-stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.site-detail-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.site-detail-stat i { color: var(--primary); }

.site-detail-desc {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
  line-height: 1.75;
  color: var(--text);
}

/* =============================================
   ПОИСК
   ============================================= */
.search-bar {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.search-bar input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: all var(--transition);
}
.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.search-meta strong { color: var(--text); font-weight: 700; }

/* =============================================
   SUBMIT
   ============================================= */
.submit-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* =============================================
   ПОДВАЛ
   ============================================= */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,.6);
  padding: 52px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.footer-logo-dot { color: var(--primary-light); }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  font-weight: 500;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

/* =============================================
   BADGE
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
}
.badge-success { background: #ecfdf5; color: #065f46; }
.badge-danger  { background: #fff1f2; color: #be123c; }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-info    { background: #eff6ff; color: #1e40af; }
.badge-primary { background: var(--primary-glow); color: var(--primary-dark); }

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 52px;
  margin-bottom: 18px;
  opacity: .25;
  display: block;
}
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; }

/* =============================================
   МОДАЛЬНОЕ ОКНО
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-title { font-size: 16px; font-weight: 800; color: var(--text); }
.modal-close {
  background: var(--bg2);
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }

/* =============================================
   ADMIN — ОБЩИЕ
   ============================================= */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: #0f172a;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.admin-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-logo a {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.admin-logo a span { color: #f472b6; }
.admin-logo small {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
  font-weight: 600;
}
.admin-nav { padding: 10px 0; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  border-radius: 0;
}
.admin-nav-item:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
}
.admin-nav-item.active {
  background: rgba(99,102,241,.15);
  color: #fff;
  border-left-color: var(--primary-light);
  font-weight: 600;
}
.admin-nav-item i { width: 16px; text-align: center; font-size: 13px; }
.admin-nav-sep {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.2);
  padding: 16px 20px 6px;
  font-weight: 700;
}
.admin-content {
  padding: 28px;
  background: var(--bg);
  overflow-x: auto;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
}

/* Карточки статистики */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #dbeafe; color: #2563eb; }
.stat-icon.green  { background: #d1fae5; color: #059669; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.red    { background: #fee2e2; color: #dc2626; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }

/* Таблица */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  font-size: 13px;
}
.data-table th {
  background: var(--bg);
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .7px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.table-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px;
}

/* Nav badge */
.nav-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50px;
  margin-left: auto;
}

/* =============================================
   ДВЕ КОЛОНКИ — НОВЫЕ/ПОПУЛЯРНЫЕ
   ============================================= */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* =============================================
   ГЛОБАЛЬНЫЙ ФИКС ПЕРЕПОЛНЕНИЯ
   ============================================= */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
* { min-width: 0; }

/* =============================================
   АДАПТИВ
   ============================================= */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-search, .header-nav { display: none; }
  .burger { display: flex; }
  .hero { padding: 48px 0 60px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .sites-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .site-detail-header { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 36px 0; }

  /* Две колонки → одна на мобилке */
  .two-col-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Список сайтов — убираем выход за рамки */
  .site-list-item { flex-wrap: wrap; gap: 10px; }
  .site-list-actions { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .site-list-body { width: calc(100% - 58px); }

  /* Карточки категорий */
  .category-card { padding: 14px 8px; }
  .cat-icon { width: 40px; height: 40px; font-size: 17px; }

  /* Таблица в поиске и категориях */
  .data-table { font-size: 12px; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-search { flex-direction: column; border-radius: var(--radius-lg); padding: 10px; gap: 8px; }
  .hero-search button { width: 100%; justify-content: center; }
  .lang-switcher { display: none; }
  .hero h1 { letter-spacing: -.5px; }

  /* Карточка сайта на мобилке */
  .site-card-header { gap: 8px; }
  .site-logo { width: 38px; height: 38px; }

  /* Убираем горизонтальный скролл везде */
  .container { padding: 0 14px; }
  .section { padding: 28px 0; }
}

/* =============================================
   УТИЛИТЫ
   ============================================= */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-muted    { color: var(--text-muted); }
.text-primary  { color: var(--primary); }
.fw-bold       { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex        { display: flex; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.flex-wrap     { flex-wrap: wrap; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
