* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.input-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

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

.input-group button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.input-group button:hover {
  transform: translateY(-2px);
}

.loading {
  text-align: center;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.result-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-left: 5px solid;
}

.result-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.info-label {
  font-weight: 600;
  color: #475569;
}

.info-value {
  color: #1e293b;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}

.issue-list {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  color: #dc2626;
  font-size: 0.85rem;
  list-style: disc;
}

.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .results { grid-template-columns: 1fr; }
  .info-value { max-width: 50%; }
}
/* Вместо grid – вертикальный список */
.results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Убираем ограничение по ширине карточек, они растягиваются */
.result-card {
  width: 100%;
  margin-bottom: 0;
}

/* Для мобильных – всё и так хорошо */
@media (max-width: 640px) {
  .results {
    gap: 1rem;
  }
  .info-value {
    max-width: 60%;
  }
}

/* Новые секции для метрик */
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.metric-item {
  flex: 1;
  min-width: 150px;
  background: #f8fafc;
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
}
.metric-label {
  font-weight: 600;
  color: #1e293b;
  display: block;
}
.metric-value {
  color: #475569;
}