/* ==========================================================================
   Szablon: Mis_2
   Spójny, premium layout — miękka zieleń, czysta typografia, spokojny rytm
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Quicksand:wght@500;600;700&display=swap');

:root {
    --ink: #1a2b4c;
    --ink-soft: #3d4f6a;
    --muted: #7a8a96;

    --brand: #3fa88a;
    --brand-dark: #2f8a6f;
    --brand-tint: #e5f6f1;

    --sun: #f0b429;
    --sun-soft: #fff3cc;
    --coral: #ef7d6a;
    --coral-soft: #ffe8e3;
    --sky: #5bc4c4;
    --sky-soft: #e5f4fa;
    --dot-tan: #e8915a;
    --dot-orange: #e86b6b;
    --dot-navy: #1a2b4c;

    --page: #ffffff;
    --surface: #faf6e9;
    --line: #e8eee9;
    --footer: #eef6f4;

    --shadow-sm: 0 1px 2px rgba(26, 43, 76, 0.04);
    --shadow: 0 12px 32px rgba(26, 43, 76, 0.08);
    --r: 18px;
    --r-sm: 12px;
    --container: 1200px;
    --ease: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --wave: url(https://static.dlaprzedszkoli.eu/images/footer/bg-footer-2.png);
}

/* -------------------------------------------------------------------------- */
/* Baza                                                                       */
/* -------------------------------------------------------------------------- */
body.mis-2 {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.mis-2 h1,
.mis-2 h2,
.mis-2 h3,
.mis-2 .h1,
.mis-2 .display-4 {
    font-family: 'Quicksand', sans-serif;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.mis-2 a { color: var(--brand-dark); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 10px 10px;
}
.skip-link:focus { left: 16px; }

body.mis-2 *:focus-visible {
    outline: 3px solid rgba(47, 158, 143, 0.45);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes m2-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes m2-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */
.m2-header {
    position: relative;
    z-index: 900;
    padding: 0;
    margin-bottom: 0;
    background: #fff;
    border-bottom: 0;
    pointer-events: auto;
    overflow: visible;
}

.m2-header-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    min-height: 72px;
    padding: 12px var(--space-3);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.m2-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    flex-shrink: 0;
    min-width: 0;
    max-width: 280px;
}

.m2-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, #7ed0c0, var(--brand));
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(63, 168, 138, 0.3);
}

.m2-logo-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.02em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.top-nav {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
    z-index: 20;
}

.top-nav-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.top-nav-visible {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.top-nav-visible ul,
.top-nav-more-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav-visible > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: max-content;
    max-width: none;
}

.top-nav-visible > ul > li {
    flex: 0 0 auto;
}

.top-nav-visible > ul > li > a,
.top-nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.3;
    transition: background var(--ease), color var(--ease);
}

.top-nav-visible > ul > li > a:hover,
.top-nav-visible > ul > li > a:focus,
.top-nav-more-btn:hover,
.top-nav-more-btn:focus {
    background: var(--brand-tint);
    color: var(--brand-dark);
    outline: none;
}

.top-nav-more-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 30;
}

.top-nav-more-btn[aria-expanded="true"] {
    background: var(--brand);
    color: #fff;
}
.top-nav-more-btn i { transition: transform var(--ease); }
.top-nav-more-btn[aria-expanded="true"] i { transform: rotate(180deg); }

.top-nav-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    z-index: 1000;
}
.top-nav-more-wrap.is-open .top-nav-more-menu,
.top-nav-more-wrap[aria-expanded="true"] .top-nav-more-menu {
    display: block;
}

.top-nav-more-menu li {
    display: block;
    list-style: none;
    margin: 0;
}

.top-nav-more-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--ink) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    white-space: normal;
}
.top-nav-more-menu li a:hover,
.top-nav-more-menu li a:focus {
    background: var(--brand-tint);
    color: var(--brand-dark) !important;
}

.m2-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    flex-shrink: 0;
}

.m2-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff !important;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background var(--ease), transform var(--ease);
}
.m2-header-phone:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.m2-header-social {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-tint);
    color: var(--brand-dark) !important;
    text-decoration: none !important;
    transition: background var(--ease), color var(--ease);
}
.m2-header-social:hover {
    background: var(--brand);
    color: #fff !important;
}

.m2-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 19px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    justify-self: end;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Hero — ilustracja na pełną szerokość                                       */
/* -------------------------------------------------------------------------- */
.m2-hero {
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

.m2-hero--home {
    min-height: min(780px, 92vh);
    min-height: min(780px, 92dvh);
    display: flex;
    align-items: center;
}

.m2-hero--home::before,
.m2-hero--home::after,
.m2-hero--compact::before,
.m2-hero--compact::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 4;
    height: 56px;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.m2-hero--home::before,
.m2-hero--compact::before {
    top: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,40 C240,80 480,0 720,32 C960,64 1200,8 1440,40 L1440,0 L0,0 Z'/%3E%3C/svg%3E");
}

.m2-hero--home::after,
.m2-hero--compact::after {
    bottom: 0;
    height: 72px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,50 C200,10 400,90 720,48 C1040,8 1240,70 1440,36 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
}

.m2-hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--surface);
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    animation: m2-fade 0.9s var(--ease) both;
}

.m2-hero--home .m2-hero-bg {
    background-position: right center;
    background-size: cover;
}

.m2-hero-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.m2-hero--home .m2-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px var(--space-3) 100px;
    display: block;
    min-height: 0;
}

.m2-hero--home .m2-hero-copy {
    max-width: 480px;
    padding: 0;
    animation: m2-rise 0.7s var(--ease) 0.08s both;
}

.m2-hero-title {
    margin: 0;
    color: var(--ink) !important;
    font-size: clamp(2.5rem, 5.2vw, 3.75rem);
    line-height: 1.05;
    text-wrap: balance;
}

.m2-hero-title-main,
.m2-hero-title-accent {
    display: block;
}

.m2-hero-title-accent {
    color: var(--brand);
    margin-top: 0.08em;
}

.m2-hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 20px;
}

.m2-hero-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}
.m2-hero-dots span:nth-child(1) { background: var(--sky); }
.m2-hero-dots span:nth-child(2) { background: var(--dot-tan); }
.m2-hero-dots span:nth-child(3) { background: var(--dot-orange); }
.m2-hero-dots span:nth-child(4) { background: var(--sun); }
.m2-hero-dots span:nth-child(5) { background: var(--brand); }

.m2-hero-lead {
    margin: 0 0 28px;
    max-width: 420px;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--ink-soft);
}

.m2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.m2-hero--compact {
    min-height: 340px;
    display: flex;
    align-items: center;
}

.m2-hero--compact .m2-hero-bg {
    background-position: center 80%;
}

.m2-hero--compact .m2-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px var(--space-3) 88px;
    display: flex;
    align-items: center;
}

.m2-hero--compact .m2-hero-copy {
    max-width: 640px;
    animation: m2-rise 0.7s var(--ease) 0.1s both;
}

.m2-hero-kicker {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.m2-hero--compact .m2-hero-title {
    margin: 0;
    font-size: clamp(1.85rem, 3.4vw, 2.5rem);
}

body.m2-subpage .main > section.page > h1.h1:first-of-type,
body.m2-subpage .main > section.page > h1.display-4:first-of-type,
body.m2-subpage .main > h1.h1:first-of-type,
body.m2-subpage .main > h1.display-4:first-of-type {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.m2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease), color var(--ease);
}

.m2-btn--primary {
    background: var(--brand);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(63, 168, 138, 0.28);
}
.m2-btn--primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.m2-btn--soft {
    background: #fff;
    color: var(--ink) !important;
    border-color: rgba(26, 43, 76, 0.14);
}
.m2-btn--soft:hover {
    border-color: var(--brand);
    color: var(--brand-dark) !important;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* Wyróżniki — bez kart                                                       */
/* -------------------------------------------------------------------------- */
.m2-features {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-5) var(--space-3) var(--space-2);
}

.m2-features-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3) var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--line);
}

.m2-feature {
    padding: 4px 8px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: m2-rise 0.65s var(--ease) both;
}
.m2-feature:nth-child(1) { animation-delay: 0.12s; }
.m2-feature:nth-child(2) { animation-delay: 0.2s; }
.m2-feature:nth-child(3) { animation-delay: 0.28s; }
.m2-feature:nth-child(4) { animation-delay: 0.36s; }

.m2-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 14px;
    font-size: 1.05rem;
}
.m2-feature-icon--green  { background: var(--brand-tint); color: var(--brand-dark); }
.m2-feature-icon--yellow { background: var(--sun-soft); color: #c48d12; }
.m2-feature-icon--coral  { background: var(--coral-soft); color: #d45a48; }
.m2-feature-icon--blue   { background: var(--sky-soft); color: #2f7fa0; }

.m2-feature h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.m2-feature p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
    font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* Treść CMS — minimalistycznie, spójnie z hero                               */
/* -------------------------------------------------------------------------- */
.mis-2 .body {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-4) var(--space-3) var(--space-5);
    display: block;
}

.mis-2 .main {
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (min-width: 1001px) {
    .mis-2 .body > .nav { display: none !important; }
    .mis-2 .nav-mobile-open { display: none !important; }
}

.mis-2 .main p,
.mis-2 section.page p,
.mis-2 article .p-2 {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
}

.mis-2 .display-4,
.mis-2 .h1 {
    font-family: 'Quicksand', sans-serif;
    color: var(--ink) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.mis-2 .h1 {
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    margin: 4px 0 18px;
}
.mis-2 .display-4 {
    font-size: clamp(1.55rem, 3vw, 2.15rem) !important;
}

.mis-2 .text-gray,
.mis-2 small.text-gray {
    color: var(--muted) !important;
    font-weight: 600;
}
.mis-2 .text-gray i,
.mis-2 small.text-gray i {
    color: var(--brand) !important;
    margin-right: 4px;
}

.mis-2 .breadcrumb {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    margin-bottom: 28px !important;
}
.mis-2 .breadcrumb-item,
.mis-2 .breadcrumb-item a {
    color: var(--ink-soft) !important;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none !important;
}
.mis-2 .breadcrumb-item a:hover {
    color: var(--brand-dark) !important;
}
.mis-2 .breadcrumb-item + .breadcrumb-item::before {
    color: var(--muted) !important;
}
.mis-2 .breadcrumb-item.active,
.mis-2 .breadcrumb-item.active strong {
    color: var(--brand-dark) !important;
}
.mis-2 .breadcrumb-item i {
    color: var(--brand) !important;
}

.mis-2 article.my-5 {
    margin: 0 0 24px !important;
    padding: 32px 32px 28px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.mis-2 article.my-5:hover {
    border-color: rgba(63, 168, 138, 0.35);
    box-shadow: 0 10px 28px rgba(26, 43, 76, 0.06);
    transform: translateY(-2px);
}
.mis-2 article.my-5:last-child {
    margin-bottom: 0 !important;
}

.mis-2 .article-title {
    background: transparent;
    padding: 0;
    margin: 0 0 18px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.mis-2 .article-title a:link,
.mis-2 .article-title a:visited,
.mis-2 section.page .article-title a:link:not(.btn):not(.page-link),
.mis-2 section.page .article-title a:visited:not(.btn):not(.page-link) {
    color: var(--ink) !important;
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none !important;
    line-height: 1.25;
}
.mis-2 .article-title a:hover,
.mis-2 section.page .article-title a:hover:not(.btn):not(.page-link) {
    color: var(--brand-dark) !important;
    text-decoration: none !important;
}

.mis-2 article.my-5 .p-2 {
    padding: 0 !important;
    margin: 0 0 22px;
    overflow: hidden; /* zawiera float zdjęcia */
}
.mis-2 article.my-5 .p-2::after {
    content: "";
    display: table;
    clear: both;
}
.mis-2 article.my-5 .p-2.text-center {
    margin-bottom: 16px;
    text-align: left !important;
}
.mis-2 article.my-5 > .text-center {
    text-align: left !important;
    margin-top: 4px;
    clear: both;
}

/* Zdjęcia w aktualnościach / galeriach (często float z edytora) */
.mis-2 article.my-5 .p-2 img,
.mis-2 article.my-5 img {
    border-radius: 16px !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
    background: #fff;
    padding: 4px;
    height: auto !important;
    max-width: min(300px, 46%) !important;
    margin: 4px 22px 16px 0 !important;
    vertical-align: top;
}
.mis-2 article.my-5 .p-2 img[style*="float: right"],
.mis-2 article.my-5 .p-2 img[style*="float:right"] {
    margin: 4px 0 16px 22px !important;
}
.mis-2 article.my-5 .img-thumbnail,
.mis-2 article.my-5 img.img-fluid {
    border-radius: 18px !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
    max-width: 100%;
    width: min(280px, 100%) !important;
    height: auto;
    margin-bottom: 12px !important;
}
.mis-2 article.my-5 .p-2 p {
    margin-bottom: 0.75em;
}
.mis-2 article.my-5 .p-2 p:last-child {
    margin-bottom: 0;
}

/* Galeria (lista) — zdjęcie obok opisu, jak w aktualnościach */
.mis-2 article.my-5:has(> .p-2.text-center) {
    display: grid;
    grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
    grid-template-areas:
        "title title"
        "thumb body"
        "btn btn";
    column-gap: 24px;
    align-items: start;
}
.mis-2 article.my-5:has(> .p-2.text-center) > .article-title {
    grid-area: title;
}
.mis-2 article.my-5:has(> .p-2.text-center) > .p-2.text-center {
    grid-area: thumb;
    margin: 0 0 18px;
    width: 100%;
}
.mis-2 article.my-5:has(> .p-2.text-center) > .p-2:not(.text-center) {
    grid-area: body;
    margin: 0 0 18px;
    min-width: 0;
}
.mis-2 article.my-5:has(> .p-2.text-center) > .clearfix {
    display: none;
}
.mis-2 article.my-5:has(> .p-2.text-center) > .text-center {
    grid-area: btn;
    margin-top: 2px;
}
.mis-2 article.my-5:has(> .p-2.text-center) > .p-2.text-center > a {
    position: relative;
    display: block;
    max-width: 100%;
}
.mis-2 article.my-5:has(> .p-2.text-center) .img-thumbnail,
.mis-2 article.my-5:has(> .p-2.text-center) img.img-fluid,
.mis-2 article.my-5:has(> .p-2.text-center) img {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
    float: none !important;
}
.mis-2 article.my-5:has(> .p-2.text-center) .notify-badge,
.mis-2 article.my-5:has(> .p-2.text-center) .badge.notify-badge {
    right: 10px;
    top: 10px;
    font-size: 0.75rem;
    padding: 5px 10px !important;
    z-index: 2;
}

.mis-2 .notify-badge,
.mis-2 .badge.notify-badge {
    background: var(--brand) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px !important;
    padding: 6px 10px !important;
    font-size: 0.78rem;
}

.mis-2 .btn-primary,
.mis-2 .btn.btn-primary,
.mis-2 .btn-success,
.mis-2 article .btn {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    border-radius: 999px !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 22px !important;
    color: #fff !important;
    box-shadow: none !important;
    transition: background var(--ease), transform var(--ease);
}
.mis-2 .btn-primary:hover,
.mis-2 .btn-primary:focus,
.mis-2 .btn-primary:active,
.mis-2 .btn-success:hover,
.mis-2 article .btn:hover {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.mis-2 .btn i,
.mis-2 article .btn i {
    margin-left: 4px;
}

.mis-2 .pagination .page-link {
    border-radius: 999px !important;
    margin: 0 3px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
    background: #fff;
}
.mis-2 .pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.mis-2 .pagination .page-link:hover {
    background: var(--brand-tint);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.mis-2 table tbody tr td a img,
.mis-2 .jslghtbx-thmb {
    border-radius: 16px !important;
    border: 1px solid var(--line) !important;
    transition: transform var(--ease), box-shadow var(--ease);
}
.mis-2 .jslghtbx-thmb:hover,
.mis-2 table tbody tr td a img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 43, 76, 0.1);
}
.mis-2 section.page img {
    border-radius: 16px;
}

.mis-2 .main i.far,
.mis-2 .main i.fal,
.mis-2 .main i.fad,
.mis-2 .main i.fas,
.mis-2 section.page i.far,
.mis-2 section.page i.fal,
.mis-2 section.page i.fad {
    color: var(--brand);
}

.mis-2 form .form-control,
.mis-2 form textarea,
.mis-2 form input[type="text"],
.mis-2 form input[type="email"],
.mis-2 form input[type="tel"] {
    border-radius: 14px !important;
    border-color: var(--line) !important;
    padding: 12px 16px;
    font-weight: 500;
    color: var(--ink);
}
.mis-2 form .form-control:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(63, 168, 138, 0.16) !important;
}

.mis-2 .dropdown-menu {
    border-radius: 14px;
    border-color: var(--line);
    box-shadow: var(--shadow);
    padding: 8px;
}
.mis-2 .dropdown-item {
    border-radius: 10px;
    font-weight: 600;
    color: var(--ink-soft);
}
.mis-2 .dropdown-item:hover {
    background: var(--brand-tint);
    color: var(--brand-dark);
}

/* -------------------------------------------------------------------------- */
/* Stopka — zwarta, bez „wysp”                                                */
/* -------------------------------------------------------------------------- */
.mis-2 .footer-1 {
    background: var(--footer) !important;
    margin: var(--space-4) 0 0 !important;
    padding: 48px 0 28px !important;
    padding-top: 48px !important;
    color: var(--ink-soft);
}
.mis-2 .footer-container {
    max-width: var(--container) !important;
    padding: 0 var(--space-3);
    color: var(--ink-soft);
    line-height: 1.5;
}
.mis-2 .footer-1 .text-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.mis-2 .footer-1 .text-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.mis-2 .footer-1 .text-right a:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.85;
}
.mis-2 .footer-1 .text-right img {
    display: block;
    max-height: 28px;
    width: auto;
}
.mis-2 .footer-1 .footer-container > h6.mb-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.82rem;
    color: var(--ink);
}
.mis-2 .footer-1 .footer-container > h6.mb-2 .text-uppercase {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.mis-2 .footer-1 .footer-container > h6.mb-2 .btn {
    float: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: var(--brand-dark) !important;
    text-decoration: none !important;
}
.mis-2 .footer-1 .footer-container > h6.mb-2 .btn:hover {
    background: transparent;
    color: var(--ink) !important;
}
.mis-2 .footer-1 .footer-container > h6.mb-2 .btn small,
.mis-2 .footer-1 .footer-container > h6.mb-2 .btn i {
    color: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}
.mis-2 .footer-1 .footer-container > .text-uppercase {
    text-transform: none !important;
    margin-bottom: 20px;
}
.mis-2 .footer-1 .footer-container ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}
.mis-2 .footer-1 .footer-container ul li {
    background: transparent !important;
    margin: 0;
    padding: 0;
}
.mis-2 .footer-1 .footer-container ul li a,
.mis-2 .footer-1 .footer-container ul li a:link,
.mis-2 .footer-1 .footer-container ul li a:visited {
    display: inline;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: var(--ink-soft) !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    text-decoration: none !important;
    transition: color var(--ease);
}
.mis-2 .footer-1 .footer-container ul li a:hover,
.mis-2 .footer-1 .footer-container ul li:hover a {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--brand-dark) !important;
}
.mis-2 .footer-1 .footer-container > .mt-3 {
    max-width: none;
    margin-top: 0 !important;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
}
.mis-2 .footer-1 .footer-container > .mt-3 > h6 {
    margin: 0 0 8px !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}
.mis-2 .footer-1 .footer-container > .mt-3 > h6 a {
    color: var(--ink) !important;
    text-decoration: none !important;
}
.mis-2 .footer-1 .footer-container > .mt-3 > h6 a:hover {
    color: var(--brand-dark) !important;
}
.mis-2 .footer-1 .footer-container > .mt-3 .mt-2 {
    margin-top: 6px !important;
}
.mis-2 .footer-1 .footer-container > .mt-3 > i,
.mis-2 .footer-1 .footer-container > .mt-3 .far {
    width: 1.1em;
    margin-right: 6px;
    color: var(--brand) !important;
}
.mis-2 .footer-1 .footer-container > .mt-3 a {
    color: var(--brand-dark) !important;
    text-decoration: none !important;
    font-weight: 700;
}
.mis-2 .footer-1 .footer-container > .mt-3 a .fab.fa-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 12px !important;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-dark) !important;
    font-size: 0.95rem !important;
    transition: background var(--ease), color var(--ease);
}
.mis-2 .footer-1 .footer-container > .mt-3 a:hover .fab.fa-facebook {
    background: var(--brand);
    color: #fff !important;
}
.mis-2 .footer-1 hr {
    margin: 0 0 16px;
    border: 0;
    border-top: 1px solid var(--line);
    opacity: 1;
}
.mis-2 .footer-1 .footer-cookies {
    display: block;
    max-width: 620px;
    color: var(--muted) !important;
    font-size: 0.75rem;
    line-height: 1.5;
}
.mis-2 .footer-1 .footer-cookies i {
    color: var(--brand) !important;
    margin-right: 4px;
}
.mis-2 .footer-1 .footer-cookies a {
    color: var(--brand-dark) !important;
    font-weight: 600;
}
.mis-2 .footer-1 img.logo {
    margin: 0 0 4px 20px !important;
    max-height: 36px;
    width: auto;
    opacity: 0.85;
}
.mis-2 .footer-1 h6,
.mis-2 .footer-1 .font-weight-bold {
    font-family: 'Quicksand', sans-serif;
    color: var(--ink);
}
.mis-2 .footer-1 a {
    color: var(--brand-dark);
    text-decoration: none;
}
.mis-2 .footer-1 small,
.mis-2 .footer-1 i {
    color: inherit;
}

/* Menu mobilne */
.mis-2 .nav-mobile-open {
    margin: 0 !important;
    background: transparent !important;
    color: var(--ink) !important;
    border: 0 !important;
    padding: 0 !important;
}

.mis-2 .box-contact {
    margin: 20px 16px 28px;
    padding: 18px 18px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink-soft);
    text-align: left !important;
}
.mis-2 .box-contact .h1 {
    font-family: 'Quicksand', sans-serif;
    color: var(--ink) !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.mis-2 .box-contact a {
    color: var(--brand-dark) !important;
    font-weight: 700;
    text-decoration: none !important;
}
.mis-2 .box-contact strong {
    color: var(--ink);
    font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .top-nav,
    .m2-header-phone { display: none; }

    .m2-burger { display: inline-flex; }

    .m2-header {
        padding: 0;
        margin-bottom: 0;
    }

    .m2-header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        padding: 10px 16px;
        min-height: 60px;
    }

    .m2-logo { max-width: 200px; }
    .m2-logo-text { font-size: 0.85rem; }

    .m2-hero--home {
        min-height: 100svh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .m2-hero--home .m2-hero-bg {
        background-position: left center;
        background-size: cover;
    }

    .m2-hero--home .m2-hero-inner {
        width: 100%;
        padding: 88px 20px 96px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100%;
        box-sizing: border-box;
    }

    .m2-hero--home .m2-hero-copy {
        width: 100%;
        max-width: 36rem;
        margin: 0 auto;
        padding: 0;
        text-align: center !important;
        background: none;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .m2-hero--home .m2-hero-title,
    .m2-hero--home .m2-hero-title-main,
    .m2-hero--home .m2-hero-title-accent,
    .m2-hero--home .m2-hero-lead {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .m2-hero--home .m2-hero-title {
        font-size: clamp(2.1rem, 8vw, 2.75rem);
    }

    .m2-hero-dots {
        justify-content: center;
        margin: 18px auto 16px;
    }

    .m2-hero--home .m2-hero-lead {
        max-width: 34em;
        margin-bottom: 22px;
        font-size: 0.98rem;
    }

    .m2-hero--home .m2-hero-actions {
        justify-content: center;
        width: 100%;
    }

    .m2-hero--home .m2-hero-overlay {
        display: block;
        background: linear-gradient(
            180deg,
            rgba(250, 246, 233, 0.35) 0%,
            rgba(250, 246, 233, 0.2) 40%,
            rgba(250, 246, 233, 0.08) 70%,
            transparent 100%
        );
    }

    .m2-hero--compact {
        min-height: 260px;
    }
    .m2-hero--compact::after {
        height: 56px;
    }
    .m2-hero--compact .m2-hero-inner {
        padding: 64px 20px 72px;
    }
    .m2-hero--compact .m2-hero-title {
        font-size: clamp(1.6rem, 6vw, 2.05rem);
    }

    .m2-hero--compact .m2-hero-overlay {
        display: block;
        background: linear-gradient(
            180deg,
            rgba(250, 246, 233, 0.9) 0%,
            rgba(250, 246, 233, 0.65) 55%,
            rgba(250, 246, 233, 0.15) 100%
        );
    }

    .m2-features {
        padding: var(--space-4) 20px var(--space-2);
    }
    .m2-features-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3) var(--space-2);
    }

    .mis-2 .body { padding: 20px 20px var(--space-4); }

    .mis-2 .footer-1 {
        padding: 36px 0 24px !important;
    }
    .mis-2 .footer-container {
        padding: 0 20px;
    }
    .mis-2 .footer-1 .footer-container > h6.mb-2 {
        flex-wrap: wrap;
    }
    .mis-2 .footer-1 .footer-container > .mt-3 {
        max-width: none;
    }
    .mis-2 .footer-1 img.logo {
        float: none !important;
        display: block;
        margin: 16px 0 0 !important;
    }

    .mis-2 article.my-5 {
        padding: 24px 20px 22px;
    }

    .mis-2 .article-title {
        margin-bottom: 14px;
        padding-bottom: 0;
    }

    .mis-2 .article-title a:link,
    .mis-2 .article-title a:visited,
    .mis-2 section.page .article-title a:link:not(.btn):not(.page-link),
    .mis-2 section.page .article-title a:visited:not(.btn):not(.page-link) {
        font-size: 1.28rem;
    }

    .mis-2 article.my-5 .p-2 img,
    .mis-2 article.my-5 img {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
        padding: 6px;
    }

    .mis-2 article.my-5 .img-thumbnail,
    .mis-2 article.my-5 img.img-fluid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 14px 0 !important;
    }

    .mis-2 article.my-5:has(> .p-2.text-center) {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "thumb"
            "body"
            "btn";
        column-gap: 0;
    }
    .mis-2 article.my-5:has(> .p-2.text-center) > .p-2.text-center {
        margin: 0 0 16px;
    }
    .mis-2 article.my-5:has(> .p-2.text-center) > .p-2:not(.text-center) {
        margin: 0 0 16px;
    }
    .mis-2 article.my-5:has(> .p-2.text-center) .img-thumbnail,
    .mis-2 article.my-5:has(> .p-2.text-center) img.img-fluid,
    .mis-2 article.my-5:has(> .p-2.text-center) img {
        margin: 0 !important;
    }

    .mis-2 #nav-menu,
    .mis-2 .nav {
        z-index: 850 !important;
        height: 100vh !important;
        height: 100dvh !important;
        overflow-y: auto;
        background: #fff !important;
        box-shadow: 8px 0 32px rgba(26, 43, 76, 0.12);
        padding-top: 72px !important;
        -webkit-overflow-scrolling: touch;
    }

    .mis-2 .nav-mobile-close {
        position: absolute;
        top: 14px;
        right: 16px;
        z-index: 2;
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: var(--surface);
        border: 1px solid var(--line);
        color: var(--ink) !important;
        font-size: 1.6rem;
        line-height: 1;
        text-decoration: none !important;
    }

    .mis-2 .nav ul {
        padding: 8px 16px 12px !important;
        margin: 0 0 8px !important;
        background: none !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    .mis-2 .nav ul li {
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        border: 0 !important;
    }

    .mis-2 .nav ul li a,
    .mis-2 .nav ul a:link,
    .mis-2 .nav ul a:visited {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 6px !important;
        padding: 14px 16px !important;
        border-radius: 14px !important;
        background: transparent !important;
        color: var(--ink) !important;
        font-family: 'Quicksand', sans-serif !important;
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        text-align: left !important;
        float: none !important;
        border-bottom: 0 !important;
        transition: background var(--ease), color var(--ease);
    }

    .mis-2 .nav ul li a:hover,
    .mis-2 .nav ul li a:focus {
        background: var(--brand-tint) !important;
        color: var(--brand-dark) !important;
    }

    .mis-2 .box-contact {
        display: block !important;
    }

    .mis-2 .main {
        position: relative;
        z-index: 1;
    }

    body.mis-2.mobile-nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(26, 43, 76, 0.35);
        z-index: 800;
        backdrop-filter: blur(2px);
    }
}

@media (max-width: 600px) {
    .m2-features-inner { grid-template-columns: 1fr; }
    .m2-hero--home .m2-hero-actions {
        width: 100%;
        flex-wrap: nowrap;
    }
    .m2-hero--home .m2-btn {
        flex: 1 1 0;
        padding-left: 14px;
        padding-right: 14px;
        font-size: 0.88rem;
    }
    .m2-hero--home .m2-hero-title {
        font-size: clamp(1.95rem, 9vw, 2.4rem);
    }
    .m2-logo-text { display: none; }
}


.mis-2 .footer-1 { background-color: var(--footer) !important; }
