/* ============================================
   SMART - Stowarzyszenie  |  Main stylesheet
   ============================================ */

:root {
  --blue-light: #1ea0d8;
  --blue-mid:   #1976bd;
  --blue-deep:  #1e5fa0;
  --blue-dark:  #154780;

  --accent-soft: #7dd3fc;
  --accent-bright: #38bdf8;

  --white: #ffffff;
  --off-white: #f8fbff;
  --gray-50:  #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;

  --success: #10b981;
  --warning: #f59e0b;
  --finished-color: #94a3b8;

--font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 6px rgba(15, 30, 60, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 30, 60, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 30, 60, 0.18);
  --shadow-xl: 0 30px 80px rgba(15, 30, 60, 0.25);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --max-w: 1200px;
}

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

/* Kuloodporne tło nałożone na sam fundament strony */
html { 
  scroll-behavior: smooth; 
  min-height: 100vh;
  background-color: var(--blue-deep) !important;
  background-image: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-mid) 45%, var(--blue-deep) 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* Body musi być całkowicie przezroczyste, aby pokazać tło z html */
  background: transparent !important; 
}

/* Ukrycie starych pływających kółek (blobs) */
.hero-bg-decor { 
  display: none !important; 
}
a { color: var(--blue-mid); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-deep); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: transparent;
  border-bottom: none;
  padding-top: 12px;
  width: 100%;
}

/* ============================================
   ROZWIJANE MENU (DROPDOWN)
   ============================================ */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: var(--r-md);
  transition: all 0.2s ease;
}
.dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  padding: 8px 0;
  z-index: 200;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s;
}
.dropdown-menu li a:hover {
  background: var(--gray-50);
  color: var(--blue-mid);
}

.top-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* To spycha menu na lewo, języki na prawo */
  width: 100%;
}
.top-logo { display: inline-flex; align-items: center; text-decoration: none; }
.top-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--white);
  letter-spacing: -0.5px;
}
.top-logo:hover { text-decoration: none; }
.top-logo:hover .top-logo-text { color: var(--accent-soft); }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  height: 42px; /* Sztywna wysokość */
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
  padding: 4px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 700;
  transition: all .2s ease;
}
.lang-btn:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.lang-btn.active {
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: var(--shadow-sm);
}
.flag { font-size: 16px; line-height: 1; }
.lang-code { font-family: var(--font-display); }

/* Sections */
.section-view { display: none; }
.section-view.active { display: block; }
[hidden] { 
  display: none !important; 
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  overflow: hidden;
}
.hero.active { display: flex; }
.hero-bg-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: blobFloat 18s ease-in-out infinite; }
.blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(125,211,252,0.6), transparent 70%); top: -120px; left: -150px; animation-delay: 0s; }
.blob-2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(56,189,248,0.4), transparent 70%); bottom: -200px; right: -180px; animation-delay: -6s; }
.blob-3 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%); top: 40%; left: 55%; animation-delay: -12s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  width: 100%;
  animation: fadeUp .8s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  max-width: 500px;
width: 80%;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.92);
  margin-bottom: 56px;
  font-weight: 500;
}

.big-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.big-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: var(--white);
  color: var(--blue-deep);
  border-radius: var(--r-xl);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
  text-align: left;
  width: 100%;
}
.big-btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(15, 30, 60, 0.28);
  text-decoration: none;
  color: var(--blue-dark);
}
.big-btn-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  color: var(--white);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.big-btn-icon svg { width: 26px; height: 26px; }
.big-btn-label { flex: 1; }
.big-btn-arrow { font-size: 24px; font-weight: 700; transition: transform .25s ease; opacity: 0.7; }
.big-btn:hover .big-btn-arrow { transform: translateX(6px); opacity: 1; }

/* ============================================
   PROJECTS / TEAM section shared layout
   ============================================ */
.projects-section { padding: 40px 20px 80px; min-height: calc(100vh - 70px); }
.container { max-width: var(--max-w); margin: 0 auto; }

.section-head {
  text-align: center;
  margin-bottom: 32px;
  color: var(--white);
  position: relative;
}
.back-btn {
  position: absolute;
  left: 0;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s ease;
}
.back-btn:hover { background: rgba(255,255,255,0.25); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-subtitle { font-size: 16px; color: rgba(255,255,255,0.85); }

.filter-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}
.filter-btn:hover { background: rgba(255,255,255,0.2); }
.filter-btn.active { background: var(--white); color: var(--blue-deep); border-color: var(--white); }

/* Projects */
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.project-card-image {
  width: 100%;
  aspect-ratio: 8 / 1.4;
  background: transparent; /* Zmieniono z #000 na transparent */
  object-fit: contain;
  border-bottom: 1px solid var(--gray-100);
}
.project-card-image-placeholder {
  width: 100%;
  aspect-ratio: 8 / 1.4;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 13px;
}
.project-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.project-status.active { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.project-status.finished { background: var(--gray-100); color: var(--gray-500); }
.project-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.project-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.project-period { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.project-short {
  font-size: 14px;
  color: var(--gray-700);
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-mid); font-weight: 600; font-size: 14px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  border: 1px dashed rgba(255,255,255,0.25);
}

/* ============================================
   TEAM section
   ============================================ */
.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  position: relative;
  overflow: hidden;
}
.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
}

.team-body { padding: 18px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.team-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.team-role {
  font-size: 13px;
  color: var(--blue-mid);
  font-weight: 600;
  margin-bottom: 10px;
}
.team-bio-preview {
  font-size: 13px;
  color: var(--gray-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}
.team-card-cta { font-size: 13px; color: var(--blue-mid); font-weight: 600; }

/* Team detail modal */
.team-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 20px;
}
.team-detail-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.team-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-detail-photo .team-photo-placeholder { font-size: 48px; }
.team-detail-header h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gray-900);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.team-detail-role { color: var(--blue-mid); font-weight: 600; font-size: 14px; }
.team-detail-bio {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.team-detail-contacts {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.team-detail-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--gray-50);
  color: var(--blue-mid);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.team-detail-contacts a:hover { background: var(--blue-light); color: var(--white); text-decoration: none; }

/* ============================================
   PROJECT DETAIL (in modal)
   ============================================ */
.project-detail-funding-banner {
  width: 100%;
  background: transparent; /* Zmieniono z #000 na transparent */
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.project-detail-funding-banner img { width: 100%; display: block; }

.project-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.project-detail-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gray-900);
  flex: 1;
  min-width: 200px;
}

.detail-section { margin-bottom: 28px; }
.detail-section h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-section h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--blue-light), var(--blue-mid));
  border-radius: 2px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.detail-item { background: var(--gray-50); padding: 12px 14px; border-radius: var(--r-sm); }
.detail-item dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.detail-item dd { font-size: 15px; color: var(--gray-900); font-weight: 500; }
.detail-text { color: var(--gray-700); white-space: pre-wrap; line-height: 1.7; }
.detail-list { padding-left: 20px; }
.detail-list li { margin-bottom: 6px; color: var(--gray-700); }

.detail-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--blue-light);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  margin: 0 6px 6px 0;
  text-decoration: none;
}
.detail-links a:hover { background: var(--blue-mid); text-decoration: none; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(180deg, rgba(21, 71, 128, 0.4), rgba(21, 71, 128, 0.8));
  color: var(--white);
  padding: 60px 20px 24px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-col h3.footer-heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.footer-address {
  font-style: normal;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 10px; position: relative; padding-left: 16px; font-size: 14px; }
.footer-nav li::before { content: '•'; position: absolute; left: 0; color: rgba(255,255,255,0.4); }
.footer-nav a { color: rgba(255,255,255,0.88); text-decoration: none; transition: color .2s ease; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   MODALS
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 60, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: backdropFade .25s ease-out;
}
@keyframes backdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalPop .3s cubic-bezier(.34, 1.56, .64, 1);
}
.modal-wide { max-width: 820px; }
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-900); }
.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-right: 40px;
  letter-spacing: -0.3px;
}
.modal-body { color: var(--gray-700); font-size: 15px; line-height: 1.7; }
.modal-body p { margin-bottom: 12px; }
.modal-body h3 { font-family: var(--font-display); color: var(--gray-900); margin: 18px 0 10px; font-size: 16px; }
.modal-body ul { padding-left: 20px; margin-bottom: 12px; }
.modal-body li { margin-bottom: 4px; }

.contact-block { margin-bottom: 18px; }
.contact-h {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-h .pin { font-size: 16px; }
.contact-block p { color: var(--gray-900); font-size: 15px; }
.contact-block a { color: var(--blue-mid); font-weight: 600; }

.info-row {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row strong {
  display: block;
  font-family: var(--font-display);
  color: var(--blue-deep);
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 700;
}
.info-row span { color: var(--gray-700); font-size: 15px; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 999;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px 24px;
  max-width: 800px;
  margin: 0 auto;
  animation: cookieSlideUp .4s ease-out;
}
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gray-900);
  font-size: 15px;
  margin-bottom: 4px;
}
.cookie-text p { font-size: 13px; color: var(--gray-700); margin: 0; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary, .btn-secondary, .btn-link {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-link { background: transparent; color: var(--blue-mid); text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .top-bar-inner { padding: 12px 16px; }
  .lang-btn { padding: 5px 10px; font-size: 12px; }
  .lang-code { display: none; }
  .hero { padding: 24px 16px 60px; }
  .hero-logo { max-width: 280px; }
  .hero-title { margin-bottom: 8px; }
  .hero-subtitle { margin-bottom: 40px; }
  .big-buttons { gap: 16px; }
  .big-btn { padding: 22px 20px; font-size: 18px; }
  .big-btn-icon { width: 44px; height: 44px; }
  .big-btn-icon svg { width: 22px; height: 22px; }

  .section-head { padding-top: 50px; }
  .back-btn { left: 50%; transform: translateX(-50%); top: 0; }

  .projects-list, .team-list { grid-template-columns: 1fr; gap: 18px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .modal { padding: 24px 20px; border-radius: var(--r-md); }
  .modal-title { font-size: 19px; }

  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-actions button { flex: 1; }
}
/* ============================================
   PRZYCISK "POWRÓT NA GÓRĘ"
   ============================================ */
.btn-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 900;
  border: none;
}
.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-scroll-top:hover {
  background: var(--blue-light);
  color: var(--white);
}
@media (max-width: 640px) {
  .btn-scroll-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}