:root {
    --navy: #1a2330;
    --blue: #1a56db;
    --blue-bright: #228fd9;
    --blue-soft: #cfe6f3;
    --yellow: #ffd400;
    --yellow-deep: #f5b800;
    --green: #2f9e51;
    --green-deep: #1f7d3e;
    --red: #e0556b;
    --gray: #5b6675;
    --ink: #20303f;
    --card: #ffffff;
    --shadow: 0 18px 40px rgba(26, 35, 48, 0.16);
    --radius: 20px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 15% -10%, #eaf5fb 0%, rgba(234, 245, 251, 0) 60%),
        radial-gradient(900px 500px at 95% 0%, #fff7d6 0%, rgba(255, 247, 214, 0) 55%),
        linear-gradient(160deg, #f4fafe 0%, #eef4fb 100%);
    min-height: 100vh;
    line-height: 1.5;
}

.page {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 48px) 18px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---------- Masthead ---------- */
.masthead { text-align: center; }

.logo {
    width: min(100%, 460px);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 14px rgba(26, 35, 48, 0.12));
}

.tagline {
    margin: 14px 0 2px;
    font-size: clamp(0.95rem, 2.6vw, 1.1rem);
    font-weight: 600;
    color: var(--navy);
}

.issue {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-bright);
    font-weight: 700;
}

.read-cta-wrap { margin: 16px 0 0; }

.read-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(26, 86, 219, 0.32);
    transition: transform 0.12s ease, filter 0.12s ease;
}
.read-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.read-cta:active { transform: translateY(0); }
.read-cta:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; }

.install-wrap { margin: 12px 0 0; }

.install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.98rem;
    border: none;
    cursor: pointer;
    padding: 11px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(31, 125, 62, 0.3);
    transition: transform 0.12s ease, filter 0.12s ease;
}
.install-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.install-btn:active { transform: translateY(0); }
.install-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.install-hint {
    margin: 10px auto 0;
    max-width: 320px;
    background: #f4f8fd;
    border: 1px dashed var(--blue-soft);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--gray);
}

/* ---------- Spis treści ---------- */
.toc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    justify-content: center;
}

.toc-label {
    font-weight: 700;
    color: var(--gray);
    font-size: 0.9rem;
}

.chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.chips li {
    background: #fff;
    border: 1.5px solid var(--blue-soft);
    color: var(--navy);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(26, 86, 219, 0.06);
}

/* „…i wiele innych" — własna linia, bez pigułki, lekko stonowane */
.chips li.chip-more {
    flex-basis: 100%;
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
    color: var(--gray);
    font-style: italic;
    font-weight: 600;
    padding: 4px;
    margin-top: 2px;
}

/* Najważniejszy punkt numeru — wyróżniona plakietka na osobnej linii */
.chips li.chip-feature {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 2px;
}

.chip-feature a,
.chip-feature span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
    color: var(--navy);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(245, 184, 0, 0.45);
    animation: chip-pulse 2.4s ease-in-out infinite;
    transition: transform 0.12s ease, filter 0.12s ease;
}
.chip-feature a:hover { transform: translateY(-2px); filter: brightness(1.05); animation: none; }
.chip-feature a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; animation: none; }

@keyframes chip-pulse {
    0%, 100% { box-shadow: 0 6px 16px rgba(245, 184, 0, 0.45); }
    50%      { box-shadow: 0 6px 22px rgba(245, 184, 0, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
    .chip-feature a { animation: none; }
}

/* ---------- Archiwum numerów ---------- */
.archive { text-align: center; }
.archive-title { font-size: 1rem; color: var(--navy); margin: 0 0 10px; font-weight: 800; }
.archive-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 8px; max-width: 470px; }
.archive-list a {
    display: flex; align-items: baseline; gap: 10px;
    background: #fff; border: 1.5px solid var(--blue-soft); border-radius: 12px;
    padding: 10px 14px; text-decoration: none; color: var(--navy);
    box-shadow: 0 2px 6px rgba(26, 86, 219, 0.06);
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.archive-list a:hover { transform: translateY(-2px); border-color: var(--blue); }
.archive-nr { font-weight: 800; color: var(--blue); white-space: nowrap; }
.archive-name { font-weight: 600; flex: 1; text-align: left; }
.archive-date { font-size: 0.82rem; color: var(--gray); white-space: nowrap; }

/* ---------- Ankieta ---------- */
.poll {
    max-width: 460px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid #e7edf4;
    border-top: 3px solid var(--yellow);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(26, 35, 48, 0.08);
    padding: clamp(18px, 4vw, 26px);
}

.poll-question {
    margin: 0 0 16px;
    font-size: clamp(1.05rem, 3.4vw, 1.4rem);
    line-height: 1.25;
    text-align: center;
    color: var(--navy);
}

.alert {
    background: #fdecef;
    border: 1.5px solid var(--red);
    color: #9b2030;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 0 0 18px;
    font-weight: 600;
    text-align: center;
}

/* przyciski głosowania */
.vote-form {
    display: grid;
    gap: 10px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: clamp(0.95rem, 2.8vw, 1.08rem);
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    box-shadow: 0 4px 10px rgba(26, 35, 48, 0.12);
}

.vote-emoji { font-size: 1.3em; line-height: 1; }

.vote-yes { background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); }
.vote-no  { background: linear-gradient(135deg, #8893a4 0%, #6a7585 100%); }

.vote-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.vote-btn:active { transform: translateY(0); }
.vote-btn:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }

.poll-hint {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray);
}

/* ---------- Podziękowanie + wyniki ---------- */
.thanks { text-align: center; margin-bottom: 22px; }
.thanks-big { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.thanks-sub { margin: 6px 0 0; color: var(--gray); }

.results { display: grid; gap: 18px; }

.result-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.result-label { font-weight: 700; color: var(--navy); }
.result-pct { font-weight: 800; font-size: 1.1rem; color: var(--blue); }

.bar {
    height: 16px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 2px;
}

.bar-tak { background: linear-gradient(90deg, var(--green) 0%, #4bd07a 100%); }
.bar-nie { background: linear-gradient(90deg, #9aa5b5 0%, #c2cad6 100%); }

.result-count {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--gray);
}

.results-total {
    text-align: center;
    margin: 6px 0 0;
    color: var(--gray);
}

.cooldown {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    background: #f4f8fd;
    border: 1px dashed var(--blue-soft);
    padding: 10px;
    border-radius: 12px;
}

.my-vote {
    text-align: center;
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: var(--gray);
}
.my-vote-tak { color: #1f7d3e; font-weight: 800; }
.my-vote-nie { color: #5b6675; font-weight: 800; }

.vote-again {
    margin: 24px 0 12px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--navy);
    font-weight: 700;
    background: linear-gradient(135deg, #fff8e0 0%, #fdecc8 100%);
    border: 1px solid #f0c869;
    padding: 10px 14px;
    border-radius: 12px;
}

/* ---------- Stopka ---------- */
.site-footer {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

.site-footer a { color: var(--blue); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .credit { margin-top: 4px; font-size: 0.78rem; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
    .vote-btn, .bar-fill { transition: none; }
}
