* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f5f7fb;
    color: #1d2433;
}

a {
    color: #1769aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    background: white;
    border-bottom: 1px solid #e4e8ef;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #182230;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eaf5ee;
    font-size: 25px;
}

.logo strong {
    display: block;
    font-size: 16px;
}

.logo small {
    color: #7a8494;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

nav a {
    color: #394456;
    font-size: 14px;
}

.nav-button {
    background: #1769aa;
    color: white !important;
    padding: 10px 15px;
    border-radius: 10px;
}

main.container {
    min-height: calc(100vh - 170px);
    padding-top: 35px;
    padding-bottom: 60px;
}

.hero {
    border-radius: 28px;
    padding: 70px;
    background:
        linear-gradient(
            135deg,
            #e9f6ed,
            #edf4ff
        );
    margin-bottom: 35px;
}

.hero h1 {
    margin: 15px 0;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
}

.hero p {
    max-width: 680px;
    font-size: 19px;
    line-height: 1.6;
    color: #566174;
}

.badge {
    display: inline-block;
    background: white;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: #1769aa;
    color: white;
    border-radius: 11px;
    padding: 12px 18px;
    font-size: 15px;
    text-decoration: none;
}

.button:hover {
    text-decoration: none;
    opacity: .92;
}

.button.secondary {
    background: white;
    color: #1769aa;
}

.button.danger {
    background: #c0392b;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card {
    display: block;
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 18px;
    padding: 24px;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(20, 40, 70, .08);
}

.card > span {
    font-size: 32px;
}

.card h2 {
    margin-bottom: 8px;
}

.card p {
    color: #6a7484;
    line-height: 1.5;
}

.alert {
    padding: 14px 17px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert.success {
    background: #eaf7ef;
    color: #216b3b;
}

.alert.error {
    background: #fff0ef;
    color: #a22d26;
}

.form-box,
.admin-box,
.poll,
.profile,
.news,
.document,
.expense {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
}

.form-box {
    width: min(520px, 100%);
    margin: 30px auto;
}

label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

input,
textarea,
select {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid #ccd3de;
    border-radius: 10px;
    background: white;
    font: inherit;
}

textarea {
    resize: vertical;
}

.date {
    color: #8993a3;
    font-size: 13px;
    margin-bottom: 12px;
}

.news p,
.document p,
.expense p {
    line-height: 1.65;
    color: #566174;
}

.empty {
    background: white;
    border: 1px dashed #ccd3de;
    border-radius: 18px;
    padding: 35px;
    text-align: center;
    color: #687386;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 25px 0 35px;
}

.stat {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 18px;
    padding: 25px;
}

.stat span {
    display: block;
    color: #748093;
    margin-bottom: 10px;
}

.stat strong {
    font-size: 28px;
}

.expense {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
}

.expense p {
    grid-column: 1 / -1;
    margin: 0;
}

.poll {
    max-width: 800px;
}

.radio {
    display: block;
    font-weight: normal;
    padding: 10px 0;
}

.radio input {
    display: inline-block;
    width: auto;
    margin: 0 10px 0 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

footer {
    background: #182230;
    color: #cdd5df;
    padding: 40px 0;
}

footer p {
    color: #9da8b7;
}

@media (max-width: 900px) {

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 0;
    }

    nav {
        width: 100%;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .hero {
        padding: 35px 25px;
    }

    .cards,
    .stats {
        grid-template-columns: 1fr;
    }

    .expense {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 10px;
    }

}
