:root {
    --bg-main: #E5E1DA;
    --bg-secondary: #fbf9f1;

    --font-main: #162022;
    --font-secondary: #008599;

    --sp-red: #d40333;

    --header-height: 90px;
}

html, body {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    background-color: var(--bg-main);
}

* {
    font-family: 'Montserrat';
    color: var(--font-main);
}

a {
    text-decoration: none;
    color: var(--font-secondary);
}

.container {
    max-width: min(90vw, 1280px);
    margin-inline: auto;
}

nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;

    height: var(--header-height);

    padding: 30px 10px;

    background-color: var(--bg-secondary);

    z-index: 1000;
}

nav .container {
    position: relative;
}

nav .logo {
    position: absolute;
    top: -25px;

    height: 165px;
    max-height: 30vw;

    background: var(--bg-secondary);

    padding: 10px;

    border-radius: 50%;

    overflow: hidden;
}

.logo img {
    height: 100%;
    width: 100%;
}

.motto {
    font-family: 'Caveat';
    display: inline-block;
    position: absolute;
    font-size: 40px;
    transform: translateX(163px);
    top: -14px;
}

.menu-toggle {
    position: absolute;
    right: 0;
    top: -7px;

    width: 48px;
    height: 48px;

    background-image: url('/img/burger.svg');
    background-size: 48px;
    background-position: center;
    background-repeat: no-repeat;

    cursor: pointer;

    transition: all .2s;
}

.menu-toggle:hover {
    scale: 1.05;
}

.menu-wrapper {
    display: none;

    position: absolute;
    right: 0;
    top: calc(var(--header-height) - 30px);

    background-color: var(--bg-secondary);

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: flex-end;

    list-style-type: none;

    margin: 0;
}

.main-menu li {
    padding: 5px 15px;
    margin: 5px 0;
}

.page {
    margin: 0 0 120px;
}

.page h1, .page h2, .page h3, .page h4, .page h5, .page h6 {
    margin: 10px 0;
}

section > h2 {
    text-align: center;
}

section .flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

section .flex > * {
    flex: 1 1 calc(50% - 10px);
}

.container section {
    margin-top: 100px;
}

section p a {
    font-weight: bold;
    text-decoration: underline;
    letter-spacing: 1;
}

section ul,
section ol {
    padding-left: 25px;
}

section ul li {
    margin: 5px 0;
}

.section__right.section__right--image {
    display: flex;
    justify-content: right;
}

.section-auto {
    flex: 1 !important;
}

section.topimage {
    height: calc(100vh - var(--header-height));
    margin-inline: auto;
}

section.topimage img {
    height: 100%;
    width: 100%;

    object-fit: cover;
}

section.kimjestesmy .content {
    margin-inline: auto;
    text-align: justify;
}

section.width1024 > div {
    max-width: 1024px;
    margin-inline: auto;
}

.patron img {
    margin-inline: auto;
    margin-bottom: 35px;
}

.partners__logos.flex {
    justify-content: center;
}

.partners__logos > a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    padding: 10px;
}

.wspierajace .partners__logos > a {
    flex: 0 1 calc(31% - 10px);
    min-width: 365px;
}

.partnerzy .partners__logos > a {
    flex: 0 1 calc(24% - 10px);
    min-width: 250px;
}

.partners__logos div.img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;

    background-color: #fff;
    box-shadow: 0 0 20px -10px;

    padding: 15px;
    aspect-ratio: 1.5;
}

.partners__logos img {
    width: 100%;
    object-fit: contain;
}

.wspierajace .partners__logos img {
    max-height: 250px;
}

.partnerzy .partners__logos img {
    max-height: 150px;
}

.partners__logos > a span{
    background-color: var(--sp-red);
    color: var(--bg-secondary);

    display: block;

    width: 100%;
    text-align: center;

    padding: 5px 0;
}

.wspierajace .partners__logos > a span {
    font-size: 22px;
    padding: 10px 0;
}

footer {
    padding: 10px 0;

    background-color: var(--font-main);
    color: var(--bg-secondary);
}

footer * {
    color: inherit;
}

:is(h1, h2, h3, h4, h5, h6):not(:first-child) {
    margin-top: 25px;
}