/* ===========================
   Subpage styles
   =========================== */

/* --- Page Hero --- */
.page-hero {
  position: relative;
  height: 280px;
  background: url('img/bg1-ss2-h1-scaled.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37,45,40,0.72) 0%, rgba(37,45,40,0.3) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero-content .eyebrow {
  color: var(--green-light);
  margin-bottom: 8px;
}
.page-hero-content h1 {
  font-family: 'Tenor Sans', serif;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--white);
  margin-bottom: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.breadcrumb a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.65); }

/* --- Marquee strip --- */
.marquee-strip {
  background: var(--green-dark);
  padding: 14px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-family: 'Tenor Sans', serif;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}
.marquee-track .sep { color: rgba(255,255,255,0.35); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Accordion --- */
.accordion { display: flex; flex-direction: column; gap: 0; margin-top: 32px; }
.acc-item { border-bottom: 1px solid var(--green-light); }
.acc-item:first-child { border-top: 1px solid var(--green-light); }
.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Tenor Sans', serif;
  font-size: 17px;
  color: var(--text-dark);
  transition: color var(--transition);
  gap: 12px;
}
.acc-header:hover,
.acc-header.active { color: var(--green-dark); }
.acc-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--green-dark);
}
.acc-header.active .acc-icon { transform: rotate(180deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0;
}
.acc-body.open {
  max-height: 600px;
  padding-bottom: 20px;
}
.acc-body p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 12px;
}
.acc-body p:last-child { margin-bottom: 0; }

/* --- Lead text --- */
.lead-text {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* --- CTA band --- */
.section-cta-band {
  background: var(--green-bg);
  padding: 60px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band-inner h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.cta-band-inner p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 520px;
}
.cta-band-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ===========================
   OFERTA PAGE
   =========================== */
.section-oferta { padding: 80px 0; }
.oferta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.photo-grid-4 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 120px;
}
.photo-grid-4 img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  transition: transform 0.4s ease;
}
.photo-grid-4 img:hover { transform: scale(1.03); }
.oferta-accordion h2 { margin-bottom: 8px; }

/* ===========================
   W GABINECIE PAGE
   =========================== */
.section-gabinet { padding: 80px 0; }
.gabinet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.photo-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 120px;
}
.photo-main {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.photo-secondary {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.gabinet-content h2 { margin-bottom: 16px; }

/* ===========================
   O MNIE PAGE
   =========================== */
.section-omnie { padding: 80px 0; }
.omnie-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}
.omnie-sidebar { position: sticky; top: 120px; }
.profile-card {
  background: var(--green-bg);
  border-radius: 16px;
  overflow: hidden;
}
.profile-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.profile-info {
  padding: 24px 24px 0;
}
.profile-info h2 {
  font-size: 22px;
  margin-bottom: 4px;
}
.profile-title {
  font-size: 14px;
  color: var(--green-dark);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.profile-contacts {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--green-light);
  margin-top: 20px;
}
.profile-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pci-icon {
  width: 32px;
  height: 32px;
  background: var(--green-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pci-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-dark);
  display: block;
  margin-bottom: 2px;
}
.pci-value {
  font-size: 13px;
  color: var(--text-dark);
  word-break: break-all;
}
a.pci-value:hover { color: var(--green-dark); }
.profile-checklist {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--green-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
}
.check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dark);
  flex-shrink: 0;
  margin-top: 5px;
}

.lead-quote {
  font-family: 'Tenor Sans', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  border-left: 3px solid var(--green-dark);
  padding-left: 20px;
  margin-bottom: 40px;
  font-style: italic;
}
.bio-section {
  margin-bottom: 36px;
}
.bio-section h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.bio-section p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 12px;
}
.bio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bio-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-body);
  padding: 10px 16px;
  background: var(--green-bg);
  border-radius: 6px;
}
.bio-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dark);
  flex-shrink: 0;
}

/* ===========================
   KONTAKT PAGE
   =========================== */
.section-kontakt { padding: 80px 0; }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.kontakt-info h2 { margin-bottom: 20px; }
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-card {
  background: var(--green-bg);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cc-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-dark);
  display: block;
  margin-bottom: 4px;
}
.cc-value {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.5;
  font-weight: 500;
}
a.cc-link { transition: color var(--transition); }
a.cc-link:hover { color: var(--green-dark); }
.kontakt-note {
  background: var(--green-light);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}
.kontakt-form-col { position: sticky; top: 120px; }
.section-map { line-height: 0; }

/* ===========================
   RESPONSIVE – subpages
   =========================== */
@media (max-width: 1024px) {
  .oferta-grid,
  .gabinet-grid,
  .omnie-grid,
  .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .omnie-sidebar,
  .kontakt-form-col { position: static; }
  .photo-stack { position: static; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .contact-cards { grid-template-columns: 1fr; }
  .page-hero { height: 220px; }
}

/* =============================
   SUBPAGE ANIMATIONS
   ============================= */

/* Page hero text entrance */
.page-hero-content .eyebrow  { animation: fadeInUp 0.55s ease 0.1s  both; }
.page-hero-content h1         { animation: fadeInUp 0.65s ease 0.25s both; }
.page-hero-content .breadcrumb{ animation: fadeInUp 0.55s ease 0.4s  both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Contact cards hover */
.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition-delay: var(--stagger-delay, 0s);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.cc-icon { transition: transform 0.3s ease, background 0.3s ease; }
.contact-card:hover .cc-icon { transform: scale(1.1); background: var(--green-dark); }
.contact-card:hover .cc-icon svg { stroke: var(--white); }
.cc-icon svg { transition: stroke 0.3s ease; }

/* Profile card hover */
.profile-card { transition: box-shadow 0.4s ease; }
.profile-card:hover { box-shadow: 0 14px 40px rgba(79,118,97,0.16); }

/* Profile photo zoom */
.profile-photo { transition: transform 0.55s ease; }
.profile-card:hover .profile-photo { transform: scale(1.03); }
.profile-card { overflow: hidden; }

/* Bio list items slide */
.bio-list li {
  transition: transform 0.3s ease, background 0.3s ease;
  transition-delay: var(--stagger-delay, 0s);
}
.bio-list li:hover { transform: translateX(6px); background: var(--green-light); }

/* Accordion hover */
.acc-header { transition: color var(--transition); }
.acc-icon { transition: transform 0.3s ease, color 0.3s ease; }
.acc-header:not(.active):hover .acc-icon { transform: scale(1.2); color: var(--green-dark); }
.acc-header.active .acc-icon { transform: rotate(180deg); }

/* Photo grid hover */
.photo-grid-4 img { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.photo-grid-4 img:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* Photo stack hover */
.photo-main, .photo-secondary { transition: transform 0.4s ease; }
.photo-main:hover, .photo-secondary:hover { transform: scale(1.02); }

/* btn-outline shimmer */
.btn-outline { position: relative; overflow: hidden; }
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(79,118,97,0.08);
  transform: translateX(-101%);
  transition: transform 0.38s ease;
  border-radius: inherit;
}
.btn-outline:hover::before { transform: translateX(0); }

/* CTA band hover */
.section-cta-band .btn-outline { transition: background var(--transition), color var(--transition), box-shadow 0.3s ease; }
.section-cta-band .btn-outline:hover { box-shadow: 0 4px 18px rgba(79,118,97,0.2); }

/* Check items hover */
.check-item {
  transition: transform 0.25s ease;
}
.check-item:hover { transform: translateX(4px); }
