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

:root {
  --red: #B22234;
  --red-dim: rgba(178,34,52,0.4);
  --navy: #1F2A44;
  --gold: #C9A84C;
}

html, body { height: 100%; }

body {
  background: #050505;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ─── noise texture overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── top accent line ─── */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--red), transparent);
  z-index: 10;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

/* ─── brand badge (logo replacement) ─── */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand-mark {
  width: clamp(160px, 32vw, 260px);
  flex-shrink: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-name { text-align: center; }

.brand-name .title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 30%, #aaa 60%, #fff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-name .sub {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.brand-link { text-decoration: none; display: flex; align-items: center; gap: 1rem; }

/* ─── badge ─── */
.badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-dim);
  padding: 0.35em 1.1em;
  margin-bottom: 1.5rem;
}

/* ─── heading ─── */
h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(135deg, #fff 20%, #888 55%, #fff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

h1 span { color: var(--red); -webkit-text-fill-color: var(--red); }

/* ─── divider ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem auto;
  width: fit-content;
}

.divider::before, .divider::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--red-dim);
}

.divider-dot {
  width: 5px;
  height: 5px;
  border: 1px solid var(--red);
  transform: rotate(45deg);
}

/* ─── about text ─── */
.about {
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
}

.about strong { color: rgba(255,255,255,0.8); font-weight: 500; }

/* ─── CTA button ─── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9em 2.4em;
  background: linear-gradient(135deg, var(--red), #8f1b29);
  border: 1px solid var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 3rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 0 0 rgba(178,34,52,0);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(178,34,52,0.35);
  background: linear-gradient(135deg, #c8283c, var(--red));
}

.cta-btn svg { transition: transform 0.2s; }
.cta-btn:hover svg { transform: translateX(3px); }

.cta-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
}

.cta-btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  box-shadow: none;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ─── social links ─── */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6em 1.3em;
  border: 1px solid rgba(255,255,255,0.12);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.social-btn:hover {
  border-color: var(--red);
  color: #fff;
  background: rgba(178,34,52,0.08);
}

.social-btn svg { flex-shrink: 0; opacity: 0.7; transition: opacity 0.25s; }
.social-btn:hover svg { opacity: 1; }

/* ─── construction info box ─── */
.construction-box {
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  padding: 1.25rem 2rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.construction-box p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  line-height: 1.65;
}

.construction-box p + p { margin-top: 0.4rem; }

/* ─── footer ─── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

footer p { font-size: 0.7rem; color: rgba(255,255,255,0.2); letter-spacing: 0.1em; }
footer a { color: rgba(255,255,255,0.2); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--red); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.15);
  margin-left: auto;
}

@media (max-width: 480px) {
  footer { justify-content: center; text-align: center; }
  .footer-links { margin-left: 0; }
}

/* ─── membership / benefits page ─── */
.page-header {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--red); }

.content-wrap {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.hero-block { text-align: center; margin-bottom: 2.5rem; }

.hero-image {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-image img { display: block; width: 100%; height: auto; }

.lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.benefit-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  padding: 1.6rem 1.5rem;
  position: relative;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.benefit-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  display: block;
}

.benefit-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.6rem;
}

.benefit-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title span { color: var(--red); }

.section-sub {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  margin-bottom: 2.25rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 300px));
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 620px) {
  .categories-grid { grid-template-columns: minmax(210px, 300px); }
}

.category-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  padding: 1.3rem 1.4rem;
}

.category-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.9rem;
}

.category-fee {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.3em 0.8em;
}

.category-fee.free { color: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.15); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 0 0.5rem;
}

.step .num {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border: 1px solid var(--red-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--red);
}

.step h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.step p { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

.join-box {
  border: 1px solid var(--red-dim);
  background: linear-gradient(180deg, rgba(178,34,52,0.06), rgba(178,34,52,0.01));
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.join-box p.note {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ─── formularz deklaracji ─── */
.form-block {
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.form-section {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  padding: 1.75rem 1.75rem 2rem;
  margin-bottom: 1.75rem;
}

.form-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.4rem;
}

.form-section .form-section-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form-group { margin-bottom: 1.35rem; }
.form-group:last-child { margin-bottom: 0; }

.form-group label.field-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  padding: 0.7em 0.9em;
  transition: border-color 0.2s, background 0.2s;
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(0,0,0,0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }

.option-list { display: flex; flex-direction: column; gap: 0.7rem; }

.option-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  cursor: pointer;
}

.option-row input[type="radio"],
.option-row input[type="checkbox"] {
  margin-top: 0.2em;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
  cursor: pointer;
}

.statement-list {
  list-style: none;
  counter-reset: statement;
  margin-bottom: 1.35rem;
}

.statement-list li {
  counter-increment: statement;
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.statement-list li::before {
  content: counter(statement) ".";
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

.category-panel { display: none; }
.category-panel.active { display: block; }

.rodo-box {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.015);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  max-height: 260px;
  overflow-y: auto;
}

.rodo-box h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.9rem;
}

.rodo-box p, .rodo-box li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.rodo-box ul { padding-left: 1.2rem; }

.form-submit-row { text-align: center; }

.form-submit-row .cta-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.form-fallback-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.form-fallback-note a { color: rgba(255,255,255,0.55); }

.copy-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.4em 0;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.copy-link:hover { color: var(--red); }

.required-mark { color: var(--red); }

@media (max-width: 480px) {
  .brand-mark { width: 48px; height: 48px; }
  .construction-box { padding: 1rem 1.25rem; }
  .join-box { padding: 2rem 1.25rem; }
}
