* {
  box-sizing: border-box;
}

:root {
  --upm-red: #c8102e;
  --upm-red-dark: #8f0b20;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fb;
  --card: #ffffff;
  --soft-red: #fff1f3;
  --warning: #fff7ed;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--upm-red);
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand h1 {
  margin: 0;
  font-size: 1.4rem;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  color: var(--upm-red);
}

main {
  padding: 0 7vw 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  padding: 72px 0 44px;
}

.hero-content {
  padding: 46px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(200, 16, 46, 0.16), transparent 35%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.badge,
.eyebrow {
  display: inline-block;
  color: var(--upm-red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.hero h2 {
  max-width: 850px;
  margin: 14px 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--upm-red);
  color: white;
}

.primary:hover {
  background: var(--upm-red-dark);
}

.secondary {
  background: #111827;
  color: white;
}

.full {
  width: 100%;
}

.summary-card,
.panel,
.table-wrapper,
.contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
}

.summary-card {
  padding: 28px;
}

.summary-card h3 {
  margin-top: 0;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

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

.metric strong {
  font-size: 2rem;
}

.metric.warning strong {
  color: var(--upm-red);
}

.section {
  margin-top: 32px;
}

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

.section-title h2,
.panel h2,
.contact h2 {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  background: white;
}

.filters input {
  min-width: min(380px, 100%);
}

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

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

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fbfbfd;
}

.status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  font-size: 0.82rem;
}

.status.conflict {
  background: var(--soft-red);
  color: var(--upm-red);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.panel {
  padding: 28px;
}

.panel.accent {
  background: linear-gradient(135deg, #111827, #3f111c);
  color: white;
}

.panel.accent .eyebrow,
.panel.accent .muted {
  color: #fecdd3;
}

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

form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 700;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-list {
  display: grid;
  gap: 16px;
  padding-left: 20px;
  line-height: 1.7;
}

.contact {
  padding: 28px;
}

.contact p {
  color: var(--muted);
  line-height: 1.7;
}

footer {
  padding: 28px 7vw;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .topbar,
  .section-title,
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero-content {
    padding: 30px;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }
}
