:root {
  --ink: #1f2430;
  --muted: #657084;
  --line: #e7ebf2;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --blue: #2e7fe8;
  --blue-dark: #245cc6;
  --shadow: 0 16px 40px rgba(31, 36, 48, 0.1);
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 40px;
  background: #f8fafc;
  color: #566176;
  border-bottom: 1px solid var(--line);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
}

.button-outline,
.button-primary,
.alerts button {
  border-radius: 999px;
  font-weight: 800;
}

.button-outline {
  border: 2px solid var(--blue);
  padding: 11px 18px;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 32px 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 72px;
  color: #31206d;
  font-size: 28px;
  font-weight: 900;
}

.mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  background: linear-gradient(135deg, #8ecb13, #2e7fe8 48%, #e80d8c);
  border-radius: 8px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 15px;
}

h1 {
  max-width: 980px;
  margin: 38px 0 22px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro {
  max-width: 1080px;
  color: #5d687c;
  font-size: 21px;
  line-height: 1.55;
}

.controls {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(32px, calc((100vw - 1180px) / 2 + 32px));
  background: var(--soft);
}

.controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select,
input {
  width: min(420px, 80vw);
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  background: white;
  color: var(--ink);
  font: inherit;
  box-shadow: 0 8px 24px rgba(31, 36, 48, 0.08);
}

select {
  color: white;
  background: linear-gradient(90deg, var(--blue-dark), #44a2ee);
  border: 0;
  font-weight: 800;
}

.content {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.86fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 32px;
}

.list-panel h2 {
  margin: 0 0 24px;
  font-size: 32px;
}

.tender-list {
  display: grid;
  gap: 20px;
}

.tender-card {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 24px;
  text-align: left;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.tender-card h3 {
  margin: 0;
  font-size: 23px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  color: white;
  background: var(--blue-dark);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.tender-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #7a8496;
  font-size: 13px;
}

.detail-panel {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 30px;
  border-left: 1px solid var(--line);
}

.detail-panel h2 {
  margin: 16px 0;
  font-size: 38px;
  line-height: 1.06;
}

#detailSummary {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #06003d;
  background: #f6f8fb;
  font-weight: 900;
}

.tabs .active {
  color: white;
  background: linear-gradient(90deg, var(--blue-dark), #3a8dea);
}

.details {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
}

.details div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
}

dt {
  color: #697183;
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--muted);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: var(--blue);
}

.alerts {
  padding: 56px 32px 72px;
  text-align: center;
  background: var(--soft);
}

.alerts h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.alerts form {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.alerts button {
  min-height: 48px;
  border: 0;
  padding: 0 22px;
  color: white;
  background: var(--blue-dark);
}

@media (max-width: 900px) {
  .topbar,
  .controls,
  .alerts form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .detail-panel {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }

  .details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
