* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f0f0f;
  color: #f7f2ea;
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(420px, 100%);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  background: rgba(255,255,255,0.045);
  text-align: center;
}

h1 {
  margin: 0 0 28px;
  font-size: 34px;
  letter-spacing: 0.02em;
}

form {
  display: grid;
  gap: 12px;
}

input, button, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 16px;
}

input, select {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

button {
  background: #f7f2ea;
  color: #111;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: transparent;
  color: #f7f2ea;
}

button.danger {
  background: #ffb3b3;
  color: #111;
}

.message {
  min-height: 22px;
  color: #ff9c9c;
}

.property {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 24px;
  line-height: 1.55;
}

.hero {
  margin-bottom: 56px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 84px);
  margin-bottom: 16px;
}

.hero p {
  max-width: 650px;
  font-size: 20px;
  color: rgba(247,242,234,0.82);
}

.section {
  margin: 56px 0;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  color: rgba(247,242,234,0.58);
  margin: 24px 0;
}

.contact {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 32px;
}

.admin {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
}

.admin-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 380px) 1fr;
}

.panel {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.045);
  padding: 24px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: left;
  vertical-align: top;
}

th {
  color: rgba(247,242,234,0.65);
  font-weight: 600;
}

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

.actions button {
  width: auto;
  padding: 8px 10px;
  font-size: 13px;
}

.small {
  color: rgba(247,242,234,0.65);
  font-size: 13px;
}

@media (max-width: 800px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: block;
  }
}

.logs-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.log-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.log-filters select {
  width: auto;
  min-width: 160px;
  padding: 10px 12px;
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(247,242,234,0.82);
  font-size: 14px;
  white-space: nowrap;
}

.checkbox-label input {
  width: auto;
}

@media (max-width: 800px) {
  .logs-header {
    display: block;
  }

  .log-filters {
    margin-top: 12px;
  }
}
