/*
Theme Name: ASTA Energy Blocks
Theme URI: https://www.asta-energy.pl/
Author: ASTA Energy
Description: Edytowalny motyw blokowy ASTA Energy.
Version: 1.1.0
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: asta-blocks
*/

:root {
  --asta-green: #47a013;
  --asta-dark-green: #356a29;
  --asta-ink: #1f242c;
  --asta-text: #12230e;
  --asta-pale: #f0f4f9;
  --asta-border: #e8e8e8;
  --asta-radius: 12px;
  --asta-radius-pill: 999px;
  --asta-footer-cta-overlap: clamp(120px, 10vw, 150px);
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/open-sans/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/open-sans/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { scroll-behavior: smooth; }
body { margin: 0; color: var(--asta-text); font-family: 'Open Sans', sans-serif; font-weight: 400; font-synthesis: none; }
*, *::before, *::after { box-sizing: border-box; }
a { text-underline-offset: .16em; }
img { max-width: 100%; height: auto; }
picture.asta-webp-picture { display: contents; }

header.wp-block-template-part:has(> .asta-header) { position: sticky; top: 0; z-index: 100; }
.asta-header { position: relative; z-index: 1; background: #fff; border-bottom: 1px solid var(--asta-border); }
.asta-header-inner { max-width: 1240px; margin: auto; padding: 16px 24px; display: flex; align-items: center; gap: 24px; }
.asta-header .wp-block-site-logo { flex: 0 0 auto; }
.asta-header .custom-logo { display: block; width: 158px; height: auto; }
.asta-header .wp-block-navigation { flex: 1 1 auto; }
.asta-header .wp-block-navigation__container { gap: clamp(12px, 1.8vw, 30px); font-weight: 600; }
.wp-block-button__link, .wp-block-search__button, .wp-block-file__button { border-radius: var(--asta-radius); font-weight: 600; }
.wp-block-button__link, .wp-block-search__button, .wp-block-file__button, .asta-form button, .asta-pv button, .asta-popup-trigger {
  position: relative; display: inline-flex; min-height: 48px; align-items: center; justify-content: center; vertical-align: middle;
  padding-block: 12px; border-radius: var(--asta-radius); line-height: 1.2; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wp-block-button__link { padding-inline: 36px; }
.asta-form button, .asta-pv button, .asta-popup-trigger { padding-inline: 34px; }
.wp-block-button__link:focus-visible, .wp-block-search__button:focus-visible, .wp-block-file__button:focus-visible, .asta-form button:focus-visible, .asta-pv button:focus-visible, .asta-popup-trigger:focus-visible, .asta-offer-card__bottom a:focus-visible { outline: 3px solid var(--asta-dark-green); outline-offset: 3px; }
.wp-block-button__link::after, .asta-form button::after, .asta-pv button::after, .asta-popup-trigger::after {
  display: inline-block; width: 0; max-width: 0; margin-inline-start: 0; overflow: hidden;
  content: "→"; opacity: 0; transform: translateX(-.28em); vertical-align: -.04em;
  white-space: nowrap; font-weight: 700; pointer-events: none;
  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;
}
.wp-block-button__link:hover::after, .wp-block-button__link:focus-visible::after,
.asta-form button:hover::after, .asta-form button:focus-visible::after,
.asta-pv button:hover::after, .asta-pv button:focus-visible::after,
.asta-popup-trigger:hover::after, .asta-popup-trigger:focus-visible::after {
  width: .95em; max-width: .95em; margin-inline-start: .48em; opacity: 1; transform: translateX(0);
}
.asta-header .asta-phone .wp-block-button__link::after {
  display: none;
  content: none;
}
.asta-header .asta-phone .wp-block-button__link { min-width: calc(12ch + 72px); }
@media (hover: hover) {
  .wp-block-button__link:hover, .wp-block-search__button:hover, .wp-block-file__button:hover, .asta-form button:hover, .asta-pv button:hover, .asta-popup-trigger:hover {
    filter: brightness(.96); box-shadow: 0 5px 14px rgb(31 36 44 / 13%);
  }
}
.asta-header .wp-block-button__link { white-space: nowrap; }
.asta-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.asta-header-contact { color: var(--asta-text); font-weight: 600; text-decoration: none; transition: color .18s ease; }
.asta-header-contact:hover { color: var(--asta-dark-green); text-decoration: underline; text-underline-offset: .2em; }
.asta-header-contact:focus-visible { outline: 2px solid var(--asta-dark-green); outline-offset: 4px; }
.asta-phone__rotator { position: relative; display: inline-block; width: 12ch; height: 1.3em; overflow: hidden; vertical-align: middle; }
.asta-phone__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(-120%); white-space: nowrap; animation: asta-phone-label-cycle 6s cubic-bezier(.22, .61, .36, 1) infinite; }
.asta-phone__label:nth-child(2) { animation-delay: -4s; }
.asta-phone__label:nth-child(3) { animation-delay: -2s; }
@keyframes asta-phone-label-cycle {
  0% { opacity: 0; transform: translateY(-120%); }
  1% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(0); }
  33.333% { opacity: 0; transform: translateY(120%); }
  100% { opacity: 0; transform: translateY(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .asta-phone__label { animation: none; opacity: 0; transform: translateY(120%); }
  .asta-phone__label:nth-child(2) { opacity: 1; transform: none; }
}
.asta-header .asta-mobile-contact { display: none; }
.asta-footer { position: relative; z-index: 0; isolation: isolate; width: 100%; margin-top: calc(0px - var(--asta-footer-cta-overlap)); background-color: #121815; background-image: radial-gradient(ellipse 72% 56% at 8% 12%, rgb(71 160 19 / 12%), transparent 74%), radial-gradient(ellipse 56% 45% at 92% 34%, rgb(129 145 111 / 8%), transparent 78%), linear-gradient(180deg, #27312c 0%, #202a25 48%, #121815 100%); color: #edf3ee; padding: calc(clamp(48px, 6vw, 88px) + var(--asta-footer-cta-overlap)) 0 28px; }
.asta-footer::before { position: absolute; z-index: 0; inset: 0; background-image: url("assets/footer-grain.svg"); background-repeat: repeat; content: ""; opacity: .18; mix-blend-mode: soft-light; pointer-events: none; }
.asta-footer > * { position: relative; z-index: 1; }
.asta-footer :where(p, li, address, small, strong, em) { color: #d1dbd2; }
.asta-footer a { color: #edf3ee; transition: color 180ms ease; }
.asta-footer a:focus-visible { color: #a4df7c; outline: 2px solid #a4df7c; outline-offset: 3px; }
.asta-footer-inner { width: 100%; max-width: 1240px; margin: auto; padding-inline: 32px; box-sizing: border-box; }
.asta-footer .wp-block-heading { color: #fff; font-size: 1.2rem; }
.asta-footer .wp-block-list { list-style: none; padding: 0; }
.asta-footer .wp-block-list li { margin: 0 0 7px; }
.asta-footer .wp-block-list a { display: inline-block; text-decoration: none; }
.asta-footer .wp-block-list a:hover { color: #a4df7c; text-decoration: underline; }
.asta-footer .asta-footer__columns { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); align-items: start; }
.asta-footer__columns > .wp-block-column { min-width: 0; margin: 0; }
.asta-footer__columns h3 { margin: 0 0 18px; font-size: 1.05rem; }
.asta-footer__brand-copy + .wp-block-heading { margin-block-start: 32px; }
.asta-footer__brand { margin: 0 0 18px; }
.asta-footer__brand img { display: block; width: min(100%, 190px); max-width: 100%; height: auto; object-fit: contain; object-position: left center; border-radius: 0 !important; filter: brightness(1.22); }
.asta-footer__brand-copy { max-width: 34ch; }
.asta-footer__contact-links a { display: inline-block; padding: 2px 0; font-weight: 600; text-decoration: none; }
.asta-footer__contact-links a:hover { color: #a4df7c; text-decoration: underline; }
.asta-footer__hours { font-size: .92rem; }
.asta-footer__membership { margin-top: 42px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 18%); }
.asta-footer .asta-footer__membership > h3 { margin: 0 0 18px; font-size: 1.04rem; }
.asta-footer .asta-footer__members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.asta-footer__members > .wp-block-column { min-width: 0; margin: 0; }
.asta-footer__member-card { display: flex; min-height: 128px; flex-direction: column; align-items: flex-start; gap: 11px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #d1dbd2; }
.asta-footer__member-logo { display: flex; width: 156px; max-width: 100%; height: 68px; align-items: center; margin: 0; }
.asta-footer__member-logo img { display: block; width: 100%; height: 58px; padding: 0; border-radius: 0 !important; background: transparent; object-fit: contain; }
.asta-footer__member-logo--light img { padding: 7px 10px; border-radius: 4px !important; background: #f5f7f4; }
.asta-footer__member-logo--dark img { height: 68px; }
.asta-footer__member-card p { margin: 0; font-size: .82rem; line-height: 1.42; }
.asta-footer__copyright { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 18%); text-align: center; color: #b9c5bb; }
.asta-footer-cta { position: relative; z-index: 1; width: 100%; padding: clamp(40px, 5.5vw, 76px) 24px 0; background: transparent; color: #fff; }
.asta-footer-cta-inner { position: relative; isolation: isolate; display: flex; align-items: center; width: 100%; max-width: 1344px; min-height: 416px; margin: auto; overflow: hidden; padding: clamp(38px, 5vw, 62px) clamp(28px, 5.4vw, 72px); box-sizing: border-box; border-radius: var(--asta-radius); background: var(--asta-green); box-shadow: 0 0 0 rgb(71 160 19 / 0%); transition: box-shadow 1.3s cubic-bezier(.22, .61, .36, 1); }
.asta-footer-cta-inner::before { position: absolute; z-index: 2; inset: 0; padding: 2px; border-radius: inherit; content: ""; background: conic-gradient(from var(--asta-energy-angle), transparent 0deg 315deg, rgb(233 255 215 / 24%) 330deg, #fff 342deg, rgb(221 255 196 / 86%) 350deg, transparent 360deg); opacity: 0; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; transition: opacity 1.15s cubic-bezier(.22, .61, .36, 1); }
.asta-footer-cta-inner::after { position: absolute; z-index: 0; inset: 0; content: ""; background-image: url("/wp-content/uploads/2026/09/asta-contact-line-art-1024x683.webp"); background-repeat: no-repeat; background-position: right 3.5% bottom; background-size: min(56%, 680px) auto; opacity: .11; pointer-events: none; }
.asta-footer-cta-inner:has(.asta-form__field :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select):focus) { box-shadow: 0 18px 45px -16px rgb(71 160 19 / 42%), 0 35px 76px -23px rgb(92 205 176 / 40%), 0 26px 68px -28px rgb(203 255 128 / 30%); }
.asta-hero-video .asta-form:has(.asta-form__field :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select):focus) { box-shadow: 0 18px 45px -16px rgb(71 160 19 / 42%), 0 35px 76px -23px rgb(92 205 176 / 40%), 0 26px 68px -28px rgb(203 255 128 / 30%); animation: asta-footer-cta-aurora 4.2s ease-in-out .8s infinite; }
.asta-footer-cta-inner:has(.asta-form__field :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select):focus)::before { opacity: 1; animation: asta-energy-orbit 2.6s linear infinite; transition-duration: .9s; }
.asta-hero-video .asta-form:has(.asta-form__field :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select):focus)::before { opacity: 1; animation: asta-energy-orbit 2.6s linear infinite; transition-duration: .7s; }
.asta-hero-video .asta-form { position: relative; isolation: isolate; transition: box-shadow .4s ease; }
.asta-hero-video .asta-form::before { position: absolute; z-index: 2; inset: 0; padding: 2px; border-radius: inherit; content: ""; background: conic-gradient(from var(--asta-energy-angle), transparent 0deg 315deg, rgb(233 255 215 / 24%) 330deg, #fff 342deg, rgb(221 255 196 / 86%) 350deg, transparent 360deg); opacity: 0; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; transition: opacity .25s ease; }
.asta-footer-cta__content { position: relative; z-index: 1; width: 100%; max-width: none; text-align: left; }
.asta-footer-cta__eyebrow { margin: 0 0 8px; color: rgb(255 255 255 / 88%); font-size: .95rem; font-weight: 600; }
.asta-footer-cta h2 { margin: 0 0 18px; color: #fff; font-size: clamp(2rem, 3vw, 3rem); }
.asta-footer-cta__content > .asta-footer-cta__rating { display: inline-flex; align-self: flex-start; align-items: center; justify-self: start; gap: 10px; width: fit-content; margin: 0 auto 20px 0; padding: 8px 13px; border: 1px solid rgb(255 255 255 / 34%); border-radius: var(--asta-radius); background: rgb(255 255 255 / 12%); color: #fff; }
.asta-footer-cta__rating p { margin: 0; }
.asta-footer-cta__rating-score { font-weight: 700; }
.asta-footer-cta__rating-stars { color: #fff; font-size: 1.05rem; letter-spacing: .06em; line-height: 1; }
.asta-footer-cta__rating-count { color: rgb(255 255 255 / 90%); font-size: .86rem; }
.asta-footer-cta .asta-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px; align-items: end; gap: 13px; width: 100%; max-width: none; margin: 0; padding: 0; border-radius: 0; background: transparent; color: #fff; box-shadow: none; }
.asta-footer-cta .asta-form__field { min-width: 0; }
.asta-footer-cta .asta-form label { color: #fff; font-size: .86rem; font-weight: 600; }
.asta-footer-cta .asta-form input:not([type="checkbox"]) { width: 100%; min-height: 52px; padding: 11px 15px; border: 1px solid rgb(255 255 255 / 72%); border-radius: var(--asta-radius); background: #fff; color: var(--asta-ink); }
.asta-footer-cta .asta-form input:not([type="checkbox"]):focus-visible { outline: 3px solid rgb(255 255 255 / 55%); outline-offset: 2px; }
.asta-footer-cta .asta-form__field:has(.asta-form__choice) { grid-column: 1 / -1; grid-row: 2; }
.asta-footer-cta .asta-form__choice { display: flex; align-items: flex-start; gap: 10px; color: rgb(255 255 255 / 92%); font-size: .76rem !important; font-weight: 400 !important; line-height: 1.42; }
.asta-footer-cta .asta-form__choice input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #fff; }
.asta-footer-cta .asta-form button { width: 100%; min-height: 52px; padding-inline: 18px; background: #fff; color: #244f20; }
.asta-footer-cta .asta-form button { grid-column: 3; grid-row: 1; }
.asta-footer-cta .asta-form button:hover { background: #e9f0e5; color: #244f20; }
.asta-footer-cta .asta-form__success { grid-column: 1 / -1; display: grid; gap: 4px; margin: 0 0 5px; padding: 14px 18px; border: 1px solid rgb(255 255 255 / 36%); border-radius: var(--asta-radius); background: rgb(255 255 255 / 14%); color: #fff; }
.asta-footer-cta .asta-form__success strong { font-size: 1.02rem; }
.asta-footer-cta .asta-form__success span { color: rgb(255 255 255 / 92%); font-size: .92rem; }
.asta-footer-cta .asta-form.is-success .asta-form__field,
.asta-footer-cta .asta-form.is-success > button { display: none; }
.asta-form-confetti { position: fixed; z-index: 1000; inset: 0; overflow: hidden; pointer-events: none; }
.asta-form-confetti__piece { position: absolute; width: var(--asta-confetti-size); height: calc(var(--asta-confetti-size) * 1.5); border-radius: 2px; background: var(--asta-confetti-color); opacity: 0; animation: asta-form-confetti-fall var(--asta-confetti-fall) cubic-bezier(.12, .68, .28, 1) forwards; }
@property --asta-energy-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes asta-energy-orbit { to { --asta-energy-angle: 360deg; } }
@keyframes asta-footer-cta-aurora {
  0%, 100% { box-shadow: 0 18px 45px -16px rgb(71 160 19 / 42%), 0 35px 76px -23px rgb(92 205 176 / 40%), 0 26px 68px -28px rgb(203 255 128 / 30%); }
  50% { box-shadow: 0 20px 49px -16px rgb(71 160 19 / 45%), 0 38px 82px -22px rgb(92 205 176 / 45%), 0 28px 72px -26px rgb(203 255 128 / 34%); }
}
@keyframes asta-form-confetti-fall {
  0% { transform: translate3d(-50%, -50%, 0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate3d(calc(-50% + var(--asta-confetti-x)), calc(-50% + var(--asta-confetti-y) + 220px), 0) rotate(var(--asta-confetti-spin)); opacity: 0; }
}
main.asta-content { margin-top: 0; }

main { min-height: 50vh; }
.asta-content { max-width: 1240px; margin-inline: auto; padding: clamp(28px, 4vw, 64px) 24px; }
.asta-content > .wp-block-post-content > * { margin-block-start: 0; }
.wp-block-post-content { min-width: 0; }
.wp-block-post-content > * { min-width: 0; }
.asta-section { padding: clamp(36px, 5vw, 76px) clamp(20px, 4vw, 56px); margin-block: 0 28px; border-radius: var(--asta-radius); }
.asta-section:nth-of-type(even) { background: var(--asta-pale); }
.asta-section .wp-block-columns { width: 100%; max-width: 100%; align-items: center; gap: clamp(24px, 4vw, 64px); }
.asta-section .wp-block-column { min-width: 0; }
.asta-section h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.1; }
.asta-section h2 { font-size: clamp(1.7rem, 3.2vw, 2.65rem); line-height: 1.15; }
.asta-section h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; }
.asta-section p { line-height: 1.65; }
.asta-section img { border-radius: var(--asta-radius); }
.asta-feature-card { height: 100%; padding: 28px; background: #fff; border: 1px solid var(--asta-border); border-radius: var(--asta-radius); box-shadow: 0 6px 24px rgb(31 36 44 / 5%); }
.asta-feature-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--asta-radius); background: #e8f4e3; color: var(--asta-dark-green); font-size: 25px; font-weight: 700; margin-bottom: 16px; }
.asta-feature-card__image-icon, .asta-icon img { display: block; width: 58px; height: 58px; object-fit: contain; margin-bottom: 16px; }
.asta-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; color: var(--asta-green); font-size: 2rem; }
.asta-feature-card h3 { margin: 0 0 12px; }
.asta-feature-card p { margin: 0; }
.asta-feature-card a { color: var(--asta-dark-green); }
.asta-youtube { aspect-ratio: 16 / 9; background: #111; border-radius: var(--asta-radius); overflow: hidden; }
.asta-youtube iframe { display: block; width: 100%; height: 100%; border: 0; }
.asta-youtube__button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: #111; cursor: pointer; }
.asta-youtube__thumb { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.asta-youtube__button:hover .asta-youtube__thumb, .asta-youtube__button:focus-visible .asta-youtube__thumb { transform: scale(1.04); filter: brightness(.82); }
.asta-youtube__play { position: absolute; top: 50%; left: 50%; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: rgb(71 160 19 / .82); backdrop-filter: blur(2px); box-shadow: 0 8px 24px rgb(0 0 0 / .35); transform: translate(-50%, -50%); transition: transform .25s ease, background .25s ease; }
.asta-youtube__play svg { display: block; width: 34px; height: 34px; transform: translateX(-3px); fill: #fff; }
.asta-youtube__button:hover .asta-youtube__play, .asta-youtube__button:focus-visible .asta-youtube__play { background: rgb(40 90 20 / .9); transform: translate(-50%, -50%) scale(1.08); }
.asta-youtube__button:focus-visible { outline: 3px solid var(--asta-green); outline-offset: 3px; }
dialog.asta-youtube-lightbox { width: min(980px, 92vw); padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
dialog.asta-youtube-lightbox::backdrop { background: rgb(10 16 11 / .78); backdrop-filter: blur(4px); }
.asta-youtube-lightbox__frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.asta-youtube-lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.asta-youtube-lightbox__close { position: absolute; top: -14px; right: -14px; z-index: 2; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #20252d; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgb(0 0 0 / .3); }
.asta-youtube-lightbox__close:hover { background: var(--asta-green); color: #fff; }
.asta-youtube-lightbox__close:focus-visible { outline: 3px solid var(--asta-green); outline-offset: 2px; }
.asta-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.asta-post-card { border: 1px solid var(--asta-border); border-radius: var(--asta-radius); overflow: hidden; background: #fff; }
.asta-post-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.asta-post-card__body { padding: 20px; }
.asta-post-card h2 { font-size: 1.25rem; margin: 0 0 12px; }
.asta-post-card p { margin: 0; }
.asta-post-card__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 .35em;
  color: #74806f;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.45;
}
.asta-post-card__date-label { font-weight: 700; }

.asta-form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 38px); background: #fff; border-radius: var(--asta-radius); box-shadow: 0 10px 40px rgb(31 36 44 / 8%); }
.asta-form .asta-form__heading { grid-column: 1 / -1; margin: 0; font-size: clamp(1.65rem, 2.2vw, 2rem); line-height: 1.2; font-weight: 700; }
.asta-form__section { grid-column: 1 / -1; margin: 12px 0 0; padding: 0 0 10px; border-bottom: 1px solid #e2e9df; color: #253126; font-size: 1.08rem; line-height: 1.35; }
.asta-form > .asta-form__intro + .asta-form__section { margin-top: 0; }
.asta-form__field { display: grid; gap: 6px; }
.asta-form label { font-weight: 600; }
.asta-form input:not([type="checkbox"]), .asta-form textarea, .asta-form select { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid #a9b4a6; border-radius: var(--asta-radius); font: inherit; color: var(--asta-text); background: #fff; }
.asta-form textarea { min-height: 110px; resize: vertical; }
.asta-form input:focus-visible, .asta-form textarea:focus-visible, .asta-form select:focus-visible { outline: 3px solid rgb(71 160 19 / 28%); outline-offset: 1px; }
.asta-form__choice { display: flex; align-items: flex-start; gap: 9px; font-weight: 400 !important; }
.asta-form__choice input { margin-top: 5px; }
.asta-form button { min-height: 46px; border: 0; border-radius: var(--asta-radius); padding: 11px 34px; background: var(--asta-green); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.asta-form button:hover { background: var(--asta-dark-green); }
.asta-form__note { padding: 12px 16px; border-radius: var(--asta-radius); background: #e8f4e3; }
.asta-form__error { background: #fff0ed; color: #8e2b1b; }
.asta-form__honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.asta-entry-header { max-width: 860px; margin: 0 auto 36px; }
.asta-entry-header h1 { margin: 0; }
.asta-popup-trigger { border: 0; border-radius: var(--asta-radius); padding: 12px 34px; background: var(--asta-green); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.asta-popup { width: min(92vw, 680px); max-height: 90vh; padding: 36px; border: 0; border-radius: var(--asta-radius); box-shadow: 0 24px 80px rgb(0 0 0 / 25%); }
.asta-popup::backdrop { background: rgb(0 0 0 / 65%); }
.asta-popup-close { position: absolute; top: 9px; right: 14px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }

/* Serwis: grupuj dane, szczegóły instalacji i opis problemu w czytelne sekcje. */
.page-id-7422 form.asta-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.page-id-7422 form.asta-form > .asta-form__intro,
.page-id-7422 form.asta-form > .asta-form__section,
.page-id-7422 form.asta-form > .asta-form__note,
.page-id-7422 form.asta-form > .asta-form__field:has(textarea),
.page-id-7422 form.asta-form > .asta-form__field:has(input[type="file"]) { grid-column: 1 / -1; }
.page-id-7422 form.asta-form > button { justify-self: start; }
@media (max-width: 700px) {
  .page-id-7422 form.asta-form { grid-template-columns: minmax(0, 1fr); }
}
.asta-popup-body { overflow: auto; }
.asta-chat-link { position: fixed; right: 22px; bottom: 22px; z-index: 50; padding: 12px 22px; border-radius: var(--asta-radius-pill); background: #0084ff; color: #fff; text-decoration: none; box-shadow: 0 6px 24px rgb(0 0 0 / 22%); }
.asta-pv { padding: clamp(28px, 5vw, 60px); border-radius: var(--asta-radius); background: var(--asta-pale); }
.asta-pv__intro { max-width: 680px; }
.asta-pv__eyebrow { color: var(--asta-dark-green); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.asta-pv__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 28px 0; }
.asta-pv__fields label { display: grid; gap: 6px; font-weight: 600; }
.asta-pv input, .asta-pv select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #a9b4a6; border-radius: var(--asta-radius); background: #fff; font: inherit; }
.asta-pv button { min-height: 44px; padding: 10px 34px; border-radius: var(--asta-radius); border: 1px solid var(--asta-green); background: #fff; color: var(--asta-dark-green); font: inherit; font-weight: 600; cursor: pointer; }
.asta-pv button.asta-pv__submit { background: var(--asta-green); color: #fff; }
.asta-pv__result { margin-top: 24px; }
.asta-pv__result table { border-collapse: collapse; width: min(100%, 480px); }
.asta-pv__result th, .asta-pv__result td { padding: 6px 10px; border-bottom: 1px solid #ced7cc; text-align: left; }
.asta-pv__result td { text-align: right; }
.asta-pv__credit { margin-top: 22px; font-size: .8rem; color: #5b6858; }

/* Remove decorative uppercase eyebrow/kicker labels across page templates. */
body:not(.block-editor-page) :is(
  .asta-pv__eyebrow,
  .ae-eyebrow,
  .ae-ac-eyebrow,
  .flexpv-eyebrow,
  .ae-process-step-kicker,
  .ae-hero-panel-label,
  .ae-law-kicker
) {
  display: none !important;
}
.asta-breadcrumbs { margin-bottom: 20px; font-size: .875rem; color: #657161; }
.asta-breadcrumbs a { color: inherit; }
.asta-page-breadcrumbs { margin: 0; font-size: .9rem; line-height: 1.5; color: #5c6a58; }
.asta-breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; padding: 0; list-style: none; }
.asta-breadcrumbs__list a { text-decoration: none; }
.asta-breadcrumbs__list a:hover { color: var(--asta-dark-green); text-decoration: underline; }
.asta-breadcrumbs__separator { color: #93a18d; }
.asta-breadcrumbs--inverse { margin: 0 0 22px; color: rgb(255 255 255 / 88%); }
.asta-breadcrumbs--inverse .asta-breadcrumbs__separator { color: rgb(255 255 255 / 58%); }
.asta-breadcrumbs--inverse a:hover { color: #fff; }

/* Shared full-width page hero for Gutenberg pages without a video hero. */
.page main.asta-content:has(> .wp-block-post-content > .asta-page-hero) { padding-top: 0; }
.page main.asta-content > .wp-block-post-content .asta-page-hero .asta-page-breadcrumbs {
  position: relative;
  margin-bottom: 22px;
}
/* In constrained (flex-column) heroes auto margins shrink-wrap the nav and center it.
   A definite width lets the layout's own max-width + auto margins center the box,
   so the list starts at the same edge as the hero content. */
.is-layout-constrained > .asta-page-breadcrumbs { width: 100%; }
/* Column-flex heroes center their children as one group, which would drag the
   crumbs down to the content. Splitting the free space around the content keeps
   the crumbs pinned to the top and the content centered - the offer-page pattern. */
.asta-page-hero:not(.wp-block-columns) > .asta-page-breadcrumbs:first-child + * { margin-top: auto; }
.asta-page-hero:not(.wp-block-columns) > .asta-page-breadcrumbs:first-child ~ :last-child { margin-bottom: auto; }
.page main.asta-content > .wp-block-post-content > .asta-page-hero {
  width: 100vw; max-width: none; min-height: clamp(340px, 34vw, 480px); margin: 0 calc(50% - 50vw) 48px;
  padding: 24px max(24px, calc((100vw - 1240px) / 2)) clamp(64px, 8vw, 100px); border-radius: 0;
  background: radial-gradient(ellipse at 88% 5%, rgb(71 160 19 / 12%), transparent 35%), linear-gradient(115deg, #f7faf5 0%, #edf5e9 100%);
}
/* The empty-content hero is injected as a direct child of main, outside post-content. */
.page main.asta-content > .asta-page-empty-hero {
  width: 100vw; max-width: none; margin: 0 calc(50% - 50vw) 48px;
  padding: 24px max(24px, calc((100vw - 1240px) / 2)) clamp(64px, 8vw, 100px); border-radius: 0;
}
.page main.asta-content .asta-page-hero.wp-block-columns { align-items: center; }
.page main.asta-content .asta-page-hero :is(h1, h2) { margin-top: 0; color: var(--asta-ink); font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; }
.asta-hero-has-video {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background-color: #242a22;
}
.asta-page-hero__poster, .asta-page-hero__video, .asta-page-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.asta-page-hero__poster { z-index: 0; object-fit: cover; object-position: center 48%; border-radius: 0 !important; }
.asta-page-hero__video { z-index: 0; object-fit: cover; object-position: center 48%; border-radius: 0 !important; opacity: 0; transition: opacity .35s ease; }
.asta-page-hero__video.is-playing { opacity: 1; }
.asta-page-hero__shade { z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / 58%) 0%, rgb(0 0 0 / 26%) 64%, rgb(0 0 0 / 14%) 100%); }
.asta-hero-has-video > :not(.asta-page-hero__video):not(.asta-page-hero__shade), .wp-block-cover.asta-hero-has-video > .wp-block-cover__inner-container { position: relative; z-index: 2; }
.asta-page-hero.asta-hero-has-video :is(h1, h2, h3, p, li, .wp-block-post-date, .wp-block-post-terms), .asta-entry-hero.asta-hero-has-video :is(h1, h2, h3, p, li, .wp-block-post-date, .wp-block-post-terms), .asta-page-empty-hero.asta-hero-has-video :is(h1, h2, h3, p, li), .wp-block-cover.asta-hero-has-video :is(h1, h2, h3, p, li) { color: #fff; }
.page main.asta-content > .wp-block-post-content > .asta-page-hero.asta-hero-has-video :is(h1, h2) { color: #fff; }
.asta-entry-hero.asta-hero-has-video .asta-breadcrumbs, .asta-page-hero.asta-hero-has-video .asta-breadcrumbs { color: rgb(255 255 255 / 88%); }
.wp-block-cover.asta-hero-has-video > .wp-block-cover__image-background, .wp-block-cover.asta-hero-has-video > .wp-block-cover__video-background { display: none; }
.asta-hero-video[style*="--asta-hero-poster"] { background-image: var(--asta-hero-poster); background-position: center; background-size: cover; }
.asta-hero-has-video[style*="--asta-hero-poster"] { background-image: var(--asta-hero-poster); background-position: center; background-size: cover; }

.blog main.asta-content, .archive main.asta-content { max-width: none; padding: 0 24px 64px; }
.single main.asta-content { max-width: none; padding: 0 0 64px; }
.asta-archive-hero, .asta-entry-hero {
  width: 100vw; max-width: none; margin: 0 calc(50% - 50vw) 48px; padding: clamp(38px, 6vw, 76px) max(24px, calc((100vw - 1160px) / 2));
  border-radius: 0; background: radial-gradient(ellipse at 88% 5%, rgb(71 160 19 / 12%), transparent 35%), linear-gradient(115deg, #f7faf5 0%, #edf5e9 100%);
}
.asta-archive-hero > *, .asta-entry-hero > * { max-width: 1160px; margin-inline: auto; }
.asta-archive-hero h1, .asta-archive-hero .wp-block-query-title, .asta-entry-hero h1 { margin-block: 18px 0; color: var(--asta-ink); font-size: clamp(2.25rem, 4.5vw, 3.8rem); line-height: 1.08; }
.asta-entry-hero { padding-block: clamp(38px, 6vw, 72px); }
.asta-entry-hero > * { max-width: 860px; }
.asta-entry-hero .wp-block-post-terms { margin: 18px 0 12px; color: var(--asta-dark-green); font-weight: 700; }
.asta-entry-hero .wp-block-post-date { margin: 16px 0 0; color: #647161; }
.single main.asta-content > .asta-entry-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.single main.asta-content > .wp-block-post-featured-image { max-width: 860px; margin: 0 auto 36px; }
.blog main.asta-content > .wp-block-query, .archive main.asta-content > .wp-block-query { max-width: 1160px; margin-inline: auto; }

.asta-hero-video { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; width: 100vw; max-width: none; min-height: min(760px, 78vh); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: clamp(72px, 12vw, 156px) 32px; color: #fff; background: #242a22; border-radius: var(--asta-radius); }
.asta-hero-video__poster, .asta-hero-video__media, .asta-hero-video__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.asta-hero-video__poster { z-index: -2; object-fit: cover; object-position: center 48%; }
.asta-hero-video__media { z-index: -2; object-fit: cover; object-position: center 48%; }
video.asta-hero-video__media { opacity: 0; transition: opacity .35s ease; }
video.asta-hero-video__media.is-playing { opacity: 1; }
.asta-hero-video__shade { z-index: -1; background: linear-gradient(90deg, rgb(0 0 0 / 64%) 0%, rgb(0 0 0 / 24%) 58%, rgb(0 0 0 / 8%) 100%); }
.asta-hero-video__content { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin-inline: auto; }
.asta-hero-video__content :is(h1, h2, h3, .wp-block-heading) { color: #fff; }
.asta-hero-video__content .asta-form { color: var(--asta-text); }
.asta-hero-video__content > .asta-layout { max-width: 790px; }
.asta-hero-video__content > .asta-section { max-width: none; margin: 0; padding: 0; border-radius: 0; background: transparent !important; }
.asta-hero-video__content > .asta-section > .asta-layout { max-width: 1240px; margin-inline: auto; }
body:not(.home) .asta-hero-video__content > .asta-layout { max-width: 1240px; }
.asta-content:has(> .wp-block-post-content > .asta-hero-video) { padding-top: 0; }
.asta-hero-video__content > .asta-layout > p:first-child { max-width: 720px; margin: 0 0 38px; font-size: clamp(2.5rem, 6.8vw, 5.8rem); line-height: 1.02; }
.asta-hero-video__content .span-open-sans-bold-89 { font-weight: 800; }
.asta-hero-video__content > .asta-layout > p:nth-child(2),
.asta-hero-video__content > .asta-layout > .asta-hero-lead { max-width: 680px; font-size: clamp(1.05rem, 2vw, 1.7rem); line-height: 1.4; }
.asta-hero-video__content .wp-block-button__link { padding: 14px 36px; background: var(--asta-green); color: #fff; border-radius: var(--asta-radius); font-weight: 600; }
.asta-hero-video-editor { border: 1px solid #c8d7c2; border-radius: var(--asta-radius); padding: 20px; background: #f4f8f1; }
.asta-hero-video-editor__notice { margin-bottom: 14px; color: #356a29; font-weight: 600; }

/* Home page: the migrated Gutenberg groups retain the original section order. */
.home main.asta-content { max-width: none; padding: 0; }
.home main .wp-block-post-content { margin: 0; }
.home main .wp-block-post-content > .asta-layout { max-width: 1240px; margin: 0 auto; padding: 78px 32px; }
.home main .wp-block-post-content > .asta-hero-video { min-height: min(760px, 78vh); padding: clamp(80px, 12vw, 160px) 32px; }
.home main .wp-block-post-content > .asta-hero-video .asta-hero-video__content { max-width: 1176px; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) { position: relative; z-index: 1; max-width: 1240px; margin-top: -70px; padding: 0 32px 50px; text-align: center; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) > .asta-layout { padding: clamp(30px, 4vw, 48px); border-radius: var(--asta-radius); background: #3e9d0d; color: #fff; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) h2 { margin: 0 0 24px; color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge { max-width: 100%; min-height: 64px; margin: 0 auto 24px; border-radius: var(--asta-radius); justify-content: center; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge__logos > .wp-block-image { display: flex; align-items: center; margin: 0 !important; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge > * + *,
.home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge__left > * + *,
.home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge__stars > * + * { margin-block-start: 0; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge__stars { align-items: center; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) > .asta-layout > p { max-width: 1040px; margin: 0 auto 24px; line-height: 1.6; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) .wp-block-buttons { justify-content: center; margin-top: 26px; }
.home main .wp-block-post-content > .asta-layout:nth-child(2) .wp-block-button__link { background: #fff; color: #26351f; border-radius: var(--asta-radius); }
.home main .wp-block-post-content > .asta-layout:nth-child(2) .wp-block-group:has(> .asta-youtube) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home main .wp-block-post-content > .asta-layout:nth-child(3) { padding-top: 70px; }
.home .asta-realizations-section { padding-top: 70px; padding-bottom: 32px; }
.home .asta-realizations-section h1 { max-width: 1080px; margin-bottom: 42px; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.2; }
.home .asta-realizations-section > .asta-layout:has(> .asta-youtube) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; align-content: start; gap: 18px; max-width: none; margin: 0; padding: 0; }
.home .asta-realizations-section > .asta-layout:has(> .asta-youtube) > .asta-youtube { align-self: start; width: 100%; aspect-ratio: 16 / 9; min-height: 0; margin: 0 !important; }
.home .asta-realizations-section > .asta-layout:has(> .asta-youtube) > .asta-youtube iframe { display: block; width: 100%; height: 100%; }
.home .asta-realizations-section .asta-youtube { border-radius: var(--asta-radius); }
.home main .wp-block-post-content > .asta-layout:nth-child(3) h2,
.home main .wp-block-post-content > .asta-layout:nth-child(4) h2,
.home main .wp-block-post-content > .asta-layout:nth-child(5) h2 { font-size: clamp(2rem, 3vw, 3rem); }
.home main .wp-block-post-content > .asta-layout:nth-child(4),
.home main .wp-block-post-content > .asta-layout:nth-child(6) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 24px; padding-top: 0; }
.asta-offer-card { position: relative; isolation: isolate; display: flex; min-width: 0; flex-direction: column; align-self: stretch; margin-block-start: 0 !important; overflow: hidden; border: 1px solid #e3e9df; background: #fff; border-radius: var(--asta-radius); transition: transform .38s ease, border-color .38s ease, opacity .38s ease, filter .38s ease, box-shadow .48s ease; }
.asta-offer-card::before, .asta-offer-card::after { content: none; }
.asta-offer-card:is(:hover, :focus-within) { z-index: 2; transform: translateY(-3px); border-color: #cbdcc3; animation: asta-offer-aurora 3s ease-in-out infinite alternate; }
.asta-offer-card--business-pv { --asta-offer-white-art: url("/wp-content/uploads/2026/09/asta-line-art/pv-business.webp"); }
.asta-offer-card--storage-business { --asta-offer-white-art: url("/wp-content/uploads/2026/09/asta-line-art/energy-storage-business.webp"); }
.asta-offer-card--heatpump-business { --asta-offer-white-art: url("/wp-content/uploads/2026/09/asta-line-art/pv-multifamily.webp"); }
.asta-offer-card--home-pv { --asta-offer-white-art: url("/wp-content/uploads/2026/09/asta-line-art/pv-home.webp"); }
.asta-offer-card--home-storage { --asta-offer-white-art: url("/wp-content/uploads/2026/09/asta-line-art/energy-storage-home.webp"); }
.asta-offer-card--home-heatpump { --asta-offer-white-art: url("/wp-content/uploads/2026/09/asta-line-art/heat-pump-home.webp"); }
.asta-offer-card__image, .asta-offer-card__image figure { margin: 0; }
.asta-offer-card__image { overflow: hidden; border-radius: var(--asta-radius) var(--asta-radius) 0 0; }
.asta-offer-card__image a { position: relative; display: block; }
.asta-offer-card__image a::after { position: absolute; z-index: 2; inset: 0; display: block; background: var(--asta-offer-white-art) center / contain no-repeat; content: ""; filter: invert(1); mix-blend-mode: screen; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.asta-offer-card__image img { display: block; width: 100%; aspect-ratio: 4 / 2.3; object-fit: contain; background: #fff; opacity: 1; transition: opacity .28s ease; }
.asta-offer-card__content { flex: 1; padding: 22px 26px 0; }
.asta-offer-card__title { margin: 0 0 18px; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.15; transition: color .36s ease; }
.asta-offer-card__title a { color: inherit; text-decoration: none; text-underline-offset: .14em; }
.asta-offer-card__title a:hover { text-decoration: underline; text-decoration-thickness: .07em; }
.asta-offer-card__image a:focus-visible, .asta-offer-card__title a:focus-visible { outline: 3px solid var(--asta-dark-green); outline-offset: 3px; border-radius: 6px; }
.home main .wp-block-post-content > .asta-layout:nth-child(4) .asta-offer-card__title { min-height: 3.45em; }
.home main .wp-block-post-content > .asta-layout:nth-child(6) .asta-offer-card__title { min-height: 2.3em; }
.asta-offer-card__text { min-height: 5lh; color: #5b6558; transition: color .36s ease; }
.asta-offer-card__list { margin-top: 2px; padding-left: 20px; }
.asta-offer-card__list li { margin-bottom: 9px; transition: color .36s ease; }
.asta-offer-card__list li::before { transition: background-color .36s ease; }
.asta-offer-card__list li::marker { color: var(--asta-green); transition: color .36s ease; }
.asta-offer-card .asta-offer-card__bottom { margin: 16px 26px 26px; padding: 0; border-radius: var(--asta-radius); background: var(--asta-green); color: #fff; }
.asta-offer-card__bottom p { margin: 0; }
.asta-offer-card__bottom a { position: relative; display: flex; min-height: 58px; align-items: center; justify-content: center; padding: 12px 44px; border-radius: var(--asta-radius); background: var(--asta-green); color: #fff; line-height: 1.2; text-align: center; text-decoration: none; font-weight: 700; transition: background-color .18s ease, box-shadow .18s ease; }
.asta-offer-card__bottom a::after { display: inline-block; width: 0; max-width: 0; margin-inline-start: 0; overflow: hidden; content: "→"; opacity: 0; pointer-events: none; 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; }
.asta-offer-card__bottom a:hover::after, .asta-offer-card__bottom a:focus-visible::after { width: .95em; max-width: .95em; margin-inline-start: .48em; opacity: 1; transform: translateX(0); }
.asta-offer-card__bottom a:hover { background: var(--asta-dark-green); box-shadow: 0 5px 14px rgb(31 36 44 / 13%); }
.home main .wp-block-post-content > .asta-layout:is(:nth-child(4), :nth-child(6)):has(> .asta-offer-card:is(:hover, :focus-within)) > .asta-offer-card:not(:hover, :focus-within) { filter: grayscale(.88); opacity: .48; transform: scale(.985); }
.asta-other-services-grid:has(> .asta-offer-card:is(:hover, :focus-within)) > .asta-offer-card:not(:hover, :focus-within) { filter: grayscale(.88); opacity: .48; transform: scale(.985); }
@keyframes asta-offer-aurora {
  0% { box-shadow: 0 10px 26px rgb(31 36 44 / 7%), 0 18px 50px -16px rgb(71 160 19 / 36%), -12px 30px 72px -26px rgb(92 205 176 / 40%); }
  50% { box-shadow: 0 12px 30px rgb(31 36 44 / 6%), 12px 25px 62px -16px rgb(71 160 19 / 44%), 10px 36px 82px -24px rgb(92 205 176 / 52%); }
  100% { box-shadow: 0 10px 28px rgb(31 36 44 / 7%), -16px 24px 60px -18px rgb(71 160 19 / 42%), 16px 32px 80px -26px rgb(92 205 176 / 46%); }
}

/* Compact companion services share the offer-card treatment — component is site-wide
   (not .home-scoped), so /oferta/ and any future hub can reuse the same markup. */
.asta-other-services-section {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: clamp(44px, 5vw, 68px);
}
.asta-other-services-section > h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.15;
}
.asta-other-services-lead {
  max-width: 64ch;
  margin: 0;
  color: #566153;
  font-size: 1rem;
  line-height: 1.65;
}
.asta-other-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 1164px);
  margin: 26px 0 0;
}
.asta-other-services-grid > .asta-offer-card {
  min-height: 0;
  height: 100%;
  gap: 0;
}
/* post-6604.css sets .home .asta-offer-card { min-height: 695px } for the main
   offer rows; the services grid cards must not inherit it (dead space above CTA). */
.home .asta-other-services-grid > .asta-offer-card {
  min-height: 0 !important;
}
.asta-other-services-grid .asta-offer-card__image img {
  aspect-ratio: 4 / 2.3;
  object-fit: contain;
}
.asta-other-services-grid .asta-offer-card__content {
  gap: 10px;
  padding: 18px 22px 0;
}
.asta-other-services-grid .asta-offer-card__title {
  min-height: 0;
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1.2;
}
.asta-other-services-grid .asta-offer-card__text {
  min-height: 0;
  margin: 0;
  font-size: .94rem;
  line-height: 1.6;
}
.asta-other-services-grid .asta-offer-card__bottom {
  margin: 14px 22px 22px;
}
.asta-other-services-grid .asta-offer-card__bottom a {
  min-height: 48px;
  padding: 10px 28px;
}
.asta-other-services-grid .asta-offer-card--pv-review {
  --asta-offer-white-art: url("/wp-content/uploads/2026/10/asta-line-art/pv-installation-review.webp");
}
.asta-other-services-grid .asta-offer-card--air-conditioning {
  --asta-offer-white-art: url("/wp-content/uploads/2026/10/asta-line-art/air-conditioning-installation.webp");
}
.asta-other-services-grid .asta-offer-card--farm-pv {
  --asta-offer-white-art: url("/wp-content/uploads/2026/10/asta-farmer/farm-system-lineart.webp");
}
.asta-offer-card--multifamily-pv { --asta-offer-white-art: url("/wp-content/uploads/2026/09/asta-line-art/pv-multifamily.webp"); }
.asta-offer-card--evaporative-ac { --asta-offer-white-art: url("/wp-content/uploads/2026/10/asta-line-art/evaporative-cooling-commercial-v1.webp"); }
.asta-offer-card--flexible-pv { --asta-offer-white-art: url("/wp-content/uploads/2026/09/asta-line-art/pv-mount-facade.webp"); }

/* Offer hub (/oferta/): section bands run full-bleed like the hero; inner groups
   keep the 1160px offer content track. Overrides offer-pages.css (0,4,1) via body
   class + main.asta-content. */
body.page-id-9786.asta-offer-standard main.asta-content .wp-block-post-content > .asta-section {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: var(--offer-gutter, clamp(20px, 4vw, 40px));
}
body.page-id-9786.asta-offer-standard main.asta-content .wp-block-post-content > .asta-section > * {
  width: min(100%, var(--offer-content-width, 1160px));
  margin-inline: auto;
}

/* Offer hub (/oferta/) — canonical page hero + quick-nav + chip link lists. */
.asta-offer-hub-hero .asta-offer-hub-lead {
  max-width: 56ch;
  margin: 16px 0 0;
  color: #566153;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.7;
}
.asta-other-services-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Hub sections share the offer-page surface token (#f4f7f2), not the blue --asta-pale. */
body.page-id-9786 main .wp-block-post-content > .asta-section:nth-of-type(even) {
  background: #f4f7f2;
}
body.page-id-9786 main .asta-other-services-section > h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
body.page-id-9786 main .asta-other-services-lead {
  font-size: 1.05rem;
}
.asta-offer-hub-industries .wp-block-list {
  margin: 20px 0 0;
}
@media (max-width: 1024px) {
  .asta-other-services-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .asta-other-services-grid,
  .asta-other-services-grid--four {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 18px;
    margin-top: 20px;
  }
  .asta-other-services-grid .asta-offer-card__content { padding-inline: 18px; }
  .asta-other-services-grid .asta-offer-card__bottom { margin: 12px 18px 18px; }
}
.home main .wp-block-post-content > .asta-layout:nth-child(8) { width: 100%; max-width: none; margin-inline: 0; overflow: hidden; background: #f6f9f5; }
.home .asta-reviews-marquee { display: flex; gap: 20px; overflow-x: auto; }
.home .asta-reviews-marquee > * { flex: 0 0 min(320px, 85vw); padding: 22px; background: var(--asta-green); color: #fff; }
.home main .wp-block-post-content > .asta-layout:nth-child(9) { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.home main .wp-block-post-content > .asta-layout:nth-child(9) > figure { margin: 0; }
.home main .wp-block-post-content > .asta-layout:nth-child(10) { text-align: center; }
.home main .wp-block-post-content > .asta-layout:nth-child(10) > .ae-client-marquee { width: 100%; margin-block-start: 28px; }

@media (prefers-reduced-motion: reduce) {
  .wp-block-button__link, .wp-block-search__button, .wp-block-file__button, .asta-form button, .asta-pv button, .asta-popup-trigger, .asta-offer-card__bottom a,
  .wp-block-button__link::after, .asta-form button::after, .asta-pv button::after, .asta-popup-trigger::after, .asta-offer-card__bottom a::after,
  .asta-offer-card, .asta-offer-card::before, .asta-offer-card::after, .asta-offer-card__title, .asta-offer-card__text, .asta-offer-card__image img,
  .asta-offer-card__list li, .asta-offer-card__list li::before, .asta-offer-card__list li::marker, .asta-offer-card__image a::after { transition-duration: .01ms; }
  .asta-offer-card:is(:hover, :focus-within) { animation: none !important; }
  .asta-offer-card::before { animation: none !important; }
  .asta-footer-cta-inner { transition: box-shadow .55s cubic-bezier(.22, .61, .36, 1) !important; }
  .asta-footer-cta-inner::before { transition: opacity .55s ease-out !important; }
  .asta-footer-cta-inner:has(.asta-form__field :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select):focus) { animation: none !important; box-shadow: 0 20px 54px -20px rgb(92 205 176 / 45%); }
  .asta-hero-video .asta-form:has(.asta-form__field :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select):focus) { animation: none !important; box-shadow: 0 20px 54px -20px rgb(92 205 176 / 45%); }
  .asta-footer-cta-inner:has(.asta-form__field :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select):focus)::before,
  .asta-hero-video .asta-form:has(.asta-form__field :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select):focus)::before { animation: none !important; opacity: .7; }
  .asta-form-confetti { display: none; }
  video.asta-hero-video__media, .asta-page-hero__video { display: none; }
  .asta-hero-video[style*="--asta-hero-poster"], .asta-hero-has-video[style*="--asta-hero-poster"] { background-image: var(--asta-hero-poster); }
}

/* Shared corner treatment for the older Gutenberg HTML fragments. */
.wp-block-post-content :is(button, [role="button"], input:not([type="checkbox"]):not([type="radio"]), textarea, select, [class*="btn"], [class*="button"], [class*="card"], [class*="panel"], [class*="form-control"], .wp-block-image img, .wp-block-cover, .wp-block-embed, iframe:not(.asta-hero-video__media), video:not(.asta-hero-video__media):not(.asta-page-hero__video)) { border-radius: var(--asta-radius) !important; }

@media (max-width: 850px) {
  .page main.asta-content > .wp-block-post-content > .asta-page-hero { min-height: 320px; }
  .asta-archive-hero { padding-block: 44px; }
  .asta-entry-hero { padding-block: 42px; }
  .asta-section .wp-block-columns { flex-wrap: wrap !important; }
  .asta-section .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: calc(50% - 16px) !important; }
  .home main .wp-block-post-content > .asta-layout:nth-child(10) > .asta-layout { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home .asta-realizations-section > .asta-layout:has(> .asta-youtube) { grid-template-columns: repeat(2, 1fr); }
  .home main .wp-block-post-content > .asta-layout:nth-child(4),
  .home main .wp-block-post-content > .asta-layout:nth-child(6) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --asta-footer-cta-overlap: clamp(190px, 40vw, 240px); }
  .page main.asta-content > .wp-block-post-content > .asta-page-hero { min-height: 0; padding-top: 22px; padding-bottom: 52px; }
  .blog main.asta-content, .archive main.asta-content, .single main.asta-content { padding-right: 16px; padding-left: 16px; }
  .single main.asta-content { padding-right: 0; padding-left: 0; }
  .asta-archive-hero, .asta-entry-hero { padding: 36px 20px; }
  .asta-archive-hero h1, .asta-archive-hero .wp-block-query-title, .asta-entry-hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  section.asta-section:has(> .wp-block-columns > .wp-block-column:only-child .wp-image-679) { display: none; }
  .home main .wp-block-post-content > .asta-layout:nth-child(4) .asta-offer-card__title,
  .home main .wp-block-post-content > .asta-layout:nth-child(6) .asta-offer-card__title,
  .asta-offer-card__text { min-height: 0; }
  .home main .wp-block-post-content > .asta-layout:nth-child(10) > .asta-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asta-hero-video, .home main .wp-block-post-content > .asta-hero-video { min-height: min(680px, 82svh); padding: 76px 20px; }
  .asta-hero-video__poster, .asta-hero-video__media { object-position: 57% center; }
  .asta-hero-video__shade { background: linear-gradient(90deg, rgb(0 0 0 / 56%), rgb(0 0 0 / 20%)); }
  .asta-hero-video__content > .asta-layout > p:first-child { margin-bottom: 28px; font-size: clamp(2.65rem, 12vw, 3.65rem); }
  .asta-hero-video__content > .asta-layout > p:nth-child(2),
  .asta-hero-video__content > .asta-layout > .asta-hero-lead { font-size: 1.05rem; }
  .home main .wp-block-post-content > .asta-layout { padding: 48px 20px; }
  .home main .wp-block-post-content > .asta-layout:nth-child(2) { padding-inline: 20px; padding-bottom: 38px; }
  .home main .wp-block-post-content > .asta-layout:nth-child(2) > .asta-layout { padding: 28px 20px; }
  .home main .wp-block-post-content > .asta-layout:nth-child(2) h2 { margin-bottom: 20px; }
  .home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge { display: flex; width: fit-content; margin-bottom: 20px; flex-direction: column; gap: 10px; }
  .home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge__left { flex-wrap: nowrap; }
  .home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge__left,
  .home main .wp-block-post-content > .asta-layout:nth-child(2) .asta-rating-badge__logos { justify-content: center; flex-wrap: wrap; }
  .home main .wp-block-post-content > .asta-layout:nth-child(2) > .asta-layout > p { line-height: 1.55; }
  .home main .wp-block-post-content > .asta-layout:nth-child(2) .wp-block-buttons { margin-top: 22px; }
  .asta-section .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
  .home .asta-realizations-section > .asta-layout:has(> .asta-youtube),
  .home main .wp-block-post-content > .asta-layout:nth-child(4),
  .home main .wp-block-post-content > .asta-layout:nth-child(6),
  .home main .wp-block-post-content > .asta-layout:nth-child(9) { grid-template-columns: 1fr; }
}

@media (min-width: 601px) and (max-width: 640px) {
  .asta-header-inner { gap: 12px; padding-inline: 16px; }
  .asta-header .custom-logo { width: 126px; }
  .asta-header .wp-block-navigation__container { flex-wrap: nowrap; gap: 8px; }
  .asta-header .wp-block-navigation-item__content { font-size: 12px; }
}

@media (max-width: 850px) {
  .asta-header-inner { flex-wrap: wrap; }
  .asta-header .wp-block-navigation { order: 3; flex-basis: 100%; }
  .asta-header .asta-header-actions { margin-left: auto; }
  .asta-footer .asta-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asta-footer .asta-footer__members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asta-footer-cta__content { width: 100%; max-width: none; }
  .asta-footer-cta .asta-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asta-footer-cta .asta-form__field:has(.asta-form__choice) { grid-column: 1 / -1; grid-row: 2; }
  .asta-footer-cta .asta-form button { grid-column: 1 / -1; grid-row: 3; }
  .asta-footer-cta-inner::after { background-position: right 2% bottom; background-size: min(52%, 420px) auto; opacity: .08; }
  .asta-section { border-radius: var(--asta-radius); margin-inline: -24px; }
  .asta-section .wp-block-columns { flex-wrap: wrap !important; }
}
@media (max-width: 600px) {
  .asta-section { margin-inline: 0; }
  .asta-header-inner { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 12px; padding: 14px 16px; }
  .asta-header .custom-logo { width: 126px; }
  .asta-header .wp-block-navigation { order: 0; flex: 0 0 auto; margin-left: auto; }
  .asta-header .asta-header-actions { display: none; }
  .asta-header .asta-phone .wp-block-button__link { min-width: calc(12ch + 56px); }
  .asta-header .asta-mobile-contact { display: flex; }
  .asta-footer-inner, .asta-footer-cta-inner { padding-inline: 20px; }
  .asta-footer .asta-footer__columns { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .asta-footer__membership { margin-top: 32px; padding-top: 24px; }
  .asta-footer .asta-footer__members { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .asta-footer__member-card { min-height: 0; gap: 9px; padding: 6px 0; }
  .asta-footer__member-logo { width: 150px; max-width: 100%; }
  .asta-footer__member-logo img { height: 52px; }
  .asta-footer-cta { padding: 36px 20px 0; }
  .asta-footer-cta-inner { min-height: 0; padding: 30px 24px 190px; }
  .asta-footer-cta__content { width: 100%; max-width: none; }
  .asta-footer-cta h2 { max-width: 100%; margin-bottom: 20px; font-size: clamp(1.75rem, 7.2vw, 2rem); }
  .asta-footer-cta .asta-form { grid-template-columns: 1fr; gap: 10px; }
  .asta-footer-cta .asta-form__field:has(.asta-form__choice), .asta-footer-cta .asta-form button { grid-column: 1; grid-row: auto; }
  .asta-footer-cta-inner::after { background-position: right 2% bottom 8px; background-size: min(72%, 300px) auto; opacity: .07; }
  .wp-block-button__link { padding-inline: 28px; }
  .asta-hero-video__content .wp-block-button__link { padding-inline: 28px; }
  .asta-form button, .asta-pv button, .asta-popup-trigger { padding-inline: 28px; }
  .asta-offer-card__bottom a { padding-inline: 40px; }
}

html.asta-site-scroll-ready body :is(
  main .wp-block-post-content > .wp-block-group,
  main .wp-block-post-content > section:not(.asta-hero-video),
  main .wp-block-post-content > .wp-block-columns,
  main .wp-block-post-content .asta-section,
  main .wp-block-post-content .ae-section,
  main .wp-block-post-content .asta-offer-card,
  .asta-footer-cta-inner
) {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .68s cubic-bezier(.22, .61, .36, 1), transform .68s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--asta-site-reveal-delay, 0ms);
}

html.asta-site-scroll-ready body :is(
  main .wp-block-post-content > .wp-block-group,
  main .wp-block-post-content > section:not(.asta-hero-video),
  main .wp-block-post-content > .wp-block-columns,
  main .wp-block-post-content .asta-section,
  main .wp-block-post-content .ae-section,
  main .wp-block-post-content .asta-offer-card,
  .asta-footer-cta-inner
).is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body .asta-site-scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Blog archive and article layouts share the site's card and type system. */
.blog main.asta-content > .wp-block-query,
.archive main.asta-content > .wp-block-query {
  width: min(1160px, calc(100vw - 48px));
  max-width: none;
  margin: 0 auto;
}
.blog main.asta-content > .wp-block-query > .wp-block-post-template,
.archive main.asta-content > .wp-block-query > .wp-block-post-template {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog .wp-block-post-template > .wp-block-post,
.archive .wp-block-post-template > .wp-block-post {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e3e9df;
  border-radius: var(--asta-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgb(31 36 44 / 7%);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.blog .wp-block-post-featured-image,
.archive .wp-block-post-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #f0f4f9;
}
.blog .wp-block-post-featured-image > a,
.archive .wp-block-post-featured-image > a { display: block; width: 100%; height: 100%; }
.blog .wp-block-post-featured-image img,
.archive .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}
.blog .wp-block-post-title,
.archive .wp-block-post-title {
  min-height: 4.2em;
  margin: 0;
  padding: 21px 22px 0;
  color: var(--asta-ink);
  font-size: clamp(1.2rem, 1.45vw, 1.38rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.3;
  text-wrap: balance;
}
.blog .wp-block-post-title a,
.archive .wp-block-post-title a { color: inherit; text-decoration: none; }
.blog .wp-block-post-title a:hover,
.archive .wp-block-post-title a:hover { color: var(--asta-dark-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.blog .wp-block-post-date.asta-post-card__date,
.archive .wp-block-post-date.asta-post-card__date {
  margin: 0;
  min-height: 52px;
  box-sizing: border-box;
  padding: 10px 22px;
  border-top: 1px solid #edf1eb;
}
.blog .wp-block-post-excerpt,
.archive .wp-block-post-excerpt {
  flex: 1 0 auto;
  margin: 0;
  padding: 9px 22px 18px;
  color: #5b6558;
  font-size: .96rem;
  line-height: 1.65;
}
.blog .wp-block-post-excerpt__excerpt,
.archive .wp-block-post-excerpt__excerpt { margin: 0; }
.blog .wp-block-post-template > .wp-block-post a:focus-visible,
.archive .wp-block-post-template > .wp-block-post a:focus-visible {
  outline: 3px solid var(--asta-dark-green);
  outline-offset: -4px;
}
@media (hover: hover) {
  .blog .wp-block-post-template > .wp-block-post:hover,
  .archive .wp-block-post-template > .wp-block-post:hover {
    transform: translateY(-3px);
    border-color: #cbdcc3;
    box-shadow: 0 16px 34px rgb(31 36 44 / 12%);
  }
  .blog .wp-block-post-template > .wp-block-post:hover .wp-block-post-featured-image img,
  .archive .wp-block-post-template > .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.025); }
}
.blog .wp-block-query-pagination,
.archive .wp-block-query-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 44px auto 0;
  color: #596555;
}
.blog .wp-block-query-pagination-numbers,
.archive .wp-block-query-pagination-numbers { display: flex; align-items: center; gap: 6px; }
.blog .wp-block-query-pagination a,
.blog .wp-block-query-pagination .page-numbers,
.archive .wp-block-query-pagination a,
.archive .wp-block-query-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid #e3e9df;
  border-radius: 10px;
  background: #fff;
  color: var(--asta-dark-green);
  font-weight: 650;
  text-decoration: none;
}
.blog .wp-block-query-pagination .current,
.archive .wp-block-query-pagination .current { border-color: var(--asta-green); background: var(--asta-green); color: #fff; }

body.single-post main.asta-content > .wp-block-post-featured-image {
  width: min(900px, calc(100vw - 48px));
  max-width: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 auto clamp(36px, 5vw, 56px);
  border-radius: var(--asta-radius);
  background: #f0f4f9;
}
body.single-post main.asta-content > .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.single-post main.asta-content > .wp-block-post-content {
  width: min(800px, calc(100vw - 48px));
  max-width: none;
  margin: 0 auto;
  color: #303b2f;
  font-size: 1rem;
  line-height: 1.75;
}
body.single-post main.asta-content > .wp-block-post-content > * { width: 100%; max-width: none; }
body.single-post main.asta-content > .wp-block-post-content > p {
  margin: 0 0 1.1em;
  font-size: 1rem;
  line-height: 1.75;
}
body.single-post main.asta-content > .wp-block-post-content > p.has-large-font-size {
  font-size: 1.2rem;
  line-height: 1.6;
}
body.single-post main.asta-content > .wp-block-post-content > h2 {
  margin: 2.25em 0 .65em;
  color: var(--asta-ink);
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-wrap: balance;
}
body.single-post main.asta-content > .wp-block-post-content > h3 {
  margin: 1.8em 0 .6em;
  color: var(--asta-ink);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}
body.single-post main.asta-content > .wp-block-post-content > h4 {
  margin: 1.5em 0 .5em;
  color: var(--asta-ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}
body.single-post main.asta-content > .wp-block-post-content > :is(ul, ol) {
  margin: 0 0 1.25em;
  padding-inline-start: 1.35em;
  line-height: 1.7;
}
body.single-post main.asta-content > .wp-block-post-content > :is(ul, ol) li { margin: 0 0 .45em; padding-left: .2em; }
body.single-post main.asta-content > .wp-block-post-content > blockquote {
  margin: 1.5em 0;
  padding: 1em 1.25em;
  border-left: 4px solid var(--asta-green);
  border-radius: 0 var(--asta-radius) var(--asta-radius) 0;
  background: #f6f9f4;
  color: #354432;
}
body.single-post main.asta-content > .wp-block-post-content > blockquote p { margin: 0; }
body.single-post main.asta-content > .wp-block-post-content > .wp-block-group { border-radius: var(--asta-radius); }
body.single-post main.asta-content > .wp-block-post-content .wp-block-table {
  width: 100%;
  margin: 1.7em 0;
  overflow-x: auto;
  border: 1px solid #dce5d7;
  border-radius: var(--asta-radius);
}
body.single-post main.asta-content > .wp-block-post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.5;
}
body.single-post main.asta-content > .wp-block-post-content .wp-block-table :is(th, td) {
  padding: .72em .85em;
  border: 1px solid #dce5d7;
  text-align: left;
}
body.single-post main.asta-content > .wp-block-post-content .wp-block-table th { background: #f0f4f9; color: var(--asta-ink); font-weight: 700; }
body.single-post main.asta-content > .wp-block-post-content .wp-block-table tbody tr:nth-child(even) { background: #f8faf7; }
body.single-post main.asta-content > .wp-block-post-content :is(.wp-block-image, .wp-block-embed) { margin-block: 1.8em; }
body.single-post main.asta-content > .wp-block-post-content .wp-block-image img { display: block; border-radius: var(--asta-radius); }
body.single-post main.asta-content > .wp-block-post-content a { color: var(--asta-dark-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.single-post main.asta-content > .wp-block-post-content a:hover { color: var(--asta-green); }
body.single-post main.asta-content > .wp-block-post-content > :last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .blog main.asta-content > .wp-block-query,
  .archive main.asta-content > .wp-block-query { width: min(100%, calc(100vw - 40px)); }
  .blog main.asta-content > .wp-block-query > .wp-block-post-template,
  .archive main.asta-content > .wp-block-query > .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .blog .wp-block-post-title,
  .archive .wp-block-post-title { min-height: 3.9em; }
}
@media (max-width: 600px) {
  .blog main.asta-content > .wp-block-query,
  .archive main.asta-content > .wp-block-query { width: calc(100vw - 32px); }
  .blog main.asta-content > .wp-block-query > .wp-block-post-template,
  .archive main.asta-content > .wp-block-query > .wp-block-post-template { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .blog .wp-block-post-title,
  .archive .wp-block-post-title { min-height: 0; padding: 18px 18px 0; font-size: 1.22rem; }
  .blog .wp-block-post-date.asta-post-card__date,
  .archive .wp-block-post-date.asta-post-card__date { padding: 10px 18px; }
  .blog .wp-block-post-excerpt,
  .archive .wp-block-post-excerpt { padding: 8px 18px 14px; }
  .blog .wp-block-query-pagination,
  .archive .wp-block-query-pagination { flex-wrap: wrap; gap: 6px; margin-top: 32px; }
  .blog .wp-block-query-pagination a,
  .blog .wp-block-query-pagination .page-numbers,
  .archive .wp-block-query-pagination a,
  .archive .wp-block-query-pagination .page-numbers { min-width: 36px; min-height: 36px; padding: 5px 9px; }
  body.single-post main.asta-content > .wp-block-post-featured-image { width: calc(100vw - 32px); margin-bottom: 32px; }
  body.single-post main.asta-content > .wp-block-post-content { width: calc(100vw - 40px); font-size: .98rem; line-height: 1.72; }
  body.single-post main.asta-content > .wp-block-post-content > h2 { margin-top: 1.9em; font-size: 1.55rem; }
  body.single-post main.asta-content > .wp-block-post-content > h3 { margin-top: 1.5em; font-size: 1.25rem; }
  body.single-post main.asta-content > .wp-block-post-content .wp-block-table table { min-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog .wp-block-post-template > .wp-block-post,
  .archive .wp-block-post-template > .wp-block-post,
  .blog .wp-block-post-featured-image img,
  .archive .wp-block-post-featured-image img { transition: none; }
}

/* Feature the newest article beside the blog heading. */
.blog .asta-archive-hero.asta-blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.05fr);
  align-items: center;
  gap: 24px;
  min-height: 350px;
}
.blog .asta-blog-hero > .asta-blog-hero__intro,
.blog .asta-blog-hero > .asta-blog-hero__latest {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}
.blog .asta-blog-hero__intro h1 { max-width: 100%; }
.blog .asta-blog-hero__latest .asta-post-grid { display: block; }
.blog .asta-blog-hero__latest .asta-post-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: clamp(360px, 28vw, 420px);
  min-height: 0;
  border-color: #e0e8db;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgb(31 36 44 / 12%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.blog .asta-blog-hero__latest .asta-post-card--featured > a {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.blog .asta-blog-hero__latest .asta-post-card--featured img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform .35s ease;
}
.blog .asta-blog-hero__latest .asta-post-card--no-image { grid-template-columns: minmax(0, 1fr); }
.blog .asta-blog-hero__latest .asta-post-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 38px);
  padding-bottom: 14px;
}
.blog .asta-blog-hero__latest .asta-post-card__eyebrow {
  width: fit-content;
  margin: 0 0 15px;
  padding: 6px 11px;
  border-radius: var(--asta-radius-pill);
  background: #edf5e8;
  color: var(--asta-dark-green);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.3;
}
.blog .asta-blog-hero__latest .asta-post-card__body h3 {
  margin: 0 0 14px;
  color: var(--asta-ink);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-wrap: balance;
}
.blog .asta-blog-hero__latest .asta-post-card__body h3 a { color: inherit; text-decoration: none; }
.blog .asta-blog-hero__latest .asta-post-card__body h3 a:hover { color: var(--asta-dark-green); text-decoration: underline; text-underline-offset: .16em; }
.blog .asta-blog-hero__latest .asta-post-card__date {
  min-height: 0;
  margin: auto 0 0;
  padding: 12px 0 4px;
}
.blog .asta-blog-hero__latest .asta-post-card__body > .asta-post-card__excerpt {
  margin: 0;
  color: #5b6558;
  font-size: .96rem;
  line-height: 1.65;
}
.blog .asta-blog-hero__latest .asta-post-card--featured a:focus-visible {
  outline: 3px solid var(--asta-dark-green);
  outline-offset: -4px;
}
@media (hover: hover) {
  .blog .asta-blog-hero__latest .asta-post-card--featured:hover {
    transform: translateY(-3px);
    border-color: #cbdcc3;
    box-shadow: 0 20px 48px rgb(31 36 44 / 16%);
  }
  .blog .asta-blog-hero__latest .asta-post-card--featured:hover img { transform: scale(1.025); }
}
@media (max-width: 900px) {
  .blog .asta-archive-hero.asta-blog-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .blog .asta-blog-hero__latest .asta-post-card--featured { height: clamp(320px, 44vw, 400px); }
}
@media (max-width: 700px) {
  .blog .asta-blog-hero__latest .asta-post-card--featured { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .blog .asta-blog-hero__latest .asta-post-card--featured > a { height: auto; aspect-ratio: 16 / 9; }
  .blog .asta-blog-hero__latest .asta-post-card--featured img { height: auto; aspect-ratio: 16 / 9; }
  .blog .asta-blog-hero__latest .asta-post-card__body { padding: 22px; padding-bottom: 14px; }
}
@media (max-width: 600px) {
  .blog .asta-archive-hero.asta-blog-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 20px; }
  .blog .asta-blog-hero__latest .asta-post-card--featured { grid-template-columns: minmax(0, 1fr); height: auto; }
  .blog .asta-blog-hero__latest .asta-post-card--featured img { height: auto; aspect-ratio: 16 / 9; }
  .blog .asta-blog-hero__latest .asta-post-card__body { padding: 21px; padding-bottom: 14px; }
  .blog .asta-blog-hero__latest .asta-post-card__body h3 { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .blog .asta-blog-hero__latest .asta-post-card--featured,
  .blog .asta-blog-hero__latest .asta-post-card--featured img { transition: none; }
}

/* Oferta: rozwijane menu z pozycjami odpowiadającymi kafelkom na stronie głównej. */
@media (min-width: 851px) {
  .asta-header .wp-block-navigation { position: static; }
  .asta-header .wp-block-navigation__responsive-container,
  .asta-header .wp-block-navigation__responsive-dialog { position: static !important; }
  .asta-header .wp-block-navigation .wp-block-navigation-item:has(> ul.asta-offer-menu) { position: static; }
  .asta-header .wp-block-navigation .wp-block-navigation-item:has(> ul.asta-offer-menu) > ul.asta-offer-menu {
    top: 100%;
    left: 50%;
    right: auto;
    display: grid;
    width: min(1288px, calc(100vw - 48px));
    max-width: 1288px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(124px, auto);
    gap: 20px 24px;
    margin: 0;
    padding: 22px clamp(0px, calc((100vw - 1240px) / 2), 48px);
    align-items: stretch;
    box-sizing: border-box;
    transform: translateX(-50%);
    border: 1px solid #e4eae1;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgb(25 41 23 / 16%);
    overflow: visible !important;
    z-index: 20;
  }
  .asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item {
    position: relative;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .asta-header ul.asta-offer-menu::before {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 31px;
    clip-path: polygon(18% 0, 55% 0, 100% 100%, 0 100%);
    background: transparent;
    content: "";
    pointer-events: auto;
  }
  .asta-header ul.asta-offer-menu::after {
    position: absolute;
    top: 50%;
    right: clamp(0px, calc((100vw - 1240px) / 2), 48px);
    left: clamp(0px, calc((100vw - 1240px) / 2), 48px);
    height: 1px;
    background: #e6ece4;
    content: "";
    pointer-events: none;
  }
}
@media (min-width: 851px) and (max-width: 919px) {
  .asta-header .wp-block-navigation .wp-block-navigation-item:has(> ul.asta-offer-menu) > ul.asta-offer-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(116px, auto);
  }
  .asta-header ul.asta-offer-menu::after { display: none; }
}
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 124px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #e7eee3;
  border-radius: 12px;
  background-color: #fff;
  color: #243a24;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content::before {
  display: block;
  width: clamp(88px, 9vw, 128px);
  height: auto;
  aspect-ratio: 3 / 2;
  flex: 0 0 clamp(88px, 9vw, 128px);
  border-radius: 8px;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  content: "";
}
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content::after {
  display: block;
  flex: 0 0 auto;
  color: #7c9d70;
  content: "→";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: color .18s ease, transform .18s ease;
}
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content:hover,
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content:focus-visible {
  transform: translateY(-1px);
  border-color: #dbe8d5;
  background-color: #f5f9f2;
  color: var(--asta-dark-green);
}
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content:hover::after,
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content:focus-visible::after {
  color: var(--asta-dark-green);
  transform: translateX(3px);
}
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content:focus-visible { outline: 2px solid var(--asta-dark-green); outline-offset: 2px; }
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item[class*="business-pv"] > .wp-block-navigation-item__content::before { background-image: url("/wp-content/uploads/2026/09/asta-line-art/pv-business.webp"); }
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item[class*="business-storage"] > .wp-block-navigation-item__content::before { background-image: url("/wp-content/uploads/2026/09/asta-line-art/energy-storage-business.webp"); }
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item[class*="multifamily-pv"] > .wp-block-navigation-item__content::before { background-image: url("/wp-content/uploads/2026/09/asta-line-art/pv-multifamily.webp"); }
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item[class*="home-pv"] > .wp-block-navigation-item__content::before { background-image: url("/wp-content/uploads/2026/09/asta-line-art/pv-home.webp"); }
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item[class*="home-storage"] > .wp-block-navigation-item__content::before { background-image: url("/wp-content/uploads/2026/09/asta-line-art/energy-storage-home.webp"); }
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item[class*="home-heatpump"] > .wp-block-navigation-item__content::before { background-image: url("/wp-content/uploads/2026/09/asta-line-art/heat-pump-home.webp"); }
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item[class*="farm-pv"] > .wp-block-navigation-item__content::before { background-image: url("/wp-content/uploads/2026/10/asta-farmer/farm-system-lineart.webp"); }
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item[class*="pv-review"] > .wp-block-navigation-item__content::before { background-image: url("/wp-content/uploads/2026/10/asta-line-art/pv-installation-review.webp"); }
.asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item[class*="air-conditioning"] > .wp-block-navigation-item__content::before { background-image: url("/wp-content/uploads/2026/10/asta-line-art/air-conditioning-installation.webp"); }
.asta-header .wp-block-navigation .asta-mobile-call { display: none; }
@media (max-width: 850px) {
  .asta-header .wp-block-navigation .wp-block-navigation-item:has(> ul.asta-offer-menu) > ul.asta-offer-menu {
    position: static;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 6px;
    padding: 8px 0 14px;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content {
    min-height: 0;
    gap: 12px;
    padding: 13px 14px;
    border-color: #e1e9dd;
    background: #f7faf5;
    font-size: 14px;
  }
  .asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content { transition: none; }
  .asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content::after { transition: none; }
  .asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content:hover,
  .asta-header .wp-block-navigation ul.asta-offer-menu > .asta-offer-menu__item > .wp-block-navigation-item__content:focus-visible { transform: none; }
}

/* Align full-bleed archive headers with the archive content gutter. */
.blog main.asta-content > .asta-archive-hero,
.archive main.asta-content > .asta-archive-hero {
  width: calc(100% + 48px) !important;
  max-width: none !important;
  margin-inline: -24px !important;
}

@media (max-width: 850px) {
  /* Use the accessible WordPress overlay menu instead of wrapping every link. */
  .asta-header-inner { flex-wrap: nowrap; }
  .asta-header .wp-block-navigation {
    order: 0;
    flex: 0 0 auto;
    flex-basis: auto;
    width: auto;
    margin-left: auto;
  }
  .asta-header .asta-header-actions { margin-left: 0; }
  .asta-header .wp-block-navigation__responsive-container-open {
    display: inline-flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .asta-header .wp-block-navigation__responsive-container:not(.is-menu-open):not(.has-modal-open) {
    display: none !important;
  }
  .asta-header .wp-block-navigation__responsive-container.is-menu-open {
    overflow-y: auto;
    padding: 0 !important;
    background: #fff;
  }
  .asta-header .wp-block-navigation__responsive-dialog {
    min-height: 100%;
    padding: 72px 20px 32px;
  }
  .asta-header .wp-block-navigation__responsive-container-close {
    top: 14px;
    right: 16px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
  .asta-header .wp-block-navigation__responsive-container-content,
  .asta-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    width: 100%;
    align-items: stretch !important;
  }
  .asta-header .wp-block-navigation__responsive-container-content {
    max-width: 560px;
    margin-inline: auto;
  }
  .asta-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    gap: 0;
  }
  .asta-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    width: 100%;
    align-items: stretch;
  }
  .asta-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
    border-bottom: 1px solid #e8eee5;
    color: var(--asta-dark-green);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-align: left;
  }
  .asta-header .wp-block-navigation .asta-mobile-call { display: flex; margin-top: 18px; }
  .asta-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .asta-mobile-call > .wp-block-navigation-item__content {
    min-height: 52px;
    justify-content: center;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--asta-green);
    color: #fff;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .blog main.asta-content > .asta-archive-hero,
  .archive main.asta-content > .asta-archive-hero {
    width: calc(100% + 32px) !important;
    margin-inline: -16px !important;
  }
}

/* Service request hero: use a real installation photo with enough contrast for its copy. */
body.page-id-7422 main.asta-content > .wp-block-post-content > .asta-page-hero {
  padding-top: clamp(56px, 7vw, 88px);
  background-color: #19251c;
  background-image:
    linear-gradient(90deg, rgb(12 20 14 / 78%) 0%, rgb(12 20 14 / 55%) 48%, rgb(12 20 14 / 22%) 100%),
    url("assets/service-request-hero.webp");
  background-position: center, center 52%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
body.page-id-7422 .asta-page-hero :is(h1, h2, p),
body.page-id-7422 .asta-page-hero :is(h1, h2, p) * { color: #fff !important; }

@media (max-width: 700px) {
  body.page-id-7422 main.asta-content > .wp-block-post-content > .asta-page-hero {
    padding-top: 40px;
    background-image:
      linear-gradient(90deg, rgb(12 20 14 / 80%) 0%, rgb(12 20 14 / 56%) 72%, rgb(12 20 14 / 40%) 100%),
      url("assets/service-request-hero.webp");
    background-position: center, 68% center;
  }
}

/* Let the service form card overlap the hero edge; the spacer is no longer needed. */
body.page-id-7422 .wp-block-post-content > .wp-block-group.asta-layout:has(> .wp-block-spacer + form.asta-form) {
  position: relative;
  z-index: 2;
  margin-top: -88px;
}
body.page-id-7422 .wp-block-post-content > .wp-block-group.asta-layout:has(> .wp-block-spacer + form.asta-form) > .wp-block-spacer { display: none; }

/* The complaint page already has its dedicated form, so omit the general sales CTA. */
body.page-id-7422 .asta-footer-cta { display: none; }

/* Restore the page-to-footer spacing after removing the footer CTA overlap. */
body.page-id-7422 main.asta-content { padding-bottom: 0; }
body.page-id-7422 .asta-footer { margin-top: 0; padding-top: clamp(48px, 6vw, 88px); }
body.page-id-7422 .wp-block-post-content > .wp-block-group.asta-layout:has(.wp-block-separator) {
  padding-block: 24px 32px;
}
body.page-id-7422 .wp-block-post-content > .wp-block-group.asta-layout:has(.wp-block-separator) .wp-block-separator,
body.page-id-7422 .wp-block-post-content > .wp-block-group.asta-layout:has(.wp-block-separator) .wp-block-spacer { display: none !important; }
body.page-id-7422 .wp-block-post-content > .wp-block-group.asta-layout:has(.wp-block-separator) p { margin: 0; }
body.page-id-7422 .asta-page-hero .wp-block-column > p + p { margin-block-start: 12px !important; }

/* Content cards on utility pages ride the canonical 1160 content track inside the 1192 post-content shell. */
body.page-id-7422 .wp-block-post-content > .asta-layout:not(.asta-page-hero),
body.page-id-3132 .wp-block-post-content > .asta-section:not(.asta-page-hero),
body.page-id-4304 .wp-block-post-content > .asta-section:not(.asta-page-hero),
body.page-id-9786 .wp-block-post-content > .asta-section:not(.asta-page-hero) {
  width: min(100%, 1160px);
  margin-inline: auto;
}

/* Keep sectioned forms compact and expose one step at a time. */
.asta-form--multistep .asta-form__step { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.asta-form--multistep .asta-form__step[hidden],
.asta-form--multistep .asta-form__step-progress[hidden],
.asta-form--multistep .asta-form__step-controls[hidden],
.asta-form--multistep button[hidden] { display: none !important; }
.asta-form--multistep .asta-form__section { grid-column: 1 / -1; margin: 0 0 4px; }
.asta-form--multistep .asta-form__step > .asta-form__field:has(textarea),
.asta-form--multistep .asta-form__step > .asta-form__field:has(input[type="file"]) { grid-column: 1 / -1; }
.asta-form__step-progress { display: grid; grid-column: 1 / -1; gap: 10px; color: #526052; font-size: .9rem; font-weight: 600; }
.asta-form__progress-track { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: #e8eee5; }
.asta-form__progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--asta-green); transition: width 220ms ease; }
.asta-form__step-controls { display: flex; grid-column: 1 / -1; align-items: center; gap: 12px; }
.asta-form__step-back { margin-right: auto; border: 1px solid #cbd8c6 !important; background: #fff !important; color: var(--asta-dark-green) !important; }
.asta-form__step-controls > [data-asta-step-next],
.asta-form__step-controls > button[type="submit"] { margin-left: auto; }
.page-id-7422 .asta-form.is-success .asta-form__step,
.page-id-7422 .asta-form.is-success .asta-form__step-progress,
.page-id-7422 .asta-form.is-success .asta-form__step-controls,
.page-id-7422 .asta-form.is-success > button { display: none !important; }
@media (max-width: 700px) {
  .asta-form--multistep .asta-form__step { grid-template-columns: minmax(0, 1fr); }
}
