/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #af906b; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: #1a1a2e !important; text-decoration: none !important;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
}
.brand img { width: 40px; height: auto; }
.main-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.main-nav a {
  color: #555; font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none;
}
.main-nav a:hover { color: #af906b; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a2e; color: #ccc; padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #af906b; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer-link { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-bottom { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #333; font-size: 0.85rem; color: #888; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.65));
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0.75rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero p { font-size: clamp(1.1rem, 2.5vw, 1.4rem); max-width: 700px; margin: 0 auto 2rem; opacity: 0.9; }
.hero .btn { display: inline-block; padding: 0.8rem 2rem; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: #af906b; color: #fff; border-radius: 4px; transition: background 0.2s; }
.hero .btn:hover { background: #9a7d5a; text-decoration: none; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; margin-bottom: 2.5rem; color: #1a1a2e; }
.section-title span { display: inline-block; border-bottom: 3px solid #af906b; padding-bottom: 0.5rem; }

/* ===== MEMBERS GRID ===== */
.members-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.member-card {
  text-align: center;
  background: #fff; border: 1px solid #eee; border-radius: 8px;
  padding: 1rem 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.member-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.member-card img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 1rem;
}
.member-card h3 { font-size: 1.1rem; color: #1a1a2e; }
.member-card p { font-size: 0.9rem; color: #888; margin-top: 0.3rem; }

/* ===== DOCUMENTS ===== */
.docs-list { list-style: none; max-width: 600px; margin: 0 auto; }
.docs-list li {
  padding: 1rem 0; border-bottom: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.docs-list li:last-child { border-bottom: none; }
.doc-year { font-weight: 700; color: #1a1a2e; font-size: 1.1rem; min-width: 6rem; }
.doc-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.doc-links a { font-size: 0.9rem; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.contact-card {
  background: #f9f9f9; border-radius: 8px; padding: 1.5rem;
}
.contact-card h3 { color: #1a1a2e; margin-bottom: 1rem; }
.contact-card p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.contact-card strong { color: #1a1a2e; }

/* ===== REGULAMIN ===== */
.regulamin-content { max-width: 800px; margin: 0 auto; }
.regulamin-content p { margin-bottom: 1rem; }
.regulamin-content h3 { margin-top: 2rem; margin-bottom: 1rem; color: #1a1a2e; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: #f5f3f0; padding: 3rem 0; text-align: center;
  margin-bottom: 3rem;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem); color: #1a1a2e;
}

/* ===== BUTTONS ===== */
.btn-outline {
  display: inline-block; padding: 0.5rem 1.2rem;
  border: 2px solid #af906b; color: #af906b;
  border-radius: 4px; font-weight: 600; font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-outline:hover { background: #af906b; color: #fff; text-decoration: none; }

/* ===== TEXT PAGE ===== */
.text-page { max-width: 800px; margin: 0 auto; }
.text-page h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 1rem; color: #1a1a2e; }
.text-page p { margin-bottom: 1rem; color: #444; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 0.75rem; }
  .main-nav { justify-content: center; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .members-grid { grid-template-columns: 1fr; }
}