/* Piscaria — общий стиль публичных страниц (Firebase Hosting).
   Цвета взяты из приложения: фон 0xFF0F172A, карточки 0xFF1E293B,
   акцент Colors.amber, предупреждения Colors.redAccent. */

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-alt: #16213a;
  --accent: #ffc107;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.54);
  --border: rgba(255, 255, 255, 0.12);
  --danger: #ff5252;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}

.brand .fish {
  font-size: 1.5rem;
}

h1 {
  color: var(--accent);
  font-size: 1.6rem;
  margin: 1.6rem 0 0.6rem;
  line-height: 1.3;
}

h2 {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.02rem;
  margin: 1.2rem 0 0.4rem;
  color: var(--text);
}

p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

a {
  color: var(--accent);
}

ul,
ol {
  color: var(--text-secondary);
  padding-left: 1.3rem;
}

li {
  margin: 0.3rem 0;
}

strong {
  color: var(--text);
}

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  margin: 1.1rem 0;
}

.card.warning {
  border-left: 3px solid var(--danger);
}

.card.warning h3 {
  color: var(--danger);
}

.pill {
  display: inline-block;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 0.9rem;
}

.lang-switch a,
.lang-switch span {
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
}

.lang-switch a {
  color: var(--text-secondary);
  background: var(--surface);
}

.lang-switch span.current {
  color: #1a1400;
  background: var(--accent);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--surface-alt);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1400;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

footer.bottom {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4rem 0;
}

@media (max-width: 480px) {
  .container {
    padding: 20px 16px 48px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .card {
    padding: 1rem;
  }
}
