:root {
  --bg: #0a0614;
  --text: #f7f4ff;
  --muted: #9d8fb8;
  --line: rgba(255, 255, 255, 0.1);
  --mag: #d946ef;
  --mag2: #9333ea;
  --teal: #14b8a6;
  --card: rgba(18, 10, 36, 0.82);
  /* bez Google Fonts — cut nie ma netu do CDN */
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(700px 380px at 20% 0%, rgba(147, 51, 234, 0.35), transparent 60%),
    radial-gradient(560px 320px at 100% 10%, rgba(217, 70, 239, 0.18), transparent 55%),
    #0a0614;
}

.i {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  margin-right: 0.25em;
  flex-shrink: 0;
}
.i svg { display: block; width: 100%; height: 100%; fill: currentColor; }

.shell {
  height: 100vh;
  height: 100dvh;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(16px, 3vh, 32px) 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.brand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 22px rgba(217, 70, 239, 0.5);
}
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9d5ff;
  opacity: 0.9;
}

.card {
  background: var(--card);
  border: 1px solid rgba(217, 70, 239, 0.22);
  border-radius: 16px;
  padding: clamp(16px, 2.4vh, 22px) clamp(16px, 2.5vw, 24px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  max-width: 40em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 0.82rem;
  color: var(--muted);
}
.meta strong { color: #fff; font-weight: 700; }

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.contacts a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 70, 239, 0.35);
  background: rgba(147, 51, 234, 0.12);
}
.contacts a.mail {
  border-color: rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.12);
}
.contacts a .i { color: var(--mag); }
.contacts a.mail .i { color: var(--teal); }

.divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 14px;
}

.flash {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  border: 1px solid var(--line);
}
.flash.ok { background: rgba(20, 184, 166, 0.14); }
.flash.err { background: rgba(220, 60, 90, 0.16); }

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}
form .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
label .i {
  color: var(--mag);
  width: 1em;
  height: 1em;
}
input, textarea {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.9rem;
}
textarea {
  min-height: 52px;
  max-height: 52px;
  resize: none;
}
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(217, 70, 239, 0.65);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.18);
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

button[type="submit"] {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(90deg, var(--mag), var(--mag2));
  box-shadow: 0 0 28px rgba(217, 70, 239, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button[type="submit"] .i { margin-right: 0; color: #fff; }

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}
.foot a { color: #e9d5ff; text-decoration: none; }

@media (max-width: 720px) {
  html, body { overflow: auto; }
  .shell { height: auto; min-height: 100dvh; justify-content: flex-start; }
  form { grid-template-columns: 1fr; }
  textarea { max-height: none; min-height: 64px; }
}
