:root {
  --red: #f51646;
  --red-dark: #cf0f38;
  --orange: #ff6500;
  --orange-soft: #fff0e7;
  --ink: #24212a;
  --muted: #675f6d;
  --line: #e8e2e6;
  --soft: #faf7f8;
  --surface: #ffffff;
  --surface-strong: #fffafb;
  --green: #167a4a;
  --green-soft: #eaf6f0;
  --yellow: #946000;
  --yellow-soft: #fff6e6;
  --shadow: 0 16px 44px rgba(36, 33, 42, 0.08);
  --shadow-soft: 0 8px 26px rgba(36, 33, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0, #fff8f9 420px, #ffffff 920px),
    var(--surface);
  font-size: 16px;
}

a {
  color: var(--red);
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 226, 230, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.topbar__inner,
.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  line-height: 1.15;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--surface);
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 26px;
  font-weight: 800;
}

.brand__logo {
  max-height: 52px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: var(--red);
  background: rgba(245, 22, 70, 0.08);
}

.hero {
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(245, 22, 70, 0.08), rgba(255, 101, 0, 0.08) 48%, rgba(22, 122, 74, 0.04));
}

.privacy-hero {
  padding: 42px 0 30px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(245, 22, 70, 0.08), rgba(255, 101, 0, 0.08));
}

.privacy-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.privacy-summary {
  border: 1px solid rgba(245, 22, 70, 0.14);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.privacy-content {
  display: grid;
  gap: 14px;
}

.privacy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.privacy-card h2 {
  color: var(--ink);
}

.privacy-card p:last-child {
  margin-bottom: 0;
}

.privacy-card--accent {
  border-color: rgba(255, 101, 0, 0.28);
  background: var(--orange-soft);
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero__grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--red-dark);
  background: rgba(245, 22, 70, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 14px 0 12px;
  max-width: 780px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.18;
}

h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

p {
  line-height: 1.62;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.notice-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(255, 101, 0, 0.12);
}

.section {
  padding: 30px 0;
}

.page-heading {
  display: grid;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.page-heading h1 {
  margin-bottom: 10px;
}

.metric-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric {
  min-width: 132px;
  border: 1px solid rgba(245, 22, 70, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.metric__value {
  display: block;
  color: var(--red);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.metric__label {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-section {
  margin-bottom: 18px;
}

.filter-panel {
  padding: 0;
  overflow: hidden;
}

.filter-panel .section-title {
  margin: 0;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(245, 22, 70, 0.05), rgba(255, 101, 0, 0.04));
}

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

.section-title h2 {
  margin-bottom: 4px;
}

.grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

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

.form-row {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9d1d7;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

input:hover,
select:hover,
textarea:hover {
  border-color: #cfc5cc;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(245, 22, 70, 0.16);
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(245, 22, 70, 0.08);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--red);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  color: var(--surface);
  background: var(--red);
  box-shadow: 0 10px 20px rgba(245, 22, 70, 0.16);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  background: var(--red-dark);
  box-shadow: 0 12px 24px rgba(245, 22, 70, 0.22);
  transform: translateY(-1px);
}

.btn--secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn--secondary:hover {
  color: var(--red);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

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

.filters {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
}

.filter-grid {
  display: grid;
  gap: 14px;
  align-items: end;
}

.protocol-input {
  min-width: 210px;
}

.check--filter {
  min-height: 44px;
  align-items: center;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin: 2px -20px -20px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(250, 247, 248, 0.62);
}

.filter-actions .btn,
.filter-actions .btn--secondary {
  min-width: 104px;
}

.list-summary,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.pagination {
  justify-content: center;
  margin: 18px 0 0;
}

.page-link {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  font-weight: 800;
}

.page-link.is-active {
  color: var(--surface);
  background: var(--red);
  border-color: var(--red);
}

.alert {
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.alert--success {
  border-color: rgba(22, 122, 74, 0.28);
  color: var(--green);
  background: var(--green-soft);
}

.alert--warning {
  border-color: rgba(148, 96, 0, 0.24);
  color: var(--yellow);
  background: var(--yellow-soft);
}

.status-alert {
  font-weight: 700;
}

.status-alert.badge--received {
  border-color: rgba(138, 74, 0, 0.22);
  color: #8a4a00;
  background: #fff2df;
}

.status-alert.badge--analysis {
  border-color: rgba(156, 18, 53, 0.22);
  color: #9c1235;
  background: #ffe8ee;
}

.status-alert.badge--investigation {
  border-color: rgba(143, 54, 0, 0.22);
  color: #8f3600;
  background: #fff0e7;
}

.status-alert.badge--done {
  border-color: rgba(22, 122, 74, 0.28);
  color: var(--green);
  background: var(--green-soft);
}

.status-alert.badge--archived {
  border-color: rgba(91, 86, 97, 0.22);
  color: #5b5661;
  background: #efebef;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

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

.table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.table tbody tr:hover {
  background: #fffafb;
}

.table tbody tr:nth-child(even) {
  background: #fffafb;
}

.table tbody tr:nth-child(even):hover {
  background: #fff3f6;
}

.icon-action {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(245, 22, 70, 0.18);
  border-radius: 8px;
  color: var(--red);
  background: rgba(245, 22, 70, 0.06);
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.icon-action:hover {
  background: rgba(245, 22, 70, 0.12);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.icon-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.table td:last-child {
  text-align: center;
}

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

.badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge--received {
  color: #8a4a00;
  background: #fff2df;
}

.badge--analysis {
  color: #9c1235;
  background: #ffe8ee;
}

.badge--investigation {
  color: #8f3600;
  background: #fff0e7;
}

.badge--done {
  color: var(--green);
  background: var(--green-soft);
}

.badge--archived {
  color: #5b5661;
  background: #efebef;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
}

.footer--center {
  text-align: center;
}

.footer__company {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.footer__company:hover {
  color: var(--brand);
}

@media (max-width: 640px) {
  .topbar__inner,
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .topbar__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    justify-content: space-between;
  }

  .brand__logo {
    max-height: 46px;
  }

  .nav {
    justify-content: flex-start;
    margin: 0 -4px;
    padding-bottom: 2px;
  }

  .nav a {
    padding: 8px 10px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .lead {
    font-size: 16px;
  }

  .panel {
    padding: 18px;
  }

  .actions .btn,
  .actions .btn--secondary {
    width: 100%;
  }

  .filter-actions {
    justify-content: stretch;
  }

  .filter-actions .btn,
  .filter-actions .btn--secondary {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .hero {
    padding: 52px 0 42px;
  }

  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 34px;
  }

  .section {
    padding: 42px 0;
  }

  .grid {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 30px;
  }

  .privacy-layout {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 24px;
  }

  .privacy-summary {
    position: sticky;
    top: 96px;
  }

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

  .page-heading {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 980px) {
  .filter-grid {
    grid-template-columns: 1.2fr 1fr 1.2fr 0.8fr 0.8fr 1fr 1fr;
  }
}
