* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    line-height: 1.6;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.logo-area img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #58a6ff;
}

.logo-text h1 {
    font-size: 24px;
    color: #58a6ff;
}

.logo-text p {
    font-size: 14px;
    color: #8b949e;
    max-width: 520px;
}

.motto {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-style: italic;
    color: #58a6ff;
    opacity: 0.9;
}

/* NAV */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

nav a {
    color: #e6edf3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #58a6ff;
}

nav a.active {
    color: #58a6ff;
}

.section {
    background: #161b22;
    margin-top: 30px;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #30363d;
    text-align: left;
}

.hero,
.section {
    overflow-wrap: anywhere;
}

.hero p,
.section p,
.section li {
    font-size: 15px;
}

.section ul {
    padding-left: 20px;
}

.section li {
    margin-bottom: 25px;
}

.section h3 + ul {
    margin-top: 15px;
}

.section ul + h3 {
    margin-top: 30px;
}

.contact-section p {
    margin-top: 15px;
}

.contact-link {
    color: #58a6ff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.document-link {
    color: #58a6ff;
    font-size: inherit;
    font-weight: bold;
    text-decoration: none;
}

.document-link:hover {
    text-decoration: underline;
}

/* MAIN */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;

    flex: 1; /* sticky footer miatt */
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    color: #8b949e;
    border-top: 1px solid #30363d;
}

.footer-link {
    color: #8b949e;
    text-decoration: none;
}

.footer-link:hover {
    color: #58a6ff;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 14px 16px;
    }

    .logo-area {
        align-items: flex-start;
        gap: 12px;
    }

    .logo-area img {
        width: 56px;
        height: 56px;
        flex: 0 0 auto;
    }

    .logo-text h1 {
        font-size: 22px;
        line-height: 1.2;
    }

    .logo-text p {
        font-size: 13px;
        line-height: 1.35;
    }

    .motto {
        font-size: 12px;
        line-height: 1.35;
    }

    nav ul {
        justify-content: flex-start;
        gap: 8px;
    }

    nav a {
        display: inline-block;
        padding: 6px 8px;
        font-size: 14px;
        line-height: 1.2;
    }

    main {
        width: 100%;
        margin: 24px auto;
        padding: 0 16px;
    }

    .section {
        margin-top: 22px;
        padding: 20px;
        border-radius: 8px;
    }

    .section li {
        margin-bottom: 18px;
    }

    .contact-link {
        font-size: 18px;
    }

    footer {
        padding: 24px 16px;
    }
}

@media (max-width: 420px) {
    .logo-area {
        flex-direction: column;
    }

    .logo-area img {
        width: 52px;
        height: 52px;
    }

    nav ul {
        gap: 6px;
    }

    nav a {
        padding: 5px 6px;
        font-size: 13px;
    }

    .section {
        padding: 16px;
    }
}
