/* =============================================
   FUNDACJA NA RZECZ ROZWOJU SPORTU CERBER
   Main Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* --- Color Palette ---
   Primary:   #c0202a  (deep red)
   Dark:      #1a1a2e  (navy)
   Mid:       #2d3a5e  (dark blue)
   Light:     #f4f6fb  (off-white)
   Accent:    #e8b800  (gold)
*/

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #1a1a2e;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.logo-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.logo-text .foundation-name {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text .foundation-sub {
  font-size: 10px;
  color: #e8b800;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav ul li a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
  color: #fff;
  background: rgba(192,32,42,0.7);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-content {
  padding-top: 72px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 40%, rgba(192,32,42,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: #c0202a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 720px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero h1 span {
  color: #e8b800;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: #c0202a;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(192,32,42,0.35);
}

.btn-primary:hover {
  background: #a01820;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,32,42,0.45);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.25s;
  margin-left: 12px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* =============================================
   SECTION STYLES
   ============================================= */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: #c0202a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-title span {
  color: #c0202a;
}

.section-desc {
  font-size: 1.05rem;
  color: #4a5568;
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 48px;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: #c0202a;
  padding: 0;
}

.stats-bar .section-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* =============================================
   CARD GRIDS
   ============================================= */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap-28px;
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(26,26,46,0.08);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(26,26,46,0.14);
}

.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  color: #c0202a;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-text {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.7;
}

/* =============================================
   GOALS LIST
   ============================================= */
.goals-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.goal-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f4f6fb;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid #c0202a;
  transition: box-shadow 0.2s;
}

.goal-item:hover {
  box-shadow: 0 4px 16px rgba(26,26,46,0.1);
}

.goal-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c0202a;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-text {
  font-size: 0.92rem;
  color: #2d3a5e;
  line-height: 1.6;
}

/* =============================================
   ACHIEVEMENTS
   ============================================= */
.achievement-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.achievement-card {
  background: #1a1a2e;
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  transition: transform 0.25s;
}

.achievement-card:hover {
  transform: translateY(-4px);
}

.ach-icon {
  width: 56px;
  height: 56px;
  background: #c0202a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}

.ach-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e8b800;
  margin-bottom: 10px;
}

.ach-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  border-radius: 10px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #c0202a;
  color: #fff;
  padding: 18px 24px;
  border-radius: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(192,32,42,0.4);
}

.about-img-badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.about-text h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  color: #c0202a;
  margin: 28px 0 12px;
}

.about-text p {
  font-size: 0.97rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* =============================================
   INFO BOX (registration details)
   ============================================= */
.info-box {
  background: #f4f6fb;
  border: 1px solid #dde3f0;
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 40px;
}

.info-box h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: 16px;
  border-bottom: 2px solid #c0202a;
  padding-bottom: 10px;
}

.info-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.92rem;
}

.info-row:last-child { border-bottom: none; }

.info-row .info-key {
  font-weight: 700;
  color: #2d3a5e;
  min-width: 160px;
  flex-shrink: 0;
}

.info-row .info-val {
  color: #4a5568;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: #c0202a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 16px;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail-text span {
  font-size: 0.92rem;
  color: #4a5568;
}

.contact-form-wrap {
  background: #f4f6fb;
  border-radius: 10px;
  padding: 36px;
}

.contact-form-wrap h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2d3a5e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dde3f0;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.93rem;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #c0202a;
}

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

/* =============================================
   LIGHT / DARK SECTIONS
   ============================================= */
.section-light { background: #f4f6fb; }
.section-dark { background: #1a1a2e; }
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: rgba(255,255,255,0.7); }

/* =============================================
   BANNER (inner pages)
   ============================================= */
.page-banner {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.9) 40%, rgba(26,26,46,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.page-banner-content .section-label {
  color: #e8b800;
}

.page-banner-content h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  background: #1a1a2e;
  padding: 12px 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: #e8b800; }
.breadcrumb span { color: #e8b800; margin: 0 6px; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #0f0f1e;
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-icon {
  margin-bottom: 16px;
}

.footer-brand .foundation-name-footer {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c0202a;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: #e8b800; }

.footer-col p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-col a:hover { color: #e8b800; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   DIVIDER
   ============================================= */
.divider {
  width: 56px;
  height: 4px;
  background: #c0202a;
  border-radius: 2px;
  margin-bottom: 24px;
}

/* =============================================
   ACTIVITIES PAGE
   ============================================= */
.activity-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.activity-block.reverse { direction: rtl; }
.activity-block.reverse > * { direction: ltr; }

.activity-img {
  border-radius: 10px;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.activity-text h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 14px;
}

.activity-text p {
  font-size: 0.97rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 16px;
}

.activity-text ul {
  list-style: disc;
  padding-left: 20px;
  color: #4a5568;
  font-size: 0.93rem;
  line-height: 1.9;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .goals-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-badge { right: 12px; bottom: -16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .achievement-list { grid-template-columns: repeat(2, 1fr); }
  .activity-block { grid-template-columns: 1fr; gap: 28px; }
  .activity-block.reverse { direction: ltr; }
  .stats-bar .section-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 640px) {
  nav { display: none; }
  nav.open { display: block; }
  nav.open ul {
    flex-direction: column;
    background: #1a1a2e;
    padding: 12px 24px 20px;
    gap: 2px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  nav.open ul li a { display: block; padding: 10px 14px; }
  .nav-toggle { display: flex; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar .section-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .achievement-list { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  section { padding: 56px 20px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
}

@media (max-width: 400px) {
  .header-inner { padding: 0 14px; }
  .logo-text .foundation-name { font-size: 11px; }
}
