
html, body {
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f0e7de;
  font-family: "CustomFont1", "CustomFont2", Arial, sans-serif;
  color: #000;
  min-height: 100vh;
  padding: 1rem; /* dokładny padding */
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

header h1 {
font-family: "CustomFont1", Arial, sans-serif;
  font-size: 4rem;
  font-weight: 400;
  text-align: left; /* przyklejony do lewej */
  margin-bottom: 1rem;
}

.logo-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

.top-bar {
    font-family: "CustomFont2", Arial, sans-serif;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.top-bar .left {
  text-align: left;
}
.top-bar .center {
  text-align: center;
}
.top-bar .right {
  text-align: right;
}

.top-bar a {
  color: black;
  text-decoration: none;
}
.top-bar a:hover {
  text-decoration: underline;
}

.logo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo img {
  display: block;
  width: 100%; /* pełna szerokość minus padding body */
  height: auto;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 3rem;
  }

  .top-bar {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.3rem;
    font-size: 0.85rem;
  }

  .top-bar .center {
    text-align: center;
  }

  .top-bar .right {
    text-align: right;
  }
}
