/*!
Theme Name: Kamsoft Kadence Child
Theme URI: https://kamsoft.pl/
Author: KAMSOFT S.A.
Author URI: https://kamsoft.pl/
Description: Motyw potomny (child theme) dla strony kamsoft.pl, oparty na motywie nadrzędnym Kadence. Zawiera własne style oraz modyfikacje przygotowane dla KAMSOFT S.A. i nie powinien być używany poza tą witryną.
Template: kadence
Version: 1.5.2
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence
Requires at least: 6.3
Tested up to: 6.9.1
Tags: translation-ready, accessibility-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce
Requires PHP: 7.4

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share
what you've learned with others.
*/
:root {
    --brand: #1d8bd0;
    --brand-dark: #002855;
    --bg: #ffffff;
    --text: #5A6B84;
    --muted: #6b7b95;
    --border: rgba(0, 40, 85, 0.15);
    --shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

body.dark-mode {
    --brand: #4da6e0;
    --brand-dark: #005a99;
    --bg: #1a1a1a;
    --text: #ffffff;
    --muted: #cccccc;
    --border: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* Tutaj wklej cały CSS z Twoich stylów, ale z zaktualizowanymi zmiennymi */

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

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
}

section {
    max-width: 1440px;
    margin: 0 auto;
}

h1,
h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 30px;
}

h3 {
    margin: 0 0 16px;
}

/* Paragrafy od nowej linii */
p {
    display: block !important;
    margin-bottom: 1em !important;
    margin-top: 0 !important;
    line-height: 1.5 !important;
}

/* Dla strony informacje-o-firmie */
.page-id-{ID_STRONY} p {
    margin-bottom: 1.5em;
}


.ks-btn {
    display: inline-block;
    padding: 12px 22px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--brand);
    color: var(--brand);
    transition: background 0.2s ease, color 0.2s ease;
}

.ks-btn:hover {
    background: var(--brand);
    color: #fff;
}

.ks-btn--primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.ks-grid-2,
.ks-grid-3,
.ks-grid-4 {
    display: grid;
    gap: 40px;
}

.ks-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.ks-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ks-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.ks-table th {
    text-align: left;
    padding: 14px 10px;
    font-weight: 700;
    color: var(--brand-dark);
    border-bottom: 2px solid #e1e7f0;
}

.ks-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #e1e7f0;
    color: #5a6b84;
}

.ks-card {
    padding: 24px;
    border: 1px solid #d9e3f2;
    border-radius: 10px;
    background: #fff;
}

.ks-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e6edf6;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .ks-grid-4,
    .ks-grid-3,
    .ks-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* == Top line (hero) == */
.ks-product-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.ks-product-left {
    flex: 1;
    min-width: 340px;
}

.ks-product-left h1 {
    font-size: clamp(32px, 4vw, 46px);
    color: var(--brand-dark);
    margin: 0 0 10px;
    font-weight: 600;
}

.ks-product-tagline {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 10px;
}

.ks-product-desc {
    color: #5a6b84;
    line-height: 1.55;
    font-size: 15px;
}

.ks-product-numer-kat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid var(--brand);
    margin: 0 0 10px;
}

.ks-product-numer-kat__value {
    color: var(--brand-dark);
    font-size: 14px;
}

/* Prawa kolumna – 3 przyciski w ramkach */
.ks-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
  }

  .ks-somed-btn {
    padding: 12px 22px;
    border: 2px solid var(--brand);
    border-radius: 26px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    color: var(--brand);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease,
      transform 0.18s ease, box-shadow 0.18s ease;
    background: #fff;
    text-decoration: none;
    /*display: inline-flex;*/
		display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .ks-somed-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    background: var(--brand);
    color: #fff;
  }

  .ks-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
  }

  .ks-modal:target {
    opacity: 1;
    pointer-events: auto;
  }

  .ks-modal__content {
    width: min(520px, 90%);
    background: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.25);
    padding: 1.6rem;
    position: relative;
    text-align: left;
  }

  .ks-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    text-decoration: none;
    color: #444;
  }

  .ks-modal__close:hover {
    color: var(--brand);
  }

@media (max-width: 900px) {
    .ks-somed-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .ks-somed-btn-col {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ks-somed-btn {
        flex: 1;
        text-align: center;
    }
}

/* === Sekcja Pobierz === */
.ks-download {
    margin-top: 30px;
    border: 2px solid #dfe7f2;
    border-radius: 12px;
    padding: 30px;
    background: #fff;
	width: fit-content;
}

.ks-store-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: stretch;
}

.ks-store {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 18px;
    border: 2px solid var(--brand);
    border-radius: 10px;
    text-decoration: none;
    color: var(--brand);
    font-weight: 600;
    min-width: 240px;
    transition: .2s ease;
}

.ks-store:hover {
    background: #1d8bd0;
    color: #fff;
}

.ks-store small {
    display: block;
    font-weight: 500;
    opacity: .85;
}

.ks-store .os {
    font-size: 12px;
    color: #5a6b84;
    margin-top: 2px;
}

.ks-store:hover .os {
    color: #eaf6ff;
}

.ks-store img {
    width: 28px;
    height: 28px;
}
/* === KS‑SOMED: sekcja "Dlaczego" + "Dla kogo" === */
.ks-why-section {
  padding: 56px 0px;
  border-radius: 18px;
  margin-bottom: 30px;
  color: #6b7b95;
}
.ks-why-section h4 {
  margin: 26px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark, #002855);
}

.ks-why-section p {
  line-height: 1.75;
  color: var(--muted, #6b7b95);
  margin: 0 0 18px;
}

/* === Kafelek funkcji (features) === */
.ks-feature-block {
  border: 1px solid rgba(29, 139, 208, 0.24);
  border-radius: 14px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
}
.ks-feature-block h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dark, #002855);
}
.ks-feature-block h4 {
    font-size: 15px;
    margin: 14px 0 8px;
    color: var(--brand-dark);
    font-weight: 700;
    color: var(--brand-dark, #002855);
}

.ks-feature-block p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted, #6b7b95);
}

/* === Lista punktów "Dla kogo jest KS-SOMED" === */
.ks-why-block h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dark, #002855);
}
.ks-why-block h4 {
    font-size: 15px;
    margin: 14px 0 8px;
    color: var(--brand-dark);
    font-weight: 700;
    color: var(--brand-dark, #002855);
}

.ks-why-punkty {
  margin: 18px 0 0 1.2rem;
  padding: 0;
  list-style: disc inside;
  color: var(--muted, #6b7b95);
}

.ks-why-punkty li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* === Mobile === */
@media (max-width: 860px) {
  .ks-why-section {
    padding: 42px 18px;
  }

  .ks-why-section h2 {
    font-size: 28px;
  }
}

/* === KORZYSCI I ZASTOSOWANIE === */
.ks-product-benefits {
  margin: 0 auto 4rem;
  max-width: 1420px;
}

.ks-product-table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dbeafe;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: white;
  border-radius: 0.9rem;
color:#002855;
}

.ks-product-table th,
.ks-product-table td {
  padding: 1.1rem 1rem;
  text-align: left;
  border-bottom: 1px solid #dbeafe;
  vertical-align: top;
}

.ks-product-table th {
  background: rgba(29,139,208,0.08);
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
}

.ks-product-table tr:last-child td {
  border-bottom: none;
}

.ks-product-table td strong {
  color: var(--brand-dark);
}

@media (max-width: 720px) {
  .ks-product-table {
    min-width: 600px;
  }
}


/* === MODUŁY SYSTEMU === */
.ks-moduly {
  padding: 20px 0 0;
  margin: 40px 0 40px;
}

.ks-moduly__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0;
}

/* Zakładki – minimal */
.ks-tabs--minimal .ks-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.ks-tabs--minimal .ks-tab-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  font-size: 14px;
}

.ks-tabs--minimal .ks-tab-btn:hover {
  background: rgba(29,139,208,0.08);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.ks-tabs--minimal .ks-tab-btn.active {
  background: rgba(29,139,208,0.12);
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* Treść zakładek – bez cieni, proste pudełko */
.ks-tabs--minimal .ks-tab-content {
  display: none;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #fff;
  padding: 18px 18px;
	font-size: 16px;
  color: #5a6b84;
}

.ks-tabs--minimal .ks-tab-content.active {
  display: block;
}

/* Mikrotypografia sekcji */
.ks-tabs--minimal .ks-tab-content h3 {
  font-size: 18px;
  color: var(--brand-dark);
  margin: 0 0 10px;
  font-weight: 700;
}

.ks-tabs--minimal .ks-tab-content h4 {
  font-size: 15px;
  margin: 14px 0 8px;
  color: var(--brand-dark);
  font-weight: 700;
}

.ks-tabs--minimal .ks-tab-content p {
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.55;
  font-size: 15px;
}

.ks-tabs--minimal .ks-tab-content ul {
  margin: 0 0 12px 1.2em;
  color: #5a6b84;
  font-size: 15px;
}
.ks-tabs--minimal .ks-tab-content li {
  margin-left: 10px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .ks-moduly__title { font-size: 20px; }
  .ks-tabs--minimal .ks-tab-btn { font-size: 13px; padding: 7px 12px; }
  .ks-tabs--minimal .ks-tab-content { padding: 16px; }
}
/* === CASE STUDIES === */

  .ks-case {
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 32px 24px 24px 24px;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    margin-top: 30px;
  }

  .ks-case h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: #002855;
    letter-spacing: -1px;
  }

  .ks-case__desc {
    color: #5a6b84;
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .ks-case-header {
    padding: 40px 0px 0px;
    border-top: 1px solid #e7eef8;
  }

  .ks-case-acc {
    margin-bottom: 10px;
    border: none;
    background: none;
  }

  .ks-case-acc summary {
    cursor: pointer;
    font-size: 1.05rem;
    color: #002855;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 0;
    outline: none;
    transition: color 0.2s;
    list-style: none;
  }

  .ks-case-acc[open] summary {
    color: #002855;
  }

  .ks-case-acc ul {
    margin: 0 0 10px 0;
    padding-left: 20px;
    list-style: disc;
  }

  .ks-case-acc li {
    margin-top: 10px;
    margin-bottom: 4px;
    margin-left: 10px;
    color: #5a6b84;
    font-size: 1rem;
  }

  .ks-case-acc summary::-webkit-details-marker {
    display: none;
  }

  .ks-case-acc summary:after {
    content: "▼";
    float: right;
    font-size: 0.8em;
    color: #8ca6c7;
    transition: transform 0.2s;
  }

  .ks-case-acc[open] summary:after {
    transform: rotate(-180deg);
  }

/* === FAQ: wygląd + rozwijani === */
  .ks-faq {
        padding: 40px 0px 10px;
    border-top: 1px solid #e7eef8;
margin-top:0px;
  }
  .ks-faq details.ks-faq-item {
    margin-bottom: 18px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 14px 16px;
/
  }

  .ks-faq summary.ks-faq-question {
    font-weight: 700;
    color: #002855;
    cursor: pointer;
    list-style: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

  }

  .ks-faq summary.ks-faq-question::-webkit-details-marker {
    display: none;
  }

  .ks-faq summary.ks-faq-question::after {
    content: "▾";
    transition: transform 0.15s ease;
    font-size: 1.05em;
    opacity: 0.7;
  }

  .ks-faq details[open] summary.ks-faq-question::after {
    transform: rotate(180deg);
  }

  .ks-faq .ks-faq-answer {
    margin-top: 12px;
    color: #5a6b84;
    line-height: 1.55;
  }

  /* Opcjonalnie: wygładzony efekt otwierania */
  .ks-faq .ks-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .ks-faq details[open] .ks-faq-answer {
    max-height: 100vh;
  }

/* === GALERIA (2 rzędy × 4 zdjęcia) === */
.ks-gallery {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px 10px;
  font-family: 'Montserrat', sans-serif;
}

.ks-gallery h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--brand-dark, #002855);
  font-weight: 700;
}

.ks-gallery__lead {
  margin: 0 0 18px;
  color: var(--muted, #5a6b84);
  font-size: 15px;
}

/* --- GRID 4 × 2 --- */
.ks-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}

.ks-gallery__item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.ks-gallery__img {
  width: 100%;
  /* --- aspect-ratio: 16/9;--- */
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.ks-gallery__caption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted, #5a6b84);
  text-align: center;
}

/* --- Tablet (max-width: 900px) → 3 kolumny --- */
@media (max-width: 900px) {
  .ks-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Mobile (max-width: 600px) → 2 kolumny --- */
@media (max-width: 600px) {
  .ks-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Very small devices → 1 kolumna --- */
@media (max-width: 400px) {
  .ks-gallery__grid {
    grid-template-columns: 1fr;
  }
}

table, td, th {
    border: 1px solid #dbeafe;
}

/* === POWIĄZANE APLIKACJE === */
.ks-related {
    max-width: 1440px;
    margin: auto;
    padding: 40px 0px 40px;
    border-top: 1px solid #e7eef8;
	margin-top: 40px;
}

.ks-related-lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
}

.ks-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.ks-related-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid var(--brand);
    border-radius: 999px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: #fff;
    transition: .2s ease;
}

.ks-related-chip:hover {
    background: var(--brand);
    color: #fff;
}

.ks-related-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    display: inline-block;
}

.ks-related-chip:hover .ks-related-dot {
    background: #ffffff;
}

@media (max-width:900px) {
    .ks-related-list {
        gap: 10px;
    }

    .ks-related-chip {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ================================
   FOOTER – STYLING KAMSOFT 2026
   ================================ */

/* Tło stopki */
footer,
.site-footer,
.footer-widgets,
#colophon {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
}

/* Kolor podstawowego tekstu */
footer p,
footer span,
footer li,
footer a {
    color: #ffffff !important;
    font-size: 14px !important; /* ZMNIEJSZONE li */
}

/* Link hover */
footer a:hover {
    color: #0085ca !important;
}

/* Nagłówki */
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
.footer-title,
.widget-title {
    color: #0085ca !important;
    font-weight: 600;
    margin-bottom: 12px;
	text-transform:lowercase;
}

/* ZMNIEJSZONE H2 */
footer h2,
.widget-title {
    font-size: 15px !important;
	text-transform:capitalize!important;
}

/* Listy */
footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li {
    margin-bottom: 6px;
}

/* Copyright */
footer .site-info,
footer .copyright,
footer small {
    color: #ffffff !important;
    opacity: 0.9;
}

.med-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #dfe7f2;
  max-width: 1240px;
  margin: auto;
  padding: 56px 24px;
}

/* GRID DESKTOP */
.med-hero__wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* TYPOGRAFIA */
.med-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 8px;
  color: #002855;
  font-weight: 700;
  line-height: 1.2;
}

.med-hero p {
  color: #5a6b84;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 760px;
}

/* BADGES */
.med-hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  padding-top: 15px;
}

.med-badge {
  padding: 8px 12px;
  border: 1px solid #dfe7f2;
  border-radius: 999px;
  font-size: 12px;
  color: #35507a;
  background: #fff;
}

/* ART WRAP */
.med-hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* IMAGE FIX */
.med-hero__art img {
  width: 100%;              /* kluczowe dla mobile */
  max-width: 420px;         /* mniejsze niż 500px, przez co lepiej skaluje się na telefonach */
  height: auto;
  display: block;
  border-radius: 24px 0px 24px 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  border: 4px solid #fff;
}

/* ------------------------------
   RESPONSYWNOŚĆ
--------------------------------*/
@media (max-width: 980px) {

  .med-hero {
    padding: 40px 20px;
  }

  .med-hero__wrap {
    grid-template-columns: 1fr; /* pełny stack */
    gap: 32px;
  }

  .med-hero__art {
    order: -1; /* obrazek przed tekstem */
  }

  .med-hero__art img {
    max-width: 100%;      /* wymuszone pełne dopasowanie */
    width: 100%;
  }
}

/* ------------------------------
   MALUTKIE TELEFONY (np. 360px)
--------------------------------*/
@media (max-width: 480px) {

  .med-hero {
    padding: 32px 16px;
  }

  .med-hero h1 {
    font-size: 28px;
  }

  .med-hero p {
    font-size: 14px;
  }

  .med-hero__badges {
    justify-content: center;
  }

  .med-hero__art img {
    border-radius: 20px;
  }
}

/* ===== SYSTEMY GABINETOWE - GRID ===== */
.med-section {
  max-width: 1240px;
  margin: auto;
  padding: 40px 24px 16px;
}

.med-section h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #002855;
  font-weight: 700;
}

.med-section p {
  margin: 0;
  color: #5a6b84;
  font-size: 15px;
}

.med-grid {
  max-width: 1240px;
  margin: auto;
  padding: 50px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* ===== KARTA PRODUKTU ===== */
.med-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  transition: .25s ease;
}

.med-card:hover {
  border-color: #1d8bd0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.med-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.med-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 44px;
  font-size: 22px;
}

.med-ico img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.is-icon {
  background: #0c72c9;
}

.is-kml {
  background: #8fb823;
}

.is-lkm {
  background: #8fb823;
}

.is-pharmind {
  background: #002169;
}

.med-card__title {
  margin: 0;
  font-size: 18px;
  color: #002855;
  font-weight: 700;
}

.med-card__desc {
  margin: 0 0 5px;
  color: #5a6b84;
  font-size: 14px;
  line-height: 1.5;
	display: block;
}

.med-card__list {
  margin: 6px 0 2px 18px;
  padding: 0;
  color: #5a6b84;
  font-size: 14px;
  list-style: disc;
}

.med-card__list li {
  margin: 6px 0;
}

/* Style dla linków w liście funkcji */
.med-card__list a {
  color: #1d8bd0;
  text-decoration: none;
  transition: .2s ease;
  font-weight: 500;
}

.med-card__list a:hover {
  color: #002855;
  text-decoration: none;
}

.med-card__list a:active,
.med-card__list a:visited {
  color: #7a3ee8;
}

.med-card__cta {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.med-card__cta a {
  display: inline-block;
  padding: 10px 14px;
  border: 2px solid #1d8bd0;
  border-radius: 8px;
  background: #ffffff;
  color: #1d8bd0;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: .2s ease;
}

/* Ukryj button jeśli link jest pusty */
.med-card__cta a[href=""],
.med-card__cta a:not([href]) {
  display: none !important;
}

.med-card__cta a:hover {
  background: #1d8bd0;
  color: #ffffff !important;
  border-color: #1d8bd0;
}

@media (max-width: 980px) {
  .med-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SEKCJA Z TEKSTEM ===== */
.med-intro {
  max-width: 1240px;
  margin: auto;
  padding: 60px 24px 40px;
  border-top: 1px solid #dfe7f2;
}

.med-intro__text {
  max-width: 760px;
}

.med-intro h2 {
  font-size: 26px;
  color: #002855;
  margin: 0 0 16px;
  font-weight: 700;
}

.med-intro p {
  color: #5a6b84;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 5px;
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 760px) {
  .med-hero {
    padding: 32px 16px;
  }
  
  .med-section {
    padding: 32px 16px 12px;
  }
  
  .med-grid {
    padding: 40px 16px 32px;
    gap: 18px;
  }
  
  .med-card {
    padding: 14px;
  }
}
h3.med-card__title{
margin: 0px 0px 0px 0px;
}
/*Cenniki sprzęt*/
.ks-product-table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--bg);
  border-radius: 0.9rem;
  color: #002855;
}

.ks-product-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.ks-product-table th {
  background: rgba(29, 139, 208, 0.08);
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  padding: 1.1rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ks-product-table td {
  padding: 1.1rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ks-product-table table img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.ks-product-table h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.ks-product-table p {
  margin: 5px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

.ks-product-table tbody tr:hover {
  background-color: rgba(29, 139, 208, 0.04);
  transition: background-color 0.3s ease;
}

.ks-features-list {
  margin: 8px 0 0 1rem;
  padding: 0 0 0 1rem;
}
.ks-features-list li {
  margin: 6px 0;
  color: #333;
  font-size: 0.95rem;
}

.ks-grid { display:flex; gap:15px; align-items:flex-start; }
.ks-col-70 { flex: 100%; max-width:70%; }
.ks-col-30 { flex: 100%; max-width:30%; }
.ks-box { background: var(--bg, #fff); border:1px solid var(--border,#ddd); padding:20px; border-radius:0.6rem; color:var(--brand-dark,#002855); box-shadow:0 6px 18px rgba(2,40,71,0.04); }
.ks-box h3 { margin-top:0; margin-bottom:12px; color:var(--brand-dark,#002855); font-size:1.05rem; }
.ks-contact-item { margin-bottom:14px; padding-bottom:10px; border-bottom:1px dashed rgba(0,0,0,0.06); }
.ks-contact-item strong{ display:block; margin-bottom:6px; }
.ks-contact-detail{ font-size:0.95rem; color:#333; }


@media (max-width:768px) {
  .ks-grid { flex-direction:column; }
  .ks-col-70, .ks-col-30 { max-width:100%; flex:1 1 100%; }
}

@media (max-width: 768px) {
  .ks-product-table {
    border-radius: 0;
  }
  
  .ks-product-table table {
    font-size: 0.85rem;
  }
  
  .ks-product-table th,
  .ks-product-table td {
    padding: 0.8rem;
  }
  
  .ks-product-table h3 {
    font-size: 1rem;
  }
}

.header-menu-container ul.menu>li.kadence-menu-mega-enabled>ul ul {
max-width: fit-content;
}

/* MODALE*/
.ks-modal {
  display: none !important;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.ks-modal[aria-hidden="false"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
  pointer-events: auto;
}

.ks-modal__content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideDown 0.3s ease forwards;
  pointer-events: auto;
}

.ks-modal__close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  border: none;
  background: none;
  padding: 5px 10px;
  transition: color 0.3s ease;
  line-height: 1;
}

.ks-modal__close:hover,
.ks-modal__close:focus {
  color: #1d8bd0;
  outline: none;
}

.ks-modal h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #002855;
  font-size: 22px;
}

.ks-modal p {
  margin: 10px 0;
  line-height: 1.6;
  color: #333;
}

.ks-modal a {
  color: #1d8bd0;
  text-decoration: none;
}

.ks-modal a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .ks-modal__content {
    max-width: 90vw;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .padding {
    padding: 0px 24px; 
  }
}

/* KONTAKT */
.ks-dane-kontaktowe,
.ks-departamenty-section,
.ks-grupa-section {
  margin: 60px 20;
  padding: 0 20px;
}

.ks-dane-kontaktowe h2 {
  color: var(--brand-dark);
  font-size: 28px;
  margin-bottom: 12px;
}

.ks-section-lead {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 30px 0;
  line-height: 1.6;
}

.ks-kontakt-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.ks-kontakt-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ks-kontakt-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.ks-kontakt-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg);
  border-radius: 8px;
  color: var(--brand);
  font-size: 24px;
  flex-shrink: 0;
}

.ks-kontakt-item-content {
  flex: 1;
}

.ks-kontakt-item-label {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
}

.ks-kontakt-item-value {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
}

.ks-kontakt-item-value a {
  color: var(--brand);
  text-decoration: none;
}

.ks-kontakt-item-value a:hover {
  text-decoration: underline;
}

.ks-departamenty-section,
.ks-grupa-section {
  margin: 60px 0;
}

.ks-departamenty-section h2,
.ks-grupa-section h2 {
  color: var(--brand-dark);
  font-size: 28px;
  margin-bottom: 12px;
}

.ks-departamenty-grid,
.ks-grupa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.ks-accordion-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ks-dept-card,
.ks-grupa-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
}

.ks-dept-card:hover,
.ks-grupa-card:hover {
  border-color: var(--brand);
  background: rgba(29, 139, 208, 0.05);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ks-dept-card:active,
.ks-grupa-card:active {
  transform: translateY(-2px);
}

.ks-dept-card-content,
.ks-grupa-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ks-dept-label,
.ks-grupa-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
  flex: 1;
}

.ks-dept-arrow,
.ks-grupa-arrow {
  color: var(--brand);
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ks-dept-card:hover .ks-dept-arrow,
.ks-grupa-card:hover .ks-grupa-arrow {
  transform: translateX(4px);
}

.ks-accordion-trigger.active .ks-dept-arrow,
.ks-accordion-trigger.active .ks-grupa-arrow {
  transform: rotate(90deg);
}

.ks-accordion-body {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  word-wrap: break-word;
}

.ks-accordion-body.open {
  display: block;
}

@media (max-width: 1024px) {
  .ks-departamenty-grid,
  .ks-grupa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ks-kontakt-items-grid {
    grid-template-columns: 1fr;
  }

  .ks-kontakt-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ks-kontakt-item-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .ks-departamenty-grid,
  .ks-grupa-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ks-dept-label,
  .ks-grupa-label {
    font-size: 14px;
  }
}

/*-MEGA MENU-*/
.mega-menu-item {
  padding: 24px;
  border-radius: 12px;
  background-color: transparent;
  /*min-width: 320px;*/
}

/* Nagłówek z ikoną i tytułem */
.mega-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mega-menu-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.mega-menu-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Opis */
.mega-menu-description {
  margin: 0 0 18px 0;
  font-size: 13px;
  color: #d0dce6;
  line-height: 1.5;
  font-weight: 400;
}

/* Linki w 2 kolumnach */
.mega-menu-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
/* Linki w 1 kolumnach */
.mega-menu-links-1 {
  display: grid;
  grid-template-columns: 1fr ;
  gap: 8px 12px;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  background-color: transparent;
}

.mega-menu-link:hover {
  color: #0085ca;
} 

.mega-menu-link span {
  flex: none;
  text-align: left;
}

.arrow-icon {
  flex-shrink: 0;
  color: #0085ca;
  transition: all 0.2s ease;
}

.mega-menu-link:hover .arrow-icon {
    color: #ffffff;
  transform: translateX(3px);
}

/* Responsywne */
@media (max-width: 768px) {
  .mega-menu-links {
    grid-template-columns: 1fr;
  }
	
  .mega-menu-item {
    min-width: auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .mega-menu-links {
    grid-template-columns: 1fr;
  }
}

.mega-menu-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.mega-menu-icon-column {
  flex-shrink: 0;
	margin-top:10px;
}

.mega-menu-content-column {
  flex: 1;
}
  .mega-menu-title:hover {
    color: #1d8bd0;
    text-decoration: none;
  }
  .mega-menu-title {
    text-decoration: none;
  }


/*-BUTTONY MEGA MENU*/
.flex-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  text-decoration: none;
}

.flex-buttons .btn {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.flex-buttons .a {
  text-decoration: none;
}

/* Button 1 */
.btn-primary {
  background: #0085ca;
  color: #fff;
}

.btn-primary:hover {
  background: #002855;
    color: #fff;
}

/* Button 2 */
.btn-secondary {
  background: #f2b40c;
  color: #002855;
}

.btn-secondary:hover {
  background: #c09213;
}

/**-- SLIDER --**/
   /* Main Container */
    .kamsoft-sections {
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 40px auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Section Card Base */
    .section-card {
        position: relative;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(8px);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
        display: flex;
        flex-direction: column;
    }

    .section-card:first-child {
        flex: 1.2;
    }

    .section-card:nth-child(2) {
        flex: 1;
        min-height: 160px;
    }

    .section-card:nth-child(3) {
        flex: 1;
    }

    /* ===== BANNER SLIDER ===== */
    .banner-slider {
        position: relative;
        overflow: hidden;
        width: 100%;
        height: 100%;
        border-radius: 20px;
    }

    .banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 20px;
        display: block;
        transition: transform 0.3s ease;
    }

    /* ===== EVENTS SLIDER ===== */
    .events-slider {
        position: relative;
        overflow: hidden;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .event-slide {
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
        display: flex;
        flex-direction: column;
        height: calc(100% - 70px);
        justify-content: center;
        gap: 8px;
    }

    .event-slide.active {
        opacity: 1;
        position: relative;
        top: 0;
        left: 0;
        right: 0;
    }

    .event-title {
        font-size: 20px;
        font-weight: 700;
        color: #002855;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .event-header {
        font-size: 10px;
        color: #0085ca;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .event-course {
        font-size: 13px;
        color: #002855;
        font-weight: 600;
        margin-bottom: 8px;
        background: #f2b40c;
        padding: 6px 12px;
        border-radius: 16px;
        width: fit-content;
    }

    .event-time {
        font-size: 13px;
        color: #0085ca;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .event-time-row {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .event-button-cta {
        display: inline-block;
        padding: 8px 12px;
        border: 2px solid #1d8bd0;
        border-radius: 12px;
        background: #1d8bd0;
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
        font-size: 12px;
        text-align: center;
        transition: .2s ease;
        cursor: pointer;
        width: fit-content;
        box-shadow: 0 4px 12px rgba(29, 139, 208, 0.3);
        margin-left: auto;
    }

    .event-button-cta:hover {
        background: #1a6fa3;
        border-color: #1a6fa3;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(29, 139, 208, 0.4);
    }

    .event-nav {
        position: absolute;
        bottom: 12px;
        left: 20px;
        right: 20px;
        display: flex;
        gap: 6px;
        z-index: 5;
    }

    .event-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(8, 145, 178, 0.2);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .event-dot.active {
        background: linear-gradient(135deg, #d9f3ff, #0085ca);
        width: 18px;
        border-radius: 3px;
        box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    }

    /* ===== POPRAWIONA LOGOS CAROUSEL ===== */
    .logos-carousel {
        position: relative;
        overflow: hidden;
        padding: 20px 20px 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .logo-track {
        display: flex;
        gap: 40px;
        align-items: center;
        flex-shrink: 0;
        animation: scrollLogos 25s linear infinite;
        will-change: transform;
    }

    .logos-carousel:hover .logo-track {
        animation-play-state: paused;
    }

    .logo-item {
        flex-shrink: 0;
        width: 130px;
        text-align: center;
    }

    .logo-item img {
        max-width: 100%;
        height: 35px;
        object-fit: contain;

        transition: all 0.3s ease;
    }

    .logo-item:hover img {
        filter: grayscale(0%);
        transform: scale(1.08);
    }

    /* Nieskończona pętla */
    @keyframes scrollLogos {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(-50%);
        }
    }

    /* Delikatne maskowanie boków */
    .logos-carousel::before,
    .logos-carousel::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 50px;
        z-index: 2;
        pointer-events: none;
    }

    .logos-carousel::before {
        left: 0;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
    }

    .logos-carousel::after {
        right: 0;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .kamsoft-sections {
            margin: 20px auto;
        }

        .section-card {
            min-height: 200px;
            border-radius: 16px;
            box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
        }

        .event-title {
            font-size: 15px;
        }

        .logo-track {
            gap: 30px;
        }

        .logo-item {
            width: 110px;
        }

        .logo-item img {
            height: 40px;
        }
    }

    /* ===== 3 DODATKOWE BUTTONY ===== */
    .kamsoft-extra-buttons {
        max-width: 620px;
        margin: 20px auto 60px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .kamsoft-btn {
        display: inline-flex;

        align-items: center;
        justify-content: center;
        padding: 12px 20px;
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.25s ease;
        min-width: auto;
    }

    .kamsoft-btn-primary {
        background: #8cb523;
        color: #ffffff;
        border: 2px solid transparent;
        box-shadow: 0 6px 16px rgba(29, 139, 208, 0.25);
    }

    .kamsoft-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(29, 139, 208, 0.35);
        background: #73930f;
        color: #ffffff;
    }

    .kamsoft-btn-outline {
        background: #ffffff;
        color: #002855;
    }

    .kamsoft-btn-outline:hover {
        background: #1d8bd0;
        color: #ffffff;
        transform: translateY(-3px);
    }
/** -- Rozwiązania HOME PAGE --**/
 .ks-solutions-header {
        text-align: center;
        padding: 60px 24px 30px;
    }

    .ks-solutions-title {
        font-family: 'Montserrat', sans-serif;
        font-size: clamp(28px, 4.5vw, 42px);
        font-weight: 700;
        color: var(--brand-dark);
        margin-bottom: 16px;
    }

    .ks-solutions-desc {
        max-width: 860px;
        margin: 0 auto;
        font-size: 16.5px;
        line-height: 1.6;
        color: #455a7a;
    }

    /* Karty rozwiązań – 4 kolumny */
    .ks-product-cards {
        padding: 40px 24px 80px;
        background: #ffffff;
    }

    .ks-product-grid {
        max-width: 1440px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 50px 40px;
    }

    .kas-card-solution {
        text-align: left;
    }

    .kas-card-solution-icon {
        width: 76px;
        height: 76px;
        border-radius: 50%;
        background: #e6eaf0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .kas-card-solution-icon svg {
        width: 32px;
        height: 32px;
        stroke: var(--brand-dark);
    }

    .kas-card-solution-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 21px;
        font-weight: 700;
        color: var(--brand-dark);
        margin-bottom: 8px;
    }

    .kas-card-solution-text {
        font-size: 15px;
        line-height: 1.5;
        color: var(--muted);
        margin-bottom: 16px;
    }

    .kas-card-solution a {
        color: var(--brand);
        font-weight: 500;
        text-decoration: none;
        font-size: 15px;
    }

    .kas-card-solution a:hover {
        color: var(--brand-dark);
        text-decoration: none;
    }

    /* Responsywność */
    @media (max-width: 1200px) {
        .ks-product-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 700px) {
        .ks-product-grid {
            grid-template-columns: 1fr;
        }
    }
/* mobile: wyśrodkuj .kas-card-solution */
@media (max-width: 700px) {
  .kas-card-solution {
    text-align: center;
  }

  .kas-card-solution-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .kas-card-solution a {
    display: inline-block;
  }
}
/*-- PARNERZY --*/
.partnerzy-container {
  max-width: 1240px;
  padding: 56px 24px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.partnerzy-hero {
  text-align: center;
  margin-bottom: 80px;
  padding: 56px 40px;
  background: rgba(29, 139, 208, 0.04);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.partnerzy-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 20px;
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.2;
}

.partnerzy-hero p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 12px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.partnerzy-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
}

.badge {
  background-color: var(--bg);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #35507a;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.badge:hover {
  border-color: var(--brand);
  background: rgba(29, 139, 208, 0.08);
}

.partnerzy-sections {
  display: flex;
  gap: 50px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.partnerzy-section {
  flex: 1;
  min-width: 320px;
}

.partnerzy-section h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--brand-dark);
  font-weight: 700;
  border-bottom: 1px solid #dfe7f2;
  padding-bottom: 12px;
}

.partnerzy-section .lead {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 30px;
  line-height: 1.75;
  font-weight: 500;
}

/* Grid 2 kolumny dla kart */
.partnerzy-opcje {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Style na wzór med-card */
.partnerzy-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: var(--bg);
  padding: 18px;
  transition: .25s ease;
}

.partnerzy-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: var(--brand);
}

.partnerzy-card h3 {
  font-size: 18px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.partnerzy-card p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.partnerzy-card a {
  display: inline-block;
  padding: 10px 14px;
  border: 2px solid var(--brand);
  border-radius: 8px;
  background: var(--bg);
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: .2s ease;
}

.partnerzy-card a:hover {
  background-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 16px rgba(29, 139, 208, 0.2);
  transform: translateY(-1px);
}

.partnerzy-card a:active {
  transform: scale(0.98);
}

.partnerzy-kontakt {
  background: rgba(29, 139, 208, 0.04);
  border-radius: 14px;
  padding: 56px 40px;
  margin-top: 60px;
  text-align: center;
  border: 1px solid var(--border);
}

.partnerzy-kontakt h2 {
  font-size: 26px;
  margin-bottom: 30px;
  color: var(--brand-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  padding-bottom: 12px;
}

.partnerzy-dane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
  font-size: 15px;
  color: var(--text);
}

.partnerzy-dane div {
  font-weight: 500;
}

.partnerzy-dane strong {
  color: var(--brand);
  font-weight: 600;
}

.partnerzy-kontakt-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.partnerzy-kontakt-links a {
  background-color: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--brand);
  box-shadow: 0 2px 8px rgba(29, 139, 208, 0.15);
}

.partnerzy-kontakt-links a:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .partnerzy-container {
    padding: 40px 18px;
  }

  .partnerzy-hero {
    margin-bottom: 50px;
    padding: 40px 24px;
  }

  .partnerzy-hero h1 {
    font-size: 32px;
  }

  .partnerzy-sections {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
  }

  .partnerzy-section h2 {
    font-size: 22px;
  }

  .partnerzy-opcje {
    grid-template-columns: 1fr;
  }

  .partnerzy-card {
    padding: 18px;
  }

  .partnerzy-kontakt {
    padding: 40px 24px;
    margin-top: 40px;
  }

  .partnerzy-kontakt h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .partnerzy-kontakt-links {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .partnerzy-container {
    padding: 32px 16px;
  }

  .partnerzy-hero {
    margin-bottom: 40px;
    padding: 32px 16px;
  }

  .partnerzy-hero h1 {
    font-size: 28px;
  }

  .partnerzy-hero p {
    font-size: 14px;
  }

  .partnerzy-badges {
    gap: 8px;
    justify-content: center;
  }

  .badge {
    padding: 6px 10px;
    font-size: 11px;
  }

  .partnerzy-section h2 {
    font-size: 18px;
  }

  .partnerzy-kontakt h2 {
    font-size: 18px;
  }

  .partnerzy-kontakt-links a {
    width: 100%;
    text-align: center;
  }

  .partnerzy-card a {
    display: block;
    text-align: center;
  }
}
