:root {
    --brand: #82C341;
    --brand-2: #9ED653;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --bg: #f8fafc;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, #eef9e3 0, var(--bg) 42%, #f8fafc 100%);
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky; top: 0; z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid rgba(226,232,240,.9);
}
.site-header .inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: grid; place-items: center; color: #fff; font-size: 18px;
    box-shadow: 0 10px 24px rgba(130,195,65,.35);
}
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; }
.nav-links a:hover { color: var(--ink); }
.hero { padding: 56px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
    background: #ecfccb; color: #3f6212; border: 1px solid #d9f99d;
}
.hero h1 {
    margin: 14px 0 12px; font-size: clamp(2rem, 4.8vw, 3.35rem);
    line-height: 1.05; letter-spacing: -.03em;
}
.hero p.lead { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 56ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 12px; font-size: .82rem; color: var(--muted); font-weight: 600;
}
.download-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 24px;
    box-shadow: var(--shadow); padding: 22px;
}
.download-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.download-card .sub { margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.countdown-box {
    margin-bottom: 14px; padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(130,195,65,.12), rgba(158,214,83,.18));
    border: 1px solid rgba(130,195,65,.25);
}
.countdown-box.blocked { background: #fff7ed; border-color: #fed7aa; }
.countdown-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.countdown-time { font-family: ui-monospace, monospace; font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.quota-pill { margin-top: 8px; font-size: .78rem; color: #475569; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input[type="url"] {
    flex: 1 1 240px; min-width: 0; padding: 14px 16px; border-radius: 14px;
    border: 1px solid var(--line); font-size: .95rem; background: #fff;
}
.field input[type="url"]:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(130,195,65,.18);
}
.btn-primary {
    border: none; border-radius: 14px; padding: 14px 20px; cursor: pointer;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-weight: 800; white-space: nowrap;
    box-shadow: 0 12px 28px rgba(130,195,65,.35);
}
.btn-primary:disabled { opacity: .65; cursor: not-allowed; }
.status { margin-top: 12px; padding: 12px; border-radius: 12px; display: none; font-size: .9rem; }
.status.show { display: block; }
.status.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.archive-badge {
    display: none; margin-top: 10px; font-size: .78rem; color: #166534;
    background: #ecfdf5; border: 1px solid #bbf7d0; padding: 6px 10px; border-radius: 999px; width: fit-content;
}
.features { padding: 18px 0 10px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
    background: rgba(255,255,255,.78); border: 1px solid var(--line);
    border-radius: 18px; padding: 18px;
}
.feature h3 { margin: 0 0 8px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .92rem; }
.catalog { padding: 28px 0 18px; }
.catalog h2 { margin: 0 0 14px; font-size: 1.35rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.catalog-item {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.catalog-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.catalog-item img { width: 100%; height: 130px; object-fit: cover; background: #f1f5f9; display: block; }
.catalog-item .meta { padding: 12px; }
.catalog-item strong { display: block; font-size: .88rem; line-height: 1.35; margin-bottom: 8px; min-height: 2.6em; }
.catalog-item button {
    width: 100%; border: none; border-radius: 10px; padding: 10px; font-weight: 700; cursor: pointer;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.site-footer {
    margin-top: 28px; padding: 24px 0 40px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .88rem;
}
.spinner {
    display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
