:root {
  --black: #050505;
  --graphite: #15171a;
  --graphite-soft: #24272c;
  --red: #d20f17;
  --red-dark: #9f0b11;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --muted: #b9bec7;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(5, 5, 5, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.navbar {
  width: min(1240px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(210, 15, 23, 0.24);
}

.nav-cta:hover {
  background: var(--red-dark);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero,
.subpage-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
}

.home-hero {
  padding: 120px 20px 70px;
}

.hero-bg,
.subpage-bg {
  position: absolute;
  inset: 0;
  background-image: url("dom bialy3.jpeg");
  background-size: cover;
  background-position: center top;
  transform: scale(1.04);
  animation: slowZoom 16s ease-in-out infinite alternate;
}

.subpage-bg {
  background-position: center top;
}

.quote-hero .subpage-bg {
  background-position: center 42%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.42) 52%, rgba(5, 5, 5, 0.74)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0.72));
}

.hero-content,
.subpage-content {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  text-align: center;
}

.subpage-content {
  padding-top: 90px;
}

.hero-logo {
  width: clamp(150px, 20vw, 230px);
  height: clamp(150px, 20vw, 230px);
  margin: 0 auto 26px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
}

.hero-logo.small {
  width: 118px;
  height: 118px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.subpage-hero h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
}

.hero-subtitle,
.subpage-content p:last-child {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 18px 36px rgba(210, 15, 23, 0.28);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 108px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 56px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.cta-inner h2,
.contact-card h2,
.form-heading h2,
.quote-aside h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--graphite);
}

.section-copy p,
.section-heading p,
.cta-inner p,
.quote-aside p {
  color: #5c626d;
  font-size: 1.05rem;
}

.image-panel {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  pointer-events: none;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s ease;
}

.image-panel:hover img {
  transform: scale(1.05);
}

.dark-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(210, 15, 23, 0.12), transparent 30%),
    linear-gradient(180deg, #101214, #1a1d21),
    var(--graphite);
}

.dark-section .section-heading h2,
.scope-intro h2,
.scope-row h3 {
  color: var(--white);
}

.dark-section .section-heading p,
.scope-intro p,
.scope-row p,
.scope-photo figcaption {
  color: var(--muted);
}

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

.scope-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1.14fr);
  gap: 58px;
  align-items: start;
}

.scope-intro {
  position: sticky;
  top: 112px;
}

.scope-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 900;
}

.scope-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 30px;
}

.scope-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 800;
}

.scope-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--black);
}

.scope-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.scope-photo:hover img {
  transform: scale(1.04);
  opacity: 0.94;
}

.scope-photo figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  font-size: 0.95rem;
  font-weight: 800;
}

.scope-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.scope-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: padding-left 0.25s ease, border-color 0.25s ease;
}

.scope-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 4px;
  height: 0;
  background: var(--red);
  transition: height 0.25s ease;
}

.scope-row:hover {
  padding-left: 18px;
  border-color: rgba(210, 15, 23, 0.54);
}

.scope-row:hover::before {
  height: calc(100% - 56px);
}

.scope-row span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scope-row h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.08;
}

.scope-row p {
  margin: 0;
  font-size: 1.02rem;
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 36px;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
  font-weight: 900;
}

.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.gallery-head h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--graphite);
}

.gallery-head > p {
  margin-bottom: 4px;
  color: #5c626d;
  font-size: 1.02rem;
}

.work-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.work-main,
.work-shot {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 0;
  border-radius: var(--radius);
  background: var(--graphite);
}

.work-main {
  aspect-ratio: 16 / 10;
}

.work-main::after,
.work-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 5, 0.7));
  opacity: 0.72;
  transition: opacity 0.3s ease;
}

.work-main img,
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s ease, opacity 0.3s ease;
}

.work-main:hover img,
.work-shot:hover img {
  transform: scale(1.045);
  opacity: 0.94;
}

.work-main:hover::after,
.work-shot:hover::after {
  opacity: 0.46;
}

.work-main span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  color: var(--white);
  font-weight: 900;
}

.work-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work-shot {
  aspect-ratio: 4 / 3;
}

.shot-roof img {
  object-position: center 10%;
}

.shot-house img {
  object-position: center center;
}

.shot-detail img {
  object-position: center 42%;
}

.work-note {
  grid-column: 1 / -1;
  padding: 26px;
  border-left: 4px solid var(--red);
  background: var(--graphite);
  color: var(--white);
}

.work-note span {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-weight: 900;
}

.work-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
  font-weight: 700;
}

.work-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.work-strip a {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--graphite);
}

.work-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s ease, opacity 0.3s ease;
}

.work-strip a:hover img {
  transform: scale(1.045);
  opacity: 0.92;
}

.cta-section {
  padding: 86px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.72)),
    url("wiata.jpeg") center / cover fixed;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-inner h2,
.cta-inner p {
  color: var(--white);
}

.cta-inner p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.subpage-hero {
  min-height: 72vh;
  padding: 120px 0 70px;
}

.contact-layout,
.quote-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.form-card,
.quote-aside {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card,
.quote-aside {
  position: sticky;
  top: 104px;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(210, 15, 23, 0.18), transparent 44%),
    var(--graphite);
}

.contact-card h2,
.quote-aside h2 {
  color: var(--white);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact-list a,
.contact-list p {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-card {
  padding: 34px;
  border: 1px solid #e4e5e8;
  background: var(--white);
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--graphite);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8dbe0;
  border-radius: var(--radius);
  padding: 14px 15px;
  color: var(--graphite);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(210, 15, 23, 0.1);
}

.has-error input,
.has-error textarea,
.has-error select {
  border-color: var(--red);
}

.field-error,
.consent-error {
  min-height: 18px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 800;
}

.form-status.success {
  color: #127a3a;
}

.form-status.error {
  color: var(--red);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-field span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px dashed #aeb4be;
  border-radius: var(--radius);
  color: #5c626d;
  background: #fafafa;
  cursor: pointer;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-field input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--red);
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

.process-list {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.process-list span {
  width: 38px;
  height: 38px;
  margin: 0;
  font-size: 0.82rem;
}

.phone-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.07);
}

.footer {
  color: var(--white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 40px;
  padding: 64px 0;
}

.footer p,
.footer a {
  display: block;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
}

.footer a:hover {
  color: var(--white);
}

.footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1rem;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

@media (max-width: 1024px) {
  .scope-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .scope-intro {
    position: static;
  }

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

  .contact-card,
  .quote-aside {
    position: static;
  }
}

@media (max-width: 820px) {
  .navbar {
    min-height: 70px;
    justify-content: flex-end;
  }

  .brand span {
    max-width: 156px;
    line-height: 1.1;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .section {
    padding: 78px 0;
  }

  .hero,
  .subpage-hero {
    min-height: auto;
  }

  .home-hero {
    min-height: 100vh;
  }

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

  .gallery-head {
    gap: 16px;
    align-items: start;
  }

  .work-main,
  .work-shot {
    aspect-ratio: 16 / 10;
  }

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

  .work-strip {
    grid-template-columns: 1fr;
  }

  .work-strip a {
    aspect-ratio: 16 / 10;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .home-hero {
    padding: 106px 14px 54px;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 4rem);
  }

  .hero-logo {
    width: 132px;
    height: 132px;
  }

  .hero-actions,
  .hero-actions .btn,
  .cta-inner .btn,
  .form-card .btn {
    width: 100%;
  }

  .scope-row,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .form-card,
  .contact-card,
  .quote-aside {
    padding: 24px;
  }

  .work-main,
  .work-shot {
    aspect-ratio: 4 / 3;
  }

  .work-side {
    grid-template-columns: 1fr;
  }

  .work-note {
    grid-column: auto;
  }

  .work-note {
    padding: 22px;
  }

  .scope-row {
    gap: 12px;
    padding: 24px 0;
  }

  .scope-row:hover {
    padding-left: 12px;
  }

  .image-panel,
  .image-panel img {
    min-height: 340px;
  }

  .cta-section {
    background-attachment: scroll;
  }

  .map-section iframe {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
