:root {
    --teal-950: #073f3d;
    --teal-800: #08635f;
    --teal-700: #087f7b;
    --teal-600: #0b9892;
    --teal-100: #dff5f2;
    --teal-50: #f0fbf9;
    --ink: #16302e;
    --muted: #617472;
    --line: #dfe9e7;
    --white: #ffffff;
    --soft: #f7faf9;
    --danger: #a43d3d;
    --danger-bg: #fff0f0;
    --success: #176e48;
    --success-bg: #eaf9f1;
    --shadow: 0 20px 55px rgba(14, 73, 69, 0.10);
    --radius: 24px;
    --radius-small: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

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

.narrow-container {
    width: min(820px, calc(100% - 36px));
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(223, 233, 231, 0.85);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--teal-950);
    font-size: 1.16rem;
    font-weight: 850;
}

.brand-symbol {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: var(--white);
    background: var(--teal-700);
    font-size: 1.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 650;
}

.main-nav a:hover {
    color: var(--teal-700);
}

.hero {
    overflow: hidden;
    padding: 92px 0 86px;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(11, 152, 146, 0.16),
            transparent 32%
        ),
        linear-gradient(180deg, #ffffff, #f4fbfa);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: 70px;
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--teal-700);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1,
.project-main h1,
.form-intro h1 {
    margin: 0;
    color: var(--teal-950);
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--teal-700);
}

.hero-slogan {
    margin: 28px 0 7px;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
}

.hero-description {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 0 24px;
    cursor: pointer;
    font-weight: 800;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--teal-700);
    box-shadow: 0 14px 30px rgba(8, 127, 123, 0.22);
}

.button-primary:hover {
    background: var(--teal-800);
}

.button-secondary {
    border: 1px solid var(--line);
    color: var(--teal-950);
    background: var(--white);
}

.button-full {
    width: 100%;
}

.hero-visual {
    position: relative;
    min-height: 430px;
}

.impact-card {
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.impact-card-main {
    position: absolute;
    inset: 30px 25px 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 42px;
    color: var(--white);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.13),
            transparent 55%
        ),
        var(--teal-700);
}

.impact-card-main strong {
    margin-top: 80px;
    font-size: 2rem;
    line-height: 1.2;
}

.impact-card-main p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
}

.impact-icon {
    position: absolute;
    top: 36px;
    left: 40px;
    font-size: 5rem;
    font-weight: 900;
    opacity: 0.92;
}

.floating-card {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 12px 18px;
    color: var(--teal-950);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 850;
}

.floating-card-one {
    top: 8px;
    right: 0;
}

.floating-card-two {
    bottom: 0;
    left: 0;
}

.section {
    padding: 92px 0;
}

.section-soft {
    background: var(--soft);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.section-heading.centered {
    display: block;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: var(--teal-950);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-heading > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 28px rgba(14, 73, 69, 0.05);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--teal-100);
}

.project-placeholder {
    display: grid;
    height: 100%;
    place-content: center;
    color: var(--teal-700);
    text-align: center;
}

.project-placeholder span {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
}

.project-placeholder small {
    margin-top: 7px;
    color: var(--teal-950);
    font-weight: 800;
}

.status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--teal-950);
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.74rem;
    font-weight: 850;
}

.inline-badge {
    position: static;
    display: inline-block;
    margin: 22px 0 16px;
    color: var(--teal-700);
    background: var(--teal-100);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    margin: 0 0 10px;
    color: var(--teal-950);
    font-size: 1.3rem;
}

.project-content > p {
    min-height: 76px;
    margin: 0 0 22px;
    color: var(--muted);
}

.progress-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.progress-info strong {
    color: var(--teal-950);
    font-size: 1.22rem;
}

.progress-info span,
.progress-footer {
    color: var(--muted);
    font-size: 0.82rem;
}

.progress-track {
    height: 9px;
    overflow: hidden;
    margin: 10px 0;
    border-radius: 999px;
    background: #e9f0ef;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal-700), #33b7ae);
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.progress-footer a {
    color: var(--teal-700);
    font-weight: 800;
}

.steps-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.step-card,
.stat-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--white);
}

.step-number {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    color: var(--white);
    background: var(--teal-700);
    font-weight: 900;
}

.step-card h3 {
    margin: 22px 0 8px;
    color: var(--teal-950);
}

.step-card p {
    margin: 0;
    color: var(--muted);
}

.project-hero {
    padding: 74px 0 90px;
    background: linear-gradient(180deg, var(--teal-50), var(--white));
}

.project-layout,
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 60px;
}

.back-link {
    display: inline-block;
    color: var(--teal-700);
    font-size: 0.9rem;
    font-weight: 800;
}

.project-main h1,
.form-intro h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.project-family {
    color: var(--teal-700);
    font-weight: 850;
}

.project-summary {
    max-width: 760px;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 650;
}

.project-description {
    margin-top: 34px;
    color: var(--muted);
    font-size: 1.04rem;
}

.support-card,
.form-card,
.admin-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.support-card {
    position: sticky;
    top: 100px;
}

.support-total {
    color: var(--teal-950);
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1;
}

.support-card > p {
    margin: 8px 0 18px;
    color: var(--muted);
}

.progress-large {
    height: 13px;
    margin: 20px 0 10px;
}

.support-card .button {
    margin-top: 28px;
}

.support-card small {
    display: block;
    margin-top: 17px;
    color: var(--muted);
    text-align: center;
}

.contribution-list {
    display: grid;
    gap: 12px;
}

.contribution-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 17px;
    background: var(--white);
}

.contributor-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: var(--teal-700);
    background: var(--teal-100);
}

.contributor-info p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.contribution-value {
    color: var(--teal-700);
    font-weight: 850;
}

.form-intro {
    padding-top: 8px;
}

.form-intro .eyebrow {
    margin-top: 28px;
}

.payment-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 30px 0 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    background: var(--teal-50);
}

.payment-box strong {
    color: var(--teal-950);
    font-size: 1.6rem;
}

.payment-box small,
.form-intro > p {
    color: var(--muted);
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 19px;
}

.field label {
    color: var(--teal-950);
    font-size: 0.91rem;
    font-weight: 800;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    outline: none;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--white);
}

.field input:focus,
.field textarea:focus {
    border-color: var(--teal-600);
    box-shadow: 0 0 0 4px rgba(11, 152, 146, 0.11);
}

.field small,
.privacy-note {
    color: var(--muted);
    font-size: 0.8rem;
}

.money-input {
    position: relative;
}

.money-input input {
    padding-right: 45px;
}

.money-input span {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 800;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 13px 0;
    color: var(--ink);
    cursor: pointer;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--teal-700);
}

.privacy-note {
    margin: 14px 0 0;
    text-align: center;
}

.login-container {
    display: grid;
    min-height: 58vh;
    place-items: center;
}

.login-card {
    width: min(440px, 100%);
}

.login-card h1 {
    margin-top: 0;
    color: var(--teal-950);
}

.flash-container {
    position: relative;
    z-index: 70;
}

.flash {
    margin-top: 16px;
    border-radius: 14px;
    padding: 14px 17px;
    font-weight: 700;
}

.flash-success {
    color: var(--success);
    background: var(--success-bg);
}

.flash-error {
    color: var(--danger);
    background: var(--danger-bg);
}

.admin-section {
    min-height: 70vh;
    padding: 64px 0 90px;
    background: var(--soft);
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.admin-heading h1 {
    margin: 0;
    color: var(--teal-950);
    font-size: 2.5rem;
}

.stat-card span {
    display: block;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--teal-950);
    font-size: 2rem;
}

.admin-panel {
    margin-top: 24px;
    box-shadow: none;
}

.panel-heading h2 {
    margin: 0;
    color: var(--teal-950);
}

.panel-heading p {
    margin: 5px 0 20px;
    color: var(--muted);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px 12px;
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.empty-state {
    border: 1px dashed #bfd2cf;
    border-radius: var(--radius);
    padding: 46px 28px;
    background: var(--teal-50);
    text-align: center;
}

.empty-state h1,
.empty-state h3 {
    margin-top: 0;
    color: var(--teal-950);
}

.empty-state p {
    color: var(--muted);
}

.empty-state.compact {
    padding: 22px;
}

.site-footer {
    padding: 42px 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--teal-950);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner strong {
    color: var(--white);
}

.footer-inner p {
    margin: 3px 0 0;
}

.footer-contact {
    display: grid;
    text-align: right;
}

.footer-contact a {
    color: var(--white);
    font-weight: 800;
}

@media (max-width: 900px) {
    .hero-grid,
    .project-layout,
    .form-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 390px;
    }

    .project-grid,
    .steps-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .container,
    .narrow-container {
        width: min(100% - 24px, 1160px);
    }

    .site-header {
        position: static;
    }

    .header-inner {
        min-height: 64px;
    }

    .main-nav a:not(:last-child) {
        display: none;
    }

    .hero {
        padding: 58px 0 62px;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .hero-visual {
        min-height: 350px;
    }

    .impact-card-main {
        inset: 20px 8px 20px 8px;
        padding: 30px;
    }

    .impact-card-main strong {
        font-size: 1.7rem;
    }

    .floating-card-one {
        right: -3px;
    }

    .section {
        padding: 62px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 14px;
    }

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

    .project-content > p {
        min-height: auto;
    }

    .project-layout,
    .form-layout {
        gap: 32px;
    }

    .project-main h1,
    .form-intro h1 {
        font-size: 2.55rem;
    }

    .contribution-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .contribution-value {
        grid-column: 2;
    }

    .admin-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-contact {
        text-align: left;
    }

    .support-card,
    .form-card,
    .admin-panel {
        padding: 22px;
    }
}
