/* ===================== RESET & TOKENS ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:    #c0392b;
  --red2:   #a93226;
  --yellow: #f5a623;
  --black:  #0a0a0a;
  --dark:   #1a1a1a;
  --white:  #ffffff;
  --light:  #f5f5f5;
  --gray:   #777777;
  --text:   #333333;
  --border: #e0e0e0;
  --max:    1200px;
}
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--text); font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 30px; }

/* ===================== TOPBAR ===================== */
.topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 36px; }
.topbar-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray); }
.topbar-item svg { width: 18px; height: 18px; fill: var(--gray); flex-shrink: 0; }
.topbar-item strong { font-size: 16px; color: var(--text); font-weight: 700; }
.topbar-item a { color: var(--text); font-weight: 700; font-size: 16px; }
.topbar-item a:hover { color: var(--red); }

/* ===================== HEADER ===================== */
header { background: var(--white); border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* LOGO */
.logo { display: flex; align-items: center; gap: 6px; }
.logo svg { width: 44px; height: 44px; }
.logo-text { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: 3px; color: var(--text); text-transform: uppercase; line-height: 1; }
.logo-text small { display: block; font-size: 11px; letter-spacing: 6px; font-weight: 400; color: var(--gray); margin-top: 2px; }

/* NAV */
nav { display: flex; align-items: center; }
nav a { font-size: 12.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .4px; padding: 8px 11px; transition: color .15s, background .15s; border-radius: 3px; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--red2); background: rgba(192,57,43,.07); }
.nav-search-btn { background: none; border: none; cursor: pointer; padding: 8px; display: flex; align-items: center; margin-left: 4px; }
.nav-search-btn svg { width: 17px; height: 17px; stroke: var(--gray); fill: none; }
.nav-search-btn:hover svg { stroke: var(--red); }

/* hamburger */
#nav-toggle { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero { background: var(--dark); padding: 40px 0; color: var(--white); }
.page-hero h1 { font-family: 'Raleway', sans-serif; font-size: clamp(24px, 4vw, 40px); font-weight: 800; line-height: 1.1; }
.page-hero .breadcrumb { font-size: 13px; color: #aaa; margin-top: 10px; }
.page-hero .breadcrumb a { color: var(--yellow); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* ===================== SECTIONS ===================== */
.section { padding: 68px 0; }
.section-alt { background: var(--light); }
.section-center { text-align: center; }
h2.s-title { font-family: 'Raleway', sans-serif; font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--text); margin-bottom: 8px; }
h3.s-sub { font-size: 16px; font-weight: 400; color: var(--gray); margin-bottom: 20px; }
.divider { width: 50px; height: 3px; background: var(--red); margin: 16px auto 32px; }
.divider.left { margin-left: 0; }
.s-text { color: var(--gray); font-size: 14px; line-height: 1.85; max-width: 780px; }
.s-text + .s-text { margin-top: 14px; }
.s-text a { color: var(--red); }
.s-text strong { color: var(--text); }

/* ===================== TWO-COL ===================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.col-img img { border-radius: 3px; width: 100%; box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* ===================== BUTTONS ===================== */
.btn { display: inline-block; padding: 12px 28px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; border-radius: 3px; transition: background .2s, color .2s; cursor: pointer; border: 2px solid transparent; }
.btn-red  { background: var(--red);  color: var(--white); border-color: var(--red);  }
.btn-red:hover  { background: var(--red2); border-color: var(--red2); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ===================== PRICING CARDS ===================== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; align-items: stretch; }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 28px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
  /* flex column so button sticks to bottom */
  display: flex;
  flex-direction: column;
}
.price-card { border-top: 4px solid var(--red) !important; }
.price-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.1); border-color: var(--red); }
.price-card .plan-name { font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.price-card .plan-sub  { font-size: 12px; color: var(--gray); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .5px; }
.price-card .plan-price { font-family: 'Raleway', sans-serif; font-size: 38px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 4px; }
.price-card .plan-price span { font-size: 16px; color: var(--gray); font-weight: 400; }
.price-card ul { margin: 20px 0 28px; text-align: left; flex: 1; }
.price-card ul li { font-size: 13px; color: var(--gray); padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-start; }
.price-card ul li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; }
/* Button always at bottom */
.price-card .btn,
.price-card .btn-outline,
.price-card .btn-red { margin-top: auto; align-self: center; }

/* ===================== CHECK LIST ===================== */
.check-list { list-style: none; margin-top: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--gray); padding: 9px 0; border-bottom: 1px solid var(--border); }
.check-list li::before { content: 'Z'; width: 22px; height: 22px; background: var(--red); color: var(--white); border-radius: 3px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* ===================== PERSON CARD ===================== */
.person-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.person-card { display: flex; gap: 28px; align-items: flex-start; }
.person-card img { width: 140px; height: 180px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.person-card h3 { font-family: 'Raleway', sans-serif; font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.person-card .person-title { font-size: 12px; color: var(--red); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; margin-bottom: 12px; }
.person-card p { font-size: 13px; color: var(--gray); line-height: 1.7; }
.person-card .person-stats { margin-top: 14px; }
.person-card .person-stats li { font-size: 13px; color: var(--gray); padding: 4px 0; }
.person-card .person-stats li strong { color: var(--red); }

/* ===================== MEDIA GRID ===================== */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.media-item { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: box-shadow .2s; }
.media-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.media-item img { width: 100%; height: 160px; object-fit: cover; }
.media-item .media-body { padding: 16px; }
.media-item h4 { font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.media-item p { font-size: 12px; color: var(--gray); }
.media-item a.media-link { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.media-item a.media-link:hover { text-decoration: underline; }

/* ===================== CLIENTS LOGOS ===================== */
.clients-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; margin-top: 40px; }
.client-item { display: flex; align-items: center; justify-content: center; padding: 14px 20px; border: 1px solid var(--border); border-radius: 4px; background: var(--white); height: 68px; min-width: 120px; transition: border-color .2s, box-shadow .2s; }
.client-item:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.client-item img { max-width: 110px; max-height: 44px; object-fit: contain; }

/* ===================== CONTACT FORM ===================== */
.contact-form { background: var(--light); padding: 36px; border-radius: 4px; border-left: 4px solid var(--red); }
.contact-form h3 { font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 3px; font-family: 'Open Sans', sans-serif; font-size: 14px; color: var(--text);
  background: var(--white); transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===================== JOB CARDS ===================== */
.job-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 4px; padding: 32px; margin-bottom: 24px; }
.job-card h3 { font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.job-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 18px 0 10px; }
.job-card ul { list-style: disc; padding-left: 20px; }
.job-card ul li { font-size: 14px; color: var(--gray); padding: 3px 0; }
.job-card .job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.job-tag { background: rgba(192,57,43,.08); color: var(--red); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: .3px; }

/* ===================== BENEFITS ===================== */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.benefit-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; }
.benefit-icon { width: 40px; height: 40px; background: rgba(192,57,43,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-icon svg { width: 20px; height: 20px; fill: var(--red); }
.benefit-item p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ===================== CTA BAND ===================== */
.cta-band { background: var(--dark); padding: 48px 0; text-align: center; color: var(--white); }
.cta-band h2 { font-family: 'Raleway', sans-serif; font-size: clamp(20px, 3.5vw, 36px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: #aaa; font-size: 15px; margin-bottom: 28px; }

/* ===================== PARTNERS ===================== */
.partners-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; margin-top: 40px; }
.partner-item { display: flex; align-items: center; justify-content: center; padding: 14px 22px; border: 1px solid var(--border); border-radius: 3px; background: var(--white); min-width: 130px; height: 68px; transition: border-color .2s, box-shadow .2s; }
.partner-item:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.partner-item img { max-width: 110px; max-height: 44px; object-fit: contain; }

/* ===================== FOOTER ===================== */
footer { background: var(--black); color: #888; padding: 52px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  align-items: start;
}

/* Brand column */
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
}
.footer-tagline {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}
.footer-addr {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Social icons – square buttons like original */
.f-social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.f-social a {
  width: 32px;
  height: 32px;
  border: 1px solid #444;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.f-social a:hover { border-color: var(--red); background: rgba(192,57,43,.12); }
.f-social svg { width: 13px; height: 13px; fill: #888; transition: fill .2s; }
.f-social a:hover svg { fill: var(--white); }

/* Nav columns */
.footer-col h5 {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col p,
.footer-col a {
  display: block;
  font-size: 13px;
  color: #888;
  line-height: 2;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #555;
}
.footer-bottom a { color: var(--red); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .person-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  nav { display: none; }
  #nav-toggle:checked ~ nav { display: flex; flex-direction: column; position: fixed; inset: 0; background: var(--white); justify-content: center; align-items: center; gap: 4px; z-index: 300; }
  #nav-toggle:checked ~ nav a { font-size: 18px; padding: 12px 20px; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar .wrap { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .person-card { flex-direction: column; }
  .person-card img { width: 100%; height: 200px; }
}

/* ===================== RED CTA BAND (jak na oryginale) ===================== */
.cta-red-band {
  background: var(--red);
  padding: 52px 0;
  text-align: center;
}
.cta-red-band h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.cta-red-band p {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
}
.btn-cta-white {
  display: inline-block;
  padding: 13px 36px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 3px;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.btn-cta-white:hover {
  background: var(--white);
  color: var(--red);
}

/* ===================== REKOMENDACJE – dokumenty w rzędzie ===================== */
.rekomendacje-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
}
.rekomendacja-thumb {
  display: block;
  width: 140px;
  height: 180px;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
  background: var(--white);
}
.rekomendacja-thumb:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  transform: translateY(-3px);
}
.rekomendacja-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
@media (max-width: 680px) {
  .rekomendacja-thumb { width: 120px; height: 155px; }
}

/* ===================== 3 INFO BOXES (strona główna) ===================== */
.three-boxes {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
}
.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
}
.info-box-icon {
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-box-icon svg {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  fill: #5b9bd5;
  display: block;
}
.info-box-title {
  font-family: 'Raleway', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.info-box-text {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}
.info-box-text a { color: #4a90d9; }
.info-box-text a:hover { text-decoration: underline; }
.info-box .btn {
  margin-top: auto;
}
@media (max-width: 768px) {
  .three-boxes { grid-template-columns: 1fr !important; }
}
