/*
Theme Name: IN-SURE2
Theme URI: https://insure.pl
Author: IN-SURE
Description: Motyw ubezpieczeniowy
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: insure2
*/

/* Fonty: Roboto (jak ideecom.pl) – ładowane przez wp_enqueue w functions.php */

/* ========== COLOR VARIABLES ========== */
:root {
  --teal:        #3d8b8b;
  --teal-dark:   #2e6d6d;
  --teal-light:  #5aafaf;
  --bg:          #ffffff;
  --bg-light:    #f5f7f7;
  --bg-dark:     #555555;
  --text:        #2c2c2c;
  --text-muted:  #777777;
  --border:      #dde3e3;
}

/* ========== ANIMATION CLASSES ========== */
[class*="anima-"] {
  -webkit-transition: all 1s;
  transition: all 1s; }
  [class*="anima-"].anima-inview {
    opacity: 1; }

.anima-top {
  -webkit-transform: translateY(-30px);
  transform: translateY(-30px); }
  .anima-top.anima-inview {
    -webkit-transform: translateY(0);
    transform: translateY(0); }

.anima-bottom {
  -webkit-transform: translateY(30px);
  transform: translateY(30px); }
  .anima-bottom.anima-inview {
    -webkit-transform: translateY(0);
    transform: translateY(0); }

.anima-left {
  -webkit-transform: translateX(-30px);
  transform: translateX(-30px); }
  .anima-left.anima-inview {
    -webkit-transform: translateX(0);
    transform: translateX(0); }

.anima-right {
  -webkit-transform: translateX(30px);
  transform: translateX(30px); }
  .anima-right.anima-inview {
    -webkit-transform: translateX(0);
    transform: translateX(0); }

.anima-inview .anima-duration-2, .anima-inview header, .anima-inview.anima-duration-2, header.anima-inview {
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s; }

.anima-inview .anima-delay-1, .anima-inview.anima-delay-1 { -webkit-transition-delay: 0.25s; transition-delay: 0.25s; }
.anima-inview .anima-delay-2, .anima-inview.anima-delay-2 { -webkit-transition-delay: 0.5s;  transition-delay: 0.5s; }
.anima-inview .anima-delay-3, .anima-inview.anima-delay-3 { -webkit-transition-delay: 0.75s; transition-delay: 0.75s; }
.anima-inview .anima-delay-4, .anima-inview.anima-delay-4 { -webkit-transition-delay: 1s;    transition-delay: 1s; }

/* ========== BASE ========== */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  position: relative;
  color: var(--text);
  font-weight: 400;
  line-height: 1.45;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

html { font-size: 16px; }

*, *:before, *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

/* Tekst tylko dla czytników ekranu (SEO / dostępność) */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important; }

ul, ol { padding-left: 15px; }
li:not(:first-child) { margin-top: 5px; }
li:not(:last-child)  { margin-bottom: 5px; }
li::marker { color: var(--teal); }

p { margin: 0; }
p:not(:first-child) { margin-top: 15px; }
p:not(:last-child)  { margin-bottom: 15px; }

.menu, .menu li,
.sub-menu, .sub-menu li {
  padding: 0;
  margin: 0;
  list-style: none; }

figure { margin: 0; }

a {
  color: inherit;
  text-decoration: none; }
  a:hover { color: var(--teal); }

a, button {
  cursor: pointer;
  -webkit-transition: all 0.5s;
  transition: all 0.5s; }

svg { display: block; }

button {
  border: none;
  background-color: transparent; }

img {
  max-width: 100%;
  vertical-align: middle;
  height: auto; }

strong { font-weight: 700; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1; }

h1, h2, .h2, h3 {
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase; }
  h1:not(:first-child), h2:not(:first-child), .h2:not(:first-child), h3:not(:first-child) { margin-top: 50px; }
  h1:not(:last-child), h2:not(:last-child), .h2:not(:last-child), h3:not(:last-child) { margin-bottom: 40px; }
  h1 strong, h2 strong, .h2 strong, h3 strong { font-weight: 600; }

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto; }
  @media (min-width: 576px)  { .container { max-width: 540px;  } }
  @media (min-width: 768px)  { .container { max-width: 720px;  } }
  @media (min-width: 992px)  { .container { max-width: 960px;  } }
  @media (min-width: 1200px) { .container { max-width: 1370px; } }

.flex         { display: -webkit-box; display: -ms-flexbox; display: flex; }
.grid         { display: -ms-grid; display: grid; }
.align-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
.align-start  { -webkit-box-align: start;  -ms-flex-align: start;  align-items: flex-start; }
.justify-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
.justify-around  { -ms-flex-pack: distribute; justify-content: space-around; }
.justify-center  { -webkit-box-pack: center;  -ms-flex-pack: center;  justify-content: center; }

.text-center   { text-align: center; }
.text-white    { fill: white; }
  .text-white, .text-white h1, .text-white h2, .text-white h3,
  .text-white h4, .text-white h5, .text-white h6,
  .text-white a, .text-white strong { color: white; }
.text-uppercase { text-transform: uppercase; }
.overflow-hidden  { overflow: hidden; }
.position-relative { position: relative; }
.width-100 { width: 100%; }
.m-0   { margin: 0 !important; }
.m-p-0 p { margin: 0; }

.pt-100 { padding-top: 100px; } .pt-90 { padding-top: 90px; } .pt-80 { padding-top: 80px; }
.pt-70  { padding-top: 70px; }  .pt-60 { padding-top: 60px; } .pt-50 { padding-top: 50px; }
.pt-40  { padding-top: 40px; }  .pt-30 { padding-top: 30px; } .pt-20 { padding-top: 20px; }
.pt-10  { padding-top: 10px; }
.pb-90  { padding-bottom: 90px; } .pb-80 { padding-bottom: 70px; } .pb-70 { padding-bottom: 70px; }
.pb-60  { padding-bottom: 60px; } .pb-50 { padding-bottom: 50px; } .pb-40 { padding-bottom: 40px; }
.pb-30  { padding-bottom: 30px; } .pb-20 { padding-bottom: 20px; } .pb-10 { padding-bottom: 10px; }
.mt-100 { margin-top: 100px; } .mt-90 { margin-top: 90px; } .mt-80 { margin-top: 80px; }
.mt-50  { margin-top: 50px; }  .mt-30 { margin-top: 30px; } .mt-20 { margin-top: 20px; }
.mt-10  { margin-top: 10px; }
.mb-50  { margin-bottom: 50px; } .mb-40 { margin-bottom: 40px; } .mb-30 { margin-bottom: 30px; }
.mb-20  { margin-bottom: 20px; } .mb-10 { margin-bottom: 10px; }

@media (max-width: 1200px) { .lg-none { display: none; } }
@media (max-width: 992px)  { .md-none { display: none; } }
@media (max-width: 786px)  { .sm-none { display: none; } }
@media (max-width: 576px)  { .xs-none { display: none; } }

/* ========== PARALLAX ========== */
[data-parallax] {
  -webkit-transition: -webkit-transform 0.1s;
  transition: transform 0.1s; }

.background-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  -o-object-fit: cover; object-fit: cover;
  z-index: -99; }

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0; }
  @media (max-width: 992px) {
    header { padding: 5px 0; } }

  header .header-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 14px 0; }

  header .logo img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 100%; }
    @media (max-width: 1200px) {
      header .logo img { height: 38px; } }

/* Body offset so content isn't hidden under fixed header */
body { padding-top: 76px; }
@media (max-width: 992px) { body { padding-top: 60px; } }

/* ========== HAMBURGER BUTTON ========== */
#button { cursor: pointer; }
  #button .ham {
    -webkit-transition: -webkit-transform 400ms;
    transition: transform 400ms;
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
    margin: -10px -5px -10px 0;
    width: 60px; }
    #button .ham.no-tran, #button .ham.no-tran .line {
      -webkit-transition: all 0s !important; transition: all 0s !important; }
  #button .hamRotate.active { -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); }
  #button .line {
    fill: none;
    -webkit-transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke: var(--text); }
  #button .ham1 .topb    { stroke-dasharray: 40 139; }
  #button .ham1 .bottom  { stroke-dasharray: 40 180; }
  #button .ham1.active .topb   { stroke-dashoffset: -98px; }
  #button .ham1.active .bottom { stroke-dashoffset: -138px; }

/* ========== NAVIGATION MENU ========== */
header .menu-menu-gorne-container {
  -webkit-transition: all 0.6s;
  transition: all 0.6s; }

@media (max-width: 992px) {
  header .menu-menu-gorne-container {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background-color: #ffffff;
    -webkit-transform: translateX(100%); -ms-transform: translateX(100%); transform: translateX(100%);
    -webkit-transition: transform 0.45s cubic-bezier(0.77,0,0.175,1);
    transition: transform 0.45s cubic-bezier(0.77,0,0.175,1);
    z-index: 994;
    pointer-events: none;
    overflow-y: auto; overflow-x: hidden;
    padding: 100px 30px 50px 30px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15); } }

header .menu-menu-gorne-container.no-tran,
header .menu-menu-gorne-container.no-tran li {
  -webkit-transition: all 0s !important; transition: all 0s !important; }

  @media (min-width: 992px) {
    header .menu-menu-gorne-container .menu { display: -webkit-box; display: -ms-flexbox; display: flex; } }

  header .menu-menu-gorne-container .menu li {
    position: relative;
    -webkit-transition: all 0.2s; transition: all 0.2s;
    white-space: nowrap;
    -webkit-transform: translateX(-15px); -ms-transform: translateX(-15px); transform: translateX(-15px);
    opacity: 0;
    pointer-events: none; }
    header .menu-menu-gorne-container .menu li::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      border: 1px solid var(--teal);
      -webkit-transition: all 0.5s cubic-bezier(1,0,0,1);
      transition: all 0.5s cubic-bezier(1,0,0,1);
      -webkit-clip-path: polygon(0 100%, 100% 0, 100% 0, 0 100%);
      clip-path: polygon(0 100%, 100% 0, 100% 0, 0 100%);
      pointer-events: none; }

    header .menu-menu-gorne-container .menu li.current_page_ancestor > a,
    header .menu-menu-gorne-container .menu li.current-menu-item > a,
    header .menu-menu-gorne-container .menu li.current-page-ancestor > a {
      background-color: var(--teal);
      color: #ffffff; }

    header .menu-menu-gorne-container .menu li:not(.current-menu-item):hover::before {
      -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
    header .menu-menu-gorne-container .menu li:not(.current-menu-item):hover > a { color: var(--teal); }
    header .menu-menu-gorne-container .menu li a { display: block; padding: 10px 0; color: var(--text); }

  @media (max-width: 992px) {
    header .menu-menu-gorne-container .menu > li {
      text-transform: uppercase;
      -webkit-transform: translateX(40px); -ms-transform: translateX(40px); transform: translateX(40px);
      opacity: 0;
      width: 230px;
      margin: 0 auto; } }

  header .menu-menu-gorne-container .menu > li > a {
    padding: 5px 13px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--text); }
    @media (max-width: 1200px) {
      header .menu-menu-gorne-container .menu > li > a { padding: 5px 8px; } }
    @media (max-width: 992px) {
      header .menu-menu-gorne-container .menu > li > a { padding: 10px 13px; margin: 15px 0; } }

  header .menu-menu-gorne-container.menu_active {
    z-index: 994;
    pointer-events: auto;
    opacity: 1;
    -webkit-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0); }
    header .menu-menu-gorne-container.menu_active li {
      -webkit-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0);
      opacity: 1; pointer-events: auto; }
      header .menu-menu-gorne-container.menu_active li:nth-child(1)  { transition: opacity .5s ease-out .1s, color .5s, transform .5s ease-out .1s; }
      header .menu-menu-gorne-container.menu_active li:nth-child(2)  { transition: opacity .5s ease-out .2s, color .5s, transform .5s ease-out .2s; }
      header .menu-menu-gorne-container.menu_active li:nth-child(3)  { transition: opacity .5s ease-out .3s, color .5s, transform .5s ease-out .3s; }
      header .menu-menu-gorne-container.menu_active li:nth-child(4)  { transition: opacity .5s ease-out .4s, color .5s, transform .5s ease-out .4s; }
      header .menu-menu-gorne-container.menu_active li:nth-child(5)  { transition: opacity .5s ease-out .5s, color .5s, transform .5s ease-out .5s; }
      header .menu-menu-gorne-container.menu_active li:nth-child(6)  { transition: opacity .5s ease-out .6s, color .5s, transform .5s ease-out .6s; }
      header .menu-menu-gorne-container.menu_active li:nth-child(7)  { transition: opacity .5s ease-out .7s, color .5s, transform .5s ease-out .7s; }
      header .menu-menu-gorne-container.menu_active li:nth-child(8)  { transition: opacity .5s ease-out .8s, color .5s, transform .5s ease-out .8s; }
      header .menu-menu-gorne-container.menu_active li:nth-child(9)  { transition: opacity .5s ease-out .9s, color .5s, transform .5s ease-out .9s; }
      header .menu-menu-gorne-container.menu_active li:nth-child(10) { transition: opacity .5s ease-out 1s,  color .5s, transform .5s ease-out 1s; }

/* ========== DROPDOWN PODMENU ========== */
@media (min-width: 992px) {
  header .menu-menu-gorne-container .menu > li.has-dropdown { position: relative; }
  header .menu-menu-gorne-container .menu > li.has-dropdown > .sub-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    min-width: 210px;
    background: #ffffff;
    border-top: 2px solid var(--teal);
    padding: 6px 0;
    z-index: 9999;
    list-style: none; margin: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
  header .menu-menu-gorne-container .menu > li.has-dropdown:hover > .sub-menu { display: block; }
  header .menu-menu-gorne-container .menu > li > .sub-menu > li {
    opacity: 1 !important; transform: none !important; pointer-events: auto !important; white-space: nowrap; }
  header .menu-menu-gorne-container .menu > li > .sub-menu > li::before { display: none !important; }
  header .menu-menu-gorne-container .menu > li > .sub-menu > li > a {
    display: block;
    padding: 9px 18px;
    color: var(--text);
    font-size: 0.82rem;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.2s, background 0.2s; }
  header .menu-menu-gorne-container .menu > li > .sub-menu > li:hover > a {
    color: var(--teal);
    background: var(--bg-light); }
  .menu > li > a .arrow { font-size: 0.65em; margin-left: 3px; display: inline-block; transition: transform 0.25s; }
  header .menu-menu-gorne-container .menu > li.has-dropdown:hover > a .arrow { transform: rotate(180deg); } }

@media (max-width: 992px) {
  header .menu-menu-gorne-container .menu > li > .sub-menu {
    display: none; list-style: none; margin: 0; padding: 0 0 5px 15px; }
  header .menu-menu-gorne-container .menu > li.open > .sub-menu { display: block; }
  header .menu-menu-gorne-container .menu > li > .sub-menu > li {
    opacity: 1 !important; transform: none !important; pointer-events: auto !important; margin: 3px 0; }
  header .menu-menu-gorne-container .menu > li > .sub-menu > li::before { display: none !important; }
  header .menu-menu-gorne-container .menu > li > .sub-menu > li > a {
    color: var(--text-muted); font-size: 0.82rem; padding: 6px 0; display: block; text-transform: none; font-weight: 400; }
  .menu > li > a .arrow { font-size: 0.65em; margin-left: 3px; } }

/* ========== HERO SLIDER ========== */
.main-slider-wrapper { position: relative; margin-bottom: 0; }

.main-slider-wrapper .slide {
  position: relative; overflow: hidden; display: block; z-index: 0; }

.main-slider-wrapper .slide picture {
  display: block; width: 100%; height: 100vh; }

.main-slider-wrapper .slide img {
  display: block; width: 100%; height: 100vh;
  -o-object-fit: cover; object-fit: cover;
  -o-object-position: center center; object-position: center center;
  -webkit-transform: scale(1.15); transform: scale(1.15);
  will-change: transform;
  filter: grayscale(100%); }

.main-slider-wrapper .slide .description {
  position: absolute; top: 50%; left: 0; width: 100%;
  -webkit-transform: translateY(-50%); transform: translateY(-50%);
  z-index: 3; text-align: center; }

.main-slider-wrapper .slide .description h1,
.main-slider-wrapper .slide .description h2,
.main-slider-wrapper .slide .description h3,
.main-slider-wrapper .slide .description p {
  opacity: 0; letter-spacing: 5px; color: #ffffff;
  -webkit-transition: opacity 1.5s ease 0.4s, letter-spacing 1.5s ease 0.4s;
  transition: opacity 1.5s ease 0.4s, letter-spacing 1.5s ease 0.4s; }
  @media (max-width: 1200px) { .main-slider-wrapper .slide .description h2 { letter-spacing: 0; } }
  @media (max-width: 992px) { .main-slider-wrapper .slide .description h2 br { display: none; } }

.main-slider-wrapper .slide::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 40%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.5) 70%, #ffffff 100%);
  pointer-events: none; z-index: 1; }

.main-slider-wrapper .slide.tns-slide-active img { opacity: 1; }
.main-slider-wrapper .slide.tns-slide-active h1,
.main-slider-wrapper .slide.tns-slide-active h2,
.main-slider-wrapper .slide.tns-slide-active h3,
.main-slider-wrapper .slide.tns-slide-active p {
  opacity: 1; letter-spacing: 0;
  -webkit-transition: all 1.5s ease 0.4s; transition: all 1.5s ease 0.4s; }

/* Custom slider controls */
.custom-controls {
  position: absolute; top: 49%; left: 0; height: 0; width: 100%; z-index: 99; }
  .custom-controls.slider-arrow-outside { left: -60px; width: calc(100% + 120px); }
    @media (max-width: 576px) { .custom-controls.slider-arrow-outside { display: none; } }
  .custom-controls button {
    background-color: transparent; cursor: pointer; border: 0; width: 40px; opacity: 0.4;
    -webkit-transition: all 0.3s; transition: all 0.3s; }
    .custom-controls button svg { fill: var(--teal); }
    .custom-controls button:hover { opacity: 1; }
    .custom-controls button:nth-child(1) { float: left; -webkit-transform: rotate(90deg); transform: rotate(90deg); }
    .custom-controls button:nth-child(2) { -webkit-transform: rotate(-90deg); transform: rotate(-90deg); float: right; }

/* ========== SUBPAGES HERO ========== */
.subpage-hero-bg {
  position: relative;
  height: 55vh;
  overflow: hidden;
  z-index: 0; }

.subpage-hero-bg img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  -o-object-fit: cover; object-fit: cover;
  -webkit-transform: scale(1.15); transform: scale(1.15);
  will-change: transform;
  filter: grayscale(100%); }

.subpage-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 60%, rgba(255,255,255,0.6) 100%);
  z-index: 1; pointer-events: none; }

.subpage-hero-title {
  position: absolute; bottom: 40px; left: 0; width: 100%; z-index: 2; }

/* Teal overlay box on subpage hero – like ideecom.pl style */
.subpage-hero-title .page-title-box {
  display: inline-block;
  background-color: var(--teal);
  padding: 18px 36px;
  position: relative; }
  .subpage-hero-title .page-title-box::before {
    content: '';
    position: absolute;
    top: -12px; right: -12px;
    width: 24px; height: 24px;
    background-color: var(--teal-light);
    opacity: 0.6; }

.page-title-hero {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0; }

.page-main {
  background-color: #ffffff;
  position: relative;
  z-index: 2; }

  @media (max-width: 992px) {
    .subpage-hero-bg { height: 40vh; } }

.page-single-wrapper { position: relative; z-index: 2; }
.page-single-wrapper .container { max-width: 960px; }

/* ========== FOOTER ========== */
footer {
  font-size: 0.75rem;
  line-height: 1.6;
  position: relative;
  z-index: 3;
  background-color: #555555;
  color: rgba(255,255,255,0.75); }

.footer-bg-wrap { display: none; }

.footer-content {
  position: relative; z-index: 2;
  padding-top: 60px;
  padding-bottom: 40px; }

footer .container { max-width: 1020px; }
@media (max-width: 869px) {
  footer .flex, footer .footer-inner { -ms-flex-wrap: wrap; flex-wrap: wrap; } }

.footer-inner {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
  -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start;
  gap: 20px; }

.footer-brand { font-size: 0.82rem; line-height: 1.8; opacity: 0.9; }
.footer-brand p:first-child { font-size: 1rem; font-weight: 700; color: #fff; text-transform: uppercase; }

footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: #fff; }

footer .wp-block-media-text__media { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; margin-bottom: 8px; }
footer .wp-block-media-text__content p { margin: 2px 0; }
@media (min-width: 870px) { footer .flex .wp-block-media-text.fixed { margin: 0; } }
@media (max-width: 869px) { footer .flex .wp-block-media-text.fixed { margin: 10px 0; } }
@media (max-width: 870px) { footer .flex > div { -ms-flex-preferred-size: 50%; flex-basis: 50%; margin: 10px 0; } }
@media (max-width: 576px) { footer .flex > div { -ms-flex-preferred-size: 100%; flex-basis: 100%; } }

footer .copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem; }

.footer-fb-wrap { margin-top: 14px !important; }
.footer-fb-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--teal) !important;
  opacity: 1; }
  .footer-fb-link:hover { color: var(--teal-light) !important; }

/* Small teal accent line above footer */
footer::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--teal); }

/* ========== WP BLOCK MEDIA TEXT ========== */
.wp-block-media-text.fixed {
  -ms-grid-columns: 33px auto !important;
  grid-template-columns: 33px auto !important;
  grid-gap: 20px;
  margin: 45px 0;
  display: -ms-grid; display: grid; }
  .wp-block-media-text.fixed.bigger {
    -ms-grid-columns: 70px auto !important;
    grid-template-columns: 70px auto !important;
    grid-gap: 30px; margin: 45px 0; }
  .wp-block-media-text.fixed img { height: auto; }
  .wp-block-media-text.fixed .wp-block-media-text__content { padding: 0; }

.wp-block-columns { display: -webkit-box; display: -ms-flexbox; display: flex; }
  @media (max-width: 992px) { .wp-block-columns { -ms-flex-wrap: wrap; flex-wrap: wrap; } }
  @media (max-width: 992px) { .wp-block-columns .wp-block-column { -ms-flex-preferred-size: 100% !important; flex-basis: 100% !important; } }

/* ========== STRONA GŁÓWNA ========== */
body.home { background-color: #ffffff; background-image: none !important; }

.home-main { display: block; }

/* Hero full-screen – sam baner (bez skalowania JS, żeby nie „ rwało” krawędzi) */
.home-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden; }

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0; }
  .home-hero-bg .home-hero-img,
  .home-hero-bg img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center center;
    display: block; }

/* Fade to white at bottom of hero */
.home-hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 4;
  pointer-events: none; }

/* ========== HOME MISSION (tekst jak ideecom.pl) ========== */
.home-mission {
  background-color: #ffffff;
  padding: 72px 0 64px; }

.home-mission-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center; }

.home-mission-body {
  text-align: left;
  max-width: 640px;
  margin: 0 auto 36px; }

.home-mission-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin: 0 0 28px; }
  .home-mission-lead:last-child { margin-bottom: 0; }
  .home-mission-lead strong {
    color: #2c2c2c;
    font-weight: 700; }

.home-mission-more {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: #3d8b8b;
  border-bottom: 2px solid #3d8b8b;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s; }
  .home-mission-more:hover {
    color: #2e6d6d;
    border-color: #2e6d6d; }

/* ========== HOME: drugie i trzecie zdjęcie / banner (pełna szerokość, naturalny kadr) ========== */
.home-split,
.home-strip {
  margin: 0;
  padding: 0;
  line-height: 0;
  background-color: #ffffff; }

.home-banner-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top; }

/* ========== HOME FACEBOOK (turkus jak logo – var(--teal)) ========== */
.home-facebook {
  background-color: rgba(61, 139, 139, 0.07);
  border-top: 1px solid rgba(61, 139, 139, 0.2);
  padding: 56px 0 64px; }

.home-facebook-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center; }

.home-facebook-brand {
  margin-bottom: 18px; }

.home-facebook-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  color: var(--teal);
  display: block; }

.home-facebook-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  line-height: 1.25; }

.home-facebook-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #555;
  margin: 0 0 28px; }
  .home-facebook-text strong { color: #2c2c2c; }

.home-facebook-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background-color: var(--teal);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  -webkit-transition: background 0.25s, -webkit-transform 0.2s;
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(61, 139, 139, 0.35); }
  .home-facebook-btn:hover {
    background-color: var(--teal-dark);
    color: #ffffff;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px); }
  .home-facebook-btn-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    color: #fff; }

/* ========== BODY SCROLLING LOCK ========== */
body.hdn { overflow: hidden; }

/* ========== COOKIE NOTICE ========== */
#cookieNotice {
  width: 100%;
  position: fixed; bottom: 0px;
  -webkit-box-shadow: 0px 0 10px 0 #999;
  box-shadow: 0px 0 10px 0 #999;
  background: #2c2c2c;
  z-index: 9999; font-size: 14px; left: 0px; color: #fff; opacity: 0.95; }
  #cookieNotice #cookieNoticeContent {
    padding: 10px; width: 100%; }
    @media (max-width: 576px) {
      #cookieNotice #cookieNoticeContent { -ms-flex-wrap: wrap; flex-wrap: wrap; }
      #cookieNotice #cookieNoticeContent br { display: none; } }
    #cookieNotice #cookieNoticeContent svg {
      width: 50px; fill: var(--teal); margin-right: 25px; }
      @media (max-width: 786px) { #cookieNotice #cookieNoticeContent svg { display: none; } }
  #cookieNotice .closebutton {
    border-radius: 20px; border: 2px solid #fff;
    text-decoration: none; padding: 9px 16px;
    -webkit-transition: all 0.3s; transition: all 0.3s;
    z-index: 99; cursor: pointer; }
    #cookieNotice .closebutton:hover { color: #2c2c2c; background-color: white; }
    @media (max-width: 576px) {
      #cookieNotice .closebutton { -webkit-box-ordinal-group: 0; -ms-flex-order: -1; order: -1; margin-bottom: 10px; } }

/* ========== TINY SLIDER ========== */
.tns-outer { padding: 0 !important; cursor: -webkit-grab; cursor: grab; }
  .tns-outer:active { cursor: -webkit-grabbing; cursor: grabbing; }
.tns-slider { -webkit-transition: all 0s; transition: all 0s; }
.tns-gallery > .tns-item { position: absolute; left: -100%; -webkit-transition: opacity 0s, -webkit-transform 0s; transition: transform 0s, opacity 0s; }
.tns-gallery > .tns-slide-active { position: relative; left: auto !important; }
.tns-fadeIn  { opacity: 1; z-index: 0; }
.tns-normal, .tns-fadeOut { opacity: 0; z-index: -1; }
.tns-ovh { overflow: hidden; }
.tns-visually-hidden { position: absolute; left: -10000em; }

/* ========== BUTTONS / LINKS ========== */
.wp-block-button__link {
  padding: 37px 10px;
  background-color: var(--teal);
  border: 3px solid transparent;
  color: white; }
  .wp-block-button__link:hover {
    border-color: var(--teal);
    background-color: transparent;
    color: var(--teal); }

.orange-border a {
  background-color: var(--teal);
  padding: 9px 10px;
  border: 2px solid var(--teal);
  color: white; }
  .orange-border a:hover {
    color: var(--teal);
    border-color: var(--teal);
    background-color: transparent; }

/* ========== CONTACT FORM ========== */
.wpcf7 { display: flow-root; padding-top: 40px; }
  .wpcf7 br { display: none; }
  .wpcf7 .wpcf7-text,
  .wpcf7 .wpcf7-textarea {
    width: 100%;
    font-size: 0.9rem;
    background-color: #fff;
    border: 1px solid var(--border);
    color: var(--text); }
  .wpcf7 .wpcf7-submit {
    background-color: var(--teal);
    border: none;
    padding: 10px 40px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 30px;
    float: right;
    color: #ffffff;
    border: 2px solid var(--teal);
    cursor: pointer;
    -webkit-transition: all 0.3s; transition: all 0.3s;
    font-family: 'Roboto', sans-serif; }
  .wpcf7 .wpcf7-submit:hover {
      color: var(--teal);
      background-color: transparent; }

input, textarea { padding: 8px 15px; outline: none; }
  input:focus, textarea:focus { border: 1px solid var(--teal) !important; }

/* ========== GRID UTILITIES ========== */
.grid-2 { grid-gap: 50px; }
  @media (min-width: 993px) { .grid-2 { -ms-grid-columns: (1fr)[2]; grid-template-columns: repeat(2, 1fr); } }

/* ========== PAGE TITLE (subpages) ========== */
.page-title {
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 40px; margin-top: 0;
  color: var(--teal);
  border-left: 4px solid var(--teal);
  padding-left: 16px; }

/* ========== SUBPAGE HERO DECO ========== */
.subhero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 2; }
.subhero-deco-1 {
  top: 20%;
  left: 4%;
  width: 70px; height: 70px;
  background-color: var(--teal);
  opacity: 0.65; }
.subhero-deco-2 {
  top: 38%;
  left: 7%;
  width: 35px; height: 35px;
  background-color: var(--teal-light);
  opacity: 0.45; }
@media (max-width: 768px) {
  .subhero-deco-1 { width: 40px; height: 40px; }
  .subhero-deco-2 { display: none; } }

/* ========== BREADCRUMBS ========== */
.breadcrumb-bar {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 11px 0; }

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 0.78rem;
  color: var(--text-muted); }
  .breadcrumbs a {
    color: var(--text-muted);
    transition: color 0.2s; }
    .breadcrumbs a:hover { color: var(--teal); }
  .breadcrumb-sep {
    margin: 0 6px;
    color: var(--border); }
  .breadcrumb-current {
    color: var(--teal);
    font-weight: 600; }

/* ========== SUBPAGE CONTENT ========== */

/* Usuwamy duplikat page-main – zostaje tylko ta sekcja */
.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #2c2c2c; }

.entry-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c2c2c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3d8b8b; }
  .entry-content h2:first-child { margin-top: 0; }

.entry-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #3d8b8b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid #3d8b8b; }
  .entry-content h3:first-child { margin-top: 0; }

.entry-content p {
  margin-top: 0;
  margin-bottom: 16px;
  color: #2c2c2c; }

.entry-content ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 20px; }
  .entry-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #2c2c2c;
    line-height: 1.6; }
    .entry-content ul li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      width: 9px;
      height: 9px;
      background-color: #3d8b8b;
      transform: rotate(45deg); }

.entry-content ol {
  padding-left: 22px; }
  .entry-content ol li {
    margin-bottom: 10px;
    color: #2c2c2c; }
  .entry-content ol li::marker { color: #3d8b8b; font-weight: 700; }

.entry-content a { color: #3d8b8b; text-decoration: underline; text-underline-offset: 3px; }
  .entry-content a:hover { color: #2e6d6d; }

.entry-content strong { color: #2c2c2c; }

/* Treść z ideecom.pl: kontakt (2 kolumny), współpraca (CTA) */
.entry-content .ideecom-kontakt-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start; }
  @media (max-width: 640px) {
    .entry-content .ideecom-kontakt-cols {
      grid-template-columns: 1fr; } }
.entry-content .text-center.margin-top {
  text-align: center;
  margin-top: 2rem; }

/* ===== PAGE LAYOUT: 2 kolumny ===== */
.page-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 70px; }
  @media (max-width: 900px) {
    .page-wrap {
      grid-template-columns: 1fr;
      gap: 40px;
      padding-top: 40px; } }

.page-col-main { min-width: 0; }

/* ===== SIDEBAR ===== */
.page-col-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px; }

/* Widget: nawigacja */
.sw-nav {
  border: 1px solid #dde3e3;
  overflow: hidden; }

.sw-nav-title {
  background-color: #3d8b8b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 18px;
  margin: 0; }

.sw-nav-links { display: flex; flex-direction: column; }
  .sw-nav-links a {
    display: block;
    padding: 11px 18px;
    font-size: 0.88rem;
    color: #2c2c2c;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s, color 0.15s, padding-left 0.15s; }
    .sw-nav-links a:last-child { border-bottom: none; }
    .sw-nav-links a:hover { background: #f5f7f7; color: #3d8b8b; padding-left: 24px; }
    .sw-nav-links a.is-active { background: #f5f7f7; color: #3d8b8b; font-weight: 700; border-left: 3px solid #3d8b8b; padding-left: 15px; }

/* Widget: karta kontaktu */
.sw-contact {
  background-color: #3d8b8b;
  padding: 28px 22px;
  color: #ffffff; }

.sw-contact-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 8px; }

.sw-contact-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 18px;
  line-height: 1.5; }

.sw-contact-phone {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.02em; }
  .sw-contact-phone:hover { color: rgba(255,255,255,0.85); }

.sw-contact-email {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px; }
  .sw-contact-email:hover { color: #fff; }

.sw-contact-btn {
  display: block;
  padding: 10px 0;
  text-align: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.25s; }
  .sw-contact-btn:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* Widget: liczby */
.sw-stats {
  background-color: #2c2c2c;
  padding: 24px 22px; }

.sw-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08); }
  .sw-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .sw-stat:first-child { padding-top: 0; }

.sw-stat-num {
  font-size: 1.65rem;
  font-weight: 700;
  color: #3d8b8b;
  line-height: 1;
  min-width: 58px; }

.sw-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3; }

/* ========== SINGLE POST ========== */
.single-thumbnail {
  margin-bottom: 28px;
  overflow: hidden; }
  .single-thumbnail img {
    width: 100%;
    display: block;
    filter: grayscale(50%);
    transition: filter 0.5s; }
  .single-thumbnail:hover img { filter: grayscale(0%); }

.single-meta {
  font-size: 0.78rem;
  color: #777;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 8px; }
  .single-meta a { color: #3d8b8b; }

/* ========== BOTTOM CTA STRIP ========== */
.page-cta-strip {
  background-color: #3d8b8b;
  padding: 56px 0; }

.page-cta-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 30px; }
  @media (max-width: 768px) {
    .page-cta-inner {
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      text-align: center; } }

.page-cta-text h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: 0.04em; }
  .page-cta-text h2 strong { font-weight: 700; }
.page-cta-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin: 0; }

.page-cta-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; }
  @media (max-width: 768px) {
    .page-cta-actions { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } }

.cta-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  -webkit-transition: all 0.3s;
  transition: all 0.3s; }

.cta-btn-white {
  background: #ffffff;
  color: #3d8b8b;
  border: 2px solid #ffffff; }
  .cta-btn-white:hover { background: transparent; color: #ffffff; border-color: #ffffff; }

.cta-btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.7); }
  .cta-btn-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

/* ========== 404 ========== */
.error404 { width: 100%; height: 100vh; overflow: hidden; }
  .error404 .error404-wrapper {
    display: flex; position: relative;
    justify-content: center; align-items: center; text-align: center;
    background-color: #ffffff;
    height: 100vh; }
    .error404 .error404-wrapper div { position: relative; z-index: 999; }
    .error404 .error404-wrapper h3 { margin-bottom: 30px; color: var(--teal); }
