﻿:root {
  --bg: #f5f2eb;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6c6c6c;
  --accent: #d63f2f;
  --border: #e2ddd2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(120deg, #f5f2eb 0%, #fdfaf6 100%);
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4f1;
  border: 1px solid #f3c1b9;
  font-size: 14px;
}

.countdown-value {
  color: #a73729;
}

header a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

main {
  padding: 32px 48px 64px;
  max-width: 980px;
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

h1, h2, h3 {
  margin-top: 0;
}

form {
  display: grid;
  gap: 16px;
}

label {
  font-weight: 600;
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 16px;
}

.ranking-group {
  display: grid;
  gap: 10px;
}

.checkbox-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-grid input[type="checkbox"] {
  margin: 0;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

button.primary {
  box-shadow: 0 10px 20px rgba(214, 63, 47, 0.25);
}

button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

button:disabled {
  background: #d9d4c8;
  color: #8a867d;
  cursor: not-allowed;
  border: 1px solid #d9d4c8;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.muted {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fbe9e7;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.question {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.underlined-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}

.button-link {
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.alert {
  padding: 12px 16px;
  background: #fff4f1;
  border: 1px solid #f3c1b9;
  border-radius: 10px;
  color: #a73729;
  margin: 0 0 16px;
}

@media (max-width: 720px) {
  header {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  main {
    padding: 24px;
  }
}
