/* =========================================================
   MJ projekt — wersja uproszczona z wideo w hero
   Czerń, oliwka, limonka; duży serif; mniej elementów.
   ========================================================= */

:root {
  --ink: #050705;
  --ink-2: #0b1208;
  --forest: #16240f;
  --forest-2: #1e3014;
  --olive: #466c1b;
  --lime: #b7e83c;
  --lime-light: #b7e83c;
  --cream: #ffffff;
  --muted: #d8e9b5;
  --line: rgba(183, 232, 60, 0.25);
  --line-soft: rgba(183, 232, 60, 0.14);

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 167px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  padding: 0.8rem 1.1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Typografia ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

h1 {
  font-size: clamp(3.8rem, 10vw, 8.6rem);
}

h2 {
  font-size: clamp(2.3rem, 4.5vw, 4rem);
}

h3 {
  font-size: 1.35rem;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--lime-light);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--lime);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--lime);
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--forest {
  background: var(--forest);
}

#uslugi {
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

#projekty {
  padding-top: clamp(2.5rem, 4vw, 4rem);
}

.section--contact {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--forest);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.section-head--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem 4rem;
  align-items: end;
  max-width: none;
}

.section-lead {
  max-width: 50ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head--split .section-lead {
  margin-top: 0;
}

.section-head--split .eyebrow {
  margin-bottom: 0;
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: var(--lime-light);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---------- Nagłówek ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 0;
  background: linear-gradient(180deg, rgba(5, 7, 5, 0.5), transparent);
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  padding: 0.6rem 0;
  background: rgba(5, 7, 5, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 58px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--cream);
}

.logo-original {
  display: block;
  width: auto;
  height: 111px;
  margin-top: 6px;
  transform: translateX(-10%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- Hero z wideo ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  text-align: center;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #050705 url("../video/leaves-wind-poster.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 5, 0.68), rgba(5, 7, 5, 0.58) 48%, var(--ink) 100%),
    radial-gradient(circle at 50% 45%, transparent 12%, rgba(5, 7, 5, 0.32) 78%);
}

.hero-title-mask {
  overflow: visible;
  padding-bottom: 0;
}

.hero-title-mask h1 {
  opacity: 1;
  transform: translateY(18px);
  animation: rise 1.15s var(--ease) 0.25s forwards;
}

.hero-sub {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}

.hero-quote {
  position: relative;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  top: 32px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    transform: translateY(18px);
  }
  to {
    transform: none;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 7rem 1.5rem 6.5rem;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(3.8rem, 10vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero h1,
.hero-sub,
.hero-quote,
.hero cite {
  text-shadow: 0 2px 18px rgba(5, 7, 5, 0.5);
}

.hero-sub {
  margin-top: 1.1rem;
  color: var(--lime);
  font-size: clamp(0.66rem, 1.1vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.hero blockquote {
  max-width: 500px;
  margin: 3rem auto 0;
}

.hero blockquote p {
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-style: italic;
  line-height: 1.45;
}

.hero cite {
  display: block;
  margin-top: 0.65rem;
  color: var(--cream);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Intro ---------- */

.intro {
  padding: 2.5rem 0;
  background: var(--forest);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-text {
  max-width: 920px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.intro-text em {
  color: var(--lime-light);
  font-style: italic;
}

/* ---------- Oferta ---------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 160px;
  padding: 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  transition: background 0.3s var(--ease);
}

.service-row:hover {
  background: var(--forest-2);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}

.service-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.service-row:hover .service-icon img {
  transform: scale(1.06);
  opacity: 1;
}

.service-row h3 {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
}


/* ---------- Projekty ---------- */

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--forest);
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(5, 7, 5, 0.9));
  pointer-events: none;
}

.project:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.project-caption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.project-caption::before {
  content: "";
  width: 38px;
  height: 1px;
  margin-bottom: 0.3rem;
  background: var(--lime);
}

.project-caption strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 18px rgba(5, 7, 5, 0.55);
}

.project-caption strong em {
  color: var(--lime-light);
  font-style: italic;
}

/* ---------- O mnie ---------- */

.about {
  background: radial-gradient(circle at 12% 18%, var(--forest), var(--ink) 58%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.about-photo {
  position: relative;
  max-width: 300px;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--lime);
  box-shadow:
    14px 14px 0 var(--forest-2),
    15px 15px 0 rgba(201, 221, 141, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.about-photo:hover img {
  transform: translate(-2px, -2px);
  box-shadow:
    18px 18px 0 var(--forest-2),
    19px 19px 0 rgba(201, 221, 141, 0.45);
}

.about-copy {
  padding-left: clamp(1.5rem, 3vw, 2.8rem);
  border-left: 1px solid var(--line);
}

.about-title {
  margin: 0 0 0.8rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.about-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-copy h2 em {
  color: var(--lime-light);
  font-style: italic;
}

.about-lead {
  max-width: 48ch;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  text-wrap: pretty;
}

@media (max-width: 920px) {
  .about-lead {
    text-align: left;
  }
}

.about-lead + .about-lead {
  margin-top: 0.8rem;
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 1.1rem;
}

.contact-copy > p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  font-size: 0.82rem;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  color: var(--lime);
}

.contact-icon .icon {
  width: 16px;
  height: 16px;
}

.contact-list a:hover {
  color: var(--lime-light);
}

.contact-form {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--forest-2);
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field > span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--lime-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(5, 7, 5, 0.32);
  color: var(--cream);
  font-size: 0.88rem;
  transition: border-color 0.25s, background 0.25s;
}

.field select {
  appearance: none;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--lime) 50%),
    linear-gradient(135deg, var(--lime) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 12px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form .field input:not(:focus),
.contact-form .field textarea:not(:focus),
.contact-form .field select:not(:focus) {
  border-color: rgba(183, 232, 60, 0.52);
}

.field textarea {
  min-height: 125px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
  border-color: var(--lime);
  background-color: rgba(5, 7, 5, 0.48);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.82;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #c46a4a;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.form-row .field {
  min-width: 0;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.hp,
.file-input,
.field .file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.drop {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px dashed rgba(183, 232, 60, 0.45);
  color: var(--cream);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.drop:hover,
.drop:focus-visible,
.drop.over {
  border-color: var(--lime);
  background: rgba(183, 232, 60, 0.06);
}

.drop:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.drop strong {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drop .hint {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.file-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.file-list button {
  border: 0;
  background: transparent;
  color: var(--lime);
  cursor: pointer;
  font: inherit;
}

.form-progress {
  height: 3px;
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: none;
}

.form-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width 0.15s;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: wait;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.2rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--lime);
}

.checkbox a {
  color: var(--lime-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  min-height: 1.3em;
  margin-top: 0.8rem;
  color: var(--lime-light);
  font-size: 0.76rem;
  font-weight: 600;
}

.form-status.is-error {
  color: #e08a67;
}

/* ---------- Stopka ---------- */

.site-footer {
  padding: 1.8rem 0 1.4rem;
  border-top: 1px solid var(--line-soft);
  background: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.64rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a:hover {
  color: var(--lime-light);
}

/* ---------- Realizacja i koncepcje ---------- */

.realization {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.realization-title {
  margin: 0 0 clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.realization-roll {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.realization-track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  will-change: transform;
}

.realization-track.is-ready {
  animation: realizationRoll 30s linear infinite;
}

.realization-track.is-js-roll {
  animation: none;
}

.realization-item {
  flex: 0 0 auto;
  width: clamp(240px, 26vw, 360px);
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--forest);
  cursor: default;
}

@keyframes realizationRoll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.realization-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.realization-item:hover img {
  opacity: 1;
}

.concept-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 0 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.concept-head .eyebrow {
  margin-bottom: 0;
}

.concept-head p:not(.eyebrow) {
  max-width: 50ch;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Responsywność ---------- */

@media (max-width: 760px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .service-row {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 0;
    padding: 1.1rem 1.2rem;
    text-align: left;
    border-right: 0;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    flex: none;
  }

  .service-icon img {
    width: 42px;
    height: 42px;
  }

  .service-row h3 {
    max-width: none;
  }
}

@media (max-width: 920px) {
  .header-inner {
    position: relative;
    justify-content: center;
  }

  .logo {
    margin-inline: auto;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
  }

  .nav {
    position: fixed;
    top: 145px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0s linear 0.3s;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.74rem;
  }

  .nav a::after {
    display: none;
  }

  .section-head--split,
  .intro-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 260px;
    margin-inline: auto;
    justify-self: center;
  }

  .about-copy {
    padding-left: 0;
    border-left: 0;
  }

}

@media (max-width: 720px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .logo-original {
    height: 95px;
    margin-top: 16px;
    transform: none;
  }

  .nav {
    top: 140px;
  }

  .hero-content {
    padding: 4rem 1.2rem 9rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.6rem);
  }


  .intro {
    padding: 2.8rem 0;
  }

  .service-row {
    grid-template-columns: 48px 1fr;
    gap: 0.7rem 1rem;
    padding: 1.25rem 1.1rem;
  }

  .service-row h3 {
    font-size: 1.2rem;
  }


  .concept-head {
    flex-direction: column;
    gap: 0.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .project {
    aspect-ratio: 4 / 3;
  }

  .project-caption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .project-caption strong {
    font-size: 1.45rem;
  }

  .about-photo {
    max-width: 200px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .realization-track,
  .realization-track.is-ready {
    animation: none;
  }

  .realization-roll {
    overflow-x: auto;
  }

  html {
    scroll-behavior: auto;
  }


  .hero-video {
    display: none;
  }
  .hero-title-mask h1,
  .hero-sub,
  .hero-quote {
    animation: none;
    transform: none;
    opacity: 1;
  }

  [data-clone] {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Druk ---------- */

@media print {
  .site-header,
  .site-footer,
  .contact-form,
  .hero-video {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-shade {
    display: none;
  }
}

/* ---------- Podstrona prawna ---------- */

.legal {
  padding: 9rem 0 5rem;
}

.legal-container {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.legal-meta {
  margin-bottom: 2.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal h2 {
  margin: 2.1rem 0 0.55rem;
  color: var(--lime-light);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legal p,
.legal li {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal a {
  color: var(--lime-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .back {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--lime);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .nav--simple {
    position: static;
    display: flex;
    width: auto;
    visibility: visible;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav--simple a {
    padding: 0;
    border: 0;
    font-size: 0.75rem;
  }

  .nav--simple a::after {
    display: none;
  }
}

/* Ikona ogrodów wertykalnych — lekko powiększona, jak w poprzedniej wersji */
.service-icon--lg img {
  transform: scale(1.18);
}

.service-row:hover .service-icon--lg img {
  transform: scale(1.25);
}

@media (max-width: 760px) {
  .about-title,
  .about-copy h2 {
    text-align: center;
  }
}

.heading-dot {
  color: var(--lime-light);
}

/* Jednolity styl etykiet sekcji */
.section-head > .eyebrow,
.concept-head > .eyebrow,
.contact-copy > .eyebrow {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .section--contact {
    padding-bottom: 1rem;
  }

  body.contact-in-view .site-header {
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
  }
}

.form-noscript {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.contact-privacy {
  margin-top: 1.1rem;
  font-size: 0.72rem;
}

.contact-privacy a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media print {
  .site-header,
  .hero-media,
  .hero-video,
  .nav-toggle,
  .contact-form,
  .realization-roll {
    display: none !important;
  }

  body,
  .section,
  .section--forest,
  .section--contact,
  .hero {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .hero h1,
  .hero-title-mask h1,
  .hero-sub,
  .hero-quote,
  .section h2,
  .about-lead,
  .contact-copy,
  .contact-copy p {
    color: #111111 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }
}

.service-icon .service-icon-svg {
  width: 48px;
  height: 48px;
  flex: none;
  color: var(--lime);
  fill: currentColor;
  stroke: none;
  opacity: 0.92;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.service-row:hover .service-icon .service-icon-svg {
  transform: scale(1.06);
  opacity: 1;
}

.service-icon--lg .service-icon-svg {
  transform: scale(1.18);
}

.service-row:hover .service-icon--lg .service-icon-svg {
  transform: scale(1.25);
}

@media (max-width: 760px) {
  .service-icon .service-icon-svg {
    width: 40px;
    height: 40px;
  }
}

.motion-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.contact-in-view .motion-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.motion-toggle .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.motion-toggle:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce), print {
  .motion-toggle {
    display: none;
  }
}

@media print {
  .intro,
  .intro-grid,
  .intro-text,
  .about,
  .about-copy,
  .about-lead,
  .eyebrow,
  .hero blockquote p,
  .hero blockquote cite {
    background: #ffffff !important;
    color: #111111 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  .intro-text,
  .about-lead,
  .hero blockquote p {
    font-size: 12pt !important;
  }

  .site-footer,
  .motion-toggle {
    display: none !important;
  }
}

.realization-roll:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

@media print {
  .legal,
  .legal p,
  .legal li,
  .legal h1,
  .legal h2,
  .legal-meta,
  .contact-list a,
  .about-title,
  .section h2 em,
  .hero h1 em,
  .contact-privacy a {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .realization-roll {
    display: block !important;
    overflow: visible !important;
  }

  .realization-track {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    animation: none !important;
    transform: none !important;
  }

  .realization-item {
    width: 31% !important;
  }

  .realization-item img {
    width: 100% !important;
    height: auto !important;
  }
}

/* Telefony w poziomie: mały logo po lewej, bez kolizji z H1 */
@media (max-width: 920px) and (max-height: 520px) and (orientation: landscape) {
  .site-header {
    padding: 0.25rem 0;
  }

  .header-inner {
    justify-content: flex-start;
  }

  .logo {
    margin-inline: 0;
  }

  .logo-original {
    height: 48px;
    margin-top: 0;
    transform: none;
  }

  .nav {
    top: 68px;
  }
}

.hero h1,
.section h2,
.about-copy h2 {
  overflow-wrap: break-word;
}
