:root {
  --bg: #050506;
  --bg-soft: #0c0c0f;
  --panel: rgba(14, 14, 17, 0.92);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f7f2;
  --muted: #a8a8a2;
  --muted-2: #70706b;
  --white: #ffffff;
  --green: #74ff9a;
  --red: #ff4d5d;
  --blue: #72a7ff;
  --yellow: #ffd166;
  --gray: #a7adb8;
  --radius: 22px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #080809 0%, #030304 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 6, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #050506;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  letter-spacing: -0.08em;
}

.brand-title span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-link {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  transition: .18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--panel-2);
  color: var(--text);
}

.btn {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,.06);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: 850;
  transition: .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
}

.btn-primary {
  background: #fff;
  color: #070707;
  border-color: #fff;
  box-shadow: 0 20px 70px rgba(255,255,255,.13);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero {
  padding: 78px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  gap: 34px;
  align-items: center;
}

.hero h1 {
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 9vw, 116px);
  line-height: .82;
  letter-spacing: -.09em;
}

.hero-copy {
  max-width: 760px;
  color: #d5d5cf;
  line-height: 1.78;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
    rgba(10,10,12,.86);
  border-radius: 32px;
  min-height: 500px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 90deg, transparent, rgba(255,255,255,.06), transparent, transparent);
  animation: spin 18s linear infinite;
  opacity: .55;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.floor-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.floor-strip {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: rgba(0,0,0,.3);
  overflow: hidden;
  position: relative;
}

.floor-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--fill);
  background: linear-gradient(90deg, rgba(255,255,255,.14), transparent);
  pointer-events: none;
}

.floor-strip > * {
  position: relative;
  z-index: 1;
}

.floor-strip-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.floor-strip h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: -.06em;
}

.floor-strip p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.badge-gpu {
  display: inline-flex;
  background: #fff;
  color: #050506;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 950;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 66px);
  line-height: .95;
  letter-spacing: -.075em;
}

.section-head p {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.65;
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
}

.stat-card strong {
  display: block;
  font-size: 38px;
  letter-spacing: -.06em;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.area-card {
  position: relative;
  overflow: hidden;
  min-height: 370px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.085), rgba(255,255,255,.018)),
    rgba(10,10,12,.94);
}

.area-card::before {
  content: attr(data-floor);
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 120px;
  font-weight: 950;
  line-height: .8;
  color: rgba(255,255,255,.035);
  letter-spacing: -.1em;
}

.area-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  letter-spacing: -.08em;
  line-height: .9;
  margin: 8px 0 6px;
}

.area-subtitle {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 900;
}

.spec-line {
  font-weight: 950;
  line-height: 1.35;
  margin: 16px 0;
  color: #fff;
}

.price-grid {
  display: grid;
  gap: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 10px;
  align-items: baseline;
  border-top: 1px solid rgba(255,255,255,.105);
  padding-top: 8px;
}

.price-row strong {
  font-size: 20px;
}

.price-row small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.25;
}

.package-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.105);
  padding-top: 9px;
}

.package-row strong {
  display: block;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}

.package-row small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.package-row b {
  font-size: 18px;
}

.card-split {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.status-toolbar {
  position: sticky;
  top: 76px;
  z-index: 30;
  background: rgba(5,5,6,.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 12px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: .18s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #050506;
  background: #fff;
  border-color: #fff;
}

.input,
.select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}

.select option {
  color: #111;
}

.floor-title {
  margin: 30px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.floor-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  letter-spacing: -.07em;
}

.floor-title small {
  color: var(--muted);
}

.status-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: .18s ease;
}

.status-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.status-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pc-code {
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -.06em;
}

.pc-name {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: 11px;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.badge-available {
  color: var(--green);
  background: rgba(116,255,154,.1);
  border: 1px solid rgba(116,255,154,.20);
}

.badge-in_use {
  color: var(--red);
  background: rgba(255,77,93,.1);
  border: 1px solid rgba(255,77,93,.20);
}

.badge-reserved {
  color: var(--blue);
  background: rgba(114,167,255,.1);
  border: 1px solid rgba(114,167,255,.20);
}

.badge-maintenance,
.badge-cleaning {
  color: var(--yellow);
  background: rgba(255,209,102,.1);
  border: 1px solid rgba(255,209,102,.20);
}

.badge-offline {
  color: var(--gray);
  background: rgba(167,173,184,.1);
  border: 1px solid rgba(167,173,184,.20);
}

.status-available {
  border-color: rgba(116,255,154,.24);
}

.status-in_use {
  border-color: rgba(255,77,93,.26);
}

.status-reserved {
  border-color: rgba(114,167,255,.26);
}

.status-maintenance,
.status-cleaning {
  border-color: rgba(255,209,102,.26);
}

.status-offline {
  opacity: .68;
}

.spec-list {
  display: grid;
  gap: 7px;
  margin-top: auto;
  font-size: 13px;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 13px;
  border-top: 1px solid rgba(255,255,255,.075);
  padding-top: 7px;
}

.spec-list span {
  color: var(--muted);
}

.footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(430px, 100%);
}

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

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,77,93,.28);
  background: rgba(255,77,93,.12);
  color: #ffd6dc;
  margin: 14px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1020px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-note {
  color: var(--muted);
  line-height: 1.65;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .grid-3,
  .grid-4,
  .card-split {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .status-toolbar {
    top: 122px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 1220px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-panel {
    min-height: auto;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .card-split {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-toolbar {
    position: relative;
    top: auto;
  }

  .filter-btn {
    flex: 1 1 auto;
  }

  .price-row {
    grid-template-columns: 70px 1fr auto;
  }

  .brand-title span {
    display: none;
  }
}
