:root {
  --red: #c41e24;
  --red-dark: #9a171c;
  --red-light: #e8353b;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --text-soft: rgba(255, 255, 255, 0.55);
  --panel: rgba(18, 18, 18, 0.72);
  --panel-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --topbar-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #0a0a0a;
  line-height: 1.5;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

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

.page-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(196, 30, 36, 0.3) 0%, transparent 55%);
}

.public-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 20px;
  min-height: var(--topbar-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.logo img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-accent {
  color: var(--red-light);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.5);
}

.menu-backdrop[hidden],
.public-nav[hidden] {
  display: none;
}

.public-nav {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  z-index: 180;
  width: min(300px, 85vw);
  height: calc(100vh - var(--topbar-h));
  padding: 24px 20px;
  background: rgba(14, 14, 14, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
}

.public-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-nav-list li + li {
  margin-top: 4px;
}

.public-nav-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.public-nav-list a:hover,
.public-nav-list a.is-active {
  background: rgba(196, 30, 36, 0.2);
  color: #fff;
}

.public-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 32px) 20px 48px;
}

.public-content {
  padding: 32px 24px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.public-content h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.public-content .intro {
  margin: 0 0 24px;
  color: var(--text-muted);
  line-height: 1.65;
}

.public-content h2 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.public-content p,
.public-content li {
  color: var(--text-muted);
  line-height: 1.65;
}

.public-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.public-content a {
  color: var(--red-light);
}

.contact-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.contact-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 0.9rem;
}

.contact-card p {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 32px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

@media (min-width: 640px) {
  .public-page {
    padding-top: calc(var(--topbar-h) + 48px);
  }

  .public-content {
    padding: 40px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-bar {
    transition: none;
  }
}
