/*
Theme Name: Freelancer Studio
Theme URI: https://yourstudio.com
Author: Your Name
Author URI: https://yourstudio.com
Description: A bold, dark marketing freelancer theme inspired by agency aesthetics. Full editable content via WordPress admin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freelancer-studio
Tags: custom-menu, full-width-template, custom-colors, featured-images, dark, agency, portfolio
*/

/* ============================================================
   CSS VARIABLES
   * ============================================================ */
:root {
  --bg-dark:    #1b1b1b;
  --bg-darker: #000000;
  --bg-light:   #f2f2f2;
  --bg-white:   #ffffff;
  --accent-green: #85c7a5;
  --accent-pink:  #fd9c94;
  --accent-cyan:  #60c8d4;
  --text-white: #fff;
  --text-dark:  #1b1b1b;
  --text-muted: #aaaaaa;
  --text-light-muted: #888888;
  --font-main:  'Poppins', sans-serif;
  --transition: 0.3s ease;
  --nav-height: 80px;
}

/* ============================================================
   RESET & BASE
   * ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-darker);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-main); cursor: pointer; }
input, textarea, select { font-family: var(--font-main); }

/* ============================================================
   TYPOGRAPHY
   * ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.1;
  margin-top:20px;
  margin-bottom:20px;
}
/*h1 { font-size: clamp(48px, 8vw, 100px); }
h2 { font-size: clamp(36px, 5vw, 62px); }
h3 { font-size: clamp(24px, 3vw, 36px); }*/
h4 { font-size: clamp(18px, 2vw, 22px); }

h1 {
  font-size: clamp(2rem, 5vw, 4rem); /* Hero header with dynamic scaling */
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem); /* Primary section headers */
}
h3 {
  font-size: 1.5rem; /* Secondary headers, consistent with global rem */
}
p { font-size: 16px; line-height: 1.8; }

.section-heading {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}
.section-heading.dark { color: var(--text-dark); }

/* ============================================================
   LAYOUT
   * ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-intro .container{
  max-width:1000px;
}
section { position: relative; }

/* ============================================================
   HEADER + NAVIGATION
   * ============================================================ */

/* ---- Pink triangle corner (absolute, body top-left) ---- */
#naroznik_top {
  position: absolute;
  left: 0; top: 0;
  width: 324px; height: 337px;
  /*background: url('') top left / contain no-repeat;*/
  z-index: 1;
  pointer-events: none;
}

/* ---- Dark spacer below absolute header ---- */
#tlo_header_podstrona {
  width: 100%;
  height: 134px;
  background-color: #1b1b1b;
  transition: 0.3s;
}
#tlo_header_podstrona.header-fixed {
  height: 83px;
}

/* ---- HEADER base ---- */
header {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 134px;
  padding: 20px 50px 20px 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  transition: 0.3s;
}
/* Sticky state -- added by JS on scroll */
header.header-fixed {
  position: fixed;
  background-color: #1b1b1b;
  padding: 10px 50px 10px 55px;
  height: 83px;
}
/* Transparent bg on homepage hero */
header.tlo {
  background-color: transparent;
}

/* ---- Logo: two images (.logo text + .sygnet icon) ---- */
.header_logo {
  display: flex;
  align-items: center;
  width: 294px;
  transition: transform .3s ease-in-out;
}
.header_logo .logo,
.header_logo .sygnet {
  height: auto;
  transition: transform .3s ease-in-out;
}

.header_logo .logo {
  width: 197px;
  margin-right: 12px;
}
.header_logo .sygnet {
  width: 80px;
}
/* Shrink logo on sticky */
header.header-fixed .header_logo .logo {
  width: 128px;
  margin-right: 7px;
}
header.header-fixed .header_logo .sygnet {
  width: 50px;
}

/* ---- Desktop nav -- #menu_deskop ---- */
#menu_deskop ul {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
}
#menu_deskop ul li {
  margin: 0 10px;
  position: relative;
}
#menu_deskop ul li a,
#menu_deskop ul li:hover ul li a {
  color: #ffffff;
  font: 600 16px/16px 'Poppins', sans-serif;
  display: inline-block;
}
#menu_deskop ul li a {
  text-transform: uppercase;
  padding: 15px;
  text-shadow: 1px 1px 24px #010000;
  position: relative;
  transition: 0.3s;
}
#menu_deskop ul li a:hover {
  color: #e9bd26cf;
}
/* Active indicator: green circle below active link */
#menu_deskop ul li a.active::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -55px;
  transform: translate(-50%, 0);
  width: 23px; height: 23px;
  /*border-radius: 100%;*/
  border-bottom: 3px solid #e9bd26cf;
  transition: 0.3s;
}
header.header-fixed #menu_deskop ul li a.active::before {
  bottom: -29px;
}
/* Dropdown */
#menu_deskop ul li:hover ul,
#menu_deskop ul ul {
  position: absolute;
  left: 0;
  display: flex;
}
#menu_deskop ul ul {
  display: none;
}
#menu_deskop ul li:hover ul {
  padding: 10px 0;
  background: #e9bd26;
  top: 40px;
  flex-direction: column;
}


#menu_deskop ul li:hover ul li a {
  color: #000;
  font: 600 16px/16px 'Poppins', sans-serif;
  display: inline-block;
}

#menu_deskop ul li:hover ul li a:hover {
  border-bottom: 0.5px solid #000;
}

#menu_deskop ul li ul .menu-item a.active{
  color:#000;
}

#menu_deskop ul li:hover ul li a {
  padding: 10px;
  text-shadow: none;
}
#menu_deskop ul li ul li a.active,
#menu_deskop ul li ul li a:hover {
  color: #1b1b1b;
}
/* WP nav_menu wraps in <ul> -- fix */
#menu_deskop > ul { margin: 0; padding: 0; }

/* ============================================================
   GLOBAL .btn -- SVG border
   * ============================================================ */
.btn {
  position: relative;
  display: inline-block;
  width: 187px;
  height: 50px;
  z-index: 1;
}

.btn svg {
  position: absolute;
  left: 0; top: 0;
  width: 187px;
  height: 50px;
}

.btn svg rect {
  width: 187px;
  height: 50px;
  fill: none;
  stroke: #000;
  stroke-width: 4;
  stroke-dasharray: 287, 0;
  stroke-dashoffset: 0;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  transition: all 0.5s;
}

.btn:hover svg rect {
  stroke: #ef2928;
  stroke-dasharray: 187, 287;
  stroke-dashoffset: 237;
}

.hover_realizacja .btn:hover svg rect {
  stroke: #fff;
}

.btn span {
  display: block;
  position: absolute;
  text-transform: uppercase;
  font: 700 15px/15px 'Poppins', sans-serif;
  color: #fff;
  bottom: 17px;
  right: 50%;
  transform: translate(50%, 0);
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  transition: all 0.5s;
}

.btn:hover span {
  right: 30px;
  transform: translate(0, 0);
}

/* ---- Right side -- #header_right ---- */
#header_right {
  display: flex;
  align-items: center;
}

/* WYCEN PROJEKT -- header button overrides */
#header_right .btn,
#header_right .btn svg,
#header_right .btn svg rect {
  width: 170px;
  height: 42px;
}
#header_right .btn {
  position: relative;
  display: inline-block;
}
#header_right .btn svg {
  position: absolute;
  left: 0; top: 0;
}
#header_right .btn svg rect {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-dasharray: 254, 0;
  stroke-dashoffset: 0;
  transition: 0.5s;
}
#header_right .btn:hover svg rect {
  stroke-dasharray: 170, 254;
  stroke-dashoffset: 212;
}
#header_right .btn span {
  color: #ffffff;
  font: 600 16px/16px 'Poppins', sans-serif;
  position: absolute;
  bottom: 50%; right: 50%;
  transform: translate(50%, 50%);
  height: 16px;
  width: 160px;
  text-align: center;
  transition: 0.3s;
}
#header_right .btn:hover span {
  color: #edc494;
}

/* ---- Hamburger -- 3 lines ---- */
.hamburger {
  width: 50px;
  height: 26px;
  position: relative;
  cursor: pointer;
  margin-left: 40px;
}
.hamburger .line {
  width: 40px;
  height: 4px;
  background-color: #ffffff;
  position: absolute;
  transition: 0.3s;
  display: block;
}
.hamburger .line_1,
.hamburger .line_3 {
  left: 10px;
}
.hamburger .line_1 { top: 0; }
.hamburger .line_3 { bottom: 0; }
.hamburger .line_2 {
  left: 0; top: 50%;
  transform: translate(0, -50%);
}
.hamburger:hover .line_1,
.hamburger:hover .line_3 {
  left: 0;
}
.hamburger:hover .line_2 {
  background-color: #e9bd26;
  left: 10px;
}

/* ---- FULLSCREEN MENU -- #menu_fullscreen ---- */
#menu_fullscreen {
  position: fixed;
  top: 0; left: 0;
  transform: translate(0, -100%);
  width: 100%; height: 100%;
  background-color: #000000;
  overflow: hidden;
  z-index: 6;
  transition: 0.5s;
}
#menu_fullscreen.active {
  transform: translate(0, 0);
}

/* Decorative figures */
#menu_fullscreen .figura {
  position: absolute;
}
#menu_fullscreen .figura_2 {
  left: 25px; top: 20%;
}
#menu_fullscreen .figura_3 {
  right: 0; top: 27%;
}
#menu_fullscreen .figura_6 {
  left: 13%; bottom: 14%;
}

/* Large sygnet watermark */
#menu_fullscreen .sygnet {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 30%; height: auto;
}
#menu_fullscreen .sygnet .cls-1 {
  fill: rgba(255,255,255,0.04);
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1;
}
#menu_fullscreen .sygnet .cls-2 {
  fill: none;
}

/* Main nav position */
#menu_fullscreen nav {
  position: absolute;
  left: 46%; top: 27%;
  transform: translate(-50%, 0);
}

/* .menu1 -- main items */
#menu_fullscreen .menu1 {
  margin-bottom: 40px;
  list-style: none;
  padding: 0; margin-left: 0;
}
#menu_fullscreen .menu1 > li {
  width: 400px;
  display: block;
  position: relative;
}
#menu_fullscreen .menu1 > li > a {
  display: block;
  position: relative;
  color: #ababab;
  font: 700 38px/38px 'Poppins', sans-serif;
  padding: 20px 0 20px 45px;
  text-transform: uppercase;
  transition: 0.3s;
}
/* Active/hover: salmon bar left + shift right */
#menu_fullscreen .menu1 > li > a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translate(0, -50%);
  width: 0; height: 29px;
  background-color: #e9bd26;
  transition: 0.3s;
}
#menu_fullscreen .menu1 > li:hover > a,
#menu_fullscreen .menu1 > li > a.active,
#menu_fullscreen .menu1 > li > a:hover {
  color: #ffffff;
  padding-left: 95px;
  width: 100%;
}
#menu_fullscreen .menu1 > li:hover > a::before,
#menu_fullscreen .menu1 > li > a.active::before,
#menu_fullscreen .menu1 > li > a:hover::before {
  width: 29px;
}

/* .menu2 -- sub-menu (Oferta dropdown) */
#menu_fullscreen .menu2 {
  display: none;
  position: absolute;
  z-index: 2;
  list-style: none;
  padding: 0;
}
#menu_fullscreen .menu2.active {
  display: block;
}
#menu_fullscreen .menu2_1 {
  top: 16px; left: 70%;
}
#menu_fullscreen .menu2_2 {
  bottom: 16px; left: 100%;
}
#menu_fullscreen .menu2::before {
  content: "";
  position: absolute;
  left: 0; width: 29px; height: 25px;
  background: none;
  transform: rotate(-90deg);
}
#menu_fullscreen .menu2_1::before { top: 12px; }
#menu_fullscreen .menu2_2::before { bottom: 12px; left: 15px; }
#menu_fullscreen .menu2 li { width: 390px; }
#menu_fullscreen .menu2 a {
  display: block;
  position: relative;
  color: #ababab;
  font: 600 22px/22px 'Poppins', sans-serif;
  padding: 12px 0 12px 60px;
  transition: 0.3s;
}
#menu_fullscreen .menu2_2 a { padding-left: 75px; }
#menu_fullscreen .menu2 a.active,
#menu_fullscreen .menu2 a:hover {
  color: #ffffff;
}

/* Social icons */
#menu_fullscreen .social {
  display: flex;
  padding-left: 45px;
}
#menu_fullscreen .social a:first-of-type { margin-right: 30px; }
#menu_fullscreen .social svg {
  width: 35px; height: 35px;
}
#menu_fullscreen .social svg .cls-1 {
  fill: #ababab;
  transition: 0.3s;
}
#menu_fullscreen .social a:hover:first-of-type .cls-1 { fill: #3c5c9c; }
#menu_fullscreen .social a:hover:last-of-type .cls-1  { fill: #ef2928; }

/* Bottom-right: Kontakt info */
#menu_fullscreen .kontakt,
#menu_fullscreen .strefa_klienta {
  position: absolute;
  bottom: 70px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#menu_fullscreen .kontakt { right: 90px; }
#menu_fullscreen .strefa_klienta { left: 90px; }
#menu_fullscreen .kontakt .naglowek {
  font: 700 34px/34px 'Poppins', sans-serif;
  display: block;
  margin-bottom: 20px;
}
#menu_fullscreen .kontakt .naroznik_1 {
  position: absolute;
  left: 300px; top: -35px;
  width: 52px; height: 52px;
  background-color: #e9bd26;
}
#menu_fullscreen .kontakt div {
  display: flex;
  align-items: center;
}
#menu_fullscreen .kontakt a {
  display: flex;
  align-items: center;
  color: #ffffff;
}
#menu_fullscreen .kontakt a span {
  font: 400 18px/18px 'Poppins', sans-serif;
  margin-left: 10px;
}
#menu_fullscreen .kontakt svg .cls-1 { fill: #ffffff; }
#menu_fullscreen .kontakt a:first-of-type { margin-right: 30px; }

/* Bottom-left: Strefa klienta */
#menu_fullscreen .strefa_klienta .tytul {
  display: block;
  font: 700 24px/24px 'Poppins', sans-serif;
  margin-bottom: 15px;
  color: #ffffff;
}
#menu_fullscreen .strefa_klienta a,
#menu_fullscreen .strefa_klienta div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
#menu_fullscreen .strefa_klienta a {
  font: 700 15px/15px 'Poppins', sans-serif;
  text-transform: uppercase;
  height: 30px;
  transition: 0.3s;
  color: #ffffff;
}
#menu_fullscreen .strefa_klienta a svg {
  margin: 0 12px 0 0;
  width: 30px; height: 30px;
}
#menu_fullscreen .strefa_klienta .cls-1 {
  fill: #de8480;
  transition: 0.3s;
}
#menu_fullscreen .strefa_klienta a:hover .cls-1 { fill: #85c7a5; }
#menu_fullscreen .strefa_klienta a:hover { color: #85c7a5; }
#menu_fullscreen .strefa_klienta .strefa_poczta { margin-right: 30px; }

/* Close X button in fullscreen menu */
.menu_fullscreen_close {
  position: absolute;
  top: 30px;
  right: 50px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 7;
  margin-left: 40px;
}
.menu_fullscreen_close .line {
  display: block;
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 6px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: 0.3s;
}
.menu_fullscreen_close .line_1 {
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu_fullscreen_close .line_2 {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.menu_fullscreen_close:hover .line { background-color: #e9bd26; }

/* ---- WP nav_menu class compatibility ---- */
/* WP wraps menu items with .menu-item class */
#menu_deskop .menu-item { list-style: none; }
#menu_deskop .menu-item a.active { color: #e9bd26cf; }

/* ============================================================
   HERO - HOMEPAGE FULLSCREEN SLIDER
   * ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-shape {
  position: absolute;
  opacity: 0.15;
  animation: floatShape 6s ease-in-out infinite;
}
.hero-shape:nth-child(1) { top: 5%; left: 2%; animation-delay: 0s; }
.hero-shape:nth-child(2) { top: 15%; left: 15%; animation-delay: 0.5s; }
.hero-shape:nth-child(3) { top: 30%; right: 5%; animation-delay: 1s; }
.hero-shape:nth-child(4) { bottom: 20%; left: 8%; animation-delay: 1.5s; }
.hero-shape:nth-child(5) { bottom: 10%; right: 12%; animation-delay: 2s; }
.hero-shape:nth-child(6) { top: 50%; left: 40%; animation-delay: 2.5s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(5deg); }
  66% { transform: translateY(8px) rotate(-3deg); }
}

/* Geometric SVG */
.shape-triangle {
  width: 0; height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--accent-cyan);
}
.shape-triangle-outline {
  width: 60px; height: 52px;
  border: 2px solid var(--text-white);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: transparent;
}
.shape-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent-pink);
}
.shape-halfcircle {
  width: 80px; height: 40px;
  background: var(--accent-green);
  border-radius: 80px 80px 0 0;
}
.shape-diamond {
  width: 50px; height: 50px;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
}

/* Neon glow shape - the big decorative E */
.hero-glow-shape {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: min(600px, 45vw);
  z-index: 2;
  opacity: 0.7;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 20px rgba(96,200,212,0.3)); }
  50% { opacity: 0.9; filter: drop-shadow(0 0 40px rgba(96,200,212,0.6)); }
}

.hero-content {
  position: relative;
  z-index: 5;
  padding: 0 40px;
  max-width: 700px;
  padding-top: var(--nav-height);
  margin-left: 5%;
}
.hero-main-title {
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 800;
  line-height: 1.0;
  color: var(--text-white);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease both;
}
.hero-main-title span.block { display: block; }

.hero-scroll-down {
  position: absolute;
  bottom: 40px;
  left: 5%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1.2s ease 0.5s both;
}
.hero-scroll-icon {
  width: 36px; height: 36px;
  border: 2px solid var(--text-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: bounceDown 1.5s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Vertical rotating text on hero */
.hero-vertical-services {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
  writing-mode: vertical-rl;
}
.hero-vertical-services span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 6px;
  opacity: 0.5;
  transition: opacity var(--transition), color var(--transition);
}
.hero-vertical-services span:hover { opacity: 1; color: var(--accent-cyan); }

/* ============================================================
   SERVICES PAGE
   * ============================================================ */
#oferta {
  position: relative;
  width:100%;
}
#oferta .lista_ofert,
#oferta.nasza_oferta {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  overflow: hidden;
  width:100%;
}

#oferta .lista_ofert {
  background-color:#fff;
}

/* Each service tile */
#oferta .box_oferta {
  width: 33.32%;
  padding: 75px 120px 130px 65px;
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

/* Alternating bg: odd = white, even = #f5f5f5 */
#oferta .box_oferta:nth-child(2n+1) {
  background-color: #ffffff;
}
#oferta .box_oferta:nth-child(2n+2) {
  background-color: #f5f5f5;
}

/* Cyan circle that slides in from bottom-right on hover */
#oferta .box_oferta::before {
  content: "";
  bottom: 0;
  right: 0;
  transform: translate(100%, 100%);
  position: absolute;
  width: 134px;
  height: 134px;
  background-color: #ef2928;
  transition: 0.3s;
}
#oferta .box_oferta:hover::before {
  transform: translate(50%, 50%);
}

/* Span base */
#oferta .box_oferta span {
  display: block;
  position: relative;
  color: #1b1b1b;
}

/* Title (service name) */
#oferta .box_oferta .tytul {
  font: 700 38px/52px 'Poppins', sans-serif;
  padding: 100px 0 0 90px;
  margin-bottom: 70px;
  color: #000;
  z-index: 2;
}

/* Icon circle behind the icon -- pseudo element on ::before */
#oferta .box_oferta .tytul::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 34px;
  width: 67px;
  height: 70px;
  z-index: 1;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Per-box SVG icons */
#oferta .box1_oferta .tytul::before {
  background-image: url("assets/icon_web_design2.svg");
}
#oferta .box2_oferta .tytul::before {
  background-image: url("assets/icon_logo.svg");
}
#oferta .box3_oferta .tytul::before {
  background-image: url("assets/icon_ecommerce.svg");
}
#oferta .box4_oferta .tytul::before {
  background-image: url("assets/icon_offer.svg");
}
/* Custom icon override: if data-icon is set, JS will inject CSS var */

#oferta .box_oferta .tytul::after {
  content: "";
  position: absolute;
  left: 40px;
  top: 40px;
  width: 134px;
  height: 134px;
  /*border-radius: 100%;*/
  background-color: #f5f5f5;
  z-index: -1;
  transition: 0.3s;
}
/* Even-numbered tiles have white ::after (since bg is already #f5f5f5) */
#oferta .box_oferta:nth-child(2n+1) .tytul::after,
#oferta .box_oferta:nth-child(2n+2) .tytul::after {
  background-color: #ffffff;
}
/* On hover, circle becomes warm peach */
#oferta .box_oferta:hover .tytul::after {
  left: 0;
  top: 0;
  background-color: #e9bd26;
}

/* "Sprawd? ofert?" link text */
#oferta .box_oferta .dalej {
  font: 700 15px/15px 'Poppins', sans-serif;
  text-transform: uppercase;
  padding: 0 0 0 90px;
  position: relative;
}
/* Arrow on ::before -- slides right on hover */
#oferta .box_oferta .dalej::before,
#oferta .box_oferta .tytul::after {
  content: "";
  position: absolute;
  transition: 0.3s;
}
#oferta .box_oferta .dalej::before {
  top: 50%;
  right: 155px;
  transform: translate(0, -50%);
  width: 16px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 13'%3E%3Cpath d='M9.5 0L16 6.5 9.5 13M0 6.5h16' stroke='%231b1b1b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}
#oferta .box_oferta:hover .dalej::before {
  right: 0;
}

/* ============================================================
   PORTFOLIO SLIDER (HOMEPAGE)
   * ============================================================ */
.portfolio-section {
  background: var(--bg-darker);
  padding: 0;
  overflow: hidden;
}
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 5% 40px;
}
.portfolio-header h2 { color: var(--text-white); }
.portfolio-slider-wrap {
  position: relative;
  overflow: hidden;
}
.portfolio-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 70vh;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-slide-img {
  width: 100%; height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-slide:hover .portfolio-slide-img { transform: scale(1.03); }
.portfolio-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
  z-index: 2;
}
.portfolio-slide-content {
  position: absolute;
  bottom: 60px;
  left: 5%;
  z-index: 3;
  color: var(--text-white);
}
.portfolio-slide-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.portfolio-slide-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.portfolio-slide-tag::after { content: ' /'; }
.portfolio-slide-tag:last-child::after { content: ''; }
.portfolio-slide-title {
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
}
.portfolio-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--text-white);
  color: var(--text-white);
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition);
}
.portfolio-slide-btn:hover {
  background: var(--text-white);
  color: var(--text-dark);
}

/* Slide counter top-right */
.portfolio-slide-label {
  position: absolute;
  top: 40px;
  right: 5%;
  z-index: 4;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
  text-align: right;
}
.portfolio-slide-label .label-title {
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}
/* Slide dots */
.portfolio-dots {
  position: absolute;
  bottom: 30px;
  right: 5%;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.portfolio-dot {
  width: 40px; height: 2px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--transition);
}
.portfolio-dot.active { background: var(--text-white); }

/* ============================================================
   PORTFOLIO PAGE (REALIZACJE)
   * ============================================================ */
#content_podstrony{
  background-color: #fff;
}
/* Outer wrapper */
#content_podstrony.content_lista_realizacji {
  background: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 80px; /* below fixed nav */
}

/* Header row: h1 left, filters right */
.content_lista_realizacji .container_2 {
  width: 100%;
  max-width: 1600px;
  padding: 60px 100px 40px;
}
.content_lista_realizacji .cms {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}
.content_lista_realizacji h1 {
  font: 700 90px/110px 'Poppins', sans-serif;
  color: #1b1b1b;
  margin-right: 80px;
  flex-shrink: 0;
}

/* ---- Desktop filter bar ---- */
.content_lista_realizacji .filtr_realizacji {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 40px;
}
.content_lista_realizacji .filtr_realizacji > span {
  display: inline-block;
  color: #1b1b1b;
  font: 400 15px/24px 'Poppins', sans-serif;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.content_lista_realizacji .filtr_realizacji .button,
.filtr_realizacji_mobile_2 {
  border: 2px solid #fbdcb6;
  cursor: pointer;
  transition: 0.3s;
}
.content_lista_realizacji .filtr_realizacji .button {
  display: inline-block;
  color: #1b1b1b;
  font: 700 15px/15px 'Poppins', sans-serif;
  margin: 0 0 20px 5px;
  padding: 20px 30px;
  text-transform: uppercase;
}
.content_lista_realizacji .filtr_realizacji .button.active,
.content_lista_realizacji .filtr_realizacji .button:hover {
  background-color: #e9bd26;
  color: #1b1b1b;
}

/* ---- Mobile filter dropdown ---- */
#filtr_realizacji_mobile {
  position: relative;
  width: 235px;
  height: 55px;
  flex: 0 0 auto;
  display: none;
  margin: 0 0 45px;
}
.filtr_realizacji_mobile_2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  font: 700 14px/14px 'Poppins', sans-serif;
  color: #333;
  background: #fff;
  z-index: 2;
  position: absolute;
}
#filtr_realizacji_mobile .filtr_realizacji_mobile_2.open,
#filtr_realizacji_mobile .filtr_realizacji_mobile_2:hover {
  border: 2px solid #fd9c94;
}
.filtr_realizacji_mobile_2 > div {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}
.filtr_realizacji_mobile_2 > div span { flex: 1; }
.filtr_realizacji_mobile_2 div .ico_ptaszek_select {
  margin: 0 0 0 30px;
  width: 18px;
  height: 12px;
  position: absolute;
  right: 20px;
  transition: 0.3s;
}
.filtr_realizacji_mobile_2.open div .ico_ptaszek_select {
  transform: rotate(180deg);
}
#filtr_realizacji_mobile .filtr_realizacji_mobile_2 ul {
  margin: 0 0 10px;
  display: none;
  width: 100%;
  list-style: none;
  padding: 0;
}
#filtr_realizacji_mobile .filtr_realizacji_mobile_2.open ul {
  display: block;
}
#filtr_realizacji_mobile ul li { margin: 0; padding: 0; }
#filtr_realizacji_mobile ul li a {
  font: 700 13px/13px 'Poppins', sans-serif;
  color: #1b1b1b;
  text-transform: uppercase;
  display: block;
  padding: 10px 20px;
  cursor: pointer;
}
#filtr_realizacji_mobile ul li a:hover,
.filtr_realizacji_mobile_2.open ul li a:hover {
  background-color: #fd9c94;
}

/* ============================================================
   PORTFOLIO GRID -- .zbior_realizacji
   * ============================================================ */
.content_lista_realizacji .container_stoprocent {
  width: 100%;
  max-width: 100%;
}

.zbior_realizacji {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}

.zbior_realizacji a {
  width: 25%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  overflow: hidden;
  /* Square tiles: height = width */
  aspect-ratio: 1 / 1;
}

.zbior_realizacji a img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: auto;
}

.zbior_realizacji a.logo-znak-graficzny img {
  position: relative;
  top: auto; left: auto;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  margin: auto;
}

.zbior_realizacji a:after,
.zbior_realizacji a:before {
  position: absolute;
  content: '';
  opacity: 0;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  z-index: 1;
}

.zbior_realizacji a:after {
  right: -4px;
  bottom: -4px;
  width: 0;
  height: 0;
  border: 4px solid #fff;
}

.zbior_realizacji a:before {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #ef29284f;
}

.zbior_realizacji a:hover:before,
.zbior_realizacji a:hover:after {
  opacity: 1;
}

.zbior_realizacji a:hover:after {
  width: 68px;
  height: 68px;
}

.zbior_realizacji a .hover_realizacja {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 50px 60px;
  opacity: 0;
  z-index: 2;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.zbior_realizacji a:hover .hover_realizacja {
  opacity: 1;
}

.zbior_realizacji a .hover_realizacja .row_1 {
  display: block;
  color: #fff;
  font: 400 15px/28px 'Poppins', sans-serif;
  text-transform: uppercase;
  height: 56px;
  overflow: hidden;
  width: 100%;
}

.zbior_realizacji a .hover_realizacja .row_2 {
  display: block;
  color: #fff;
  font: 600 42px/46px 'Poppins', sans-serif;
  height: 138px;
  overflow: hidden;
  width: 100%;
}

.zbior_realizacji a.logo-znak-graficzny .hover_realizacja .row_2 {
  display: none !important;
}

/* .btn inside hover panel -- inherits global .btn, just pinned to bottom */
.zbior_realizacji a .hover_realizacja .btn {
  align-self: flex-end;
  background: #000;
}

#content_podstrony.oferta_podstrona .zbior_realizacji {
  width: 100%;
}
#content_podstrony.oferta_realizacja .zbior_realizacji {
  width: 100%;
}

/* AJAX spinner */
.portfolio-spinner {
  width: 40px; height: 40px;
  border: 3px solid #f5f5f5;
  border-top-color: #fd9c94;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* AJAX hide/show animation */
.zbior_realizacji a.portfolio-hidden {
  display: none;
}
.zbior_realizacji a.portfolio-animating {
  animation: fadeInUp 0.4s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PAGE HERO BANNER (INNER PAGES)
   * ============================================================ */
.page-hero {
  background: var(--bg-darker);
  padding: 0 5% 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
}
.page-hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.page-hero .page-hero-icon {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  width: min(300px, 30%);
}
.page-hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  color: var(--text-white);
  text-align: center;
}
.page-hero-back {
  position: absolute;
  top: 100px;
  left: 5%;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.page-hero-back:hover { color: var(--accent-cyan); }

/* ============================================================
   OFERTA PAGE HERO
   * ============================================================ */
#content_podstrony.oferta {
  padding-top: 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* The dark hero banner containing h1 and shape figures */
#content_podstrony.oferta .container_stoprocent,
#content_podstrony.oferta_podstrona .container_stoprocent {
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #1b1b1b;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Hero h1 */
#content_podstrony.oferta .container_stoprocent h1,
#content_podstrony.oferta_podstrona .container_stoprocent h1 {
  color: #ffffff;
  margin: -50px 150px 0;
  z-index: 2;
  text-align: center;
  font: 700 90px/110px 'Poppins', sans-serif;
}

/* All shape images are absolutely positioned */
#content_podstrony.oferta .container_stoprocent .figura,
#content_podstrony.oferta_podstrona .container_stoprocent .figura {
  position: absolute;
}
/* Small triangle top-left */
#content_podstrony.oferta .container_stoprocent .figura_4 {
  left: 250px;
  top: 80px;
}
/* Large dark diagonal shape */
#content_podstrony.oferta .container_stoprocent .figura_14 {
  left: 400px;
  bottom: -20px;
}
/* Right shape */
#content_podstrony.oferta .container_stoprocent .figura_15 {
  right: 490px;
  top: 0;
}
/* Second right shape */
#content_podstrony.oferta .container_stoprocent .figura_16 {
  right: 300px;
  bottom: -20px;
  width: 196px;
  height: auto;
}
/* Far-left glowing cyan shape */
#content_podstrony.oferta .container_stoprocent .figura_17,
#content_podstrony.oferta_podstrona .container_stoprocent .figura_17 {
  left: -150px;
  top: -20px;
  width: 420px;
  height: auto;
}
/* Far-right glowing pink/coral shape */
#content_podstrony.oferta .container_stoprocent .figura_18,
#content_podstrony.oferta_podstrona .container_stoprocent .figura_18 {
  right: -30px;
  top: -110px;
  width: 440px;
  height: auto;
}

/* Mouse parallax: figures move subtly with cursor */
#content_podstrony.oferta .container_stoprocent .figura {
  transition: transform 0.1s ease-out;
}

.open-quote-panel{
  cursor: pointer;
}
.open-quote-panel span{
  color:#000;
}

/* ============================================================
   SERVICE / PORTFOLIO SINGLE PAGE -- CONTENT AREA
   * ============================================================ */
#tresc_oferty {
  position: relative;
  justify-content: center;
  width: 100%;
}

#tresc_realizacji {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}
#tresc_oferty {
  padding: 90px 0 0px;
  background-color: #ffffff;
}

/* Pink dot corner decoration */
#tresc_oferty > .naroznik {
  position: absolute;
  top: 0;
  left: 6%;
  width: 70px;
  height: 70px;
  background-color: #ef2928;
}

/* Left SVG watermark */
#tresc_oferty > .icona {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
  width: 199px;
  height: 174px;
}
#tresc_oferty > .icona .cls-1 {
  fill: #f1f1f1;
}

/* Inner container */
#tresc_oferty .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1;
  width: 1300px;
  min-width: 280px;
}

/* col_1 main content */
#tresc_oferty .container .col_1 {
  width: 67.7%;
}

.col_1.cms.service, #tresc_realizacji, .col_2.cms.service, #tresc_oferty, .about-intro{
  color:#000;
}

.col_1.cms.service ul, #tresc_realizacji ul, .col_2.cms.service ul, #tresc_oferty ul, .about-intro ul{
  list-style:inside;
  margin-bottom:30px;
}

/* col_2 sidebar */
#tresc_oferty .container .col_2 {
  width: 320px;
}

/* Mobile quote button hidden on desktop */
#tresc_oferty .mobile_pion {
  display: none;
}

/* h2 inside col_1 */
#tresc_oferty .col_1 h2,
.cms p {
  margin-bottom: 30px;
}

/* Green corner on h3 */
#tresc_oferty .col_1 h3 {
  margin-bottom: 0;
  position: relative;
}
#tresc_oferty .col_1 h3::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 45px;
  height: 45px;
  border-radius: 0 0 100% 0;
  background-color: #87d9e0;
}

/* Features list: .oferta div inside .cms */
.cms div.oferta {
  display: flex;
  flex-wrap: wrap;
  padding: 0 0 50px;
  border-bottom: 3px solid #f5f5f5;
  margin: 0 0 50px;
}
.cms div.oferta span {
  padding: 15px 0;
  width: 50%;
  font: 400 17px/17px 'Poppins', sans-serif;
  color: #1b1b1b;
}

/* Tags section */
#tresc_oferty .zbior_tagi {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
#tresc_oferty .zbior_tagi .tag {
  margin: 10px 10px 10px 0;
  color: #a3a3a3;
  font: 400 17px/17px 'Poppins', sans-serif;
  text-transform: uppercase;
}

/* "Zapytaj o wycen?" SVG-border button */
#tresc_oferty .btn_duzy {
  height: 142px;
  width: 100%;
  position: relative;
  display: inline-block;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
#tresc_oferty .btn_duzy svg,
#tresc_oferty .btn_duzy svg rect {
  width: 320px;
  height: 142px;
}
#tresc_oferty .col_2 .btn_duzy svg {
  position: absolute;
  left: 0;
  top: 0;
}
/* SVG border animation: draws green stroke on hover */
#tresc_oferty .btn_duzy svg rect {
  fill: none;
  stroke: #1b1b1b;
  stroke-width: 6;
  stroke-dasharray: 604, 0;
  stroke-dashoffset: 0;
  transition: 0.5s;
}
#tresc_oferty .btn_duzy:hover svg rect {
  stroke: #000;
  stroke-dasharray: 320, 604;
  stroke-dashoffset: 462;
}
/* Button label text */
#tresc_oferty .btn_duzy span {
  color: #1b1b1b;
  font: 700 34px/46px 'Poppins', sans-serif;
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translate(0, -50%);
  padding-right: 90px;
}
/* Animated green arrow on button */
#tresc_oferty .btn_duzy span::before {
  content: "";
  position: absolute;
  right: 30px;
  top: 50%;
  width: 40px;
  height: 35px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 35'%3E%3Cpath d='M22 0L40 17.5 22 35M0 17.5h40' stroke='%231e78ff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: 0.5s;
  animation: bounce_2 4s ease-in-out infinite;
}
@keyframes bounce_2 {
  0%, 100% { transform: translate(0, -50%); }
  50% { transform: translate(8px, -50%); }
}

/* ============================================================
   ZBIOR_REALIZACJI -- now defined in PORTFOLIO PAGE section above
   * ============================================================ */
/* (service page strip is same .zbior_realizacji - styles apply globally) */
h5.przypisy {
  margin: 50px 0 30px;
}

/* ============================================================
   CTA BOXES (#boxy_footer)
   * ============================================================ */

/* Shared SVG-border .btn used in footer boxes */
#boxy_footer .btn, .kontakt_box .kontakt .btn {
  position: relative;
  display: inline-block;
  width: 187px;
  height: 50px;
  z-index: 1;
  background:none;
  border: none;
}
#boxy_footer .btn svg,
#boxy_footer .btn svg rect {
  position: absolute;
  left: 0; top: 0;
  width: 187px;
  height: 50px;
  transition: 0.5s;
}
#boxy_footer .btn svg rect {
  fill: none;
  stroke: #1b1b1b;
  stroke-width: 4;
  stroke-dasharray: 348, 0;
  stroke-dashoffset: 0;
  transition: 0.5s;
}
#boxy_footer .btn:hover svg rect {
  stroke: #000;
  stroke-dasharray: 187, 287;
  stroke-dashoffset: 237;
}
#boxy_footer .btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translate(0, -50%);
  height: 13px;
  width: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 13'%3E%3Cpath d='M9.5 0L16 6.5 9.5 13M0 6.5h16' stroke='%231b1b1b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: 0.5s;
}
#boxy_footer .btn:hover::before {
  width: 16px;
}
#boxy_footer .btn span {
  display: block;
  position: absolute;
  text-transform: uppercase;
  font: 700 15px/15px 'Poppins', sans-serif;
  color: #1b1b1b;
  right: 50%;
  transform: translate(50%, 0);
  bottom: 17px;
  transition: 0.5s;
}
#boxy_footer .btn:hover span {
  right: 30px;
  transform: none;
}

/* The two boxes container */
#boxy_footer {
  display: flex;
  width: 100%;
  background-color:#fff;
}

#boxy_footer .box_footer {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    padding: 140px 120px 155px;
    padding-left: 120px;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    /*align-items: center;*/
}

/* LEFT box: grey background, "Zobacz realizacje" */
#boxy_footer .box_left {
  padding-left: 200px;
  background-color: #f5f5f5;
}
/* Peach dot decoration top-left */
#boxy_footer .box_left .figura {
  position: absolute;
  top: 0;
  left: 125px;
  width: 42px;
  height: 42px;
  background-color: #ef2928;
}
/* Large decorative SVG watermark bottom */
#boxy_footer .box_left .figura1_footer {
  position: absolute;
  bottom: 25px;
  left: 37%;
  width: 341px;
  height: 332px;
}
/* Left box: btn + animated arrow side by side */
#boxy_footer .box_left > div {
  display: flex;
  align-items: center;
  z-index: 2;
}
#boxy_footer .box_left .btn {
  margin-right: 60px;
}
/* Animated bouncing arrow image */
#boxy_footer .box_left > div img.arrow {
  animation: bounce_3 5s ease-in-out infinite;
}

/* RIGHT box: pink/salmon background, "Zapytaj o wycen?" */
#boxy_footer .box_right {
  background-color: #e9bd2661;
}
/* Large decorative SVG watermark */
#boxy_footer .box_right img.figura2_footer {
  position: absolute;
  top: 70px;
  left: 47%;
  width: 346px;
  height: 356px;
  z-index: 0;
}
/* Text in both boxes */
#boxy_footer .box_footer span {
  display: block;
  color: #1b1b1b;
  z-index: 2;
}
#boxy_footer .box_footer .text1 {
  font: 700 38px/52px 'Poppins', sans-serif;
  margin-bottom: 35px;
}
#boxy_footer .box_footer .text2 {
  font: 400 16px/20px 'Poppins', sans-serif;
  margin: 0 110px 30px 0;
}
/* text3: large title on the right box with cyan corner decoration */
#boxy_footer .box_footer .text3 {
  font: 700 58px/78px 'Poppins', sans-serif;
  margin-bottom: 45px;
  position: relative;
}
#boxy_footer .box_footer .text3::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 0;
  width: 76px;
  height: 76px;
  background-color: #87d9e0;
  border-radius: 0 0 0 100%;
}

/* bounce_3: arrow bounces left (pointing left) */
@keyframes bounce_3 {
  0%, 16%, 32%, 48%, 100% { transform: translateX(0); }
  8%  { transform: translateX(-40px); }
  24% { transform: translateX(-60px); }
  40% { transform: translateX(-80px); }
}

/* Legacy .cta-boxes (keep for any other uses) */
.cta-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cta-box {
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}
.cta-box-left { background: var(--bg-light); }
.cta-box-right { background: var(--bg-light); border-left: 1px solid #ddd; }
.cta-box-title { font-size: clamp(24px, 3.5vw, 40px); font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.cta-box-sub { font-size: 15px; color: var(--text-light-muted); margin-bottom: 24px; }
.cta-box-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 12px 24px;
  border: 1.5px solid var(--text-dark);
  transition: all var(--transition);
}
.cta-box-link:hover { background: var(--text-dark); color: var(--text-white); }
.cta-box-decoration {
  position: absolute;
  right: 40px; bottom: 40px;
  opacity: 0.08;
  font-size: 120px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   SINGLE PORTFOLIO
   * ============================================================ */

#content_podstrony.oferta_realizacja {
  padding-top: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* ---- Hero: full-bleed bg-image with darkening overlay + h1 ---- */
#content_podstrony.oferta_realizacja .container_stoprocent {
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* Darkening overlay on the bg photo */
#content_podstrony.oferta_realizacja .container_stoprocent::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}
#content_podstrony.oferta_realizacja .container_stoprocent h1 {
  color: #ffffff;
  margin-bottom: 0;
  z-index: 2;
  font: 700 90px/110px 'Poppins', sans-serif;
  text-align: center;
}

/* ---- Navigation bar at hero bottom ---- */
.nawigacja_realizacja {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  padding: 0 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
#content_podstrony.oferta_realizacja .nawigacja_realizacja a {
  color: #ffffff;
  font: 700 15px/15px 'Poppins', sans-serif;
  text-transform: uppercase;
  position: relative;
}
/* Center realizacje link with animated grid icon */
.nawigacja_realizacja .realizacje {
  transition: 0.3s;
  display: flex;
  align-items: center;
}
.nawigacja_realizacja .realizacje span {
  opacity: 0;
  transition: 0.3s;
  margin-right: 10px;
}
.nawigacja_realizacja .realizacje:hover span {
  opacity: 1;
}
.nawigacja_realizacja .realizacje:hover .ico_kostka {
  transform: rotate(180deg);
}
.nawigacja_realizacja .ico_kostka {
  width: 22px; height: 22px;
  fill: #ffffff;
  transition: 0.3s;
}
.nawigacja_realizacja .ico_kostka .cls-1 { fill: #ffffff; }

/* Prev/Next links */
.nawigacja_realizacja .prev,
.nawigacja_realizacja .next {
  width: 250px;
  position: absolute;
}
.nawigacja_realizacja .prev { left: 45px; /*padding-left: 60px;*/ }
.nawigacja_realizacja .next { right: 45px; /*padding-right: 60px;*/ text-align: right; }

.nawigacja_realizacja .prev::before,
.nawigacja_realizacja .next::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px; height: 13px;
  /* TODO */
  background: none;
  transition: 0.3s;
}
.nawigacja_realizacja .prev::before {
  left: 10px;
  transform: translate(0, -50%) rotate(180deg);
}
.nawigacja_realizacja .next::before {
  right: 10px;
  transform: translate(0, -50%);
}
.nawigacja_realizacja .prev:hover::before { left: 0; }
.nawigacja_realizacja .next:hover::before { right: 0; }

/* ---- #tresc_realizacji: two-column main body ---- */
#tresc_realizacji {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 90px 0 0;
  background: #fff;
}
/* Green corner dot */
#tresc_realizacji > .naroznik {
  position: absolute;
  top: 0; left: 6%;
  width: 70px; height: 70px;
  background-color: #ef2928;
}
/* Inner container: two columns */
#tresc_realizacji .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 0 50px;
  width: 1300px;
  min-width: 280px;
  z-index: 1;
}
#tresc_realizacji .container .col_1 { width: 67.7%; }
#tresc_realizacji .container .col_2 { width: 320px; }

/* Project title */
#tresc_realizacji .col_1 h3 {
  font: 700 36px/46px 'Poppins', sans-serif;
  color: #1b1b1b;
  margin-bottom: 30px;
}
/* Main cms body text */
#tresc_realizacji .container .cms p {
  text-align: left;
  font: 400 17px/28px 'Poppins', sans-serif;
  color: #1b1b1b;
  margin-bottom: 24px;
}
/* Main large featured image */
#tresc_realizacji .container .col_1 .foto_1 {
  margin: 60px 0;
  width: 100%;
  height: auto;
  max-width: 880px;
}
#tresc_realizacji .container .col_1 .foto_1 img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---- Sidebar (col_2) ---- */
/* Quote btn (btn_duzy) */
#tresc_realizacji .btn_duzy,
#zdjecia_realizacja .btn_duzy {
  height: 80px;
  width: 600px;
  position: relative;
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  cursor: pointer;
  background: none;
  border: none;
}
#tresc_realizacji .col_2 .btn_duzy svg,
#zdjecia_realizacja .btn_duzy svg {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
}
#tresc_realizacji .btn_duzy svg rect,
#zdjecia_realizacja .btn_duzy svg rect {
  width: 100%; height: 100%;
  fill: none;
  stroke: #1b1b1b;
  stroke-width: 6;
  stroke-dasharray: 431, 0;
  stroke-dashoffset: 0;
  transition: 0.5s;
}
#tresc_realizacji .btn_duzy:hover svg rect,
#zdjecia_realizacja .btn_duzy:hover svg rect {
  stroke: #000;
  stroke-dasharray: 235, 431;
  stroke-dashoffset: 333;
}
/* btn_duzy shared span */
#tresc_oferty .btn_duzy span,
#tresc_realizacji .btn_duzy span,
#zdjecia_realizacja .btn_duzy span {
  color: #1b1b1b;
  font: 700 34px/46px 'Poppins', sans-serif;
  position: absolute;
  left: 35px; top: 50%;
  transform: translate(0, -50%);
  padding-right: 90px;
}
#tresc_realizacji .btn_duzy span,
#zdjecia_realizacja .btn_duzy span {
  font: 700 22px/29px 'Poppins', sans-serif;
  left: 25px;
}
/* Bouncing arrow */
#tresc_oferty .btn_duzy span::before,
#tresc_realizacji .btn_duzy span::before,
#zdjecia_realizacja .btn_duzy span::before {
  content: "";
  position: absolute;
  right: 30px; top: 50%;
  width: 40px; height: 35px;
  background: none;
  transition: 0.5s;
  animation: bounce_2 4s ease-in-out infinite;
}
#tresc_realizacji .btn_duzy span::before,
#zdjecia_realizacja .btn_duzy span::before {
  right: 40px;
  width: 29px; height: 25px;
  background-size: 29px 25px;
  animation: bounce_btn-realizacje 4s ease-in-out infinite;
}
@keyframes bounce_btn-realizacje {
  0%, 16%, 32%, 48%, 100% { transform: translate(0, -50%) rotate(180deg); }
  8%  { transform: translate(40px, -50%) rotate(180deg); }
  24% { transform: translate(30px, -50%) rotate(180deg); }
  40% { transform: translate(20px, -50%) rotate(180deg); }
}

/* Client logo */
#tresc_realizacji .container .col_2 .logo_realizacja {
  margin-bottom: 60px;
  max-width: 100%;
  width: auto; height: auto;
}
#tresc_realizacji .container .col_2 .logo_realizacja img {
  max-width: 100%; height: auto;
}
/* Tags heading */
#tresc_realizacji .container .col_2 h5 {
  font: 700 17px/17px 'Poppins', sans-serif;
  color: #1b1b1b;
  margin-bottom: 10px;
}
/* Category/tag pills */
#tresc_realizacji .col_2 .zbior_kategorii,
#zdjecia_realizacja .mobile_pion .zbior_kategorii {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
#tresc_realizacji .col_2 .zbior_kategorii .kategoria,
#zdjecia_realizacja .mobile_pion .zbior_kategorii .kategoria {
  margin: 10px 10px 10px 0;
  color: #a3a3a3;
  font: 400 17px/17px 'Poppins', sans-serif;
  text-transform: uppercase;
}
/* Live link button */
#tresc_realizacji .col_2 a,
#tresc_realizacji .mobile_pion a {
  color: #ffffff;
  font: 700 15px/15px 'Poppins', sans-serif;
  text-transform: uppercase;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding: 20px 30px;
  background: #1b1b1b;
}
.kolko {
  width: 68px; height: 68px;
  border-radius: 100%;
  background-color: #e9bd26;
  position: relative;
  flex-shrink: 0;
}
.kolko svg {
  position: absolute;
  top: 50%; left: -10px;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  transition: 0.3s;
}
#tresc_realizacji .col_2 a:hover .kolko svg,
#tresc_realizacji .mobile_pion a:hover .kolko svg {
  left: 50%;
}
.kolko svg .cls-1 { fill: #1b1b1b; transition: 0.3s; }
#tresc_realizacji .col_2 a:hover .kolko svg .cls-1 { fill: #ffffff; }
.arrow {
  position: absolute;
  right: 145px; top: 50%;
  transform: translate(0, -50%);
  transition: 0.3s;
  width: 16px; height: 13px;
}
#tresc_realizacji .col_2 a:hover .arrow,
#tresc_realizacji .mobile_pion a:hover .arrow {
  right: 95px;
}

/* Mobile sidebar */
#tresc_realizacji .container .mobile_pion,
#zdjecia_realizacja .mobile_pion {
  display: none;
}
#tresc_realizacji .container .mobile_pion hr,
#zdjecia_realizacja .mobile_pion hr {
  height: 3px; margin-top: 0;
}

/* ---- Parallax image strip ---- */
#parallax_realizacja {
  width: 100%;
  height: 400px;
  margin: 0 0 60px;
  background-size: cover;
  background-position: 50% 50%;
  background-attachment: fixed;
}

/* ---- Gallery section: #zdjecia_realizacja ---- */
#zdjecia_realizacja {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 50px;
}
#zdjecia_realizacja .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 1300px;
  min-width: 280px;
}
#zdjecia_realizacja .container img {
  margin-bottom: 60px;
  width: 100%; height: auto;
}
#zdjecia_realizacja .container img.kwadrat {
  width: 620px; height: 620px;
  object-fit: cover;
}
/* Large CTA btn in gallery section */
#zdjecia_realizacja .cms > .btn_duzy {
  width: 600px;
  height: 80px;
  display: block;
  margin: 0 auto;
}
#zdjecia_realizacja .cms > .btn_duzy svg rect {
  stroke-dasharray: 760, 0;
}
#zdjecia_realizacja .cms > .btn_duzy:hover svg rect {
  stroke-dasharray: 600, 760;
  stroke-dashoffset: 680;
}
#zdjecia_realizacja h3 { text-align: center; }
#zdjecia_realizacja .mobile_pion hr { height: 3px; margin: 30px 0; }

/* ============================================================
   CONTACT SECTION (FOOTER-ish) - DARK
   * ============================================================ */
.contact-dark-section {
  background: var(--bg-darker);
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}
.contact-dark-inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 80px;
  align-items: start;
}
.contact-divider {
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}
.contact-person-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; color: var(--text-white); margin-bottom: 40px; }
.contact-person-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  min-height:100px;
}
.contact-person-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-person-info { flex: 1; }
.contact-person-name { font-size: 22px; font-weight: 700; color: var(--text-white); margin-bottom: 4px; }
.contact-person-role { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-green); }
.contact-detail { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 15px; margin-top: 16px; }
.contact-detail a { color: var(--text-muted); transition: color var(--transition); }
.contact-detail a:hover { color: var(--text-white); }
.contact-online-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--text-white);
  color: var(--text-white);
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--transition);
  /*margin-left: 20px;*/
}
.contact-online-btn:hover { background: var(--text-white); color: var(--text-dark); }

.contact-address-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; color: var(--text-white); margin-bottom: 40px; }
.contact-company-name { font-size: 24px; font-weight: 700; color: var(--text-white); margin-bottom: 20px; }
.contact-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--text-white);
  color: var(--text-white);
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--transition);
  /*margin-left: 20px;*/
}
.contact-map-btn:hover { background: var(--text-white); color: var(--text-dark); }
.contact-address { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.contact-social { display: flex; gap: 12px; margin-top: 24px; }
.contact-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition);
}
.contact-social a:hover { border-color: var(--text-white); color: var(--text-white); }

/* ============================================================
   FOOTER
   * ============================================================ */
#site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-tagline {
  text-align: center;
  padding: 60px 5% 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-tagline p {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5%;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-size: 22px; font-weight: 800; color: var(--text-white); }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-copy a { color: var(--text-muted); transition: color var(--transition); }
.footer-copy a:hover { color: var(--text-white); }
.footer-cookies {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 5%;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-cookies strong { color: var(--text-white); }

/* ============================================================
   QUOTE MODAL / SIDE PANEL
   * ============================================================ */
.quote-panel {
  position: fixed;
  top: 0; right: -500px;
  width: min(460px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  padding: 48px 40px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.quote-panel.open { right: 0;

}
.quote-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  display: none;
}
.quote-panel-overlay.open { display: block; }
.quote-panel-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: none; border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.quote-panel-close:hover { border-color: var(--text-white); background: rgba(255,255,255,0.1); }
.quote-panel h3 {
  font-size: 26px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  padding-right: 40px;
}
.quote-panel-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.quote-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.form-field input, .form-field textarea {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000;
  padding: 12px 16px;
  font-size: 14px;
  transition: border-color var(--transition);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.4);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-privacy { font-size: 11px; color: var(--text-muted); line-height: 1.6; }
.form-privacy a { color: var(--accent-cyan); }
.form-submit-btn {
  background: transparent;
  border: 2px solid #000;
  color: #000;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.form-submit-btn:hover { background: var(--text-white); color: var(--text-dark); }
.form-required-note { font-size: 11px; color: var(--text-muted); margin-top: -8px; }

/* ============================================================
   ABOUT PAGE
   * ============================================================ */
.about-intro { background: var(--bg-white); padding: 80px 5%; }
.about-intro p { font-size: 17px; line-height: 1.9; color: #444; max-width: 860px; }
.about-stats {
  background: var(--bg-darker);
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  display:none;
}
.about-why{
  max-width: 1200px;
  margin: 0 auto;
}
.about-stat {
  padding: 60px 5%;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.about-stat:nth-child(2n) { border-right: none; }
.about-stat-num {
  font-size: clamp(60px, 8vw, 100px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 16px;
}
.about-stat-title { font-size: 20px; font-weight: 700; color: var(--text-white); margin-bottom: 12px; }
.about-stat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; max-width: 360px; }

.about-parallax {
  min-height: 400px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
}
.about-parallax-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: 0.3;
}
.about-why { background: var(--bg-darker); padding: 80px 5%; }
.about-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.about-why-item {}
.about-why-icon { margin-bottom: 20px; opacity: 0.7; }
.about-why-icon img { width: 48px; height: 48px; filter: invert(1); }
.about-why-title { font-size: 20px; font-weight: 700; color: var(--text-white); margin-bottom: 12px; }
.about-why-text { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ============================================================
   CLIENTS PAGE
   * ============================================================ */
.clients-section { background: var(--bg-white); padding: 80px 5%; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px;
}
.client-logo-item {
  aspect-ratio: 3/2;
  background: #f8f8f8;
  border: 1px solid #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background var(--transition);
}
.client-logo-item:hover { background: #eeeeee; }
.client-logo-item img { max-width: 100%; max-height: 60px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all var(--transition); }
.client-logo-item:hover img { filter: grayscale(0); opacity: 1; }

/* ============================================================
   CONTACT PAGE
   * ============================================================ */
.contact-page-layout {
  background: var(--bg-white);
  padding: 80px 5%;
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 60px;
  align-items: start;
}
.contact-person-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-person-card .photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.contact-person-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {}
.contact-info-item .label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item .value { font-size: 15px; color: var(--text-dark); font-weight: 600; }
.contact-info-item a { color: var(--text-dark); transition: color var(--transition); }
.contact-info-item a:hover { color: var(--accent-green); }

.contact-form-title { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .form-field label { color: var(--text-dark); }
.contact-form .form-field input,
.contact-form .form-field textarea {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  color: var(--text-dark);
  padding: 12px 16px;
  font-size: 14px;
}
.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
  outline: none;
  border-color: var(--text-dark);
}
.contact-form .form-submit-btn {
  color: var(--text-dark);
  border-color: var(--text-dark);
}
.contact-form .form-submit-btn:hover { background: var(--text-dark); color: var(--text-white); }

/* ============================================================
   ANIMATIONS
   * ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   * ============================================================ */
@media (max-width: 1400px) {
  #tresc_oferty .container { width: 90%; }
}

@media (max-width: 1100px) {
  /* Oferta tiles: 2 per row */
  #oferta .box_oferta { width: 50%; }
  /* Hero header */
  #content_podstrony.oferta .container_stoprocent h1 { font-size: 60px; line-height: 70px; margin: 0 40px; }
  #content_podstrony.oferta .container_stoprocent .figura_14,
  #content_podstrony.oferta .container_stoprocent .figura_17 { display: none; }
  /* Portfolio archive: 2 columns */
  .zbior_realizacji a { width: 50%; }
  /* Portfolio archive header */
  .content_lista_realizacji .container_2 { padding: 40px 40px 20px; }
  .content_lista_realizacji h1 { font-size: 60px; line-height: 70px; }
  .content_lista_realizacji .cms { flex-direction: column; }
  .content_lista_realizacji .filtr_realizacji { margin-top: 20px; justify-content: flex-start; }
  .content_lista_realizacji .filtr_realizacji .button { margin-left: 0; margin-right: 5px; }
  /* Single portfolio */
  #content_podstrony.oferta_realizacja .container_stoprocent h1 { font-size: 60px; line-height: 70px; }
  .nawigacja_realizacja .prev, .nawigacja_realizacja .next { display: none; }
  #tresc_realizacji .container { flex-direction: column; width: 90%; }
  #tresc_realizacji .container .col_1 { width: 100%; }
  #tresc_realizacji .container .col_2 { display: none; }
  #tresc_realizacji .container .mobile_pion { display: block; margin-bottom: 40px;}
  #zdjecia_realizacja .mobile_pion { display: block; }
  /* CTA boxes: stack vertically */
  #boxy_footer { flex-direction: column; }
  #boxy_footer .box_footer { width: 100%; height: auto; padding: 80px 60px 100px; }
  #boxy_footer .box_left { padding-left: 60px; background: #fff;}
  #boxy_footer .box_left .figura {
    left: 0;
  }
  /* Service single: stack columns */
  #tresc_oferty .container { flex-direction: column; width: 90%; }
  #tresc_oferty .container .col_1 { width: 100%; }
  #tresc_oferty .container .col_2 { width: 100%; margin-top: 40px; }
  #tresc_oferty .mobile_pion { display: none; }
  /* Portfolio strip */
  .contact-dark-inner { grid-template-columns: 1fr; }
  .contact-divider { display: none; }
  .about-stats { grid-template-columns: 1fr; }
  .cta-boxes { grid-template-columns: 1fr; }
  .cta-box-right { border-left: none; border-top: 1px solid #ddd; }
}

@media (max-width: 768px) {

  /* Header mobile */
  header { padding: 15px 20px 15px 20px; height: 80px; }
  header.header-fixed { height: 65px; padding: 10px 20px; }
  #tlo_header_podstrona { height: 80px; }
  #tlo_header_podstrona.header-fixed { height: 65px; }
  .header_logo { width: auto; }
  .header_logo .logo { width: 120px; }
  .header_logo .sygnet { width: 48px; }
  header.header-fixed .header_logo .logo { width: 100px; }
  header.header-fixed .header_logo .sygnet { width: 38px; }
  #menu_deskop { display: none; }
  #header_right .btn { display: none; }
  .hamburger { margin-left: 0; }
  #naroznik_top { width: 160px; height: 170px; }
  /* Fullscreen menu mobile */
  #menu_fullscreen nav { left: 50%; top: 15%; }
  #menu_fullscreen .menu1 > li { width: 280px; }
  #menu_fullscreen .menu1 > li > a { font-size: 28px; line-height: 28px; padding: 14px 0 14px 35px; }
  #menu_fullscreen .kontakt { right: 20px; bottom: 100px; }
  #menu_fullscreen .kontakt .naglowek { font-size: 22px; }
  #menu_fullscreen .strefa_klienta { left: 20px; bottom: 100px; display: none; }
  .menu_fullscreen_close { top: 20px; right: 20px; }
  /* Other */
  .container, .container-wide { padding: 0 20px; }
  section { padding-left: 20px; padding-right: 20px; }

  /* Oferta tiles: 1 per row on mobile */
  #oferta .box_oferta { width: 100%; padding: 60px 40px 80px 40px; }
  #oferta .box_oferta .tytul { padding: 80px 0 0 60px; font-size: 28px; line-height: 36px; margin-bottom: 50px; }
  #oferta .box_oferta .dalej { padding-left: 60px; }

  /* Service single mobile */
  #tresc_oferty { padding: 50px 20px; }
  #tresc_oferty > .icona { display: none; }
  #tresc_oferty .btn_duzy { width: 100%; }
  #tresc_oferty .btn_duzy svg,
  #tresc_oferty .btn_duzy svg rect { width: 100%; }
  #tresc_oferty .mobile_pion { display: block; margin-bottom: 30px; }

  /* Portfolio archive mobile: 1 column */
  .zbior_realizacji a { width: 100%; }
  .content_lista_realizacji .container_2 { padding: 30px 20px 10px; }
  .content_lista_realizacji h1 { font-size: 42px; line-height: 52px; margin-right: 0; }
  .content_lista_realizacji .filtr_realizacji span { display: none; }
  #filtr_realizacji_mobile { display: none; }
  /* Hover overlay: also show titles without hover on touch */
  .zbior_realizacji a .hover_realizacja { padding: 20px; }
  .zbior_realizacji a .hover_realizacja .row_2 { font-size: 28px; line-height: 34px; }

  /* Single portfolio mobile */
  #content_podstrony.oferta_realizacja .container_stoprocent { height: 280px; }
  #content_podstrony.oferta_realizacja .container_stoprocent h1 { font-size: 36px; line-height: 46px; }
 /* .nawigacja_realizacja { display: none; }*/
  #tresc_realizacji { padding: 40px 0 0; }
  #tresc_realizacji .container { width: 90%; }
  #parallax_realizacja { height: 200px; background-attachment: scroll; }
  #zdjecia_realizacja .container { width: 90%; }
  #zdjecia_realizacja .cms > .btn_duzy { width: 100%; }

  /* Misc */
  .contact-page-grid { grid-template-columns: 1fr; }
  .contact-page-grid > .divider { display: none; }
  .contact-form-row { grid-template-columns: 1fr; }
  .hero-content { padding: 0 20px; margin-left: 0; }
  .hero-glow-shape { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-vertical-services { display: none; }
}

/* ============================================================
   WORDPRESS HELPERS
   * ============================================================ */
.wp-caption { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

@media only screen and (min-width: 415px) and (max-width: 599px) {
  #oferta .box_oferta .tytul::before {
    left: 0;
    top: 0;
  }
  #oferta .box_oferta .tytul::after {
    left: 10px;
    top: 10px;
    width: 114px;
    height: 114px;
  }
}

@media only screen and (min-width: 415px) and (max-width: 455px) {
  #oferta .box_oferta:nth-child(2n+1) .tytul::after, #oferta .box_oferta:nth-child(2n+2) .tytul::after {
    background-color: transparent;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1325px) {
  #oferta .box_oferta .dalej::before {
    right: 65px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1325px) {
  #oferta .box_oferta {
    padding: 40px;
  }
}


@media only screen and (min-width: 1024px) and (max-width: 1325px) {
  #oferta .box_oferta .tytul::after {
    left: 25px;
    top: 25px;
    width: 80px;
    height: 80px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1325px) {
  #oferta .box_oferta .dalej {
    padding: 0 0 0 40px;
  }
}

@media only screen and (min-width: 600px) and (max-width: 1023px) {
  #oferta .box_oferta .dalej::before {
    right: 65px;
  }
}

@media only screen and (max-width: 499px) {
  #oferta .box_oferta .dalej::before {
    right: 40px;
  }
}
@media only screen and (max-width: 333px) {
  #oferta .box_oferta .dalej::before {
    display:none;
  }
}

@media only screen and (max-width: 414px) {
  #oferta .box_oferta .tytul::before {
    left: 0;
    top: 0;
  }
}

@media only screen and (max-width: 414px) {
  #oferta .box_oferta .tytul::after {
    left: 10px;
    top: 10px;
    width: 114px;
    height: 114px;
  }
}

@media only screen and (min-width: 1496px) and (max-width: 1879px) {
  #oferta .box_oferta .dalej::before {
    right: 60px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1325px) {
  #oferta .box_oferta .tytul::before {
    left: -2px;
    top: 5px;
    background-size: 56px 44px;
    width: 56px;
    height: 44px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1325px) {
  #oferta .box_oferta .tytul {
    padding: 55px 0 0 40px;
    margin-bottom: 45px;
    font: 700 24px/34px 'Poppins',sans-serif;
  }
}

@media only screen and (min-width: 600px) and (max-width: 1023px) {
  #oferta .box_oferta {
    padding: 40px 30px;
    width: 50%;
  }
  #oferta .box_oferta .tytul {
    padding: 55px 0 0 30px;
    margin-bottom: 35px;
    font: 700 22px/30px 'Poppins',sans-serif;
  }
  #oferta .box_oferta .tytul::before {
    left: -2px;
    top: 5px;
    background-size: 56px 44px;
    width: 56px;
    height: 44px;
  }
  #oferta .box_oferta .tytul::after {
    left: 25px;
    top: 25px;
    width: 80px;
    height: 80px;
  }
  #oferta .box_oferta .dalej {
    padding: 0 0 0 30px;
    font: 700 13px/13px 'Poppins',sans-serif;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1325px) {
  #menu_deskop {
    display: none !important;
  }
}

@media only screen and (min-width: 600px) and (max-width: 1023px) {
  #menu_deskop {
    display: none !important;
  }
}



/* ─── PRODUCT IMAGE LIGHTBOX ────────────────────────────── */
/*.prod-thumb{
  cursor: pointer;
}*/
#proud-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  cursor: zoom-out;
}
#proud-lightbox.visible {
  opacity: 1;
  pointer-events: all;
}
#proud-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transform: scale(.92);
  transition: transform .28s cubic-bezier(.22,.68,0,1.2), opacity .25s ease;
  opacity: 0;
  cursor: default;
  user-select: none;
}
#proud-lightbox.visible #proud-lightbox-img {
  transform: scale(1);
  opacity: 1;
}
#proud-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  z-index: 100000;
}
#proud-lightbox-close:hover {
  background: rgba(255,255,255,.25);
  transform: scale(1.1);
}
#proud-lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  letter-spacing: .04em;
}
#proud-lightbox-prev,
#proud-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgb(255, 255, 255);
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  color: #000000;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  z-index: 100000;
  user-select: none;
}
#proud-lightbox-prev { left: 20px; }
#proud-lightbox-next { right: 20px; }
#proud-lightbox-prev:hover,
#proud-lightbox-next:hover {
  background: rgb(0, 0, 0);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
#proud-lightbox-prev.hidden,
#proud-lightbox-next.hidden { display: none; }
body.lightbox-open { overflow: hidden; }