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

:root {
  --bg: #f0f2f5;
  --card: #ffffff;
  --primary: #4f6ef7;
  --primary-hover: #3b5be0;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --border: #e2e5ea;
  --radius: 14px;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
}

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

/* ---- Карточка ---- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ---- Форма ---- */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

input,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
}

/* ---- Результат ---- */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.resume {
  text-align: center;
}

.resume__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f6ef7, #a78bfa);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.resume__name {
  font-size: 1.4rem;
  margin-bottom: 0.15rem;
}

.resume__age {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: block;
}

.resume__section {
  text-align: left;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.resume__section h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.resume__section p {
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
}

/* ---- Адаптив ---- */
@media (max-width: 520px) {
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card {
    padding: 1.5rem 1.2rem;
  }

  .result-header {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}

/* =============================================
   Анимация захода на сайт
   ============================================= */
.entrance-anim {
  animation: fadeSlideIn 1.2s ease-out both;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   Статус-баннер (одобрено / отказано)
   ============================================= */
.status-banner {
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.2rem;
  animation: fadeSlideIn 0.5s ease-out both;
}

.status-banner.approved {
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #6ee7b7;
}

.status-banner.rejected {
  background: #fef2f2;
  color: #991b1b;
  border: 1.5px solid #fca5a5;
}

/* =============================================
   Панели действий
   ============================================= */
.actions-row,
.owner-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.owner-row {
  border-top: none;
  padding-top: 0;
  margin-top: 0.6rem;
}

/* =============================================
   Кнопки действий
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Изменить */
.btn-edit {
  background: #3b82f6;
}

.btn-edit:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* Удалить */
.btn-delete {
  background: #ef4444;
}

.btn-delete:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

/* Одобрить */
.btn-approve {
  background: #10b981;
  padding: 0.85rem 2rem;
}

.btn-approve:hover {
  background: #059669;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

/* Отказать */
.btn-reject {
  background: #ef4444;
  padding: 0.85rem 2rem;
}

.btn-reject:hover {
  background: #dc2626;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
}

/* Второстепенная */
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Скрытые блоки */
[hidden] {
  display: none !important;
}
