:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #454550;
  background: #fff;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  align-items: center;
}

.kancelaria {
  width: min(100%, 1220px);
  margin-inline: auto;
  padding: 64px 48px 80px;
}

.kancelaria__header {
  margin-bottom: 54px;
  text-align: center;
}

/* Expose the original logo without its generous white canvas margins. */
.logo {
  position: relative;
  width: min(100%, 550px);
  aspect-ratio: 500 / 150;
  margin: 0 auto 40px;
  overflow: hidden;
}

.logo img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
}

h1,
h2 {
  color: #15133d;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.kontakty {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 1.1fr 1.1fr;
  gap: 28px;
  padding-top: 38px;
  border-top: 1px solid #e7dfe2;
  font-size: 14px;
  line-height: 1.9;
}

address {
  font-style: normal;
}

p {
  margin: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.5;
}

.nip {
  margin-top: 12px;
  font-size: 13px;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

a:hover {
  color: #a4123e;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #a4123e;
  outline-offset: 4px;
  border-radius: 1px;
}

@media (max-width: 1050px) {
  .kontakty {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 48px;
  }
}

@media (max-width: 560px) {
  .kancelaria {
    padding: 44px 28px 48px;
  }

  .kancelaria__header {
    margin-bottom: 32px;
  }

  .logo {
    margin-bottom: 28px;
  }

  h1 {
    font-size: 20px;
    line-height: 1.55;
  }

  .kontakty {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 28px;
    font-size: 15px;
  }

  h2 {
    margin-bottom: 8px;
    font-size: 20px;
  }
}

