:root {
    --bg: #0f1117;
    --panel: #181c26;
    --panel-2: #202535;
    --line: #262b3a;
    --text: #ffffff;
    --muted: #b8bdd0;
    --primary: #53fc18;
    --accent: #7c3cff;
    --wishes: #ffd84d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, sans-serif;
}

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

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

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 18px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a,
.filters button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--panel-2);
    font-weight: 700;
    cursor: pointer;
}

.nav a.active,
.filters button {
    color: #08100b;
    background: var(--primary);
}

.hero { margin-bottom: 24px; }

h1 {
    margin: 0 0 8px;
    font-size: clamp(38px, 6vw, 68px);
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    margin-bottom: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.filters input,
.filters select {
    min-height: 42px;
    color: var(--text);
    background: #0f1117;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    color-scheme: dark;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

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

.media {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: #10131c;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media span {
    color: var(--wishes);
    font-size: 48px;
    font-weight: 900;
}

.body { padding: 16px; }

.meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.card h2 {
    margin: 12px 0 8px;
    font-size: 20px;
}

.card p {
    min-height: 46px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.45;
}

.price {
    color: var(--wishes);
    font-size: 20px;
    font-weight: 900;
}

.empty {
    grid-column: 1 / -1;
    padding: 32px;
    color: var(--muted);
    text-align: center;
    background: var(--panel);
    border: 1px dashed var(--line);
    border-radius: 16px;
}

@media (max-width: 680px) {
    .top { display: grid; }
}
