/* ========= Reset + zmienne ========= */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@300;400;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/satoshi');

:root {
   --bg: #ffffff;
   --text: #111827;
   --muted: #6b7280;
   --muted-2: #374151;
   --line: #e5e7eb;
   --brand: #111111;
   --accent: #111111;
   /* Monochrome premium feel */
   --radius: 16px;
   --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

*,
:before,
:after {
   box-sizing: border-box
}

html,
body {
   margin: 0;
   padding: 0
}

img {
   max-width: 100%;
   height: auto;
   display: block
}

a {
   color: inherit;
   text-decoration: none
}

ul,
ol {
   margin: 0;
   padding: 0
}

body {
   font-family: 'Satoshi', sans-serif;
   background: var(--bg);
   color: var(--text);
   line-height: 1.6;
}

/* .container reset removed to use style.css standard */

.skip-link {
   position: absolute;
   left: -9999px;
   top: auto;
   width: 1px;
   height: 1px;
   overflow: hidden;
   z-index: 9999;
}

.skip-link:focus-visible {
   position: static;
   width: auto;
   height: auto;
   padding: .5rem 1rem;
   background: #fff;
   border: 1px solid var(--accent);
}

.sr-only {
   /* Screen Reader Only */
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border-width: 0;
}

/* ========= Header ========= */
.site-header {
   background: rgba(255, 255, 255, 0.8);
   flex-shrink: 0;
   position: sticky;
   top: 10px;
   z-index: 9999;
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   height: 60px;
   display: flex;
   align-items: center;
   width: 95vw;
   max-width: 1300px;
   margin: 0 auto;
   border-radius: 25px;
}

.site-header .container {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 1.5rem;
   height: 100%;
   width: 100%;
}

.logo {
   width: 150px;
   height: auto;
   display: block
}

.site-header .container>a:first-child {
   display: flex;
   align-items: center;
   height: 100%;
}

.site-nav {
   position: absolute;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: 2rem
}

.site-nav a {
   font-weight: 500;
   font-size: .8rem;
   color: #6b7280
}

.site-nav a:hover {
   color: #111
}

.site-nav a.is-active {
   font-weight: 700;
   color: #000
}

.contact-link {
   font-weight: 500;
   font-size: .8rem;
   color: #111
}



/* ========= Hero ========= */
.cs-hero {
   position: relative;
   padding: 4rem 0 3rem;
   overflow: hidden;
}

.cs-hero h1 {
   font-size: 2.2rem;
   max-width: 800px;
   margin-bottom: 0;
   letter-spacing: normal;
   font-weight: 400;
   color: #111;
   line-height: 1.1;
}

@media (min-width: 1024px) {
   .cs-hero h1 {
      font-size: 3rem;
   }
}

.cs-hero h1 .label {
   display: block;
   font-family: 'Satoshi', sans-serif;
   font-size: 0.65rem;
   letter-spacing: 0.1em;
   color: #6b7280;
   margin-bottom: 0.5rem;
   text-transform: uppercase;
   font-weight: 400;
   /* Resetting weight to match reference */
}

.cs-hero .lead {
   font-size: 1rem;
   /* Reset to base size or similar to reference */
   color: #374151;
   max-width: 640px;
   font-weight: 400;
   line-height: 1.5;
   margin-top: 0.75rem;
}

.grid-overlay {
   position: absolute;
   inset: 0;
   background-image: linear-gradient(to right, #eef0f3 1px, transparent 1px);
   background-size: calc(100%/6) 100%;
   pointer-events: none;
   z-index: 0
}

.cs-hero>* {
   position: relative;
   z-index: 1
}

/* ========= Metrics ========= */
.metrics {
   margin-bottom: 4rem;
}

.metric-list {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 1.5rem;
}

.metric {
   background: #fff;
   border: 1px solid var(--line);
   border-radius: var(--radius);
   padding: 1.5rem;
   display: flex;
   flex-direction: column;
   justify-content: center;
   min-height: 140px;
   box-shadow: var(--shadow);
   transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric:hover {
   transform: translateY(-2px);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.metric__value {
   font-family: 'Satoshi', sans-serif;
   /* Keep numbers modern sans-serif */
   font-size: 2.5rem;
   font-weight: 700;
   color: #000;
   margin-bottom: 0.25rem;
   line-height: 1;
}

.metric__label {
   font-size: 0.875rem;
   color: var(--muted);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   font-weight: 500;
}

/* Style dla Wykresu (Wzrost Automatyzacji) */
.metric__chart-wrapper {
   padding: 0;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   height: 100%;
}

.metric__chart {
   height: 100px;
   display: flex;
   align-items: flex-end;
   justify-content: space-evenly;
   padding: 10px 15px 0;
   margin-bottom: 5px;
}

.metric__chart::before,
.metric__chart::after,
.metric__chart:nth-child(1)::before {
   content: '';
   display: block;
   width: 20%;
   border-radius: 4px 4px 0 0;
   transition: height 0.8s ease-out;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
   position: relative;
}

.metric__chart:nth-child(1)::before {
   content: "10%";
   height: 10%;
   background: var(--accent);
   order: 1;
   background-color: var(--accent);
   color: var(--text);
   font-size: 0.7rem;
   padding-top: 5px;
   text-align: center;
}

.metric__chart::before {
   content: "40%";
   height: 40%;
   background: var(--accent);
   order: 2;
   background-color: var(--accent);
   color: var(--text);
   font-size: 0.7rem;
   padding-top: 5px;
   text-align: center;
}

.metric__chart::after {
   content: "90%";
   height: 90%;
   background: var(--text);
   order: 3;
   color: #fff;
   font-size: 0.7rem;
   padding-top: 5px;
   text-align: center;
}

.metric__chart-wrapper .metric__label {
   margin-top: 0.5rem;
}


@media(max-width:900px) {
   .metric-list {
      grid-template-columns: repeat(2, 1fr)
   }
}

/* ========= Content Grid ========= */
.content-grid {
   display: grid;
   grid-template-columns: 1fr 300px;
   gap: 4rem;
   padding-bottom: 4rem;
   align-items: start;
}

@media(max-width:1000px) {
   .content-grid {
      grid-template-columns: 1fr
   }
}

.prose {
   background: transparent;
   max-width: 65ch;
   /* max-width set for readability */
}

/* Typography wewnątrz artykułu */
.prose h2 {
   font-size: 1.75rem;
   margin-top: 3rem;
   margin-bottom: 1rem;
   border-bottom: 1px solid var(--line);
   padding-bottom: 0.5rem;
}

.prose h3 {
   font-size: 1.1rem;
   margin: 1.2rem 0 .6rem
}

@media (min-width: 1024px) {
   .prose h3 {
      font-size: 1.4rem;
   }
}

.prose p {
   margin-bottom: 1.5rem;
   font-size: 0.95rem;
   color: var(--muted-2);
   line-height: 1.7;
   text-align: justify;
}

.prose ul,
.prose ol {
   margin-bottom: 1.5rem;
   padding-left: 1.5rem;
}

.prose li {
   margin-bottom: 0.5rem;
   color: var(--muted-2);
}

/* Trio Problem-Solution-Efekt */
.problem-solution-trio {
   margin: 3rem 0;
   padding: 2rem;
   background: #fafafa;
   /* Subtle grey instead of gold */
   border-radius: var(--radius);
   border: 1px solid var(--line);
}

.problem-solution-trio h2 {
   margin-top: 0;
   border-bottom: none;
   font-size: 1.5rem;
   margin-bottom: 1.5rem;
   color: var(--brand);
}

/* --- USUNIĘTO: .simple-process-block i .process-item. Teraz to są zwykłe paragrafy. --- */


/* ========= Stack (chips) – (bez zmian) ========= */
.chips {
   display: flex;
   flex-wrap: wrap;
   gap: .5rem;
   margin: .5rem 0 1rem;
   list-style: none
}

.chips li {
   list-style: none;
   border: 1px solid var(--line);
   border-radius: 999px;
   padding: .4rem .7rem;
   background: #fff;
   font-weight: 500
}

.prose .chips {
   padding-left: 0;
   margin-left: 0
}

.prose .chips li {
   margin-left: 0
}

/* ========= Checklist – (drobna optymalizacja) ========= */
.checklist {
   list-style: none;
   padding-left: 0;
   margin-left: 0;
}

.checklist li {
   list-style: none;
   position: relative;
   padding-left: 26px;
   margin: .4rem 0;
}

.checklist li::before {
   content: "";
   position: absolute;
   left: 0;
   top: .45rem;
   width: 14px;
   height: 14px;
   border-radius: 3px;
   border: 1.6px solid var(--accent)
}

.checklist li::after {
   content: "";
   position: absolute;
   left: 4px;
   top: .58rem;
   width: 6px;
   height: 9px;
   border-right: 2px solid var(--accent);
   border-bottom: 2px solid var(--accent);
   transform: rotate(45deg)
}

/* ========= Galeria (bez zmian) ========= */
.gallery {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 12px;
   margin: .5rem 0
}

.gallery figure {
   border: 1px solid var(--line);
   border-radius: 12px;
   overflow: hidden;
   background: #fff;
   box-shadow: var(--shadow)
}

.gallery figcaption {
   font-size: .9rem;
   color: var(--muted);
   padding: 8px 10px;
   border-top: 1px solid var(--line)
}

@media(max-width:900px) {
   .gallery {
      grid-template-columns: 1fr 1fr
   }
}

@media(max-width:560px) {
   .gallery {
      grid-template-columns: 1fr
   }
}

/* ========= Sidebar ========= */
.sidebar {
   position: sticky;
   top: 80px;
   /* Offset for header */
   max-height: calc(100vh - 100px);
   /* Constrain height with padding for header */
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   /* Align to top instead of center */
   padding-top: 2rem;
   /* Add top padding for visual balance */
   gap: 2rem;
}

/* Better positioning for large screens (4K) */
@media (min-width: 1600px) {
   .sidebar {
      top: 170px;
      /* More offset on large screens */
      max-height: calc(100vh - 200px);
      /* Account for more spacing */
      padding-top: 3rem;
      /* Extra padding for visual balance */
   }
}

/* Reset for mobile if needed, though usually sidebar stacks */
@media (max-width: 900px) {
   .sidebar {
      height: auto;
      position: relative;
      top: auto;
      justify-content: flex-start;
   }
}

.card {
   background: #fff;
   border: 1px solid var(--line);
   border-radius: var(--radius);
   padding: 1.5rem;
   box-shadow: var(--shadow);
}

.card__eyebrow {
   font-size: 0.75rem;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: var(--muted);
   margin-bottom: 1rem;
   font-family: 'Satoshi', sans-serif;
   font-weight: 700;
}

.kv {
   list-style: none;
}

.kv li {
   display: flex;
   justify-content: space-between;
   padding: 0.75rem 0;
   border-bottom: 1px solid var(--line);
   font-size: 0.95rem;
}

.kv li:last-child {
   border-bottom: none;
}

.kv span {
   color: var(--muted-2);
}

.kv strong {
   color: var(--brand);
}

.links {
   list-style: none;
}

.links li {
   margin-bottom: 0.5rem;
}

.links a {
   position: relative;
   color: var(--brand);
   font-weight: 500;
   padding-left: 1.25rem;
   transition: color 0.2s;
}

.links a::before {
   content: "→";
   position: absolute;
   left: 0;
   color: var(--muted);
   transition: transform 0.2s;
}

.links a:hover {
   color: #000;
}

.links a:hover::before {
   transform: translateX(3px);
   color: #000;
}

/* Quote */
.quote blockquote {
   font-family: 'Source Serif 4', serif;
   font-size: 1.25rem;
   font-style: italic;
   color: var(--brand);
   margin: 0 0 1.5rem;
   line-height: 1.5;
}

.quote__author {
   display: flex;
   align-items: center;
   gap: 1rem;
}

.quote__author img {
   border-radius: 50%
}

.quote__author span {
   display: block;
   color: var(--muted);
   font-size: .9rem
}

/* ========= Next CTA (bez zmian) ========= */
.next {
   padding: 2rem 1.5rem 4.5rem
}

.next__inner {
   display: grid;
   grid-template-columns: 1.3fr .7fr;
   gap: 1.5rem;
   border: 1px solid var(--line);
   border-radius: calc(var(--radius) + 4px);
   padding: 1.5rem;
   background: #fff;
   box-shadow: var(--shadow)
}

.next__copy h2 {
   margin: 0 0 .5rem
}

.next__copy p {
   color: var(--muted-2);
   margin: 0 0 1rem
}

.next__thumb img {
   border-radius: 12px;
   border: 1px solid var(--line)
}

@media(max-width:900px) {
   .next__inner {
      grid-template-columns: 1fr
   }
}




/* Ensure desktop menu is hidden on mobile */
@media (max-width: 900px) {

   .site-nav,
   .contact-link {
      display: none;
   }
}



/* animacja używana przez mobile menu (z Twojego style.css) */
@keyframes fadeInUp {
   0% {
      opacity: 0;
      transform: translateY(20px);
   }

   100% {
      opacity: 1;
      transform: translateY(0);
   }
}

/* ========= Usability ========= */
:focus-visible {
   outline: 3px solid #93c5fd;
   outline-offset: 2px
}

a:hover {
   opacity: .92
}

/* ===== Case Studies sticky layout ===== */
* {
   box-sizing: border-box;
}

/* sticky sekcja */
/* sticky sekcja - REMOVED sticky */
.cases,
.services {
   position: relative;
   /* top: 0; REMOVED */
   z-index: 10;
   height: auto;
   background: #fff;
   display: grid;
   grid-template-columns: 1fr 1.6fr;
   align-items: center;
   align-content: center;
   gap: 2rem;
   padding: 4rem 1.5rem;
   /* overflow: hidden; REMOVED */
   width: 100%;
}

@media (min-width: 1441px) {

   .cases,
   .services {
      min-height: 900px;
   }
}

/* ... existing code ... */

/* wrapper jak w "O nas" */
.sticky-wrapper {
   height: auto;
   position: relative;
}

.cases::before,
.services::before {
   content: "";
   position: absolute;
   inset: 0;
   pointer-events: none;
   background-image: linear-gradient(to right, #eef0f3 1px, transparent 1px);
   background-size: calc(100%/6) 100%;
   z-index: 0;
}

.cases>*,
.services>* {
   position: relative;
   z-index: 1;
}

.cases h2,
.services h2 {
   font-size: 2.2rem;
   font-weight: 400;
   color: #111;
   margin-top: 0;
}

@media (min-width: 1024px) {

   .cases h2,
   .services h2 {
      font-size: 3rem;
   }
}

.cases h2 .label,
.services h2 .label {
   display: block;
   font-size: .65rem;
   letter-spacing: .1em;
   color: #6b7280;
   margin-bottom: -.8rem;
}

.cases-lead,
.services-lead {
   color: #374151;
   max-width: 640px;
   margin-top: .75rem;
}

/* kafelki */
.cases-grid,
.services-grid {
   display: grid;
   grid-template-columns: repeat(12, 1fr);
   gap: 1rem;
   margin-top: 0;
   align-items: stretch;
   /* wszystkie kafelki na tę samą wysokość */
}

.cases-card,
.service-card {
   grid-column: span 4;
   display: flex;
   /* flexbox */
   flex-direction: column;
   /* elementy w kolumnie */
   justify-content: flex-start;
   /* tytuł/treść na górze, meta na dole */
   height: 220px;
   /* wypełnia równą wysokość */
   padding: 1.25rem;
   border: 1px solid #e5e7eb;
   border-radius: 16px;
   background-color: #FFFDE7;
   background-image:
      radial-gradient(at 10% 10%, #ffffff 0px, transparent 60%),
      radial-gradient(at 90% 90%, hsla(36, 100%, 75%, 0.8) 0px, transparent 50%),
      radial-gradient(at 90% 10%, hsla(20, 90%, 90%, 1) 0px, transparent 50%),
      radial-gradient(at 10% 90%, hsla(45, 100%, 85%, 1) 0px, transparent 50%);
   text-decoration: none;
   transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Vibrant Blue-Red gradient for Case Studies page */
.page-case-studies .cases-card {
   background-color: #fdfbff;
   background-image:
      radial-gradient(at 10% 10%, #ffffff 0px, transparent 60%),
      radial-gradient(at 90% 90%, hsla(0, 90%, 75%, 0.4) 0px, transparent 50%),
      radial-gradient(at 90% 10%, hsla(210, 80%, 75%, 0.4) 0px, transparent 50%),
      radial-gradient(at 10% 90%, hsla(220, 70%, 75%, 0.4) 0px, transparent 50%);
}

.service-card {
   background: #F9F1DD;
}

.cases-card:hover,
.service-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
   border-color: #e0e2e6;
}

.cases-card h3,
.service-card h3 {
   font-size: 1.05rem;
   margin-bottom: .35rem;
   color: #111;
}

.cases-card p,
.service-card p {
   color: #374151;
   font-size: .95rem;
   margin-bottom: .6rem;

   /* Limit to 3 lines */
   display: -webkit-box;
   -webkit-line-clamp: 3;
   line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.cases-card,
.service-card {
   position: relative;
   /* Ensure absolute positioning works for child .meta */
}

.cases-card .meta,
.service-card .meta {
   font-size: .8rem;
   color: #111;
   background-color: rgba(255, 255, 255, 0.5);
   /* Glass effect base */
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
   padding: 0.4rem 0.8rem;
   border: 1px solid rgba(229, 231, 235, 0.8);
   border-radius: 9999px;
   display: inline-block;
   font-weight: 500;

   /* Absolute positioning */
   position: absolute;
   bottom: 0.8rem;
   left: 1.25rem;
   margin-top: 0;

   transition: all 0.2s ease;
}

.cases-card:hover .meta,
.service-card:hover .meta {
   background-color: rgba(255, 255, 255, 0.8);
   border-color: rgba(209, 213, 219, 0.8);
}

/* Specific styling for uslugi.html cases */
/* REMOVED .uslugi-cases block as it is now covered by .service-card default */

.faq-uslugi {
   margin-top: -20px;
}

/* wrapper jak w "O nas" */
.sticky-wrapper {
   height: auto;
   position: relative;
}

/* responsive */
@media (max-width: 1100px) {

   .cases,
   .services {
      grid-template-columns: 1fr;
      height: auto;
      min-height: auto;
      /* Override desktop min-height */
      padding: 3rem 1.25rem 2rem;
   }

   .cases h2,
   .services h2 {
      margin-top: 0;
   }

   .cases-grid,
   .services-grid {
      margin-top: .5rem;
   }

   .cases-card,
   .service-card {
      grid-column: span 6;
   }
}

@media (max-width: 768px) {
   .prose p {
      font-size: 1.0625rem;
      /* ~17px (reduced from 1.125rem) */
   }

   .metric-list {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
   }

   .metric {
      padding: 1rem;
      min-height: 110px;
   }

   .metric__value {
      font-size: 2rem;
   }
}

@media (max-width: 700px) {

   .cases-card,
   .service-card {
      grid-column: span 12;
   }
}
.cs-cta-section {
  padding: 4rem 0 5rem;
  background: #f9fafb;
}

.cs-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cs-cta-inner h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.cs-cta-inner p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.cs-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  justify-content: center;
}

@media (max-width: 600px) {
  .cs-cta-buttons {
    flex-direction: column;
  }
  .cs-cta-buttons a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
