/**
 * Main Stylesheet
 * Loaded asynchronously after critical CSS
 *
 * @package PracowniaNieruchomosci
 */

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  padding: 5rem 0;
}
.section-dark {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.section-green {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
}
.section-green .section-subtitle { color: rgba(255,255,255,0.8); }
.section-green .section-tag { color: var(--color-accent); }
.section-green .section-title .accent,
.section-green .section-title .accent-dark { color: var(--color-accent); }
.section-light {
  background: var(--color-bg-light);
}
.section-header {
  margin-bottom: var(--space-2xl);
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-accent);
}
.section-dark .section-tag,
.section-green .section-tag {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.text-center .section-tag {
  border-left: none;
  padding-left: 0;
  position: relative;
}
.text-center .section-tag::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--space-xs) auto 0;
}
.section-title .accent,
.section-title .accent-dark { color: var(--color-accent-text); }
.section-dark .section-title .accent,
.section-dark .section-title .accent-dark,
.section-green .section-title .accent,
.section-green .section-title .accent-dark { color: var(--color-accent); }
.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.8); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   PROCESS SECTION - Sticky Scroll Alternating Layout
   ========================================================================== */

.process-sticky {
  margin: var(--space-3xl) 0 0;
}
.process-sticky__container {
  display: flex;
  flex-direction: column;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Header */
.process-sticky__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-lg);
}
.process-sticky__divider {
  height: 3px;
  background: var(--color-accent);
  width: 45%;
  max-width: 280px;
  margin: var(--space-md) 0;
}

/* Row - each step */
.process-sticky__row {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 65vh;
  margin: 20px auto 0;
}

/* Side - half */
.process-sticky__side {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 100%;
  overflow: clip;
}

/* Image sticky mechanism */
.process-sticky__img-wrap {
  position: sticky;
  top: 0;
  z-index: -1;
}
.process-sticky__img-range {
  width: 100%;
  overflow: visible;
}
.process-sticky__img {
  height: 100vh;
  width: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  z-index: 1;
}

/* Image placeholder when no image set */
.process-sticky__img-placeholder {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}
.process-sticky__img-placeholder span {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
}

/* Content side */
.process-sticky__content {
  padding: var(--space-xl) var(--space-2xl);
}
.process-sticky__number {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}
.process-sticky__step-title {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}
.process-sticky__line {
  height: 3px;
  background: var(--color-accent);
  width: 80%;
  margin: var(--space-md) 0;
}
.process-sticky__desc {
  line-height: 1.6;
  max-width: 500px;
  color: var(--color-text);
  font-size: 0.9375rem;
}
.process-sticky__desc strong {
  color: var(--color-accent);
}
.process-sticky__desc p {
  margin-bottom: var(--space-md);
}
.process-sticky__desc p:last-child {
  margin-bottom: 0;
}

/* CTA at bottom - full bleed */
.process-sticky__cta {
  background: var(--color-primary);
  padding: var(--space-lg) var(--space-xl);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.process-sticky__cta-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}
.process-sticky__cta-content {
  flex: 1;
  min-width: 0;
}
.process-sticky__cta-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-text-inverse);
  margin-bottom: 2px;
}
.process-sticky__cta-title .accent { color: var(--color-accent); }
.process-sticky__cta-text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}
.process-sticky__cta-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.process-sticky__cta-actions .btn {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.85rem;
}
.process-sticky__cta-actions .btn-outline-light {
  border: 2px solid rgba(255,255,255,0.5);
}

/* --- Process Sticky Responsive --- */
@media (max-width: 1100px) {
  .process-sticky__row {
    height: 70vh;
  }
}

@media (max-width: 900px) {
  .process-sticky__row {
    height: 100vh;
  }
  .process-sticky__row:nth-of-type(odd) {
    flex-direction: column;
  }
  .process-sticky__row:nth-of-type(even) {
    flex-direction: column-reverse;
  }
  .process-sticky__side {
    min-height: 0;
  }
  /* Odd rows: image on top (first-child), content below */
  .process-sticky__row:nth-of-type(odd) .process-sticky__side:first-child {
    flex: 0 0 auto;
    height: auto;
  }
  .process-sticky__row:nth-of-type(odd) .process-sticky__side:last-child {
    flex: 1 1 auto;
    height: auto;
  }
  /* Even rows: image on bottom (last-child in reversed flow), content on top */
  .process-sticky__row:nth-of-type(even) .process-sticky__side:first-child {
    flex: 1 1 auto;
    height: auto;
  }
  .process-sticky__row:nth-of-type(even) .process-sticky__side:last-child {
    flex: 0 0 auto;
    height: auto;
  }
  .process-sticky__content {
    padding: var(--space-md);
  }
  .process-sticky__desc {
    max-width: 600px;
  }
  .process-sticky__cta-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  .process-sticky__cta-title { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  .process-sticky__row:last-of-type,
  .process-sticky__row:first-of-type {
    height: 120vh;
  }
  .process-sticky__cta {
    padding: var(--space-md) var(--space-md);
  }
  .process-sticky__cta-title { font-size: 1.1rem; }
  .process-sticky__cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .process-sticky__cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   HOME STAGING SECTION
   ========================================================================== */

.staging {
  position: relative;
  overflow: hidden;
}
.staging-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 80% 30%, rgba(var(--color-accent-rgb),0.08) 0%, transparent 50%);
  pointer-events: none;
}
.staging .container {
  position: relative;
  z-index: 1;
}
.staging-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}
.staging-content {
  max-width: 520px;
}
.staging-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
}
.staging-lead strong {
  color: var(--color-text-inverse);
  font-weight: 600;
}
.staging-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-xl);
}
.staging-text strong {
  color: var(--color-accent);
  font-weight: 600;
}
.staging-question {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: rgba(var(--color-accent-rgb),0.08);
  border: 1px solid rgba(var(--color-accent-rgb),0.2);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: var(--space-xl);
}
.staging-question-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(var(--color-accent-rgb),0.3);
}
.staging-question p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin: 0;
  align-self: center;
}
.staging-stats {
  display: flex;
  gap: var(--space-3xl);
}
.staging-stat {
  text-align: left;
  padding-left: var(--space-lg);
  border-left: 2px solid rgba(var(--color-accent-rgb),0.3);
}
.staging-stat:first-child {
  border-left: none;
  padding-left: 0;
}
.staging-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.staging-stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.staging-slider-wrapper {
  position: relative;
}
.staging-comparison {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(var(--color-accent-rgb),0.3);
  cursor: ew-resize;
  user-select: none;
}
.staging-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.staging-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.staging-image-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}
.staging-image-after {
  z-index: 0;
}
.staging-label {
  position: absolute;
  bottom: var(--space-lg);
  padding: var(--space-sm) var(--space-xl);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  z-index: 5;
}
.staging-label-before {
  left: var(--space-lg);
  background: rgba(var(--color-primary-rgb),0.9);
  color: var(--color-text-inverse);
  border: 1px solid rgba(255,255,255,0.1);
}
.staging-label-after {
  right: var(--space-lg);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(var(--color-accent-rgb),0.4);
}
.staging-slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.staging-slider-line {
  flex: 1;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-text-inverse), var(--color-accent));
  box-shadow: 0 0 15px rgba(var(--color-accent-rgb),0.5);
}
.staging-slider-button {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-text-inverse) 0%, var(--color-bg-light) 100%);
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 20px rgba(var(--color-accent-rgb),0.3);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  pointer-events: auto;
  cursor: ew-resize;
}
.staging-comparison:hover .staging-slider-button,
.staging-comparison.active .staging-slider-button {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0,0,0,0.4), 0 0 30px rgba(var(--color-accent-rgb),0.5);
}
.staging-slider-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.staging-slider-hint svg {
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .staging-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .staging-content {
    max-width: 100%;
    text-align: center;
  }
  .staging-question {
    text-align: left;
  }
  .staging-stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .staging-stats {
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
  }
  .staging-stat {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(var(--color-accent-rgb),0.2);
    padding-top: var(--space-lg);
    text-align: center;
  }
  .staging-stat:first-child {
    border-top: none;
    padding-top: 0;
  }
  .staging-stat-value {
    font-size: 2rem;
  }
  .staging-question {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .staging-slider-button {
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   PORTALS SLIDER
   ========================================================================== */

.portals-slider {
  background-color: var(--color-bg);
  padding: var(--space-3xl) 0;
  overflow: hidden;
  position: relative;
}

.portals-slider::before,
.portals-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.portals-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}

.portals-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

.portals-slider-track {
  display: flex;
  width: max-content;
  animation: scroll-infinite 25s linear infinite;
}

.portals-slider-track:hover {
  animation-play-state: paused;
}

.portals-slider-content {
  display: flex;
  align-items: center;
  gap: var(--space-4xl);
  padding: 0 var(--space-2xl);
}

.portal-logo {
  height: 36px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.portal-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scroll-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  padding: var(--space-4xl) 0;
}

.cta-box {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  border-radius: var(--radius-xl);
}

.cta-image {
  flex-shrink: 0;
}

.cta-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-full);
  border: 4px solid var(--color-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: 2rem;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.cta-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.0625rem;
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-photo {
    width: 180px;
    height: 180px;
  }
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats {
  padding: var(--space-2xl) 0;
}
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}
.stats-item {
  text-align: center;
  padding: var(--space-md);
}
.stats-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stats-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
  .stats-grid {
    gap: var(--space-xl);
  }
  .stats-item {
    flex: 1 1 45%;
  }
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */

.portfolio {
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}
.portfolio-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl) var(--space-3xl);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-3xl);
}
.portfolio-stat { text-align: center; }
.portfolio-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.portfolio-stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}
.portfolio-stat-divider {
  width: 1px;
  height: 50px;
  background: var(--color-border);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}
.portfolio-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}
.portfolio-card-featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.portfolio-card-featured .portfolio-card-image {
  height: 100%;
  min-height: 500px;
}
.portfolio-card-featured .portfolio-card-title { font-size: 1.75rem; }
.portfolio-card-featured .portfolio-card-price { font-size: 1.5rem; }
.portfolio-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.portfolio-card:hover .portfolio-card-img { transform: scale(1.08); }
.portfolio-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to top, rgba(var(--color-primary-rgb),0.95) 0%, rgba(var(--color-primary-rgb),0.6) 40%, transparent 100%);
  pointer-events: none;
}
.portfolio-card-badge {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}
.portfolio-card-badge svg { color: var(--color-accent); }
.portfolio-card-badge-premium {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-primary);
}
.portfolio-card-badge-premium svg { color: var(--color-primary); }
.portfolio-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-xl);
  color: var(--color-text-inverse);
}
.portfolio-card-type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}
.portfolio-card-location {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-md);
}
.portfolio-card-location svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.portfolio-card-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-accent);
}
.portfolio-card-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
}
.portfolio-cta {
  position: relative;
  margin-top: var(--space-3xl);
  padding: var(--space-3xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.portfolio-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(var(--color-accent-rgb),0.2) 0%, transparent 50%),
              radial-gradient(ellipse at 100% 50%, rgba(var(--color-accent-rgb),0.1) 0%, transparent 40%);
  pointer-events: none;
}
.portfolio-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}
.portfolio-cta-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-accent-rgb),0.15);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
  border: 1px solid rgba(var(--color-accent-rgb),0.3);
}
.portfolio-cta-text-wrapper { flex: 1; }
.portfolio-cta-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.portfolio-cta-title .accent { color: var(--color-accent); }
.portfolio-cta-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0;
}
.portfolio-cta-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
.portfolio-cta-trust {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.portfolio-cta-trust-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 1024px) {
  .portfolio-cta-content {
    flex-direction: column;
    text-align: center;
  }
  .portfolio-cta-icon { width: 80px; height: 80px; }
  .portfolio-cta-title { font-size: 1.5rem; }
  .portfolio-stats {
    flex-wrap: wrap;
    gap: var(--space-xl);
    padding: var(--space-xl);
  }
  .portfolio-stat-divider { display: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .portfolio-card-featured .portfolio-card-image { min-height: 350px; }
}

@media (max-width: 768px) {
  .portfolio-cta { padding: var(--space-2xl); }
  .portfolio-cta-title { font-size: 1.25rem; }
  .portfolio-cta-desc { font-size: 1rem; }
}

@media (max-width: 640px) {
  .portfolio-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .portfolio-card-image { height: 240px; }
  .portfolio-card-featured .portfolio-card-image { min-height: 280px; }
  .portfolio-card-content { padding: var(--space-lg); }
  .portfolio-card-title { font-size: 1.25rem; }
  .portfolio-card-featured .portfolio-card-title { font-size: 1.375rem; }
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */

.why-us {
  position: relative;
  overflow: hidden;
}
.why-us-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(var(--color-accent-rgb),0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.why-us .container {
  position: relative;
  z-index: 1;
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

/* 1.11.8: illustration card - picture on top, glass stat badge over it,
   gold icon chip + number, then title and text. */
.why-us-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.why-us-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--color-accent-rgb), 0.45);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.55);
}

.why-us-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.why-us-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.why-us-card:hover .why-us-card__media img {
  transform: scale(1.06);
}
.why-us-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--color-secondary-rgb, 25, 38, 67), 0.35) 0%, transparent 45%);
  pointer-events: none;
}

/* Stat as a frosted badge with a pulsing gold dot. */
.why-us-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 252, 248, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.why-us-badge--inline {
  position: static;
  align-self: flex-start;
  margin-top: auto;
}
.why-us-badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.why-us-badge__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  animation: why-dot 2.2s ease-out infinite;
}
@keyframes why-dot {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

.why-us-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg);
}
.why-us-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.why-us-card--art .why-us-card__head {
  margin-top: calc(-1 * var(--space-lg) - 23px);
}
.why-us-chip {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(var(--color-primary-rgb), 1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.why-us-card:hover .why-us-chip {
  transform: rotate(-8deg) scale(1.06);
}
.why-us-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(var(--color-accent-rgb), 0.55);
}
.why-us-card--art .why-us-number {
  align-self: flex-end;
}
.why-us-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.why-us-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 var(--space-md);
}

@media (max-width: 1100px) {
  .why-us-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-us-badge__dot::after { animation: none; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-grid {
  display: grid;
  gap: var(--space-2xl);
}
.about-image {
  position: relative;
  width: fit-content;
  height: fit-content;
  max-width: 100%;
  align-self: start;
}
.about-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}
.about-image-decoration {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.about-lead strong,
.about-lead .accent-dark { color: var(--color-accent); }
.about-text {
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(var(--color-accent-rgb),0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.feature-icon svg { width: 16px; height: 16px; }
.feature-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feature-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9375rem;
}
.feature-desc {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .about-image-decoration {
    display: block;
    top: 12px;
    left: 12px;
    border-width: 2px;
  }
}

@media (min-width: 1024px) {
  .about-grid { gap: var(--space-3xl); }
  .about-image-decoration {
    top: 16px;
    left: 16px;
    border-width: 3px;
  }
}

@media (min-width: 1280px) {
  .about-image-decoration {
    top: 20px;
    left: 20px;
  }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

/* 1.11.4: compact cards - photo (or the service icon on burgundy) fills the
   card under a burgundy wash, text sits at the bottom. 4 in a row on desktop,
   2 on tablet, a swipe row on phones. The feature list slides up on hover
   (pointer devices); on touch it is always shown, the row scrolls sideways. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark, var(--color-primary)) 100%);
  box-shadow: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  transform: translateY(-6px);
}

.service-card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.service-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__bg img {
  transform: scale(1.07);
}
.service-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(var(--color-primary-rgb), 0.98) 0%,
    rgba(var(--color-primary-rgb), 0.92) 40%,
    rgba(var(--color-primary-rgb), 0.55) 68%,
    rgba(var(--color-primary-rgb), 0.2) 100%);
}
/* Hover: a solid burgundy layer slides over the whole photo, so the
   expanded text reads like on a plain card. */
.service-card__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(var(--color-primary-rgb), 0.96) 0%, rgba(var(--color-primary-dark-rgb, var(--color-primary-rgb)), 0.98) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover .service-card__bg::before,
.service-card:focus-within .service-card__bg::before {
  opacity: 1;
}

/* No photo: big faint outlined icon in the upper part + fine pattern. */
.service-card__art {
  position: absolute;
  inset: 0 0 40% 0;
  display: grid;
  place-items: center;
  color: rgba(var(--color-accent-rgb), 0.35);
  background-image:
    radial-gradient(circle at 75% 15%, rgba(var(--color-accent-rgb), 0.22) 0%, transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 14px);
}
.service-card__art svg {
  width: 110px;
  height: 110px;
  stroke-width: 1;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__art svg {
  transform: scale(1.08) rotate(-4deg);
}

.service-card__num {
  position: absolute;
  z-index: 1;
  top: var(--space-md);
  right: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

.service-card__body {
  position: relative;
  padding: var(--space-lg);
}
.service-card__chip {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__chip {
  transform: rotate(-8deg) scale(1.06);
}
.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: var(--space-xs);
}
.service-card__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.service-card__features {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.service-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.service-card__features svg {
  flex: none;
  margin-top: 3px;
  color: var(--color-accent);
}

.service-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.service-card__btn svg { transition: transform var(--transition-fast); }
.service-card__btn:hover { color: #fff; }
.service-card:hover .service-card__btn svg { transform: translateX(4px); }

/* Pointer devices: fixed-height card, body pinned to the bottom; features +
   button slide up INSIDE the card on hover, so the row never changes height. */
@media (hover: hover) and (min-width: 1025px) {
  .service-card {
    height: 540px;
    min-height: 0;
  }
  .service-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 100%;
  }
  /* Same start on all four cards (1.11.12): fixed 2-line title box and
     4-line description box, both top-aligned - icons and the first line of
     every title sit at one height; shorter text leaves room below it. */
  .service-card__title {
    min-height: 2.4em;
  }
  .service-card__desc {
    min-height: calc(4 * 1.55em);
  }
  .service-card__features,
  .service-card__btn {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    border-top-color: transparent;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, margin 0.5s ease, padding 0.5s ease;
  }
  .service-card:hover .service-card__features,
  .service-card:focus-within .service-card__features {
    max-height: 320px;
    opacity: 1;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top-color: rgba(255, 255, 255, 0.18);
  }
  .service-card:hover .service-card__btn,
  .service-card:focus-within .service-card__btn {
    max-height: 40px;
    opacity: 1;
    margin-top: var(--space-md);
  }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 460px; }
}

/* Phones: one swipe row instead of four tall cards stacked. */
@media (max-width: 640px) {
  .services-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--space-lg) * -1);
    padding: 0 var(--space-lg) var(--space-md);
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card {
    flex: 0 0 82%;
    min-height: 0;
    scroll-snap-align: center;
  }
  .service-card__art { inset: 0 0 55% 0; }
  .service-card__body { padding-top: 140px; }
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.google-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255,255,255,0.1);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.google-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.google-logo svg {
  width: 100%;
  height: 100%;
}
.google-reviews-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.google-reviews-count {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.2;
}
.google-reviews-stars {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.google-reviews-stars .stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 1px;
}
.google-rating {
  font-weight: 700;
  font-size: 0.875rem;
}

/* Featured testimonial */
.testimonial-featured {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: center;
}
.testimonial-featured__img-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  margin: 0 auto;
}
.testimonial-featured__img-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}
.testimonial-featured__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-accent);
  border-radius: var(--radius-lg);
}
.testimonial-featured__quote-icon {
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: var(--space-lg);
}
.testimonial-featured__text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin: 0 0 var(--space-xl);
}
.testimonial-featured__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial-featured__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-inverse);
}
.testimonial-featured__role {
  font-size: 0.875rem;
  color: var(--color-accent);
}
@media (max-width: 900px) {
  .testimonial-featured {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .testimonial-featured__img-stack {
    max-width: 240px;
  }
}

.testimonials-grid {
  display: grid;
  gap: var(--space-lg);
}

/* Top row: the hand-picked reviews. Hidden on mobile - JS moves these cards
   into the slider track so phones get one swipeable list of everything. */
.testimonials-featured {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-xl);
}

/* Slider: native scroll-snap, so touch swipe and keyboard work without JS.
   The buttons below are progressive enhancement on top of it. */
.testimonials-slider {
  position: relative;
}
.testimonials-track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Vertical room for the card hover lift: overflow-x:auto forces overflow-y to
     auto, which would otherwise clip it. Must stay 0 horizontally - side padding
     shifts where scroll-snap rests, so scrollLeft never returns to 0 and the
     prev arrow can't tell it is at the start. */
  padding: 4px 0 var(--space-sm);
  margin: -4px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.testimonials-track > .testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.testimonials-track::-webkit-scrollbar {
  height: 6px;
}
.testimonials-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
}
.testimonials-slider__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.slider-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--color-accent);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), opacity var(--transition-base);
}
.slider-btn:hover:not(:disabled) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}
.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-base), background var(--transition-base);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
}
.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-primary);
  flex-shrink: 0;
}
.author-name {
  display: block;
  font-weight: 600;
}
.author-badge {
  font-size: 0.75rem;
  color: var(--color-accent);
}
.testimonial-meta { text-align: right; }
.testimonial-stars { color: #fbbf24; font-size: 0.875rem; }
.testimonial-date {
  font-size: 0.75rem;
  opacity: 0.7;
  display: block;
}
.testimonial-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 0.9;
}

.testimonial-body {
  flex: 1 1 auto;
}

/* Collapsed height is a max-height rather than -webkit-line-clamp so that
   multi-paragraph reviews clamp correctly. JS unhides .testimonial-more only
   when the text actually overflows this. */
.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 0.9;
  position: relative;
  overflow: hidden;
  max-height: 11.9em; /* 7 lines * 1.7 line-height */
}
.testimonial-text > p {
  margin: 0 0 0.75em;
}
.testimonial-text > p:last-child {
  margin-bottom: 0;
}
/* Fade the last line out with a mask rather than a gradient overlay: this is
   independent of the section background, which the colour switcher can change. */
.testimonial-card.is-clamped .testimonial-text {
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.testimonial-card.is-expanded .testimonial-text {
  max-height: none;
  -webkit-mask-image: none;
          mask-image: none;
}

/* The [hidden] attribute must win over the display below: author styles beat the
   UA sheet's [hidden]{display:none}, so without this JS hiding the button does
   nothing and it shows on short reviews that have nothing to expand. */
.testimonial-more[hidden] {
  display: none;
}
.testimonial-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: var(--space-sm);
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-accent);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.testimonial-more:hover {
  text-decoration: underline;
}
.testimonial-more__icon {
  transition: transform var(--transition-base);
}
.testimonial-card.is-expanded .testimonial-more__icon {
  transform: rotate(180deg);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.testimonial-translate,
.testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.75rem;
  font-family: inherit;
  color: rgba(255,255,255,0.65);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-base);
}
.testimonial-translate:hover,
.testimonial-source:hover,
.testimonial-translate[aria-pressed="true"] {
  color: var(--color-accent);
}

.testimonials-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-featured { grid-template-columns: repeat(2, 1fr); }
  .testimonials-track > .testimonial-card { flex-basis: calc((100% - var(--space-lg)) / 2); }
}
@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-featured { grid-template-columns: repeat(3, 1fr); }
  .testimonials-track > .testimonial-card { flex-basis: calc((100% - 2 * var(--space-lg)) / 3); }
}

/* Mobile: one slider holding every review. JS relocates the featured cards into
   the track; this hides the now-empty grid. Arrows stay under the track
   (1.11.21) next to swipe. */
@media (max-width: 767px) {
  /* Gated on .is-merged - set by JS only once the featured cards have actually
     been moved into the track, so without JS they stay visible above it. */
  .testimonials-board.is-merged .testimonials-featured {
    display: none;
  }
  .testimonials-track {
    /* One card is visible at a time here, so equal heights buy nothing and only
       pad short cards with dead space. Let each hug its own content. */
    align-items: flex-start;
  }
  .testimonials-track > .testimonial-card {
    /* under 100% so the next card peeks in: the swipe affordance */
    flex-basis: 88%;
  }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--color-accent); }
.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p {
  padding-bottom: var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: var(--space-2xl);
}
.contact-photo-wrapper {
  margin-bottom: var(--space-lg);
}
.contact-photo {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
}
.contact-desc {
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.contact-method:hover { background: rgba(255,255,255,0.1); }
.contact-method-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-method-label {
  font-size: 0.75rem;
  opacity: 0.7;
  display: block;
}
.contact-method-value {
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
}
.contact-social {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.social-label {
  font-size: 0.875rem;
  opacity: 0.8;
}
.social-links {
  display: flex;
  gap: var(--space-sm);
}
.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.social-link:hover { background: var(--color-accent); color: var(--color-primary); }

/* Contact Form */
.contact-form-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--color-text);
  overflow: hidden;
  word-wrap: break-word;
}
.form-header { margin-bottom: var(--space-lg); }
.form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.form-subtitle {
  color: var(--color-text-light);
  font-size: 0.875rem;
}
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}
.required { color: #dc2626; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb),0.2);
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
}
.error-message {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: var(--space-xs);
  display: block;
}
.form-privacy {
  margin-bottom: var(--space-lg);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}
.checkbox-label input {
  width: auto;
  margin-top: 3px;
}
.checkbox-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
}
.checkbox-text a {
  color: var(--color-accent);
  text-decoration: underline;
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .contact-form-wrapper {
    position: sticky;
    top: calc(var(--navbar-height) + 1.5rem);
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  position: relative;
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  padding: var(--space-3xl) 0 0;
}
.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover), var(--color-accent));
}
/* Centered brand block */
.footer-brand-center {
  text-align: center;
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-center .footer-logo {
  margin: 0 auto;
}
.footer-brand-center .footer-tagline {
  margin-left: auto;
  margin-right: auto;
}
.footer-brand-center .footer-social {
  justify-content: center;
}
/* Two-column info grid */
.footer-info-grid {
  display: grid;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.footer-logo {
  height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.footer-tagline {
  margin-top: var(--space-md);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 420px;
}
.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}
.footer-social__link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}
.footer-list {
  list-style: none;
  padding: 0;
}
.footer-list li {
  margin-bottom: var(--space-md);
}
.footer-list a,
.footer-list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}
.footer-list a:hover { color: var(--color-accent); }
.footer-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--color-accent);
  flex-shrink: 0;
}
.footer-menu {
  list-style: none;
  padding: 0;
}
.footer-menu li { margin-bottom: var(--space-sm); }
.footer-menu a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}
.footer-menu a:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0,0,0,0.15);
  margin-top: 0;
  padding: var(--space-md) 0;
}
.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}
.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}
.footer-legal a:hover { color: var(--color-accent); }
.footer-credit {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}
.footer-credit a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-credit a:hover { color: var(--color-accent); }

@media (min-width: 768px) {
  .footer-info-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404 {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: calc(var(--navbar-height) + var(--space-3xl)) 0 var(--space-4xl);
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.error-404__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.error-content {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  animation: error-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.error-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  font-family: var(--font-heading);
  font-size: clamp(6rem, 18vw, 10rem);
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}
.error-code__door {
  display: grid;
  place-items: center;
  width: 0.78em;
  height: 0.78em;
  border-radius: 50%;
  border: 2px solid rgba(var(--color-accent-rgb), 0.6);
  animation: error-door 3.2s ease-in-out infinite;
}
.error-code__door svg {
  width: 0.4em;
  height: 0.4em;
}
.error-tag {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}
.error-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin: var(--space-sm) 0 var(--space-md);
}
.error-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}
.error-404 .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.error-404 .btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.error-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.error-links a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
@keyframes error-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes error-door {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ==========================================================================
   LEGAL PAGE (polityka prywatności) - 1.11.2
   ========================================================================== */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--navbar-height) + var(--space-3xl)) 0 var(--space-4xl);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-align: center;
}
.legal-hero::after {
  content: '';
  position: absolute;
  inset: auto -15% -60% auto;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.legal-hero__tag {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}
.legal-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: #fff;
  margin: var(--space-sm) 0;
}
.legal-hero__meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
}
.legal-body {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--space-2xl) * -1);
  padding-bottom: var(--space-4xl);
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-2xl);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}
.legal-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  font-size: 1rem;
  color: var(--color-text);
}
.legal-card hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-xl) 0;
}
.legal-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-primary);
  margin: var(--space-lg) 0 var(--space-sm);
}
.legal-card > p:first-child strong {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--color-primary);
}
.legal-aside {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-lg));
}
.legal-aside__card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
}
.legal-aside__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--color-accent-rgb), 0.15);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.legal-aside__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.legal-aside__text {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.legal-aside__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  word-break: break-all;
}
.legal-aside__link svg { flex: none; color: var(--color-accent); }
.legal-aside__link:hover { color: var(--color-accent); }
.legal-aside__back {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-lg);
}
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */

.page-header {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: calc(var(--navbar-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}
.page-header-simple { padding-bottom: var(--space-2xl); }
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-meta {
  margin-top: var(--space-md);
  opacity: 0.7;
  font-size: 0.875rem;
}
.page-content {
  padding: var(--space-3xl) 0;
}
.page-back {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.rotate-180 { transform: rotate(180deg); }

/* Prose Styling */
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--color-primary);
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--space-md); line-height: 1.7; }
.prose ul, .prose ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}
.prose li { margin-bottom: var(--space-sm); }
.prose a { color: var(--color-accent); text-decoration: underline; }
.prose a:hover { color: var(--color-primary); }

/* ==========================================================================
   EXIT POPUP
   ========================================================================== */

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.exit-popup.active { opacity: 1; visibility: visible; }
.exit-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.exit-popup-content {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.exit-popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}
.exit-popup-close:hover { color: var(--color-text); }
.exit-popup-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.exit-popup-text {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}
.exit-popup-form .form-group { margin-bottom: var(--space-md); }
.exit-popup-form input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  text-align: center;
}

/* ==========================================================================
   CONTACT FORM 7 STYLES
   ========================================================================== */

/* CF7 Reset & Layout */
.cf7-form-wrapper .wpcf7-form p {
  margin: 0;
}
.cf7-form-wrapper .wpcf7-form-control-wrap {
  display: block;
}

/* Form Groups - tight spacing */
.cf7-form-wrapper .form-group {
  margin-bottom: 0.75rem !important;
}
.cf7-form-wrapper .form-group > label {
  display: block !important;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px !important;
}

/* Inputs */
.cf7-form-wrapper input[type="text"],
.cf7-form-wrapper input[type="email"],
.cf7-form-wrapper input[type="tel"],
.cf7-form-wrapper textarea {
  width: 100% !important;
  padding: 0.85rem 1rem !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-size: 1.1rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}
.cf7-form-wrapper input:focus,
.cf7-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
}
.cf7-form-wrapper input::placeholder,
.cf7-form-wrapper textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}
.cf7-form-wrapper textarea {
  min-height: 100px;
  resize: vertical;
}

/* Submit Button - btn-primary style */
.cf7-form-wrapper input[type="submit"] {
  display: block !important;
  width: 100% !important;
  padding: 0.8rem 2rem !important;
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-accent) !important;
  border-radius: var(--radius-md) !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.25);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: 0.5rem;
}
.cf7-form-wrapper input[type="submit"]:hover {
  background: var(--color-primary) !important;
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.3);
}

/* Privacy Checkbox - inline row */
.cf7-form-wrapper .form-privacy {
  margin-bottom: 0.5rem !important;
}
.cf7-form-wrapper .form-privacy > label {
  display: none !important;
}
.cf7-form-wrapper .wpcf7-acceptance,
.cf7-form-wrapper .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.cf7-form-wrapper .wpcf7-acceptance .wpcf7-list-item label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.4;
}
.cf7-form-wrapper .wpcf7-acceptance input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  padding: 0 !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 3px !important;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.cf7-form-wrapper .wpcf7-acceptance a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Validation */
.cf7-form-wrapper .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 2px;
}
.cf7-form-wrapper .wpcf7-response-output {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  text-align: center;
}
.cf7-form-wrapper .wpcf7-mail-sent-ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  color: #16a34a;
}
.cf7-form-wrapper .wpcf7-validation-errors,
.cf7-form-wrapper .wpcf7-spam-blocked {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #dc2626;
}

/* Spinner */
.cf7-form-wrapper .wpcf7-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: cf7-spin 0.8s linear infinite;
  margin-left: var(--space-sm);
  vertical-align: middle;
}
@keyframes cf7-spin {
  to { transform: rotate(360deg); }
}

/* CF7 in Exit Popup */
.cf7-exit-form .wpcf7-form .form-group input {
  text-align: center;
}
.cf7-exit-form .wpcf7-acceptance {
  justify-content: center;
}

/* ==========================================================================
   HERO FORM - CF7 Overrides (white card, big inputs)
   ========================================================================== */
.hero-form__card .cf7-form-wrapper .wpcf7-form p {
  margin: 0 !important;
  line-height: 1;
}
.hero-form__card .cf7-form-wrapper .form-group {
  margin-bottom: 0.85rem !important;
}
.hero-form__card .cf7-form-wrapper .form-group > label {
  display: block !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--color-primary) !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-form__card .cf7-form-wrapper .wpcf7-form-control-wrap {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hero-form__card .cf7-form-wrapper input[type="text"],
.hero-form__card .cf7-form-wrapper input[type="email"],
.hero-form__card .cf7-form-wrapper input[type="tel"],
.hero-form__card .cf7-form-wrapper textarea {
  padding: 0.85rem 1rem !important;
  font-size: 1.1rem !important;
  background: #f5f3f7 !important;
  border: 1px solid rgba(92,56,135,0.15) !important;
}
.hero-form__card .cf7-form-wrapper input:focus,
.hero-form__card .cf7-form-wrapper textarea:focus {
  background: #fff !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15) !important;
}
.hero-form__card .cf7-form-wrapper input::placeholder,
.hero-form__card .cf7-form-wrapper textarea::placeholder {
  color: rgba(92,56,135,0.4) !important;
}

/* Hero: force all fields stacked (3 lines) */
.hero-form__card .cf7-form-wrapper .cf7-row {
  display: block !important;
}
.hero-form__card .cf7-form-wrapper .cf7-row .form-group {
  margin-bottom: 0.85rem !important;
}

/* Hero submit */
.hero-form__card .cf7-form-wrapper input[type="submit"] {
  padding: 0.8rem 2rem !important;
  font-size: 1rem !important;
}

/* Hero checkbox */
.hero-form__card .cf7-form-wrapper .form-privacy > label {
  display: none !important;
}
.hero-form__card .cf7-form-wrapper .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
}
.hero-form__card .cf7-form-wrapper .wpcf7-acceptance .wpcf7-list-item label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 0.75rem !important;
  color: var(--color-text-light) !important;
  line-height: 1.4 !important;
  cursor: pointer;
}
.hero-form__card .cf7-form-wrapper .wpcf7-acceptance input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin-top: 1px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  accent-color: var(--color-accent);
}

/* 1.11.4: hero card CF7 - compact and warm. Works for the default CF7
   markup (<p><label>Imię<br><input></label></p>) as well as .form-group. The
   old field colour (#f5f3f7, purple border) was left over from the base
   template and read lavender against the burgundy brand. */
.hero-form__card .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-form__card .wpcf7-form > p,
.hero-form__card .wpcf7-form > div:not(.hidden-fields-container) {
  margin: 0 !important;
}
.hero-form__card .wpcf7-form > p > label,
.hero-form__card .cf7-form-wrapper .form-group > label {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary) !important;
  line-height: 1.3 !important;
}
.hero-form__card .wpcf7-form > p > label br { display: none; }
.hero-form__card .wpcf7-form > p > label .wpcf7-form-control-wrap {
  display: block;
  margin-top: 5px;
}
.hero-form__card .cf7-form-wrapper input[type="text"],
.hero-form__card .cf7-form-wrapper input[type="email"],
.hero-form__card .cf7-form-wrapper input[type="tel"],
.hero-form__card .cf7-form-wrapper textarea {
  width: 100%;
  padding: 0.7rem 0.95rem !important;
  font-size: 1rem !important;
  text-transform: none;
  letter-spacing: 0;
  background: #faf6f3 !important;
  border: 1px solid rgba(var(--color-primary-rgb), 0.14) !important;
  border-radius: var(--radius-md, 10px) !important;
  color: var(--color-text) !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.hero-form__card .cf7-form-wrapper input:focus,
.hero-form__card .cf7-form-wrapper textarea:focus {
  background: #fff !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.2) !important;
  outline: none;
}
.hero-form__card .cf7-form-wrapper input::placeholder,
.hero-form__card .cf7-form-wrapper textarea::placeholder {
  color: rgba(var(--color-primary-rgb), 0.35) !important;
}
.hero-form__card .cf7-form-wrapper input[type="submit"] {
  width: 100%;
  padding: 0.85rem 1.5rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px -10px rgba(var(--color-primary-rgb), 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.hero-form__card .cf7-form-wrapper input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(var(--color-primary-rgb), 0.7);
}

/* Turnstile: out of the way at the top -> just above the submit button,
   slightly smaller. */
.hero-form__card .wpcf7-form > :has(.cf-turnstile, .wpcf7-turnstile),
.hero-form__card .wpcf7-form > .cf-turnstile,
.hero-form__card .wpcf7-form > .wpcf7-turnstile {
  order: 90;
}
.hero-form__card .wpcf7-form > :has(input[type="submit"]) { order: 100; }
.hero-form__card .wpcf7-form > .wpcf7-response-output { order: 110; }
.hero-form__card .cf-turnstile,
.hero-form__card .wpcf7-turnstile {
  transform: scale(0.9);
  transform-origin: left center;
  margin: -2px 0;
}

/* CF7 Layout Classes - use these divs in CF7 form template */
.cf7-form-wrapper .cf7-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.cf7-form-wrapper .cf7-col {
  flex: 1;
  min-width: 0;
}
.cf7-form-wrapper .cf7-col-full {
  flex: 0 0 100%;
}
.cf7-form-wrapper .cf7-col-half {
  flex: 0 0 calc(50% - var(--space-sm));
}
@media (max-width: 600px) {
  .cf7-form-wrapper .cf7-col-half {
    flex: 0 0 100%;
  }
}
.cf7-form-wrapper .cf7-field {
  margin-bottom: var(--space-md);
}
.cf7-form-wrapper .cf7-field:last-child {
  margin-bottom: 0;
}
.cf7-form-wrapper .cf7-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.cf7-form-wrapper .cf7-consent {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.5;
}
.cf7-form-wrapper .cf7-submit {
  margin-top: var(--space-md);
}

/* ==========================================================================
   CONTACT SECTION - CF7 Overrides (hero form untouched)
   ========================================================================== */

/* Dark card matching section */
.contact .contact-form-card {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff !important;
}
.contact .form-header { margin-bottom: 1.25rem; }
.contact .form-title {
  color: #fff !important;
  font-size: 1.6rem !important;
}
.contact .form-subtitle {
  color: rgba(255,255,255,0.7) !important;
}

/* Reset CF7 paragraphs */
.contact-form-card .cf7-form-wrapper .wpcf7-form p {
  margin: 0 !important;
  line-height: 1;
}

/* Form groups */
.contact-form-card .cf7-form-wrapper .form-group {
  margin-bottom: 1rem !important;
}
.contact-form-card .cf7-form-wrapper .form-group > label {
  display: block !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.85) !important;
  margin-bottom: 5px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-form-card .cf7-form-wrapper .wpcf7-form-control-wrap {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Large dark inputs */
.contact-form-card .cf7-form-wrapper input[type="text"],
.contact-form-card .cf7-form-wrapper input[type="email"],
.contact-form-card .cf7-form-wrapper input[type="tel"],
.contact-form-card .cf7-form-wrapper textarea {
  width: 100% !important;
  padding: 1rem 1.1rem !important;
  font-size: 1.15rem !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: var(--radius-md) !important;
  background: rgba(255,255,255,0.07) !important;
  color: #fff !important;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact-form-card .cf7-form-wrapper input::placeholder,
.contact-form-card .cf7-form-wrapper textarea::placeholder {
  color: rgba(255,255,255,0.4) !important;
}
.contact-form-card .cf7-form-wrapper input:focus,
.contact-form-card .cf7-form-wrapper textarea:focus {
  outline: none !important;
  background: rgba(255,255,255,0.1) !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.2) !important;
}

/* Two-column row: name | phone */
.contact-form-card .cf7-form-wrapper .cf7-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  margin-bottom: 0 !important;
}
.contact-form-card .cf7-form-wrapper .cf7-row .form-group {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 0;
  margin-bottom: 1rem !important;
}
@media (max-width: 500px) {
  .contact-form-card .cf7-form-wrapper .cf7-row .form-group {
    flex: 0 0 100%;
  }
}

/* Submit button - btn-primary */
.contact-form-card .cf7-form-wrapper input[type="submit"] {
  margin-top: 0.75rem !important;
  padding: 0.8rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-accent) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.25);
}
.contact-form-card .cf7-form-wrapper input[type="submit"]:hover {
  background: var(--color-primary) !important;
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.3);
}

/* Privacy checkbox */
.contact-form-card .cf7-form-wrapper .form-privacy {
  margin-bottom: 0.5rem !important;
  margin-top: 0.25rem !important;
}
.contact-form-card .cf7-form-wrapper .form-privacy > label {
  display: none !important;
}
.contact-form-card .cf7-form-wrapper .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
}
.contact-form-card .cf7-form-wrapper .wpcf7-acceptance .wpcf7-list-item label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.6) !important;
  line-height: 1.5 !important;
  cursor: pointer;
}
.contact-form-card .cf7-form-wrapper .wpcf7-acceptance input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin-top: 2px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  accent-color: var(--color-accent);
  cursor: pointer;
  border-radius: 3px;
}
.contact-form-card .cf7-form-wrapper .wpcf7-acceptance .wpcf7-list-item-label {
  flex: 1 !important;
}
.contact-form-card .cf7-form-wrapper .wpcf7-acceptance a {
  color: var(--color-accent) !important;
  text-decoration: underline;
}

/* Validation on dark bg */
.contact-form-card .cf7-form-wrapper .wpcf7-not-valid-tip {
  color: #f87171 !important;
}
.contact-form-card .cf7-form-wrapper .wpcf7-response-output {
  color: rgba(255,255,255,0.9) !important;
  border-color: rgba(255,255,255,0.2) !important;
}

/* ==========================================================================
   MOBILE MENU - styles in critical.css
   ========================================================================== */

/* ==========================================================================
   ICONS
   ========================================================================== */

.icon { vertical-align: middle; flex-shrink: 0; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   RESPONSIVE UX IMPROVEMENTS
   ========================================================================== */

/* Touch targets - ensure minimum 44px for accessibility */
@media (max-width: 768px) {
  .btn { min-height: 44px; }
  .hamburger { min-width: 44px; min-height: 44px; }
  .faq-question { min-height: 48px; }
  .social-link { min-width: 44px; min-height: 44px; }
  .contact-method { min-height: 60px; }
}

/* Image aspect ratios to prevent layout shifts */
.hero-bg-img { aspect-ratio: 16 / 9; }
.portfolio-card-img { aspect-ratio: 4 / 3; }

@media (max-width: 768px) {
  .hero-bg-img { aspect-ratio: 9 / 16; object-position: center; }
}

/* Very small screens (480px) */
@media (max-width: 480px) {
  :root {
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }

  .container { padding: 0 var(--space-md); }

  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.9375rem; }

  .btn { font-size: 0.875rem; padding: var(--space-md) var(--space-lg); }
  .btn-lg { padding: var(--space-md) var(--space-xl); font-size: 0.9375rem; }

  /* Hero mobile improvements */
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.9375rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats-numbers { gap: var(--space-lg); }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.6875rem; }

  /* Portfolio mobile */
  .portfolio-stats { padding: var(--space-md); }
  .portfolio-cta { padding: var(--space-lg); }
  .portfolio-cta-icon { width: 60px; height: 60px; }
  .portfolio-cta-icon svg { width: 32px; height: 32px; }

  /* Testimonials mobile */
  .testimonial-card { padding: var(--space-md); }
  .testimonial-content { font-size: 0.875rem; }

  /* Contact mobile */
  .contact-photo { max-width: 100%; margin: 0 auto; display: block; }
  .contact-photo-wrapper { text-align: center; }
  .contact-form-card { padding: var(--space-lg); }
  .contact-form-card input,
  .contact-form-card select,
  .contact-form-card textarea { max-width: 100%; }
  .form-title { font-size: 1.25rem; }

  /* Footer mobile */
  .footer { padding: var(--space-2xl) 0 0; }
  .footer-grid { gap: var(--space-xl); }
  .footer-heading { margin-bottom: var(--space-md); }
}

/* Smooth scrolling behavior for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #333;
  }

  .btn-primary {
    border: 2px solid var(--color-primary);
  }

  .service-card,
  .portfolio-card,
  .testimonial-card,
  .why-us-card {
    border: 2px solid currentColor;
  }
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */

.team {
  background: var(--color-bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.team-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-card-photo {
  transform: scale(1.05);
}

.team-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-initials {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.15);
}

/* Info bar - always visible at bottom */
.team-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  transition: opacity var(--transition-base);
}

.team-card-info .team-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px 0;
}

.team-card-info .team-card-role {
  font-size: 0.75rem;
  color: var(--color-accent);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hover overlay */
.team-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 3;
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.team-card:hover .team-card-info {
  opacity: 0;
}

.team-card-overlay .team-card-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-card-overlay .team-card-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.team-card-overlay .team-card-phone,
.team-card-overlay .team-card-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: #fff;
  font-size: 0.8125rem;
  transition: color var(--transition-fast);
}

.team-card-overlay .team-card-phone:hover,
.team-card-overlay .team-card-email:hover {
  color: var(--color-accent);
}

.team-card-overlay .team-card-phone svg,
.team-card-overlay .team-card-email svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Tablet */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .team-card-info .team-card-name {
    font-size: 0.875rem;
  }

  .team-card-info .team-card-role {
    font-size: 0.625rem;
  }

  /* On mobile - overlay visible on tap/focus */
  .team-card-overlay {
    padding: var(--space-md);
  }

  .team-card-overlay .team-card-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 3;
  }

  .team-card-overlay .team-card-phone span,
  .team-card-overlay .team-card-email span {
    display: none;
  }

  .team-card-overlay .team-card-contact {
    flex-direction: row;
    gap: var(--space-sm);
  }

  .team-card-overlay .team-card-phone,
  .team-card-overlay .team-card-email {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    justify-content: center;
  }

  .team-card-overlay .team-card-phone svg,
  .team-card-overlay .team-card-email svg {
    opacity: 1;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .team-grid {
    gap: var(--space-xs);
  }

  .team-card-info {
    padding: var(--space-sm);
  }

  .team-card-initials {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   FLOATING PHONE BUTTON
   ========================================================================== */

.floating-phone-btn {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity 0.3s ease;
}

.floating-phone-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  color: var(--color-primary);
}

.floating-phone-btn svg {
  flex-shrink: 0;
}

.floating-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.floating-phone-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}

.floating-phone-number {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Tablet */
@media (max-width: 992px) {
  .floating-phone-btn {
    bottom: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
  }

  .floating-phone-number {
    font-size: 1rem;
  }
}

/* Mobile - icon only */
@media (max-width: 768px) {
  .floating-phone-btn {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .floating-phone-text {
    display: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .preloader,
  .exit-popup,
  .floating-phone-btn,
  .footer-social { display: none !important; }
  .hero { min-height: auto; }
  .section { padding: var(--space-lg) 0; }
}

/* ==========================================================================
   THIRD PARTY OVERRIDES
   ========================================================================== */

/* Hide iubenda branding */
.iubenda-cs-brand-badge {
  display: none !important;
}

/* ==========================================================================
   NEW SECTIONS - RENTAL MANAGEMENT TEMPLATE
   ========================================================================== */

/* ==========================================================================
   HERO FORM SECTION
   ========================================================================== */

.hero-form {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--navbar-height) + var(--space-2xl)) 0 var(--space-3xl);
  overflow: hidden;
}

.hero-form__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-form__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Laptops are wider than the photo, so cover crops top/bottom - anchor near
     the top so Alina's face stays in frame (1.11.21). */
  object-position: center 18%;
}

/* Heaviest under the copy on the left, thinning out towards the photo: one flat
   wash over the whole hero buried the picture almost completely. Kept in sync
   with critical.css, which paints this before main.css arrives. */
.hero-form__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(var(--color-primary-rgb), 0.9) 0%,
    rgba(var(--color-primary-rgb), 0.74) 45%,
    rgba(var(--color-secondary-rgb), 0.52) 100%);
}

.hero-form__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-form__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-3xl);
  align-items: center;
}

/* Capped rather than left to fill the column: the headline ran the full width
   of the grid cell and finished on top of the face in the photo. */
.hero-form__text {
  color: var(--color-text-inverse);
  max-width: 620px;
}

.hero-form__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(var(--color-accent-rgb), 0.15);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--color-accent);
}

.hero-form__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  color: var(--color-text-inverse);
}

.hero-form__title .accent {
  color: var(--color-accent);
}

.hero-form__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

/* Kadr w treści - tylko dla stackowanego układu, patrz media query niżej. */
.hero-form__photo {
  display: none;
}

.hero-form__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-form__badge {
  text-align: center;
}

.hero-form__badge-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-accent);
  line-height: 1.2;
}

.hero-form__badge-value--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.2em;
}

.hero-form__badge-value--icon svg {
  width: 1.1em;
  height: 1.1em;
}

.hero-form__badge-label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Letter-by-letter "written" quotes (1.11.9, any [data-words]). Hidden only
   until main.js splits them, with the same 800ms CSS fallback as reveals. */
[data-words]:not(.is-split) > p {
  opacity: 0;
  animation: reveal-fallback 0.6s ease 800ms both;
}

[data-words] .w {
  display: inline-block;
  white-space: nowrap;
}

/* Letters start dim and light up one after another, with a short warm glow
   as the "pen" passes. Opacity, so it works on light and dark sections. */
[data-words] .ch {
  opacity: 0.2;
  transition: opacity 0.5s ease;
  transition-delay: calc(var(--i) * var(--ch-ms, 22ms));
}

[data-words].is-split cite,
[data-words].is-split ~ .testimonial-featured__author {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--n, 0) * var(--ch-ms, 22ms) + 0.15s);
}

[data-words].is-in .ch {
  opacity: 1;
  animation: quote-pen 0.9s ease both;
  animation-delay: calc(var(--i) * var(--ch-ms, 22ms));
}

[data-words].is-in cite,
[data-words].is-in ~ .testimonial-featured__author {
  opacity: 1;
  transform: none;
}

@keyframes quote-pen {
  0%   { text-shadow: 0 0 0 transparent; }
  30%  { text-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.9); }
  100% { text-shadow: 0 0 0 transparent; }
}


.hero-form__quote {
  font-style: italic;
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-accent);
  margin: 0;
}

.hero-form__quote p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.97);
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.hero-form__quote cite {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-style: normal;
}

/* Hero Form Card */
.hero-form__card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.hero-form__card-inner {
  padding: var(--space-2xl);
}

.hero-form__card-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.hero-form__card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.hero-form__card-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.hero-form__form-group {
  margin-bottom: var(--space-md);
}

.hero-form__form input,
.hero-form__form select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-form__form input:focus,
.hero-form__form select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.2);
}

.hero-form__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 18px;
  padding-right: var(--space-3xl);
}

.hero-form__submit {
  width: 100%;
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.hero-form__form-messages {
  margin-top: var(--space-md);
}

.hero-form__form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.hero-form__form-note svg {
  color: var(--color-accent);
}

.hero-form__quick-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.hero-form__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hero-form__phone:hover {
  color: var(--color-accent);
}

.hero-form__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-form__scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-inverse);
  text-decoration: none;
  transition: all var(--transition-base);
  animation: bounce 2s infinite;
}

.hero-form__scroll-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* 1.11.4: desktop hero starts higher (top-aligned, not centred) and the form
   card is tighter, so copy, badges, quote and the whole form fit the first
   screen. Same block in critical.css and main.css to avoid a shift. */
@media (min-width: 1025px) {
  .hero-form {
    align-items: flex-start;
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }
  .hero-form__grid { align-items: start; gap: var(--space-2xl); }
  .hero-form__text { padding-top: var(--space-md); }
  .hero-form__subtitle { margin-bottom: var(--space-lg); }
  .hero-form__card-inner { padding: var(--space-lg) var(--space-xl) var(--space-lg); }
  .hero-form__card-header { margin-bottom: var(--space-md); }
}

@media (min-width: 1025px) {
  .hero-form__badges {
    gap: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
  /* Clear break between the badges and the Google quote (1.11.14). */
  .hero-form__quote {
    margin-top: var(--space-3xl);
  }
  .hero-form__badge { text-align: left; }
  .hero-form__badge-value--icon { justify-content: flex-start; }
  .hero-form__card-title { font-size: 1.625rem; }
  .hero-form__quick-contact { padding-top: var(--space-md); margin-top: var(--space-md); }
}

/* Form card polish (all widths). */
.hero-form__card {
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.hero-form__card-subtitle {
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Hero Form Responsive */
@media (max-width: 1024px) {
  .hero-form__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-form__text {
    max-width: none;
  }

  /* Stackowany układ: tekst leży na całej szerokości zdjęcia, więc gradient
     musiał być tak gęsty, że z fotografii zostawał duch. Zamiast tego tło jest
     czystym bordo, a zdjęcie wraca niżej jako kadr, który faktycznie widać.
     Zsynchronizowane z critical.css. */
  .hero-form__overlay {
    background: linear-gradient(165deg,
      var(--color-primary) 0%,
      var(--color-primary-dark) 100%);
  }

  .hero-form__bg-img {
    display: none;
  }

  .hero-form__photo {
    display: block;
    margin: 0 0 var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  }

  .hero-form__photo-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .hero-form__card {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-form {
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    min-height: auto;
  }

  .hero-form__badges {
    gap: var(--space-lg);
  }

  .hero-form__badge-value {
    font-size: 1.5rem;
  }

  .hero-form__card-inner {
    padding: var(--space-xl);
  }

  .hero-form__scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  /* These two live in critical.css too, but main.css loads later with equal
     specificity and its unconditional rules were winning - so the intended
     small-phone sizes never applied. Restated here to actually take effect. */
  .hero-form__title {
    font-size: 1.75rem;
  }
  .hero-form__subtitle {
    font-size: 1rem;
  }

  /* The badge labels are long, and uppercase + letter-spacing pushed each one
     past the ~328px content width - so all three wrapped onto their own flex
     line at their own max-content width, leaving the values misaligned. A fixed
     3-column grid pins them to a shared baseline. */
  .hero-form__badges {
    display: grid;
    /* columns follow the badge count (2-4) instead of a fixed 3 */
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
  .hero-form__badge-value {
    font-size: 1.375rem;
  }
  .hero-form__badge-label {
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.35;
  }
}

/* ==========================================================================
   SOCIAL PROOF SECTION
   ========================================================================== */

.social-proof {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

/* Column count follows the number of stats (3 or 4) instead of a fixed 4,
   which left an empty column when one was removed. */
.social-proof__stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.social-proof__stat {
  text-align: center;
}

.social-proof__divider {
  display: none;
}

.social-proof__stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.social-proof__stat-value--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.1em;
}

.social-proof__stat-value--icon svg {
  width: 0.9em;
  height: 0.9em;
}

.social-proof__stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-proof__portals {
  text-align: center;
}

.social-proof__portals-label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.social-proof__portals-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.social-proof__portals-slider {
  display: flex;
  gap: var(--space-3xl);
  animation: scroll 20s linear infinite;
  width: max-content;
}

.social-proof__portal {
  flex-shrink: 0;
}

.social-proof__portal img {
  height: 32px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--transition-base);
}

.social-proof__portal:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .social-proof__stats {
    gap: var(--space-lg);
  }
  /* 4 stats (4th stat = 7th child, dividers sit between) -> 2x2 */
  .social-proof__stats:has(> :nth-child(7)) {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  /* 2-up leaves ~154px per column, and these labels are long enough to wrap to
     3 lines in it - which made the 2x2 ragged. One per row, value beside label. */
  /* 2x2 on phones (1.11.20): value on top, label under it, centred; the
     label is small and capped so long ones wrap to 2-3 even lines. */
  .social-proof__stats,
  .social-proof__stats:has(> :nth-child(7)) {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg) var(--space-md);
  }
  .social-proof__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: center;
  }
  .social-proof__stat-value {
    font-size: 1.75rem;
    margin-bottom: 0;
  }
  .social-proof__stat-value--icon {
    height: 1.1em;
  }
  .social-proof__stat-label {
    max-width: 150px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.78rem;
    line-height: 1.35;
  }
}

/* ==========================================================================
   PROBLEM-SOLUTION SECTION — Paired Rows Layout
   ========================================================================== */

.problem-solution {
  padding: var(--space-4xl) 0;
}

/* Column headers row */
.ps-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.ps-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
}
.ps-header--problem {
  background: rgba(220, 53, 69, 0.06);
  color: #b52d3a;
  border-left: 3px solid #dc3545;
}
.ps-header--solution {
  background: rgba(var(--color-primary-rgb), 0.06);
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
}
.ps-header__icon {
  display: flex;
  align-items: center;
}
.ps-header__icon--problem { color: #dc3545; }
.ps-header__icon--solution { color: var(--color-primary); }

/* Paired rows */
.ps-pairs {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}
.ps-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: stretch;
  animation-delay: var(--delay, 0s);
}
/* "Znane Ci scenariusze": problem slides in from the left, the arrow pops,
   then the answer comes in from the right (1.11.2). */
html.bt-reveal .ps-pair.reveal-up {
  transform: none;
}

.ps-pair > .ps-card,
.ps-pair > .ps-pair__arrow {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--transition-base);
}

html.bt-reveal .ps-pair:not(.revealed) > .ps-card--problem  { opacity: 0; transform: translateX(-28px); }
html.bt-reveal .ps-pair:not(.revealed) > .ps-pair__arrow    { opacity: 0; transform: scale(0.4); }
html.bt-reveal .ps-pair:not(.revealed) > .ps-card--solution { opacity: 0; transform: translateX(28px); }

.ps-pair.revealed > .ps-card--problem  { transition-delay: var(--delay, 0s); }
.ps-pair.revealed > .ps-pair__arrow    { transition-delay: calc(var(--delay, 0s) + 0.25s); }
.ps-pair.revealed > .ps-card--solution { transition-delay: calc(var(--delay, 0s) + 0.4s); }

.ps-pair__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.ps-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ps-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ps-card--problem {
  border-left: 3px solid rgba(220, 53, 69, 0.4);
}
.ps-card--solution {
  border-left: 3px solid rgba(var(--color-primary-rgb), 0.4);
}
.ps-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}
.ps-card--problem .ps-card__icon { color: #dc3545; }
.ps-card--solution .ps-card__icon { color: var(--color-primary); }
.ps-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.ps-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .ps-headers { grid-template-columns: 1fr; gap: var(--space-sm); }
  .ps-pair {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .ps-pair__arrow {
    transform: rotate(90deg);
    padding: var(--space-xs) 0;
  }
}

/* ==========================================================================
   SERVICE COMPARISON SECTION
   ========================================================================== */

.service-comparison {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

.sc-wrapper {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Section header above the table - must sit above the sticky mask */
.service-comparison .section-header {
  position: relative;
  z-index: 30;
  text-align: center;
}

/* Sticky area */
.sc-sticky-area {
  position: relative;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Sticky Header */
.sc-sticky-header {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-sm));
  z-index: 20;
  background: var(--color-bg);
  transition: box-shadow 0.3s ease;
}
.sc-sticky-header.is-stuck {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.sc-sticky-header::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: -1px;
  right: -1px;
  height: 200px;
  background: var(--color-bg);
  pointer-events: none;
  z-index: -1;
}
.sc-sticky-header__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  overflow: hidden;
}
.sc-sticky-header__spacer {
  background: var(--color-accent);
  padding: var(--space-lg);
}
.sc-sticky-header__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.sc-sticky-header__col--featured {
  background: var(--color-accent);
  color: #fff;
}
.sc-sticky-header__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}

/* Category Groups */
.sc-categories {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}
.sc-category__header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  background: var(--color-accent);
}
.sc-category__name {
  grid-column: 1 / 2;
  padding: var(--space-md) var(--space-lg);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}
.sc-category__cols {
  grid-column: 2 / 4;
  display: flex;
}
.sc-category__col-indicator {
  flex: 1;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}
.sc-category__col-indicator--featured {
  background: rgba(255, 255, 255, 0.15);
}

/* Feature Rows */
.sc-feature-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-top: 1px solid var(--color-border);
  transition: background 0.2s ease;
}
.sc-feature-row:hover {
  background: var(--color-bg-light);
}
.sc-feature-row__label {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.4;
}
.sc-feature-row__col {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-feature-row__col--featured {
  background: rgba(var(--color-primary-rgb), 0.03);
}
.sc-feature-row__col-label {
  display: none;
}
.sc-feature-row__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #28a745;
}
.sc-feature-row__check svg {
  stroke-width: 2.5;
}
.sc-feature-row__cross {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #dc3545;
}
.sc-feature-row__cross svg {
  stroke-width: 2.5;
}

/* Footer CTA */
.sc-footer {
  background: var(--color-bg);
  border-top: 2px solid var(--color-border);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.sc-footer__pricing {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
}
.sc-footer__spacer {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
}
.sc-footer__pricing-label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  font-style: italic;
}
.sc-footer__price-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  background: var(--color-bg-light);
  border-left: 1px solid var(--color-border);
}
.sc-footer__price-col--featured {
  background: rgba(var(--color-primary-rgb), 0.06);
}
.sc-footer__price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.3;
}
.sc-footer__price-note {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 2px;
}
.sc-footer__actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
}
.sc-footer__actions .sc-footer__spacer {
  background: var(--color-primary);
  border-radius: 0 0 0 var(--radius-xl);
}
.sc-footer__col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
}

/* Savings Stats Bar */
.sc-savings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-primary);
  border-radius: var(--radius-lg);
}
.sc-savings__item {
  text-align: center;
  color: var(--color-text-inverse);
}
.sc-savings__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.sc-savings__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}
.sc-savings__unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  opacity: 0.8;
}
.sc-savings__label {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.3;
}

/* --- Mobile: Compact 3-column layout --- */
@media (max-width: 768px) {
  .sc-wrapper {
    border-radius: var(--radius-lg);
  }

  /* Header: hide spacer, show 2 service columns */
  .sc-sticky-header__inner {
    grid-template-columns: 1fr 1fr;
  }
  .sc-sticky-header__spacer {
    display: none;
  }
  .sc-sticky-header__col {
    padding: var(--space-md) var(--space-sm);
  }
  .sc-sticky-header__title {
    font-size: 0.9rem;
  }

  /* Category headers: full-width banner */
  .sc-category__header {
    grid-template-columns: 1fr;
  }
  .sc-category__cols {
    display: none;
  }
  .sc-category__name {
    font-size: 0.75rem;
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    letter-spacing: 0.03em;
  }

  /* Feature rows: label + 2 compact icon columns in single row */
  .sc-feature-row {
    grid-template-columns: 1fr 56px 56px;
    padding: var(--space-sm) var(--space-md);
    align-items: center;
  }
  .sc-feature-row__label {
    padding: 0;
    font-size: 0.76rem;
    line-height: 1.35;
    font-weight: 500;
  }
  .sc-feature-row__col {
    padding: 0;
    justify-content: center;
  }
  .sc-feature-row__col--featured {
    background: none;
  }
  .sc-feature-row__col-label {
    display: none;
  }
  .sc-feature-row__check,
  .sc-feature-row__cross {
    width: 22px;
    height: 22px;
  }

  /* Footer pricing */
  .sc-footer__pricing {
    grid-template-columns: 1fr 1fr;
  }
  .sc-footer__pricing .sc-footer__spacer {
    display: none;
  }
  .sc-footer__price {
    font-size: 0.85rem;
  }
  .sc-footer__price-note {
    font-size: 0.7rem;
  }

  /* Footer actions */
  .sc-footer__actions {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-md);
    gap: var(--space-sm);
  }
  .sc-footer__actions .sc-footer__spacer {
    display: none;
  }
  .sc-footer__col {
    padding: 0;
  }
  .sc-footer__col .btn {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    padding: var(--space-sm) var(--space-xs);
    white-space: nowrap;
  }

  /* Savings bar */
  .sc-savings {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  .sc-savings__number {
    font-size: 1.5rem;
  }
  .sc-savings__label {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   FOR WHOM SECTION — Numbered List Layout
   ========================================================================== */

.for-whom {
  padding: var(--space-4xl) 0;
}

.for-whom__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.for-whom__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}
.for-whom__row:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.for-whom__row-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
  opacity: 0.5;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 4px;
}

.for-whom__row-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(var(--color-accent-rgb), 0.15);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.for-whom__row-content {
  flex: 1;
}

/* 1.11.13: line-art illustration in brand gold on the navy card. */
.for-whom__row {
  align-items: center;
}
.for-whom__row-art {
  flex: none;
  width: 190px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--color-accent-rgb), 0.18);
  overflow: hidden;
}
.for-whom__row-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.for-whom__row:hover .for-whom__row-art img {
  transform: scale(1.05);
}
.for-whom__list { max-width: 920px; }
@media (max-width: 640px) {
  .for-whom__row-art { width: 100%; max-width: 320px; }
}

.for-whom__row-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-xs);
}

.for-whom__row-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}

.for-whom__cta {
  text-align: center;
  padding-top: var(--space-xl);
}

.for-whom__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

@media (max-width: 640px) {
  .for-whom__row {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
    align-items: center;
  }
  .for-whom__row-number { display: none; }
}

/* ==========================================================================
   ENERGY CERTIFICATE SECTION
   ========================================================================== */

.energy-cert {
  padding: var(--space-4xl) 0;
  background: var(--color-primary);
  overflow: hidden;
}
.energy-cert__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* Image stack with SVG logo mask */
.energy-cert__images {
  position: relative;
}
.energy-cert__img-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
.energy-cert__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}
.energy-cert__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-accent);
  border-radius: var(--radius-lg);
}

/* Content */
.energy-cert__content {
  color: var(--color-text-inverse);
}
.energy-cert__content .section-tag {
  color: var(--color-accent);
}
.energy-cert__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-text-inverse);
  margin: var(--space-md) 0 var(--space-lg);
  line-height: 1.2;
}
.energy-cert__title .accent {
  color: var(--color-accent);
}
.energy-cert__text {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

/* Responsive */
@media (max-width: 900px) {
  .energy-cert__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .energy-cert__img-stack {
    max-width: 320px;
  }
  .energy-cert__content {
    text-align: center;
  }
  .energy-cert__text {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 600px) {
  .energy-cert__img-stack {
    max-width: 240px;
  }
}


/* ==========================================================================
   GUARANTEE SECTION
   ========================================================================== */

.guarantee {
  position: relative;
  padding: var(--space-4xl) 0;
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  overflow: hidden;
}

.guarantee__bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.guarantee .section-header--light .section-tag {
  color: var(--color-accent);
}

.guarantee .section-header--light .section-title {
  color: var(--color-text-inverse);
}

.guarantee .section-header--light .section-title .accent {
  color: var(--color-accent);
}

.guarantee .section-header--light .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.guarantee__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.guarantee__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--color-accent);
  transition: all var(--transition-base);
}

.guarantee__item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-left-color: var(--color-accent-hover);
}

.guarantee__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.guarantee__item-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.guarantee__item-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

/* Title left, trust badge right (1.11.2). */
.guarantee__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.guarantee__head .section-header {
  margin-bottom: 0;
}

.guarantee__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: var(--space-lg);
  max-width: 400px;
  margin: 0;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-accent);
}

.guarantee__badge-icon {
  flex-shrink: 0;
  color: var(--color-accent);
}

.guarantee__badge-content {
  text-align: left;
}

.guarantee__badge-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.guarantee__badge-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
  .guarantee__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .guarantee__grid {
    grid-template-columns: 1fr;
  }

  .guarantee__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .guarantee__badge {
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
  }
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.final-cta {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-inverse);
  text-align: center;
  overflow: hidden;
}

.final-cta__bg {
  position: absolute;
  inset: 0;
}

.final-cta__pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(var(--color-accent-rgb), 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 50%);
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.final-cta__title .accent {
  color: var(--color-accent);
}

.final-cta__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.final-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.final-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.final-cta__divider {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.final-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-inverse);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.final-cta__phone:hover {
  color: var(--color-accent);
}

.final-cta__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.final-cta__note svg {
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .final-cta__actions {
    flex-direction: column;
    gap: var(--space-md);
  }

  .final-cta__divider {
    display: none;
  }
}

/* ==========================================================================
   TESTIMONIALS ENHANCEMENTS
   ========================================================================== */

.author-property {
  display: block;
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-top: var(--space-xs);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
  /* CSS-driven fallback: these start at opacity:0 and only the JS
     IntersectionObserver adds .revealed. Under WP Rocket Delay JS main.js does
     not run until the visitor interacts, so the whole page - hero included -
     would sit invisible behind the preloader. This reveals everything at 800ms
     regardless. Trade-off: below-fold elements are already shown by the time
     you scroll to them, so their reveal no longer animates. Content being
     visible beats the effect. Matches miroslaw-dolinski. */
  animation: reveal-fallback 0.6s ease 800ms forwards;
}

@keyframes reveal-fallback {
  to { opacity: 1; transform: translate(0); }
}

/* 1.11.2: main.js adds html.bt-reveal as soon as it runs, which cancels the
   800ms CSS fallback above - from then on IntersectionObserver alone reveals,
   so sections below the fold really animate when scrolled to (before, the
   fallback had already shown everything and nothing ever moved). Without JS
   the fallback still shows the page. */
html.bt-reveal .reveal-up,
html.bt-reveal .reveal-left,
html.bt-reveal .reveal-right {
  animation: none;
}

/* Section headers: tag, title, subtitle come in one after another. */
html.bt-reveal .reveal-up:not(.revealed) > :is(.section-tag, .section-title, .section-subtitle) {
  opacity: 0;
  transform: translateY(16px);
}

.reveal-up > :is(.section-tag, .section-title, .section-subtitle) {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up > .section-title    { transition-delay: calc(var(--delay, 0s) + 0.12s); }
.reveal-up > .section-subtitle { transition-delay: calc(var(--delay, 0s) + 0.24s); }

.reveal-up {
  transform: translateY(28px);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

/* ==========================================================================
   NUMBERS SECTION - Clean Minimalist Counters
   ========================================================================== */

.numbers {
  background: var(--color-primary);
  padding: var(--space-4xl) 0;
}

/* Apartment photo under a burgundy wash (1.11.2). The photo drifts slightly
   slower than the page for depth; the wash keeps the white numbers readable. */
.numbers--photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.numbers__bg {
  position: absolute;
  inset: -8% 0;
  z-index: -1;
}
.numbers__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Blurred so the numbers stay readable; scaled so the soft edge never shows. */
  filter: blur(7px) saturate(1.1);
  transform: scale(1.12);
}
.numbers__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.86) 0%, rgba(var(--color-primary-rgb), 0.62) 50%, rgba(var(--color-primary-rgb), 0.88) 100%);
}

.numbers .section-tag {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

.numbers .section-title {
  color: #fff;
}

.numbers .section-title .accent {
  color: var(--color-accent);
}

/* 1.11.8: no tiles - four open columns split by fine gold rules, duotone
   icons in a ringed medallion, big serif numbers. */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--space-2xl);
}

.numbers-item {
  position: relative;
  display: flex;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
}
.numbers-item + .numbers-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(var(--color-accent-rgb), 0.55), transparent);
}

.numbers .numbers-item-inner,
.numbers .numbers-item-inner:hover {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
}

.numbers-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-lg);
  border-radius: 50%;
  color: var(--color-accent);
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.16) 0%, rgba(var(--color-accent-rgb), 0.04) 70%);
  border: 1px solid rgba(var(--color-accent-rgb), 0.55);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s ease;
}
.numbers-icon::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--color-accent-rgb), 0.35);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.numbers-icon svg {
  stroke-width: 1.5;
}
.numbers-item:hover .numbers-icon {
  transform: translateY(-4px);
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.28) 0%, rgba(var(--color-accent-rgb), 0.06) 70%);
}
.numbers-item:hover .numbers-icon::after {
  transform: rotate(90deg);
}

.numbers-value-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  margin-bottom: var(--space-sm);
}
.numbers-value {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.numbers-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: var(--color-accent);
}
.numbers-label {
  max-width: 220px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

@media (max-width: 960px) {
  .numbers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-xl);
  }
  .numbers-item:nth-child(odd)::before { display: none; }
}

@media (max-width: 480px) {
  .numbers-grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-lg);
  }
  .numbers-item::before { display: none; }
  .numbers-icon { width: 60px; height: 60px; margin-bottom: var(--space-md); }
  .numbers-value { font-size: 2.5rem; }
}

/* ==========================================================================
   COVERAGE SECTION - Service Areas
   ========================================================================== */

.coverage {
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.coverage-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-top: var(--space-2xl);
}

.coverage-map {
  position: relative;
}

/* OSM Map */
.coverage-osm-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 1;
}

.coverage-osm-map .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.coverage-osm-map .leaflet-popup-content {
  margin: 12px 16px;
  font-family: var(--font-body);
}

.coverage-osm-map .leaflet-popup-content b {
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.coverage-map-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.coverage-map-bg {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.coverage-map-svg {
  width: 100%;
  height: auto;
  color: var(--color-primary);
  opacity: 0.8;
}

.coverage-main-marker {
  position: absolute;
  top: 45%;
  left: 55%;
  transform: translate(-50%, -50%);
}

.coverage-marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  background: rgba(var(--color-accent-rgb), 0.2);
  border-radius: 50%;
  animation: coverage-pulse 2s ease-out infinite;
}

@keyframes coverage-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.coverage-marker-dot {
  position: relative;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #b89a6a 100%);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(var(--color-accent-rgb), 0.5);
  z-index: 1;
}

.coverage-marker-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: var(--space-sm);
  white-space: nowrap;
}

.coverage-marker-city {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.coverage-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.coverage-highlight {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.coverage-highlight-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #b89a6a 100%);
  border-radius: var(--radius-md);
  color: #fff;
}

.coverage-highlight-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.coverage-highlight-desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.coverage-areas-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.coverage-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.coverage-area-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.coverage-area-item:hover {
  background: var(--color-primary);
  transform: translateX(5px);
}

.coverage-area-item:hover .coverage-area-name,
.coverage-area-item:hover .coverage-area-count {
  color: #fff;
}

.coverage-area-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.coverage-area-count {
  font-size: 0.75rem;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.coverage-expansion {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.1) 0%, rgba(var(--color-accent-rgb), 0.05) 100%);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
  font-size: 0.9375rem;
}

.coverage-expansion svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .coverage-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .coverage-map {
    order: -1;
  }

  .coverage-map-visual {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .coverage-areas-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ENHANCED ANIMATIONS & EFFECTS
   ========================================================================== */

/* Staggered reveal delays */
.delay-0 { --delay: 0s; }
.delay-1 { --delay: 0.1s; }
.delay-2 { --delay: 0.2s; }
.delay-3 { --delay: 0.3s; }
.delay-4 { --delay: 0.4s; }
.delay-5 { --delay: 0.5s; }

/* Shine effect on hover */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.shine-effect:hover::after {
  left: 100%;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse animation for CTAs */
@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(var(--color-accent-rgb), 0); }
}

.btn-pulse {
  animation: gentle-pulse 2s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, #e8c99b 50%, var(--color-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Card hover lift effect */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(var(--color-primary-rgb), 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   UNIFIED MINIMALIST CARD SYSTEM
   ========================================================================== */

/* Base card style - clean, consistent across all sections */
.card-base {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-base:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--color-accent-rgb), 0.3);
}

/* Unified card hover - single consistent effect */
.testimonial-card,
.why-us-card,
.for-whom__card,
.guarantee__item,
.numbers-item-inner,
.coverage-area-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover,
.why-us-card:hover,
.for-whom__card:hover,
.numbers-item-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Accent border on hover - subtle premium touch */
.testimonial-card:hover,
.for-whom__card:hover {
  border-color: rgba(var(--color-accent-rgb), 0.4);
}

/* Icon container - unified style */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(var(--color-accent-rgb), 0.1);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  transition: background 0.3s ease;
}

.icon-circle:hover,
.card-base:hover .icon-circle {
  background: rgba(var(--color-accent-rgb), 0.15);
}

/* Dark section cards */
.section-dark .card-base {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-dark .card-base:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(var(--color-accent-rgb), 0.3);
}

/* ==========================================================================
   MINIMALIST FLOATING PHONE BUTTON
   ========================================================================== */

.floating-phone {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb), 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.floating-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--color-accent-rgb), 0.45);
}

.floating-phone svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  z-index: 9999;
}

/* ==========================================================================
   COLOR SWITCHER WIDGET
   ========================================================================== */

.color-switcher {
  position: fixed;
  bottom: calc(var(--space-xl) + 70px);
  right: var(--space-xl);
  z-index: 1001;
}

.color-switcher__toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.color-switcher__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.color-switcher__dialog {
  position: absolute;
  bottom: calc(100% + var(--space-md));
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.95);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.color-switcher__dialog.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.color-switcher__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.color-switcher__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.color-switcher__close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  font-size: 1.25rem;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.color-switcher__close:hover {
  background: rgba(0,0,0,0.05);
}

.color-switcher__presets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.color-switcher__preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xs);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.color-switcher__preset:hover {
  border-color: var(--color-text-light);
}

.color-switcher__preset.active {
  border-color: var(--color-accent);
  background: rgba(201,168,76,0.06);
}

.color-switcher__dots {
  display: flex;
  gap: 4px;
}

.color-switcher__dots span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

.color-switcher__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.color-switcher__subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.color-switcher__pickers {
  display: flex;
  gap: var(--space-md);
}

.color-switcher__picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.color-switcher__picker input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.color-switcher__picker input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-switcher__picker input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.color-switcher__picker span {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.color-switcher__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.color-switcher__copy:hover {
  background: var(--color-border);
}

.color-switcher__copy.copied {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.color-switcher__dots span {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .color-switcher {
    bottom: calc(var(--space-lg) + 60px);
    right: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .color-switcher {
    bottom: calc(var(--space-md) + 66px);
    right: var(--space-md);
  }

  .color-switcher__toggle {
    width: 42px;
    height: 42px;
  }

  .color-switcher__dialog {
    width: 260px;
    right: -8px;
  }
}

@media print {
  .color-switcher { display: none !important; }
}

/* ==========================================================================
   VSL SECTION - Bunny Stream, muted autoplay + "Włącz dźwięk" overlay
   (1.11.0, Budzyk pattern - see template-parts/sections/vsl/vsl.php)
   ========================================================================== */

.vsl {
  padding: var(--space-4xl) 0;
}

.vsl__header {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

/* Two steps above the frame: 1 watch (now) -> 2 book a call (link to form). */
.vsl__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin: 0 auto var(--space-xl);
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.vsl__step,
.vsl__step a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-primary);
  text-decoration: none;
}

.vsl__step a:hover {
  color: var(--color-accent-hover, var(--color-accent));
}

.vsl__step b {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
}

.vsl__step--now b {
  background: var(--color-accent);
  color: var(--color-primary);
}

.vsl__step--next b {
  border: 1px solid var(--color-accent);
  color: var(--color-primary);
}

/* Soft ripple on step 2: that is where we want them to end up. */
.vsl__step--next b::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--color-accent);
  animation: vsl-step 2.4s ease-out infinite;
}

@keyframes vsl-step {
  0%   { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(1.9); opacity: 0; }
}

.vsl__step + .vsl__step::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-border);
  flex: none;
}

.vsl__player {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: var(--vsl-ratio, 16 / 9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

/* Vertical/square cuts stay phone-width, otherwise a 9:16 video would be
   ~1600px tall on desktop. */
.vsl__player--tall {
  max-width: 420px;
}

.vsl__poster-img,
.vsl__poster-empty {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vsl__poster-empty {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

/* The Bunny frame sits over the poster and fades in once the film moves. */
.vsl__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.vsl__player.is-live .vsl__frame,
.vsl__player noscript .vsl__frame {
  opacity: 1;
}

/* Spinner between "player requested" and "film moving". */
.vsl__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vsl__player.is-loading:not(.is-live) .vsl__loader {
  opacity: 1;
  animation: vsl-spin 0.9s linear infinite;
}

@keyframes vsl-spin {
  to { transform: rotate(360deg); }
}

/* Overlay covers the whole frame: a click anywhere turns the sound on. */
.vsl__sound {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.06) 30%, rgba(0,0,0,0.12) 100%);
  transition: opacity 0.28s ease;
}

.vsl__sound.is-gone {
  opacity: 0;
  pointer-events: none;
}

.vsl__sound:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.vsl__sound-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease;
  animation: vsl-sound 2.4s cubic-bezier(.4, 0, .6, 1) infinite;
}

.vsl__sound-pill svg {
  flex: none;
  color: var(--color-accent);
}

.vsl__sound:hover .vsl__sound-pill,
.vsl__sound:focus-visible .vsl__sound-pill {
  animation-play-state: paused;
  transform: translate(-50%, -50%) scale(1.05);
}

.vsl__sound-short {
  display: none;
}

@keyframes vsl-sound {
  0%   { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0.75); }
  70%  { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 16px rgba(255,255,255,0); }
  100% { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0); }
}

.vsl__cta {
  margin-top: var(--space-2xl);
  text-align: center;
}

/* Button under the film: soft pulse ring + arrow nudging forward. */
.vsl__cta .btn {
  animation: vsl-cta 2.8s cubic-bezier(.4, 0, .6, 1) infinite;
}

.vsl__cta .btn svg {
  animation: vsl-cta-arrow 1.6s ease-in-out infinite;
}

.vsl__cta .btn:hover,
.vsl__cta .btn:focus-visible,
.vsl__cta .btn:hover svg,
.vsl__cta .btn:focus-visible svg {
  animation-play-state: paused;
}

@keyframes vsl-cta {
  0%   { box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(var(--color-primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0); }
}

@keyframes vsl-cta-arrow {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}

@media (max-width: 768px) {
  .vsl {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 640px) {
  .vsl__steps {
    font-size: 0.875rem;
    gap: var(--space-sm) var(--space-md);
  }
  /* Steps wrap to two lines; the connector would dangle at the start of line 2. */
  .vsl__step + .vsl__step::before {
    display: none;
  }
  .vsl__sound-long {
    display: none;
  }
  .vsl__sound-short {
    display: inline;
  }
  .vsl__sound-pill {
    min-height: 44px;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    gap: 0.45rem;
  }
  .vsl__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsl__sound-pill,
  .vsl__cta .btn,
  .vsl__cta .btn svg,
  .vsl__step--next b::after {
    animation: none;
  }
  .vsl__step--next b::after {
    opacity: 0;
  }
}

/* ==========================================================================
   SHORTS SECTION - copy + one tall phone with a vertical video
   ========================================================================== */

.shorts {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shorts .container {
  position: relative;
  z-index: 1;
}

.shorts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .shorts__grid {
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: var(--space-4xl);
  }
}

.shorts__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
}

.shorts__lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
  margin-bottom: var(--space-xl);
}

.shorts__lead strong {
  color: #fff;
}

.shorts__adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 560px) {
  .shorts__adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shorts__adv {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.shorts__adv:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(var(--color-accent-rgb), 0.5);
}

.shorts__adv-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(var(--color-accent-rgb), 0.16);
  color: var(--color-accent);
  border-radius: var(--radius-md);
}

.shorts__adv-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  margin-bottom: 3px;
  color: #fff;
}

.shorts__adv-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

.shorts__cta {
  margin-top: var(--space-sm);
}

.shorts__content .shorts__cta.btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.shorts__content .shorts__cta.btn-primary:hover {
  background: var(--color-bg-light);
}

/* The phone: height-driven so it fills the column, width follows from 9:16. */
.shorts__stage {
  display: flex;
  justify-content: center;
}

.shorts__phone {
  position: relative;
  height: clamp(480px, 78vh, 760px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: 36px;
  background: #0b1118;
  border: 2px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  overflow: hidden;
}

.shorts__phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
}

.shorts__phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 3;
}

.shorts__video,
.shorts__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shorts__poster {
  z-index: 1;
  transition: opacity var(--transition-base);
}

.shorts__phone.is-playing .shorts__poster,
.shorts__phone.is-loaded .shorts__poster {
  opacity: 0;
  pointer-events: none;
}

/* Keeps the social pills and the scrubber legible over bright footage. */
.shorts__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 45%, transparent 100%);
  pointer-events: none;
}

.shorts__empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  color: rgba(255,255,255,0.65);
  font-size: 0.8125rem;
  text-align: center;
  padding: var(--space-xl);
}

.shorts__empty svg {
  color: var(--color-accent);
}

.shorts__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #fff;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.shorts__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(0,0,0,0.62);
}

.shorts__ico {
  display: block;
  line-height: 0;
}

.shorts__ico--pause {
  display: none;
}

.shorts__phone.is-playing .shorts__ico--play {
  display: none;
}

.shorts__phone.is-playing .shorts__ico--pause {
  display: block;
}

/* While it plays the button only appears on hover/focus, so it stops covering
   the footage - paused, it stays up as the affordance to start it. */
.shorts__phone.is-playing .shorts__play {
  opacity: 0;
  pointer-events: none;
}

.shorts__phone.is-playing:hover .shorts__play,
.shorts__play:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.shorts__mute {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.shorts__mute:hover {
  background: rgba(0,0,0,0.68);
  transform: scale(1.06);
}

.shorts__vol {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.shorts__phone:not(.is-sound-on) .shorts__vol--on,
.shorts__phone.is-sound-on .shorts__vol--off {
  display: none;
}

/* Social pills ride over the lower third of the video, above the scrubber. */
.shorts__socials {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 6;
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 var(--space-md);
}

.shorts__social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.shorts__social:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.24);
}

.shorts__social svg {
  color: var(--color-accent);
}

/* Scrubber - hit area is 22px tall, the visible track is 4px. */
.shorts__progress {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: 12px;
  z-index: 7;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.shorts__progress-track {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.3);
  transition: height var(--transition-fast);
}

.shorts__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

.shorts__progress-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: var(--radius-full);
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.shorts__progress:hover .shorts__progress-track,
.shorts__progress.is-scrubbing .shorts__progress-track {
  height: 6px;
}

.shorts__progress:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

@media (max-width: 1023px) {
  .shorts__phone {
    height: clamp(440px, 70vh, 620px);
  }
}

@media (max-width: 480px) {
  .shorts__socials {
    bottom: 44px;
    gap: 6px;
  }
  .shorts__social {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   VSL NUDGE - floating message pointing at the film
   ========================================================================== */

/* Hugs its content and stays right-anchored, so the close button sits on the
   pill's own corner instead of drifting to the far edge of the screen. */
.vsl-nudge {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 990;
  width: max-content;
  max-width: min(330px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.vsl-nudge.is-visible {
  opacity: 1;
  transform: none;
}

/* Dimmed, not removed, while the player is on screen. */
.vsl-nudge.is-muted {
  opacity: 0.2;
  pointer-events: none;
}

.vsl-nudge__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: 1px solid rgba(var(--color-accent-rgb), 0.45);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  color: var(--color-text-inverse);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.vsl-nudge__link:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 36px rgba(0,0,0,0.38);
}

.vsl-nudge__avatar {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

/* Imagify wraps the <img> in a <picture>, and a bare <picture> has no height for
   object-fit to crop against - the photo then renders at its natural ratio and
   spills out of the circle. So the crop lives on this frame (overflow) and both
   the wrapper and the img are told to fill it. The badge stays outside the
   frame, or the same overflow would clip it. */
.vsl-nudge__avatar-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.vsl-nudge__avatar-frame picture,
.vsl-nudge__avatar-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The pulse rides on the avatar rather than the pill, or a 330px-wide box would
   throw a 330px-wide halo across the corner. */
.vsl-nudge__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.45);
  animation: vsl-nudge-pulse 2.8s ease-out infinite;
}

@keyframes vsl-nudge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(var(--color-accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0); }
}

.vsl-nudge__badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.vsl-nudge__badge svg {
  width: 10px;
  height: 10px;
  margin-left: 1px;
}

.vsl-nudge__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.vsl-nudge__text {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
}

.vsl-nudge__meta {
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--color-accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vsl-nudge__arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.vsl-nudge__link:hover .vsl-nudge__arrow {
  transform: translateX(3px);
}

.vsl-nudge__close {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 0;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.vsl-nudge__close:hover {
  background: var(--color-accent);
  color: #fff;
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  .vsl-nudge {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
  .vsl-nudge__link {
    gap: 9px;
    padding: 6px 12px 6px 6px;
  }
  .vsl-nudge__avatar {
    width: 42px;
    height: 42px;
  }
  .vsl-nudge__text {
    font-size: 0.875rem;
  }
  .vsl-nudge__meta {
    font-size: 0.625rem;
  }
}

/* Below ~360px the second line has nowhere to go without wrapping the pill. */
@media (max-width: 360px) {
  .vsl-nudge__meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsl-nudge__avatar::after {
    animation: none;
  }
}

/* ==========================================================================
   VSL REMINDER - CTA card that arrives part-way through the film
   ========================================================================== */

/* Left corner on purpose: the right one belongs to the nudge, the call button
   and the colour switcher, and this card is tall enough to sit on all three. */
.vsl-reminder {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 991;
  width: max-content;
  max-width: min(340px, calc(100vw - 32px));
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: 1px solid rgba(var(--color-accent-rgb), 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0,0,0,0.38);
  color: var(--color-text-inverse);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

/* The class below sets a display, so the hidden attribute needs saying twice. */
.vsl-reminder[hidden] {
  display: none;
}

.vsl-reminder.is-visible {
  opacity: 1;
  transform: none;
}

.vsl-reminder__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0 var(--space-lg) 6px 0;
}

.vsl-reminder__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  margin: 0 0 var(--space-md);
}

.vsl-reminder__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.vsl-reminder__cta {
  justify-content: center;
  width: 100%;
  background: var(--color-accent);
  color: var(--color-primary);
}

.vsl-reminder__cta:hover {
  background: #fff;
  color: var(--color-primary);
}

.vsl-reminder__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-inverse);
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--transition-base);
}

.vsl-reminder__phone:hover {
  color: var(--color-accent);
}

.vsl-reminder__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  color: var(--color-text-inverse);
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}

.vsl-reminder__close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  .vsl-reminder {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: var(--space-md);
  }
  /* Guzik i numer w jednej linii, dopóki oba się mieszczą - przy dłuższej
     etykiecie tekst łamał się na trzy linie zamiast zejść niżej. Krótkie
     etykiety zostają obok siebie, dłuższe spychają numer do własnego wiersza. */
  .vsl-reminder__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
  }
  .vsl-reminder__cta {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .vsl-reminder__cta span {
    white-space: nowrap;
  }
  .vsl-reminder__phone {
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
  }
}

/* ==========================================================================
   ANCHOR HIT - the form a "#contact" button just scrolled to
   ========================================================================== */

/* The contact section opens with a photo and phone numbers, so every CTA lands
   on the form itself (data-anchor-target). A short ring says so out loud. */
.is-anchor-hit .contact-form-card {
  animation: anchor-hit 2.2s ease-out;
}

@keyframes anchor-hit {
  0%       { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0); }
  20%, 55% { box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.85); }
  100%     { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
  .is-anchor-hit .contact-form-card {
    animation: none;
  }
}

/* ==========================================================================
   CONTACT - brand mark in the background (1.11.8)
   ========================================================================== */

.contact {
  position: relative;
  /* clip, not hidden: hidden makes .contact a scroll container and kills the
     sticky form below. */
  overflow: clip;
  isolation: isolate;
}
.contact > .container {
  position: relative;
  z-index: 1;
}
.contact__mark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  z-index: 0;
  width: clamp(280px, 34vw, 520px);
  color: var(--color-accent);
  opacity: 0.09;
  pointer-events: none;
  animation: contact-mark 14s ease-in-out infinite;
}
.contact__mark svg {
  width: 100%;
  height: auto;
  display: block;
}
.contact__glow {
  position: absolute;
  z-index: 0;
  top: -20%;
  left: -10%;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.12) 0%, transparent 60%);
  pointer-events: none;
}
@keyframes contact-mark {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-1.5deg); }
}
@media (max-width: 768px) {
  .contact__mark { right: -60px; bottom: -40px; opacity: 0.07; }
}
@media (prefers-reduced-motion: reduce) {
  .contact__mark { animation: none; }
}


.testimonial-featured__text p { margin: 0; }

/* ==========================================================================
   TWOJE OPCJE - build-in animation (1.11.15, main.js initComparisonAnim)
   ========================================================================== */

.sc-anim .sc-category__header,
.sc-anim .sc-feature-row,
.sc-anim .sc-feature-row__check,
.sc-anim .sc-feature-row__cross,
.sc-footer.sc-anim .sc-footer__pricing,
.sc-footer.sc-anim .sc-footer__actions {
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-anim:not(.is-in) .sc-category__header {
  opacity: 0;
  transform: translateX(-28px);
}

.sc-anim:not(.is-in) .sc-feature-row {
  opacity: 0;
  transform: translateY(16px);
}
.sc-anim.is-in .sc-feature-row {
  transition-delay: calc(var(--r, 0) * 80ms + 150ms);
}

/* Ticks pop with a small overshoot, crosses just fade in - right after
   their row lands. */
.sc-anim:not(.is-in) .sc-feature-row__check {
  opacity: 0;
  transform: scale(0.2) rotate(-25deg);
}
.sc-anim:not(.is-in) .sc-feature-row__cross {
  opacity: 0;
}
.sc-anim.is-in .sc-feature-row__check {
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.34, 1.7, 0.5, 1);
  transition-delay: calc(var(--r, 0) * 80ms + 420ms);
}
.sc-anim.is-in .sc-feature-row__cross {
  transition-delay: calc(var(--r, 0) * 80ms + 380ms);
}
.sc-anim.is-in .sc-feature-row__col--featured .sc-feature-row__check {
  transition-delay: calc(var(--r, 0) * 80ms + 520ms);
}

.sc-footer.sc-anim:not(.is-in) .sc-footer__pricing,
.sc-footer.sc-anim:not(.is-in) .sc-footer__actions {
  opacity: 0;
  transform: translateY(20px);
}
.sc-footer.sc-anim.is-in .sc-footer__actions {
  transition-delay: 0.2s;
}

/* Services on phones: arrows under the swipe row (1.11.21). Light section,
   so the round buttons get the primary colour instead of the dark-bg style. */
.services-nav {
  display: none;
}
@media (max-width: 640px) {
  .services-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }
  .services-nav .slider-btn {
    border-color: rgba(var(--color-primary-rgb), 0.25);
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.12);
  }
  .services-nav .slider-btn:hover:not(:disabled) {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
}

/* Horizontal sliders must not move vertically (1.11.22): overflow-x:auto
   turns overflow-y to auto too, and the few px kept for the card lift / the
   reveal slide-up let phones wiggle the row up and down. */
.testimonials-track {
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}
@media (max-width: 640px) {
  .services-grid {
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }
  /* Inside a swipe row the cards do not slide up on reveal - only fade. */
  .services-grid > .reveal-up,
  .testimonials-track > .reveal-up {
    transform: none !important;
  }
}

