.asta-realizations {
  --realizations-ink: #20252d;
  --realizations-copy: #596259;
  --realizations-green: #47a013;
  --realizations-border: #e0e9dc;
  padding-block: clamp(40px, 5.5vw, 72px);
}

.asta-realizations__inner {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}

.asta-realizations__header {
  margin-bottom: clamp(22px, 3vw, 34px);
}

.asta-realizations__eyebrow {
  margin: 0 0 8px;
  color: #47743c;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.asta-realizations__header h2 {
  max-width: 24ch;
  margin: 0;
  color: var(--realizations-ink);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.asta-realizations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.asta-realizations__card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--realizations-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(31 36 44 / 5%);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.asta-realizations__media {
  overflow: hidden;
  aspect-ratio: 1.42 / 1;
  background: #f3f6f1;
}

.asta-realizations__media > .asta-webp-picture {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.asta-realizations__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.asta-realizations__body {
  padding: 18px 20px 20px;
}

.asta-realizations__body h3 {
  margin: 0;
  color: var(--realizations-ink);
  font-size: 1.08rem;
  line-height: 1.32;
}

.asta-realizations__body p {
  margin: 9px 0 0;
  color: var(--realizations-copy);
  font-size: .94rem;
  line-height: 1.58;
}

.asta-realizations__empty {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--realizations-border);
  border-radius: 16px;
  background: #f5f8f3;
}

.asta-realizations__empty p {
  max-width: 55ch;
  margin: 0;
  color: var(--realizations-copy);
  line-height: 1.65;
}

.asta-realizations__button,
.asta-realizations__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.asta-realizations__button {
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--realizations-green);
}

.asta-realizations__button:hover {
  transform: translateY(-1px);
  background: #347b10;
}

.asta-realizations__button:focus-visible,
.asta-realizations__link:focus-visible {
  outline: 3px solid #1f4a16;
  outline-offset: 3px;
}

.asta-realizations__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.asta-realizations__link {
  min-height: 0;
  color: #367c19;
}

.asta-realizations__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.asta-realizations-editor .components-placeholder__label {
  font-weight: 700;
}

.asta-pv-tool-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.asta-pv-tool-page h1 {
  max-width: 18ch;
  margin: 0 0 14px;
  color: #20252d;
  font-size: clamp(2.15rem, 4.8vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.asta-pv-tool-page p {
  max-width: 66ch;
  margin: 0;
  color: #596259;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}

.wp-block-post-content > .asta-pv-tool-page + .asta-pv {
  width: min(calc(100% - 40px), 1000px);
  margin: 0 auto clamp(48px, 7vw, 84px);
  border: 1px solid #e0e9dc;
  background: #f7f9f6;
}

@media (hover: hover) and (pointer: fine) {
  .asta-realizations__card:hover {
    transform: translateY(-3px);
    border-color: #c4dcb8;
    box-shadow: 0 16px 32px rgb(31 36 44 / 10%);
  }

  .asta-realizations__card:hover .asta-realizations__image {
    transform: scale(1.025);
  }
}

@media (max-width: 760px) {
  .asta-realizations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .asta-realizations__inner {
    width: min(100% - 32px, 1160px);
  }

  .asta-realizations__grid {
    grid-template-columns: 1fr;
  }

  .asta-realizations__empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .asta-realizations__button {
    width: 100%;
  }

  .wp-block-post-content > .asta-pv-tool-page + .asta-pv {
    width: min(100% - 32px, 1000px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .asta-realizations__card,
  .asta-realizations__image,
  .asta-realizations__button,
  .asta-realizations__link {
    transition: none;
  }
}

/* Main portfolio page: editorial hero, a clear route into the project list, and complete project artwork. */
body.page-id-491 .asta-page-hero.asta-realizations-hero {
  min-height: clamp(500px, 43vw, 650px);
  margin-bottom: 0;
}

body.page-id-491 .asta-realizations-hero > .wp-block-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

body.page-id-491 .asta-realizations-hero > .wp-block-columns > .wp-block-column {
  min-width: 0;
  width: auto;
  margin: 0;
}

body.page-id-491 .asta-page-hero.asta-realizations-hero h1 {
  max-width: 13ch;
  margin: 0 0 20px;
  color: var(--asta-ink, #1f242c);
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body.page-id-491 .asta-realizations-hero__lead {
  max-width: 58ch;
  margin: 0;
  color: #4e5e4c;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.7;
}

body.page-id-491 .asta-realizations-hero .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 26px;
}

body.page-id-491 .asta-realizations-hero .wp-block-button__link {
  min-height: 50px;
  padding: 14px 23px;
  border: 1px solid var(--asta-green, #47a013);
  border-radius: 10px;
  background: var(--asta-green, #47a013);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

body.page-id-491 .asta-realizations-hero .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: transparent;
  background: transparent;
  color: #32770e;
}

body.page-id-491 .asta-realizations-hero__figure {
  width: min(100%, 500px);
  margin: 0 0 0 auto;
  padding: clamp(12px, 1.5vw, 18px);
  overflow: hidden;
  border: 1px solid #dce7d8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgb(31 36 44 / 12%);
}

body.page-id-491 .asta-realizations-hero__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 15px;
  object-fit: contain;
}

body.page-id-491 #lista-realizacji { scroll-margin-top: 112px; }
body.page-id-491 .asta-realizations { padding-block: 0 clamp(58px, 7vw, 88px); }
body.page-id-491 .asta-realizations__inner {
  width: min(100% - 32px, 1160px);
  max-width: 1160px;
  box-sizing: border-box;
}
body.page-id-491 .asta-realizations__header { max-width: 760px; margin: 0 0 clamp(26px, 3.5vw, 40px); }
body.page-id-491 .asta-realizations__eyebrow { display: none; }
body.page-id-491 .asta-realizations__header h2 {
  max-width: none;
  font-size: clamp(2rem, 3.7vw, 3rem);
  line-height: 1.08;
}

body.page-id-491 .asta-realizations__lead {
  max-width: 68ch;
  margin: 13px 0 0;
  color: var(--realizations-copy, #596259);
  font-size: 1.04rem;
  line-height: 1.65;
}

body.page-id-491 .asta-realizations__toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.25fr);
  align-items: end;
  gap: clamp(14px, 1.8vw, 22px);
  transform: translateY(-33.333%);
  margin: 0 0 10px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid #e0e9dc;
  border-radius: 18px;
  background: #f7faf5;
  box-shadow: 0 8px 24px rgb(31 36 44 / 4%);
}

body.page-id-491 .asta-realizations__search {
  display: grid;
  gap: 9px;
  min-width: 0;
  color: #303b2f;
  font-size: .9rem;
  font-weight: 650;
}

body.page-id-491 .asta-realizations__filter {
  display: grid;
  gap: 9px;
  min-width: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #303b2f;
  font-size: .9rem;
  font-weight: 650;
}

body.page-id-491 .asta-realizations__filter > legend {
  display: block;
  width: 100%;
  margin: 0 0 1px;
  padding: 0;
  color: #303b2f;
  font-size: .9rem;
  font-weight: 650;
}

body.page-id-491 .asta-realizations__search-input {
  position: relative;
  display: flex;
  align-items: center;
}

body.page-id-491 .asta-realizations__search-input > svg {
  position: absolute;
  left: 15px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #6b7968;
  stroke-linecap: round;
  stroke-width: 1.7;
  pointer-events: none;
}

body.page-id-491 .asta-realizations__search-input > input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px 13px 46px;
  border: 1px solid #d6e1d1;
  border-radius: 12px;
  background: #fff;
  color: var(--realizations-ink, #20252d);
  font: inherit;
  font-size: .98rem;
  font-weight: 400;
  box-shadow: 0 5px 16px rgb(31 36 44 / 4%);
}

body.page-id-491 .asta-realizations__search-input > input:focus-visible {
  border-color: var(--realizations-green, #47a013);
  outline: 3px solid rgb(71 160 19 / 18%);
  outline-offset: 2px;
}

body.page-id-491 .asta-realizations__power-values {
  color: var(--realizations-ink, #20252d);
  font-size: .96rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

body.page-id-491 .asta-realizations__power-filter > legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
}

body.page-id-491 .asta-realizations__power-filter > legend > span {
  color: var(--realizations-ink, #20252d);
  font-size: .96rem;
  font-variant-numeric: tabular-nums;
}

body.page-id-491 .asta-realizations__power-slider {
  position: relative;
  height: 34px;
  margin-inline: 3px;
  touch-action: pan-y;
}

body.page-id-491 .asta-realizations__power-track {
  position: absolute;
  top: 15px;
  right: 8px;
  left: 8px;
  height: 4px;
  border-radius: 999px;
  background: #dce6d8;
}

body.page-id-491 .asta-realizations__power-track > span {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: var(--realizations-green, #47a013);
}

body.page-id-491 .asta-realizations__power-slider input[type="range"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

body.page-id-491 .asta-realizations__power-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

body.page-id-491 .asta-realizations__power-slider input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--realizations-green, #47a013);
  box-shadow: 0 1px 5px rgb(31 36 44 / 28%);
  cursor: grab;
  pointer-events: auto;
}

body.page-id-491 .asta-realizations__power-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

body.page-id-491 .asta-realizations__power-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--realizations-green, #47a013);
  box-shadow: 0 1px 5px rgb(31 36 44 / 28%);
  cursor: grab;
  pointer-events: auto;
}

body.page-id-491 .asta-realizations__power-slider input[type="range"]:focus-visible { outline: none; }
body.page-id-491 .asta-realizations__power-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgb(71 160 19 / 24%);
}

body.page-id-491 .asta-realizations__power-slider input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgb(71 160 19 / 24%);
}

body.page-id-491 .asta-realizations__include-unknown {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #667264;
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

body.page-id-491 .asta-realizations__include-unknown input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 1px 0 0;
  accent-color: var(--realizations-green, #47a013);
}

body.page-id-491 .asta-realizations__audience-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

body.page-id-491 .asta-realizations__audience-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 82px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 7px 3px;
  border: 1px solid #d6e1d1;
  border-radius: 11px;
  background: #fff;
  color: #566454;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

body.page-id-491 .asta-realizations__audience-option > input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

body.page-id-491 .asta-realizations__audience-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #f0f6ec;
  color: #438d20;
  pointer-events: none;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

body.page-id-491 .asta-realizations__audience-icon > svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  pointer-events: none;
}

body.page-id-491 .asta-realizations__audience-icon .asta-realizations__icon-accent {
  fill: #e2f0da;
  stroke: #438d20;
}

body.page-id-491 .asta-realizations__audience-option:has(input:checked) {
  border-color: #65a942;
  background: #eef7e9;
  color: #32770e;
  box-shadow: inset 0 0 0 1px rgb(71 160 19 / 12%);
}

body.page-id-491 .asta-realizations__audience-option:has(input:checked) .asta-realizations__audience-icon {
  background: #fff;
  color: #32770e;
  transform: translateY(-1px);
}

body.page-id-491 .asta-realizations__audience-option:has(input:focus-visible) {
  outline: 3px solid rgb(71 160 19 / 22%);
  outline-offset: 2px;
}

body.page-id-491 .asta-realizations__grid {
  width: 100%;
  max-width: 100%;
  gap: clamp(16px, 2vw, 24px);
}
body.page-id-491 .asta-realizations__card {
  border-radius: 18px;
  box-shadow: 0 10px 26px rgb(31 36 44 / 6%);
}

body.page-id-491 .asta-realizations__media {
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #f7f9f6;
}

body.page-id-491 .asta-realizations__image {
  border-radius: 0 !important;
  object-fit: cover;
  object-position: center;
}

body.page-id-491 .asta-realizations__body { min-height: 98px; padding: 19px 21px 22px; }
body.page-id-491 .asta-realizations__body h3 { font-size: 1.12rem; }
body.page-id-491 .asta-realizations__body p { line-height: 1.65; }
body.page-id-491 .asta-realizations__no-results { margin: 24px 0; color: var(--realizations-copy, #596259); }

@media (min-width: 851px) and (max-width: 1024px) {
  body.page-id-491 .asta-realizations__toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-id-491 .asta-realizations__search { grid-column: 1 / -1; }
}

@media (max-width: 850px) {
  body.page-id-491 .asta-realizations__toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-id-491 .asta-realizations__search { grid-column: 1 / -1; }
  body.page-id-491 .asta-realizations-hero > .wp-block-columns { grid-template-columns: minmax(0, 1fr); }
  body.page-id-491 .asta-realizations-hero__figure { width: min(100%, 430px); margin-inline: auto; }
  body.page-id-491 .asta-page-hero.asta-realizations-hero { padding-bottom: 62px; }
}

@media (max-width: 600px) {
  body.page-id-491 .asta-realizations-hero > .wp-block-columns { gap: 24px; }
  body.page-id-491 .asta-realizations__inner { width: min(100% - 32px, 1160px); }
  body.page-id-491 .asta-realizations__toolbar { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  body.page-id-491 .asta-realizations__search { grid-column: auto; }
  body.page-id-491 .asta-realizations__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Match the offer-page hero: vertically centered copy at left and a compact form at right. */
body.page-id-491 .asta-page-hero.asta-realizations-hero {
  min-height: clamp(500px, 40vw, 620px);
}

body.page-id-491 .asta-realizations-hero > .wp-block-columns {
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  align-items: stretch;
  min-height: clamp(440px, 34vw, 540px);
  gap: clamp(32px, 5vw, 76px);
}

body.page-id-491 .asta-realizations-hero > .wp-block-columns > .wp-block-column:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.page-id-491 .asta-realizations-hero > .wp-block-columns > .wp-block-column:last-child {
  display: flex;
  align-items: center;
}

body.page-id-491 .asta-realizations-hero__actions,
body.page-id-491 .asta-realizations-hero__figure {
  display: none !important;
}

body.page-id-491 .asta-realizations-hero__form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 570px;
  margin-left: auto;
}

body.page-id-491 .asta-realizations-hero__form .asta-form {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #dce7d8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgb(31 36 44 / 9%);
}

body.page-id-491 .asta-realizations-hero__form .asta-form__heading,
body.page-id-491 .asta-realizations-hero__form .asta-form__intro,
body.page-id-491 .asta-realizations-hero__form .asta-form > button,
body.page-id-491 .asta-realizations-hero__form .asta-form__success,
body.page-id-491 .asta-realizations-hero__form .asta-form__error {
  grid-column: 1 / -1;
}

body.page-id-491 .asta-realizations-hero__form .asta-form__heading {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
}

body.page-id-491 .asta-realizations-hero__form .asta-form__intro {
  margin: -6px 0 0;
  color: #586454;
  font-size: .95rem;
  line-height: 1.5;
}

body.page-id-491 .asta-realizations-hero__form .asta-form__field {
  min-width: 0;
  gap: 6px;
}

body.page-id-491 .asta-realizations-hero__form .asta-form label {
  color: #303a30;
  font-size: .86rem;
  line-height: 1.35;
}

body.page-id-491 .asta-realizations-hero__form .asta-form input:not([type="checkbox"]),
body.page-id-491 .asta-realizations-hero__form .asta-form select {
  min-height: 48px;
  border-color: #cbd8c6;
  border-radius: 11px;
  font-size: .95rem;
}

body.page-id-491 .asta-realizations-hero__form .asta-form > button {
  min-height: 50px;
  margin-top: 2px;
  padding-inline: 18px;
}

body.page-id-491 .asta-realizations-hero__form .asta-form__honeypot,
body.page-id-491 .asta-realizations-hero__form .asta-form > input[type="hidden"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.page-id-491 .asta-realizations-hero__form .asta-form__success,
body.page-id-491 .asta-realizations-hero__form .asta-form__error {
  margin: 0;
}

body.page-id-491 .asta-realizations-hero__form .asta-form.is-success > .asta-form__field,
body.page-id-491 .asta-realizations-hero__form .asta-form.is-success > button {
  display: none;
}

body.page-id-491 .asta-realizations-hero__form .asta-form:has(.asta-form__success) {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1000px) {
  body.page-id-491 .asta-realizations-hero > .wp-block-columns {
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 28px;
  }
  body.page-id-491 .asta-realizations-hero__form .asta-form { padding: 24px; }
}

@media (max-width: 850px) {
  body.page-id-491 .asta-realizations-hero > .wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  body.page-id-491 .asta-realizations-hero > .wp-block-columns > .wp-block-column:first-child {
    min-height: 300px;
  }
  body.page-id-491 .asta-realizations-hero__form {
    max-width: 650px;
    margin-inline: auto;
  }
  body.page-id-491 .asta-page-hero.asta-realizations-hero {
    min-height: 0;
    padding-bottom: 62px;
  }
}

@media (max-width: 600px) {
  body.page-id-491 .asta-realizations-hero > .wp-block-columns { gap: 24px; }
  body.page-id-491 .asta-realizations-hero > .wp-block-columns > .wp-block-column:first-child { min-height: 0; }
  body.page-id-491 .asta-realizations-hero__form .asta-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
  }
  body.page-id-491 .asta-realizations-hero__form .asta-form > * { grid-column: 1; }
}

/* Use the same compact enquiry-form scale as the photovoltaic offer pages. */
body.page-id-491 .asta-realizations-hero__form .asta-form {
  gap: 14px 18px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: 16px;
}

body.page-id-491 main.asta-content .asta-page-hero.asta-realizations-hero .asta-realizations-hero__form .asta-form__heading {
  max-width: none;
  margin: 0 !important;
  font-size: clamp(1.65rem, 2.2vw, 2rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em;
  text-wrap: balance;
}

body.page-id-491 .asta-realizations-hero__form .asta-form__field { gap: 7px; }
body.page-id-491 .asta-realizations-hero__form .asta-form label { font-size: .9rem; }

body.page-id-491 .asta-realizations-hero__form .asta-form input:not([type="checkbox"]),
body.page-id-491 .asta-realizations-hero__form .asta-form select {
  min-height: 48px;
  border-radius: 10px;
}

body.page-id-491 .asta-realizations-hero__form .asta-form > button {
  margin: 0;
  border-radius: 10px;
}

/* Mirror the business enquiry form: contact details first, then consent and one CTA. */
body.page-id-491 .asta-realizations-hero__form .asta-form__field:nth-of-type(3),
body.page-id-491 .asta-realizations-hero__form .asta-form__field:has(.asta-form__choice),
body.page-id-491 .asta-realizations-hero__form .asta-form > button {
  grid-column: 1 / -1;
}

body.page-id-491 .asta-realizations-hero__form .asta-form__field:has(.asta-form__choice) {
  display: block;
}

body.page-id-491 .asta-realizations-hero__form .asta-form__field .asta-form__choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #566158;
  font-size: .82rem !important;
  font-weight: 400;
  line-height: 1.5;
}

body.page-id-491 .asta-realizations-hero__form .asta-form__field .asta-form__choice input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

/* Orbital view of northwestern Poland, sized to fill the wide portfolio hero. */
body.page-id-491 main.asta-content > .wp-block-post-content > .asta-page-hero.asta-realizations-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 0;
  background-color: #101a1e;
  background-image: url('/wp-content/uploads/2026/10/realizations-hero-poland-dark.webp');
  background-position: center 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

body.page-id-491 main.asta-content > .wp-block-post-content > .asta-page-hero.asta-realizations-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgb(7 16 26 / 18%);
  content: '';
  pointer-events: none;
}

body.page-id-491 .asta-realizations-hero > .wp-block-columns {
  position: relative;
  z-index: 1;
}

body.page-id-491 .asta-page-hero.asta-realizations-hero h1 {
  color: #fff !important;
  text-shadow: 0 2px 22px rgb(0 0 0 / 30%);
}

body.page-id-491 .asta-realizations-hero__lead {
  color: rgb(255 255 255 / 92%);
  text-shadow: 0 1px 12px rgb(0 0 0 / 38%);
}

.asta-realizations__card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.asta-realizations__card-link:focus-visible {
  border-radius: 18px;
  outline: 3px solid rgb(71 160 19 / 55%);
  outline-offset: 3px;
}

.asta-realizations__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.asta-realizations__body .asta-realizations__facts {
  margin-top: 8px;
  color: #586957;
  font-size: .86rem;
  font-weight: 650;
}

.asta-realizations__card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  color: #347c13;
  font-size: .92rem;
  font-weight: 700;
}

.asta-realizations__card-cta span { font-size: 1.2rem; transition: transform .2s ease; }
.asta-realizations__card-link:hover .asta-realizations__card-cta span { transform: translateX(4px); }

body.single-asta_realization main.asta-realization-single {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0 0 clamp(48px, 6vw, 80px);
}

.asta-realization-detail__container {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}

.asta-realization-breadcrumbs {
  width: min(100% - 48px, 1160px);
  margin: 18px auto;
  color: #596557;
  font-size: .9rem;
}

.asta-realization-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asta-realization-breadcrumbs li + li::before {
  margin-right: 8px;
  color: #8b9888;
  content: '›';
}

.asta-realization-breadcrumbs a { color: inherit; text-decoration: none; }
.asta-realization-breadcrumbs a:hover { color: #347c13; text-decoration: underline; }

body.single-asta_realization main.asta-realization-single:has(> .asta-realization-hero-gallery) > .asta-realization-breadcrumbs {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 92%);
  text-shadow: 0 1px 10px rgb(0 0 0 / 55%);
}

body.single-asta_realization main.asta-realization-single:has(> .asta-realization-hero-gallery) > .asta-realization-breadcrumbs li + li::before {
  color: rgb(255 255 255 / 72%);
}

body.single-asta_realization main.asta-realization-single:has(> .asta-realization-hero-gallery) > .asta-realization-breadcrumbs a:hover {
  color: #fff;
}

.asta-realization-hero-gallery {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #eef2ec;
}

.asta-realization-hero-gallery__grid {
  display: grid;
  width: 100%;
  height: clamp(600px, 76svh, 880px);
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.asta-realization-hero-gallery__grid--1 {
  height: clamp(560px, 76svh, 880px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.asta-realization-hero-gallery__grid--2 {
  grid-template-rows: minmax(0, 1fr);
}

.asta-realization-hero-gallery__grid--4,
.asta-realization-hero-gallery__grid--5 {
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
}

.asta-realization-hero-gallery__grid--4 .asta-realization-hero-gallery__item:last-child {
  grid-column: 2 / -1;
}

.asta-realization-hero-gallery__item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  background: #eef2ec;
}

.asta-realization-hero-gallery__item--feature { grid-row: 1 / -1; }
.asta-realization-hero-gallery__grid--1 .asta-realization-hero-gallery__item--feature { grid-row: auto; }

.asta-realization-hero-gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.asta-realization-hero-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  object-fit: cover;
  transition: transform .5s ease;
}

.asta-realization-hero-gallery__open:hover img { transform: scale(1.025); }
.asta-realization-hero-gallery__open:focus-visible { outline: 3px solid #fff; outline-offset: -7px; }

.asta-realization-photo-pagination { display: none; }

.asta-realization-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(56px, 7vw, 92px);
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #fff;
}

.asta-realization-lightbox::backdrop {
  background: rgb(8 13 12 / 34%);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
}
.asta-realization-lightbox figure { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 0; }
.asta-realization-lightbox figure img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; }
.asta-realization-lightbox figcaption { color: rgb(255 255 255 / 88%); font-size: .95rem; text-align: center; }
.asta-realization-lightbox figcaption:empty { display: none; }
.asta-realization-lightbox button { position: absolute; z-index: 1; display: grid; width: 48px; height: 48px; place-items: center; padding: 0; border: 1px solid rgb(255 255 255 / 24%); border-radius: 50%; background: rgb(255 255 255 / 12%); color: #fff; font: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.asta-realization-lightbox button:hover { background: rgb(255 255 255 / 24%); }
.asta-realization-lightbox button[hidden] { display: none; }
.asta-realization-lightbox button:focus-visible { outline: 3px solid #a8e184; outline-offset: 3px; }
.asta-realization-lightbox__close { top: 24px; right: 28px; }
.asta-realization-lightbox__previous,
.asta-realization-lightbox__next { top: 50%; transform: translateY(-50%); }
.asta-realization-lightbox__previous { left: 24px; }
.asta-realization-lightbox__next { right: 24px; }
.asta-realization-lightbox__count { position: absolute; right: 0; bottom: 18px; left: 0; margin: 0; color: rgb(255 255 255 / 84%); font-size: .9rem; text-align: center; }

.asta-realization-detail__intro {
  padding: clamp(44px, 6vw, 78px) 0;
  background: #f1f6ee;
}

.asta-realization-detail__intro h1 {
  max-width: 19ch;
  margin: 0;
  color: var(--asta-ink, #1f242c);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.asta-realization-detail__intro p {
  max-width: 72ch;
  margin: 18px 0 0;
  color: #4e5e4c;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.asta-realization-facts {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1160px);
  margin: -52px auto 0;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid #dce7d8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(31 36 44 / 5%);
}

.asta-realization-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.asta-realization-facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
}

.asta-realization-fact { min-width: 0; padding: 8px 20px; }
.asta-realization-fact + .asta-realization-fact { border-left: 1px solid #e5ebe2; }
.asta-realization-fact dt { color: #667264; font-size: .9rem; line-height: 1.4; }
.asta-realization-fact dd { margin: 6px 0 0; color: #222a21; font-size: clamp(1.12rem, 1.45vw, 1.32rem); font-weight: 730; line-height: 1.35; }

.asta-realization-single__description { padding: clamp(38px, 5vw, 64px) 0 0; }

.asta-realization-video {
  width: 100%;
  max-width: none;
  margin: clamp(24px, 4vw, 38px) 0;
}

.asta-realization-video__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #101712;
  box-shadow: 0 12px 32px rgb(31 36 44 / 10%);
}

.asta-realization-video__frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.asta-realization-single__description h2,
.asta-realization-gallery h2 {
  margin: 0 0 20px;
  color: var(--asta-ink, #1f242c);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.asta-realization-single__description .asta-realization-detail__container > :not(h2):not(.wp-block-post-content) {
  color: #485548;
  font-size: 1.05rem;
  line-height: 1.8;
}

.asta-realization-single__description .asta-realization-detail__container > .wp-block-post-content {
  max-width: none;
  color: #485548;
  font-size: 1.05rem;
  line-height: 1.8;
}

.asta-realization-single__description p { margin: 0 0 16px; }
.asta-realization-gallery { padding-top: clamp(42px, 5vw, 64px); }

.asta-realization-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.asta-realization-gallery__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asta-realization-gallery__grid--1 { grid-template-columns: minmax(0, 1fr); }

.asta-realization-gallery__item {
  overflow: hidden;
  margin: 0;
  border: 1px solid #dce7d8;
  border-radius: 16px;
  background: #f6f8f4;
  box-shadow: 0 8px 24px rgb(31 36 44 / 6%);
}

.asta-realization-gallery__open { display: grid; width: 100%; min-height: 180px; place-items: center; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.asta-realization-gallery__open:focus-visible { outline: 3px solid #47a013; outline-offset: -5px; }
.asta-realization-gallery__item img { display: block; width: 100%; max-height: 680px; aspect-ratio: 4 / 3; object-fit: contain; }
.asta-realization-gallery__grid--1 .asta-realization-gallery__item { width: min(100%, 1040px); margin-inline: auto; }
.asta-realization-gallery__grid--1 .asta-realization-gallery__item img { aspect-ratio: 16 / 10; }
.asta-realization-gallery__item figcaption { padding: 12px 16px; color: #596557; font-size: .9rem; }

.asta-realization-single__back { padding-top: 32px; }
.asta-realization-single__back p { margin: 0; }
.asta-realization-single__back a { color: #347c13; font-weight: 700; text-decoration: none; }
.asta-realization-single__back a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .asta-realization-detail__container,
  .asta-realization-breadcrumbs,
  .asta-realization-facts { width: min(100% - 32px, 1160px); }
  .asta-realization-hero-gallery__grid--2,
  .asta-realization-hero-gallery__grid--3,
  .asta-realization-hero-gallery__grid--4,
  .asta-realization-hero-gallery__grid--5 {
    display: flex;
    height: clamp(440px, 68svh, 700px);
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .asta-realization-hero-gallery__grid--2::-webkit-scrollbar,
  .asta-realization-hero-gallery__grid--3::-webkit-scrollbar,
  .asta-realization-hero-gallery__grid--4::-webkit-scrollbar,
  .asta-realization-hero-gallery__grid--5::-webkit-scrollbar { display: none; }
  .asta-realization-hero-gallery__grid--2 .asta-realization-hero-gallery__item,
  .asta-realization-hero-gallery__grid--3 .asta-realization-hero-gallery__item,
  .asta-realization-hero-gallery__grid--4 .asta-realization-hero-gallery__item,
  .asta-realization-hero-gallery__grid--5 .asta-realization-hero-gallery__item { width: 100%; flex: 0 0 100%; scroll-snap-align: center; }
  .asta-realization-hero-gallery__grid--4 .asta-realization-hero-gallery__item:last-child { grid-column: auto; }
  .asta-realization-hero-gallery__item--feature { grid-row: auto; }
  .asta-realization-photo-pagination { position: absolute; z-index: 2; right: 0; bottom: 18px; left: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .asta-realization-photo-pagination button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 62%); box-shadow: 0 1px 6px rgb(0 0 0 / 38%); }
  .asta-realization-photo-pagination button[aria-current="true"] { width: 20px; border-radius: 99px; background: #fff; }
  .asta-realization-hero-gallery__grid--1 {
    height: clamp(520px, 76svh, 760px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .asta-realization-hero-gallery__item--feature { grid-column: 1 / -1; grid-row: auto; }
  .asta-realization-facts { margin-top: -64px; padding: 24px; }
  .asta-realization-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asta-realization-fact + .asta-realization-fact { border-left: 0; }
  .asta-realization-fact:nth-child(even) { border-left: 1px solid #e5ebe2; }
  .asta-realization-fact:nth-child(n + 3) { border-top: 1px solid #e5ebe2; }
  .asta-realization-gallery__grid,
  .asta-realization-gallery__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .asta-realization-gallery__grid,
  .asta-realization-gallery__grid--2,
  .asta-realization-gallery__grid--3 { grid-template-columns: minmax(0, 1fr); }
  .asta-realization-facts dl { grid-template-columns: minmax(0, 1fr); }
  .asta-realization-facts { margin-top: -76px; }
  .asta-realization-fact:nth-child(even) { border-left: 0; }
  .asta-realization-fact + .asta-realization-fact { border-top: 1px solid #e5ebe2; }
  .asta-realization-detail__intro h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .asta-realization-lightbox { padding: 64px 16px; }
  .asta-realization-lightbox figure img { max-height: calc(100dvh - 136px); }
  .asta-realization-lightbox__previous { left: 12px; }
  .asta-realization-lightbox__next { right: 12px; }
  .asta-realization-lightbox button { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .asta-realizations__card-cta span { transition: none; }
  .asta-realization-hero-gallery__grid { scroll-behavior: auto; }
}

/* Bring the shared contact panel closer to the realization details. */
body.single-asta_realization main.asta-realization-single { padding-bottom: 0; }
body.single-asta_realization .asta-footer-cta { padding-top: clamp(18px, 2vw, 28px); }

@media (min-width: 601px) and (max-width: 850px) {
  body.page-id-491 .asta-realizations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
