:root {
  --midnight: #03203D;
  --blue-steel: #0B3D71;
  --camel: #d9a866;
  --oxford: #B9C8DA;
  --paper: #FAFAFA;
  --onyx: #1A1A1B;
  --nav-height: 80px;
  --t: 0.35s ease;
}

/* ── PREFERENCJE RUCHU (REDUCED MOTION) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden; 
  background: #FAFAFA; 
  -webkit-text-size-adjust: 100%; 
}

body { font-family: 'Roboto', sans-serif; color: var(--onyx); background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { -webkit-tap-highlight-color: transparent; }
h1,h2,h3,h4,h5 { font-family: 'Manrope', sans-serif; }

/* ── Przesunięcie kotwicy (scroll) dla 150% ekranu ── */
section { scroll-margin-top: var(--nav-height); }

/* ── NAVBAR ─────────────────────────────────── */
#navbar {
  z-index: 200;
  height: var(--nav-height);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
  top: 0; left: 0; right: 0;
}

body.home #navbar { position: absolute; background: rgba(3,32,61,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(250,250,250,0.08); }
body.home #navbar.is-fixed { position: fixed; }
body.home #navbar.is-light { background: rgba(250,250,250,0.97); border-bottom: 1px solid rgba(3,32,61,0.1); box-shadow: 0 2px 24px rgba(3,32,61,0.08); }
body.subpage #navbar { position: fixed; background: rgba(250,250,250,0.97); border-bottom: 1px solid rgba(3,32,61,0.1); box-shadow: 0 2px 20px rgba(3,32,61,0.06); }

.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; }
.nav-logo { flex-shrink: 0; }
.nav-links-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0; }
.nav-cta-wrap { flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; display: block; transition: filter var(--t); }

body.home #navbar .nav-logo img { filter: brightness(0) saturate(100%) invert(96%) sepia(3%) saturate(100%) hue-rotate(220deg) brightness(103%) contrast(96%); }
body.home #navbar.is-light .nav-logo img { filter: none; }
body.subpage #navbar .nav-logo img { filter: none; }

.nav-links-center a { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 500; text-decoration: none; letter-spacing: 0.03em; padding: 0 14px; transition: color var(--t), opacity var(--t); }

body.home #navbar .nav-links-center a { color: var(--paper); }
body.home #navbar .nav-links-center a:hover { color: var(--camel); }
body.home #navbar.is-light .nav-links-center a { color: var(--midnight); }
body.home #navbar.is-light .nav-links-center a:hover { color: var(--blue-steel); }
body.subpage #navbar .nav-links-center a { color: var(--midnight); }
body.subpage #navbar .nav-links-center a:hover { color: var(--blue-steel); }

.nav-sep { color: var(--camel); font-size: 14px; user-select: none; }
.nav-cta-wrap { justify-self: end; }
.btn-cta { display: inline-block; background: var(--camel); color: var(--paper) !important; font-family: 'Roboto', sans-serif; font-size: 15.5px; font-weight: 500; letter-spacing: 0.03em; text-decoration: none; padding: 10px 22px; border-radius: 50px; white-space: nowrap; transition: background var(--t), transform var(--t), box-shadow var(--t); }
.btn-cta:hover { background: #c49050; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(217,168,102,0.4); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; transition: background var(--t); }
body.home #navbar .nav-toggle span { background: var(--paper); }
body.home #navbar.is-light .nav-toggle span { background: var(--midnight); }
body.subpage #navbar .nav-toggle span { background: var(--midnight); }

@media (max-width: 920px) {
  body.home #navbar { position: relative; background: var(--midnight); }
  body.home #navbar.is-fixed { position: fixed; }
  
  .nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 10px; 
  }
  
  .nav-logo { flex-shrink: 0; }
  
  .nav-cta-wrap { margin-left: auto; margin-right: 15px; }
  
 
.nav-links-center { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--midnight); flex-direction: column; padding: 20px 32px; gap: 2px; border-bottom: 2px solid var(--camel); max-height: calc(100dvh - var(--nav-height)); overflow-y: auto; }

  .nav-links-center.open { display: flex; }
  .nav-links-center a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; color: var(--paper) !important; text-align: left; }
  .nav-links-center a:hover { color: var(--camel) !important; }
  
  body.subpage .nav-links-center,
  body.home #navbar.is-light .nav-links-center { background: var(--paper); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-top: 1px solid rgba(3,32,61,0.06); }
  
  body.subpage .nav-links-center a,
  body.home #navbar.is-light .nav-links-center a { border-bottom-color: rgba(3,32,61,0.06); color: var(--midnight) !important; }
  
  .nav-sep { display: none; }
  .nav-toggle { display: flex; }
  
  .nav-cta-wrap { display: flex !important; gap: 12px; }
  .nav-cta-wrap .btn-cta { display: none !important; }
  
  .nav-links-center a.mobile-only-cta {
    display: inline-flex !important;
    align-self: center;
    margin: 20px auto 16px auto;
    padding: 12px 32px;
    width: auto;
    border-bottom: none !important;
    background: var(--camel);
    color: var(--paper) !important;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s;
  }
  .nav-links-center a.mobile-only-cta:hover { background: #c49050; transform: translateY(-1px); }
}

@media (min-width: 921px) {
  .mobile-only-cta { display: none !important; }
}

/* ── HERO ───────────────────────────────────── */
#hero-wrapper { position: relative; }
#hero { position: relative; width: 100%; aspect-ratio: 1920 / 1054; min-height: 320px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }

@media (max-width: 920px) {
  #hero { aspect-ratio: 3 / 2; min-height: 280px; }
}

/* ── O NAS ──────────────────────────────────── */
#o-nas, #about-us { background: var(--paper); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; max-width: 1200px; margin: 0 auto; padding: 0 0 0 32px; }
.about-img-col { padding: 72px 0; }
.about-img-inner { position: relative; height: 100%; min-height: 420px; }


.about-img-inner img { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center; 
  display: block; 
  border-radius: 4px; 
  filter: sepia(0.1) hue-rotate(-15deg) saturate(1.3) contrast(1.1) brightness(0.95);
}

.about-text-col { padding: 72px 32px 72px 64px; }

.about-heading-box { background: var(--midnight); border-radius: 8px; padding: 26px 28px 28px; margin-bottom: 28px; }
.about-heading-label { font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--camel); margin-bottom: 8px; }
.about-heading-box .about-heading-display { 
  font-family: 'Manrope', sans-serif; 
  font-size: clamp(20px, 2.1vw, 26px); 
  font-weight: 800; 
  color: var(--paper); 
  line-height: 1.2; 
  margin-bottom: 16px; 
}
.about-heading-box h1.box-tagline {
  font-family: 'Roboto', sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 0;
}
.about-heading-box .box-tagline { font-family: 'Roboto', sans-serif; font-size: 14.5px; color: var(--paper); line-height: 1.75; text-align: justify; }

.dlaczego-label { font-family: 'Manrope', sans-serif; font-size: clamp(16px, 1.8vw, 22px); font-weight: 800; color: var(--midnight); margin-bottom: 20px; padding-left: 28px; }
.pillar { display: flex; gap: 18px; margin-bottom: 26px; align-items: flex-start; padding-left: 28px; padding-right: 28px; }
.pillar-num { flex-shrink: 0; width: 38px; height: 38px; background: var(--midnight); color: var(--paper); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 13px; margin-top: 9px; }
.pillar-content { padding-top: 9px; }
.pillar-content h4 { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; color: var(--midnight); margin-bottom: 5px; text-wrap: auto; }
.pillar-content p { font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--onyx); line-height: 1.75; text-align: justify; }

.about-cta-wrap { display: flex; justify-content: flex-end; padding-right: 28px; width: 100%; margin-top: 36px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-col { padding: 48px 24px 32px 24px; min-height: auto; }
  .about-img-inner { min-height: 280px; border-radius: 8px; overflow: hidden; }
  .about-text-col { padding: 0 24px 48px 24px; }
  .about-cta-wrap { padding-right: 0; }
  .pillar-content p { text-align: left; }
}

/* ── TYTUŁY SEKCJI ── */
.section-label { font-family: 'Roboto', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--camel); margin-bottom: 12px; }
.section-title { font-family: 'Manrope', sans-serif; font-size: clamp(20px, 2.1vw, 26px); font-weight: 800; line-height: 1.15; margin-bottom: 36px; }
.section-title.light { color: var(--paper); }
.section-title.dark { color: var(--midnight); }

/* ── SPECJALIZACJE ──────────────────────────── */
#specjalizacje, #expertise { background: var(--paper); }
.spec-inner { max-width: 1200px; margin: 0 auto; padding: 38px 32px 48px; }

.spec-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.spec-tile { aspect-ratio: 1 / 1; border-radius: 14px; padding: 20px; display: flex; align-items: center; justify-content: center; text-align: center; transition: transform var(--t), box-shadow var(--t); cursor: default; overflow: hidden; }
.spec-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(3,32,61,0.18); }

.spec-tile:nth-child(odd)  { background: var(--midnight); }
.spec-tile:nth-child(even) { background: var(--oxford); }
.spec-tile h4 { font-family: 'Manrope', sans-serif; font-size: clamp(12px, 1.1vw, 14px); font-weight: 600; line-height: 1.45; }
.spec-tile:nth-child(odd) h4  { color: var(--paper); }
.spec-tile:nth-child(even) h4 { color: var(--midnight); }

@media (max-width: 1100px) { .spec-grid { grid-template-columns: repeat(5,1fr); } }
@media (max-width: 600px) { 
  .spec-grid { grid-template-columns: repeat(2,1fr); } 
  .spec-tile { aspect-ratio: auto; min-height: 100px; padding: 18px 16px; } 
  
  .spec-tile:nth-child(4n+1), .spec-tile:nth-child(4n+4) { background: var(--midnight); }
  .spec-tile:nth-child(4n+2), .spec-tile:nth-child(4n+3) { background: var(--oxford); }
  .spec-tile:nth-child(4n+1) h4, .spec-tile:nth-child(4n+4) h4 { color: var(--paper); }
  .spec-tile:nth-child(4n+2) h4, .spec-tile:nth-child(4n+3) h4 { color: var(--midnight); }
}

/* ── ZESPÓŁ ─────────────────────────────────── */
#zespol, #team { background: var(--paper); }
.team-inner { max-width: 1200px; margin: 0 auto; padding: 48px 32px; }
.team-intro { text-align: center; margin-bottom: 48px; }
.team-heading { font-family: 'Manrope', sans-serif; font-size: clamp(20px, 2.1vw, 26px); font-weight: 800; color: var(--midnight); line-height: 1.15; }
.team-heading em { font-style: normal; color: var(--camel); }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 860px; margin: 0 auto; }
.team-card-wrapper { display: flex; flex-direction: column; align-items: center; }

.team-card { display: block; text-decoration: none; text-align: center; transition: transform 0.35s ease; width: 100%; }
.team-card:hover { transform: translateY(-4px); }
@media (hover: none) { .team-card:hover { transform: none; } }

.team-card-photo-wrap { max-width: 75%; margin: 0 auto 22px auto; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 24px rgba(3,32,61,0.1); }
.team-card-photo { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.team-card:hover .team-card-photo { transform: scale(1.02); }

.team-card h3 { font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; color: var(--midnight); margin-bottom: 6px; }
.team-card .role { font-family: 'Roboto', sans-serif; font-size: 13px; color: var(--onyx); letter-spacing: 0.03em; margin-bottom: 14px; }
.team-card-cta { display: inline-flex; align-items: center; gap: 9px; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 500; color: var(--midnight); }
.team-cta-arrow { width: 30px; height: 30px; background: var(--camel); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s, transform 0.3s; }
.team-card:hover .team-cta-arrow { background: #c49050; transform: translateX(3px); }

.team-card-contacts { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.team-contact-item { display: flex; align-items: center; gap: 8px; font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--midnight); text-decoration: none; transition: color var(--t); }
.team-contact-item:hover { color: var(--camel); }
.team-contact-item svg { color: var(--camel); flex-shrink: 0; }

@media (max-width: 680px) { .team-grid { grid-template-columns: 1fr; max-width: 380px; } }

/* ── USŁUGI / AKORDEON ──────────────────────── */
#uslugi, #services { background: var(--paper); }
.uslugi-inner { max-width: 1200px; margin: 0 auto; padding: 48px 32px; }

.accordion { margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.acc-item { border-radius: 50px; overflow: hidden; }
.acc-item.open { border-radius: 22px; }

.acc-header { width: 100%; background: var(--midnight); color: var(--paper); border: none; cursor: pointer; padding: 17px 26px; display: flex; align-items: center; justify-content: space-between; font-family: 'Roboto', sans-serif; font-size: 15.5px; font-weight: 500; letter-spacing: 0.01em; text-align: left; border-radius: 50px; transition: background var(--t), border-radius var(--t); }
.acc-item.open .acc-header { border-radius: 22px 22px 0 0; }
.acc-header:hover { background: var(--blue-steel); }

.acc-icon { flex-shrink: 0; width: 22px; height: 22px; border: 1.5px solid rgba(250,250,250,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform var(--t); }
.acc-item.open .acc-icon { transform: rotate(180deg); }

.acc-item > .acc-body { display: none; background: var(--paper); padding: 26px 30px 30px; border-radius: 0 0 22px 22px; border: 1px solid rgba(3,32,61,0.07); border-top: none; font-family: 'Roboto', sans-serif; font-size: 14.5px; line-height: 1.8; color: var(--onyx); text-align: justify; }
.acc-item.open > .acc-body { display: block; }
.acc-body p { margin-bottom: 14px; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body ul { list-style: none; padding: 0; margin: 10px 0; }
.acc-body ul li { padding: 7px 0 7px 18px; position: relative; }
.acc-body ul li::before { content: ''; position: absolute; left: 0; top: 16.7px; width: 6px; height: 6px; border-radius: 50%; background: var(--camel); }

/* ── PLAN CAROUSEL ─────────────────── */
.plan-carousel-wrap { position: relative; margin-top: 22px; }
.plan-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 28px 0 12px; }
.plan-carousel::-webkit-scrollbar { display: none; }

.plan-card { flex: 0 0 calc((100% - 28px) / 3); min-width: 250px; scroll-snap-align: center; background: #F4F5F7; border: 2px solid rgba(3,32,61,0.07); border-radius: 14px; padding: 36px 20px 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; position: relative; box-shadow: 0 2px 12px rgba(3,32,61,0.07); }
.plan-card:hover { border-color: var(--camel); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(3,32,61,0.1); }

.plan-card.recommended { border: 2px solid var(--camel); box-shadow: 0 4px 16px rgba(3,32,61,0.06); }
.plan-card.recommended:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(217,168,102,0.15); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--camel); color: var(--paper); font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 5px 16px; border-radius: 20px; white-space: nowrap; box-shadow: 0 4px 12px rgba(217,168,102,0.3); z-index: 1; }

.plan-card-name { font-family:'Manrope',sans-serif; font-size:18px; font-weight:800; color:var(--midnight); }
.plan-card-subtitle { font-family:'Roboto',sans-serif; font-size:13px; color:var(--onyx); font-style:italic; margin-top:-4px; line-height:1.45; }
.plan-card-hours { font-family:'Manrope',sans-serif; font-size:28px; font-weight:800; color:var(--camel); line-height:1; margin: 8px 0; }
.plan-card-hours.plan-card-hours--text { font-size:24.5px; line-height:1; margin-top: 11px; }
.plan-card-hours span { font-family:'Roboto',sans-serif; font-size:12px; font-weight:400; color:var(--onyx); display:block; margin-top:3px; }
.plan-card-features { list-style:none; padding:0; margin:0 0 16px 0; display:flex; flex-direction:column; gap:8px; flex:1; text-align:left; }
.plan-card-features li { font-family:'Roboto',sans-serif; font-size:13px; color:var(--onyx); line-height:1.55; padding-left:0; position:static; display:flex !important; align-items:flex-start !important; gap:9px !important; }
.plan-card-features li::before { content:'' !important; display:inline-block !important; position:static !important; flex-shrink:0 !important; width:5px !important; height:5px !important; border-radius:50% !important; background:var(--camel) !important; margin-top:7px !important; }
.plan-card-commitment { font-family:'Roboto',sans-serif; font-size:12px; font-weight:500; color:var(--midnight); border-top:1px solid rgba(3,32,61,0.08); padding-top:12px; margin-top:auto; margin-bottom: 16px; text-align: center; }

.plan-buy-btn { width: 100%; padding: 12px 0; background: var(--camel); color: var(--paper); border: none; border-radius: 50px; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: background var(--t), transform var(--t), box-shadow var(--t); }
.plan-buy-btn:hover { background: #c49050; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(217,168,102,0.3); }

.plan-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--midnight); color: var(--paper); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; transition: background 0.3s, opacity 0.3s; box-shadow: 0 2px 12px rgba(3,32,61,0.2); }
.plan-arrow:hover { background: var(--blue-steel); }
.plan-arrow.left { left: -19px; }
.plan-arrow.right { right: -19px; }

@media (max-width:900px) { .plan-card { flex: 0 0 calc((100% - 14px) / 2); } }
@media (max-width:600px) { .plan-card { flex: 0 0 85%; } .plan-arrow { width: 32px; height: 32px; } .plan-arrow.left { left: -8px; } .plan-arrow.right { right: -8px; } }

/* ── KWALIFIKACJA ───────────────────────────── */
#kwalifikacja, #qualification { background: var(--midnight); }
.kwal-inner { max-width: 1200px; margin: 0 auto; padding: 56px 32px; }
.kwal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.kwal-text-col .intro-text { font-family: 'Roboto', sans-serif; font-size: 15px; color: var(--paper); line-height: 1.8; margin-bottom: 28px; text-align: justify; }
.kwal-block { margin-bottom: 28px; }
.kwal-block-title { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: var(--camel); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.kwal-list { list-style: none; padding: 0; }
.kwal-list li { padding: 7px 0 7px 20px; position: relative; font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--paper); line-height: 1.7; }
.kwal-list li::before { content: ''; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--camel); }

.kwal-steps { list-style: none; padding: 0; counter-reset: step; }
.kwal-steps li { counter-increment: step; padding: 10px 0 10px 40px; position: relative; font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--paper); line-height: 1.7; border-bottom: 1px solid rgba(250,250,250,0.06); }
.kwal-steps li:last-child { border-bottom: none; }
.kwal-steps li::before { content: counter(step); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: none; color: var(--midnight); box-shadow: 0 2px 6px rgba(3,32,61,0.12); font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 26px; }

/* ── KWALIFIKACJA CARD (PRAWA KOLUMNA) ── */
.kwal-card-col { position: static; }
.kwal-card { background: var(--paper); border-radius: 16px; padding: 36px 32px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.kwal-card-intro { font-family: 'Roboto', sans-serif; font-size: 15px; color: var(--onyx); line-height: 1.85; font-style: italic; margin: 0; text-align: justify; }

.kwal-card .kwal-price-row { border-top: 1px solid rgba(3,32,61,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.kwal-price-label { font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--midnight); }
.kwal-price-value { font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 800; color: var(--camel); display: flex; align-items: baseline; gap: 6px; }
.kwal-price-value span { font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 400; color: var(--onyx); text-transform: lowercase; letter-spacing: 0; }

.kwal-card .btn-cta { display: block; width: 100%; text-align: center; border: none; cursor: pointer; padding: 18px 32px; font-size: 16px; font-family: 'Roboto', sans-serif; margin-top: 8px; }

@media (max-width: 900px) {
  .kwal-grid { grid-template-columns: 1fr; gap: 40px; }
  .kwal-card-col { position: static; }
}

@media (max-width: 500px) {
  .kwal-card .kwal-price-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── FAQ ────────────────────────────────────── */
#faq { background: var(--paper); } 
.faq-inner { max-width: 860px; margin: 0 auto; padding: 64px 32px; }
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }

.faq-item { background: var(--oxford); border-radius: 12px; overflow: hidden; transition: background var(--t); }
.faq-header { width: 100%; background: transparent; border: none; padding: 20px 24px; text-align: left; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; color: var(--midnight); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color var(--t); }
.faq-icon { font-size: 22px; font-weight: 400; color: var(--camel); transition: transform var(--t); line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-item > .faq-body { display: none; padding: 0 24px 24px; background: var(--oxford); color: var(--onyx); font-family: 'Roboto', sans-serif; font-size: 14.5px; line-height: 1.7; text-align: justify; } 
.faq-item.open > .faq-body { display: block; border-top: 1px solid rgba(3,32,61,0.05); padding-top: 16px; }

/* ── KONTAKT ────────────────────────────────── */
#kontakt, #contact { background: var(--oxford); }
.kontakt-inner { max-width: 1200px; margin: 0 auto; padding: 64px 32px; }
.kontakt-inner .section-title { color: var(--midnight); text-align:center; }
.kontakt-grid { max-width: 640px; margin: 0 auto; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; text-align: left; }
.form-group label { display: block; font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 500; color: var(--onyx); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; background: var(--paper); border: 1px solid rgba(3,32,61,0.12); border-radius: 8px; padding: 11px 14px; color: var(--onyx); font-family: 'Roboto', sans-serif; font-size: 14px; outline: none; transition: border-color var(--t); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--camel); }
.form-group textarea { resize: vertical; min-height: 110px; }

form.submitted input:invalid, form.submitted textarea:invalid { border-color: #ef4444; }

#charCount { color: var(--onyx) !important; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; text-align: left; }
.form-consent input[type="checkbox"] { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; accent-color: var(--camel); }
.form-consent label { font-family: 'Roboto', sans-serif; font-size: 12px; color: var(--onyx); line-height: 1.6; }
.form-consent a { color: var(--camel); text-decoration: none; }
.btn-submit { background: var(--camel); color: var(--paper); border: none; font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 13px 32px; border-radius: 50px; cursor: pointer; width: 100%; transition: background var(--t), transform var(--t), box-shadow var(--t); }
.btn-submit:hover { background: #c49050; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(217,168,102,0.3); }
.form-success { display: none; text-align: center; padding: 48px 20px; }
.form-success h4 { font-family: 'Manrope', sans-serif; font-size: 20px; color: var(--midnight); margin: 16px 0 8px; }
.form-success p { font-size: 14px; color: var(--onyx); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── MODAL (POP-UP) ─────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(3,32,61,0.6); backdrop-filter: blur(4px); z-index: 9999; display: flex; align-items: flex-start; justify-content: center; opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); padding: 40px 20px; overflow-y: auto; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--paper); width: 100%; max-width: 500px; border-radius: 16px; padding: 32px; position: relative; box-shadow: 0 10px 40px rgba(3,32,61,0.2); transform: translateY(20px); transition: transform var(--t); }
.modal-overlay.show .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 28px; color: var(--midnight); cursor: pointer; line-height: 1; }
.modal-content h3 { font-family: 'Manrope', sans-serif; font-size: 22px; color: var(--midnight); margin-bottom: 24px; font-weight: 800; }

.tidycal-modal-content {
  max-width: 900px;
  padding: 48px 0 0 0;
  display: flex;
  flex-direction: column;
}
.tidycal-modal-content::-webkit-scrollbar { width: 6px; }
.tidycal-modal-content::-webkit-scrollbar-track { background: rgba(3,32,61,0.06); }
.tidycal-modal-content::-webkit-scrollbar-thumb { background: var(--camel); border-radius: 3px; }
.tidycal-modal-content .tidycal-embed {
  width: 100%;
  min-height: 680px;
  flex-shrink: 0;
}
.tidycal-modal-content .tidycal-embed iframe {
  width: 100% !important;
  min-height: 680px !important;
  height: auto !important;
  border: none !important;
  display: block;
}

@media (max-width: 600px) {
  .tidycal-modal-content { max-width: 100%; border-radius: 0; padding-top: 48px; }
  .modal-close { top: 12px; right: 16px; }
}

/* ── PŁYWAJĄCY PRZYCISK TELEFONU (MOBILE) ───── */
.floating-phone-wrap {
  display: none; 
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

@media (max-width: 920px) {
  .floating-phone-wrap { display: flex; } 
}

.fp-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--camel);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(217,168,102,0.4);
  cursor: pointer;
  transition: transform var(--t), background var(--t);
}
.fp-toggle:hover, .fp-toggle.active { transform: scale(1.05); background: #c49050; }

.fp-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(3,32,61,0.15);
  border: 1px solid rgba(3,32,61,0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t), transform var(--t);
}
.fp-menu.show { display: flex; opacity: 1; transform: translateY(0); }

.fp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--t);
}
.fp-item:hover { background: rgba(3,32,61,0.04); }
.fp-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 8px rgba(3,32,61,0.1);
}
.fp-item-text { display: flex; flex-direction: column; }
.fp-name { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; color: var(--midnight); }
.fp-item-text .protected { font-family: 'Roboto', sans-serif; font-size: 13px; color: var(--onyx); }

/* ── FOOTER ─────────────────────────────────── */
#footer { background: var(--paper); border-top: 1px solid rgba(3,32,61,0.1); padding: 52px 0 0; }
body.subpage #footer { background: var(--oxford); border-top: none; }

.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.footer-logo-img { height: 44px; width: auto; display: block; margin-bottom: 36px; }

.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; align-items: stretch; }
.footer-col-name { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; color: var(--midnight); line-height: 1.55; margin-bottom: 16px; }
.footer-col-reg { font-family: 'Roboto', sans-serif; font-size: 13px; color: var(--onyx); line-height: 2; }
body.subpage .footer-col-reg { color: var(--onyx); }
.footer-col-reg a { color: inherit; text-decoration: none; }
.footer-contact-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-contact-row:last-child { margin-bottom: 0; }
.footer-ci { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--midnight); opacity: 0.6; }
body.subpage .footer-ci { width: 32px; height: 32px; border-radius: 50%; background: var(--midnight); color: var(--paper); opacity: 1; }
.footer-contact-row a, .footer-contact-row span { font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--midnight); text-decoration: none; }
.footer-contact-row a:hover { color: var(--camel); }
body.subpage .footer-contact-row a:hover { color: var(--blue-steel); }

.footer-social-wrap { display: flex; gap: 8px; justify-content: flex-end; align-items: flex-end; height: 100%; padding-bottom: 2px; }
body.subpage .footer-social-wrap { gap: 10px; }
.footer-social-wrap a { width: 34px; height: 34px; border-radius: 50%; background: var(--midnight); display: flex; align-items: center; justify-content: center; color: var(--paper); text-decoration: none; transition: background var(--t), transform var(--t); font-size: 15px; }
body.subpage .footer-social-wrap a { width: 42px; height: 42px; font-size: 17px; }
.footer-social-wrap a:hover { background: var(--blue-steel); transform: translateY(-2px); }

.footer-bar { border-top: 1px solid rgba(3,32,61,0.1); padding: 18px 0 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
body.subpage .footer-bar { border-top-color: rgba(3,32,61,0.15); }
.footer-bar a { font-family: 'Roboto', sans-serif; font-size: 13px; color: var(--onyx); text-decoration: none; transition: color var(--t); white-space: nowrap; }
body.subpage .footer-bar a { color: var(--onyx); }
.footer-bar a:hover { color: var(--midnight); }

.footer-bar-copy { font-family: 'Roboto', sans-serif; font-size: 13px; color: var(--onyx); white-space: nowrap; }
body.subpage .footer-bar-copy { color: var(--onyx); }

@media (max-width: 900px) { 
  .footer-main { grid-template-columns: 1fr 1fr; } 
  .footer-social-wrap { justify-content: flex-end !important; margin-top: 16px; width: 100%; }
  .spec-inner { padding: 22px 24px 32px; } 
  .team-inner, .uslugi-inner { padding: 32px 24px; }
  .kontakt-inner, .kwal-inner, .faq-inner { padding: 40px 24px; }
  .section-title { margin-bottom: 28px; }
  .team-intro { margin-bottom: 32px; }
}

@media (max-width: 580px) { 
  .footer-main { grid-template-columns: 1fr; } 
  .footer-inner { padding: 0 24px; } 
  
  .footer-bar { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 24px 12px; 
    align-items: center; 
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 20px));
  } 
  .footer-bar > *:nth-child(odd) { justify-self: start; text-align: left; }
  .footer-bar > *:nth-child(even) { justify-self: end; text-align: right; }
}

/* ── SITE PREFS (Zastępuje stary Cookie Banner) ──────────────────────────── */
#sitePrefsBox { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; width: calc(100% - 48px); max-width: 920px; background: var(--paper); border-radius: 16px; box-shadow: 0 8px 40px rgba(3,32,61,0.15), 0 2px 8px rgba(3,32,61,0.08); padding: 24px 28px; display: flex; align-items: center; gap: 32px; border: 1px solid rgba(3,32,61,0.06); transition: opacity 0.4s ease, transform 0.4s ease; }
#sitePrefsBox.hiding { opacity: 0; transform: translateX(-50%) translateY(16px); pointer-events: none; }
#sitePrefsBox.hidden { display: none; }
.prefs-desc { flex: 1; font-family: 'Roboto', sans-serif; font-size: 13.5px; line-height: 1.7; color: var(--onyx); text-align: justify; }
.prefs-desc strong { color: var(--midnight); }
.prefs-desc a { color: var(--camel); text-decoration: none; }
.prefs-desc a:hover { text-decoration: underline; }
.prefs-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.prefs-btn-outline { background: var(--paper); border: 1.5px solid rgba(3,32,61,0.25); border-radius: 50px; padding: 10px 24px; font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 600; color: var(--midnight); cursor: pointer; transition: border-color 0.3s, background 0.3s; white-space: nowrap; text-align: center; }
.prefs-btn-outline:hover { border-color: var(--midnight); background: rgba(3,32,61,0.04); }
.prefs-btn-solid { background: var(--camel); border: none; border-radius: 50px; padding: 10px 24px; font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 700; color: var(--paper); cursor: pointer; transition: background 0.3s, transform 0.2s; white-space: nowrap; text-align: center; }
.prefs-btn-solid:hover { background: #c49050; transform: translateY(-1px); }
@media (max-width: 680px) { #sitePrefsBox { flex-direction: column; gap: 20px; padding: 20px; bottom: 16px; } .prefs-actions { flex-direction: row; width: 100%; } .prefs-btn-outline, .prefs-btn-solid { flex: 1; } }

/* ── REVEAL ANIMATION ───────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; } .delay-5 { transition-delay: 0.5s; }

/* ── PROFILES (Subpages) ────────────────────── */
.profile-page { padding-top: var(--nav-height); display: block; }
.profile-body { display: flex; position: relative; max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; align-items: flex-start; }

.profile-left { 
  width: 380px; 
  flex-shrink: 0; 
  position: sticky; 
  top: calc(var(--nav-height) + 32px); 
  background: var(--paper); 
  padding: 32px 24px 32px 0; 
}

.profile-photo-wrap { 
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  /* aspect ratio zdjęcia 700x1049 */
  aspect-ratio: 700 / 1049;
  max-height: calc(100vh - var(--nav-height) - 180px);
}

.profile-photo-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

.profile-left-contact { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.profile-right { flex: 1; height: auto; background: var(--paper); padding-left: 8px; padding-bottom: 64px; }

.profile-content { padding: 48px 0 60px 64px; max-width: 780px; margin-left: auto; margin-right: 0; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 500; color: var(--onyx); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 32px; transition: color var(--t); }
.back-link:hover { color: var(--camel); }
.profile-name { font-family: 'Manrope', sans-serif; font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; color: var(--midnight); line-height: 1.1; margin-bottom: 12px; }
.profile-role-tag { font-family: 'Roboto', sans-serif; font-size: 16px; color: var(--onyx); margin-bottom: 32px; }
.profile-role-tag span { color: var(--midnight); font-weight: 500; }
.profile-bio { font-family: 'Roboto', sans-serif; font-size: 15px; color: var(--onyx); line-height: 1.85; margin-bottom: 36px; text-align: justify; }
.profile-bio p { margin-bottom: 16px; }
.profile-bio p:last-child { margin-bottom: 0; }
.profile-bio strong { color: var(--midnight); font-weight: 600; }
.profile-contact { display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; padding-bottom: 0; }
.contact-item { display: flex; align-items: center; gap: 14px; font-family: 'Roboto', sans-serif; font-size: 15px; color: var(--midnight); text-decoration: none; transition: color var(--t); }
.contact-item:hover { color: var(--camel); }
.contact-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(217,168,102,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--t); }
.contact-item:hover .contact-icon { background: rgba(217,168,102,0.25); }
.contact-icon svg { color: var(--camel); }
.contact-item strong { font-weight: 700; }

.profile-section { margin-top: 32px; padding-top: 16px; border-top: none; }
.section-heading { font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800; color: var(--midnight); margin-bottom: 24px; }
.profile-list { list-style: none; padding: 0; margin: 0; }
.profile-list li { padding: 10px 0 10px 22px; position: relative; font-family: 'Roboto', sans-serif; font-size: 14.5px; color: var(--onyx); line-height: 1.7; border-bottom: none; text-align: justify; }
.profile-list li::before { content: ''; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--camel); }
.edu-item { display: flex; gap: 20px; padding: 16px 0; border-bottom: none; }
.edu-year { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: var(--camel); min-width: 44px; padding-top: 2px; }
.edu-text h4 { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; color: var(--midnight); margin-bottom: 3px; }
.edu-text p { font-family: 'Roboto', sans-serif; font-size: 13.5px; color: var(--onyx); text-align: justify; }

@media (max-width: 860px) {
  .profile-body { flex-direction: column; padding: 0; overflow: visible; }
  .profile-left { position: static; width: 100%; height: auto; max-height: none; overflow: visible; padding: 32px 24px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .profile-photo-wrap { width: 100%; flex: none; min-height: auto; }
  .profile-photo-wrap img { height: auto; object-fit: contain; object-position: center top; }
  .profile-left-contact { align-items: flex-start; flex-shrink: 1; }
  .profile-right { overflow-y: visible; height: auto; min-height: auto; padding-left: 0; }
  .profile-content { padding: 32px 24px; }
}

@media (max-width: 560px) {
  .profile-left { padding: 24px 20px; }
  .profile-photo-wrap { max-width: 100%; } 
  .profile-content { padding: 24px 20px; }
  .section-heading { font-size: 22px; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .profile-right { min-height: auto; padding-left: 0; }
  .profile-content { padding: 24px; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .profile-photo-wrap { max-height: none; }
}


/* ── DOCUMENTS (Subpages) ───────────────────── */
.doc-hero { background:var(--midnight); padding-top:calc(var(--nav-height) + 56px); padding-bottom:52px; }
.doc-hero-inner { max-width:860px; margin:0 auto; padding:0 32px; }
.doc-hero .tag { font-family:'Roboto',sans-serif; font-size:10px; font-weight:500; letter-spacing:0.25em; text-transform:uppercase; color:var(--camel); margin-bottom:10px; }
.doc-hero h1 { font-family:'Manrope',sans-serif; font-size:clamp(28px,4vw,44px); font-weight:800; color:var(--paper); line-height:1.15; margin-bottom:12px; }
.doc-hero .version { font-family:'Roboto',sans-serif; font-size:13px; color:var(--paper); }

.doc-body { max-width:860px; margin:0 auto; padding:56px 32px 75px; background: var(--paper); }

.doc-body ol { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.doc-body > ol { counter-reset: item; }
.doc-body > ol > li { counter-increment: item; padding: 0 0 16px 44px !important; position: relative !important; border-bottom: none !important; font-family: 'Roboto', sans-serif !important; font-size: 15px !important; line-height: 1.8 !important; color: var(--onyx) !important; text-align: justify !important; }
.doc-body > ol > li::before { content: counter(item) "."; position: absolute !important; left: 0 !important; top: 0 !important; font-family: 'Manrope', sans-serif !important; font-weight: 700 !important; font-size: 15px !important; color: var(--midnight) !important; }
.doc-body > ol > li > ol { margin-top: 16px !important; counter-reset: subitem !important; }
.doc-body > ol > li > ol > li { counter-increment: subitem; padding: 0 0 16px 44px !important; position: relative !important; border-bottom: none !important; font-family: 'Roboto', sans-serif !important; font-size: 15px !important; line-height: 1.8 !important; color: var(--onyx) !important; text-align: justify !important; }
.doc-body > ol > li > ol > li:last-child { padding-bottom: 0 !important; }
.doc-body > ol > li > ol > li::before { content: counter(item) "." counter(subitem) "."; position: absolute !important; left: 0 !important; top: 0 !important; font-family: 'Manrope', sans-serif !important; font-weight: 700 !important; font-size: 15px !important; color: var(--midnight) !important; }

.doc-section-title { font-family: 'Manrope', sans-serif !important; font-size: 20px !important; font-weight: 800 !important; color: var(--midnight) !important; margin: 48px 0 16px 0 !important; padding-bottom: 12px !important; border-bottom: 2px solid rgba(3,32,61,0.1) !important; }

@media (max-width: 580px) {
  .doc-body > ol > li, .doc-body > ol > li > ol > li { padding-left: 36px !important; }
  .doc-section-title { font-size: 18px !important; }
}

/* ── PRZEŁĄCZNIK JĘZYKA (LANG SWITCHER) ── */
.lang-switch {
  position: relative;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

body.home #navbar .lang-switch { color: var(--paper); }
body.home #navbar.is-light .lang-switch,
body.subpage #navbar .lang-switch { color: var(--midnight); }

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color var(--t);
}
.lang-current:hover { color: var(--camel); }

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%) translateY(10px);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(3,32,61,0.12);
  border: 1px solid rgba(3,32,61,0.06);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  min-width: 120px;
  overflow: hidden;
}

.lang-switch:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 12px 16px;
  color: var(--midnight) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: background var(--t), color var(--t);
}

.lang-dropdown a:hover {
  background: rgba(217,168,102,0.1);
  color: var(--camel) !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--midnight);
  color: var(--paper);
  padding: 8px 20px;
  border-radius: 0 0 8px 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.lang-dropdown.touch-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(3, 32, 61, 0.15); /* Zmiana na granat z przezroczystością */
  cursor: pointer;
  padding: 0;
  transition: background var(--t), transform var(--t);
}
.carousel-dot.active {
  background: var(--camel);
  transform: scale(1.3);
}
.carousel-dot:hover { 
  background: rgba(3, 32, 61, 0.35); /* Zmiana na ciemniejszy granat przy najeżdżaniu */
}

/* ==========================================================================
   POPRAWKI ESTETYCZNE I UX
   ========================================================================== */

/* ── Pkt 005: Czytelne linki w zgodach RODO na tle Oxford ── */
#kontakt .form-consent a,
#contact .form-consent a {
  color: var(--blue-steel);
  font-weight: 600;
}
#kontakt .form-consent a:hover,
#contact .form-consent a:hover {
  color: var(--midnight);
}

/* ── Pkt 006: Podniesienie kadru w pływających awatarach (Słuchawka) ── */
.fp-item img {
  object-position: center 15%; /* Kadruje wyżej, by nie ucinać czoła */
}

/* ==========================================================================
   DEDYKOWANY TRYB POZIOMY DLA SMARTFONÓW (LANDSCAPE)
   ========================================================================== */
@media (max-width: 900px) and (orientation: landscape) {
  
  /* ── Pkt 001: Profile (2 kolumny, brak sticky, naturalny scroll) ── */
  .profile-body { flex-direction: row; align-items: flex-start; gap: 32px; padding: 0 24px; }
  .profile-left { position: static; width: 40%; max-height: none; height: auto; flex-direction: column; align-items: stretch; padding: 32px 0; overflow: visible; }
  .profile-photo-wrap { max-width: 100%; margin-bottom: 20px; max-height: none; }
  .profile-left-contact { flex-direction: column; align-items: flex-start; flex: 1; }
  .profile-right { min-height: auto; padding-left: 0; padding-top: 32px; padding-bottom: 32px; width: 60%; overflow: visible; }
  .profile-content { padding: 0; max-width: 100%; }

  /* ── Pkt 007: O Nas (Powrót do 2 kolumn, tekst obok zdjęcia) ── */
  .about-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-img-col { padding: 32px 0 32px 24px; min-height: 280px; height: auto; }
  .about-img-inner { min-height: 100%; height: 100%; border-radius: 8px; overflow: hidden; }
  .about-text-col { padding: 32px 24px 32px 0; }

  /* ── Pkt 003: Specjalizacje (Wymuszenie 5 kafelków w rzędzie i szachownicy) ── */
  .spec-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 8px; }
  .spec-tile { padding: 12px 6px; aspect-ratio: 1 / 1; min-height: auto; }
  .spec-tile h4 { 
    font-size: 11.5px; 
    line-height: 1.35; 
    text-align: center; 
    word-wrap: normal; 
    hyphens: none; 
  } 
  .spec-tile:nth-child(odd)  { background: var(--midnight) !important; }
  .spec-tile:nth-child(even) { background: var(--oxford) !important; }
  .spec-tile:nth-child(odd) h4  { color: var(--paper) !important; }
  .spec-tile:nth-child(even) h4 { color: var(--midnight) !important; }

  /* ── Pkt 002: Stopka (Wyrównanie Social Mediów do prawej krawędzi) ── */
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-social-wrap { grid-column: span 2; justify-content: flex-end !important; margin-top: 0; width: 100%; padding-right: 0; }
} /* <-- TUTAJ ZAMYKAMY TRYB POZIOMY SMARTFONÓW */

/* ==========================================================================
   UKRYWANIE KROPEK KARUZELI NA DESKTOPIE
   ========================================================================== */
@media (min-width: 901px) {
  .carousel-dots { 
    display: none; 
  }
}
/* ── TYPOGRAFIA: WDOWY ── */
p, li {
  text-wrap: pretty;
}

/* ── FIELD ERROR MESSAGES ───── */
.field-error { display: none; font-size: 12px; color: #a32d2d; margin-top: 4px; font-family: 'Roboto', sans-serif; line-height: 1.4; }
.field-error.visible { display: block; }

/* ==========================================================================
   POPRAWKI DLA WERSJI MOBILNEJ PIONOWEJ (PORTRAIT) - O NAS
   ========================================================================== */
@media (max-width: 900px) and (orientation: portrait) {
  /* 1. Usunięcie asymetrycznego marginesu i włączenie sterowania kolejnością */
  .about-grid { 
    padding: 0;
    display: flex; /* Zmieniamy na flex, żeby łatwiej sterować kolejnością kolumn */
    flex-direction: column;
  }

/* Kolejność: Tekst idzie na górę (1), zdjęcie na dół (2) */
  .about-text-col {
    order: 1;
    padding-top: 48px; /* <-- TO DODAJE ODSTĘP OD ZDJĘCIA HERO */
    padding-bottom: 24px; /* Zmniejszamy dolny odstęp, by zbliżyć tekst do zdjęcia pod nim */
  }

  .about-img-col {
    order: 2;
    padding-top: 0; /* Usuwamy górny padding, bo nad zdjęciem jest już margines tekstu */
    padding-bottom: 48px; /* Odstęp od kolejnej sekcji */
  }
  
  /* 2. Wyjustowanie tekstu w punktach (filarach) */
  .pillar-content p { 
    text-align: justify !important; 
  }
  
  /* 3. Zrównanie krawędzi nagłówka i kółek/tekstu z granatowym boksem */
  .dlaczego-label { 
    padding-left: 0; 
  }
  
  .pillar { 
    padding-left: 0; 
    padding-right: 0; 
  }
}