a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:after,
blockquote:before,
q:after,
q:before {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  font-size: 16px;
  --clr-falkgreen: hsl(152 100% 34%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", serif;
  font-size: 1rem;
  line-height: 1em;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Nunito Sans", serif;
  font-weight: 800;
  line-height: 1.125em;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

h5 {
  font-size: 1rem;
}

h4 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.75rem;
}

.section-title > h2 {
  display: inline-block;
  margin: max(3rem, 8vh) 0;
  padding: 0.5em 1.25em;
  color: white;
  letter-spacing: 0.025em;
  background-color: var(--clr-falkgreen);
  border-radius: 2px;
}

h1 {
  font-size: 2rem;
}

p {
  font-family: "Lato", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5em;
}

.heading > p {
  font-size: 1.25rem;
  line-height: 1.5em;
  color: #5e5e5e;
}

.container {
  width: min(80vw, 1100px);
  margin-inline: auto;
}

.container.wide {
  width: min(90vw, 1300px);
}

.container.fullwidth {
  width: 100%;
}

a {
  text-decoration: none;
}

a.button {
  display: inline-flex;
  align-items: center;
  width: auto;
  color: black;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  border: 2px solid;
  border-radius: 2px;
  transition:
    border-color 500ms ease-in-out,
    box-shadow 500ms ease-in-out,
    background-color 500ms ease-in-out;
}

a.button.white {
  color: white;
  border-color: hsl(0 0 100% / 0.5);
}

a.button.gray {
  color: black;
  border-color: hsl(0 0% 37% / 0.33);
}

a.button > span {
  display: inline-flex;
}

a.button > span > img {
  height: 0.65rem;
}

a.button > span:first-of-type {
  padding: 0.95rem 1rem;
}

a.button > span:first-of-type {
  border-right: 2px solid;
  transition: border-color 500ms ease-in-out;
}

a.button.white > span:first-of-type {
  border-right-color: hsl(0 0 100% / 0.5);
}

a.button.gray > span:first-of-type {
  border-right-color: hsl(0 0 37% / 0.33);
}

a.button > span:last-of-type {
  padding: 0.7rem 1.5rem;
}

a.button:hover,
a.button:focus {
  box-shadow: 0 0 30px hsl(0 0% 0% / 0.05);
}

a.button.white:hover,
a.button.white:focus {
  border-color: white;
  background-color: hsl(0 0% 100% / 0.25);
}

a.button.white:hover > span:first-of-type,
a.button.white:focus > span:first-of-type {
  border-color: white;
}

a.button.gray:hover,
a.button.gray:focus {
  border-color: #5e5e5e;
  background-color: hsl(0 0% 0% / 0.25);
}

a.button.gray:hover > span:first-of-type,
a.button.gray:focus > span:first-of-type {
  border-color: #5e5e5e;
}

.image {
  opacity: 1;
}

/* Header - background */

header > .background {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80svh;
  margin-bottom: max(5vh, 5vw);
  background-image: url("../images/landing-hero_bg.webp");
  background-size: cover;
  background-position: center;
}

header > .background::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(
    to bottom,
    hsl(0 0% 0% / 0.66) 15%,
    hsl(0 0% 0% / 0) 33.3%
  );
}

header > .background > div {
  position: relative;
}

@media (min-width: 650px) {
  header > .background {
    height: min(80svh, 800px, 80vw);
  }
}

/* Header - navigation */

#topbar {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

#topbar > * {
  display: grid;
  align-items: center;
}

#topbar > .branding > img {
  height: 35px;
  width: auto;
  margin: 1rem 0;
}

#topbar > nav a {
  color: white;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  border: 1px solid hsl(0 0% 100% / 0.25);
  border-radius: 2px;
  transition: border-color 500ms ease-in-out;
}

#topbar > nav a:hover,
#topbar > nav a:focus {
  border-color: white;
}

#topbar > nav > ul {
  display: flex;
}

#topbar > nav.menu {
  grid-area: 2 / 1 / 3 / 3;
  justify-content: center;
  border-top: 1px solid hsl(0 0% 100% / 0.25);
}

#topbar > nav.menu > ul {
  margin: 1rem 0;
  gap: 0.75rem;
}

#topbar > nav.menu a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
}

#topbar > nav.language {
  justify-content: end;
}

#topbar > nav.language ul {
  gap: 0.75rem;
}

#topbar > nav.language a {
  padding: 0.5rem;
}

@media (min-width: 650px) {
  #topbar {
    grid-template-columns: min-content auto min-content;
  }

  #topbar > .branding {
    padding-right: 2rem;
  }

  #topbar > .branding > img {
    margin: 1.5rem 0 0.5rem;
  }

  #topbar > nav.menu {
    grid-area: auto;
    justify-content: start;
    align-items: end;
    padding-left: 0.5rem;
    border: 0;
    border-left: 1px solid hsl(0 0% 100% / 0.5);
  }

  #topbar > nav.menu > ul {
    gap: 0.125rem;
    margin-bottom: 0.3rem;
  }

  #topbar > nav.menu a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border: 0;
    transition: background-color 500ms ease-in-out;
  }

  #topbar > nav.menu a:hover,
  #topbar > nav.menu a:focus {
    background-color: hsl(0 0% 100% / 0.25);
  }

  #topbar > nav.language {
    align-items: end;
  }

  #topbar > nav.language > ul {
    margin-bottom: 1rem;
  }
}

@media (min-width: 800px) {
  #topbar > .branding {
    padding-right: 3.5rem;
  }

  #topbar > .branding > img {
    margin: 2rem 0 0.5rem;
  }

  #topbar > nav.menu {
    padding-left: 2rem;
  }
}

/* Header - caption */

header #caption-box {
  position: absolute;
  right: 0;
  bottom: max(-4vw, -4vh);
  width: min(100%, 650px);
  padding: max(3vw, 3vh);
  color: white;
  background-image: linear-gradient(
    to bottom,
    hsl(153 100% 34% / 0.8),
    hsl(153 100% 34% / 1)
  );
  border-radius: 2px;
  opacity: 1;
}

header .caption-title > h1 {
  font-size: max(3.5vw, 3.5vh);
}

header .caption-description {
  padding: 1rem 0 2rem;
}

header .caption-description > p {
  line-height: 1.25em;
}

@media (min-width: 650px) {
  header #caption-box {
    bottom: max(-5vw, -5vh);
  }

  header #caption-box {
    padding: min(5vw, 5vh);
  }

  header .caption-title > h1 {
    font-size: min(4vw, 4vh);
  }
}

/* Landing - oferta */

#oferta #offer-content .image {
  height: min(75vw, 500px);
  margin: 3rem 0;
}

#oferta #offer-content .image img {
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
}

#oferta #offer-content .offer-list {
  margin-bottom: 3rem;
}

#oferta .offer-list ol {
  list-style-type: none;
  counter-reset: list-counter;
}

#oferta .offer-list li {
  position: relative;
  counter-increment: list-counter;
}

#oferta .offer-list li::before {
  content: counter(list-counter);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--clr-falkgreen);
  border: 1px solid #e5e5e5;
  border-radius: 2px;
}

#oferta ol .container {
  position: relative;
  top: -25px;
  padding-top: calc(25px + 1.5rem);
}

#oferta ol .container::before {
  content: "";
  position: absolute;
  display: inline-block;
  top: 0;
  left: max(60px, 5vw);
  width: min(calc(100% - 5vw), calc(100% - 60px));
  height: 1px;
  background-color: #e5e5e5;
}

#oferta .offer-list h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 800px) {
  #oferta ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 5vw;
  }

  #oferta ol .container {
    width: calc(100% - 5vw);
  }
}

@media (min-width: 1000px) {
  #oferta #offer-content {
    width: min(80vw, 1100px);
  }
  #oferta #offer-content > div {
    width: auto;
  }

  #oferta #offer-content {
    display: grid;
    grid-template-columns: 35% 55%;
    grid-template-rows: min-content 1fr;
    grid-column-gap: 10%;
    margin-bottom: max(2rem, 6vh, 6vw);
  }

  #oferta #offer-content .leading-text {
    padding-bottom: max(7.5vw, 10vh);
  }

  #oferta #offer-content .image {
    margin: 0;
    height: 100%;
  }

  #oferta #offer-content .offer-list {
    grid-area: 1 / 2 / 3 / 3;
    margin-bottom: 0;
  }

  #oferta ol {
    display: block;
  }

  #oferta ol li {
    display: flex;
    gap: 2rem;
    padding: max(2rem, 3vw, 4vh) 0;
    border-top: 1px solid #e5e5e5;
  }

  #oferta ol li:last-child {
    border-bottom: 1px solid #e5e5e5;
  }

  #oferta .offer-list li::before {
    width: 60px;
    height: 60px;
  }

  #oferta ol .container {
    top: 0;
    padding: 0;
  }

  #oferta ol .container::before {
    display: none;
  }
}

/* Landing - offer map */

#oferta #map-background {
  display: grid;
  grid-template-columns: 1fr 35vw 45vw 1fr;
  margin-bottom: 3rem;
  padding-top: 3rem;
  padding-bottom: calc(3rem + min(80vw, 600px));
  background-image: linear-gradient(to bottom, hsl(0 0% 97%), hsl(0 0% 94%));
}

#oferta #map-background .leading-text {
  grid-column: 2 / span 2;
  width: 100%;
}

#oferta #map-background a.button {
  margin: 3rem 0 0;
}

#oferta #map-background .eu-map {
  position: relative;
  grid-column: 2 / span 2;
}

#oferta #map-background .eu-map > img {
  position: absolute;
  top: 10vh;
  left: 50%;
  width: min(80vw, 600px);
  height: auto;
  transform: translateX(-50%);
}

@media (min-width: 650px) {
  #section-map {
    overflow-x: clip;
  }

  #oferta #map-background {
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding-top: 5rem;
    padding-bottom: calc(8rem + 46px);
    background-image: linear-gradient(
      to right,
      hsl(0 0% 97%),
      hsl(0 0% 94%) 85%,
      hsl(0 0% 94% / 0) 85%
    );
  }

  #oferta #map-background .leading-text {
    width: 33.3%;
  }

  #oferta #map-background a.button {
    position: absolute;
    margin-bottom: 0;
  }

  #oferta #map-background .eu-map {
    grid-column-start: 3;
    grid-row-start: 1;
  }

  #oferta #map-background .eu-map > img {
    top: calc(-5rem - 5vw);
    left: 45%;
    width: auto;
    height: 60vw;
    transform: translate(-50%, 0);
  }
}

@media (min-width: 850px) {
  #oferta #map-background {
    margin-top: 8rem;
    margin-bottom: 6rem;
  }

  #oferta #map-background a.button {
    position: relative;
  }

  #oferta #map-background {
    grid-template-columns: 1fr 30vw 55vw 1fr;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  #oferta #map-background .eu-map > img {
    top: calc(-6rem - 6vw);
    height: min(60vw, 600px);
  }
}

@media (min-width: 1000px) {
  #oferta #map-background {
    grid-template-columns: 1fr min(30vw, 400px) min(55vw, 700px) 1fr;
    margin-top: 10rem;
    margin-bottom: 6rem;
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  #oferta #map-background .eu-map > img {
    top: calc(-8rem - 8vh);
  }
}

/* O firmie */

#o-firmie .section-title > h2 {
  margin-top: 0;
}

#o-firmie #about-content > .entry {
  width: min(100%, 500px);
}

#o-firmie #about-content .branding > img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 3rem 0;
}

#o-firmie #about-content .lead-out > p {
  width: min(100%, 500px);
  font-size: 1.125rem;
  font-weight: 800;
}

@media (min-width: 1000px) {
  #o-firmie #about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 5rem;
  }

  #o-firmie #about-content > .branding {
    display: grid;
    grid-area: 1 / 2 / 3 / 3;
    gap: 5rem;
    justify-content: end;
    align-items: center;
    border-left: 1px solid #e5e5e5;
  }

  #o-firmie #about-content .lead-out > p {
    margin-top: 1rem;
  }
}

/* O firmie - Dlaczego FS */

#fs-assets {
  margin-top: 5rem;
  margin-bottom: 3rem;
}

#fs-assets .lead-in > span {
  position: relative;
  display: inline-block;
  color: #5e5e5e;
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: none;
}

#fs-assets .lead-in > span::before {
  content: "";
  position: relative;
  display: inline-block;
  left: 0;
  top: calc(4px - 0.5em);
  width: 2rem;
  height: 2px;
  margin-right: 1rem;
  background-color: var(--clr-falkgreen);
}

#fs-assets .wrapper {
  width: min(100%, 1920px);
  margin-top: 4rem;
  margin-inline: auto;
  overflow: hidden;
}

#fs-assets .tiles {
  display: grid;
  grid-gap: 1em;
}

#fs-assets .asset {
  padding: 1rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.25em;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

#fs-assets .asset.gray {
  color: #5e5e5e;
  background-color: #f0f0f0;
}

#fs-assets .asset.green {
  color: white;
  background-color: var(--clr-falkgreen);
}

#fs-assets .tiles > div {
  display: grid;
  min-height: 150px;
  justify-content: center;
  align-items: center;
}

#fs-assets .tiles > div.asset {
  margin-inline: 1em;
}

#fs-assets .tiles > div.image {
  min-height: 175px;
  border: none;
  background-color: lightgray;
}

#fs-assets .tiles > div.img1 {
  background-image: url("../images/falk-serwis_1.webp");
  background-size: cover;
  background-position: center right;
}

#fs-assets .tiles > div.img2 {
  background-image: url("../images/falk-serwis_2.webp");
  background-size: cover;
  background-position: center;
}

#fs-assets .tiles > div.clear {
  display: none;
}

@media (min-width: 650px) {
  #fs-assets {
    margin-top: 7rem;
  }

  #fs-assets .wrapper {
    margin-top: 6rem;
  }

  #fs-assets .lead-in > span {
    font-size: 1.25rem;
  }

  #fs-assets .tiles {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
  }

  #fs-assets .tiles > div.clear {
    display: grid;
    visibility: hidden;
  }

  #fs-assets .tiles > div.asset {
    margin-inline: 0;
  }

  #fs-assets .tiles > .asset1 {
    grid-column-start: 1;
    grid-row-start: 2;
  }

  #fs-assets .tiles > .asset2 {
    grid-column-start: 2;
    grid-row-start: 2;
  }

  #fs-assets .tiles > .asset3 {
    grid-column-start: 3;
    grid-row-start: 2;
  }

  #fs-assets .tiles > .asset4 {
    grid-column-start: 1;
    grid-row-start: 3;
  }

  #fs-assets .tiles > .asset5 {
    grid-column-start: 3;
    grid-row-start: 3;
    color: white;
    background-color: var(--clr-falkgreen);
  }

  #fs-assets .tiles > div,
  #fs-assets .tiles > div.img1 {
    min-height: 250px;
  }

  #fs-assets .tiles > div.img1 {
    grid-area: 1 / 2 / 2 / 4;
  }

  #fs-assets .tiles > div.img2 {
    grid-area: 3 / 2 / 5 / 3;
    height: auto;
  }
}

@media (min-width: 1000px) {
  #fs-assets {
    margin-top: 9rem;
  }

  #fs-assets .wrapper {
    width: min(100%, 1920px);
    margin-top: 8rem;
    overflow: hidden;
  }

  #fs-assets .lead-in > span {
    font-size: 1.5rem;
  }

  #fs-assets .tiles > div.clear {
    display: grid;
    visibility: hidden;
  }

  #fs-assets .tiles {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, min(20vw, 250px));
    justify-content: center;
    margin-inline: 0;
  }

  #fs-assets .tiles > div {
    min-height: min(20vw, 250px);
  }

  #fs-assets .tiles > .asset1 {
    grid-column-start: 2;
    grid-row-start: 1;
  }

  #fs-assets .tiles > .asset2 {
    grid-column-start: 3;
    grid-row-start: 1;
  }

  #fs-assets .tiles > .asset3 {
    grid-column-start: 3;
    grid-row-start: 2;
  }

  #fs-assets .tiles > .asset4 {
    grid-column-start: 3;
    grid-row-start: 3;
  }

  #fs-assets .tiles > .asset5 {
    grid-column-start: 4;
    grid-row-start: 3;
    color: #5e5e5e;
    background-color: #f0f0f0;
  }

  #fs-assets .tiles > div.img1 {
    grid-area: 1 / 4 / 3 / 6;
  }

  #fs-assets .tiles > div.img2 {
    grid-area: 2 / 1 / 4 / 3;
    height: auto;
  }
}

/* Kontakt */

#kontakt .contact-details {
  width: min(80vw, 1100px);
  margin-inline: auto;
}

#kontakt dt {
  margin-bottom: 1rem;
  font-family: "Nunito Sans", serif;
  font-size: 1.125em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

#kontakt dd {
  margin-bottom: 2rem;
  color: #5e5e5e;
  line-height: 1.5em;
}

#kontakt dd a {
  color: #5e5e5e;
}

#contact-map {
  height: 500px;
  margin-top: 5rem;
  background-color: lightgray;
  border-radius: 2px;
}

#contact-map
  > div.leaflet-control-container
  > div:nth-child(4)
  > div
  > a:nth-child(1)
  > svg {
  display: none !important;
}

@media (min-width: 800px) {
  #kontakt .section-title > h2 {
    margin-bottom: 1rem;
  }

  #kontakt #content-wrapper {
    display: grid;
    grid-template-columns:
      auto min(5vw, 100px) min(40vw, 550px) min(40vw, 550px)
      min(5vw, 100px) auto;
  }

  #kontakt .contact-details {
    grid-column-start: 3;
    width: 100%;
    margin-top: max(3rem, 8vh);
  }

  #kontakt #contact-map {
    grid-column: 4 / span 3;
    width: 100%;
    margin-top: 0;
    margin-bottom: 5rem;
  }
}

@media (min-width: 1000px) {
  #kontakt #contact-map {
    grid-column: 4 / span 2;
    height: min(40vw, 550px);
  }
}

/* Footer */

footer {
  background-color: #f5f5f5;
}

footer .container {
  position: relative;
  display: flex;
  height: 100px;
  justify-content: center;
  align-items: center;
}

footer .container > hr {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 2px solid var(--clr-falkgreen);
  transform: translateX(-50%);
}

footer small {
  font-size: 0.75rem;
  color: #737373;
}
