:root {
  --brand: #2F7D32;
  --brand-deep: #225F27;
  --accent: #A8C548;
  --page-bg: #F4F6F4;
  --surface: #FFFFFF;
  --text: #1F2421;
  --muted: #667069;
  --line: #DCE3DD;
  --dark: #172019;
  --dark-soft: #243027;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-button: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-size-base: 17px;
  --font-size-small: 14px;
  --font-size-h1: 76px;
  --font-size-h2: 50px;
  --radius: 18px;
  --section-spacing: 104px;
  --header-height: 88px;
  --shell: 1240px;
  --shadow-soft: 0 24px 70px rgba(22, 32, 25, 0.10);
  --shadow-card: 0 18px 45px rgba(22, 32, 25, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure,
blockquote {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

p,
ul,
ol {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.4rem, 8vw, var(--font-size-h1));
}

h2 {
  font-size: clamp(2.5rem, 5vw, var(--font-size-h2));
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.25rem;
}

::selection {
  color: #fff;
  background: var(--brand);
}

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-spacing);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  color: #fff;
  background: var(--dark);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--brand);
  font-family: var(--font-button);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 42px;
  height: 2px;
  flex: 0 0 42px;
  content: "";
  background: currentColor;
}

.section-kicker-light {
  color: #D4E5D3;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 58px;
}

.section-heading h2 {
  max-width: 900px;
}

.section-lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.23rem);
  line-height: 1.7;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 72px;
  max-width: none;
}

.section-heading-row .section-kicker {
  margin-bottom: 22px;
}

.section-heading-side {
  display: grid;
  align-content: end;
  gap: 22px;
  padding-bottom: 6px;
  color: var(--muted);
}

.section-heading-dark,
.section-heading-dark .section-lead {
  color: #fff;
}

.section-heading-dark .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 25px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-button);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 13px 32px rgba(47, 125, 50, 0.26);
}

.button-primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 17px 38px rgba(47, 125, 50, 0.34);
}

.button-outline {
  color: var(--brand);
  border-color: var(--brand);
  background: transparent;
}

.button-outline:hover {
  color: #fff;
  background: var(--brand);
}

.button-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(14, 20, 15, 0.28);
  backdrop-filter: blur(8px);
}

.button-ghost-light:hover {
  border-color: #fff;
  background: rgba(14, 20, 15, 0.56);
}

.button-quiet {
  min-height: 48px;
  padding: 13px 19px;
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}

.button-quiet:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-family: var(--font-button);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.text-link span:last-child {
  transition: transform 180ms ease;
}

.text-link:hover span:last-child {
  transform: translate(3px, -3px);
}

.text-link-large {
  margin-top: 8px;
  font-size: 1.08rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(31, 36, 33, 0.08);
  box-shadow: 0 7px 24px rgba(22, 32, 25, 0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.085em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-panel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav {
  display: block;
}

.site-menu,
.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-menu a {
  position: relative;
  display: block;
  padding: 13px 12px;
  color: #465049;
  font-family: var(--font-button);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.site-menu a::after {
  position: absolute;
  right: 12px;
  bottom: 6px;
  left: 12px;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: var(--brand);
}

.site-menu a:hover::after,
.site-menu a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  min-width: 152px;
  display: grid;
  gap: 2px;
  padding: 12px 17px;
  color: #fff;
  background: var(--dark);
  border-radius: 9px;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  background: var(--brand);
  transform: translateY(-1px);
}

.header-cta-label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.header-cta-number {
  font-size: 0.93rem;
  font-weight: 850;
  line-height: 1.2;
}

.menu-toggle {
  width: 52px;
  height: 52px;
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  display: block;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Home hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height));
  color: #fff;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -3;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.015);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(15, 22, 17, 0.44) 0%, rgba(15, 22, 17, 0.58) 60%, rgba(15, 22, 17, 0.84) 100%),
    linear-gradient(90deg, rgba(15, 22, 17, 0.37), rgba(15, 22, 17, 0.08), rgba(15, 22, 17, 0.37));
}

.hero-content {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-block: 96px 148px;
  text-align: center;
}

.hero-content .section-kicker {
  justify-content: center;
}

.hero-content h1 {
  max-width: 1110px;
  color: #fff;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.22);
}

.hero-lead {
  max-width: 720px;
  margin: 34px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

.hero-service-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(14, 20, 15, 0.48);
  backdrop-filter: blur(12px);
}

.hero-service-line span {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.hero-service-line span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Services */
.services-section {
  background: var(--page-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(47, 125, 50, 0.48);
  box-shadow: var(--shadow-card);
}

.card-number {
  margin-bottom: 48px;
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-card h3 {
  max-width: 290px;
}

.service-card p {
  margin: 20px 0 28px;
  color: var(--muted);
}

.service-card .text-link {
  margin-top: auto;
}

/* About broken grid */
.about-section {
  background: #fff;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 88px;
}

.about-copy {
  padding-block: 28px;
}

.about-copy h2 {
  max-width: 610px;
}

.about-copy .section-lead {
  margin-bottom: 34px;
}

.about-visual {
  position: relative;
  min-height: 690px;
}

.about-image {
  position: absolute;
  overflow: hidden;
  background: #DBE2DC;
  box-shadow: var(--shadow-soft);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-primary {
  top: 0;
  right: 0;
  width: 70%;
  height: 76%;
  border-radius: var(--radius);
}

.about-image-secondary {
  bottom: 0;
  left: 0;
  width: 48%;
  height: 47%;
  border: 10px solid #fff;
  border-radius: calc(var(--radius) + 2px);
}

.about-note {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 42%;
  display: grid;
  gap: 0;
  padding: 24px 28px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius) 0 var(--radius) var(--radius);
  box-shadow: 0 20px 44px rgba(47, 125, 50, 0.27);
}

.about-note span {
  padding-block: 10px;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-note span + span {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

/* Process */
.process-section {
  color: #fff;
  background:
    radial-gradient(circle at 86% 0%, rgba(168, 197, 72, 0.14), transparent 29%),
    var(--dark);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.step-card {
  min-height: 295px;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
}

.step-card + .step-card {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.step-number {
  margin-bottom: 52px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.step-card h3 {
  color: #fff;
}

.step-card p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

/* Gallery cards */
.projects-section,
.gallery-section {
  background: var(--page-bg);
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 105px;
  gap: 18px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  display: block;
  padding: 0;
  color: #fff;
  background: #D6DDD7;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
}

.home-gallery-grid .gallery-card:nth-of-type(1) {
  grid-column: span 7;
  grid-row: span 4;
}

.home-gallery-grid .gallery-card:nth-of-type(2) {
  grid-column: span 5;
  grid-row: span 3;
}

.home-gallery-grid .gallery-card:nth-of-type(3) {
  grid-column: span 5;
  grid-row: span 4;
}

.home-gallery-grid .gallery-card:nth-of-type(4) {
  grid-column: span 4;
  grid-row: span 3;
}

.home-gallery-grid .gallery-card:nth-of-type(5) {
  grid-column: span 4;
  grid-row: span 3;
}

.home-gallery-grid .gallery-card:nth-of-type(6) {
  grid-column: span 4;
  grid-row: span 3;
}

.gallery-image-wrap,
.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-image-wrap img {
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2, .7, .2, 1), filter 300ms ease;
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgba(10, 16, 12, 0.78) 100%);
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gallery-card:hover .gallery-image-wrap img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

/* Contact */
.contact-section {
  color: #fff;
  background: var(--brand);
  overflow: hidden;
}

.contact-section::before {
  position: absolute;
  top: -280px;
  right: -240px;
  width: 670px;
  height: 670px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.contact-section::after {
  position: absolute;
  right: -40px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 90px;
  align-items: start;
}

.contact-copy h2 {
  max-width: 650px;
  color: #fff;
}

.contact-copy .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  min-height: 136px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 30px;
  color: var(--text);
  background: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(22, 32, 25, 0.11);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.contact-card:hover {
  transform: translateX(6px);
  box-shadow: 0 20px 44px rgba(22, 32, 25, 0.16);
}

.contact-card strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.contact-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-arrow {
  color: var(--brand);
  font-size: 1.7rem;
  transition: transform 180ms ease;
}

.contact-card:hover .contact-arrow {
  transform: translate(3px, -3px);
}

/* Page heroes */
.page-hero {
  position: relative;
  padding-block: 88px 100px;
  background: #fff;
  overflow: hidden;
}

.page-hero-grid,
.gallery-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: 82px;
}

.page-hero-copy,
.gallery-hero-copy {
  padding-block: 48px;
}

.page-hero-copy h1,
.gallery-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(3.25rem, 6.3vw, 6.8rem);
}

.page-hero-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.65vw, 1.26rem);
  line-height: 1.72;
}

.page-hero-image,
.gallery-hero-image {
  position: relative;
  min-height: 650px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.page-hero-image::before,
.gallery-hero-image::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.page-hero-image img,
.gallery-hero-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.page-hero-about::after {
  position: absolute;
  top: 60px;
  left: calc(50% - 130px);
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* About page */
.story-section {
  background: var(--page-bg);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 112px;
  align-items: start;
}

.story-heading {
  position: sticky;
  top: calc(var(--header-height) + 44px);
}

.story-heading h2 {
  font-size: clamp(2.45rem, 4.7vw, 4.9rem);
}

.richtext {
  color: var(--muted);
}

.richtext p {
  margin: 0 0 24px;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.82;
}

.richtext strong {
  color: var(--text);
}

.values-section {
  background: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  min-height: 340px;
  padding: 36px;
  background: var(--page-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 200ms ease, border-color 200ms ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--line);
}

.value-number {
  display: block;
  margin-bottom: 66px;
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.value-card p {
  margin: 24px 0 0;
  color: var(--muted);
}

/* Offer page */
.page-hero-offer {
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 22, 17, 0.87), rgba(15, 22, 17, 0.51)),
    url("/assets/img/realizacja-12.webp") center 56% / cover no-repeat;
}

.page-hero-offer-inner {
  position: relative;
  padding-block: 72px;
}

.page-hero-offer h1 {
  max-width: 1020px;
  color: #fff;
  font-size: clamp(3.5rem, 7.6vw, 7.4rem);
}

.page-hero-offer .page-hero-lead {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.78);
}

.offer-hero-line {
  width: min(48vw, 580px);
  height: 1px;
  margin-top: 62px;
  background: rgba(255, 255, 255, 0.42);
}

.offer-services-section {
  background: var(--page-bg);
}

.offer-list {
  display: grid;
  gap: 16px;
}

.offer-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.73fr) minmax(0, 1.27fr);
  gap: 70px;
  align-items: start;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 125, 50, 0.42);
  box-shadow: var(--shadow-card);
}

.offer-card-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
}

.offer-card-head .card-number {
  margin: 7px 0 0;
}

.offer-card h3 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}

.offer-card-lead {
  margin: 18px 0 0;
  color: var(--muted);
}

.offer-card-details {
  display: grid;
  gap: 16px;
  padding: 24px 26px;
  background: var(--page-bg);
  border-radius: calc(var(--radius) - 5px);
}

.offer-card-details strong {
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.offer-card-details p {
  margin: 0;
  color: var(--muted);
}

.offer-process-section {
  margin: 0;
}

.faq-section {
  background: #fff;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 110px;
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 44px);
}

.faq-heading h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.7rem);
}

.faq-heading p:last-child {
  margin-top: 28px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 24px;
  align-items: center;
  padding: 27px 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 28px;
  height: 28px;
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  top: 13px;
  right: 3px;
  left: 3px;
  height: 2px;
  content: "";
  background: var(--brand);
  transition: transform 180ms ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0);
}

.faq-item p {
  max-width: 760px;
  margin: -4px 50px 27px 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Gallery page */
.gallery-hero {
  background: #fff;
}

.gallery-hero-copy {
  align-self: end;
  padding-bottom: 72px;
}

.gallery-hero-image {
  min-height: 720px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-grid .gallery-card {
  min-height: 360px;
  grid-column: span 4;
  aspect-ratio: 4 / 5;
}

.gallery-grid .gallery-card:nth-of-type(7n + 1),
.gallery-grid .gallery-card:nth-of-type(7n + 5) {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
}

.gallery-grid .gallery-card:nth-of-type(7n + 3) {
  grid-column: span 5;
}

.gallery-grid .gallery-card:nth-of-type(7n + 4) {
  grid-column: span 7;
}

.gallery-grid .gallery-caption {
  font-size: 1.08rem;
}

/* CTA band */
.cta-band {
  color: #fff;
  background: var(--brand);
}

.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
}

.cta-band h2 {
  max-width: 860px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.cta-band p {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.77);
}

.cta-band .button {
  color: var(--text);
  background: #fff;
  box-shadow: 0 15px 36px rgba(22, 32, 25, 0.14);
}

.cta-band .button:hover {
  color: var(--brand);
}

/* Legal */
.legal-main {
  background: #fff;
}

.legal-section {
  padding-block: 86px 112px;
}

.legal-content {
  max-width: 860px;
}

.legal-content h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 6vw, 5.9rem);
}

.legal-updated {
  margin: 0 0 56px;
  color: var(--muted);
  font-size: var(--font-size-small);
}

.legal-content h2 {
  margin: 46px 0 18px;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin: 32px 0 14px;
}

.legal-content p,
.legal-content li {
  color: #4E5851;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 23px;
}

.legal-content a {
  color: var(--brand);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  padding-block: 78px 28px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.4fr) minmax(180px, 0.58fr) minmax(280px, 0.88fr);
  gap: 80px;
  padding-bottom: 60px;
}

.brand-footer .brand-copy strong {
  color: #fff;
}

.brand-footer .brand-copy span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand > p {
  max-width: 440px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

.footer-heading {
  margin: 5px 0 25px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-menu {
  display: grid;
  gap: 11px;
}

.footer-menu a,
.footer-contact-link,
.footer-bottom a {
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-menu a:hover,
.footer-contact-link:hover,
.footer-bottom a:hover {
  color: var(--accent);
}

.footer-contact-link {
  display: block;
  width: fit-content;
  margin-bottom: 11px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-company {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.87rem;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

/* Lightbox */
.lightbox {
  width: min(calc(100% - 40px), 1180px);
  max-width: none;
  max-height: calc(100svh - 40px);
  padding: 0;
  color: #fff;
  background: #111713;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(8, 11, 9, 0.86);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100svh - 120px);
  object-fit: contain;
  background: #0B0F0C;
}

.lightbox figcaption {
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 18px 74px 18px 24px;
  color: rgba(255, 255, 255, 0.76);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(8, 11, 9, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Consent */
.consent-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  width: min(calc(100% - 44px), 540px);
  padding: 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 72px rgba(22, 32, 25, 0.23);
}

.consent-banner[hidden] {
  display: none;
}

.menu-open .consent-banner {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.consent-copy strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.consent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.consent-copy a {
  color: var(--brand);
  font-weight: 750;
}

.consent-actions {
  display: grid;
  gap: 8px;
}

.consent-actions > a {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
}

/* Not found */
.not-found-main {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding-block: 90px;
  color: #fff;
  background:
    linear-gradient(rgba(15, 22, 17, 0.79), rgba(15, 22, 17, 0.88)),
    url("/assets/img/realizacja-07.webp") center / cover no-repeat;
}

.not-found-content {
  max-width: 860px;
  text-align: center;
}

.not-found-content .section-kicker {
  justify-content: center;
}

.not-found-content h1 {
  color: #fff;
}

.not-found-content p {
  max-width: 620px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.15rem;
}

/* Builder custom sections */
[data-sos-custom-sections] {
  min-height: 0;
}

.sos-custom-section {
  padding: var(--section-spacing) 0;
  background: var(--surface);
}

.sos-custom-section:nth-of-type(even) {
  background: var(--page-bg);
}

.sos-custom-section__inner {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
  display: grid;
  gap: 24px;
}

.sos-custom-section__inner > * {
  min-width: 0;
}

.sos-custom-section--narrow .sos-custom-section__inner {
  max-width: 840px;
}

.sos-custom-section--cards .sos-custom-section__inner {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sos-custom-section--cards .sos-custom-section__inner > * {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sos-custom-section--media-left .sos-custom-section__inner,
.sos-custom-section--media-right .sos-custom-section__inner {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  align-items: center;
  gap: 70px;
}

.sos-custom-section--media-left figure {
  order: -1;
}

.sos-custom-section figure {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.sos-custom-section img {
  width: 100%;
}

.sos-custom-section h2 {
  font-size: clamp(2.4rem, 5vw, var(--font-size-h2));
}

.sos-custom-section p {
  color: var(--muted);
}

.sos-custom-button {
  width: fit-content;
  display: inline-flex;
  justify-content: center;
  padding: 15px 22px;
  color: #fff;
  background: var(--brand);
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
}

.sos-custom-link {
  color: var(--brand);
  font-weight: 800;
}

.sos-custom-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
}

.sos-custom-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sos-custom-color-chip span {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.sos-custom-json {
  padding: 18px;
  white-space: pre-wrap;
  background: #F7F9F7;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
}

/* Animation */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms cubic-bezier(.2, .7, .2, 1), transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.js .reveal.is-in-view,
.privacy-page .reveal,
html[data-sos-preview="1"] .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  :root {
    --section-spacing: 88px;
  }

  .header-inner {
    gap: 18px;
  }

  .site-menu {
    gap: 0;
  }

  .site-menu a {
    padding-inline: 10px;
  }

  .header-cta {
    min-width: 137px;
  }

  .about-grid,
  .contact-layout {
    gap: 58px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  }

  .page-hero-grid,
  .gallery-hero-grid {
    gap: 55px;
  }

  .footer-grid {
    gap: 52px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
    --section-spacing: 76px;
  }

  .shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .site-header {
    height: var(--header-height);
    background: #fff;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    order: 3;
  }

  .nav-panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100vw;
    height: calc(100svh - var(--header-height));
    margin: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
    padding: 26px 18px max(26px, env(safe-area-inset-bottom));
    color: var(--text);
    background: #fff;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 190ms ease, transform 190ms ease, visibility 190ms;
  }

  .nav-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .main-nav {
    width: 100%;
  }

  .site-menu {
    width: 100%;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .site-menu li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .site-menu a {
    width: 100%;
    padding: 19px 4px;
    font-family: var(--font-heading);
    font-size: 1.18rem;
  }

  .site-menu a::after {
    display: none;
  }

  .header-cta {
    width: 100%;
    min-height: 70px;
    margin-top: auto;
    padding: 16px 20px;
    border-radius: 10px;
  }

  .header-cta-number {
    font-size: 1.08rem;
  }

  .hero-content {
    padding-block: 80px 154px;
  }

  .hero-service-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-service-line span {
    min-height: 54px;
    padding: 13px;
    font-size: 0.66rem;
  }

  .hero-service-line span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-service-line span:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .section-heading-row,
  .about-grid,
  .contact-layout,
  .page-hero-grid,
  .gallery-hero-grid,
  .story-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .section-heading-row,
  .about-grid,
  .contact-layout,
  .page-hero-grid,
  .gallery-hero-grid {
    gap: 44px;
  }

  .story-grid,
  .faq-layout {
    gap: 48px;
  }

  .section-heading-row .section-heading-side {
    max-width: 720px;
  }

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

  .about-copy {
    padding: 0;
  }

  .about-visual {
    min-height: 610px;
  }

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

  .step-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .step-card:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .home-gallery-grid {
    grid-auto-rows: 90px;
  }

  .home-gallery-grid .gallery-card:nth-of-type(n) {
    grid-column: span 6;
    grid-row: span 4;
  }

  .home-gallery-grid .gallery-card:nth-of-type(1),
  .home-gallery-grid .gallery-card:nth-of-type(4) {
    grid-column: span 12;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-block: 68px 78px;
  }

  .page-hero-copy,
  .gallery-hero-copy {
    padding: 0;
  }

  .page-hero-image,
  .gallery-hero-image {
    min-height: 560px;
  }

  .page-hero-about::after {
    display: none;
  }

  .story-heading,
  .faq-heading {
    position: static;
  }

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

  .page-hero-offer {
    min-height: 570px;
  }

  .offer-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gallery-grid .gallery-card:nth-of-type(n) {
    grid-column: span 6;
    aspect-ratio: 4 / 5;
  }

  .gallery-grid .gallery-card:nth-of-type(5n + 1) {
    grid-column: span 12;
    aspect-ratio: 16 / 9;
  }

  .cta-band-inner {
    grid-template-columns: 1fr;
  }

  .cta-band-inner .button {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .sos-custom-section--media-left .sos-custom-section__inner,
  .sos-custom-section--media-right .sos-custom-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 620px) {
  :root {
    --section-spacing: 66px;
  }

  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2.25rem, 10.5vw, 3.6rem);
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy span {
    font-size: 0.61rem;
  }

  .hero-content {
    align-items: flex-start;
    justify-content: center;
    padding-block: 64px 146px;
    text-align: left;
  }

  .hero-content .section-kicker {
    justify-content: flex-start;
  }

  .hero-content h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3rem, 13.2vw, 4.8rem);
    overflow-wrap: normal;
  }

  .hero-lead {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-kicker {
    gap: 11px;
    margin-bottom: 20px;
    font-size: 0.7rem;
  }

  .section-kicker::before {
    width: 32px;
    flex-basis: 32px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-lead {
    margin-top: 24px;
  }

  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .value-card {
    min-height: 0;
    padding: 28px;
  }

  .card-number,
  .value-number {
    margin-bottom: 38px;
  }

  .about-grid {
    gap: 38px;
  }

  .about-visual {
    min-height: 470px;
  }

  .about-image-primary {
    width: 78%;
    height: 72%;
  }

  .about-image-secondary {
    width: 54%;
    height: 46%;
    border-width: 7px;
  }

  .about-note {
    width: 47%;
    padding: 17px 20px;
  }

  .about-note span {
    padding-block: 7px;
    font-size: 0.65rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 0;
    padding: 28px 8px;
  }

  .step-card + .step-card {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .step-number {
    margin-bottom: 30px;
  }

  .home-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .home-gallery-grid .gallery-card:nth-of-type(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .home-gallery-grid .gallery-card:nth-of-type(1),
  .home-gallery-grid .gallery-card:nth-of-type(4) {
    aspect-ratio: 16 / 10;
  }

  .contact-card {
    min-height: 116px;
    padding: 24px;
  }

  .page-hero {
    padding-block: 58px 66px;
  }

  .page-hero-copy h1,
  .gallery-hero-copy h1,
  .page-hero-offer h1 {
    font-size: clamp(3rem, 13vw, 4.65rem);
  }

  .page-hero-image,
  .gallery-hero-image {
    min-height: 430px;
  }

  .story-grid,
  .faq-layout {
    gap: 36px;
  }

  .value-card {
    min-height: 0;
  }

  .page-hero-offer {
    min-height: 540px;
    background-position: 57% center;
  }

  .page-hero-offer-inner {
    padding-block: 48px;
  }

  .offer-card {
    padding: 28px;
  }

  .offer-card-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .offer-card-head .card-number {
    margin: 0;
  }

  .offer-card-details {
    padding: 20px;
  }

  .faq-item summary {
    padding-block: 23px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-card:nth-of-type(n) {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .gallery-grid .gallery-card:nth-of-type(3n + 1) {
    aspect-ratio: 16 / 10;
  }

  .gallery-caption {
    right: 20px;
    bottom: 19px;
    left: 20px;
  }

  .cta-band-inner {
    gap: 34px;
  }

  .cta-band .button {
    width: 100%;
  }

  .legal-section {
    padding-block: 62px 80px;
  }

  .legal-updated {
    margin-bottom: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    justify-content: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .consent-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .consent-actions {
    grid-template-columns: 1fr 1fr;
  }

  .consent-actions .button {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
  }

  .lightbox {
    width: calc(100% - 20px);
    max-height: calc(100svh - 20px);
  }

  .sos-custom-section__inner {
    width: min(calc(100% - 30px), var(--shell));
  }

  .sos-custom-section--cards .sos-custom-section__inner {
    grid-template-columns: 1fr;
  }
}



/* Revision: balanced typography, rebuilt offer page and compact contact */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h1 {
  font-size: clamp(2.9rem, 5.6vw, var(--font-size-h1));
}

h2 {
  font-size: clamp(2.15rem, 3.8vw, var(--font-size-h2));
}

h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.62rem);
  line-height: 1.24;
  letter-spacing: -0.018em;
}

.section-kicker {
  margin-bottom: 28px;
  font-weight: 700;
}

.section-heading {
  margin-bottom: 54px;
}

.section-heading-row .section-kicker {
  margin-bottom: 28px;
}

.section-lead {
  margin-top: 36px;
}

.hero-content h1 {
  max-width: 1040px;
  font-size: clamp(3rem, 5.8vw, var(--font-size-h1));
  line-height: 1.04;
}

.hero-lead {
  margin-top: 38px;
}

.page-hero-copy h1,
.gallery-hero-copy h1 {
  max-width: 690px;
  font-size: clamp(2.75rem, 4.8vw, 4.35rem);
  line-height: 1.06;
}

.page-hero-lead {
  margin-top: 36px;
}

.story-heading h2,
.faq-heading h2,
.offer-faq-heading h2,
.cta-band h2,
.offer-contact-cta h2 {
  font-size: clamp(2.15rem, 3.35vw, var(--font-size-h2));
}

.legal-content h1 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
}

.site-menu a {
  font-weight: 600;
}

.brand-copy strong,
.button,
.text-link,
.header-cta-number {
  font-weight: 700;
}

/* Galleries without visible photo captions */
.gallery-card::after {
  background: rgba(17, 28, 20, 0.08);
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery-card:hover::after {
  opacity: 1;
}

.lightbox img {
  max-height: calc(100svh - 40px);
}

/* Compact contact section */
.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 72px;
}

.contact-copy > p:last-child {
  max-width: 610px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.72;
}

.contact-cards {
  gap: 12px;
}

.contact-card {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 20px 22px;
  border-radius: 14px;
}

.contact-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.contact-card strong {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.contact-label {
  font-size: 0.68rem;
}

.contact-arrow {
  font-size: 1.3rem;
}

/* Rebuilt offer page */
.offer-hero-v2 {
  position: relative;
  padding-block: 92px 108px;
  background:
    radial-gradient(circle at 13% 14%, rgba(168, 197, 72, 0.15), transparent 31%),
    linear-gradient(180deg, #FFFFFF 0%, #F3F6F3 100%);
  overflow: hidden;
}

.offer-hero-v2::after {
  position: absolute;
  right: -180px;
  bottom: -260px;
  width: 540px;
  height: 540px;
  content: "";
  border: 1px solid rgba(47, 125, 50, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.offer-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
  align-items: center;
  gap: 82px;
}

.offer-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.85rem, 4.9vw, 4.45rem);
  line-height: 1.06;
}

.offer-hero-lead {
  max-width: 650px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.75;
}

.offer-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.offer-hero-actions .text-link-large {
  margin: 0;
}

.offer-hero-visual {
  position: relative;
  min-height: 610px;
}

.offer-hero-image {
  position: absolute;
  inset: 0 0 48px 64px;
  margin: 0;
  background: #D9E0DA;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.offer-hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.offer-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.offer-hero-summary {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(330px, 62%);
  padding: 28px 30px;
  color: #fff;
  background: var(--dark);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(20, 31, 23, 0.24);
}

.offer-hero-summary strong {
  display: block;
  margin-bottom: 17px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.offer-hero-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-hero-summary li {
  position: relative;
  padding: 10px 0 10px 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.offer-hero-summary li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.offer-hero-summary li::before {
  position: absolute;
  top: 17px;
  left: 0;
  width: 8px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.offer-services-v2 {
  background: #fff;
}

.offer-section-heading {
  margin-bottom: 56px;
}

.offer-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: 72px;
}

.offer-heading-grid h2 {
  max-width: 700px;
}

.offer-section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.offer-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.offer-service-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 34px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.offer-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 125, 50, 0.44);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.offer-service-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--brand);
  border: 1px solid rgba(47, 125, 50, 0.3);
  border-radius: 10px;
  font-family: var(--font-button);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.offer-service-content {
  min-width: 0;
}

.offer-service-content h3 {
  padding-top: 8px;
}

.offer-service-lead {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.offer-service-details {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.offer-service-details > span {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.offer-service-details p {
  margin: 0;
  color: #566159;
  font-size: 0.94rem;
  line-height: 1.68;
}

.offer-process-v2 {
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(168, 197, 72, 0.14), transparent 28%),
    var(--dark);
}

.offer-process-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 54px;
}

.offer-process-heading h2 {
  max-width: 760px;
  color: #fff;
}

.offer-process-heading > p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.72;
}

.offer-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.offer-process-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.offer-process-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(168, 197, 72, 0.5);
}

.offer-process-number {
  margin-bottom: 54px;
  color: var(--accent);
  font-family: var(--font-button);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.offer-process-card h3 {
  color: #fff;
}

.offer-process-card p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.68;
}

.offer-faq-v2 {
  background: var(--page-bg);
}

.offer-faq-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 104px;
}

.offer-faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 44px);
}

.offer-faq-lead {
  margin: 32px 0 0;
  color: var(--muted);
  line-height: 1.74;
}

.offer-faq-v2 .faq-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.offer-faq-v2 .faq-item {
  padding-inline: 28px;
}

.offer-faq-v2 .faq-item:last-child {
  border-bottom: 0;
}

.offer-contact-cta {
  color: #fff;
  background: var(--brand);
}

.offer-contact-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 70px;
}

.offer-contact-cta h2 {
  max-width: 760px;
  color: #fff;
}

.offer-contact-cta p:not(.section-kicker) {
  max-width: 700px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.72;
}

.offer-contact-actions {
  min-width: 260px;
  display: grid;
  gap: 12px;
}

.offer-contact-button {
  color: var(--text);
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 32, 25, 0.14);
}

.offer-contact-button:hover {
  color: var(--brand);
  background: #fff;
}

@media (max-width: 1120px) {
  .offer-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
    gap: 54px;
  }

  .offer-hero-visual {
    min-height: 570px;
  }

  .offer-heading-grid,
  .offer-process-heading {
    gap: 48px;
  }

  .offer-process-card {
    padding: 26px;
  }
}

@media (max-width: 900px) {
  .page-hero-copy h1,
  .gallery-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(2.65rem, 7vw, 4rem);
  }

  .contact-layout,
  .offer-hero-grid,
  .offer-heading-grid,
  .offer-process-heading,
  .offer-faq-layout,
  .offer-contact-cta-inner {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 42px;
  }

  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-hero-v2 {
    padding-block: 74px 88px;
  }

  .offer-hero-grid {
    gap: 54px;
  }

  .offer-hero-visual {
    min-height: 540px;
  }

  .offer-heading-grid,
  .offer-process-heading {
    gap: 30px;
  }

  .offer-section-lead,
  .offer-process-heading > p {
    max-width: 740px;
  }

  .offer-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-faq-layout {
    gap: 46px;
  }

  .offer-faq-heading {
    position: static;
  }

  .offer-contact-actions {
    width: min(100%, 430px);
    min-width: 0;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
  }

  h2 {
    font-size: clamp(1.95rem, 8.8vw, 2.65rem);
  }

  h3 {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
  }

  .section-kicker {
    margin-bottom: 23px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-lead,
  .hero-lead,
  .page-hero-lead {
    margin-top: 29px;
  }

  .hero-content h1 {
    font-size: clamp(2.75rem, 12vw, 3.8rem);
  }

  .page-hero-copy h1,
  .gallery-hero-copy h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.35rem);
  }

  .story-heading h2,
  .faq-heading h2,
  .offer-faq-heading h2,
  .cta-band h2,
  .offer-contact-cta h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .contact-copy > p:last-child {
    margin-top: 28px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 18px 20px;
  }

  .offer-hero-v2 {
    padding-block: 60px 72px;
  }

  .offer-hero-copy h1 {
    font-size: clamp(2.5rem, 11.7vw, 3.45rem);
  }

  .offer-hero-lead {
    margin-top: 30px;
  }

  .offer-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 34px;
  }

  .offer-hero-actions .button {
    width: 100%;
  }

  .offer-hero-visual {
    min-height: 0;
  }

  .offer-hero-image {
    position: relative;
    inset: auto;
    height: 430px;
    margin-left: 0;
  }

  .offer-hero-summary {
    position: relative;
    width: calc(100% - 28px);
    margin: -76px 14px 0;
  }

  .offer-services-grid,
  .offer-process-grid {
    grid-template-columns: 1fr;
  }

  .offer-section-heading,
  .offer-process-heading {
    margin-bottom: 40px;
  }

  .offer-service-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    padding: 26px;
  }

  .offer-service-number {
    width: 44px;
    height: 44px;
  }

  .offer-service-content h3 {
    padding-top: 6px;
  }

  .offer-process-card {
    min-height: 0;
    padding: 26px;
  }

  .offer-process-number {
    margin-bottom: 34px;
  }

  .offer-faq-v2 .faq-item {
    padding-inline: 20px;
  }

  .offer-contact-cta-inner {
    gap: 38px;
  }

  .offer-contact-actions,
  .offer-contact-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .consent-banner,
  .lightbox,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .legal-section {
    padding: 0;
  }
}
