/* FONTY */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');


/* USTAWIENIA GLOBALNE */

:root {
  --background: #FBF8F3;
  --black: #000000;
  --white: #FFFFFF;
  --content-width: 1200px;

  --font-regular: 400;
  --font-semibold: 600;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--black);
  font-family: 'Montserrat', sans-serif;
  font-weight: var(--font-regular);
}

img {
  display: block;
  max-width: 100%;
}


/* GÓRNA NAWIGACJA */

.header {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  justify-content: flex-end;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
}

.navigation a {
  position: relative;
  color: var(--black);
  text-decoration: none;
  font-size: 29px;
  font-weight: var(--font-regular);
  line-height: 1.2;
  transition: opacity 0.25s ease;
}

.navigation a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: width 0.25s ease;
}

.navigation a:hover::after,
.navigation a:focus-visible::after {
  width: 100%;
}

.navigation a:hover {
  opacity: 0.55;
}


/* STRONA GŁÓWNA */

.home {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 65px 24px 80px;
}

.home-logo,
.home-slogan {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-logo {
  width: 825px;
  max-width: 100%;
  height: auto;
}

.home-slogan {
  margin-top: 60px;
}

.slogan-svg {
  width: 825px;
  max-width: 100%;
  height: auto;
}

.appointment {
  display: flex;
  justify-content: center;
  margin-top: 70px;
}

.appointment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 34px;
  background: var(--black);
  border: 1px solid var(--black);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-size: 24px;
  font-weight: var(--font-semibold);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.appointment-link:hover,
.appointment-link:focus-visible {
  background: var(--background);
  color: var(--black);
}

.main-logo,
.slogan-svg {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}

.slogan-svg {
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-logo,
  .slogan-svg {
    animation: none;
    opacity: 1;
  }
}


/* PODSTRONA O NAS */

.about {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

.about-logo {
  display: block;
  width: 295px;
  max-width: 100%;
  margin-top: -34px;
  margin-bottom: 55px;
}

.about-logo img {
  width: 100%;
  height: auto;
}

.about-content {
  width: 100%;
  font-size: 20px;
  line-height: 1.8;
  font-weight: var(--font-regular);
}

.about-content p {
  margin: 0 0 28px;
}

.about-content strong {
  font-weight: var(--font-semibold);
}


/* ZDJĘCIE OPŁYWANE PRZEZ TEKST */

.about-photo {
  float: right;
  width: 270px;
  max-width: 42%;
  margin: 0 0 24px 32px;
}

.photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 270 / 284;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.photo-button:hover img {
  opacity: 0.8;
}

.photo-button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 5px;
}

.drop-cap {
  float: left;
  font-size: 3.5em;
  line-height: 0.9;
  font-weight: var(--font-semibold);
  padding-right: 8px;
  padding-top: 5px;
}


/* POWIĘKSZANIE ZDJĘCIA */

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.58);
  cursor: zoom-out;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font-family: inherit;
  font-size: 48px;
  cursor: pointer;
}
.social-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icons a {
  display: block;
  flex: 0 0 auto;
}

.social-icons img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* TABLETY I TELEFONY */

@media (max-width: 600px) {

  .header {
    padding: 18px 20px 0;
  }

  .navigation {
    width: 100%;
    gap: 16px;
    justify-content: flex-end;
  }

  .navigation a {
    font-size: clamp(16px, 4.5vw, 24px);
    line-height: 1.3;
  }

  /* STRONA GŁÓWNA */

  .home {
    padding: 150px 24px 60px;
  }

  .home-slogan {
    margin-top: 40px;
  }

  .appointment {
    margin-top: 70px;
  }

  .appointment-link {
    min-height: 0;
    padding: 13px 22px;
    font-size: clamp(16px, 4vw, 21px);
  }

  /* PODSTRONA ONAS.HTML */

  .about {
    padding: 35px 24px 90px;
  }

  .about-logo {
  width: clamp(140px, 42vw, 220px);
  max-width: 100%;
  margin-top: 20px;
  margin-bottom: 32px;
  }

  .about-content {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.75;
  }

  .about-content p {
    margin-bottom: 24px;
  }

  .about-photo {
    width: 42%;
    max-width: 270px;
    margin: 0 0 16px 22px;
  }

  .drop-cap {
    font-size: 3.6em;
    line-height: 0.9;
    padding-right: 8px;
    padding-top: 4px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-image {
    max-width: 94vw;
    max-height: 85vh;
  }

  .lightbox-close {
    top: 10px;
    right: 18px;
  }
}


/* BARDZO WĄSKIE EKRANY */

@media (max-width: 380px) {

  .header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .navigation {
    gap: 12px;
  }

  .navigation a {
    font-size: clamp(14px, 4.2vw, 16px);
  }

  .about {
    padding-right: 18px;
    padding-left: 18px;
  }

  .about-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .about-photo {
    width: 40%;
    margin-left: 16px;
  }
}

/* Nagłówek podstrony O nas */

.inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}

.inner-header .about-logo {
  flex: 0 1 295px;
  width: 295px;
  max-width: 30%;
  margin: 0;
}

.inner-header .navigation {
  flex: 0 0 auto;
  gap: 24px;
}

.inner-header .navigation a {
  font-size: 34px;
}

/* Telefony */

@media (max-width: 600px) {
  .inner-header {
    gap: 12px;
    padding: 16px;
  }

  .inner-header .about-logo {
    flex: 0 1 100px;
    width: 100px;
    max-width: 28%;
  }

  .inner-header .navigation {
    flex: 1;
    gap: 10px;
    justify-content: flex-end;
  }

  .inner-header .navigation a {
    font-size: clamp(17px, 2.8vw, 18px);
  }
}

/* OGRANICZENIE ANIMACJI NA ŻĄDANIE UŻYTKOWNIKA */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
