/* =========================
   GLOBAL VARIABLES & RESET
   ========================= */
:root{
  --accent:#2f6b41;
  --muted:#6b6b6b;
  --bg:#fbfbf8;
  --card:#ffffff;
  --shadow-light: 0 4px 20px rgba(6,20,12,0.04);
  --shadow-medium: 0 8px 30px rgba(6,20,12,0.08);
  --shadow-heavy: 0 20px 60px rgba(4,12,6,0.15);
  --glassmorphism-bg: rgba(255,255,255,0.85);
  --glassmorphism-border: rgba(255,255,255,0.18);
}

*{box-sizing:border-box}

html {scroll-behavior: smooth;}

body{
  font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial;
  color:#17201a;
  margin:0;
  background:var(--bg);
  line-height:1.45;
  overflow-x: hidden;
}

a{
  text-decoration:none;
  color:inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   ANIMATIONS & KEYFRAMES
   ========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Scroll reveal animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   ENHANCED BUTTONS
   ========================= */
.btn{
  background: linear-gradient(135deg, var(--accent), #367a4b);
  color: white;
  padding: 12px 20px;
  
  border-radius: 12px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  box-shadow: 0 4px 15px rgba(47,107,65,0.3);
  backdrop-filter: blur(10px);
}
@media (max-width:1100px){
  .btn{
    margin-right: 20px;
  }
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(47,107,65,0.4);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  pointer-events: none;
  transform: scale(0);
  animation: ripple 0.6s linear;
  opacity: 0;
}

.btn.ripple::after {
  animation: ripple 0.6s linear;
  opacity: 1;
}

/* Ghost button variant */
.btn-ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(47,107,65,0.1);
  padding:10px 14px;
  border-radius:10px;
}

.btn-ghost:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px) scale(1.02);
}

/* =========================
   ENHANCED HEADER / NAVIGATION
   ========================= */
header{
  background: linear-gradient(180deg,rgba(47,107,65,0.05),transparent);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
}

header.scrolled{
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--glassmorphism-border);
}

.container{max-width:1100px;margin:0 auto;padding:0 20px}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  transition: padding 0.3s ease;
}

.logo{
  display:flex;
  gap:12px;
  align-items:center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
  transform: scale(1.05);
}

.logo .mark{
  width:44px;
  height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-weight:700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.logo .mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.logo:hover .mark::before {
  transform: translateX(100%);
}

nav ul{
  display:flex;
  gap:20px;
  align-items:center;
  margin:0;
  padding:0;
  list-style:none;
}

nav ul li {
  position: relative;
}

nav ul li a {
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-weight: 500;
}

nav ul li a:not(.btn):hover {
  background: rgba(47,107,65,0.08);
  transform: translateY(-1px);
}

nav ul li a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

nav ul li a:not(.btn):hover::after {
  width: 80%;
}

.menu-toggle{display:inline-flex}

/* =========================
   ENHANCED HERO
   ========================= */
.hero{
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
  align-items:center;
  padding:20px 0 42px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner{
  display:flex;
  flex-direction:column;
  gap:18px;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  
}

.hero h1{
  font-size:clamp(26px,4vw,40px);
  margin:0;
  font-weight:700;
  background: linear-gradient(135deg, #17201a, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead{
  color:var(--muted);
  max-width:700px;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* Enhanced hero video */
.hero-video {
  position:relative;
  overflow:hidden;
  border-radius:20px;
  aspect-ratio: 16s / 9;
  min-height: 180px;
  
}

.hero-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(47,107,65,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-video:hover::before {
  opacity: 1;
}

.hero-video:hover {
  transform: scale(1.01) rotateX(2deg);
}

.hero-video video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-video:hover video {
  transform: scale(1.05);
}

/* =========================
   ENHANCED CARDS / SLIDER
   ========================= */
.cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
  margin:34px 0;
}

.card{
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glassmorphism-border);
  border-radius:16px;
  padding:20px;
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor:pointer;
  flex:0 0 280px;
  scroll-snap-align:start;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(47,107,65,0.08), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.card:hover::before {
  left: 100%;
}

.card:hover{
  transform: translateY(-8px) rotateX(5deg) scale(1.02);
  box-shadow: 0 20px 60px rgba(6,20,12,0.15);
  border-color: rgba(47,107,65,0.2);
  background: rgba(255,255,255,0.95);
}

.card:active {
  transform: translateY(-4px) scale(0.98);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-service-image {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(47,107,65,0.1), rgba(47,107,65,0.05));
  box-shadow: 0 4px 12px rgba(6,20,12,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-service-image {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(6,20,12,0.15);
}

.card-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card-service-image img {
  transform: scale(1.05);
}

.card h3,.card h4{
  margin:0 0 8px 0;
  transition: color 0.3s ease;
  font-size: 16px;
  line-height: 1.3;
}

.card:hover h3,
.card:hover h4 {
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.3s ease;
}

.card:hover p {
  color: #374033;
}

.price{
  font-weight:700;
  color:var(--accent);
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.card:hover .price {
  transform: scale(1.05);
  text-shadow: 0 2px 8px rgba(47,107,65,0.3);
}

.slider{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap:20px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  padding-bottom:12px;
  padding-right: 20px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(47,107,65,0.3) transparent;
}

.slider::-webkit-scrollbar{height:8px}
.slider::-webkit-scrollbar-track{background:rgba(47,107,65,0.1);border-radius:4px}
.slider::-webkit-scrollbar-thumb{
  background:linear-gradient(90deg, var(--accent), #367a4b);
  border-radius:4px;
  transition: all 0.3s ease;
}
.slider::-webkit-scrollbar-thumb:hover{background:var(--accent)}

/* Hide inline media element in cards but keep DOM for modal */
.card .card-media{display:none !important}

/* =========================
   ENHANCED MODAL
   ========================= */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:1200;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  backdrop-filter: blur(10px);
  padding:24px;
  overflow:hidden;
  animation: fadeIn 0.3s ease-out;
}

.modal.show{
  display:flex;
  align-items:center;
  justify-content:center;
}

.modal-content{
  width:min(1100px,98%);
  max-width:1100px;
  max-height:90vh;
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--glassmorphism-border);
  border-radius:20px;
  overflow:hidden;
  box-shadow: var(--shadow-heavy);
  position:relative;
  display:flex;
  align-items:stretch;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.modal-body{
  display:flex;
  gap:24px;
  width:100%;
  align-items:stretch;
}

.modal-text{
  flex:1 1 560px;
  padding:30px;
  overflow:hidden;
  max-height:calc(90vh - 60px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-media{
  flex:0 0 500px;
  width:500px;
  height:600px;
  min-width:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius: 0 20px 20px 0;
  position: relative;
}

.modal-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(47,107,65,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.modal-content:hover .modal-media::before {
  opacity: 1;
}

.modal-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content:hover .modal-media img {
  transform: scale(1.05);
}

.modal .close{
  position:absolute;
  top:16px;
  right:16px;
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(15px);
  border:0;
  width:48px;
  height:48px;
  border-radius:12px;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal .close:hover {
  transform: scale(1.1) rotate(90deg);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Mobile modal adjustments with landscape fix */
@media (max-width:900px){
  .modal-body { 
    flex-direction: column; 
    height: 100%;
  }

  .modal-media {
    display: none;
  }
  
  .modal-text {
    flex: 1;
    padding: 16px;
    max-height: 100%;
    overflow-y: auto;
    background-color: #f7fff6;
    box-sizing: border-box;
  }
}

/* Special landscape mode fix for phones */
@media (max-height: 500px) and (orientation: landscape) {
  .modal-content {
    max-height: 95vh;
    height: 95vh;
  }
  
  .modal-text {
    flex: 1;
    padding: 12px 16px;
    max-height: 100%;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  
  .modal-media {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .modal-media {
    padding:0 16px 12px 16px;
  }
  
  .modal-content:hover .modal-media img {
    transform: scale(1.00);
  }
}

/* =========================
   ENHANCED TEAM / PROFILES
   ========================= */
.team-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(260px,1fr));
  gap:24px;
  align-items:start;
  width:100%;
  margin-top:16px;
}

.team-grid .profile{width:100%;box-sizing:border-box}

.profile{
  display:flex;
  gap:20px;
  align-items:stretch;
  padding:24px;
  border-radius:18px;
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glassmorphism-border);
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow:hidden;
  cursor:pointer;
  position: relative;
  transform-style: preserve-3d;
}

.profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47,107,65,0.02), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.profile:hover::before {
  opacity: 1;
}

.profile:focus,.profile:hover{
  transform: translateY(-10px) rotateX(8deg) scale(1.02);
  box-shadow: 0 25px 80px rgba(6,20,12,0.2);
  outline:none;
  border-color: rgba(47,107,65,0.3);
}

.avatar{
  flex:0 0 170px;
  width:170px;
  height:170px;
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow-medium);
  background:linear-gradient(180deg,#f7fff6,#fff);
  display:block;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile:hover .avatar::after {
  opacity: 1;
}

.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile:hover .avatar img,.profile:focus .avatar img{
  transform: scale(1.15) rotate(2deg);
}

.info{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  position: relative;
  z-index: 1;
}

.profile h4{
  margin:0;
  font-size:20px;
  font-weight:700;
  color:#132014;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile:hover h4 {
  transform: translateX(4px);
  color: var(--accent);
}

.profile p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.3;
  transition: all 0.3s ease;
}

.profile:hover p {
  color: #374033;
  transform: translateX(2px);
}

.profile-details{
  margin-top:10px;
  color:#394836;
  font-size:14px;
  transition: all 0.3s ease;
}

/* Team mobile adjustments */
@media (max-width:900px){
  .team-grid{grid-template-columns:1fr;gap:16px}
  .avatar{flex:0 0 120px;width:120px;height:120px}
  .profile{padding:18px;gap:14px}
  .profile h4{font-size:18px}
  .profile p{font-size:14px}
}

.team-grid .profile:last-child:nth-child(odd){
  justify-self:center;
  max-width:640px;
}

/* =========================
   ENHANCED ABOUT / CONTACT / OPINIONS
   ========================= */
.contact-card{
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glassmorphism-border);
  padding:24px;
  border-radius:16px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top:24px;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(47,107,65,0.02) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(6,20,12,0.12);
  border-color: rgba(47,107,65,0.2);
}

/* about grid layout */
.about-grid{
  display:grid;
  grid-template-columns:1fr 360px;
  grid-template-rows:auto;
  grid-template-areas:
    "about about"
    "team team"
    "opinions aside";
  gap:28px;
  align-items:start;
  padding:8px 0;
}

.about{grid-area:about}
.team-full{grid-area:team;margin-top:24px;}
.opinions{grid-area:opinions;margin-top:24px;}
.aside-right{grid-area:aside}
.about-grid .about,.about-grid .team-full,.about-grid .opinions{background:transparent}

/* Enhanced opinions */
.opinions blockquote{
  margin:12px 0;
  padding:18px;
  border-radius:12px;
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glassmorphism-border);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.opinions blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 60px;
  color: rgba(47,107,65,0.1);
  font-family: serif;
  pointer-events: none;
}

#opinie blockquote{
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



#opinie blockquote:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(6,20,12,0.15);
  background: rgba(255,255,255,0.95);
  border-color: rgba(47,107,65,0.2);
}

@media (max-width: 900px) and (min-width: 760px) {
  .opinions blockquote:nth-child(5) {
    display: none;
  }
}

/* sticky aside on desktop */
@media (min-width:901px){ 
  .aside-right{
    position:sticky;
    top:110px;
    align-self:start;
  } 
}



/* Mobile responsiveness for services section */
@media (max-width:760px){
  .about-grid{
    grid-template-columns:1fr;
    grid-template-areas:"about" "team" "opinions" "aside";
    gap:18px;
  }
  .aside-right{position:static;top:auto}
  
  #uslugi .slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
  }
  
  #uslugi .card {
    min-width: auto;
    width: 100%;
    flex: none;
    scroll-snap-align: unset;
  }
  
  #uslugi h3 {
    font-size: 18px;
    margin: 20px 0 12px 0;
  }

  /* Header mobile adjustments */
  .logo .mark{
    width: 60px !important;
    height: 60px !important;
  }
  
  nav ul{display:none}
  .menu-toggle{display:inline-flex}
}

@media (max-width: 600px) {
  #uslugi .slider {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  #uslugi .card {
    padding: 16px;
  }
  
  #uslugi h3 {
    font-size: 18px;
    margin: 16px 0 10px 0;
  }

  /* Further reduce logo on very small screens */
  .logo .mark{
    width: 60px !important;
    height: 60px !important;
  }
}

/* scroll-margin to prevent anchor hiding by fixed header */
#uslugi,#about-new,#opinie,#kontakt{scroll-margin-top:120px}

/* =========================
   ENHANCED LIGHTBOX
   ========================= */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(15px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1200;
  animation: fadeIn 0.3s ease-out;
}

.lightbox img{
  max-width:92%;
  max-height:86%;
  border-radius:12px;
  box-shadow: var(--shadow-heavy);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.show{
  display:flex;
}

.lightbox.show img {
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   ENHANCED ABOUT-NEW SECTION
   ========================= */
.about-new{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:30px;
  align-items:stretch;
  margin:40px 0;
  padding:30px;
  background: linear-gradient(135deg, rgba(47,107,65,0.03), rgba(47,107,65,0.01));
  border-radius:20px;
  border: 1px solid rgba(47,107,65,0.08);
  position: relative;
  overflow: hidden;
}

.about-new::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(47,107,65,0.02) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.about-new .about-left{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:16px;
  padding-right:8px;
  position: relative;
  z-index: 1;
}

.about-new .about-left h2{
  margin:0 0 12px 0;
  font-size:28px;
  background: linear-gradient(135deg, #17201a, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-new .about-left p{
  color:#394836;
  margin:10px 0 16px 0;
  line-height:1.6;
  transition: color 0.3s ease;
}

.about-new .about-left h3{
  margin-top:8px;
  font-size:20px;
  color: var(--accent);
}

.about-new .about-left ul{
  margin:10px 0 0 0;
  padding-left: 0;
  color:#2b3a2f;
  line-height:1.6;
  list-style: none;
}

.about-new .about-left ul li{
  margin-bottom:8px;
  text-transform:none;
  transition: all 0.3s ease;
}

.about-new .about-left ul li:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Enhanced photo slider */
.photo-slider{
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--glassmorphism-border);
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow-heavy);
  position:relative;
  height:100%;
  min-height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-slider:hover {
  transform: scale(1.02) rotateY(2deg);
  box-shadow: 0 25px 80px rgba(6,20,12,0.2);
}

.photo-slider .slides{
  position:relative;
  width:100%;
  height:100%;
}

.photo-slider .slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform: scale(1.1) rotateX(10deg);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  cursor: pointer;
}

.photo-slider .slide.active{
  opacity:1;
  transform: scale(1) rotateX(0deg);
}

.photo-slider .slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform 0.3s ease;
}

.photo-slider:hover .slide.active img {
  transform: scale(1.05);
}

/* Photo lightbox */
.photo-lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  z-index:1400;
  padding:32px;
  animation: fadeIn 0.3s ease-out;
}

.photo-lightbox.show{display:flex}

.photo-lightbox img{
  max-width:96%;
  max-height:92%;
  border-radius:12px;
  box-shadow: var(--shadow-heavy);
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-close{
  position:absolute;
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(15px);
  border:0;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size:24px;
  cursor:pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-medium);
  top:20px;
  right:20px;
}

.lb-close:hover {
  transform: scale(1.1) rotate(90deg);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* mobile adjustments for about-new/photo-slider */
@media (max-width:900px){
  .about-new{
    grid-template-columns:1fr;
    padding:20px;
    gap:20px;
  }
  .photo-slider{
    min-height:240px;
    height:240px;
  }
  .photo-slider .slides{height:100%}
  .photo-slider .slide{
    position:absolute;
    inset:0;
    opacity:0;
    transform: scale(1.05);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height:100%;
  }
  .photo-slider .slide.active{
    opacity:1;
    transform: scale(1);
  }
  .photo-slider .slide img{
    width:100%;
    height:100%;
    object-fit:cover;
  }
}

/* =========================
   ENHANCED FOOTER
   ========================= */
footer{
  padding:16px 0;
  color:var(--muted);
  font-size:14px;
  background: linear-gradient(135deg, rgba(47,107,65,0.05), transparent);
  border-top: 1px solid rgba(47,107,65,0.08);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,107,65,0.2), transparent);
}

footer .mark{
  width: 60px !important;
  height: 60px !important;
}

@media (max-width: 480px) {
  footer{
    padding: 10px 0;
    font-size: 12px;
  }

  /* Kolumna, ale wyrównanie do lewej */
  footer .container{
    flex-direction: column !important;
    align-items: flex-start !important; /* <- nie centrować */
    gap: 6px !important;
    padding: 0 12px;
  }

  /* Logo + marka: zawsze w jednym wierszu, wyśrodkowane wertykalnie */
  footer .container > div:first-child{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; /* zapobiega "góra-dół" tekstu */
    gap: 8px !important;
    width: 100%;
    min-width: 0; /* pozwala prawidłowo obcinać tekst jeśli trzeba */
  }

  footer .mark{
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px;
  }
  footer .mark img{ width:100%; height:100%; object-fit:contain; }

  /* Copyright poniżej, wyrównany do lewej */
  footer .container > div:last-child{
    width:100%;
    text-align: left !important;
    padding-right: 0 !important;
    font-size: 12px;
    color: var(--muted);
  }

  /* krótkie nazwy / zapobieganie łamaniu: */
  footer .container > div:first-child > div {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}








.flex{display:flex;gap:12px;align-items:center}

/* Enhanced responsive rules */
@media (max-width:760px){
  .cards{grid-template-columns:repeat(2,1fr)}
  nav ul{display:none}
  .menu-toggle{display:inline-flex}
}

@media (max-width:600px){
  .cards{grid-template-columns:1fr}
  .hero{padding:24px 0}
  .logo .mark{width:40px;height:40px}
}

/* =========================
   ENHANCED GIFT VOUCHER
   ========================= */
.gift-voucher {
  margin-top: 40px;
  padding: 32px 0;
  background: linear-gradient(135deg, rgba(47,107,65,0.03), rgba(47,107,65,0.01));
  border-radius: 20px;
  border: 1px solid rgba(47,107,65,0.08);
  position: relative;
  overflow: hidden;
}

.gift-voucher::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(47,107,65,0.02) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

.gift-inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 35px;
  align-items: center;
  padding: 35px;
  position: relative;
  z-index: 1;
}

.gift-content h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #132014, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gift-content .lead {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--muted);
  margin-top: 8px;
  transition: color 0.3s ease;
}

.gift-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #394836;
  margin: 14px 0;
  transition: color 0.3s ease;
}

.gift-features {
  margin: 10px 0 0 0;
  padding-left: 0;
  list-style: none;
}

.gift-features li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.gift-features li:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.gift-content .btn {
  font-size: 15px;
  padding: 12px 20px;
  font-weight: 600;
}

.gift-media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-media:hover {
  transform: scale(1.05) rotateY(-5deg);
}

.gift-media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-media:hover img {
  transform: scale(1.05);
  box-shadow: 0 30px 80px rgba(6,20,12,0.2);
}

/* Enhanced list items with checkmarks */
.about-new ul li,
.gift-features li,
#uslugi .card-details ul li{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  color:#374033;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-new ul li:hover,
.gift-features li:hover,
#uslugi .card-details ul li:hover {
  transform: translateX(4px);
  color: var(--accent);
}

.about-new ul li::before,
.gift-features li::before,
#uslugi .card-details ul li::before{
  content:'✓';
  width:20px;
  height:20px;
  background: linear-gradient(135deg, var(--accent), #367a4b);
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:bold;
  flex-shrink:0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(47,107,65,0.3);
}

.about-new ul li:hover::before,
.gift-features li:hover::before,
#uslugi .card-details ul li:hover::before {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 4px 15px rgba(47,107,65,0.4);
}

#uslugi h2{
  margin-top:18px; 
  margin-bottom: 18px;
}

#uslugi h3{
  margin-top: 24px;
  margin-bottom: 24px;
}

/* =========================
   ENHANCED MAP SECTION
   ========================= */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin-bottom: 8vh;
}

.map-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(47,107,65,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.map-container:hover::before {
  opacity: 1;
}

.map-container:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 25px 80px rgba(6,20,12,0.15);
}

/* =========================
   CONTACT CTA ENHANCEMENTS (DISABLED)
   ========================= */


/* =========================
   SCROLL PROGRESS INDICATOR
   ========================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #367a4b);
  z-index: 100;
  transition: width 0.1s ease-out;
}

/* =========================
   ENHANCED UTILITIES
   ========================= */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

/* Enhanced iframe styling */
iframe {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.map-container:hover iframe {
  transform: scale(1.01);
}

/* Enhanced mobile responsive adjustments */
@media (max-width: 900px) {
  .gift-inner {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
  }

  .gift-media { order: -1; }

  .gift-media img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }

  .gift-content h2 { 
    font-size: clamp(20px, 3.8vw, 24px); 
  }
  
  .gift-content .lead, .gift-content p { 
    font-size: 15px; 
  }
  
  .gift-features li { 
    font-size: 14px; 
  }
  
  .gift-content .btn { 
    font-size: 15px; 
    padding: 12px 18px; 
  }
}

@media (max-width: 480px) {
  .gift-voucher { 
    padding: 20px 0; 
    margin-top: 30px;
  }
  
  .gift-inner { 
    padding: 20px; 
    gap: 20px; 
  }
  
  .gift-media img { 
    max-height: 300px; 
    border-radius: 12px; 
  }
  
  .gift-content h2 { 
    font-size: 20px; 
  }
  
  .gift-content .lead, .gift-content p { 
    font-size: 14px; 
  }
  
  .gift-features li { 
    font-size: 13px; 
  }
  
  .gift-content .btn { 
    font-size: 14px; 
    padding: 12px 16px; 
  }
}