body.page {
  min-height: 100vh;
}

.page-main {
  position: relative;
  z-index: 1;
}

.page-hero {
  min-height: 78svh;
  display: grid;
  align-items: end;
  padding: clamp(8rem, 15vh, 12rem) 4vw clamp(4rem, 10vh, 7rem);
  background:
    linear-gradient(180deg, rgba(3, 6, 9, 0.42), rgba(3, 6, 9, 0.96)),
    var(--page-image, url("../assets/hero-bg.jpg")) center / cover;
}

.page-hero--plain {
  background:
    radial-gradient(circle at 80% 20%, rgba(32, 215, 233, 0.22), transparent 28rem),
    radial-gradient(circle at 14% 12%, rgba(255, 61, 154, 0.22), transparent 24rem),
    linear-gradient(180deg, #060815, #030609);
}

.page-hero--cennik {
  background:
    linear-gradient(180deg, rgba(3, 6, 9, 0.3), rgba(3, 6, 9, 0.94)),
    url("../assets/office-studio-3.png") center / cover;
}

.contact--page {
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  background:
    linear-gradient(135deg, rgba(0, 32, 76, 0.78) 0%, rgba(5, 56, 53, 0.72) 54%, rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(circle at 82% 14%, rgba(32, 215, 233, 0.12), transparent 30rem),
    url("../assets/header-aurora-bokeh.png") center top / cover no-repeat,
    linear-gradient(135deg, #08151b 0%, #061015 54%, #030609 100%);
}

.contact--page .contact__intro {
  position: sticky;
  top: 6rem;
}

.contact__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact__lead {
  max-width: 47ch;
  margin-top: 1.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.55;
}

.contact__quick-link small {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.billing-details {
  display: grid;
  gap: 0.8rem;
  max-width: 30rem;
  margin-top: 2.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.55;
}

.billing-details__label {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.billing-details strong {
  color: #fff;
  font-size: 1.1rem;
}

.billing-details p { margin: 0; }

.contact__form--modern {
  align-self: start;
  margin-top: 300px;
  gap: 1.35rem 1.2rem;
  padding: clamp(1.3rem, 3vw, 2.3rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.contact__form-heading {
  grid-column: 1 / -1;
  padding-bottom: 0.4rem;
}

.contact__form-heading .contact__eyebrow { margin-bottom: 0.7rem; }
.contact__form-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 0.95; letter-spacing: -0.05em; }
.contact__form-heading p { margin-top: 0.8rem; color: rgba(255, 255, 255, 0.62); }

.contact__form--modern .field { gap: 0.55rem; }
.contact__form--modern .field label { color: rgba(255, 255, 255, 0.68); }
.contact__form--modern .field input,
.contact__form--modern .field select,
.contact__form--modern .field textarea {
  min-height: 3.2rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}

.contact__form--modern .field textarea { min-height: 9rem; }
.contact__form--modern .field input:focus,
.contact__form--modern .field select:focus,
.contact__form--modern .field textarea:focus {
  border-color: var(--cyan);
  background: rgba(32, 215, 233, 0.09);
  box-shadow: 0 0 0 4px rgba(32, 215, 233, 0.13);
  transform: translateY(-1px);
}

.contact__form--modern .contact__submit { margin-top: 0.35rem; }
.contact__form--modern .btn { cursor: pointer; }

@media (max-width: 900px) {
  .contact--page { grid-template-columns: 1fr; }
  .contact--page .contact__intro { position: static; }
  .contact__form--modern { margin-top: 0; }
}

.page-hero__inner {
  width: min(100%, 1120px);
}

.page-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title {
  max-width: 11ch;
  font-size: clamp(3.2rem, 9vw, 8.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.page-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.page-lead {
  max-width: 760px;
  margin-top: clamp(1.4rem, 4vh, 2.5rem);
  color: rgba(239, 252, 255, 0.78);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  font-weight: 500;
  line-height: 1.45;
}

.page-section {
  padding: clamp(5rem, 11vh, 8rem) 4vw;
}

.page-section--light {
  background: #fff;
  color: #050505;
}

.page-section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}

.page-section__eyebrow {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-section__title {
  max-width: 12ch;
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.page-copy {
  display: grid;
  gap: 1rem;
  color: rgba(239, 252, 255, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 500;
}

.page-section--light .page-copy {
  color: rgba(5, 5, 5, 0.72);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.page-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border: 1px solid rgba(239, 252, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.page-section--light .page-card {
  border-color: rgba(0, 16, 20, 0.12);
  background: rgba(0, 16, 20, 0.035);
}

.page-card__num {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.page-card h2,
.page-card h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-card p {
  color: inherit;
  font-weight: 500;
}

.page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-top: 1.2rem;
  color: var(--cyan);
  font-weight: 800;
}

.page-link span {
  transition: transform 0.3s var(--ease-out);
}

.page-link:hover span {
  transform: translate(4px, -4px);
}

.related-services {
  padding: clamp(4rem, 8vw, 8rem) 4vw clamp(7rem, 10vw, 10rem);
  background: var(--bg);
}

.related-services__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.related-services h2 {
  font-size: clamp(2.5rem, 5.5vw, 5.7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.related-services h2 em {
  color: var(--cyan);
  font-family: var(--font-serif);
  font-weight: 400;
}

.related-services__intro {
  max-width: 30ch;
  color: rgba(239, 252, 255, 0.7);
}

.related-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.related-service {
  min-width: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.related-service__image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--bg-2);
}

.related-service__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.related-service__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-service__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.25rem;
  letter-spacing: 0;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.3s var(--ease-out);
}

.related-service h3 {
  margin: 0.45rem 0 0.8rem;
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.related-service p {
  max-width: 34ch;
  color: rgba(239, 252, 255, 0.65);
}

.related-service:hover .related-service__image img,
.related-service:focus-visible .related-service__image img {
  transform: scale(1.045);
}

.related-service:hover .related-service__arrow,
.related-service:focus-visible .related-service__arrow {
  background: var(--cyan);
  color: var(--ink);
  transform: rotate(45deg);
}

.related-service:focus-visible,
.related-services .page-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .related-services__heading { flex-direction: column; align-items: flex-start; }
  .related-services__intro { max-width: 42ch; }
  .related-services__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .related-service h3 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .related-service__image img,
  .related-service__arrow,
  .related-services .page-link span { transition: none; }
}

.portfolio-list {
  display: grid;
  gap: 1px;
  background: rgba(239, 252, 255, 0.12);
}

.portfolio-item {
  display: grid;
  grid-template-columns: minmax(220px, 34vw) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  background: var(--bg);
}

.portfolio-item img,
.office-gallery img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.portfolio-item__meta {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.portfolio-item__tag {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-item h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.office-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.office-gallery img:first-child {
  grid-row: span 2;
}

.office-gallery img:not(:first-child) {
  min-height: 210px;
}

.quote-section {
  align-items: start;
}

.quote-intro {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.1rem);
}

.quote-intro .page-section__title {
  max-width: 9ch;
  margin-top: 0;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  width: 100%;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(239, 252, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(3, 6, 9, 0.52);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.quote-form .field--full {
  grid-column: 1 / -1;
}

.quote-form .field {
  gap: 0.55rem;
}

.quote-form .field label,
.service-picker legend {
  color: rgba(239, 252, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quote-form .field input,
.quote-form .field select,
.quote-form .field textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(239, 252, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.quote-form .field textarea {
  min-height: 10rem;
}

.quote-form .field input::placeholder,
.quote-form .field textarea::placeholder {
  color: rgba(239, 252, 255, 0.46);
}

.quote-form .field select {
  color-scheme: dark;
}

.quote-form .field input:focus,
.quote-form .field select:focus,
.quote-form .field textarea:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.105);
  box-shadow: 0 0 0 4px rgba(32, 215, 233, 0.14);
}

.service-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.service-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
}

.service-picker label {
  display: flex;
  align-items: center;
  min-height: 3.15rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(239, 252, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(239, 252, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-out);
}

.service-picker label:hover,
.service-picker label:focus-within {
  border-color: rgba(32, 215, 233, 0.72);
  background: rgba(32, 215, 233, 0.11);
  transform: translateY(-2px);
}

.service-picker input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0 0.65rem 0 0;
  accent-color: var(--cyan);
}

.service-picker span {
  min-width: 0;
}

.site-footer-simple {
  padding: 2rem 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .page .nav__links {
    display: flex;
    max-width: 58vw;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page .nav__links::-webkit-scrollbar {
    display: none;
  }

  .page .nav__links .flip {
    flex: 0 0 auto;
    font-size: 0.68rem;
  }

  .page .nav .btn--small {
    display: none;
  }

  .page-section--split,
  .portfolio-item,
  .office-gallery {
    grid-template-columns: 1fr;
  }

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

  .quote-intro {
    position: static;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .service-picker {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .page-hero {
    min-height: 68svh;
  }

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

  .quote-form {
    padding: 1rem;
  }

  .service-picker {
    grid-template-columns: 1fr;
  }
}

/* 404 page (_app/views/web/not-found.cfm) */
.route-not-found .page-hero {
  background:
    linear-gradient(180deg, rgba(3, 6, 9, 0.4), rgba(3, 6, 9, 0.94)),
    var(--page-image, url("../assets/office-studio-2.webp")) center / cover;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-hero > h1,
.page-hero > .eyebrow + h1 {
  max-width: 14ch;
  margin: 0.8rem 0 1.5rem;
  font-size: clamp(3.2rem, 9vw, 8.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.page-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(239, 252, 255, 0.78);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  font-weight: 500;
  line-height: 1.45;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.offer--page { padding-top: clamp(4rem, 9vw, 8rem); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(4rem, 9vw, 8rem) 4vw;
}

.project-card {
  overflow: hidden;
  background: var(--bg-2);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.project-card:hover img { transform: scale(1.03); }
.project-card h2 { margin: 1rem 1rem 0.3rem; font-size: clamp(1.3rem, 2.2vw, 2.2rem); }
.project-card p { margin: 0 1rem 1.2rem; color: var(--muted); }
.empty-state { padding: 3rem 4vw; color: var(--muted); }

@media (max-width: 700px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Service detail pages — breadcrumbs, keyword line in H1,
   deliverables, process steps, FAQ
   ------------------------------------------------------------ */
.sd-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.sd-crumbs a:hover { color: var(--cyan); }

.page-title__kw {
  display: block;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.18em;
}
.page-title__main { display: block; }

.sd-title {
  max-width: 18ch;
  margin: 0.8rem 0 clamp(2rem, 5vh, 3rem);
}
.sd-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--cyan);
}
.page-section--light .sd-title em { color: #0d94a8; }

.sd-deliverables {
  background:
    radial-gradient(circle at 85% 10%, rgba(32, 215, 233, 0.12), transparent 30rem),
    var(--bg-2);
}
.sd-deliverables .page-card { min-height: 0; justify-content: flex-start; }
.sd-deliverables .page-card p { color: var(--muted); line-height: 1.55; }

.sd-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  counter-reset: none;
}
.sd-step {
  padding-top: 1.2rem;
  border-top: 2px solid #050505;
}
.sd-step__num {
  color: #0d94a8;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sd-step h3 {
  margin: 0.8rem 0 0.6rem;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.sd-step p { color: rgba(5, 5, 5, 0.7); font-weight: 500; line-height: 1.55; }
.sd-process__cta { margin-top: clamp(2.5rem, 6vh, 4rem); }

.sd-faq__list { max-width: 980px; }
.sd-faq details { border-top: 1px solid var(--line); }
.sd-faq details:last-child { border-bottom: 1px solid var(--line); }
.sd-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.4vh, 1.6rem) 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 500;
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}
.sd-faq details[open] summary::after { transform: rotate(45deg); background: var(--cyan); color: var(--ink); }
.sd-faq details p {
  max-width: 68ch;
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .sd-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .sd-steps { grid-template-columns: 1fr; }
}
