:root {
  --bg: #f5f6f8;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-2: rgba(255, 255, 255, 0.84);
  --text: rgba(0, 0, 0, 0.92);
  --muted: rgba(0, 0, 0, 0.7);
  --muted-2: rgba(0, 0, 0, 0.55);
  --border: rgba(0, 0, 0, 0.12);
  --accent: rgba(0, 0, 0, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Fredoka, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background-image: radial-gradient(900px 500px at 20% -10%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(255, 255, 255, 0.08), transparent 55%),
    url('/images/background.png');
  background-color: var(--bg);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  background-size: auto, auto, cover;
  background-attachment: scroll, scroll, fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(245, 246, 248, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--panel);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.hero {
  padding: 56px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.03;
  margin: 0;
  letter-spacing: -0.6px;
}

.subtitle {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.03));
}

.card-title {
  font-weight: 800;
  margin-bottom: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  font-weight: 700;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hint {
  color: var(--muted-2);
  font-size: 13px;
}

.hint-small {
  font-size: 12px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn:active {
  transform: translateY(0px) scale(0.99);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.btn-small {
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
}

.section {
  padding: 28px 0 44px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-text {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.badge-ok {
  background: rgba(255, 255, 255, 0.12);
}

.badge-warn {
  background: rgba(255, 255, 255, 0.06);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.table td {
  font-weight: 700;
}

.right {
  text-align: right !important;
}

.muted {
  color: var(--muted);
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 500px));
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.gallery-item {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(0);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .gallery-item {
    width: 100%;
    max-width: 500px;
  }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-link {
  color: var(--muted);
}

.footer-link:hover {
  color: var(--text);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  gap: 12px;
  z-index: 999;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.85);
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.preloader-text {
  color: var(--muted);
  font-weight: 600;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}
