:root {
  --bg: #071014;
  --panel: rgba(255, 255, 255, 0.12);
  --panel-strong: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.24);
  --text: #f7fbff;
  --muted: rgba(247, 251, 255, 0.72);
  --accent: #48c7b8;
  --accent-2: #f4b860;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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:
    linear-gradient(120deg, rgba(72, 199, 184, 0.16), transparent 34%),
    linear-gradient(240deg, rgba(244, 184, 96, 0.14), transparent 36%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12), transparent 26%),
    #071014;
}

a {
  color: inherit;
}

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

.topbar,
.glass-panel,
.table-wrap {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(145%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
}

.brand {
  font-weight: 750;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.hero {
  padding: 72px 0 36px;
}

.hero h1,
.page-title {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-align: center;
}

.button.primary,
button.primary {
  background: linear-gradient(135deg, rgba(72, 199, 184, 0.95), rgba(57, 122, 219, 0.84));
}

.button.warning {
  background: rgba(244, 184, 96, 0.22);
}

.button.danger,
button.danger {
  background: rgba(255, 107, 107, 0.22);
}

.glass-panel {
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  color: rgba(247, 251, 255, 0.84);
  font-size: 14px;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 11px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  outline: none;
  font-size: 16px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: rgba(247, 251, 255, 0.76);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 12px;
}

.contact-link {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: rgba(72, 199, 184, 0.8);
  text-underline-offset: 3px;
}

.footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 768px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0 28px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .nav {
    width: 100%;
    gap: 8px;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    padding: 38px 0 18px;
  }

  .hero h1,
  .page-title {
    max-width: 100%;
    font-size: clamp(30px, 11vw, 44px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .glass-panel {
    margin: 14px 0;
    padding: 16px;
    border-radius: 14px;
  }

  .actions {
    gap: 10px;
    margin-top: 22px;
  }

  .form-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .button,
  button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 14px;
  }

  input,
  textarea,
  select {
    min-height: 48px;
    border-radius: 10px;
  }

  textarea {
    min-height: 140px;
  }

  .checkbox-row {
    gap: 12px;
  }

  .checkbox-row input {
    flex: 0 0 22px;
    width: 22px;
    min-height: 22px;
  }

  .checkbox-row label {
    line-height: 1.5;
  }

  .table-wrap {
    margin: 14px -10px 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 11px 12px;
  }

  .badge {
    margin: 2px 0;
    white-space: normal;
  }

  .lead-list {
    margin: 14px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .lead-list table,
  .lead-list tbody,
  .lead-list tr,
  .lead-list td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .lead-list thead {
    display: none;
  }

  .lead-list tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  }

  .lead-list td {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .lead-list td:last-child {
    border-bottom: 0;
  }

  .lead-list td::before {
    content: attr(data-label);
    flex: 0 0 82px;
    color: rgba(247, 251, 255, 0.68);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .lead-list td[data-label="Summary"] {
    display: block;
  }

  .lead-list td[data-label="Summary"]::before {
    display: block;
    margin-bottom: 6px;
  }

  .footer {
    margin-top: 28px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(100% - 16px, 1120px);
  }

  .nav {
    flex-direction: column;
  }

  .nav a {
    width: 100%;
  }

  .hero h1,
  .page-title {
    font-size: clamp(28px, 12vw, 38px);
  }

  .glass-panel {
    padding: 14px;
  }
}
