:root {
    --bg: #e0f2e9;
    --text: #333;
    --accent: #2ecc71;
    --accent-dark: #27ae60;
    --section-bg: #fffbe7;
    --link-bg: #fff;
    --link-text: #2ecc71;
    --link-visited: #1a9956;
    --shadow: 0 2px 8px rgba(44, 204, 113, 0.08);
    --shadow-link: 0 2px 4px rgba(0, 0, 0, 0.1);
    --headline: #2ecc71;
    --footer: #555;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #181f1b;
        --text: #e0f2e9;
        --accent: #27ae60;
        --accent-dark: #17643b;
        --section-bg: #232b26;
        --link-bg: #232b26;
        --link-text: #7fffb2;
        --link-visited: #3be6a0;
        --shadow: 0 2px 12px rgba(44, 204, 113, 0.13);
        --shadow-link: 0 2px 8px rgba(44, 204, 113, 0.13);
        --headline: #7fffb2;
        --footer: #aaa;
    }

    header {
        background-color: #17643b !important;
    }
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

header {
    background-color: var(--accent);
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    transition: background 0.3s;
}

header h1 {
    font-size: 2em;
    color: #fff;
    margin: auto;
    letter-spacing: 1px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    padding: 15px;
}

.sections-row {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1240px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-section {
    background: var(--section-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px 28px;
    margin-bottom: 18px;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 320px;
    min-width: 280px;
    transition: background 0.3s, box-shadow 0.3s;
}

.headline {
    color: var(--headline);
    margin-top: 0;
    font-size: 1.4em;
    text-align: center;
    transition: color 0.3s;
}

.info-text {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text);
    text-align: center;
    transition: color 0.3s;
}

.links-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    width: 100%;
    max-width: 320px;
    min-width: 220px;
    flex: 0 1 320px;
}

.links-list a,
.info-text a {
    display: block;
    text-decoration: none;
    color: var(--link-text);
    background-color: var(--link-bg);
    padding: 15px 20px;
    margin: 10px 0;
    width: 90%;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow-link);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    word-break: break-all;
}

.links-list a:visited,
.info-text a:visited {
    color: var(--link-visited);
}

.links-list a:hover,
.info-text a:hover {
    background-color: var(--accent-dark);
    color: #fff;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8em;
    color: var(--footer);
    width: 100%;
    box-sizing: border-box;
    transition: color 0.3s;
}

@media (max-width: 900px) {
    .sections-row {
        flex-direction: column;
        align-items: center;
    }

    .info-section,
    .links-list {
        max-width: 600px;
        width: 100%;
    }
}
