:root {
    --bg: #effaf3;
    --bg-2: #d8f5e2;
    --text: #153226;
    --muted: #426456;
    --line: rgba(17, 74, 46, 0.12);
    --glass: rgba(255, 255, 255, 0.58);
    --glass-strong: rgba(255, 255, 255, 0.74);
    --primary: #1aa35b;
    --primary-dark: #117843;
    --danger: #cb3c3c;
    --shadow: 0 18px 50px rgba(26, 89, 54, 0.12);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(95, 219, 145, 0.35), transparent 24%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.9), transparent 20%),
        linear-gradient(135deg, var(--bg), var(--bg-2));
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 32px 0 56px; }
.glass {
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow);
}

.badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(26, 163, 91, 0.14);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.hero {
    padding: 24px 0 10px;
    position: relative;
}

.hero__content {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 56px 28px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(26,163,91,.08));
}

.hero h1 {
    font-size: clamp(34px, 5vw, 64px);
    margin: 14px 0 10px;
    line-height: 1.02;
}
.hero p {
    margin: 0 0 18px;
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
}
.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 700;
    transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
    background: linear-gradient(180deg, #22c96d, var(--primary));
    color: #fff;
    box-shadow: 0 10px 24px rgba(26,163,91,.28);
}
.btn--ghost {
    background: rgba(255,255,255,.62);
    color: var(--primary-dark);
    border: 1px solid rgba(17, 120, 67, 0.14);
}
.btn--danger { background: var(--danger); color: #fff; }
.btn--small { padding: 8px 12px; border-radius: 12px; font-size: 14px; }
.btn--full { width: 100%; }

.section__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
}
.section__header h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 4vw, 42px);
}
.section__header p { max-width: 360px; color: var(--muted); }

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.card {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.75);
}
.card__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255,255,255,.5);
}
.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.card:hover .card__image { transform: scale(1.04); }
.card__body { padding: 18px; }
.card__body h3 { margin: 0 0 8px; font-size: 22px; }
.card__body p { margin: 0; color: var(--muted); line-height: 1.55; }

.empty, .panel, .footer, .auth-box {
    border-radius: 28px;
}
.empty {
    padding: 28px;
    text-align: center;
}
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 18px 20px;
}
.footer p { margin: 6px 0 0; color: var(--muted); }

.auth-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 16px;
}
.auth-box {
    width: min(460px, 100%);
    padding: 28px;
}
.auth-box h1 { margin: 12px 0 8px; }
.auth-box p { margin: 0 0 18px; color: var(--muted); }
.auth-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.form { display: grid; gap: 14px; }
.form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}
.form input,
.form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 15px;
    font: inherit;
    color: var(--text);
    background: rgba(255,255,255,.72);
    outline: none;
}
.form input:focus,
.form textarea:focus {
    border-color: rgba(26,163,91,.45);
    box-shadow: 0 0 0 4px rgba(26,163,91,.10);
}
textarea { resize: vertical; }

.alert {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 700;
}
.alert--error { background: rgba(203,60,60,.12); color: #8f1f1f; }
.alert--success { background: rgba(26,163,91,.12); color: #0d6f3a; }

.panel {
    padding: 24px;
}
.panel__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}
.panel__top h1 { margin: 10px 0 8px; }
.panel__top p { margin: 0; color: var(--muted); }
.panel__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.table th, .table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}
.table th { color: var(--muted); font-size: 14px; }
.thumb {
    width: 74px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-panel { max-width: 760px; margin: 0 auto; }
.current-image {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.4);
}
.current-image span { font-weight: 700; }
.current-image img {
    max-width: 220px;
    border-radius: 18px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 920px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section__header,
    .panel__top,
    .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .container { width: min(1120px, calc(100% - 20px)); }
    .hero__content { padding: 42px 18px; border-radius: 26px; }
    .grid { grid-template-columns: 1fr; }
    .card__body h3 { font-size: 20px; }
    .footer, .panel, .auth-box { padding: 18px; }
}
