/* RunetMarket Design Improvements */

:root {
  --primary: #0E9F6E;
  --primary-light: #E6F7F1;
  --secondary: #2A4158;
  --accent: #FF6B6B;
  --border: #E0E7FF;
  --bg-light: #F8FAFC;
  --text-dark: #1A202C;
  --text-light: #718096;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

/* Основные стили */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--text-dark);
  background-color: #FFFFFF;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}

/* Таблица рейтинга */
.ruytp_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ruytp_table thead {
  background: linear-gradient(135deg, var(--secondary) 0%, #1A3A4A 100%);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.ruytp_table th {
  padding: 16px 12px;
  text-align: left;
  border: none;
}

.ruytp_table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  background: white;
}

.ruytp_table tbody tr:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ruytp_table td {
  padding: 14px 12px;
  vertical-align: middle;
}

/* Логотип компании */
.ruytp_table td:first-child img {
  max-width: 50px;
  height: 50px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.ruytp_table tbody tr:hover td:first-child img {
  transform: scale(1.1);
}

/* Название компании */
.ruytp_table a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ruytp_table a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Рейтинг звёзды */
.rating-stars {
  display: inline-block;
  font-size: 16px;
  color: #FFB800;
  letter-spacing: 2px;
  white-space: nowrap;
  font-family: Arial, sans-serif;
}

/* Год основания - бейдж */
.year-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Пагинация */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
}

.pagination a,
.pagination span {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
  font-weight: 500;
}

.pagination a:hover,
.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Фильтры */
.filters-panel {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

.filters-panel h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
}

.filters-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Заголовок */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #1A3A4A 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 0;
  margin-bottom: 40px;
}

.page-header h1 {
  color: white;
  font-size: 32px;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  margin: 0;
}

/* Карточка компании (альтернативный вид) */
.company-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.company-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.company-card-logo {
  max-width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.company-card-name {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}

.company-card-year {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .ruytp_table {
    font-size: 12px;
  }
  
  .ruytp_table th,
  .ruytp_table td {
    padding: 10px 8px;
  }
  
  .page-header h1 {
    font-size: 24px;
  }
  
  .filters-group {
    justify-content: flex-start;
  }
}
