/* ═══════════════════════════════════════════
   PTM Lublin – Konkurs DOM – Wspólne style
   ═══════════════════════════════════════════ */

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

:root {
  --color-bg:       #FAFAFA;
  --color-surface:  #FFFFFF;
  --color-primary:  #1A3A5C;
  --color-accent:   #C8A96E;
  --color-crystal:  rgba(180,220,255,0.18);
  --color-text:     #1C1C1E;
  --color-muted:    #6B7280;
  --color-border:   #E5E7EB;
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
  --radius:         12px;
  --transition:     0.2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   TOP BAR (logo + lang + BCU/Festyn)
   ═══════════════════════════════════════════ */
.topbar {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
}
.topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}
.topbar__brand img {
  height: 90px;
  width: auto;
}
.topbar__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  max-width: 220px;
  letter-spacing: 0.02em;
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar__icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.topbar__icons a {
  display: flex;
  align-items: center;
}
.topbar__icons img {
  height: 90px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.topbar__icons img:hover { opacity: 1; }
.topbar__fb { display: flex; align-items: center; opacity: 0.85; transition: opacity var(--transition); }
.topbar__fb:hover { opacity: 1; }
.topbar__fb svg { display: block; }

/* ─── LANG SWITCHER ─── */
.lang-switcher {
  position: relative;
  z-index: 500;
}
.lang-switcher__current {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.lang-switcher__current:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.lang-flag-svg { width: 22px; height: 15px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.lang-switcher__current .lang-flag { font-size: 1.15rem; line-height: 1; }
.lang-switcher__current .lang-arrow {
  font-size: 0.55rem;
  transition: transform 0.25s;
  opacity: 0.7;
}
.lang-switcher.open .lang-switcher__current { background: rgba(255,255,255,0.2); border-color: rgba(200,169,110,0.5); }
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }
.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-switcher.open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1C1C1E;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.lang-switcher__option:hover { background: rgba(26,58,92,0.06); }
.lang-switcher__option.active {
  background: rgba(200,169,110,0.1);
  font-weight: 700;
  color: var(--color-primary);
}
.lang-switcher__option .lang-flag { font-size: 1.2rem; }
.lang-switcher__option .lang-name { flex: 1; }
.lang-switcher__option .lang-check {
  font-size: 0.8rem;
  color: var(--color-accent);
  opacity: 0;
}
.lang-switcher__option.active .lang-check { opacity: 1; }

/* ═══════════════════════════════════════════
   MAIN NAV
   ═══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: stretch;
  height: 52px;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav__item { position: relative; display: flex; align-items: stretch; }
.nav__link {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.nav__link:hover { color: var(--color-primary); }
.nav__link.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  min-width: 240px;
  padding: 0.5rem 0;
  z-index: 200;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown { display: block; }
.nav__dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.nav__dropdown a:hover {
  background: rgba(26,58,92,0.06);
  color: var(--color-accent);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  margin-left: auto;
  align-self: center;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-primary); border-radius: 2px;
}

/* ═══════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section__label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 0.75rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; color: var(--color-primary);
  margin-bottom: 1rem; line-height: 1.2;
}
.section__lead {
  font-size: 1.05rem; color: var(--color-muted);
  max-width: 680px; margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════
   CRYSTAL DIVIDER
   ═══════════════════════════════════════════ */
.crystal-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 0 auto 1.5rem;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer; border: none;
}
.btn--primary {
  background: var(--color-accent);
  color: #0F1E2E;
  box-shadow: 0 4px 20px rgba(200,169,110,0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,169,110,0.45); }
.btn--outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  margin-left: 0.75rem;
}
.btn--outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════
   SPONSORS SLIDER
   ═══════════════════════════════════════════ */
.sponsors {
  padding: 3rem 0;
  overflow: hidden;
  background: var(--color-bg);
}
.sponsors__label {
  text-align: center;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-muted); margin-bottom: 1.5rem;
}
.sponsors__track {
  display: flex;
  gap: 3rem;
  animation: scrollLogos 30s linear infinite;
  width: max-content;
}
.sponsors__track:hover { animation-play-state: paused; }
.sponsors__logo {
  height: 40px;
  width: auto;
  filter: grayscale(100%) opacity(0.5);
  transition: filter var(--transition);
  flex-shrink: 0;
}
.sponsors__logo:hover { filter: grayscale(0%) opacity(1); }
.sponsors__placeholder {
  height: 40px;
  padding: 0 1.5rem;
  display: flex; align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, #0F1E2E, #1A3A5C);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(200,169,110,0.1), transparent 70%);
}
.cta-banner__inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700; color: #fff; margin-bottom: 0.75rem;
}
.cta-banner__title em { color: var(--color-accent); font-style: italic; }
.cta-banner__sub { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 2rem; }
.cta-sublinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.cta-sublinks a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-sublinks a::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(200,169,110,0.12) 50%, transparent 60%);
  transition: left 0.5s ease;
}
.cta-sublinks a:hover::before { left: 100%; }
.cta-sublinks a:hover {
  background: rgba(200,169,110,0.12);
  border-color: rgba(200,169,110,0.5);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 32px rgba(200,169,110,0.15), 0 0 0 1px rgba(200,169,110,0.2);
}
.cta-sublinks a .cta-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(200,169,110,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.35s ease;
}
.cta-sublinks a:hover .cta-icon {
  background: linear-gradient(135deg, rgba(200,169,110,0.25), rgba(200,169,110,0.1));
  border-color: rgba(200,169,110,0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(200,169,110,0.2);
}
.cta-sublinks a .cta-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.3s;
}
.cta-sublinks a:hover .cta-label { color: var(--color-accent); }
.cta-sublinks a .cta-desc {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  transition: color 0.3s;
}
.cta-sublinks a:hover .cta-desc { color: rgba(255,255,255,0.65); }
.cta-sublinks a .cta-arrow {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.cta-sublinks a:hover .cta-arrow {
  color: var(--color-accent);
  transform: translate(2px, -2px);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: #0A1628;
  color: rgba(255,255,255,0.6);
  padding: 3rem 1.5rem 2rem;
}
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: #fff; margin-bottom: 0.5rem;
}
.footer__brand span { color: var(--color-accent); }
.footer__tagline { font-size: 0.875rem; line-height: 1.5; }
.footer__heading {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 1rem;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.4rem; }
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  max-width: 1200px; margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar__brand-name { display: none; }
  .nav__links {
    display: none; flex-direction: column;
    position: absolute; top: 52px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0; z-index: 200;
  }
  .nav__links.open { display: flex; }
  .nav__item { flex-direction: column; }
  .nav__link { padding: 0.75rem 1.5rem; border-bottom: none; }
  .nav__dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 1.5rem;
    background: var(--color-bg);
  }
  .nav__dropdown.mobile-open { display: block; }
  .nav__toggle { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .btn--outline { margin-left: 0; margin-top: 0.75rem; display: block; }
  .cta-sublinks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cta-sublinks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cta-sublinks { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .cta-sublinks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
