@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500&display=swap");

:root {
  --background: #bfbbb5;
  --text: #5e514a;
  --light: #e6e5dc;
  --line: rgba(94, 81, 74, 0.34);
  --field-line: rgba(94, 81, 74, 0.70);
  --content-width: 1112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Archivo", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

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

.page {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 34px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    ". logo language"
    "menu menu menu";
  align-items: start;
}

.logo-frame {
  grid-area: logo;
  width: 142px;
  height: 64px;
  overflow: hidden;
}

.logo-frame img {
  width: 328px;
  max-width: none;
  transform: translate(-93px, -177px);
}

.language {
  grid-area: language;
  justify-self: end;
  color: var(--light);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

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

.language a:not([aria-current="page"]) {
  opacity: 0.62;
}

.language a:hover,
.language a:focus-visible {
  opacity: 1;
}

.menu {
  grid-area: menu;
  display: flex;
  justify-content: center;
  gap: 47px;
  margin-top: 34px;
}

.menu a {
  color: var(--light);
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  padding-bottom: 5px;
}

.menu a[aria-current="page"] {
  border-bottom: 1px solid var(--light);
}

.menu sup,
.home-menu sup {
  margin-left: 4px;
  font-size: 9px;
  opacity: 0.75;
}

.main-heading {
  margin: 0 0 66px;
  color: var(--light);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: 76px 0 108px;
}

.section--divided {
  border-top: 1px solid var(--line);
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 90px;
}

.site-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding-top: 4px;
  color: var(--light);
  font-size: 13px;
}

.site-footer a {
  text-decoration: none;
}

.privacy-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 76px 0 92px;
}

.privacy-page .main-heading {
  margin-bottom: 18px;
}

.privacy-updated {
  margin-bottom: 56px;
  color: var(--light);
  font-size: 13px;
  text-align: center;
}

.privacy-section + .privacy-section {
  margin-top: 38px;
}

.privacy-section h2 {
  margin: 0 0 12px;
  color: var(--light);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.privacy-section p,
.privacy-section ul {
  margin-bottom: 0;
}

.privacy-section ul {
  padding-left: 20px;
}

.privacy-section li + li {
  margin-top: 10px;
}

.privacy-section a,
.consent a {
  text-underline-offset: 3px;
}

/* STRONA GŁÓWNA */

.home-page {
  width: min(1360px, calc(100% - 64px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 58px 0 34px;
}

.home-top {
  position: relative;
  display: flex;
  justify-content: center;
}

.home-top .language {
  position: absolute;
  top: 0;
  right: 0;
}

.home-logo {
  width: 194px;
  height: 87px;
  overflow: hidden;
}

.home-logo img {
  width: 448px;
  max-width: none;
  transform: translate(-127px, -242px);
}

.home-menu {
  align-self: center;
  display: flex;
  justify-content: center;
  gap: 62px;
  margin: 0;
}

.home-menu a {
  color: var(--light);
  font-size: clamp(25px, 2.25vw, 38px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-bottom {
  display: grid;
  justify-items: center;
  gap: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--light);
  text-decoration: none;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

/* OFERTA */

.offer-intro {
  padding: 112px 0 108px;
}

.offer-intro .main-heading {
  margin-bottom: 30px;
}

.column-copy {
  width: 100%;
  margin-bottom: 0;
  font-size: 14px;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

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

.service-number {
  display: block;
  margin-bottom: 18px;
  color: var(--light);
  font-size: 13px;
}

.service h3 {
  margin-bottom: 18px;
  color: var(--light);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}

.service p {
  font-size: 14px;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.service-note {
  margin: 22px 0 0;
  color: var(--light);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 90px;
}

.scope h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.scope ul {
  margin: 0;
  padding-left: 18px;
}

.scope li {
  margin-bottom: 3px;
  font-size: 14.5px;
  line-height: 1.48;
}

.process-list {
  display: grid;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 46px 220px minmax(80px, 0.75fr) minmax(420px, 1.8fr);
  gap: 18px;
  align-items: center;
  min-height: 46px;
}

.process-step + .process-step {
  margin-top: -5px;
}

.process-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(94, 81, 74, 0.42);
  border-radius: 50%;
  font-size: 16px;
}

.process-name {
  font-size: 16px;
}

.process-line {
  height: 1px;
  background: rgba(94, 81, 74, 0.42);
}

.process-description {
  font-size: 15px;
  line-height: 1.42;
}

.closing {
  width: 100%;
  text-align: left;
}

.closing h2 {
  margin-bottom: 18px;
  color: var(--light);
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
}

.contact-link {
  display: inline-block;
  margin-top: 2px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
}

/* O PRACOWNI */

.about-section {
  min-height: calc(100svh - 205px);
  padding: 96px 0 124px;
}

.about-heading {
  margin-bottom: 38px;
  text-align: center;
}

.about-heading h1 {
  margin: 0 0 6px;
  color: var(--light);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.about-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  background: rgba(230, 229, 220, 0.16);
  color: var(--light);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.about-role {
  margin: 0;
  color: var(--light);
  font-size: 12px;
  text-transform: uppercase;
}

.about-copy p {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* PROJEKTY */

.projects-section {
  min-height: calc(100svh - 205px);
  padding: 112px 0 124px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 58px 25px;
}

.project-card {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.project-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(230, 229, 220, 0.28);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.72) saturate(0.55) brightness(0.78);
  opacity: 0.82;
  transform: scale(1.001);
  transition: filter 450ms ease, opacity 450ms ease, transform 650ms ease;
}

.project-placeholder {
  display: grid;
  place-items: center;
  color: rgba(94, 81, 74, 0.54);
  transition: background-color 450ms ease, color 450ms ease;
}

.project-placeholder span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-code {
  display: block;
  margin-top: 11px;
  font-size: 12px;
  text-align: right;
}

.project-detail {
  padding: 112px 0 124px;
}

.project-detail-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 90px;
  align-items: start;
  margin-bottom: 74px;
}

.project-detail-header h1 {
  margin: 0;
  color: var(--light);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.18;
}

.project-detail-info .project-description {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.project-facts {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.project-facts li {
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
  font-size: 12.5px;
  line-height: 1.35;
}

.project-hero {
  margin: 0 0 24px;
}

.project-hero img,
.project-gallery img {
  width: 100%;
}

.project-gallery {
  columns: 2;
  column-gap: 24px;
}

.project-gallery figure {
  margin: 0 0 24px;
  break-inside: avoid;
}

.back-to-projects {
  display: inline-block;
  margin-top: 58px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-image img,
  .project-card:focus-visible .project-image img {
    filter: grayscale(0) saturate(1) brightness(1);
    opacity: 1;
    transform: scale(1.018);
  }

  .project-card:hover .project-placeholder,
  .project-card:focus-visible .project-placeholder {
    background: rgba(230, 229, 220, 0.48);
    color: var(--text);
  }
}

@media (hover: none) {
  .project-image img {
    filter: none;
    opacity: 1;
  }
}

/* KONTAKT */

.contact-form-section {
  padding: 112px 0 100px;
}

.contact-form-section .main-heading {
  margin-bottom: 62px;
}

.project-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 34px;
}

.field {
  min-width: 0;
}

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

.field label,
.field-label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 12px 13px;
}

.field input,
.field select {
  min-height: 44px;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(94, 81, 74, 0.62);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.submit-button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.upload-box {
  border: 1px solid var(--field-line);
  padding: 20px 18px;
}

.upload-box input {
  min-height: auto;
  border: 0;
  padding: 0;
}

.upload-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.78;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 3px;
}

.consent input {
  width: 15px;
  min-height: 15px;
  margin: 2px 0 0;
  padding: 0;
}

.consent label {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.submit-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}

.submit-button {
  border: 0;
  border-radius: 0;
  background: var(--text);
  color: var(--light);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 34px;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

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

.form-status {
  grid-column: 1 / -1;
  min-height: 1.45em;
  margin: 0;
  font-size: 13px;
}

.contact-details-section {
  padding: 18px 0 104px;
}

.contact-details {
  grid-column: 1;
  font-size: 16px;
  line-height: 1.55;
}

.contact-details p {
  margin-bottom: 0;
}

.contact-details a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-step {
    grid-template-columns: 46px 190px minmax(60px, 0.5fr) minmax(320px, 1.4fr);
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 48px, var(--content-width));
    padding-top: 28px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo language"
      "menu menu";
  }

  .logo-frame {
    justify-self: start;
    width: 118px;
    height: 53px;
  }

  .logo-frame img {
    width: 272px;
    transform: translate(-77px, -147px);
  }

  .menu {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px 25px;
  }

  .menu a {
    font-size: 14px;
  }

  .main-heading {
    margin-bottom: 46px;
    font-size: 23px;
  }

  .section {
    padding: 58px 0 76px;
  }

  .two-column-grid,
  .services,
  .scope-grid,
  .project-form {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .column-copy,
  .service p {
    text-align: left;
  }

  .offer-intro {
    padding: 78px 0 82px;
  }

  .process-step {
    position: relative;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    min-height: 0;
    padding: 18px 0;
  }

  .process-step + .process-step {
    margin-top: -4px;
  }

  .process-number {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    background: var(--background);
  }

  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 54px;
    bottom: -10px;
    left: 21px;
    width: 1px;
    background: rgba(94, 81, 74, 0.30);
  }

  .process-name {
    align-self: center;
  }

  .process-line {
    display: none;
  }

  .process-description {
    grid-column: 2;
    padding-bottom: 6px;
  }

  .contact-form-section {
    padding: 78px 0 76px;
  }

  .project-form {
    gap: 24px;
  }

  .field--full,
  .consent,
  .submit-row {
    grid-column: 1;
  }

  .submit-row {
    justify-content: flex-start;
  }

  .contact-details-section {
    padding: 18px 0 76px;
  }

  .contact-details {
    grid-column: 1;
  }

  .projects-section {
    padding: 78px 0 92px;
  }

  .about-section {
    padding: 78px 0 92px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-photo {
    width: min(100%, 390px);
    justify-self: center;
    order: 1;
  }

  .about-copy-left {
    order: 2;
  }

  .about-copy-right {
    order: 3;
  }

  .project-detail {
    padding: 78px 0 92px;
  }

  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 48px;
  }

  .project-gallery {
    columns: 1;
  }

  .project-hero,
  .project-gallery figure {
    margin-bottom: 18px;
  }

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

  .home-page {
    width: calc(100% - 48px);
    padding: 30px 0 28px;
  }

  .home-top {
    justify-content: flex-start;
  }

  .home-logo {
    width: 150px;
    height: 68px;
  }

  .home-logo img {
    width: 346px;
    transform: translate(-98px, -187px);
  }

  .home-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .home-menu a {
    font-size: 27px;
  }
}

@media (max-width: 380px) {
  .page,
  .home-page {
    width: calc(100% - 40px);
  }

  .menu {
    column-gap: 18px;
  }
}
