:root {
    --ink: #17211b;
    --muted: #617066;
    --line: #dfe8df;
    --paper: #fbfcf7;
    --soft: #eef5ed;
    --mint: #d9f1df;
    --green: #167a45;
    --green-dark: #075936;
    --gold: #d99a29;
    --red: #b63e35;
    --blue: #256a9a;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(23, 33, 27, .12);
    --deep-shadow: 0 24px 70px rgba(23, 33, 27, .18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 22px;
    min-height: 88px;
    padding: 22px clamp(18px, 5vw, 72px) 14px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 232, 223, .92);
    box-shadow: 0 10px 32px rgba(23, 33, 27, .06);
    backdrop-filter: blur(16px);
}

.header-strip {
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    min-height: 24px;
    padding: 3px 16px;
    color: #e7f4ea;
    background: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.header-strip a {
    color: #ffe4a8;
    text-decoration: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-dark), var(--green) 62%, var(--gold));
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(7, 89, 54, .22);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fbf5;
}

.site-nav a {
    border-radius: 6px;
    padding: 9px 11px;
    color: #344239;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--green-dark);
    background: var(--soft);
}

.site-nav .admin-link {
    color: var(--white);
    background: linear-gradient(135deg, var(--ink), var(--green-dark));
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    min-height: calc(100vh - 88px);
    padding: clamp(46px, 7vw, 96px) clamp(18px, 5vw, 72px) clamp(32px, 5vw, 64px);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(217, 241, 223, .72), rgba(255, 246, 222, .58) 55%, rgba(255, 255, 255, .9));
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: .96;
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.04;
}

h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.16;
}

.lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: #435147;
    font-size: clamp(17px, 2vw, 21px);
}

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

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn.primary {
    color: var(--white);
    background: var(--green);
}

.btn.primary:hover {
    background: var(--green-dark);
}

.btn.ghost {
    color: var(--green-dark);
    border-color: var(--line);
    background: var(--white);
}

.btn.danger {
    color: var(--white);
    background: var(--red);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-top: 34px;
}

.hero-stats span {
    min-height: 80px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: var(--muted);
    font-size: 14px;
}

.hero-stats strong {
    display: block;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 680px;
    margin-top: 18px;
}

.hero-tags span,
.pill-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 800;
}

.hero-media {
    align-self: stretch;
    display: grid;
    place-items: center;
    min-height: 420px;
}

.hero-media img {
    width: min(100%, 680px);
    aspect-ratio: 1 / .82;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--deep-shadow);
}

.section {
    padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

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

.section-heading {
    max-width: 780px;
    margin-bottom: 30px;
}

.application-showcase {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: stretch;
    padding: clamp(34px, 5vw, 74px) clamp(18px, 5vw, 72px);
    background: linear-gradient(135deg, #122019, #173a27);
    color: var(--white);
}

.application-intro {
    display: grid;
    align-content: center;
    min-height: 100%;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.application-intro .eyebrow {
    color: #ffe4a8;
}

.application-intro h2 {
    color: var(--white);
}

.application-intro p {
    color: #d6e3d8;
    font-size: 18px;
}

.mini-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.mini-benefits span {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 11px 13px;
    color: #f7fbf5;
    background: rgba(255, 255, 255, .08);
    font-weight: 800;
}

.application-card,
.contact-card {
    border: 1px solid rgba(223, 232, 223, .9);
    border-radius: 8px;
    padding: clamp(20px, 4vw, 34px);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--deep-shadow);
}

.attractive-form input,
.attractive-form select,
.attractive-form textarea {
    min-height: 52px;
    border-color: #d4e1d8;
    background: #fbfdf9;
}

.attractive-form textarea {
    min-height: 118px;
}

.attractive-form label {
    color: #203229;
}

.brand-showcase {
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: center;
    padding: clamp(44px, 6vw, 84px) clamp(18px, 5vw, 72px);
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.brand-showcase-media img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.brand-showcase-copy {
    max-width: 720px;
}

.brand-showcase-copy p {
    color: var(--muted);
    font-size: 18px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.info-card,
.panel,
.result-card,
.admin-card,
.steps article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(23, 33, 27, .08);
}

.info-card {
    min-height: 220px;
    padding: 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: #b9d4bd;
    box-shadow: var(--shadow);
}

.info-card p,
.steps p,
.panel p,
.result-card p {
    color: var(--muted);
}

.info-card a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--green-dark);
    font-weight: 800;
    text-decoration: none;
}

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

.steps article {
    padding: 24px;
}

.steps span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: var(--white);
    background: var(--green);
    font-weight: 800;
}

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px);
    background: var(--ink);
    color: var(--white);
}

.feature-band p,
.feature-band li {
    color: #d6e3d8;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.form-shell {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: clamp(32px, 5vw, 70px) clamp(18px, 5vw, 72px) clamp(70px, 7vw, 96px);
}

.panel,
.result-card {
    padding: clamp(22px, 4vw, 34px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 7px;
    color: #334139;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd8cf;
    border-radius: 8px;
    padding: 12px 13px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 124px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(22, 122, 69, .16);
    border-color: var(--green);
}

.notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--mint);
    color: var(--green-dark);
    font-weight: 800;
}

.error {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #ffe7e3;
    color: #8d2a22;
    font-weight: 800;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.summary-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fbfdf9;
}

.summary-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.summary-grid strong {
    display: block;
    margin-top: 3px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 13px;
    font-weight: 800;
}

.badge-success {
    color: #075936;
    background: #d9f1df;
}

.badge-danger {
    color: #8d2a22;
    background: #ffe7e3;
}

.badge-warning {
    color: #6e4a00;
    background: #fff1c9;
}

.badge-info {
    color: #164c74;
    background: #deeffa;
}

.site-footer {
    padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 72px) 34px;
    background:
        linear-gradient(135deg, #0f1710, #13291e 54%, #0b120d);
    color: var(--white);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .36fr) auto;
    gap: 28px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-brand {
    display: flex;
    gap: 16px;
    max-width: 760px;
}

.site-footer h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.site-footer p {
    color: #cbd8cf;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 10px;
}

.footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 34px;
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
}

.footer-cta .eyebrow {
    color: #ffe4a8;
}

.footer-cta h2 {
    max-width: 820px;
    color: var(--white);
    font-size: clamp(28px, 4vw, 44px);
}

.footer-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-ghost {
    border-color: rgba(255, 255, 255, .2);
    color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.footer-contact-card {
    display: grid;
    gap: 5px;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, .06);
}

.footer-contact-card span {
    color: #b8cbbb;
    font-size: 13px;
    font-weight: 800;
}

.footer-contact-card strong {
    color: var(--white);
    font-size: 20px;
}

.footer-contact-card a {
    color: #ffe4a8;
    font-weight: 800;
    text-decoration: none;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(280px, .66fr) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: start;
    padding: clamp(44px, 6vw, 86px) clamp(18px, 5vw, 72px);
    background: var(--soft);
}

.contact-intro {
    background: linear-gradient(135deg, #ffffff, #f7fbf5);
}

.contact-methods {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.contact-methods div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--white);
}

.contact-methods span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.contact-methods strong {
    display: block;
    margin-top: 3px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 8px 12px;
    color: #f3f8f3;
    background: rgba(255, 255, 255, .06);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover {
    border-color: rgba(217, 154, 41, .55);
    color: #ffe4a8;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 18px;
}

.keyword-cloud span {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 6px 10px;
    color: #e5eee5;
    background: rgba(255, 255, 255, .06);
    font-size: 12px;
}

.copyright {
    margin-bottom: 0;
    font-size: 13px;
}

.admin-body {
    background: #f5f8f2;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(18px, 5vw, 72px);
    background: linear-gradient(135deg, var(--ink), var(--green-dark));
    color: var(--white);
}

.admin-topbar a {
    color: var(--white);
    font-weight: 800;
}

.admin-layout {
    padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 72px);
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .35fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 22px;
}

.admin-hero > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(23, 33, 27, .08);
}

.admin-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.admin-file-status {
    display: grid;
    align-content: center;
    gap: 5px;
}

.admin-file-status strong {
    font-size: 30px;
}

.admin-file-status small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.admin-file-status.ok strong {
    color: var(--green-dark);
}

.admin-file-status.bad strong {
    color: var(--red);
}

.admin-card {
    padding: 22px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-card strong {
    display: block;
    font-size: 30px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f0f6ef;
    font-size: 13px;
}

td a {
    color: var(--green-dark);
    font-weight: 800;
}

.login-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 18px;
}

.login-card {
    width: min(100%, 440px);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .hero,
    .application-showcase,
    .feature-band,
    .form-shell,
    .brand-showcase,
    .contact-section,
    .footer-cta,
    .footer-main,
    .admin-hero {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-media {
        min-height: 280px;
    }

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

@media (max-width: 640px) {
    .site-header {
        min-height: 82px;
        padding: 28px 16px 12px;
    }

    .header-strip {
        justify-content: flex-start;
        overflow: hidden;
        white-space: nowrap;
    }

    .brand strong {
        font-size: 14px;
    }

    .brand small {
        display: none;
    }

    .footer-brand {
        display: grid;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(36px, 13vw, 54px);
    }

    .hero-stats,
    .mini-benefits,
    .card-grid,
    .steps,
    .form-grid,
    .summary-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .hero-media img {
        aspect-ratio: 1 / .9;
    }

    .btn,
    button.btn {
        width: 100%;
    }

    .hero-tags span,
    .pill-row span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
