

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.site-footer {
  flex-shrink: 0;
}

.portfolio-page,
.project-page,
.studio-page,
.contact-page {
  min-height: auto;
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 30px 45px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #f5f3ef;
  z-index: 100;
}

.logo {
  color: #1f1f1f;
  text-decoration: none;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  color: #1f1f1f;
  text-decoration: none;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;

  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.45;
}

body {
  margin: 0;
  background: #f5f3ef;
  color: #1f1f1f;
  font-family: Arial, sans-serif;
}

.layout {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  box-sizing: border-box;
}

.content {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 70px;
  width: 100%;
}

.image-box img {
  width: 900px;
  max-width: 58vw;
  height: auto;
  display: block;
}

.text-box {
  max-width: 360px;
  padding-bottom: 4px;
}

h1 {
  font-size: 42px;
  margin: 0 0 18px;
  letter-spacing: 2px;
  font-weight: 600;
}

.intro {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 34px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.hero {
  width: 100%;
  height: 100vh;
  padding: 90px 45px 45px;
  box-sizing: border-box;
}

.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.projects-preview {
  padding: 100px 45px 120px;
}

.section-header {
  margin-bottom: 35px;
}

.section-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  display: block;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;

  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.025);
}

.project-image {
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.project-image:hover img {
  transform: scale(1.025);
}

.studio-preview {
  padding: 100px 45px 120px;
}

.studio-image-wrap {
  display: flex;
  justify-content: center;
}

.studio-image {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.studio-image img {
  width: auto;
  height: 75vh;
  max-width: 100%;
  object-fit: contain;
  display: block;

  transition: transform 0.5s ease;
}

.studio-image:hover img {
  transform: scale(1.025);
}

.site-footer {
  position: relative;
  width: 100%;
  height: 80px;
  background: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
}

.footer-logo {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

.footer-instagram {


  width: 21px;
  height: 21px;

  color: #fff;
  opacity: 0.85;

  transition: opacity 0.2s ease;
}

.footer-instagram:hover {
  opacity: 0.5;
}

.footer-instagram svg {
  width: 100%;
  height: 100%;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}


.portfolio-page {
  padding: 90px 45px 120px;
  min-height: auto;
  box-sizing: border-box;
}

.portfolio-title {
  margin-bottom: 35px;
}

.portfolio-title h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

.project-page {
  padding: 140px 45px 120px;
}

.project-gallery {
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.project-gallery img:hover {
  transform: scale(1.025);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;

  background: rgba(0, 0, 0, 0.92);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;
  display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;

  border: 0;
  background: none;
  color: white;

  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: 300;
}

.lightbox-close {
  top: 25px;
  right: 35px;

  font-size: 38px;
}

.lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 55px;
}

.lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 55px;
}

.studio-page {
  min-height: auto;
  padding: 140px 45px 100px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.studio-page-image {
  display: flex;
  justify-content: center;
}

.studio-page-image img {
  height: 72vh;
  width: auto;
  max-width: 55vw;
  object-fit: contain;
  display: block;
}

.studio-page-text {
  width: 100%;
  max-width: 380px;
}

.studio-page-text h1 {
  margin: 0 0 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
}

.studio-page-text h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.studio-role {
  margin-bottom: 42px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #777;
}

.studio-page-text p {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
}

.studio-meta {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #cfcac4;

  display: flex;
  flex-direction: column;
  gap: 7px;

  font-size: 10px;
  letter-spacing: 1.3px;
  color: #777;
}


.contact-page {
  min-height: 100%;
  padding: 140px 45px 100px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;

  max-width: 1400px;
  margin: 0 auto;
}

body:has(.contact-page) main {
  display: flex;
  align-items: center;
}

body:has(.contact-page) .contact-page {
  width: 100%;
}

.contact-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}


.contact-details {
  max-width: 420px;
}

.contact-details h1 {
  margin: 0 0 55px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
}

.contact-name {
  margin-bottom: 35px;

  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 14px;

  color: #444;
  text-decoration: none;

  font-size: 15px;
  line-height: 1.6;

  transition: opacity 0.2s ease;
}

.contact-links a:hover {
  opacity: 0.5;
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-location {
  margin-top: 40px;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #777;
}

.project-header {
  max-width: 1400px;
  margin: 0 auto 60px;
}

.project-header h1 {
  margin: 0 0 35px;

  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.project-meta {
  display: grid;
  grid-template-columns: 180px 120px 1fr;
  gap: 40px;

  max-width: 900px;
}

.project-meta > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #888;
}

.project-meta span:not(.project-label) {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}


.contact-logo-image {
  width: 320px;
  max-width: 80%;
  height: auto;
  display: block;
}
.project-slider {
  display: block;
  overflow: hidden;
}

.project-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
}

.project-slider-track img {
  display: block;
  width: 100%;
  height: auto;
}

/* wyłączenie starego zoomu */
.project-card.project-slider:hover img {
  transform: none;
}

@keyframes projectConveyor {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-400%);
  }
}

@media (min-width: 901px) {
  .project-card.project-slider:hover .project-slider-track {
    animation: projectConveyor 28s linear infinite;
  }
}


@media (max-width: 900px) {


@media (max-width: 900px) {

  .project-header {
    margin-bottom: 40px;
  }

  .project-header h1 {
    font-size: 25px;
    margin-bottom: 28px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-page {
    min-height: auto;
    padding: 24px 24px 90px;
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .contact-details {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
  }

  .contact-details h1 {
    margin-bottom: 35px;
  }

  .contact-name {
    font-size: 18px;
    margin-bottom: 28px;
  }

  .contact-links a {
    font-size: 15px;
  }

  .contact-location {
    margin-top: 32px;
  }

  .studio-page {
    min-height: auto;
    padding: 24px 24px 90px;
    flex-direction: column;
    gap: 40px;
  }

  .studio-page-image {
    width: 100%;
  }

  .studio-page-image img {
    width: 100%;
    height: auto;
    max-width: 430px;
  }

  .studio-page-text {
    max-width: 430px;
    text-align: left;
  }

  .studio-page-text h1 {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .studio-page-text p {
    font-size: 15px;
    line-height: 1.8;
  }

  .lightbox-image {
    max-width: 94vw;
    max-height: 85vh;
  }

  .lightbox-close {
    top: 18px;
    right: 20px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .project-page {
    padding: 24px 24px 90px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-page {
    padding: 24px 24px 90px;
  }

  .portfolio-title {
    margin-bottom: 30px;
  }

  .portfolio-title h1 {
    font-size: 16px;
  }

  .projects-preview {
    padding: 70px 24px 90px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .project-card img {
    aspect-ratio: 4 / 5;
  }

  .studio-preview {
    padding: 70px 24px 90px;
  }

  .studio-image {
    width: 100%;
  }

  .studio-image img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .site-footer {
    height: 70px;
  }

  .footer-instagram {
    width: 20px;
    height: 20px;
  }

  /* MENU MOBILE - JEDNA LINIA */

  .site-header {
    position: relative;
    padding: 20px 18px;

    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
  }

  .logo {
    font-size: 13px;
    letter-spacing: 1.4px;
    white-space: nowrap;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav a {
    font-size: 10px;
    letter-spacing: 0.8px;
    white-space: nowrap;
  }

  .hero {
    height: calc(100vh - 70px);
    padding: 0 18px 18px;
  }

  .hero img {
    object-fit: cover;
    object-position: center;
  }

  .layout {
    min-height: 100vh;
    padding: 24px;
    align-items: center;
  }

  .content {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .image-box {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .image-box img {
    width: 100%;
    max-width: 430px;
    max-height: 72vh;
    object-fit: contain;
  }

  .text-box {
    max-width: 100%;
    padding-bottom: 0;
    text-align: center;
  }

  h1 {
    font-size: 32px;
    margin-bottom: 14px;
  }

  .intro {
    font-size: 15px;
    margin-bottom: 26px;
  }
}
  .contact {
    font-size: 15px;
  }
}