:root {
  --orange: #ff6600;
  --maroon: #663333;
  --navy: #153a4b;
  --text: #333333;
  --grey: #999999;
  --rule: #cccccc;
  --arch: clamp(40px, 8vw, 110px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

.container {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
}

/* logo */

.logo-bar {
  padding: 3.5rem 1.25rem 1rem;
  text-align: center;
}

.logo-bar__img {
  width: min(380px, 70%);
  margin-inline: auto;
}

/* sections */

.section {
  padding-bottom: 2rem;
}

/* headings with script watermark */

.heading-wrap {
  text-align: center;
  padding-top: 5.5rem;
  padding-bottom: 3.5rem;
}

.heading {
  position: relative;
  display: inline-block;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--orange);
  line-height: 1.1;
}

.heading__mark {
  position: absolute;
  left: -0.28em;
  bottom: -0.22em;
  z-index: 0;
  font-family: "Great Vibes", cursive;
  font-size: 4em;
  font-weight: 400;
  line-height: 1;
  color: var(--rule);
  pointer-events: none;
}

.heading__text {
  position: relative;
  z-index: 1;
}

.heading__text--mixed {
  text-transform: none;
}

.heading__sub {
  margin-top: 0.5rem;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.heading-wrap--stats {
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

.heading-wrap--stats .heading__sub {
  max-width: 36em;
  margin-inline: auto;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* stat cards (DANE I KONTEKST) */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  list-style: none;
  margin-bottom: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.15rem 1rem 1.35rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--orange);
}

.stat-card__art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8.75rem;
  width: 100%;
}

.stat-card__art img {
  max-width: min(100%, 220px);
  max-height: 8.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.stat-card__value {
  margin-top: 0.65rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--orange);
}

.stat-card__title {
  margin-top: 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.stat-card__desc {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  flex-grow: 1;
}

.stat-card__source {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
}

.stat-card--center {
  grid-column: 2;
}

/* rows */

.row {
  display: grid;
  gap: 2.75rem;
  align-items: center;
  margin-bottom: 6rem;
}

.row:last-child {
  margin-bottom: 0;
}

.row--text-left {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
}

.row--graphic-left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.row--offset {
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
}

/* text blocks */

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.lead::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.9rem;
  background: var(--orange);
}

.cell p {
  margin-top: 1.4rem;
  font-size: 0.95rem;
}

.lead + p {
  margin-top: 2rem;
}

/* maroon labels with hairline */

.label {
  position: relative;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--maroon);
  line-height: 1.2;
}

.label__mark {
  position: absolute;
  left: -0.3em;
  bottom: -0.3em;
  z-index: 0;
  font-family: "Great Vibes", cursive;
  font-size: 4.2em;
  font-weight: 400;
  line-height: 1;
  color: var(--rule);
  pointer-events: none;
}

.label__text {
  position: relative;
  z-index: 1;
}

/* images */

.pic--arch-left {
  border-radius: var(--arch) 0 0 var(--arch);
}

.pic--arch-bl {
  border-radius: 0 0 0 var(--arch);
}

.pic--arch-tl {
  border-radius: var(--arch) 0 0 0;
}

/* contact */

.contact {
  display: grid;
  grid-template-columns: auto;
  justify-content: center;
  row-gap: 2.5rem;
  padding-bottom: 5rem;
}

.contact__logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.contact__logos img {
  height: 100px;
  width: auto;
}

.contact__details p + p {
  margin-top: 1.25rem;
}

.contact__link {
  color: #1a0dab;
}

.contact__tel {
  color: inherit;
  text-decoration: none;
}

/* responsive */

@media (max-width: 1000px) and (min-width: 861px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card--center {
    grid-column: 1 / -1;
    max-width: 22rem;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .row--text-left,
  .row--graphic-left,
  .row--offset {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    margin-bottom: 4rem;
  }

  .row--offset .cell:empty {
    display: none;
  }

  .heading-wrap {
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stat-card--center {
    grid-column: auto;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
    justify-content: start;
    row-gap: 1.75rem;
  }

  .cell p {
    font-size: 1rem;
  }

  /* larger tap targets for e-mail and phone on touch screens */
  .contact__details a {
    display: inline-block;
    padding: 9px 0;
  }

  .contact__logos {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .contact__logos img {
    height: 76px;
  }
}
