@font-face {
  font-family: 'Conti Stag Sans';
  src: url('../fonts/ContinentalStagSans-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-yellow: #faa61a;
  --c-yellow-dim: #c97f0f;
  --c-black: #0a0a0a;
  --c-black-2: #161616;
  --c-grey: #3a3a3a;
  --c-grey-light: #8a8a8a;
  --c-red: #e10600;
  --c-green: #00c853;
  --c-white: #ffffff;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Conti Stag Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--c-white);
  background: var(--c-black);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--c-yellow);
}

.app-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 3px solid var(--c-yellow);
  background: var(--c-black);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__logo {
  display: flex;
  align-items: top;
  text-decoration: none;
}

.site-header__logo img {

  height: 50px;
  width: auto;
  display: block;
}

.site-header__tagline {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-grey-light);
}

main {
  flex: 1;
  width: 100%;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.page--narrow {
  max-width: 560px;
}

.hero {
  background: linear-gradient(180deg, var(--c-black-2), var(--c-black));
  border-bottom: 1px solid var(--c-grey);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--c-yellow);
}

.hero p {
  font-size: 15px;
  color: #d4d4d4;
  max-width: 560px;
  margin: 0 0 8px;
  line-height: 1.6;
}

.hero p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: var(--c-black-2);
  color: var(--c-grey-light);
  font-size: 13px;
  border-top: 1px solid var(--c-grey);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: #d4d4d4;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__brand img {
  height: 14px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(2);
}

/* ---------- Form ---------- */

.form-section h2 {
  font-size: 18px;
  margin: 0 0 4px;
  border-left: 4px solid var(--c-yellow);
  padding-left: 12px;
  color: var(--c-white);
}

.form-section + .form-section {
  margin-top: 32px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.field-grid .field--full {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.field .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.55;
  color: #d4d4d4;
  cursor: pointer;
  margin-bottom: 0;
}

.field .checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--c-yellow);
  cursor: pointer;
}

.consent-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-grey);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  background: var(--c-black-2);
  color: var(--c-white);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--c-yellow);
  outline-offset: 1px;
}

.field-error {
  color: #ff7a70;
  font-size: 13px;
  margin-top: 4px;
}

/* ---------- Buttons / messages ---------- */

.btn {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-black);
  border: none;
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 28px;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--c-yellow-dim);
}

.btn:disabled {
  background: var(--c-grey);
  cursor: not-allowed;
}

.btn--secondary {
  background: var(--c-grey);
  color: var(--c-white);
}

.btn--danger {
  background: var(--c-red);
  color: var(--c-white);
}

.btn--small {
  margin-top: 0;
  padding: 6px 14px;
  font-size: 13px;
  width: auto;
}

.alert {
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 24px;
}

.alert--error {
  background: rgba(225, 6, 0, 0.12);
  color: #ff7a70;
  border: 1px solid rgba(225, 6, 0, 0.4);
}

.alert--success {
  background: rgba(0, 200, 83, 0.12);
  color: var(--c-green);
  border: 1px solid rgba(0, 200, 83, 0.4);
}

/* ---------- Regulamin ---------- */

.regulamin h2 {
  font-size: 17px;
  color: var(--c-yellow);
  margin: 32px 0 12px;
}

.regulamin p {
  font-size: 14px;
  line-height: 1.65;
  color: #d4d4d4;
  margin: 0 0 12px;
}

/* ---------- Admin ---------- */

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-grey);
  white-space: nowrap;
}

.admin-table th {
  background: var(--c-black-2);
  font-weight: 700;
  color: var(--c-yellow);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-toolbar__count {
  color: var(--c-grey-light);
  font-size: 14px;
}

.login-card {
  border: 1px solid var(--c-grey);
  border-radius: 8px;
  padding: 28px;
  margin-top: 28px;
  background: var(--c-black-2);
}
