:root {
    --bg: #f5f4ef;
    --text: #1f2933;
    --muted: #52606d;
    --panel: #ffffff;
    --line: #d9e2ec;
    --primary: #0f766e;
    --primary-strong: #115e59;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background: radial-gradient(circle at top right, #d8f3ee, transparent 40%), var(--bg);
    color: var(--text);
}

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

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.brand {
    font-size: 1.2rem;
    font-weight: 700;
}

.menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content {
    padding: 2rem 0 3rem;
}

.hero {
    background: linear-gradient(135deg, #d1fae5, #eef2ff);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-top: 0;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.button,
button.button {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button:hover,
button.button:hover {
    background: var(--primary-strong);
}

.button.secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.link-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
    padding: 0;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.stats-grid,
.card-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.stat-card,
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.stat-card {
    padding: 1rem;
}

.stat-card h2 {
    margin: 0;
}

.stat-card p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card-body {
    padding: 0.9rem;
}

.card-body h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.card-body p {
    color: var(--muted);
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

input,
select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.form-stack,
.form-grid {
    display: grid;
    gap: 0.85rem;
}

.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0;
    padding: 0.7rem;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    background: #f8fafc;
    font-size: 0.88rem;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.inline-check input[type="checkbox"],
.chip input[type="checkbox"] {
    width: auto;
}

.page-header h1 {
    margin-bottom: 0.35rem;
}

.page-header p {
    margin-top: 0;
    color: var(--muted);
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    max-height: 380px;
    object-fit: cover;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
}

.markers {
    display: grid;
    gap: 0.8rem;
    padding-left: 1.2rem;
}

.alert {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.alert ul {
    margin: 0;
    padding-left: 1rem;
}

.alert.success {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.alert.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.auth-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.pagination {
    margin-top: 0.75rem;
}

@media (max-width: 720px) {
    .menu {
        gap: 0.7rem;
        font-size: 0.95rem;
    }

    .search-form {
        flex-direction: column;
    }
}
