/* ============================================
   KRESKI — Strony contentowe (page-content.php)
   /wp-content/themes/flatsome-child/css/content.css
   ============================================ */

/* ── Hero slim (dla FAQ) ── */
.kr-cp-hero-slim {
  background: var(--gray-l);
  border-bottom: 1px solid var(--gray-b);
  padding: 32px 0;
}
.kr-cp-hero-slim .kr-cp-label { color: var(--red); }
.kr-cp-hero-slim .kr-cp-h1 {
  color: var(--black) !important;
  font-size: clamp(20px, 2.5vw, 30px) !important;
  margin: 0 !important;
}
.kr-cp-hero-slim .kr-cp-intro { color: var(--gray-m); }

/* ── FAQ dwukolumnowy layout ── */
.kr-cp-faq-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

/* Lewy panel — jasny z czerwonym akcentem */
.kr-cp-faq-sidebar-inner {
  background: var(--white);
  border: 1.5px solid var(--gray-b);
  border-top: 4px solid var(--red);
  padding: 32px 28px;
  position: sticky;
  top: 80px;
}
.kr-cp-faq-sidebar-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: 10px;
}
.kr-cp-faq-sidebar-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--black) !important;
  text-transform: uppercase !important;
  margin: 0 0 12px !important;
  line-height: 1.2 !important;
}
.kr-cp-faq-sidebar-inner p {
  font-size: 13px;
  color: var(--gray-m);
  line-height: 1.7;
  margin-bottom: 20px;
}
.kr-cp-faq-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-b);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kr-cp-faq-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-m);
}
.kr-cp-faq-contact-item svg { flex-shrink: 0; color: var(--red); }
.kr-cp-faq-contact-item a {
  color: var(--black);
  text-decoration: none;
  transition: color .2s;
  font-weight: 600;
}
.kr-cp-faq-contact-item a:hover { color: var(--red); }

/* Accordion — tylko minimalne poprawki */
.kr-cp-faq-content .accordion { border-top: 1px solid var(--gray-b); }
.kr-cp-faq-content .accordion-item { border-bottom: 1px solid var(--gray-b); }
.kr-cp-faq-content .accordion-item > a { font-weight: 700 !important; font-size: 14px !important; color: var(--black) !important; }
.kr-cp-faq-content .accordion-item > a:hover { color: var(--red) !important; }
.kr-cp-faq-content .accordion-inner p { font-size: 14px; line-height: 1.75; color: #444; }

@media (max-width: 900px) {
  .kr-cp-faq-layout { grid-template-columns: 1fr; }
  .kr-cp-faq-sidebar-inner { position: static; }
}

/* ── Wrapper ── */
.kr-cp { font-family: var(--font); color: var(--black); }
.kr-cp-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.kr-cp-breadcrumb {
  padding: 12px 0;
  background: var(--gray-l);
  border-bottom: 1px solid var(--gray-b);
  font-size: 12px;
  color: var(--gray-m);
}
.kr-cp-breadcrumb a { color: var(--gray-m); text-decoration: none; transition: color .2s; }
.kr-cp-breadcrumb a:hover { color: var(--red); }
.kr-cp-bc-sep { margin: 0 6px; }
.kr-cp-breadcrumb span:last-child { color: var(--black); font-weight: 600; }

/* ── Hero ── */
.kr-cp-hero {
  background: var(--black);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
  text-align: left !important;
}
.kr-cp-hero--img {
  background-size: cover;
  background-position: center;
}
.kr-cp-hero--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(4,10,20,.88) 0%, rgba(6,14,24,.70) 60%, rgba(4,10,20,.50) 100%);
}
.kr-cp-hero .kr-cp-inner { position: relative; z-index: 1; max-width: 760px; }

.kr-cp-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: 10px;
}
.kr-cp-h1 {
  font-size: clamp(24px, 3vw, 38px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 14px !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}
.kr-cp-intro {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin: 0;
  max-width: 600px;
}

/* ── Body ── */
.kr-cp-body { padding: 56px 0 80px; background: var(--white); }

/* Layout: full */
.kr-cp-body--full .kr-cp-body-inner { display: block; }
.kr-cp-body--full .kr-cp-main { max-width: 860px; }

/* Layout: faq */
.kr-cp-body--faq .kr-cp-body-inner { display: block; }
.kr-cp-body--faq .kr-cp-main { max-width: 860px; }

/* Layout: sidebar */
.kr-cp-body--sidebar .kr-cp-body-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* Layout: team */
.kr-cp-body--team .kr-cp-body-inner { display: block; }

/* Layout: partners */
.kr-cp-body--partners .kr-cp-body-inner { display: block; }

/* ── Sekcje treści ── */
.kr-cp-section { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--gray-b); }
.kr-cp-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.kr-cp-section-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: var(--black) !important;
  margin: 0 0 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid var(--red) !important;
  display: inline-block !important;
}

/* Zdjęcie w sekcji */
.kr-cp-section-img { margin-bottom: 20px; }
.kr-cp-section-img img { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.kr-cp-section-img--right { float: right; width: 45%; margin: 0 0 20px 28px; }
.kr-cp-section-img--right img { max-height: 280px; }

.kr-cp-section-cta { margin-top: 20px; }

/* ── Content (WYSIWYG) ── */
.kr-cp-content { font-size: 15px; line-height: 1.75; color: #333; }
.kr-cp-content--lead { margin-bottom: 40px; font-size: 16px; color: var(--gray-m); }
.kr-cp-content h2 { font-size: 18px; font-weight: 800; color: var(--black); margin: 28px 0 12px; text-transform: uppercase; }
.kr-cp-content h3 { font-size: 15px; font-weight: 700; color: var(--black); margin: 20px 0 8px; }
.kr-cp-content p { margin: 0 0 14px; }
.kr-cp-content ul, .kr-cp-content ol { padding-left: 20px; margin: 0 0 16px; }
.kr-cp-content li { margin-bottom: 6px; }
.kr-cp-content a { color: var(--red); text-decoration: underline; }
.kr-cp-content a:hover { color: var(--red-d); }
.kr-cp-content strong { font-weight: 700; color: var(--black); }
.kr-cp-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.kr-cp-content table th { background: var(--black); color: #fff; padding: 10px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.kr-cp-content table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-b); }
.kr-cp-content table tr:nth-child(even) td { background: var(--gray-l); }

/* ── CTA block ── */
.kr-cp-cta-block {
  margin-top: 48px;
  padding: 32px;
  background: var(--gray-l);
  border-left: 4px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.kr-cp-cta-block p { margin: 0; font-size: 15px; font-weight: 600; color: var(--black); flex: 1; }

/* ── FAQ ── */
.kr-cp-faq { display: flex; flex-direction: column; gap: 0; }
.kr-cp-faq-item { border-bottom: 1px solid var(--gray-b); }
.kr-cp-faq-item:first-child { border-top: 1px solid var(--gray-b); }
.kr-cp-faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  text-align: left;
  transition: color .2s;
}
.kr-cp-faq-q:hover { color: var(--red); }
.kr-cp-faq-q svg { flex-shrink: 0; transition: transform .3s; color: var(--red); }
.kr-cp-faq-item.open .kr-cp-faq-q { color: var(--red); }
.kr-cp-faq-item.open .kr-cp-faq-q svg { transform: rotate(180deg); }
.kr-cp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.kr-cp-faq-a .kr-cp-content { padding-bottom: 20px; }

/* ── Team ── */
.kr-cp-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.kr-cp-team-card { border: 1.5px solid var(--gray-b); overflow: hidden; }
.kr-cp-team-photo { height: 220px; overflow: hidden; }
.kr-cp-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.kr-cp-team-card:hover .kr-cp-team-photo img { transform: scale(1.05); }
.kr-cp-team-body { padding: 16px; }
.kr-cp-team-name { font-size: 14px; font-weight: 800; color: var(--black); margin-bottom: 4px; }
.kr-cp-team-role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 10px; }
.kr-cp-team-email { display: block; font-size: 12px; color: var(--gray-m); margin-bottom: 4px; text-decoration: none; transition: color .2s; }
.kr-cp-team-email:hover { color: var(--red); }
.kr-cp-team-linkedin { font-size: 12px; font-weight: 700; color: var(--red); text-decoration: none; }

/* ── Partners ── */
.kr-cp-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.kr-cp-partner-card {
  border: 1.5px solid var(--gray-b);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.kr-cp-partner-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); border-color: var(--red); }
.kr-cp-partner-logo { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.kr-cp-partner-logo img { max-height: 60px; max-width: 140px; width: auto; object-fit: contain; filter: grayscale(1) opacity(.6); transition: filter .3s; }
.kr-cp-partner-card:hover .kr-cp-partner-logo img { filter: grayscale(0) opacity(1); }
.kr-cp-partner-name { font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.kr-cp-partner-desc { font-size: 12px; color: var(--gray-m); line-height: 1.5; }

/* ── Sidebar ── */
.kr-cp-sidebar { position: sticky; top: 80px; }
.kr-cp-sidebar-nav { border: 1.5px solid var(--gray-b); margin-bottom: 20px; }
.kr-cp-sidebar-nav-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray-m);
  padding: 12px 16px;
  background: var(--gray-l);
  border-bottom: 1px solid var(--gray-b);
}
.kr-cp-sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.kr-cp-sidebar-nav li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-d);
  border-bottom: 1px solid var(--gray-b);
  transition: color .2s, padding-left .15s, background .15s;
  text-decoration: none;
}
.kr-cp-sidebar-nav li:last-child a { border-bottom: none; }
.kr-cp-sidebar-nav li a:hover,
.kr-cp-sidebar-nav li.active a { color: var(--red); padding-left: 22px; background: #fff8f8; }
.kr-cp-sidebar-nav li.active a { font-weight: 700; border-left: 3px solid var(--red); }

.kr-cp-sidebar-cta {
  background: var(--black);
  padding: 24px;
  color: rgba(255,255,255,.55);
}
.kr-cp-sidebar-cta-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 8px; }
.kr-cp-sidebar-cta-title { font-size: 16px; font-weight: 800; color: #fff; text-transform: uppercase; margin-bottom: 8px; }
.kr-cp-sidebar-cta p { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.kr-cp-sidebar-cta .kr-btn-red { padding: 12px 20px !important; font-size: 12px !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .kr-cp-team-grid    { grid-template-columns: repeat(3, 1fr); }
  .kr-cp-partners-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .kr-cp-body--sidebar .kr-cp-body-inner { grid-template-columns: 1fr; }
  .kr-cp-sidebar { position: static; }
  .kr-cp-team-grid    { grid-template-columns: repeat(2, 1fr); }
  .kr-cp-partners-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .kr-cp-inner { padding: 0 16px; }
  .kr-cp-hero  { padding: 40px 0 32px; }
  .kr-cp-body  { padding: 40px 0 60px; }
  .kr-cp-team-grid     { grid-template-columns: 1fr; }
  .kr-cp-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .kr-cp-section-img--right { float: none; width: 100%; margin: 0 0 16px 0; }
  .kr-cp-cta-block { flex-direction: column; align-items: flex-start; }
}
