:root {
  --ink: #182635;
  --muted: #5f6d7a;
  --surface: #f4f7fa;
  --surface-2: #ffffff;
  --line: #d8e0e7;
  --brand: #243a4f;
  --brand-dark: #192d40;
  --accent: #d5262b;
  --accent-dark: #aa1c23;
  --sky: #dfe9f2;
  --shadow: 0 20px 60px rgba(36, 58, 79, 0.13);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(36, 58, 79, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 760;
}

.brand-logo {
  width: clamp(132px, 16vw, 190px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--brand);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  background: rgba(213, 38, 43, 0.08);
  outline: none;
}

.site-nav a.is-active {
  color: var(--accent);
  background: rgba(213, 38, 43, 0.08);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--accent);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--accent-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  max-width: 1320px;
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 92px) clamp(20px, 4vw, 54px) 36px;
}

.hero-copy {
  max-width: 630px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin: 26px 0 0;
  color: #415366;
  font-size: clamp(1.12rem, 1.6vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.86;
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(36, 58, 79, 0.24);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--brand);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 54px) clamp(54px, 7vw, 92px);
}

.intro-band div {
  min-height: 136px;
  padding: 24px;
  background: var(--brand);
  color: #fff;
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.intro-band span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 54px);
}

.section-heading {
  max-width: 760px;
}

.section-heading.wide {
  max-width: 900px;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 5vw, 72px);
  margin-top: 34px;
  font-size: 1.12rem;
}

.about-grid p {
  margin: 0;
}

.services-section {
  max-width: none;
  background: #fff;
}

.services-section > * {
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-card,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.service-card {
  min-height: 100%;
  padding: 24px;
}

.service-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 850;
}

.service-card h3,
.profile-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 18px;
  color: #40504d;
}

.services-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(58px, 9vw, 118px) clamp(20px, 4vw, 54px) clamp(44px, 7vw, 78px);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(58px, 9vw, 122px) clamp(20px, 4vw, 54px) clamp(46px, 7vw, 86px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(36, 58, 79, 0.98), rgba(36, 58, 79, 0.82)),
    var(--brand);
}

.about-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.94;
}

.about-hero .eyebrow {
  color: #ffb4b6;
}

.about-hero-lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 1.7vw, 1.34rem);
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
}

.about-story-card,
.about-region-card,
.why-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-story-card {
  padding: clamp(24px, 4vw, 42px);
}

.about-story-card h2 {
  max-width: 760px;
  margin: 0;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.about-story-card p:not(.eyebrow) {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-region-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  color: #fff;
  background: var(--brand);
}

.about-region-card span {
  color: #ffb4b6;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.about-region-card strong {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.08rem;
}

.why-section {
  max-width: none;
  background: #fff;
}

.why-section > * {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.why-grid article {
  min-height: 168px;
  padding: 24px;
}

.why-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.why-grid h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1.2rem;
  line-height: 1.25;
}

.services-hero h1 {
  max-width: 12ch;
  color: var(--brand);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.96;
}

.services-hero-lede {
  max-width: 760px;
  margin: 28px 0 0;
  color: #415366;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.services-overview {
  display: grid;
  gap: 10px;
}

.services-overview a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(36, 58, 79, 0.08);
}

.services-overview strong {
  display: grid;
  place-items: center;
  width: 54px;
  height: 44px;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  font-size: 0.9rem;
}

.services-overview span {
  font-weight: 850;
  line-height: 1.18;
}

.service-detail-section {
  display: grid;
  gap: 32px;
}

.service-detail-heading {
  max-width: 860px;
}

.service-detail-heading h2 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1;
}

.service-detail-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

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

.service-detail-card,
.sector-grid article,
.approach-grid article,
.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-detail-card {
  padding: clamp(22px, 3vw, 32px);
}

.service-detail-card h3,
.sector-grid h3,
.approach-grid h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1.28rem;
  line-height: 1.2;
}

.professional-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.professional-list li {
  position: relative;
  padding-left: 22px;
  color: #405165;
  line-height: 1.35;
}

.professional-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.alt-section {
  max-width: none;
  background: #fff;
}

.alt-section > * {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.alt-section .service-detail-card {
  background: var(--surface);
}

.sector-grid,
.approach-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.sector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sector-grid article,
.approach-grid article {
  padding: 24px;
}

.sector-grid p,
.approach-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.approach-section {
  max-width: none;
  color: #fff;
  background: var(--brand);
}

.approach-section > * {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.approach-section .section-heading h2,
.approach-section .section-heading p:not(.eyebrow) {
  color: #fff;
}

.approach-section .eyebrow {
  color: #ffb4b6;
}

.approach-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.approach-grid article {
  color: var(--ink);
}

.approach-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 850;
}

.leadership-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.leadership-band h2 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.contact-panel {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
}

.contact-panel div {
  display: grid;
  gap: 3px;
}

.contact-panel strong {
  color: var(--brand);
  font-size: 0.92rem;
}

.contact-panel span,
.contact-panel a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.profile-card {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #edf3f8 100%);
}

.avatar-pair {
  display: flex;
  min-height: 70px;
  margin-bottom: 18px;
}

.avatar-pair img {
  width: 64px;
  height: 64px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(36, 58, 79, 0.14);
}

.avatar-pair img + img {
  margin-left: -16px;
}

.profile-card span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.logo-tile {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.logo-tile strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-size: 0.84rem;
  letter-spacing: 0;
}

.logo-tile:nth-child(3n + 2) strong {
  background: var(--accent);
}

.logo-tile:nth-child(3n) strong {
  background: var(--brand-dark);
}

.logo-tile em {
  color: var(--brand);
  font-style: normal;
  font-weight: 800;
  line-height: 1.16;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 110px) clamp(20px, 4vw, 54px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(36, 58, 79, 0.97), rgba(36, 58, 79, 0.9)),
    var(--brand);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-copy .eyebrow {
  color: #ffb4b6;
}

.email-link {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd4d2;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(213, 38, 43, 0.16);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -100vw;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--brand-dark);
}

.site-footer a {
  color: #fff;
  font-weight: 700;
}

.response-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--surface);
}

.response-card {
  width: min(100%, 680px);
  padding: clamp(28px, 6vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.response-card h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.response-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.admin-body {
  background: #eef3f7;
}

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

.login-card {
  width: min(100%, 460px);
  padding: clamp(24px, 5vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-brand {
  margin-bottom: 28px;
}

.login-card h1,
.admin-heading h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.admin-form label,
.tender-search label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-form input,
.tender-search input {
  width: 100%;
  border: 1px solid #cbd4d2;
  border-radius: 6px;
  padding: 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.admin-form input:focus,
.tender-search input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(213, 38, 43, 0.16);
}

.form-alert {
  padding: 12px 14px;
  color: #7a2618;
  background: #fdebe6;
  border: 1px solid #f4c8bd;
  border-radius: 6px;
  font-weight: 700;
}

.api-alert {
  margin-top: 24px;
  padding: 16px 18px;
  color: #7a2618;
  background: #fff3f3;
  border: 1px solid #f1bbbb;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
}

.api-alert strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
}

.api-alert p {
  margin: 0;
  color: #7a2618;
}

.success-alert {
  margin-top: 24px;
  padding: 14px 16px;
  color: #1f5b3b;
  background: #eef9f2;
  border: 1px solid #bde4ca;
  border-radius: 8px;
  font-weight: 800;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  display: flex;
  position: sticky;
  top: 0;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px;
  color: #fff;
  background: var(--brand);
}

.admin-sidebar .brand-logo-light {
  padding: 6px;
  background: #fff;
  border-radius: 8px;
}

.admin-menu {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-menu a,
.admin-logout {
  padding: 12px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 800;
}

.admin-menu a.is-active,
.admin-menu a:hover,
.admin-menu a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.admin-logout {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.admin-content {
  padding: clamp(28px, 5vw, 64px);
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-heading {
  max-width: 860px;
}

.admin-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stats-grid article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.compact-stats {
  margin-bottom: 22px;
}

.preference-note {
  display: grid;
  gap: 6px;
  margin: -12px 0 24px;
  padding: 14px 16px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
}

.preference-note strong {
  color: var(--accent);
}

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

.optimized-query {
  display: grid;
  gap: 6px;
  margin: -10px 0 24px;
  padding: 14px 16px;
  color: var(--brand);
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.optimized-query strong {
  color: var(--brand);
}

.optimized-query span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.user-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}

.user-form,
.admin-table-card {
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-form-page {
  max-width: 980px;
  margin-top: 28px;
}

.user-list-card {
  margin-top: 28px;
}

.list-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.list-card-header span,
.form-section-title span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

.form-section-title h2,
.admin-table-card h2 {
  margin: 0;
  color: var(--brand);
  font-size: 1.35rem;
  line-height: 1.2;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.form-section-title a {
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

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

.account-type-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-type-panel span {
  width: 100%;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 850;
}

.account-type-panel label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.account-type-panel input {
  width: auto;
}

.user-form label,
.builder-panel h3 {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 850;
}

.user-form label {
  display: grid;
  gap: 7px;
}

.user-form input,
.user-form select,
.user-form textarea {
  width: 100%;
  border: 1px solid #cbd4d2;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.user-form input:focus,
.user-form select:focus,
.user-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(213, 38, 43, 0.16);
}

.user-form textarea {
  min-height: 126px;
  resize: vertical;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  flex-direction: row;
  gap: 10px !important;
  padding-top: 28px;
}

.checkbox-label input {
  width: auto;
}

.builder-panel {
  margin-top: 22px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.builder-panel h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.location-builder,
.field-builder {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(150px, 1fr) auto;
  gap: 10px;
}

.field-builder {
  grid-template-columns: minmax(0, 1fr) auto;
}

.field-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.chip-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chip-group strong {
  color: var(--brand);
}

.chip-group > button,
.chip button,
.table-actions button {
  border: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.chip button {
  padding: 0 2px;
  line-height: 1;
}

.admin-table-card {
  margin-top: 28px;
}

.user-layout .admin-table-card {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.mobile-user-list {
  display: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

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

.admin-table th {
  color: var(--brand);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.admin-table td {
  color: #405165;
}

.admin-table small {
  display: block;
  color: var(--muted);
}

.table-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.table-actions a {
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}

.table-actions form {
  margin: 0;
}

.danger-button {
  color: #fff;
  background: #9f1d22;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: #7f1519;
}

.search-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.search-history article,
.history-row {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-row {
  text-decoration: none;
}

.history-row:hover,
.history-row:focus-visible {
  background: #fff;
  border-color: var(--accent);
  outline: none;
}

.search-history strong,
.history-row strong {
  color: var(--brand);
}

.search-history span,
.history-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-readonly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.profile-readonly-grid article {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-readonly-grid span {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-readonly-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 1.8rem;
}

.profile-readonly-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-readonly-grid .profile-requirements {
  grid-column: 1 / -1;
}

.admin-top-logout {
  flex: 0 0 auto;
  color: var(--brand);
  background: #fff;
  border-color: var(--line);
}

.admin-top-logout:hover,
.admin-top-logout:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.tender-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 28px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tender-search .button {
  min-width: 130px;
}

.button-loader {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
}

.search-button.is-loading .button-loader {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.tender-item,
.empty-results {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tender-item span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.tender-item h2,
.empty-results h2 {
  margin: 8px 0;
  font-size: 1.24rem;
  line-height: 1.24;
}

.tender-item h2 a {
  color: var(--brand);
}

.tender-deadline {
  display: inline-flex;
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.9rem;
}

.tender-item p,
.empty-results p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.empty-results .button {
  margin-top: 18px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .contact-section,
  .services-hero,
  .about-hero,
  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .intro-band,
  .about-grid,
  .service-grid,
  .profile-grid,
  .service-detail-grid,
  .sector-grid,
  .approach-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .professional-list {
    grid-template-columns: 1fr;
  }

  .leadership-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-cloud {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .user-layout,
  .form-grid,
  .profile-readonly-grid,
  .location-builder,
  .field-builder {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-topbar {
    flex-direction: column;
  }

  .admin-content {
    padding: 24px 16px 36px;
  }

  .admin-heading h1 {
    font-size: clamp(2.2rem, 14vw, 4rem);
  }

  .list-card-header,
  .form-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .list-card-header .button,
  .form-actions .button {
    width: 100%;
  }

  .user-form,
  .admin-table-card {
    padding: 18px;
  }

  .checkbox-label {
    padding-top: 0;
  }

  .user-list-card .table-wrap {
    display: none;
  }

  .mobile-user-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
  }

  .mobile-user-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .mobile-user-card h3 {
    margin: 0;
    color: var(--brand);
    font-size: 1.16rem;
    line-height: 1.2;
  }

  .mobile-user-card span,
  .mobile-user-card small {
    display: block;
    color: var(--muted);
    overflow-wrap: anywhere;
  }

  .mobile-user-card dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
  }

  .mobile-user-card dl div {
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .mobile-user-card dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
  }

  .mobile-user-card dd {
    margin: 4px 0 0;
    color: var(--brand);
    font-weight: 850;
  }

  .mobile-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobile-card-actions form {
    margin: 0;
  }

  .mobile-card-actions .button {
    width: 100%;
  }

  .chip-group {
    align-items: flex-start;
    flex-direction: column;
  }

  .chip-group .chip,
  .chip-group > button {
    justify-content: space-between;
    width: 100%;
  }

  .admin-logout {
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  .brand-logo {
    width: 116px;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 5.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .logo-cloud {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .tender-search {
    grid-template-columns: 1fr;
  }

  .tender-search .button {
    width: 100%;
  }

  .mobile-user-card dl,
  .mobile-card-actions {
    grid-template-columns: 1fr;
  }
}
