/* Shared offer-page styles. Page 1759 components are loaded from offer/1759.css. */
/* Shared layout and visual rhythm for every ASTA offer detail page.
   The body classes keep these refinements away from editorial and utility pages. */
body.page.asta-offer-standard {
  --offer-max-width: 1240px;
  --offer-content-width: 1160px;
  --offer-gutter: clamp(20px, 4vw, 40px);
  --offer-card-radius: 16px;
  --offer-border: #e0e9dc;
  --offer-surface: var(--asta-color-surface-green);
  --offer-shadow: 0 12px 34px rgb(31 36 44 / 7%);
}

body.page.asta-offer-standard main.asta-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.page.asta-offer-standard .wp-block-post-content {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: clip;
  color: var(--asta-ink);
  font-size: 16px;
  line-height: 1.7;
}

body.page.asta-offer-standard .wp-block-post-content :is(h1, h2, h3, h4) {
  color: var(--asta-ink);
  text-wrap: pretty;
  letter-spacing: -.025em;
}

body.page.asta-offer-standard .wp-block-post-content :is(p, li) {
  text-wrap: pretty;
}

/* Full-bleed heroes share one height, content width, and title scale. */
body.page.asta-offer-standard .wp-block-post-content > .asta-hero-video {
  min-height: clamp(480px, 56vw, 700px);
  margin-inline: calc(50% - 50vw);
  padding: clamp(64px, 9vw, 116px) var(--offer-gutter);
  border-radius: 0;
}

body.page.asta-offer-standard .asta-hero-video__content {
  width: 100%;
  max-width: var(--offer-max-width);
}

body.page.asta-offer-standard .asta-hero-video__content :is(h1, h2) {
  max-width: 850px;
  margin-block: 0 22px;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 1.06;
  text-wrap: balance;
}

/* Older pages with breadcrumbs and a Gutenberg hero get the same full-width treatment. */
body.page.asta-offer-standard .wp-block-post-content > .asta-page-hero {
  width: 100vw;
  max-width: none;
  min-height: clamp(370px, 40vw, 540px);
  margin: 0 calc(50% - 50vw) clamp(36px, 5vw, 60px);
  padding: clamp(44px, 7vw, 88px) max(var(--offer-gutter), calc((100vw - var(--offer-max-width)) / 2));
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 88% 6%, rgb(71 160 19 / 12%), transparent 34%), linear-gradient(115deg, #f7faf5, #eef5eb);
}

body.page.asta-offer-standard .asta-page-hero :is(h1, h2) {
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
  text-wrap: balance;
}

body.page.asta-offer-standard .asta-page-hero > .wp-block-column {
  min-width: 0;
}

/* Give older Gutenberg sections and migrated Elementor-to-block layouts one grid. */
body.page.asta-offer-standard .wp-block-post-content > .asta-layout {
  width: 100%;
  max-width: var(--offer-max-width);
  margin: 0 auto;
  padding-inline: var(--offer-gutter);
}

body.page.asta-offer-standard .wp-block-post-content > .asta-section {
  width: min(calc(100% - var(--offer-gutter) - var(--offer-gutter)), var(--offer-max-width));
  margin: 0 auto;
  padding: clamp(38px, 5.4vw, 64px) 0;
  border-radius: 0;
}

body.page.asta-offer-standard .wp-block-post-content > .wp-block-spacer {
  height: clamp(24px, 3.5vw, 44px) !important;
}

body.page.asta-offer-standard .wp-block-post-content > :is(figure.wp-block-embed, figure.wp-block-image, .wp-block-gallery, p.has-large-font-size, .wp-block-columns.alignwide:not(.asta-page-hero)) {
  width: min(calc(100% - var(--offer-gutter) - var(--offer-gutter)), var(--offer-content-width));
  max-width: none;
  margin-inline: auto;
}

body.page.asta-offer-standard .ae-section,
body.page.asta-offer-standard .ae-section-sm {
  padding-block: clamp(48px, 6.4vw, 76px);
}

body.page.asta-offer-standard .ae-container {
  width: 100%;
  max-width: var(--offer-content-width);
  margin-inline: auto;
}

body.page.asta-offer-standard :is(.ae-grid-2, .ae-grid-3, .ae-grid-4, .ae-number-grid, .ae-route-grid, .ae-sector-grid, .ae-clients-grid, .ae-logo-grid, .ae-benefit-grid, .ae-steps-grid) {
  align-items: stretch;
  gap: clamp(16px, 2.3vw, 28px);
}

body.page.asta-offer-standard :is(.ae-grid-2, .ae-grid-3, .ae-grid-4, .ae-number-grid, .ae-route-grid, .ae-sector-grid, .ae-clients-grid, .ae-logo-grid, .ae-benefit-grid, .ae-steps-grid) > * {
  min-width: 0;
  height: 100%;
}

body.page.asta-offer-standard .wp-block-post-content :is(.ae-card, .ae-photo-card, .ae-offer-card, .ae-sector-card, .ae-trust-card, .ae-route-card, .ae-number-item, .ae-step-card, .ae-benefit-card, .asta-feature-card) {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--offer-border);
  border-radius: var(--offer-card-radius);
  box-shadow: var(--offer-shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

body.page.asta-offer-standard .wp-block-post-content :is(.ae-card, .ae-photo-card, .ae-offer-card, .ae-sector-card, .ae-trust-card, .ae-route-card, .ae-step-card, .ae-benefit-card, .asta-feature-card) {
  display: flex;
  flex-direction: column;
}

body.page.asta-offer-standard .wp-block-post-content :is(.ae-photo-card-img, .ae-photo-card-img img, .ae-photo-card figure img, .asta-feature-card > img, .asta-feature-card figure img) {
  max-width: 100%;
  border-radius: var(--offer-card-radius) var(--offer-card-radius) 0 0;
}

/* Uniform controls and enquiry panels. */
body.page.asta-offer-standard .wp-block-post-content :is(.wp-block-button__link, .ae-btn, .ae-button, .ae-cta, .flexpv-btn, .asta-form button, .asta-pv button) {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border-radius: 12px !important;
  line-height: 1.2;
  text-align: center;
  font-weight: 700;
}

body.page.asta-offer-standard .wp-block-post-content :is(.ae-btn, .ae-button, .ae-cta, .flexpv-btn) {
  padding-inline: 36px;
}

body.page.asta-offer-standard .wp-block-post-content :is(.ae-btn, .ae-button, .ae-cta)::after {
  display: inline-block;
  width: 0;
  max-width: 0;
  margin-inline-start: 0;
  overflow: hidden;
  content: "→";
  pointer-events: none;
  opacity: 0;
  transform: translateX(-.28em);
  vertical-align: -.04em;
  white-space: nowrap;
  font-weight: 700;
  transition: width .28s cubic-bezier(.2, .7, .2, 1), margin-inline-start .28s cubic-bezier(.2, .7, .2, 1), opacity .18s ease, transform .28s ease;
}

body.page.asta-offer-standard .wp-block-post-content :is(.ae-btn, .ae-button, .ae-cta):is(:hover, :focus-visible)::after {
  width: .95em;
  max-width: .95em;
  margin-inline-start: .48em;
  opacity: 1;
  transform: translateX(0);
}

body.page.asta-offer-standard .wp-block-post-content :is(.ae-btn, .ae-button, .ae-cta, .flexpv-btn) {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

@media (hover: hover) {
  body.page.asta-offer-standard .wp-block-post-content :is(.wp-block-button__link, .ae-btn, .ae-button, .ae-cta, .flexpv-btn, .asta-form button, .asta-pv button):hover {
    transform: none;
    filter: brightness(.97);
    box-shadow: 0 5px 14px rgb(31 36 44 / 13%);
  }

  body.page.asta-offer-standard .wp-block-post-content :is(.ae-card, .ae-photo-card, .ae-offer-card, .ae-sector-card, .ae-trust-card, .ae-route-card, .asta-feature-card):hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgb(31 36 44 / 11%);
  }
}

/* Wygląd formularza na ciemnej karcie: assets/components/form.css. */

/* Keep feature rows equal and readable, including the five-step Gutenberg row. */
body.page.asta-offer-standard .wp-block-post-content section.asta-section:has(.asta-feature-card) > .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
}

body.page.asta-offer-standard .wp-block-post-content section.asta-section:has(.asta-feature-card) > .wp-block-columns > .wp-block-column {
  width: auto;
  min-width: 0;
  margin: 0;
}

/* Older pages use nested main groups; center those contents on the same grid. */
body.page.asta-offer-standard .wp-block-post-content > main {
  width: min(calc(100% - var(--offer-gutter) - var(--offer-gutter)), var(--offer-max-width));
  max-width: none;
  margin: clamp(32px, 5vw, 64px) auto;
  padding: 0;
}

body.page.asta-offer-standard .wp-block-post-content > main :is(.wp-block-columns, .wp-block-gallery, .wp-block-embed) {
  max-width: 100%;
  border-radius: var(--offer-card-radius);
}

body.page.asta-offer-standard .wp-block-post-content :is(.ae-green-box, .ae-highlight-card, .ae-system-panel, .ae-final, .ae-hero-panel, .ae-process-panel) {
  border-radius: var(--offer-card-radius);
}

body.page.asta-offer-standard .wp-block-post-content :is(.ae-faq details, details.wp-block-details:not(.asta-faq-list > details):where(:not(.asta-illustrated-disclosure > details))) {
  padding: 18px 22px;
  border: 1px solid var(--offer-border);
  border-radius: 12px;
  background: var(--asta-color-white);
}

/* Keep the inspection FAQ details reset available to its page-specific layout. */
body.page.page-id-7952 .wp-block-post-content .ae-pv-service .ae-faq > details.wp-block-details {
  padding: 0;
  border: 1px solid var(--service-border);
  border-radius: 14px;
  background: var(--asta-color-white);
}

@media (max-width: 900px) {
  body.page.asta-offer-standard :is(.ae-grid-3, .ae-grid-4, .ae-sector-grid, .ae-number-grid, .ae-route-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page.asta-offer-standard .wp-block-post-content :is(.ae-grid-2, .ae-equal-row) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  body.page.asta-offer-standard .wp-block-post-content > .asta-hero-video {
    min-height: min(580px, 72svh);
    padding: 48px 20px;
  }

  body.page.asta-offer-standard .wp-block-post-content > .asta-hero-video:has(.asta-form) {
    padding-bottom: 80px;
  }

  body.page.asta-offer-standard .asta-hero-video__content :is(h1, h2) {
    font-size: clamp(2.35rem, 10.5vw, 3.4rem);
  }

  body.page.asta-offer-standard .wp-block-post-content > .asta-page-hero {
    min-height: 0;
    padding: 40px var(--offer-gutter) 48px;
    margin-bottom: 32px;
  }

  body.page.asta-offer-standard .wp-block-post-content > .asta-page-hero :is(h1, h2) {
    font-size: clamp(2.15rem, 9.5vw, 3.1rem);
  }

  body.page.asta-offer-standard .wp-block-post-content > .asta-layout {
    padding-inline: 20px;
  }

  body.page.asta-offer-standard .ae-section,
  body.page.asta-offer-standard .ae-section-sm {
    padding-block: 42px;
  }

  body.page.asta-offer-standard :is(.ae-grid-2, .ae-grid-3, .ae-grid-4, .ae-number-grid, .ae-route-grid, .ae-sector-grid, .ae-clients-grid, .ae-logo-grid, .ae-benefit-grid, .ae-steps-grid, .ae-equal-row) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  body.page.asta-offer-standard :is(.ae-clients-grid, .ae-logo-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.page.asta-offer-standard .wp-block-post-content > main {
    width: calc(100% - 40px);
    margin-block: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page.asta-offer-standard .wp-block-post-content :is(.ae-btn, .ae-button, .ae-cta, .flexpv-btn)::after {
    transition-duration: .01ms;
  }

  body.page.asta-offer-standard .wp-block-post-content :is(.ae-btn, .ae-button, .ae-cta, .flexpv-btn, .ae-card, .ae-photo-card, .ae-offer-card, .ae-sector-card, .ae-trust-card, .ae-route-card, .asta-feature-card) {
    transition-duration: .01ms;
  }
}

/* Fotowoltaika dla biznesu: one clear grid, quiet surfaces and consistent rhythm. */

/* Remove the old floating yellow illustration from this page. */

/* The five service cards use the same alignment and spacing as the page below. */

/* Keep the sector list as the sole soft band among the early offer sections. */

/* Cancel Gutenberg's implicit block gaps here; spacing is set deliberately below. */

/* Keep the green callouts clean and readable; remove the decorative circles. */

@media (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content .ae-business-lp .ae-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {

  body.page-id-1759 .wp-block-post-content > .asta-layout > .asta-pv {
    margin-block: 36px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > :is(.ae-section, .ae-section-sm) {
    padding-block: 46px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-lp :is(.ae-grid-2, .ae-grid-3, .ae-grid-4, .ae-step-strip, .ae-proof-layout) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-lp .ae-proof-photo img {
    height: auto;
    min-height: 0;
  }
}

/* Page 1759: remove Gutenberg flow gaps inside CSS grids and flatten nested
   section wrappers that were adding large, uneven vertical padding. */

/* Keep the legacy five-step Gutenberg section balanced at every breakpoint. */

/* Gutenberg applies a block-flow margin to later grid children. Reset it so
   cards, split panels and proof sections start on the same baseline. */

/* Gutenberg action blocks share one comfortable, centered button treatment. */

@media (max-width: 680px) {

  body.page-id-1759 .wp-block-post-content .ae-business-lp .ae-logo-grid > :last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-lp .ae-logo-grid > :last-child:nth-child(2n + 1) {
    width: min(100%, calc((100% - 16px) / 2));
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Business offer page: align the hero title to the form and keep the process
   inside a floating panel that connects all five steps on wide screens. */

/* Keep the Gutenberg process row editable: its columns can be added, removed,
   or reordered without a fixed five-step grid or manually numbered icons. */

/* Reserve the same icon and heading slots in every step card so variable title
   lengths never shift the illustration or the start of the text. */

/* Editorial redesign for the business photovoltaic page. */

@keyframes asta-details-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cohesive, full-width editorial system for the business offer page. */

@media (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {

  body.page-id-1759 .wp-block-post-content > .asta-layout > .asta-pv {
    width: calc(100% - 40px);
    margin-block: 32px 40px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-proof-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-logo-tile {
    min-height: 58px;
    padding: 6px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-logo-tile img {
    max-height: 42px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-logo-grid > :last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
}

/* Balance the business trust section header, portrait and client marks. */

@media (max-width: 680px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section:has(.ae-proof-layout) > .ae-container > .ae-title {
    max-width: 18ch;
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section:has(.ae-proof-layout) > .ae-container > .ae-subtitle {
    max-width: 58ch;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-proof-layout {
    gap: 30px;
    margin-top: 28px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-proof-panel h2 {
    max-width: 21ch;
  }

body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-logo-grid > :last-child:nth-child(3n + 1) {
    grid-column: 2 !important;
    justify-self: center;
    width: 100%;
  }
}

/* More editorial impact for the business offer without adding decorative clutter. */

@media (max-width: 680px) {

  body.page-id-1759 .wp-block-post-content > .asta-layout .asta-pv-page-cta {
    grid-template-columns: 1fr;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout .asta-pv-page-cta .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout .asta-pv-page-cta .wp-block-button,
  body.page-id-1759 .wp-block-post-content > .asta-layout .asta-pv-page-cta .wp-block-button__link {
    width: 100%;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-section .ae-proof-photo {
    width: min(100%, 310px);
    margin-inline: auto;
  }
}

@media (max-width: 540px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout .asta-realizations__inner {
    width: min(calc(100% - 32px), 1160px);
  }
}

/* Lightweight component carousel for the business offer page. */

@media (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-components-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-components-copy .ae-title,
  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-components-copy .ae-section-lead {
    max-width: 58ch;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-carousel {
    width: min(100%, 720px);
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-carousel {
    padding: 10px 9px 8px;
    border-radius: 19px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-stage {
    height: 336px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-slide {
    width: min(80%, 340px);
    min-height: 300px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-slide.is-prev {
    opacity: .2;
    transform: translate(-50%, -50%) translateX(-104%) rotateY(8deg) scale(.78);
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-slide.is-next {
    opacity: .2;
    transform: translate(-50%, -50%) translateX(104%) rotateY(-8deg) scale(.78);
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-poster {
    inset: 10px 10px 0;
    width: calc(100% - 20px);
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-art {
    height: 174px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-description {
    padding: 4px 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-slide,
  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-arrow,
  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-dots button {
    transition: none;
  }
}

/* Smoothly reveal sector descriptions through a small grid track, without JS height animation. */

/* Guide attention through the editable business process, one step at a time. */

@keyframes asta-process-line-progress {
  0% { opacity: 0; transform: scaleX(0); }
  8% { opacity: .9; }
  100% { opacity: .9; transform: scaleX(1); }
}

@keyframes asta-process-card-arrive {
  0%, 100% {
    border-color: var(--business-border);
    box-shadow: 0 8px 22px rgb(32 38 45 / 5%);
    transform: translateY(0) scale(1);
  }
  42% {
    border-color: rgb(71 160 19 / 70%);
    box-shadow: 0 14px 30px rgb(49 139 18 / 14%);
    transform: translateY(-6px) scale(1.018);
  }
}

@keyframes asta-process-step-pulse {
  0%, 100% {
    background: var(--asta-color-white);
    box-shadow: inset 0 0 0 3px var(--asta-color-white), 0 0 0 1px rgb(71 160 19 / 12%);
    color: var(--business-ink);
    transform: translateX(-50%) scale(1);
  }
  42% {
    background: var(--business-green);
    box-shadow: 0 0 0 5px rgb(71 160 19 / 14%), 0 0 18px rgb(71 160 19 / 36%);
    color: var(--asta-color-white);
    transform: translateX(-50%) scale(1.13);
  }
}

@media (max-width: 1000px) {

  @keyframes asta-process-step-pulse {
    0%, 100% {
      background: var(--asta-color-white);
      box-shadow: inset 0 0 0 3px var(--asta-color-white), 0 0 0 1px rgb(71 160 19 / 12%);
      color: var(--business-ink);
      transform: scale(1);
    }
    42% {
      background: var(--business-green);
      box-shadow: 0 0 0 5px rgb(71 160 19 / 14%), 0 0 18px rgb(71 160 19 / 36%);
      color: var(--asta-color-white);
      transform: scale(1.13);
    }
  }
}

/* Give the business FAQ a calm, one-question-per-row layout. */

/* Link the three system cards into one animated energy path. */

@keyframes asta-solution-energy-horizontal {
  to { background-position: 10px 0; }
}

@keyframes asta-solution-energy-down {
  to { background-position: 0 10px; }
}

@keyframes asta-solution-energy-node {
  0%, 72%, 100% { box-shadow: 0 0 0 7px rgb(71 160 19 / 6%); }
  84% { box-shadow: 0 0 0 11px rgb(71 160 19 / 13%), 0 0 24px rgb(71 160 19 / 24%); }
}

@media (min-width: 681px) and (max-width: 900px) {
  body.page-id-1759 #system-energii .ae-solution-grid {
    padding-bottom: 0;
    background: none;
  }

  body.page-id-1759 #system-energii .ae-solution-grid::before,
  body.page-id-1759 #system-energii .ae-solution-grid::after,
  body.page-id-1759 #system-energii .ae-solution-card::before,
  body.page-id-1759 #system-energii .ae-solution-card::after {
    display: none;
  }
}

@media (max-width: 680px) {
  body.page-id-1759 #system-energii .ae-solution-grid {
    padding-bottom: 72px;
    background: none;
  }

  body.page-id-1759 #system-energii .ae-solution-card::before,
  body.page-id-1759 #system-energii .ae-solution-card::after {
    display: none;
  }

  body.page-id-1759 #system-energii .ae-solution-grid::before {
    top: 0;
    right: auto;
    bottom: 24px;
    left: 50%;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(to bottom, var(--asta-color-green) 0 5px, #cfe3c8 5px 10px);
    transform: translateX(-50%);
    animation: asta-solution-energy-down 900ms linear infinite;
  }
}


/* Let the three component cards use the complete content grid. */

@keyframes asta-component-poster-float {
  0%, 100% { transform: translate3d(0, 2px, 0) rotateY(-3deg); }
  50% { transform: translate3d(0, -5px, 0) rotateY(3deg); }
}

@media (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-carousel {
    width: 100%;
    margin: 0;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-slide {
    width: min(34%, 340px);
    min-height: 360px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-art {
    height: 230px;
  }
}

@media (max-width: 600px) {
  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-stage {
    height: 380px;
    overflow: hidden;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-slide {
    width: min(82%, 340px);
    min-height: 330px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-slide.is-prev {
    opacity: .32;
    transform: translate(-50%, -50%) translateX(-112%) rotateY(8deg) scale(.84);
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-slide.is-next {
    opacity: .32;
    transform: translate(-50%, -50%) translateX(112%) rotateY(-8deg) scale(.84);
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-art {
    height: 220px;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-description {
    padding: 4px 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-slide {
    transition: opacity .65s ease, transform .65s ease;
  }

  body.page-id-1759 .wp-block-post-content .ae-business-redesign .ae-component-art:not(.is-loaded) .ae-component-poster {
    animation: none;
    will-change: auto;
  }
}

/* Keep the process labels lighter and aligned on two lines. */

/* Use matching existing ASTA icon assets for the expanded sector list. */

/* Give the energy flow more breathing room and a clearer inward pulse. */

@keyframes asta-solution-energy-converge {
  from { opacity: .72; transform: scaleX(1); }
  to { opacity: 1; transform: scaleX(.97); }
}

@keyframes asta-solution-energy-node-active {
  0%, 100% {
    border-color: #cfe3c8;
    box-shadow: 0 0 0 7px rgb(71 160 19 / 6%);
    text-shadow: 0 0 0 rgb(71 160 19 / 0%);
    transform: translateX(-50%) scale(.97);
  }
  48% {
    border-color: var(--asta-color-green);
    box-shadow: 0 0 0 12px rgb(71 160 19 / 13%), 0 0 30px rgb(71 160 19 / 28%);
    text-shadow: 0 0 12px rgb(71 160 19 / 45%);
    transform: translateX(-50%) scale(1.13);
  }
  68% {
    border-color: #76bd50;
    box-shadow: 0 0 0 8px rgb(71 160 19 / 8%), 0 0 20px rgb(71 160 19 / 18%);
    text-shadow: 0 0 6px rgb(71 160 19 / 28%);
    transform: translateX(-50%) scale(1.04);
  }
}

@media (max-width: 900px) {
  body.page-id-1759 #system-energii .ae-solution-grid {
    padding-bottom: 0;
  }
}

@media (max-width: 680px) {
  body.page-id-1759 #system-energii .ae-solution-grid {
    padding-bottom: 84px;
  }

  body.page-id-1759 #system-energii .ae-solution-grid::before {
    top: 0;
    right: auto;
    bottom: 28px;
    left: 50%;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(to bottom, var(--asta-color-green) 0 5px, #cfe3c8 5px 10px);
    transform: translateX(-50%);
    animation: asta-solution-energy-down 900ms linear infinite;
  }

  body.page-id-1759 #system-energii .ae-solution-grid::after {
    width: 58px;
    height: 58px;
    font-size: 30px;
  }
}

/* Trust section: ASTA Group heritage and lightweight client-logo marquees. */

@media (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-proof-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 42px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-proof-panel {
    grid-template-columns: minmax(0, 1fr) minmax(170px, .42fr);
  }
}

@media (max-width: 600px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-proof-layout {
    gap: 34px;
    margin-top: 30px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-proof-panel {
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: start;
    gap: 14px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-proof-copy h3 {
    font-size: clamp(1.45rem, 6.1vw, 1.85rem);
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-proof-copy > p {
    font-size: .9rem;
    line-height: 1.55;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-proof-group-logo {
    width: 100%;
    min-height: 48px;
    margin-top: 15px;
    padding: 10px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-proof-photo {
    max-width: 112px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-logo-board-head {
    margin-bottom: 16px;
  }

}

/* Remove the short horizontal links between the energy-system cards. */

/* Anchor thin, hollow water ripples to the energy node in the solution grid. */

@keyframes asta-energy-water-ripple {
  0% {
    border-color: rgb(71 160 19 / 38%);
    opacity: .62;
    transform: translateX(-50%) scale(.08);
  }
  78% {
    border-color: rgb(71 160 19 / 14%);
    opacity: .36;
  }
  100% {
    border-color: rgb(71 160 19 / 0%);
    opacity: 0;
    transform: translateX(-50%) scale(8);
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  body.page-id-1759 #system-energii .ae-solution-grid .ae-energy-water-ripple {
    display: none;
  }
}

@media (max-width: 680px) {
  body.page-id-1759 #system-energii .ae-solution-grid .ae-energy-water-ripple {
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-1759 #system-energii .ae-solution-grid .ae-energy-water-ripple {
    animation: none;
    display: none;
  }
}

/* Keep trust-section copy left aligned around Paweł's centered portrait and client marquees. */

@media (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-copy {
    width: 100%;
  }
}

@media (max-width: 600px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-showcase {
    gap: 32px;
    margin-top: 28px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-visual {
    gap: 0;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-portrait {
    width: min(150px, 41vw);
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-marquee {
    padding: 0;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-marquee .ae-logo-board-head {
    display: none;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-timeline-track {
    right: 20px;
    left: 48px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-marquee .ae-logo-board-head {
    display: none;
  }
}

/* Give the trust section a clearer hierarchy and let the portrait sit over a quiet gap in the marquee. */

@media (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-copy {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-copy h3,
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-copy > p,
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-copy .ae-proof-group-logo {
    grid-column: 1;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-copy .ae-proof-group-logo {
    justify-self: start;
    margin: 0;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-visual {
    min-height: 360px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-marquee .ae-logo-marquee-row {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      var(--asta-color-black) 3%,
      var(--asta-color-black) calc(50% - 165px),
      transparent calc(50% - 120px),
      transparent calc(50% + 120px),
      var(--asta-color-black) calc(50% + 165px),
      var(--asta-color-black) 97%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      var(--asta-color-black) 3%,
      var(--asta-color-black) calc(50% - 165px),
      transparent calc(50% - 120px),
      transparent calc(50% + 120px),
      var(--asta-color-black) calc(50% + 165px),
      var(--asta-color-black) 97%,
      transparent 100%
    );
  }
}

@media (max-width: 600px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-visual {
    min-height: 285px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-timeline-year {
    left: 48px;
  }

  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-marquee .ae-logo-marquee-row {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      var(--asta-color-black) 2%,
      var(--asta-color-black) calc(50% - 130px),
      transparent calc(50% - 92px),
      transparent calc(50% + 92px),
      var(--asta-color-black) calc(50% + 130px),
      var(--asta-color-black) 98%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      var(--asta-color-black) 2%,
      var(--asta-color-black) calc(50% - 130px),
      transparent calc(50% - 92px),
      transparent calc(50% + 92px),
      var(--asta-color-black) calc(50% + 130px),
      var(--asta-color-black) 98%,
      transparent 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-marquee .ae-logo-marquee-row {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

/* Keep the trust message compact, place the Group ASTA mark inside it, and align the portrait with the timeline. */

@media (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-visual {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-visual {
    min-height: 0;
  }
}

/* Keep the trust-section cutout portrait free of the old photo-card glow. */

/* Keep the logo marquee continuous behind the transparent portrait. */

/* A soft contact shadow under the cutout, without a halo around its outline. */

@media (max-width: 900px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-marquee .ae-logo-marquee-row {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--asta-color-black) 3%, var(--asta-color-black) 97%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0, var(--asta-color-black) 3%, var(--asta-color-black) 97%, transparent 100%) !important;
  }
}

@media (max-width: 600px) {
  body.page-id-1759 .wp-block-post-content > .asta-layout > .ae-business-lp > section.ae-trust-section .ae-trust-marquee .ae-logo-marquee-row {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--asta-color-black) 2%, var(--asta-color-black) 98%, transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0, var(--asta-color-black) 2%, var(--asta-color-black) 98%, transparent 100%) !important;
  }
}

/* Make the energy source a real control that can launch stronger water-like waves. */

@keyframes asta-energy-water-ripple-boost {
  0% {
    border-color: rgb(71 160 19 / 76%);
    opacity: .8;
    transform: translateX(-50%) scale(.08);
  }
  12% {
    border-color: rgb(71 160 19 / 52%);
    opacity: .7;
  }
  100% {
    border-color: rgb(71 160 19 / 0%);
    opacity: 0;
    transform: translateX(-50%) scale(15);
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  body.page-id-1759 #system-energii .ae-solution-grid .ae-energy-pulse-button {
    display: none;
  }
}

@media (max-width: 680px) {
  body.page-id-1759 #system-energii .ae-solution-grid .ae-energy-pulse-button {
    width: 58px !important;
    height: 58px !important;
    font-size: 30px;
  }

  body.page-id-1759 #system-energii .ae-solution-grid .ae-energy-water-ripple--burst {
    animation-name: asta-energy-water-ripple-boost-mobile;
  }
}

@keyframes asta-energy-water-ripple-boost-mobile {
  0% { border-color: rgb(71 160 19 / 76%); opacity: .8; transform: translateX(-50%) scale(.08); }
  100% { border-color: rgb(71 160 19 / 0%); opacity: 0; transform: translateX(-50%) scale(9); }
}


@media (prefers-reduced-motion: reduce) {
  body.page-id-1759 #system-energii .ae-solution-grid .ae-energy-pulse-button,
  body.page-id-1759 #system-energii .ae-solution-grid .ae-energy-water-ripple--burst { animation: none !important; }
}
