:root {
  color-scheme: light;
  --primary: #1b3a57;
  --accent: #2f80ed;
  --background: #f7f9fc;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5f6b7a;
  --border: #e2e7ee;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.language-switcher .lang {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

.language-switcher .active {
  color: var(--accent);
}

.site-main {
  padding: 3rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  background: var(--card);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(18, 38, 63, 0.08);
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.page {
  display: grid;
  gap: 1.5rem;
}

.feature-list {
  padding-left: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-new {
  background: #eef1f5;
  color: #4a5568;
}

.status-confirmed {
  background: #e6f4ea;
  color: #1e7e34;
}

.status-offered {
  background: #e6f0ff;
  color: #1f5faa;
}

.status-done {
  background: #e7e9ee;
  color: #2f3542;
}

.status-canceled {
  background: #fdecea;
  color: #b02a37;
}

.form-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-control {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.inline-form {
  display: inline;
}

.link-button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.flash-messages {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.flash {
  background: #e7f0ff;
  color: #1f3b64;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.news-list {
  display: grid;
  gap: 1.5rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin-top: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  background: var(--card);
}

@media (max-width: 720px) {
  .header-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-direction: column;
  }
}
