﻿/* =========================================================
   GRID SYSTEM: .row + .col-1 ... .col-12 (flexbox, mobile-first)
   Reużywalny, ogólny system kolumnowy w stylu Bootstrapa.
   ========================================================= */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row > [class*="col-"] {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .row > .col-1  { width: 8.3333%; }
    .row > .col-2  { width: 16.6667%; }
    .row > .col-3  { width: 25%; }
    .row > .col-4  { width: 33.3333%; }
    .row > .col-5  { width: 41.6667%; }
    .row > .col-6  { width: 50%; }
    .row > .col-7  { width: 58.3333%; }
    .row > .col-8  { width: 66.6667%; }
    .row > .col-9  { width: 75%; }
    .row > .col-10 { width: 83.3333%; }
    .row > .col-11 { width: 91.6667%; }
    .row > .col-12 { width: 100%; }
    .row > .col-offset-2 { margin-left: 16.6667%; }
}

@media (max-width: 767px) {
    .row > .col-offset-2 { margin-left: 0; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', sans-serif;
}

.site-heading {
    height: 100%;
}

#main-home-slider .dots {
    position: absolute;
    left: clamp(28px, 7vw, 96px);
    bottom: clamp(22px, 5vw, 80px);
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
    line-height: 1;
    z-index: 6;
}

#main-home-slider .dots li {
    width: 12px;
    height: 12px;
    margin: 0 8px 0 0;
    transition: width 0.2s ease;
}

#main-home-slider .dots li button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: #d6d8db;
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

#main-home-slider .dots li.slick-active button,
#main-home-slider .dots li button:hover {
    background: #af1118;
    transform: scale(1.08);
}

#main-home-slider .dots li.slick-active {
    width: 34px;
}

#main-home-slider .dots li.slick-active button {
    width: 34px;
}

/* main.css hides .main-slide below 768px for an old markup variant that no longer exists; force it back on */
@media only screen and (max-width: 768px) {
    .site-heading .slick-slider .slide .main-slide {
        display: block;
    }
}

.site-heading .slick-slider .slide .main-slide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: clamp(480px, 62vw, 640px);
    position: relative;
    text-align: left;
    overflow: hidden;
}

.site-heading .slick-slider .slide .main-slide::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: min(56%, 860px);
    height: 100%;
    background: linear-gradient(90deg, #f8f4f0 0%, #f8f5f0 100%);
    clip-path: ellipse(100% 136% at 0% 17%);
    z-index: 1;
}

.site-heading .slick-slider .slide .main-slide::after {
    content: "";
    position: absolute;
    left: -265px;
    bottom: -182px;
    width: 500px;
    height: 500px;
    background: url('../img/zlota-roslina-500x500-transparent.png') no-repeat left bottom;
    background-size: contain;
    opacity: 0.95;
    z-index: 2;
    pointer-events: none;
}

.site-heading .slick-slider .slide a {
    text-decoration: none;
}

.home-slider-caption {
    position: absolute;
    top: 50%;
    left: clamp(28px, 7vw, 96px);
    transform: translateY(-50%);
    width: min(43vw, 560px);
    text-align: left;
    color: #1d2430;
    text-shadow: none;
    z-index: 4;
}

.home-slider-caption__eyebrow {
    margin: 0 0 16px;
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
    color: #c49651;
}

.home-slider-caption__title {
    margin: 0 0 16px;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(42px, 5.1vw, 70px);
    line-height: 1.04;
    font-weight: 500;
    color: #1f242d;
    letter-spacing: -0.01em;
    text-align: left;
    text-transform: none;
}

.home-slider-caption__middle,
.home-slider-caption__bottom {
    margin: 0;
    max-width: 470px;
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(14px, 1.25vw, 18px);
    line-height: 1.5;
    color: #4d5866;
}

.home-slider-caption__middle {
    margin-bottom: 30px;
    margin-top: 30px;
}

.home-slider-caption__bottom {
    margin-bottom: 22px;
}

.home-slider-caption__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-slider-caption__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 4px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all 0.22s ease;
}

.home-slider-caption__button--primary {
    border: 1px solid #b70f1a;
    background: #b70f1a;
    color: #fff;
    box-shadow: 0 7px 16px rgba(183, 15, 26, 0.2);
}

.home-slider-caption__button--secondary {
    border: 1px solid #d4a85f;
    background: #fff;
    color: #a87732;
}

.home-slider-caption__button:hover,
.home-slider-caption__button:focus-visible {
    background: #a90f19;
    border-color: #a90f19;
    color: #fff;
    transform: translateY(-1px);
}

@media only screen and (max-width: 1024px) {
    .site-heading .slick-slider .slide .main-slide::before {
        width: 65%;
    }

    .site-heading .slick-slider .slide .main-slide::after {
        width: 220px;
        height: 220px;
        left: -10px;
        bottom: -6px;
    }

    .home-slider-caption {
        width: min(72vw, 520px);
    }

    .home-slider-caption__title {
        font-size: clamp(36px, 5.2vw, 52px);
    }

    .home-slider-caption__eyebrow {
        margin-bottom: 12px;
    }
}

@media only screen and (max-width: 767px) {
    #main-home-slider .dots {
        left: 22px;
        bottom: 20px;
    }

    .site-heading .slick-slider .slide .main-slide {
        min-height: 500px;
    }

    .site-heading .slick-slider .slide .main-slide::after {
        width: 180px;
        height: 180px;
        left: -18px;
        bottom: -4px;
    }

    .home-slider-caption {
        left: 22px;
        right: 18px;
        width: 55%;
        top: 46%;
    }

    .home-slider-caption__title {
        margin-bottom: 10px;
        font-size: clamp(33px, 11vw, 46px);
    }

    .home-slider-caption__eyebrow {
        margin-bottom: 10px;
        font-size: 16px;
        letter-spacing: 0.06em;
    }

    .home-slider-caption__middle,
    .home-slider-caption__bottom {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.5;
    }

    .home-slider-caption__bottom {
        margin-bottom: 14px;
    }

    .home-slider-caption__actions {
        gap: 10px;
    }

    .home-slider-caption__button {
        min-height: 42px;
        padding: 0 16px;
        font-size: 13px;
    }
}

@media only screen and (max-width: 480px) {
    .site-heading .slick-slider .slide .main-slide {
        min-height: 440px;
    }

    .site-heading .slick-slider .slide .main-slide::after {
        width: 130px;
        height: 130px;
        left: -22px;
        bottom: -2px;
    }

    .home-slider-caption {
        top: 42%;
    }
}

/* Home stats bar under slider */
.home-stats {
    position: relative;
    z-index: 12;
    margin-top: -50px;
    padding: 0 18px;
}

.home-stats__inner {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(23, 34, 49, 0.1);
    overflow: hidden;
}

.home-stats__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 116px;
    padding: 40px 24px 30px 24px;
    border-right: 1px solid #ececf0;
}

.home-stats__item:last-child {
    border-right: 0;
}

.home-stats__icon-wrap {
    width: 90px;
    flex: 0 0 90px;
}

.home-stats__icon {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -20px;
}

.home-stats__value {
    margin-bottom: 4px;
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(26px, 2.75vw, 38px);
    line-height: 0.95;
    font-weight: 600;
    color: #bf8d48;
}

.home-stats__title {
    margin-bottom: 2px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    line-height: 1.22;
    font-weight: 700;
    color: #1f2935;
}

.home-stats__desc {
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    line-height: 1.38;
    color: #5f6b79;
    margin-top: 10px;
}

@media only screen and (max-width: 1223px) {
    .home-stats {
        margin-top: -34px;
    }

    .home-stats__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-radius: 16px;
    }

    .home-stats__item:nth-child(3n) {
        border-right: 0;
    }

    .home-stats__item {
        min-height: 106px;
        padding: 16px 18px;
    }
}

@media only screen and (max-width: 767px) {
    .home-stats {
        margin-top: 10px;
        padding: 0 14px;
    }

    .home-stats__inner {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .home-stats__item {
        min-height: 0;
        padding: 16px 14px;
        border-right: 0;
        border-bottom: 1px solid #ececf0;
    }

    .home-stats__item:last-child {
        border-bottom: 0;
    }

    .home-stats__value {
        font-size: 30px;
    }

    .home-stats__title {
        font-size: 15px;
    }

    .home-stats__desc {
        font-size: 12px;
    }
}

/* =====================================================
   HEADER: NEW CLEAN STYLES ONLY
   ===================================================== */

#header.header-container,
#header.header-container * {
    box-sizing: border-box;
}

#header.header-container {
    position: relative !important;
    background: #fff !important;
    border-bottom: 1px solid #e9e9e9 !important;
    z-index: 1200;
}

#header .inner {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
}

#header .header-top {
    min-height: 44px;
    position: relative;
    overflow: visible;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ececec;
}

#header .header-top::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #f3f1ed;
    z-index: -1;
}

#header #menu-top,
#header .top-links {
    list-style: none !important;
    display: flex !important;
    align-items: center;
    gap: 30px;
    margin: 0 !important;
    padding: 0 !important;
}

#header #menu-top li,
#header .top-links li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#header #menu-top a,
#header .top-links a {
    display: inline-block;
    position: relative;
    color: #222;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1;
    text-transform: none !important;
    text-decoration: none;
    text-shadow: none !important;
    transition: color 0.2s ease;
}

#header #menu-top a::after,
#header .top-links a::after,
#header .lang-list a::after,
#header #menu-main > li > a::after,
#header .main-links > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

#header #menu-top a:hover::after,
#header .top-links a:hover::after,
#header .lang-list a:hover::after,
#header #menu-main > li > a:hover::after,
#header .main-links > li > a:hover::after,
#header #menu-top a:focus-visible::after,
#header .top-links a:focus-visible::after,
#header .lang-list a:focus-visible::after,
#header #menu-main > li > a:focus-visible::after,
#header .main-links > li > a:focus-visible::after,
#header #menu-top li.current-menu-item > a::after,
#header .top-links li.current-menu-item > a::after,
#header #menu-main > li.current-menu-item > a::after,
#header .main-links > li.current-menu-item > a::after,
#header .lang-list a.is-active::after {
    transform: scaleX(1);
}

#header #menu-top a:hover,
#header .top-links a:hover {
    color: #a81919;
}

#header .top-tools {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 50;
}

#header .lang-dropdown {
    position: relative;
    z-index: 60;
}

#header .lang-current {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1;
    text-shadow: none !important;
    cursor: pointer;
}

#header .lang-current i {
    font-size: 13px;
}

#header .lang-list {
    display: none;
    position: absolute;
    right: auto;
    left: 0;
    top: calc(100% + 12px);
    min-width: 180px;
    margin: 0;
    padding: 8px 0;
    list-style: none !important;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 30;
}

#header .lang-dropdown.is-open .lang-list {
    display: block;
}

#header .lang-list li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

#header .lang-list a {
    display: block;
    padding: 10px 16px;
    color: #111;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.15;
}

#header .lang-list a:hover,
#header .lang-list a.is-active {
    background: #f6f6f6;
    color: #a81919;
}

#header .top-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    color: #111;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1;
    text-decoration: none;
    text-shadow: none !important;
}

#header .top-search i {
    font-size: 13px;
}

#header .top-search:hover {
    color: #a81919;
}

#header .top-search-wrap {
    position: relative;
}

#header .top-search-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    transition: width 0.25s ease, opacity 0.2s ease;
    z-index: 40;
}

#header .top-search-wrap.is-open .top-search-panel {
    width: 290px;
    opacity: 1;
    pointer-events: auto;
}

#header .top-search-panel input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 12px 12px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    color: #161616;
    outline: none;
}

#header .top-search-panel button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
}

#header .top-search-panel button:hover {
    color: #a81919;
}

#header .header-main {
    min-height: 84px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#header .logo {
    flex: 0 0 auto;
    min-width: 210px;
}

#header .logo a {
    text-indent: 0;
}

#header .logo .custom-logo-link,
#header .logo .custom-logo-link img {
    display: block;
    max-width: 100%;
    height: auto;
}

#header .logo .custom-logo {
    max-height: 52px;
    width: auto;
}

#header .menu {
    display: flex;
    align-items: center;
    margin-left: auto;
}

#header .menu .button {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#header .menu .menu-links {
    display: flex !important;
    align-items: center;
    float: none !important;
}

#header #menu-main,
#header .main-links {
    list-style: none !important;
    display: flex !important;
    align-items: center;
    gap: 28px;
    margin: 0 !important;
    padding: 0 !important;
}

#header #menu-main > li,
#header .main-links > li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#header #menu-main > li > a,
#header .main-links > li > a {
    display: inline-flex;
    align-items: center;
    color: #131313 !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1;
    white-space: nowrap;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    transition: color 0.2s ease;
}

#header #menu-main > li > a:hover,
#header .main-links > li > a:hover,
#header #menu-main > li.current-menu-item > a,
#header .main-links > li.current-menu-item > a {
    color: #a81919 !important;
}

#header #menu-main > li:last-child > a,
#header .main-links > li:last-child > a {
    margin-left: 10px;
    padding: 14px 26px;
    border-radius: 8px;
    color: #fff !important;
    background: #af1118;
}

#header #menu-main > li:last-child > a:hover,
#header .main-links > li:last-child > a:hover {
    background: #8e0e14;
}

#header #menu-main .sub-menu,
#header .main-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none !important;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    z-index: 30;
}

#header #menu-main > li:hover > .sub-menu,
#header #menu-main > li:focus-within > .sub-menu,
#header #menu-main > li.is-open > .sub-menu,
#header .main-links > li:hover > .sub-menu,
#header .main-links > li:focus-within > .sub-menu,
#header .main-links > li.is-open > .sub-menu {
    display: block;
}

#header #menu-main > li > a:focus-visible,
#header .main-links > li > a:focus-visible,
#header .lang-current:focus-visible,
#header .top-search:focus-visible,
#header .menu .button:focus-visible,
#header .top-search-panel input:focus-visible,
#header .top-search-panel button:focus-visible {
    outline: 2px solid #af1118;
    outline-offset: 2px;
}

#header #menu-main .sub-menu li,
#header .main-links .sub-menu li {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

#header #menu-main .sub-menu li a,
#header .main-links .sub-menu li a {
    display: block;
    padding: 10px 14px;
    color: #1c1c1c;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.2;
    text-decoration: none;
    white-space: normal;
}

#header #menu-main .sub-menu li a:hover,
#header .main-links .sub-menu li a:hover {
    background: #f5f5f5;
}

@media (max-width: 1360px) {
    #header .inner {
        padding: 0 22px;
    }

    #header #menu-main,
    #header .main-links {
        gap: 22px;
    }

    #header #menu-main > li > a,
    #header .main-links > li > a {
        font-size: 16px !important;
    }
}

@media (max-width: 1180px) {
    #header .header-top {
        min-height: 42px;
    }

    #header #menu-top a,
    #header .top-links a,
    #header .top-search,
    #header .lang-current {
        font-size: 14px !important;
    }

    #header .top-search-wrap.is-open .top-search-panel {
        width: 250px;
    }

    #header .menu .button {
        width: 44px;
        height: 44px;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    #header .menu .button span {
        width: 26px;
        height: 2px;
        background: #111;
        display: block;
        margin: 0 auto;
    }

    #header .menu .menu-links {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 1px);
        display: none !important;
        padding: 22px;
        background: #fff;
        border-top: 1px solid #ededed;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    }

    #header .menu.is-open .menu-links {
        display: block !important;
    }

    #header #menu-main,
    #header .main-links {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }

    #header #menu-main > li,
    #header .main-links > li {
        width: 100%;
    }

    #header #menu-main > li > a,
    #header .main-links > li > a {
        font-size: 20px !important;
        white-space: normal;
    }

    #header #menu-main > li:last-child > a,
    #header .main-links > li:last-child > a {
        margin-left: 0;
        margin-top: 8px;
    }

    #header #menu-main .sub-menu,
    #header .main-links .sub-menu {
        position: static;
        display: block;
        margin-top: 8px;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 12px;
        min-width: 0;
    }
}

@media (max-width: 860px) {
    #header .header-top {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 10px 0;
    }

    #header .top-search-panel {
        top: calc(100% + 8px);
    }

    #header .top-search-wrap.is-open .top-search-panel {
        width: min(320px, calc(100vw - 30px));
        right: 50%;
        transform: translateX(50%);
    }

    #header #menu-top,
    #header .top-links {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    #header .header-main {
        min-height: 80px;
    }

    #header .logo .custom-logo {
        max-height: 48px;
    }
}

/* =========================================================
   REUSABLE MODULE: .home-news-grid + .home-news-card
   Ten sam wygląd co karty "Aktualności" na stronie głównej,
   do wklejenia na dowolnej podstronie z listą wpisów.
   ========================================================= */
.home-news-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.home-news-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

@media only screen and (min-width: 768px) {
    .home-news-card {
        width: 50%;
    }
}

@media only screen and (min-width: 1100px) {
    .home-news-card {
        width: 33.3333%;
    }
}

.home-news-card__image-wrap {
    margin: 0;
}

.home-news-card__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: #fff;
    padding: 0;
    margin: 0;
}

.home-news-card__body {
    border-left: 1px solid #ece8e1;
    border-right: 1px solid #ece8e1;
    padding: 14px 16px 6px;
    background: #fff;
    flex: 1 1 auto;
}

.home-news-card__date {
    margin-bottom: 8px;
    color: #8f99a7;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
}

.home-news-card__title {
    margin: 0 0 10px;
    color: #1f2732;
    font-family: 'Ubuntu', sans-serif;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    text-align: left;
}

.home-news-card__excerpt {
    margin: 0;
    color: #4f5968;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

.home-news-card__footer {
    border-left: 1px solid #ece8e1;
    border-right: 1px solid #ece8e1;
    border-bottom: 1px solid #ece8e1;
    background: #fff;
    padding: 0 16px 16px;
}

.home-news-card__more {
    display: inline-block;
    position: relative;
    color: #c53d46;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    padding-right: 14px;
}

.home-news-card__more::after {
    content: '\2192';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-52%);
    font-size: 14px;
}

/* Home sections migrated from theme52174 */
#main.homepage #news .container, #main .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#main.homepage #news .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

#main.homepage #news .col-12,
#main.homepage #news .col-6 {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media only screen and (min-width: 768px) {
    #main.homepage #news .col-6 {
        width: 50%;
    }
}

#main.homepage #news .news-container {
    margin-bottom: 40px;
}

#main.homepage #news .home-news-section {
    margin-top: 10px;
}

#main.homepage #news .home-news-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee4d8;
    margin-bottom: 18px;
}

#main.homepage #news .home-news-section__title {
    margin: 0;
    color: #1e2732;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: left;
}

#main.homepage #news .home-news-section__all-link {
    position: relative;
    color: #c53d46;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    padding-right: 16px;
}

#main.homepage #news .home-news-section__all-link::after {
    content: '\203A';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

#main.homepage #news .home-news-card {
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    padding-right: 12px;
}

#main.homepage #news .home-news-card__image-wrap {
    margin: 0;
}

#main.homepage #news .home-news-card__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: #fff;
    padding: 0;
    margin: 0;
}

#main.homepage #news .home-news-card__body {
    border-left: 1px solid #ece8e1;
    border-right: 1px solid #ece8e1;
    padding: 14px 16px 6px;
    background: #fff;
    flex: 1 1 auto;
}

#main.homepage #news .home-news-card__date {
    margin-bottom: 8px;
    color: #8f99a7;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
}

#main.homepage #news .home-news-card__title {
    margin: 0 0 10px;
    color: #1f2732;
    font-family: 'Ubuntu', sans-serif;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    text-align: left;
}

#main.homepage #news .home-news-card__excerpt {
    margin: 0;
    color: #4f5968;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

#main.homepage #news .home-news-card__footer {
    border-left: 1px solid #ece8e1;
    border-right: 1px solid #ece8e1;
    border-bottom: 1px solid #ece8e1;
    background: #fff;
    padding: 0 16px 16px;
}

#main.homepage #news .home-news-card__more {
    display: inline-block;
    position: relative;
    color: #c53d46;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    padding-right: 14px;
}

#main.homepage #news .home-news-card__more::after {
    content: '\2192';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-52%);
    font-size: 14px;
}

@media only screen and (min-width: 768px) {
    #main.homepage #news .home-news-card.col-4 {
        width: 50%;
    }
}

@media only screen and (min-width: 1100px) {
    #main.homepage #news .home-news-card.col-4 {
        width: 33.3333%;
    }
}

@media only screen and (max-width: 767px) {
    #main.homepage #news .home-news-section__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    #main.homepage #news .home-news-card {
        padding-left: 15px;
        padding-right: 15px;
    }

    #main.homepage #news .home-news-card__image {
        height: auto;
    }
}

#main.homepage #news .extraimg_1 {
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

#main.homepage #news .extrabox_1 {
    background: transparent;
}

#main.homepage #news .extrabox_1 .extraimg_2 {
    padding: 15px;
    border: 1px solid #efefef;
    background: #fff;
    box-sizing: border-box;
    margin-bottom: 29px;
    margin-right: 30px;
    max-width: 100%;
}

@media only screen and (max-width: 580px) {
    #main.homepage #news .extrabox_1 .extraimg_2 {
        margin-right: 0;
        float: none;
        margin-bottom: 10px;
    }
}

.mision {
    padding: 72px 0 36px;
    position: relative;
    overflow: hidden;
}

.mision .container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
}

.mision__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: start;
    position: relative;
}

.mision__layout::after {
    content: "";
    position: absolute;
    right: -70px;
    top: 12px;
    width: 240px;
    height: 240px;
    background: url('../img/zlota-roslina-500x500-transparent.png') no-repeat center center;
    background-size: contain;
    opacity: 0.55;
    pointer-events: none;
}

.mision__gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    grid-template-rows: repeat(2, minmax(0, 190px));
    gap: 12px;
}

.mision__media {
    margin: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #f2f2f2;
    box-shadow: 0 8px 20px rgba(22, 30, 40, 0.08);
}

.mision__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mision__media:first-child {
    grid-column: 1;
    grid-row: 1;
}

.mision__media:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.mision__media:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.mision__content {
    position: relative;
    z-index: 1;
    padding-top: 6px;
    max-width: 620px;
}

.mision__eyebrow {
    margin-bottom: 12px;
    color: #c99b59;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mision__title {
    margin: 0 0 20px;
    color: #1f2b39;
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(24px, 3.9vw, 34px);
    line-height: 1.04;
    font-weight: 700;
    text-align: left;
}

.mision__description {
    margin-bottom: 30px;
    color: #4f5b68;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.mision__description p {
    margin: 0 0 14px;
}

.mision__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.mision__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mision__feature-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex: 0 0 46px;
}

.mision__feature-title {
    margin: 0 0 6px;
    color: #1f2b39;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    text-align: left;
    text-transform: capitalize;
}

.mision__feature-desc {
    margin: 0;
    color: #626d79;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.mision__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 34px;
    border-radius: 4px;
    background: #b70f1a;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(183, 15, 26, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mision__button:hover,
.mision__button:focus-visible {
    background: #a60e18;
    color: #fff;
    transform: translateY(-1px);
}

@media only screen and (max-width: 1223px) {
    .mision {
        padding-top: 56px;
    }

    .mision .container {
        padding: 0 20px;
    }

    .mision__layout {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .mision__layout::after {
        right: -20px;
        top: auto;
        bottom: 20px;
        width: 180px;
        height: 180px;
    }

    .mision__content {
        max-width: none;
    }
}

@media only screen and (max-width: 767px) {
    .mision__gallery .mision__media{
        display: none;
    }
     .mision__gallery .mision__media:first-child {
        display: block;
    }
    .mision {
        padding: 0px 14px 20px;
    }

    .mision .container {
        padding: 0 14px;
    }

    .mision__gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 220px);
    }

    .mision__media:first-child,
    .mision__media:nth-child(2),
    .mision__media:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .mision__layout::after {
        display: none;
    }

    .mision__title {
        margin-bottom: 16px;
        font-size: 34px;
    }

    .mision__description {
        margin-bottom: 24px;
        font-size: 15px;
    }

    .mision__features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mision__button {
        width: 100%;
        min-height: 50px;
    }
}

.home-company {
    margin-top: 60px;
}

.home-company .container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
}

.home-company .row {
    margin-left: 0;
    margin-right: 0;
}

.home-company .col-12 {
    width: 100%;
    margin-left: 0;
}

.home-company__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid #eee7dd;
}

.home-company__title {
    margin: 0;
    color: #202833;
    font-size: 42px;
    font-size: clamp(28px, 2.4vw, 42px);
    line-height: 1;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: uppercase;
}

.home-company__all-link {
    position: relative;
    padding-right: 16px;
    color: #c53d46;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.home-company__all-link::after {
    content: '\203A';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.home-company .carousel-wrap.extra_carousel1 {
    border: 0;
    margin-top: 16px;
    padding: 0;
}

.home-company .home-company__carousel {
    margin: 0 -10px;
}

.home-company .extra_carousel1 .item {
    padding: 20px;
}

.home-company__card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    min-height: 255px;
    padding: 24px 78px 22px 26px;
    border: 1px solid #ece6dc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(33, 37, 41, 0.04);
    margin-inline: 5px;
}

.home-company__figure {
    margin: 0 0 18px;
    min-height: 54px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.home-company__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 78%;
}

.home-company__figure img {
    display: block;
    max-width: 100%;
    width: auto;
}

.home-company__desc {
    color: #555f6e;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

.home-company__name,
.home-company .extra_carousel1 .desc h5 {
    display: block;
    margin: 0 0 10px;
    color: #202833;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.home-company__name a,
.home-company .extra_carousel1 .desc h5 a {
    color: inherit;
    text-decoration: none;
}

.home-company__desc p {
    margin: 0;
}

/* variant used on "nasze spółki" - no single link/arrow, so no need for the extra right padding */
.home-company__card--plain {
    padding-right: 26px;
}

.home-company__catalogs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
}

.home-company__catalog {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555f6e;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    text-decoration: none;
}

.home-company__catalog img {
    max-height: 22px;
    width: auto;
}

.home-company__catalog:hover,
.home-company__catalog:focus-visible {
    color: #a87732;
}

.home-company__more {
    position: absolute;
    right: 22px;
    bottom: 30px;
    width: 34px;
    height: 34px;
    border: 2px solid #e7c892;
    border-radius: 50%;
    color: #d4a257;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-company__more:hover,
.home-company__more:focus-visible {
    background: #d4a257;
    border-color: #d4a257;
    color: #fff;
}

.home-company .slick-prev,
.home-company .slick-next {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-top: 0;
    border: 1px solid #eeeae4;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: 0;
    line-height: 1;
    z-index: 2;
    transform: translateY(-50%);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-company .slick-prev::before,
.home-company .slick-next::before {
    content: '\203A';
    display: block;
    color: #1c2024;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    opacity: 1;
}

.home-company .slick-prev {
    display: none !important;
}

.home-company .slick-next {
    right: -18px;
}

.home-company .slick-next:hover,
.home-company .slick-next:focus-visible {
    border-color: #bd3f45;
    background: #fff;
}

/* =========================================================
   REUSABLE MODULE: .home-company-logo
   Prosty slider samych logotypów (bez nazwy/opisu), do wklejenia
   na dowolnej podstronie - wygląd jak .brands-logos / .prymat-brands-slider.
   ========================================================= */
.home-company-logo .carousel-wrap.extra_carousel1 {
    border: 0;
    margin-top: 16px;
    padding: 0;
}

.home-company-logo .home-company-logo__carousel {
    margin: 0 -7px;
}

.home-company-logo .extra_carousel1 .item {
    padding: 0 7px;
}

.home-company-logo__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 104px;
    padding: 16px 18px;
    border: 1px solid #eeeae4;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.home-company-logo__image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 62px;
    object-fit: contain;
}

.home-company-logo .slick-prev,
.home-company-logo .slick-next {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-top: 0;
    border: 1px solid #eeeae4;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: 0;
    line-height: 1;
    z-index: 2;
    transform: translateY(-50%);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-company-logo .slick-prev::before,
.home-company-logo .slick-next::before {
    content: '\203A';
    display: block;
    color: #1c2024;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    opacity: 1;
}

.home-company-logo .slick-prev {
    display: none !important;
}

.home-company-logo .slick-next {
    right: -18px;
}

.home-company-logo .slick-next:hover,
.home-company-logo .slick-next:focus-visible {
    border-color: #bd3f45;
    background: #fff;
}

/* Shared Slick carousel for content and card sliders. */
.site-carousel {
    margin: 0 -10px;
}

.site-carousel .item {
    padding: 0 10px;
    box-sizing: border-box;
}

.site-carousel .slick-prev,
.site-carousel .slick-next {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-top: 0;
    border: 1px solid #eeeae4;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: 0;
    line-height: 1;
    z-index: 2;
    transform: translateY(-50%);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.site-carousel .slick-prev {
    display: none !important;
}

.site-carousel .slick-next {
    right: -18px;
}

.site-carousel .slick-prev::before,
.site-carousel .slick-next::before {
    content: '\203A';
    display: block;
    color: #1c2024;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    opacity: 1;
}

.site-carousel .slick-next:hover,
.site-carousel .slick-next:focus-visible {
    border-color: #bd3f45;
    background: #fff;
}

.site-carousel--dots .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.site-carousel--dots .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

.site-carousel--dots .slick-dots li button {
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid #c49651;
    border-radius: 50%;
    background: transparent;
    font-size: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-carousel--dots .slick-dots li button:hover,
.site-carousel--dots .slick-dots li.slick-active button {
    background: #c49651;
}

.site-carousel--dots .slick-dots li.slick-active button {
    transform: scale(1.3);
}

@media only screen and (max-width: 1223px) {
    .home-company {
        padding-top: 20px;
    }

    .home-company .container {
        padding: 0 20px;
    }

    .home-company__card {
        min-height: 220px;
        padding: 20px 66px 18px 20px;
    }
}

@media only screen and (max-width: 767px) {
    .home-company {
        padding-top: 16px;
    }

    .home-company .container {
        padding: 0 14px;
    }

    .home-company__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .home-company__all-link {
        padding-right: 14px;
    }

    .home-company__card {
        min-height: 0;
        padding: 18px 58px 18px 18px;
    }

    .home-company__figure {
        min-height: 42px;
        margin-bottom: 14px;
    }

    .home-company__figure img {
        max-height: 30px;
    }

    .home-company__name,
    .home-company .extra_carousel1 .desc h5 {
        font-size: 15px;
    }

    .home-company__desc {
        font-size: 12px;
    }

    .home-company__more {
        right: 16px;
        width: 30px;
        height: 30px;
        margin-top: -15px;
        font-size: 20px;
    }
}

.brands-logos {
    margin: 48px 0 24px;
    overflow: hidden;
    background: #fff;
}

.brands-logos .brands-logos__inner {
    display: flex;
    align-items: center;
    gap: 42px;
    width: 100%;
    margin: 0 auto;
    padding: 0 75px;
    box-sizing: border-box;
}

.brands-logos .brands-logos__intro {
    flex: 0 0 300px;
}

.brands-logos .brands-logos__eyebrow {
    margin: 0 0 12px;
    color: #b28a48;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.brands-logos .brands-logos__title {
    margin: 0 0 18px;
    color: #161b20;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 29px;
    font-weight: 600;
    line-height: 1.1;
    text-align: left;
    text-transform: inherit;
}

.brands-logos .brands-logos__all-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #bd3f45;
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.brands-logos .brands-logos__all-link span {
    font-size: 16px;
    line-height: 0.8;
}

.brands-logos .brands-logos__slider-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 28px;
}

.brands-logos .prymat-brands-slider {
    margin: 0 -7px;
}

.brands-logos .brands-logos__slide {
    padding: 0 7px;
}

.brands-logos .brands-logos__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 104px;
    border: 1px solid #eeeae4;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.brands-logos .brands-logos__image {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.brands-logos .slick-prev,
.brands-logos .slick-next {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-top: 0;
    border: 1px solid #eeeae4;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: 0;
    line-height: 1;
    z-index: 2;
    transform: translateY(-50%);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.brands-logos .slick-prev {
    display: none !important;
}

.brands-logos .slick-next {
    right: -18px;
}

.brands-logos .slick-prev::before,
.brands-logos .slick-next::before {
    content: '\203A';
    display: block;
    color: #1c2024;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    opacity: 1;
}

.brands-logos .slick-next:hover,
.brands-logos .slick-next:focus-visible {
    border-color: #bd3f45;
    background: #fff;
}

.brands-logos .slick-prev:focus-visible,
.brands-logos .slick-next:focus-visible,
.brands-logos .brands-logos__brand:focus-visible,
.brands-logos .brands-logos__all-link:focus-visible {
    outline: 2px solid #bd3f45;
    outline-offset: 3px;
}

.home-career-banner {
    margin: 48px auto;
    padding: 0 14px;
}
.home-career-banner__section-1{
    padding: 10px 55px;
    display: flex;
    align-items: center;
}
.home-career-banner__inner {
    display: flex;
    align-items: center;
    min-height: 104px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: #850613;
    color: #fff;
    justify-content: space-between;
}

.home-career-banner__icon-wrap {
    display: flex;
    flex: 0 0 100px;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 22px 0 26px;
    border-radius: 50%;
    background: rgba(214, 151, 57, 0.28);
}

.home-career-banner__icon {
    display: block;
    width: 65px;
    height: 65px;
    object-fit: contain;
}
.home-career-banner__content{
    display: flex;
}
.home-career-banner__content {
    position: relative;
    z-index: 1;
    flex: 0 0 580px;
    padding: 18px 20px 18px 0;
}

.home-career-banner__title {
    margin: 0 0 5px;
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-transform: inherit;
}

.home-career-banner__description {
    max-width: 255px;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.86);
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.home-career-banner__button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 24px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-career-banner__button span {
    font-size: 13px;
    line-height: 0.8;
}

.home-career-banner__button:hover,
.home-career-banner__button:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.home-career-banner__image-wrap {
    align-self: stretch;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 500px;
}

.home-career-banner__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 104px;
    object-fit: cover;
    object-position: center;
}

@media only screen and (max-width: 767px) {
    .home-career-banner {
        margin: 32px auto;
        padding: 0 14px;
    }

    .home-career-banner__inner {
        display: block;
        min-height: 0;
        padding-top: 24px;
    }

    .home-career-banner__icon-wrap {
        margin: 0 auto 16px;
    }

    .home-career-banner__content {
        padding: 0 24px 24px;
        text-align: center;
    }

    .home-career-banner__description {
        max-width: none;
    }

    .home-career-banner__image-wrap {
        height: 170px;
    }

    .home-career-banner__image {
        min-height: 0;
    }
}

@media only screen and (max-width: 767px) {
    .brands-logos {
        margin-top: 32px;
    }

    .brands-logos .brands-logos__inner {
        display: block;
        padding: 0 14px;
    }

    .brands-logos .brands-logos__intro {
        margin-bottom: 24px;
    }

    .brands-logos .brands-logos__title {
        max-width: 280px;
        font-size: 27px;
    }

    .brands-logos .brands-logos__slider-wrap {
        padding: 0 20px;
    }

    .brands-logos .brands-logos__brand {
        height: 92px;
    }
}

img {
    max-width: 100%;
    width: auto \9;
    height: auto;
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}

/* Footer styles inspired by theme52174 */
#footer.footer {
    background: transparent;
    border-top: none;
    margin: 0;
    padding: 0 !important;
    text-align: left;
}

#footer.footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 50px;
}

@media (max-width: 767px) {
    #footer.footer .container {
        padding: 20px 20px 50px;
    }
}

#footer.footer .footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    text-align: left;
}

#footer.footer .footer-column {
    width: 100%;
    padding: 0 15px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    #footer.footer .footer-column {
        width: 25%;
        margin-bottom: 0;
    }
}

#footer.footer h4 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 32px;
    line-height: 30px;
    font-weight: 300 !important;
    text-shadow: none;
    text-decoration: none;
    text-transform: none;
    color: #494d52;
    margin-top: 0;
    margin-bottom: 40px;
    padding-top: 25px;
    padding-bottom: 19px;
    border-bottom: 1px solid #e1e1e1;
}

#footer.footer .footer-widgets p {
    margin-bottom: 5px;
}

#footer.footer .footer-widgets,
#footer.footer .footer-widgets a,
#footer.footer .footer-bottom .copyright {
    color: #494d52;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    line-height: 22px;
    font-weight: 300;
    text-shadow: none;
}

#footer.footer .footer-widgets a {
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer.footer .footer-widgets a:hover {
    color: #c49651;
}

#footer.footer .footer-bottom {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #e1e1e1;
}

#footer.footer .footer-bottom .copyright {
    text-align: left;
}

@media (max-width: 767px) {
    #footer.footer h4 {
        font-size: 24px;
        margin-bottom: 20px;
        padding-top: 10px;
        padding-bottom: 12px;
    }

    #footer.footer .footer-widgets,
    #footer.footer .footer-widgets a,
    #footer.footer .footer-bottom .copyright {
        font-size: 12px;
        line-height: 20px;
    }
}

.bg-gold {
    background-color: #c49651;
}
.bg-gold .container {
    padding: 0 !important;
}
.bg-gold p {
    margin: 0;
    padding-top: 15px;
    color: #fff;
}
.bg-gold a {
    color: #000;
}

/* Footer redesign */
#footer.footer {
    color: #fff;
    background: #292929;
}

#footer.footer .footer-main {
    background: #292929;
}

#footer.footer .footer-main > .container,
#footer.footer .footer-bottom > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#footer.footer .footer-widgets {
    display: grid;
    grid-template-columns: minmax(180px, 1.35fr) repeat(4, minmax(130px, 1fr));
    gap: 0;
    margin: 0;
    padding: 42px 0 30px;
}

#footer.footer .footer-column {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
}

#footer.footer .footer-column:first-child {
    padding-left: 0;
    border-left: 0;
}

#footer.footer .footer-column:last-child {
    padding-right: 0;
}

#footer.footer h4 {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    color: #d2a25c;
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    font-weight: 700 !important;
    line-height: 1.2;
    text-transform: uppercase;
}

#footer.footer .footer-widgets,
#footer.footer .footer-widgets a {
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    line-height: 1.55;
    text-shadow: none;
}

#footer.footer .footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer.footer .footer-column li {
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}

#footer.footer .footer-widgets a {
    text-decoration: none;
}

#footer.footer .footer-widgets a:hover,
#footer.footer .footer-widgets a:focus-visible {
    color: #fff;
}

#footer.footer .footer-widgets p {
    margin: 0 0 5px;
}

#footer.footer .footer-brand__logo {
    margin-bottom: 13px;
}

#footer.footer .footer-brand__logo a,
#footer.footer .footer-brand__logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

#footer.footer .footer-brand__logo .custom-logo {
    width: auto;
    max-width: 130px;
    max-height: 42px;
    object-fit: contain;
}

#footer.footer .footer-brand__logo img {
    display: block;
    width: auto;
    max-width: 130px;
    max-height: 42px;
    object-fit: contain;
}

#footer.footer p{
    color: #fff;
}
#footer.footer .footer-brand__description {
    max-width: 180px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

#footer.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #242424;
}

#footer.footer .footer-bottom > .container {
    padding-top: 10px;
    padding-bottom: 12px;
}

#footer.footer .footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#footer.footer .footer-bottom__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

#footer.footer .footer-bottom__links a,
#footer.footer .copyright {
    color: rgba(255, 255, 255, 0.54);
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    line-height: 1.5;
    text-decoration: none;
}

#footer.footer .footer-bottom__links a:hover,
#footer.footer .footer-bottom__links a:focus-visible {
    color: #fff;
}

#footer.footer .copyright {
    flex: 0 0 auto;
    text-align: right;
}

@media (max-width: 900px) {
    #footer.footer .footer-widgets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 28px;
    }

    #footer.footer .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 4px;
        border-left: 0;
    }

    #footer.footer .footer-column:nth-child(2) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 767px) {
    #footer.footer .footer-widgets{
        display: flex;
        flex-direction: column;
    }
    #footer.footer .footer-main > .container,
    #footer.footer .footer-bottom > .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    #footer.footer .footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 32px;
    }

    #footer.footer .footer-column {
        padding: 0;
        border-left: 0;
    }

    #footer.footer .footer-column:nth-child(odd) {
        padding-left: 0;
    }

    #footer.footer .footer-column:nth-child(even) {
        padding-right: 0;
    }

    #footer.footer .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    #footer.footer .footer-bottom__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    #footer.footer .footer-bottom__links {
        gap: 8px 14px;
    }

    #footer.footer .copyright {
        text-align: left;
    }
}

.col-12 h2 {
    font-size: 1.7em;
    text-align: left;

}
.padding-top-30{
    padding-top: 30px;
}


/* =====================================================
   PAGE: O Prymat Group (.prymat-about)
   ===================================================== */

/* Grid layout - scoped to prymat-about and footer (Bootstrap 2 compatible) */
.prymat-about .container,
#footer .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.prymat-about .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.prymat-about .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
}
.status-publish.hentry .row >.col-4  { 
    width: 33.3333%; }
.status-publish.hentry .row >.col-8  { 
    width: 66.6666%; }

@media (min-width: 768px) {
    .prymat-about .col-4  { width: 33.3333%; }
    .prymat-about .col-6  { width: 50%; }
    .prymat-about .col-8  { width: 66.6666%; }
    .prymat-about .col-12 { width: 100%; }
}

/* General page spacing */
.prymat-about {
    padding-top: 40px;
    padding-bottom: 60px;
}

.prymat-about h1 {
    font-size: 2.2em;
    text-align: left;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
    color: #494d52;
}

.prymat-about h2 {
    font-size: 1.8em;
    text-align: left;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e1e1;
    color: #494d52;
}

.prymat-about p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Section image (featured image) */
.prymat-about .extraimg_1 {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* Brands (map markers) */
.prymat-about .brand {
    cursor: pointer;
    display: inline-block;
    margin: 10px 0;
    padding-bottom: 10px;
    border-bottom: 4px solid transparent;
    transition: border-color 0.2s ease;
}

.prymat-about .brand.enabled {
    border-bottom-style: solid;
    border-bottom-width: 4px;
    box-sizing: border-box;
}

.prymat-about .brand img {
    height: 30px;
    width: auto;
    display: block;
}

.prymat-about .brand:hover {
    border-bottom-style: solid;
    border-bottom-width: 4px;
}

/* Map */
#prymatMap {
    position: relative;
    width: 100%;
    height: 450px;
    margin: 20px 0;
}

/* Map legend */
.prymat-about .col-12:has(> .prymat-about),
.prymat-about .col-12 > [style*="float: left"] {
    overflow: hidden;
    margin-top: 10px;
}

/* Timeline overrides (additional to timeline.css) */
.prymat-about .cd-horizontal-timeline {
    float: left;
    margin: 0;
    width: 100%;
    margin-bottom: 20px;
}

.prymat-about .cd-horizontal-timeline .timeline {
    width: 100%;
    max-width: 100%;
}

.prymat-about .cd-horizontal-timeline ul,
.prymat-about .cd-horizontal-timeline ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prymat-about .cd-horizontal-timeline ul li,
.prymat-about .cd-horizontal-timeline ol li {
    padding: 0;
}

.prymat-about .cd-horizontal-timeline .events-content {
    margin: 0;
}

.prymat-about .cd-horizontal-timeline .events-content li > * {
    margin: 0;
    max-width: 100%;
}

.prymat-about .cd-horizontal-timeline .events-content h2 {
    font-size: 38px;
    padding-top: 0;
    border-bottom: none;
    margin-top: 0;
    font-family: inherit;
}

.prymat-about .cd-horizontal-timeline .events-content p {
    font-size: 16px;
    font-style: italic;
    width: 80%;
    text-align: center;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .prymat-about .row {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    .prymat-about .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .prymat-about .cd-horizontal-timeline .events-content p {
        width: 100%;
    }

    #prymatMap {
        height: 300px;
    }
}

/* =====================================================
   PAGE: Kompetencje (.prymat-competence)
   ===================================================== */
.prymat-competence {
    padding-top: 40px;
    padding-bottom: 60px;
}

.prymat-competence .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.prymat-competence h2 {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 10px;
    color: #494d52;
}
.competence-intro_content{
    display: flex;
    align-items: center;

}
.competence-intro_content > div{
    width: 50%;
}
.prymat-competence .competence-stats {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.prymat-competence .competence-stats__item img {
    max-height: 52px;
    width: auto;
    margin: 0 auto 8px;
}

.prymat-competence .highlight {
    padding: 12px 0 6px;
    font-weight: 700;
    display: block;
    font-size: 36px;
    line-height: 1;
    color: #062e48;
}

.prymat-competence .milestone-details {
    font-size: 18px;
    line-height: 1.3;
}

.prymat-competence .elements-grid {
    margin: 40px 0 0;
}

.prymat-competence .elements-grid__row {
    align-items: stretch;
}

/* alternates sides at every screen size - built on the shared .row/.col-6 grid */
.prymat-competence .elements-grid__row--right {
    flex-direction: row-reverse;
}

.prymat-competence .elements-grid__thumb {
    min-height: 400px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 767px) {
    .prymat-competence .elements-grid__thumb {
        display: none;
    }
    .competence-intro_content > div{
    width: 100%;
}
    .competence-intro_content{
    flex-direction: column;
}
}

#main {
    padding-top: 0;
}

.prymat-competence .extraimg_1 {
    width: 100%;
    height: auto;
    display: block;
}

.prymat-competence .carousel-wrap.extra_carousel1 {
    border: 0;
    padding-top: 0;
    padding-bottom: 10px;
    margin-top: 26px;
}

.prymat-competence .extra_carousel1 .item {
    padding: 0 15px;
}

.prymat-competence .extra_carousel1 .item figure {
    margin: 0 0 24px;
}

.prymat-competence .extra_carousel1 .desc h5,
.prymat-competence .extra_carousel1 .desc h6 {
    display: none;
}

.prymat-competence .competence-packages__item {
    margin-bottom: 30px;
}

.prymat-competence .competence-packages__item .featured-thumbnail {
    margin: 0 0 16px;
}

@media (max-width: 767px) {
    .prymat-competence .highlight {
        font-size: 28px;
    }
}

/* =========================================================
   Page Header Bar (breadcrumb + h1) — all sub-pages
   ========================================================= */

.page-header-bar {
    padding: 28px 0 20px;
    border-bottom: 2px solid #c9a84c;
    margin-bottom: 32px;
}

/* breadcrumb nav */
.page-header-bar .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 13px;
    color: #888;
}

.page-header-bar .breadcrumb a {
    color: #c9a84c;
    text-decoration: none;
}

.page-header-bar .breadcrumb a:hover {
    text-decoration: underline;
}

.page-header-bar .breadcrumb__sep {
    color: #bbb;
    font-size: 12px;
}

.page-header-bar .breadcrumb__current {
    color: #555;
}

/* Yoast breadcrumb wrapper */
.page-header-bar .breadcrumb span,
.page-header-bar .breadcrumb > span {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* h1 inside page-header-bar */
.page-header-bar__title {
    font-size: 2em;
    text-align: left;
    margin: 0;
    color: #222;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .page-header-bar {
        padding: 18px 0 14px;
        margin-bottom: 20px;
    }

    .page-header-bar__title {
        font-size: 1.5em;
    }
}

/* =========================================================
   Products Slider — template-business (.prymat-competence)
   ========================================================= */

.prymat-competence .products-slider-container {
    display: flex;
    max-height: 380px;
    overflow: hidden;
    margin-bottom: 20px;
}

.prymat-competence .products-slider-container.mobile {
    max-height: 100%;
}

.prymat-competence .products-slider-container.mobile .products-slider-container-left {
    width: 100%;
}

.prymat-competence .products-slider-container.mobile .products-slider-container-right {
    display: none;
    width: 0;
}

.prymat-competence .products-slider-container-left {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #c49651 #fafbfc;
    scrollbar-width: thin;
    width: 25%;
}

.prymat-competence .products-slider-container-left .products-data-container:last-child .products-slider-hr {
    display: none;
}

.prymat-competence .products-slider-container-right {
    width: 75%;
}

.prymat-competence .products-slider-data-container {
    cursor: pointer;
    display: flex;
    padding: 9px 0 9px 10px;
    transition: all .4s ease-in-out;
}

.prymat-competence .products-slider-data-container:hover {
    background-color: rgba(196, 150, 81, 0.35) !important;
}

.prymat-competence .products-slider-data-container:hover .products-slider-title {
    transform: scale(1.05);
    color: #db2032;
}

.prymat-competence .products-data-container.active .products-slider-data-container {
    background-color: rgba(196, 150, 81, 0.25);
}

.prymat-competence .products-data-container.active .products-slider-title {
    color: #db2032;
}

.prymat-competence .products-data-container.active .products-slider-data-selected-mobile {
    display: block;
}

.prymat-competence .products-slider-data-selected {
    display: none;
    margin: 10px;
}

.prymat-competence .products-slider-data-selected.active {
    display: flex;
}

.prymat-competence .products-slider-data-selected-mobile {
    display: none;
}

.prymat-competence .products-slider-description {
    margin: 10px 20px;
}

.prymat-competence .products-slider-description-mobile {
    margin: 10px 0 30px;
}

.prymat-competence .products-slider-hr {
    margin: 3px 10px;
}

.prymat-competence .products-slider-img {
    width: 60%;
}

.prymat-competence .products-slider-img img,
.prymat-competence .products-slider-img-mobile img {
    width: 100%;
    height: auto;
    display: block;
}

.prymat-competence .products-slider-img-mobile {
    width: 100%;
}

.prymat-competence .products-slider-info-container {
    width: 40%;
}

.prymat-competence .products-slider-index {
    font-size: 40px;
    padding: 10px 25px 10px 0;
    text-align: right;
    width: 45px;
}

.prymat-competence .products-slider-text {
    font-size: 20px;
    margin: 20px;
}

.prymat-competence .products-slider-text-mobile {
    font-size: 20px;
    margin: 10px 0;
}

.prymat-competence .products-slider-title {
    font-size: 15px;
    line-height: 35px;
    max-width: 190px;
    position: relative;
    top: 4px;
    word-break: break-word;
}

/* scrollbar styling */
.prymat-competence .products-slider-container-left::-webkit-scrollbar { width: 8px; }
.prymat-competence .products-slider-container-left::-webkit-scrollbar-button { display: none; }
.prymat-competence .products-slider-container-left::-webkit-scrollbar-thumb { background: #c49651; }
.prymat-competence .products-slider-container-left::-webkit-scrollbar-thumb:hover { background: #979795; }
.prymat-competence .products-slider-container-left::-webkit-scrollbar-track { background: #fafbfc; }

@media (max-width: 767px) {
    /* stack instead of squeezing the 25%/75% columns side by side */
    .prymat-competence .products-slider-container {
        flex-direction: column;
        max-height: none;
    }

    .prymat-competence .products-slider-container-left,
    .prymat-competence .products-slider-container-right {
        width: 100%;
    }

    .prymat-competence .products-slider-container-left {
        max-height: 260px;
    }

    .prymat-competence .products-slider-img {
        width: 100%;
    }

    .prymat-competence .products-slider-info-container {
        width: 100%;
    }

    .prymat-competence .products-slider-data-selected.active {
        flex-direction: column;
    }
}

/* =========================================================
   PAGE: Kontakt (.prymat-contact)
   ========================================================= */

.prymat-contact {
    padding-top: 40px;
    padding-bottom: 60px;
}

.prymat-contact .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.prymat-contact h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
    color: #494d52;
}

.prymat-contact .row {
    margin-bottom: 40px;
}

/* Leaflet renders blank without an explicit container height */
.prymat-contact .google-map {
    width: 100%;
    height: 360px;
    border-radius: 6px;
    overflow: hidden;
}

.prymat-contact .contact-companies__map {
    margin-bottom: 20px;
}

.prymat-contact .contact-companies__address {
    font-style: normal;
    line-height: 1.6;
    color: #494d52;
}

@media (max-width: 767px) {
    .prymat-contact .google-map {
        height: 260px;
    }
}

/* =========================================================
   PAGE: Firma / Nasze firmy (.prymat-company)
   ========================================================= */

.prymat-company {
    padding: 24px 0 40px;
}

.prymat-company .container {
    max-width: 1170px;
    margin: 0 auto;
}

.prymat-company .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.prymat-company .row > [class*="col-"] {
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .prymat-company .col-2  { width: 16.6667%; }
    .prymat-company .col-4  { width: 33.3333%; }
    .prymat-company .col-6  { width: 50%; }
    .prymat-company .col-12 { width: 100%; }
}

@media (max-width: 767px) {
    .prymat-company .row {
        margin-left: 0;
        margin-right: 0;
    }

    .prymat-company .row > [class*="col-"] {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}
.our-company-brands-row h3{
    padding: 3rem 0;
}
.our-company-stats-row{
    padding-top: 3rem;
}

.prymat-company h2 {
    margin-bottom: 16px;
}

.prymat-company .prymat-stats {
    margin-top: 20px;
}

.prymat-company .prymat-stats__title {
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e1e1;
    text-align: left;
}

.prymat-company .prymat-stats__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.prymat-company .prymat-stats__figure {
    flex: 0 0 auto;
    min-width: 90px;
}

.prymat-company .prymat-stats__number {
    display: block;
    font-family: 'Ubuntu', sans-serif;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    color: #c49651;
}

.prymat-company .prymat-stats__label {
    display: block;
    margin-top: 2px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #c49651;
}

.prymat-company .prymat-stats__desc {
    margin: 0;
    color: #4d5866;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .prymat-company .prymat-stats__item {
        margin-bottom: 28px;
    }
}

.prymat-company .carousel-wrap.extra_carousel1 {
    border: none;
    padding-top: 0;
    padding-bottom: 10px;
    margin-top: 26px;
}

.prymat-company .extra_carousel1 .item {
    padding: 0 15px;
}

.prymat-company .extra_carousel1 .item figure {
    margin: 0 0 32px;
}

.prymat-company .extra_carousel1 .item figure img {
    width: 100%;
    height: auto;
    display: block;
}

.prymat-company .extra_carousel1 .desc h5 {
    display: none;
}

/* .prymat-company .extra_carousel1 rules above are more specific than plain .home-company
   ones and were overriding them; these win back the home-company card look inside .prymat-company */
.prymat-company .home-company .carousel-wrap.extra_carousel1 {
    border: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 16px;
}

.prymat-company .home-company .extra_carousel1 .item {
    padding: 20px;
}

.prymat-company .home-company .extra_carousel1 .item figure {
    margin: 0 0 18px;
}

.prymat-company .home-company .extra_carousel1 .item figure img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
}

.prymat-company .home-company .extra_carousel1 .desc h5 {
    display: block;
}

/* same specificity fix as .home-company above, applied to the logo-only module */
.prymat-company .home-company-logo .carousel-wrap.extra_carousel1 {
    border: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 16px;
}

.prymat-company .home-company-logo .extra_carousel1 .item {
    padding: 0 7px;
}

/* =========================================================
   PAGE: Blog — home.php
   container scoping + pagination
   ========================================================= */

/* Wrapper page-header-bar ma container wewnątrz */
.page-header-bar .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Paginacja bloga */
.blog-archive .nav-links,
#main.blog-archive .navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 40px 0 20px;
    padding: 0;
}

.blog-archive .nav-links .page-numbers,
.blog-archive .nav-links a.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #494d52;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-archive .nav-links a.page-numbers:hover {
    background: #c49651;
    border-color: #c49651;
    color: #fff;
}

.blog-archive .nav-links .page-numbers.current {
    background: #af1118;
    border-color: #af1118;
    color: #fff;
    pointer-events: none;
}

.blog-archive .nav-links .page-numbers.dots {
    border: none;
    background: transparent;
    color: #888;
    pointer-events: none;
}

.blog-archive .nav-links .prev.page-numbers,
.blog-archive .nav-links .next.page-numbers {
    padding: 0 16px;
    font-size: 13px;
    letter-spacing: 0.03em;
}

@media (max-width: 480px) {
    .blog-archive .nav-links .page-numbers,
    .blog-archive .nav-links a.page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
}

.dots{
    width: auto !important;
}

/* =========================================================
   PAGE: Pojedynczy wpis bloga — single.php
   ========================================================= */

/* Container na breadcrumb (taki sam jak w home.php) */
.blog-single .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Banner – zdjęcie wyróżniające na całą szerokość kolumny */
.blog-post__banner {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 32px;
    border-radius: 3px;
}

@media (max-width: 767px) {
    .blog-post__banner {
        height: 220px;
        margin-bottom: 20px;
    }
}

/* Nagłówek wpisu */
.blog-post__header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #c9a84c;
}

.blog-post__title {
    font-size: 2em;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .blog-post__title {
        font-size: 1.5em;
    }
}

/* Meta: data + kategorie */
.blog-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
}

.blog-post__meta time {
    font-style: normal;
}

.blog-post__meta-sep {
    color: #ccc;
}

.blog-post__cats a {
    color: #c49651;
    text-decoration: none;
}

.blog-post__cats a:hover {
    text-decoration: underline;
}

/* Treść wpisu */
.blog-post__content {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 48px;
}

.blog-post__content h2,
.blog-post__content h3,
.blog-post__content h4 {
    margin-top: 32px;
    margin-bottom: 14px;
    color: #222;
}

.blog-post__content p {
    margin-bottom: 18px;
}

.blog-post__content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.blog-post__content ul,
.blog-post__content ol {
    margin: 0 0 18px 24px;
}

.blog-post__content li {
    margin-bottom: 6px;
}

.blog-post__content a {
    color: #c49651;
    text-decoration: underline;
}

.blog-post__content blockquote {
    border-left: 4px solid #c49651;
    margin: 24px 0;
    padding: 12px 20px;
    background: #f9f6f1;
    color: #555;
    font-style: italic;
}

/* Nawigacja poprzedni/następny */
.blog-post__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 40px;
    padding-top: 28px;
    border-top: 1px solid #e1e1e1;
}

.blog-post__nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 48%;
    text-decoration: none;
    color: #494d52;
    transition: color 0.2s ease;
}

.blog-post__nav-link:hover {
    color: #c49651;
}

.blog-post__nav-link--next {
    margin-left: auto;
    text-align: right;
}

.blog-post__nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c49651;
    font-weight: 600;
}

.blog-post__nav-title {
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 560px) {
    .blog-post__nav {
        flex-direction: column;
    }

    .blog-post__nav-link,
    .blog-post__nav-link--next {
        max-width: 100%;
        text-align: left;
        margin-left: 0;
    }
}

/* =========================================================
   TEMPLATE: Kariera (.prymat-career)
   ========================================================= */

.prymat-career {
    padding-top: 40px;
    padding-bottom: 60px;
}

.prymat-career .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.prymat-career .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.prymat-career .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .prymat-career .row {
        margin-left: 0;
        margin-right: 0;
    }
    .prymat-career .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Nagłówki sekcji */
.prymat-career h2 {
    font-size: 1.8em;
    color: #222;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c49651;
}

/* --- Sekcja hero (section0): baner z CTA --- */
.career-header-container {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 4px;
}

.career-header-container .extraimg_1 {
    width: 100%;
    height: auto;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

.career-header-container .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.career-header-container .pracuj-header {
    font-size: clamp(22px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
    margin-bottom: 20px;
    line-height: 1.2;
}

.career-header-container .btn.btn-primary a {
    color: #fff;
    text-decoration: none;
}

/* --- Sekcja 1: opis + zdjęcie --- */
.prymat-career .extraimg_1 {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

/* --- Sekcja 2: benefity (dropcap + opis) --- */
.benefit-element {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f9f6f1;
    border-radius: 4px;
    border-left: 4px solid #c49651;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.benefit-element:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.benefit-element .dropcap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c49651;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
}

.benefit-element .extra-wrap {
    flex: 1;
}

.benefit-element .extra-wrap h3 {
    margin: 0 0 6px;
    font-size: 1em;
    font-weight: 700;
    color: #222;
}

.benefit-element .extra-wrap h3 a {
    color: inherit;
    text-decoration: none;
}

.benefit-element .extra-wrap p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .benefit-element {
        padding: 16px;
        gap: 14px;
    }
    .benefit-element .dropcap {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* --- Sekcja 3: departamenty --- */
.departments {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.departments:hover {
    border-color: #c49651;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.departments .featured-thumbnail {
    flex-shrink: 0;
    margin: 0;
}

.departments .featured-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.departments .desc {
    flex: 1;
}

.departments .desc h5 {
    margin: 0 0 6px;
    font-size: 1em;
    font-weight: 700;
    color: #222;
}

.departments .desc h5 a {
    color: inherit;
    text-decoration: none;
}

.departments .desc h5 a:hover {
    color: #c49651;
}

.departments .desc .excerpt {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .departments {
        padding: 14px;
    }
    .departments .featured-thumbnail img {
        width: 48px;
        height: 48px;
    }
}

/* --- Karuzela pracowników --- */
.career-employees-carousel {
    margin: 10px 0 40px;
}

/* Karuzela pracownikow - blokuj ukrywanie przez Owl CSS */
.career-employees-carousel > div {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.career-employee {
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
}

.career-employee__photo {
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 4px;
}

.career-employee__photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.career-employee:hover .career-employee__photo img {
    transform: scale(1.03);
}

.career-employee__desc {
    padding: 12px 8px;
}

.career-employee__name {
    font-size: 1em;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.career-employee__position {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c49651;
    font-weight: 600;
    margin: 0 0 10px;
}

.career-employee__text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- Tabela ofert pracy (nagłówki th) --- */
.prymat-career .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 8px;
    table-layout: auto;
}


@media (min-width: 768px) {
    .prymat-career .data-table--jobs {
        table-layout: fixed;
    }

    .prymat-career .data-table--jobs th:nth-child(1),
    .prymat-career .data-table--jobs td:nth-child(1) { width: 43%; }

    .prymat-career .data-table--jobs th:nth-child(2),
    .prymat-career .data-table--jobs td:nth-child(2) { width: 20%; }

    .prymat-career .data-table--jobs th:nth-child(3),
    .prymat-career .data-table--jobs td:nth-child(3) { width: 22%; }

    .prymat-career .data-table--jobs th:nth-child(4),
    .prymat-career .data-table--jobs td:nth-child(4) { width: 15%; }
}
.prymat-career .data-table tbody td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.prymat-career .data-table thead tr {
    background: #c49651;
    color: #fff;
}

.prymat-career .data-table thead th {
    padding: 13px 16px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    text-align: left;
}

/* Ikony sortowania DataTables */
.prymat-career .data-table thead th.sorting::after,
.prymat-career .data-table thead th.sorting_asc::after,
.prymat-career .data-table thead th.sorting_desc::after {
    color: rgba(255,255,255,.6);
}

.prymat-career .data-table thead th.sorting_asc::after,
.prymat-career .data-table thead th.sorting_desc::after {
    color: #fff;
}

.prymat-career .data-table thead th:hover {
    background: #b3873e;
}

.prymat-career .data-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.15s ease;
}

.prymat-career .data-table tbody tr:last-child {
    border-bottom: none;
}

.prymat-career .data-table tbody tr:hover {
    background: #f9f6f1;
}

.prymat-career .data-table tbody td {
    padding: 12px 16px;
    color: #333;
    vertical-align: middle;
}

.prymat-career .data-table tbody td:first-child {
    font-weight: 600;
}

.prymat-career .data-table tbody td a {
    color: #c49651;
    text-decoration: none;
    transition: color 0.2s ease;
}

.prymat-career .data-table tbody td a:hover {
    color: #062e48;
    text-decoration: underline;
}

.prymat-career .data-table--jobs td.show-more {
    background: none;
    margin: 0;
    padding: 12px 8px;
    text-align: right;
}

.prymat-career .data-table--jobs .show-more-button {
    display: inline-block;
    border-radius: 3px;
    background: #c49651;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    padding: 9px 12px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.prymat-career .data-table--jobs .show-more-button:hover,
.prymat-career .data-table--jobs .show-more-button:focus {
    background: #062e48;
    color: #fff;
    text-decoration: none;
}

/* Szczegóły ukrytych kolumn na wąskich ekranach (DataTables Responsive) */
.prymat-career .data-table--jobs.dtr-inline.collapsed > tbody > tr > td:first-child:before {
    background-color: #c49651;
}

.prymat-career .data-table--jobs.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before {
    background-color: #062e48;
}

.prymat-career .data-table--jobs > tbody > tr.child {
    background: #f9f6f1;
}

.prymat-career .data-table--jobs > tbody > tr.child > td {
    padding: 8px 16px;
}

.prymat-career .data-table--jobs > tbody > tr.child ul {
    display: block;
    width: 100%;
}

.prymat-career .data-table--jobs > tbody > tr.child li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.prymat-career .data-table--jobs > tbody > tr.child .dtr-title {
    flex: 0 0 120px;
    color: #062e48;
}

.prymat-career .data-table--jobs > tbody > tr.child .dtr-data {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .prymat-career .data-table--jobs td.show-more {
        padding: 8px 6px;
        text-align: right;
    }

    .prymat-career .data-table--jobs .show-more-button {
        padding: 8px 10px;
    }
}

/* --- DataTables UI (wyszukiwarka, info, paginacja) --- */

/* Wrapper generowany przez DataTables */
.prymat-career .dataTables_wrapper {
    font-size: 14px;
    color: #494d52;
    margin-bottom: 32px;
}

/* Pasek górny: lengthMenu + search */
.prymat-career .dataTables_wrapper .dataTables_length,
.prymat-career .dataTables_wrapper .dataTables_filter {
    margin-bottom: 14px;
    display: inline-block;
}

.prymat-career .dataTables_wrapper .dataTables_filter {
    float: right;
}

.prymat-career .dataTables_wrapper .dataTables_length {
    float: left;
}

/* Input wyszukiwania */
.prymat-career .dataTables_wrapper .dataTables_filter input {
    margin-left: 8px;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
    min-width: 220px;
}

.prymat-career .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #c49651;
    box-shadow: 0 0 0 2px rgba(196,150,81,.15);
}

/* Select "Pokaż N pozycji" */
.prymat-career .dataTables_wrapper .dataTables_length select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    margin: 0 6px;
    outline: none;
    cursor: pointer;
}

/* Dolny pasek: info + paginacja */
.prymat-career .dataTables_wrapper .dataTables_info {
    float: left;
    padding-top: 10px;
    font-size: 13px;
    color: #888;
}

.prymat-career .dataTables_wrapper .dataTables_paginate {
    float: right;
    padding-top: 4px;
}

/* Przyciski paginacji */
.prymat-career .dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #494d52 !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.prymat-career .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #c49651 !important;
    border-color: #c49651 !important;
    color: #fff !important;
}

.prymat-career .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.prymat-career .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #c49651 !important;
    border-color: #c49651 !important;
    color: #fff !important;
    pointer-events: none;
}

.prymat-career .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.prymat-career .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: .4;
    cursor: default;
    background: #fff !important;
    border-color: #ddd !important;
    color: #999 !important;
}

/* Clearfix */
.prymat-career .dataTables_wrapper::after {
    content: '';
    display: table;
    clear: both;
}

/* Mobile: DataTables */
@media (max-width: 600px) {
    .prymat-career .dataTables_wrapper .dataTables_filter,
    .prymat-career .dataTables_wrapper .dataTables_length {
        float: none;
        display: block;
        width: 100%;
    }

    .prymat-career .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-top: 6px;
        box-sizing: border-box;
    }

    .prymat-career .dataTables_wrapper .dataTables_info,
    .prymat-career .dataTables_wrapper .dataTables_paginate {
        float: none;
        display: block;
        text-align: center;
    }

    .prymat-career .dataTables_wrapper .dataTables_info {
        margin-bottom: 8px;
    }

    /* Na mobile tabela jako karty (DataTables wyłącza sortowanie przez JS, więc zostawiamy thead) */
    .prymat-career .data-table thead th {
        font-size: 11px;
        padding: 10px 10px;
    }

    .prymat-career .data-table tbody td {
        padding: 8px 10px;
    }
}

.show-more{
    background: transparent;    
}

/* --- Galerie karier – carousel --- */
.career-gallery-carousel .item {
    padding: 0 5px;
}

.career-gallery__item {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: #f9f6f1;
    border-radius: 4px;
}

.career-gallery__item a {
    display: block;
}

.career-gallery__item img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.career-gallery__item:hover img {
    transform: scale(1.05);
}

.career-gallery__item figcaption {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #333;
    background: #f9f6f1;
}

/* ========================================
   Single Job Post Styles
   ======================================== */

.prymat-jobs-single {
    background: #f9f6f1;
    padding: 40px 0;
}

/* Job Title Header */
.job-title-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.job-title-left {
    flex: 1;
}

.job-title {
    font-size: 32px;
    font-weight: 700;
    color: #062e48;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.job-place,
.job-region {
    font-size: 16px;
    color: #333;
    margin: 8px 0;
}

.job-place strong,
.job-region strong {
    color: #062e48;
}

.job-title-right {
    flex-shrink: 0;
    margin-left: 30px;
}

.job-apply-button {
    background: #c49651 !important;
    color: #fff !important;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.3s ease;
}

.job-apply-button:hover {
    background: #b3873e !important;
    color: #fff !important;
}

/* Job Content Boxes */
.job-content-box {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    line-height: 1.8;
}

.job-content-box h2,
.job-content-box h3,
.job-content-box h4 {
    color: #062e48;
    margin-top: 20px;
    margin-bottom: 15px;
}

.job-content-box h2 {
    font-size: 24px;
}

.job-content-box h3 {
    font-size: 20px;
}

.job-content-box ul,
.job-content-box ol {
    margin: 15px 0;
    padding-left: 25px;
}

.job-content-box li {
    margin-bottom: 8px;
}

/* Benefits Section */
.job-benefits-container {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.job-benefits-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background: #c49651;
    padding: 20px;
    margin: -30px -30px 30px -30px;
    border-radius: 4px 4px 0 0;
    text-align: center;
}

.job-benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.job-benefit-item {
    flex: 0 0 calc(25% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    min-width: 150px;
}

.job-benefit-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}

.job-benefit-name {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Clause Box */
.job-clause-box {
    background: #fff;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.6;
    color: #666;
}

/* Bottom Apply Section */
.job-apply-bottom {
    text-align: center;
    padding: 30px 0;
}

.job-apply-bottom .btn {
    margin: 0 10px;
}

.job-apply-bottom .btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

.job-apply-bottom .btn-secondary {
    background: #062e48 !important;
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.3s ease;
}

.job-apply-bottom .btn-secondary:hover {
    background: #041f30 !important;
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-title-container {
        flex-direction: column;
        align-items: stretch;
    }

    .job-title-right {
        margin-left: 0;
        margin-top: 20px;
    }

    .job-apply-button {
        width: 100%;
        text-align: center;
    }

    .job-title {
        font-size: 24px;
    }

    .job-benefit-item {
        flex: 0 0 calc(50% - 20px);
    }

    .job-apply-bottom .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .job-content-box,
    .job-benefits-container,
    .job-title-container {
        padding: 20px;
    }

    .job-benefits-title {
        margin: -20px -20px 20px -20px;
        padding: 15px;
        font-size: 20px;
    }

    .job-benefit-item {
        flex: 0 0 100%;
    }
}

/* Search results page */
.search-results {
    padding: 24px 0 56px;
}

.search-results__form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.search-results__form input {
    width: 100%;
    max-width: 520px;
    height: 42px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
}

.search-results__form button {
    height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: #af1118;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.search-results__meta {
    margin-bottom: 16px;
    font-size: 14px;
    color: #333;
}

.search-results__list {
    display: grid;
    gap: 12px;
}

.search-results__item {
    border: 1px solid #ebebeb;
    border-radius: 10px;
    background: #fff;
    padding: 16px;
}

.search-results__title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

.search-results__title a {
    color: #111;
    text-decoration: none;
}

.search-results__title a:hover {
    color: #af1118;
}

.search-results__excerpt {
    margin: 0 0 10px;
    color: #4a4a4a;
    line-height: 1.5;
}

.search-results__more {
    color: #af1118;
    font-weight: 600;
    text-decoration: none;
}

.search-results__pagination {
    margin-top: 20px;
}

.search-results__empty {
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

@media (max-width: 860px) {
    .search-results__form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   TEMPLATE: CV / Formularz aplikacyjny (.prymat-cv)
   ========================================================= */

.prymat-cv {
    padding-top: 18px;
    padding-bottom: 56px;
}

.prymat-cv .position-title {
    color: #c49651;
    font-weight: 700;
}

.prymat-cv .wpcf7.contact-form {
    margin-top: 20px;
    color: #23384b;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.prymat-cv .wpcf7.contact-form > .row:first-of-type,
.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(-n+5) {
    background: #f3f6fa;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(17, 33, 52, 0.06);
}

.prymat-cv .wpcf7.contact-form > p.field {
    width: 50%;
    margin: 0 0 18px;
    box-sizing: border-box;
}

.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(1),
.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(2) {
    margin-top: 0;
    padding-top: 26px;
}

.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(2n+1):not(:nth-of-type(5)) {
    padding-left: 22px;
}

.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(2n) {
    padding-right: 22px;
}

.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(5) {
    width: 100%;
    padding: 0 22px 18px;
    margin-bottom: 22px;
    border-radius: 0 0 14px 14px;
}

.prymat-cv .wpcf7.contact-form > p.field:has(input[type="file"]) {
    width: 100%;
}

.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(1) {
    border-radius: 14px 0 0 0;
}

.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(2) {
    border-radius: 0 14px 0 0;
}

.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(3),
.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(4) {
    padding-bottom: 0;
}

.prymat-cv .wpcf7.contact-form > p.field:nth-of-type(n+6),
.prymat-cv .wpcf7.contact-form > p:not(.field),
.prymat-cv .wpcf7.contact-form > div:not(.row) {
    width: 100%;
}

.prymat-cv .wpcf7.contact-form label,
.prymat-cv .wpcf7.contact-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

.prymat-cv .wpcf7.contact-form .contact-form-field,
.prymat-cv .wpcf7.contact-form input[type="text"],
.prymat-cv .wpcf7.contact-form input[type="email"],
.prymat-cv .wpcf7.contact-form input[type="tel"],
.prymat-cv .wpcf7.contact-form input[type="date"],
.prymat-cv .wpcf7.contact-form input[type="file"],
.prymat-cv .wpcf7.contact-form textarea,
.prymat-cv .wpcf7.contact-form select {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #d6dee7;
    border-radius: 4px;
    background: #fff;
    color: #22313f;
    font-size: 28px;
    font-size: 14px;
    line-height: 1.3;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prymat-cv .wpcf7.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.prymat-cv .wpcf7.contact-form .contact-form-field:focus,
.prymat-cv .wpcf7.contact-form input[type="text"]:focus,
.prymat-cv .wpcf7.contact-form input[type="email"]:focus,
.prymat-cv .wpcf7.contact-form input[type="tel"]:focus,
.prymat-cv .wpcf7.contact-form input[type="date"]:focus,
.prymat-cv .wpcf7.contact-form input[type="file"]:focus,
.prymat-cv .wpcf7.contact-form textarea:focus,
.prymat-cv .wpcf7.contact-form select:focus {
    border-color: #c49651;
    box-shadow: 0 0 0 3px rgba(196, 150, 81, 0.2);
    outline: none;
}

.prymat-cv .wpcf7.contact-form .input-error-message {
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.3;
}

.prymat-cv .wpcf7.contact-form .error {
    border-color: #d92d20 !important;
}

.prymat-cv .wpcf7.contact-form .input-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
}

.prymat-cv .wpcf7.contact-form .wpcf7-list-item {
    display: block;
    margin: 0;
}

.prymat-cv .wpcf7.contact-form .submit-wrap,
.prymat-cv .wpcf7.contact-form p.submit-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.prymat-cv .wpcf7.contact-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #c49651;
    flex-shrink: 0;
}

.prymat-cv .wpcf7.contact-form .input-checkbox .wpcf7-list-item-label,
.prymat-cv .wpcf7.contact-form .input-checkbox label {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.prymat-cv .wpcf7.contact-form .submit,
.prymat-cv .wpcf7.contact-form input[type="submit"],
.prymat-cv .wpcf7.contact-form input[type="reset"],
.prymat-cv .wpcf7.contact-form button[type="submit"],
.prymat-cv .wpcf7.contact-form button[type="reset"] {
    min-height: 48px;
    width: auto;
    min-width: 120px;
    padding: 0 28px;
    border: 0;
    border-radius: 3px;
    background: #c49651;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-transform: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.prymat-cv .wpcf7.contact-form .submit:hover,
.prymat-cv .wpcf7.contact-form input[type="submit"]:hover,
.prymat-cv .wpcf7.contact-form input[type="reset"]:hover,
.prymat-cv .wpcf7.contact-form button[type="submit"]:hover,
.prymat-cv .wpcf7.contact-form button[type="reset"]:hover {
    background: #b38441;
    transform: translateY(-1px);
}

.prymat-cv .wpcf7.contact-form .submit:focus-visible,
.prymat-cv .wpcf7.contact-form input[type="submit"]:focus-visible,
.prymat-cv .wpcf7.contact-form input[type="reset"]:focus-visible,
.prymat-cv .wpcf7.contact-form button[type="submit"]:focus-visible,
.prymat-cv .wpcf7.contact-form button[type="reset"]:focus-visible {
    outline: 3px solid rgba(196, 150, 81, 0.35);
    outline-offset: 2px;
}

.prymat-cv .wpcf7.contact-form .submit + .submit,
.prymat-cv .wpcf7.contact-form input[type="submit"] + input[type="reset"],
.prymat-cv .wpcf7.contact-form input[type="reset"] + input[type="submit"] {
    margin-left: 12px;
}

.prymat-cv .wpcf7.contact-form .form-result,
.prymat-cv .wpcf7.contact-form .result-success,
.prymat-cv .wpcf7.contact-form .result-errors {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.prymat-cv .wpcf7.contact-form .result-success {
    border: 1px solid #8fbe8f;
    background: #eff9ef;
    color: #1d5f1d;
}

.prymat-cv .wpcf7.contact-form .result-errors {
    border: 1px solid #e8a0a0;
    background: #fff4f4;
    color: #8a1c1c;
}

@media (max-width: 767px) {
    .prymat-cv .wpcf7.contact-form {
        gap: 0;
    }

    .prymat-cv .wpcf7.contact-form > p.field {
        width: 50%;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .prymat-cv .wpcf7.contact-form > p.field:nth-of-type(1) {
        border-radius: 10px 10px 0 0;
        padding-top: 18px;
    }

    .prymat-cv .wpcf7.contact-form > p.field:nth-of-type(2) {
        border-radius: 0;
        padding-top: 0;
    }

    .prymat-cv .wpcf7.contact-form > p.field:nth-of-type(5) {
        border-radius: 0 0 10px 10px;
        padding-bottom: 14px;
    }

    .prymat-cv .wpcf7.contact-form .submit,
    .prymat-cv .wpcf7.contact-form input[type="submit"],
    .prymat-cv .wpcf7.contact-form input[type="reset"],
    .prymat-cv .wpcf7.contact-form button[type="submit"],
    .prymat-cv .wpcf7.contact-form button[type="reset"] {
        width: auto;
        margin: 8px 0 0;
    }

    .prymat-cv .wpcf7.contact-form .submit + .submit,
    .prymat-cv .wpcf7.contact-form input[type="submit"] + input[type="reset"],
    .prymat-cv .wpcf7.contact-form input[type="reset"] + input[type="submit"] {
        margin-left: 0;
    }

    .prymat-cv .wpcf7.contact-form .submit-wrap,
    .prymat-cv .wpcf7.contact-form p.submit-wrap {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

/* Contact Form 7 feedback: main.css hides the stock response/tip elements. */
.wpcf7 .input-error-message,
.wpcf7 .wpcf7-not-valid-tip {
    display: block !important;
    margin-top: 6px;
    color: #b42318;
    font-size: 13px !important;
    line-height: 1.4;
}

.wpcf7 .form-result:not(:empty),
.wpcf7 .wpcf7-response-output:not(:empty) {
    display: block !important;
    visibility: visible !important;
    position: relative;
    inset: auto;
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid #e8a0a0;
    border-radius: 8px;
    background: #fff4f4;
    color: #8a1c1c;
    font-size: 14px;
    line-height: 1.5;
}

.wpcf7 .form-result.result-success:not(:empty) {
    border-color: #8fbe8f;
    background: #eff9ef;
    color: #1d5f1d;
}

/* =========================================================
   ESG page
   ========================================================= */
.esg-page {
    --esg-navy: #1c3557;
    --esg-navy-dark: #12294a;
    --esg-gold: #c49651;
    --esg-gold-dark: #a87732;
    --esg-green: #4f7a3a;
    --esg-red: #b70f1a;
    --esg-red-dark: #a90f19;
    --esg-cream: #f8f4f0;
    --esg-text: #4d5866;
}

/* --- Hero --- */
.esg-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(460px, 44vw, 600px);
    background: var(--esg-cream, #f8f4f0);
    overflow: hidden;
}

.esg-hero::after {
    content: "";
    position: absolute;
    left: -265px;
    bottom: -182px;
    width: 500px;
    height: 500px;
    background: url('../img/zlota-roslina-500x500-transparent.png') no-repeat left bottom;
    background-size: contain;
    opacity: 0.95;
    z-index: 1;
    pointer-events: none;
}

.esg-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 96px) 18px;
}

.esg-hero__content {
    width: min(40%, 540px);
    padding-left: clamp(10px, 4vw, 78px);
    text-align: left;
}

.esg-hero__eyebrow {
    margin: 0 0 16px;
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--esg-gold, #c49651);
}

.esg-hero__title {
    margin: 0 0 18px;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(34px, 3.5vw, 52px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--esg-navy, #1c3557);
    text-align: left;
    text-transform: none;
}

.esg-hero__subtitle {
    display: block;
    margin-top: 8px;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.15;
    font-weight: 400;
}

.esg-hero__lead {
    max-width: 470px;
    margin: 0 0 26px;
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.55;
    color: var(--esg-text, #4d5866);
}

.esg-hero__lead p {
    margin: 0;
}

.esg-hero__lead p + p {
    margin-top: 10px;
}

.esg-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border: 1px solid var(--esg-red, #b70f1a);
    border-radius: 4px;
    background: var(--esg-red, #b70f1a);
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 7px 16px rgba(183, 15, 26, 0.2);
    transition: all 0.22s ease;
}

.esg-hero__button:hover,
.esg-hero__button:focus-visible {
    background: var(--esg-red-dark, #a90f19);
    border-color: var(--esg-red-dark, #a90f19);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.esg-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 56%;
    z-index: 2;
    clip-path: ellipse(100% 120% at 100% 42%);
}

.esg-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.esg-hero__slogan {
    position: absolute;
    right: clamp(24px, 4vw, 70px);
    bottom: clamp(28px, 5vw, 72px);
    max-width: 320px;
    font-family: 'Segoe Script', 'Bradley Hand', 'Brush Script MT', cursive;
    font-size: clamp(22px, 2.3vw, 36px);
    line-height: 1.12;
    font-weight: 400;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    transform: rotate(-6deg);
}

@media only screen and (max-width: 1024px) {
    .esg-hero__content {
        width: min(50%, 480px);
        padding-left: 10px;
    }

    .esg-hero__media {
        width: 50%;
    }

    .esg-hero::after {
        width: 220px;
        height: 220px;
        left: -10px;
        bottom: -6px;
    }
}

@media only screen and (max-width: 767px) {
    .esg-hero {
        display: block;
        min-height: 0;
    }

    .esg-hero::after {
        width: 180px;
        height: 180px;
        left: -18px;
        bottom: auto;
        top: -30px;
        transform: scaleY(-1);
    }

    .esg-hero__inner {
        padding: 40px 18px 28px;
    }

    .esg-hero__content {
        width: 100%;
        padding-left: 0;
    }

    .esg-hero__title {
        font-size: clamp(30px, 8.5vw, 40px);
    }

    .esg-hero__subtitle {
        font-size: clamp(20px, 6vw, 26px);
    }

    .esg-hero__lead {
        max-width: 100%;
        font-size: 15px;
        margin-bottom: 20px;
    }

    .esg-hero__button {
        min-height: 42px;
        padding: 0 16px;
        font-size: 13px;
    }

    .esg-hero__media {
        position: relative;
        width: auto;
        margin: 0 18px 32px;
        aspect-ratio: 16 / 10;
        border-radius: 20px;
        overflow: hidden;
        clip-path: none;
    }

    .esg-hero__slogan {
        right: 18px;
        bottom: 18px;
        max-width: 220px;
        font-size: 22px;
    }
}

/* --- Pillar cards (E / S / G) --- */
.esg-pillars {
    position: relative;
    z-index: 12;
    margin-top: -48px;
    padding: 0 18px;
}

.esg-pillars__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1500px;
    margin: 0 auto;
}

.esg-pillars__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-height: 120px;
    padding: 26px 64px 26px 26px;
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(23, 34, 49, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.esg-pillars__card:hover,
.esg-pillars__card:focus-visible {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(23, 34, 49, 0.16);
}

.esg-pillars__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--esg-green, #4f7a3a);
    color: #fff;
}

.esg-pillars__card--gold .esg-pillars__icon-wrap {
    background: var(--esg-gold, #c49651);
}

.esg-pillars__card--navy .esg-pillars__icon-wrap {
    background: var(--esg-navy, #1c3557);
}

.esg-pillars__icon {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.esg-pillars__letter {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 30px;
    line-height: 1;
    font-weight: 500;
}

.esg-pillars__text {
    display: block;
    min-width: 0;
    text-align: left;
}

.esg-pillars__title {
    display: block;
    margin: 4px 0 8px;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.2;
    font-weight: 500;
    color: var(--esg-navy, #1c3557);
}

.esg-pillars__desc {
    display: block;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: var(--esg-text, #4d5866);
}

.esg-pillars__arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--esg-gold, #c49651);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    padding-bottom: 3px;
    color: var(--esg-gold-dark, #a87732);
    transition: background 0.22s ease, color 0.22s ease;
}

.esg-pillars__card:hover .esg-pillars__arrow,
.esg-pillars__card:focus-visible .esg-pillars__arrow {
    background: var(--esg-gold, #c49651);
    color: #fff;
}

@media only screen and (max-width: 1023px) {
    .esg-pillars {
        margin-top: -34px;
    }

    .esg-pillars__inner {
        gap: 12px;
    }

    .esg-pillars__card {
        flex-direction: column;
        gap: 14px;
        padding: 20px 48px 20px 18px;
    }

    .esg-pillars__icon-wrap {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .esg-pillars__icon {
        width: 28px;
        height: 28px;
    }

    .esg-pillars__letter {
        font-size: 24px;
    }
}

@media only screen and (max-width: 767px) {
    .esg-pillars {
        margin-top: 0;
        padding-top: 0;
    }

    .esg-pillars__inner {
        grid-template-columns: 1fr;
    }

    .esg-pillars__card {
        flex-direction: row;
        min-height: 0;
        padding: 18px 56px 18px 18px;
    }

    .esg-pillars__arrow {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
}

/* --- ESG in numbers --- */
.esg-stats {
    position: relative;
    z-index: 11;
    padding: 22px 18px 0;
}

.esg-stats__inner {
    max-width: 1500px;
    margin: 0 auto;
}

.esg-stats__intro {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
}

.esg-stats__title {
    margin: 0 0 10px;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.15;
    font-weight: 500;
    color: var(--esg-navy, #1c3557);
    text-transform: none;
}

.esg-stats__desc {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.55;
    color: var(--esg-text, #4d5866);
}

.esg-stats__desc p {
    margin: 0;
}

.esg-stats__desc p + p {
    margin-top: 8px;
}

.esg-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(23, 34, 49, 0.08);
    overflow: hidden;
}

.esg-stats__grid--1 { grid-template-columns: 1fr; }
.esg-stats__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.esg-stats__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.esg-stats__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.esg-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 22px 26px;
    border-right: 1px solid #ececf0;
    text-align: center;
}

.esg-stats__item:last-child {
    border-right: 0;
}

.esg-stats__icon {
    display: block;
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    object-fit: contain;
}

.esg-stats__value {
    margin-bottom: 6px;
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(28px, 2.5vw, 36px);
    line-height: 1;
    font-weight: 700;
    color: var(--esg-green, #4f7a3a);
}

.esg-stats__item--gold .esg-stats__value {
    color: var(--esg-gold-dark, #a87732);
}

.esg-stats__item--navy .esg-stats__value {
    color: var(--esg-navy, #1c3557);
}

.esg-stats__label {
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2935;
}

.esg-stats__note {
    margin-top: 8px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #5f6b79;
}

@media only screen and (max-width: 1023px) {
    .esg-stats__grid,
    .esg-stats__grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esg-stats__grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .esg-stats__item {
        padding: 22px 16px 20px;
        border-bottom: 1px solid #ececf0;
    }

    .esg-stats__item:nth-child(2n) {
        border-right: 0;
    }

    .esg-stats__item:nth-last-child(-n + 2):nth-child(2n + 1),
    .esg-stats__item:nth-last-child(-n + 2):nth-child(2n + 1) + .esg-stats__item {
        border-bottom: 0;
    }
}

@media only screen and (max-width: 767px) {
    .esg-stats {
        padding-top: 18px;
    }

    .esg-stats__intro {
        margin-bottom: 16px;
    }

    .esg-stats__value {
        font-size: 28px;
    }
}

@media only screen and (max-width: 480px) {
    .esg-stats__grid,
    .esg-stats__grid--3,
    .esg-stats__grid--5 {
        grid-template-columns: 1fr;
    }

    .esg-stats__item,
    .esg-stats__item:nth-child(2n) {
        border-right: 0;
        border-bottom: 1px solid #ececf0;
    }

    .esg-stats__item:last-child {
        border-bottom: 0;
    }
}

/* --- Pillar sections (E / S / G): tabs + carousel --- */
.esg-section {
    position: relative;
    margin-top: 56px;
    padding: clamp(40px, 4.5vw, 72px) 18px;
    background: var(--esg-cream, #f8f4f0);
    overflow: hidden;
}

.esg-section + .esg-section {
    margin-top: 0;
}

.esg-section--dark {
    background: var(--esg-navy-dark, #12294a);
}

.esg-section--light::before {
    content: "";
    position: absolute;
    left: -230px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    background: url('../img/zlota-roslina-500x500-transparent.png') no-repeat left bottom;
    background-size: contain;
    opacity: 0.55;
    pointer-events: none;
}

.esg-section__inner {
    position: relative;
    z-index: 2;
    max-width: 1500px;
    margin: 0 auto;
}

.esg-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 26px;
}

.esg-section__heading {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
}

.esg-section__eyebrow {
    margin: 0 0 10px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--esg-gold, #c49651);
}

.esg-section--green .esg-section__eyebrow {
    color: var(--esg-green, #4f7a3a);
}

.esg-section--dark .esg-section__eyebrow {
    color: var(--esg-gold, #c49651);
}

.esg-section__title {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(26px, 2.6vw, 40px);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--esg-navy, #1c3557);
    text-align: left;
    text-transform: none;
}

.esg-section--dark .esg-section__title {
    color: #fff;
}

.esg-section__tabs-wrap {
    flex: 0 1 62%;
    min-width: 0;
    text-align: left;
}

.esg-section__tabs-label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    line-height: 1.2;
    color: var(--esg-text, #4d5866);
}

.esg-section--dark .esg-section__tabs-label {
    color: rgba(255, 255, 255, 0.78);
}

.esg-section__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.esg-section__tab {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #e3e3e8;
    border-radius: 999px;
    background: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--esg-navy, #1c3557);
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.esg-section__tab:hover,
.esg-section__tab:focus-visible {
    border-color: var(--esg-gold, #c49651);
    color: var(--esg-navy, #1c3557);
    outline: none;
}

.esg-section__tab.is-active,
.esg-section__tab.is-active:hover {
    background: var(--esg-red, #b70f1a);
    border-color: var(--esg-red, #b70f1a);
    color: #fff;
    box-shadow: 0 6px 14px rgba(183, 15, 26, 0.22);
}

.esg-section--dark .esg-section__tab {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.esg-section--dark .esg-section__tab:hover,
.esg-section--dark .esg-section__tab:focus-visible {
    border-color: #fff;
}

.esg-section--dark .esg-section__tab.is-active,
.esg-section--dark .esg-section__tab.is-active:hover {
    background: var(--esg-red, #b70f1a);
    border-color: var(--esg-red, #b70f1a);
}

/* Carousel */
.esg-carousel {
    position: relative;
}

.esg-carousel:not(.esg-carousel--arrows-hidden) {
    padding: 0 64px;
}

.esg-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0 0 4px;
    border: 1px solid #e3e3e8;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(23, 34, 49, 0.14);
    font-family: 'Ubuntu', sans-serif;
    font-size: 30px;
    line-height: 1;
    color: var(--esg-navy, #1c3557);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.esg-carousel__arrow--prev { left: 0; }
.esg-carousel__arrow--next { right: 0; }

.esg-carousel__arrow:hover,
.esg-carousel__arrow:focus-visible {
    background: var(--esg-red, #b70f1a);
    border-color: var(--esg-red, #b70f1a);
    color: #fff;
    outline: none;
}

.esg-carousel--arrows-hidden .esg-carousel__arrow {
    display: none;
}

.esg-carousel__track {
    position: relative;
}

.esg-carousel__item {
    display: none;
}

.esg-carousel__item.is-active {
    display: block;
    animation: esgFadeIn 0.35s ease;
}

@keyframes esgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.esg-carousel__counter {
    position: absolute;
    right: 26px;
    bottom: 18px;
    z-index: 2;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #7a8593;
}

.esg-carousel:not(.esg-carousel--arrows-hidden) .esg-carousel__counter {
    right: calc(64px + 26px);
}

.esg-carousel__counter .js-esg-current {
    color: var(--esg-navy, #1c3557);
    font-weight: 600;
}

/* Topic card */
.esg-topic {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: clamp(20px, 2.6vw, 40px);
    align-items: start;
    padding: clamp(18px, 2vw, 30px) clamp(18px, 2vw, 30px) clamp(40px, 3vw, 50px);
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(23, 34, 49, 0.08);
    text-align: left;
}

.esg-topic--has-chart {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) minmax(220px, 300px);
}

.esg-topic__media {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1eee9;
}

.esg-topic__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esg-topic__body {
    min-width: 0;
    padding-top: 6px;
}

.esg-topic__title {
    margin: 0 0 14px;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.22;
    font-weight: 500;
    color: var(--esg-navy, #1c3557);
    text-align: left;
    text-transform: none;
}

.esg-topic__content {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(14px, 1.05vw, 15px);
    line-height: 1.6;
    color: var(--esg-text, #4d5866);
}

.esg-topic__content p {
    margin: 0 0 12px;
}

.esg-topic__content p:last-child {
    margin-bottom: 0;
}

.esg-topic__content ul,
.esg-topic__content ol {
    margin: 0 0 12px 18px;
    padding: 0;
}

.esg-topic__content strong {
    color: #1f2935;
}

.esg-topic__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-top: 20px;
    padding: 0 20px;
    border: 1px solid var(--esg-red, #b70f1a);
    border-radius: 4px;
    background: var(--esg-red, #b70f1a);
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all 0.22s ease;
}

.esg-topic__button:hover,
.esg-topic__button:focus-visible {
    background: var(--esg-red-dark, #a90f19);
    border-color: var(--esg-red-dark, #a90f19);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Chart box */
.esg-chart {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 18px;
    border: 1px solid #ececf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(23, 34, 49, 0.06);
}

.esg-chart__title {
    margin-bottom: 10px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1f2935;
}

.esg-chart__value {
    margin-bottom: 16px;
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(30px, 2.6vw, 40px);
    line-height: 1;
    font-weight: 700;
    color: var(--esg-green, #4f7a3a);
}

.esg-section--gold .esg-chart__value {
    color: var(--esg-gold-dark, #a87732);
}

.esg-section--navy .esg-chart__value {
    color: var(--esg-navy, #1c3557);
}

.esg-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    margin-top: auto;
}

.esg-chart__bar-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
}

.esg-chart__bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: #a9d3a6;
    transition: height 0.4s ease;
}

.esg-chart__bar-wrap:last-child .esg-chart__bar {
    background: var(--esg-green, #4f7a3a);
}

.esg-section--gold .esg-chart__bar { background: #e8d3ad; }
.esg-section--gold .esg-chart__bar-wrap:last-child .esg-chart__bar { background: var(--esg-gold, #c49651); }
.esg-section--navy .esg-chart__bar { background: #b8c4d6; }
.esg-section--navy .esg-chart__bar-wrap:last-child .esg-chart__bar { background: var(--esg-navy, #1c3557); }

.esg-chart__bar-label {
    margin-top: 6px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    color: #7a8593;
}

@media only screen and (max-width: 1223px) {
    .esg-topic--has-chart {
        grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    }

    .esg-topic--has-chart .esg-chart {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 0 30px;
    }

    .esg-topic--has-chart .esg-chart__title,
    .esg-topic--has-chart .esg-chart__value {
        flex: 0 0 100%;
    }

    .esg-topic--has-chart .esg-chart__bars {
        flex: 1 1 100%;
        height: 120px;
    }
}

@media only screen and (max-width: 1023px) {
    .esg-section__head {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .esg-section__tabs-wrap {
        flex-basis: auto;
    }

    .esg-section__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        margin-bottom: -6px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .esg-carousel:not(.esg-carousel--arrows-hidden) {
        padding: 0;
    }

    .esg-carousel__arrow {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .esg-carousel__arrow--prev { left: -6px; }
    .esg-carousel__arrow--next { right: -6px; }

    .esg-carousel:not(.esg-carousel--arrows-hidden) .esg-carousel__counter {
        right: 26px;
    }
}

@media only screen and (max-width: 767px) {
    .esg-section {
        margin-top: 40px;
        padding: 32px 18px 36px;
    }

    .esg-section--light::before {
        width: 220px;
        height: 220px;
        left: -120px;
        bottom: -90px;
    }

    .esg-section__title {
        font-size: clamp(24px, 7vw, 30px);
    }

    .esg-topic,
    .esg-topic--has-chart {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 16px 16px 44px;
    }

    .esg-topic__media {
        aspect-ratio: 16 / 10;
    }

    .esg-topic__body {
        padding-top: 0;
    }

    .esg-topic__content {
        font-size: 14px;
    }

    .esg-topic--has-chart .esg-chart {
        flex-direction: column;
        align-items: stretch;
    }

    .esg-carousel__counter {
        right: 18px;
        bottom: 16px;
    }
}