:root {
  --navy: #20364a;
  --pink: #df2f62;
  --mint: #8fc9c1;
  --yellow: #f8d82f;

  --cream: #f7f7f4;
  --white: #ffffff;

  --text: #20364a;
  --muted: #68747d;
  --line: rgba(32, 54, 74, .13);

  --max: 1240px;
}


/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);

  font-family: "Manrope", Arial, sans-serif;

  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}


/* =========================
   HEADER
========================= */

.site-header {
  position: relative;

  z-index: 20;

  background: var(--cream);

  padding: 10px 0 0;
}

.header-inner {
  position: relative;

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  /*
    Pełna przestrzeń na logo 350x350.
  */
  min-height: 60px;
}


/* =========================
   LOGO
========================= */

.brand {
  display: block;

  width: 250px;
  height: 250px;

  flex-shrink: 0;
}

.brand img {
  display: block;

  width: 250px;
  height: 250px;

  object-fit: contain;
}


/* =========================
   NAVIGATION
========================= */

.main-nav {
  display: flex;

  align-items: center;

  gap: 34px;

  padding-top: 25px;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: .08em;

  text-transform: uppercase;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 100%;

  bottom: -6px;

  height: 2px;

  background: var(--pink);

  transition: right .25s ease;
}

.main-nav a:hover::after {
  right: 0;
}


/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
  display: none;

  border: 0;

  background: none;

  padding: 8px;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 25px;
  height: 2px;

  margin: 5px;

  background: var(--navy);
}


/* =========================
   HERO
========================= */

.hero {
  width: min(calc(100% - 48px), 1440px);

  margin-inline: auto;

  /*
    Hero zaczyna się dopiero pod dużym logo.
  */
  padding-top: 0px;

  padding-bottom: 90px;

  display: grid;

  grid-template-columns: 1.18fr .82fr;

  align-items: center;

  gap: 7vw;
}


/* =========================
   HERO PHOTO
========================= */

.hero-photo {
  height: 680px;

  overflow: hidden;

  border-radius: 4px;

  background: #e8e8e4;
}

.hero-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .8s ease;
}


/* =========================
   HERO TEXT
========================= */

.hero-copy {
  padding-right: 5vw;
}

.eyebrow,
.section-label {
  margin: 0 0 20px;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: .18em;

  color: var(--pink);
}

.hero h1 {
  margin: 0;

  font-size: clamp(56px, 6vw, 94px);

  line-height: .96;

  letter-spacing: -.055em;

  font-weight: 800;
}

em {
  color: var(--pink);

  font-style: normal;
}

.hero-text {
  max-width: 440px;

  margin: 32px 0;

  color: var(--muted);

  font-size: 17px;
}


/* =========================
   BUTTON
========================= */

.button {
  display: inline-flex;

  align-items: center;

  gap: 22px;

  padding: 15px 22px;

  background: var(--navy);

  color: white;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: .08em;

  text-transform: uppercase;

  transition:
    transform .2s ease,
    background .2s ease;
}

.button:hover {
  background: var(--pink);

  transform: translateY(-2px);
}

.button span {
  font-size: 17px;
}


/* =========================
   SECTIONS
========================= */

.section {
  padding: 145px 0;
}


/* =========================
   INTRO
========================= */

.intro-grid,
.contact-grid {
  display: grid;

  grid-template-columns: .28fr .72fr;

  gap: 8vw;
}

.intro-content {
  max-width: 800px;
}

h2 {
  margin: 0 0 30px;

  font-size: clamp(42px, 5vw, 72px);

  line-height: 1.02;

  letter-spacing: -.045em;
}

.intro .lead {
  max-width: 760px;

  margin-bottom: 25px;

  font-size: 22px;

  line-height: 1.55;
}

.intro p:not(.lead) {
  max-width: 650px;

  color: var(--muted);
}


/* =========================
   GALLERY
========================= */

.gallery-section {
  background: var(--white);
}

.gallery-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 40px;

  margin-bottom: 55px;
}

.gallery-heading h2 {
  margin-bottom: 0;
}

.gallery-heading > p {
  max-width: 330px;

  margin: 0 0 4px;

  color: var(--muted);

  font-size: 14px;
}

.gallery {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  grid-auto-rows: 260px;

  grid-auto-flow: dense;

  gap: 10px;
}

.gallery-item {
  position: relative;

  min-width: 0;
  min-height: 0;

  border: 0;

  padding: 0;

  overflow: hidden;

  cursor: zoom-in;

  background: #eee;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .6s cubic-bezier(.2, .7, .2, 1);
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-note {
  margin: 28px 0 0;

  color: var(--muted);

  font-size: 13px;
}


/* =========================
   QUOTE
========================= */

.quote-section {
  padding: 150px 0;

  background: var(--navy);

  color: white;

  text-align: center;
}

.quote-section p {
  margin: 0;

  font-size: clamp(30px, 4vw, 55px);

  line-height: 1.2;

  letter-spacing: -.035em;

  font-weight: 600;
}


/* =========================
   CONTACT
========================= */

.contact-content {
  max-width: 820px;
}

.contact-content > p {
  max-width: 500px;

  color: var(--muted);

  font-size: 18px;
}

.contact-links {
  display: flex;

  flex-direction: column;

  gap: 5px;

  margin: 40px 0 30px;
}

.contact-links a {
  width: fit-content;

  font-size: 21px;

  font-weight: 700;

  border-bottom: 2px solid var(--pink);
}

.contact-actions {
  display: flex;

  align-items: center;

  gap: 28px;
}

.social-link {
  font-size: 13px;

  font-weight: 800;

  letter-spacing: .08em;

  text-transform: uppercase;
}


/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 30px 0;

  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  color: var(--muted);

  font-size: 12px;
}

.footer-inner img {
  width: 100px;
  height: 100px;

  object-fit: contain;
}

.footer-inner a {
  font-weight: 700;
}


/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 50px;

  background: rgba(16, 27, 37, .94);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(90vw, 1500px);

  max-height: 88vh;

  width: auto;
  height: auto;

  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;

  border: 0;

  background: transparent;

  color: white;

  cursor: pointer;

  line-height: 1;
}

.lightbox-close {
  top: 20px;

  right: 28px;

  font-size: 42px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;

  transform: translateY(-50%);

  font-size: 70px;

  padding: 20px;
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

  .container,
  .hero {
    width: min(calc(100% - 32px), var(--max));
  }


  /* HEADER */

  .site-header {
    padding-top: 8px;
  }

  .header-inner {
    min-height: 300px;
  }


  /* LOGO */

  .brand {
    width: 280px;
    height: 280px;
  }

  .brand img {
    width: 280px;
    height: 280px;
  }


  /* MENU */

  .menu-toggle {
    display: block;

    z-index: 22;
  }

  .main-nav {
    position: absolute;

    top: 65px;

    right: 0;

    display: none;

    flex-direction: column;

    gap: 0;

    min-width: 190px;

    padding: 8px;

    background: white;

    box-shadow: 0 15px 50px rgba(0, 0, 0, .14);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px;
  }


  /* HERO */

  .hero {
    min-height: auto;

    padding-top: 35px;

    padding-bottom: 80px;

    grid-template-columns: 1fr;

    gap: 35px;
  }

  .hero-photo {
    height: 58vh;

    min-height: 430px;

    order: 1;
  }

  .hero-copy {
    order: 2;

    padding: 0;
  }

  .hero h1 {
    font-size: clamp(52px, 14vw, 82px);
  }


  /* SECTIONS */

  .section {
    padding: 90px 0;
  }

  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;

    gap: 30px;
  }


  /* GALLERY */

  .gallery-heading {
    display: block;

    margin-bottom: 35px;
  }

  .gallery-heading > p {
    margin-top: 20px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);

    grid-auto-rows: 220px;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }


  /* QUOTE */

  .quote-section {
    padding: 100px 0;
  }
}


/* =====================================================
   PHONE
===================================================== */

@media (max-width: 560px) {

  .container,
  .hero {
    width: min(calc(100% - 24px), var(--max));
  }


  /* HEADER */

  .site-header {
    padding-top: 5px;
  }

  .header-inner {
    min-height: 220px;
  }


  /* LOGO */

  .brand {
    width: 200px;
    height: 200px;
  }

  .brand img {
    width: 200px;
    height: 200px;
  }


  /* HERO */

  .hero {
    padding-top: 30px;

    padding-bottom: 65px;
  }

  .hero-photo {
    height: 62vh;

    min-height: 390px;
  }

  .hero-text {
    font-size: 16px;
  }


  /* SECTIONS */

  .section {
    padding: 75px 0;
  }

  .intro .lead {
    font-size: 19px;
  }


  /* GALLERY */

  .gallery {
    grid-template-columns: 1fr 1fr;

    grid-auto-rows: 175px;

    gap: 6px;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }


  /* QUOTE */

  .quote-section {
    padding: 80px 12px;
  }


  /* CONTACT */

  .contact-links a {
    font-size: 18px;
  }

  .contact-actions {
    align-items: flex-start;

    flex-direction: column;

    gap: 20px;
  }


  /* FOOTER */

  .footer-inner {
    flex-wrap: wrap;
  }


  /* LIGHTBOX */

  .lightbox {
    padding: 25px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 50px;

    padding: 10px;
  }
}