:root {
  --bg: #0d1116;
  --panel: #131823;
  --card: #1a1f2b;
  --text: #f7f8fb;
  --muted: #a6afc2;
  --accent: #d71920;
  --accent-soft: #e9565c;
  --success: #1ab676;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  font-family: "Inter", "SF Pro Display", -apple-system, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 18% 20%, #1b2230, #0d1116 45%),
    radial-gradient(circle at 85% 10%, rgba(215, 25, 32, 0.25), transparent 48%),
    radial-gradient(circle at 60% 80%, rgba(231, 75, 82, 0.18), transparent 42%),
    linear-gradient(135deg, #0b0f15, #101622 60%, #0d1116);
  color: var(--text);
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  color: #ff626a;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(14, 17, 24, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.navbar nav a {
  margin-left: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(215, 25, 32, 0.08);
}

.navbar nav a:hover {
  background: rgba(215, 25, 32, 0.18);
}

.container {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 0 20px;
}

h1 {
  margin: 0 0 12px;
}

.hero {
  background: linear-gradient(145deg, rgba(215, 25, 32, 0.18), rgba(18, 22, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.eyebrow {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ff8c92;
  font-size: 12px;
  margin: 0 0 8px;
}

.lead {
  margin: 6px 0 0;
  color: #d6dbe7;
  max-width: 680px;
}

.hero-left {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.logo-mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(215, 25, 32, 0.4));
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

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

.contacts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.pill:hover {
  background: rgba(215, 25, 32, 0.18);
  color: #ffdede;
}

.note {
  margin: 10px 0 0;
  color: #dcdfe7;
  opacity: 0.92;
}

.section-header {
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  justify-content: center;
  align-items: start;
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.name {
  font-weight: 600;
  font-size: 18px;
}

.price {
  font-weight: 700;
  color: #ffd166;
}

.description {
  color: var(--muted);
  margin: 4px 0 0;
  min-height: 48px;
  flex: 1;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.2px;
  display: inline-block;
  align-self: flex-start;
}

.badge.success {
  background: rgba(26, 182, 118, 0.15);
  color: #55d49a;
}

.badge.muted {
  background: rgba(154, 164, 181, 0.15);
  color: var(--muted);
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(13, 17, 24, 0.75);
}

.form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #12161e;
  color: var(--text);
}

textarea {
  resize: vertical;
}

button,
.button {
  padding: 10px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

button:hover,
.button:hover {
  background: #ee2730;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox {
  align-items: center;
  grid-auto-flow: column;
  justify-content: start;
  gap: 8px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.table {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row {
  display: grid;
  grid-template-columns: 0.9fr 2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  align-items: center;
}

.table-head {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.table-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-soft);
  cursor: pointer;
}

.link-button:hover {
  color: #ff747b;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.flash-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.flash {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.flash-success {
  border-color: rgba(26, 182, 118, 0.4);
  color: #55d49a;
}

.flash-danger {
  border-color: rgba(215, 25, 32, 0.35);
  color: #ff8b92;
}

.flash-warning {
  border-color: rgba(255, 209, 102, 0.35);
  color: #ffd166;
}

.flash-info {
  border-color: rgba(154, 164, 181, 0.35);
  color: var(--muted);
}

@media (max-width: 720px) {
  .table-row {
    grid-template-columns: 1fr 1.4fr 1fr 1fr;
  }
  .table-row div:nth-child(6) {
    grid-column: 1 / -1;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

