:root {
  --bg: #f4f7f4;
  --panel: #ffffff;
  --text: #172033;
  --muted: #607086;
  --line: #d8e2dc;
  --blue: #0f6bcf;
  --blue-dark: #0b437c;
  --green: #149a5b;
  --green-dark: #0f6f43;
  --sand: #f3ead9;
  --yellow: #aa7618;
  --red: #c24141;
  --shadow: 0 22px 55px rgba(23, 32, 51, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 154, 91, .14), transparent 32%),
    linear-gradient(180deg, #f6f9f5 0%, #edf4f0 100%);
  line-height: 1.5;
}

a { color: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(216, 226, 220, .9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 850;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: #314154;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a.active,
.site-nav a:hover {
  background: #e5f2ea;
  color: var(--green-dark);
}

.header-phone {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 20px;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(52px, 7vw, 92px) 0;
}

.section--stats {
  padding: 0 0 clamp(40px, 5vw, 68px);
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

.hero-photo {
  min-height: 680px;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: white;
  padding: clamp(70px, 9vw, 118px) 0;
}

.hero-photo__content {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.hero-photo .eyebrow {
  color: #8ff0bb;
}

h1, h2, h3 {
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0;
}

h1 { font-size: clamp(38px, 5vw, 70px); }
h2 { font-size: clamp(30px, 3vw, 44px); }
h3 { font-size: 20px; }

.lead {
  color: #475569;
  font-size: 19px;
  margin: 20px 0 0;
}

.hero-photo .lead {
  color: #e7eef8;
  max-width: 760px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: white;
  border-color: var(--green);
  background: var(--green);
}

.button--primary:hover { background: var(--green-dark); }

.button--light {
  color: white;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(8px);
}

.stats-grid,
.cards-grid,
.dashboard-grid,
.docs-grid,
.contact-grid,
.split {
  display: grid;
  gap: 18px;
}

.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.dashboard-grid { grid-template-columns: 1.15fr .85fr; }
.docs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
.contact-grid { grid-template-columns: .92fr 1.08fr; }
.split { grid-template-columns: 1fr .92fr; align-items: center; gap: clamp(24px, 5vw, 58px); }

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, .96);
  min-width: 0;
}

.card--shadow,
.photo-card {
  box-shadow: var(--shadow);
}

.metric {
  font-size: 31px;
  font-weight: 850;
  color: var(--blue-dark);
}

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

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

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8f2ff;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.badge--green { background: #def7e8; color: var(--green-dark); }
.badge--yellow { background: #fff6dc; color: var(--yellow); }
.badge--red { background: #fff1f1; color: var(--red); }

.photo-card {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-weight: 650;
}

.photo-card--compact img {
  aspect-ratio: 16 / 10;
}

.photo-card--wide {
  margin-top: 24px;
}

.photo-card--wide img {
  aspect-ratio: 21 / 9;
}

.process-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  overflow: hidden;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(23, 32, 51, .08);
}

.process-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.process-card:hover img {
  transform: scale(1.035);
}

.process-card__body {
  padding: 18px;
}

.process-card__body p {
  color: var(--muted);
  margin: 10px 0 0;
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #e5f2ea;
  color: var(--green-dark);
  font-weight: 900;
}

.progress {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e6edf5;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: white;
}

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

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

.tender-card {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 330px);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: 0 12px 32px rgba(23, 32, 51, .06);
}

.tender-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tender-side {
  background: #f7fbf8;
}

.doc-icon {
  width: 50px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f2ff, #def7e8);
  color: var(--blue-dark);
  font-weight: 900;
}

.login-panel {
  display: grid;
  gap: 12px;
}

.project-panel {
  margin-top: 24px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 130px 122px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.project-row:last-child { border-bottom: 0; }

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.contact-item p {
  margin: 6px 0 0;
}

.location-panel {
  min-height: 280px;
  margin-top: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15, 107, 207, .12) 1px, transparent 1px),
    linear-gradient(rgba(20, 154, 91, .13) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbff, #eef7ef);
  background-size: 42px 42px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: #101827;
  color: white;
}

.site-footer p {
  margin: 6px 0 0;
  color: #b7c3d6;
}

.site-footer a {
  display: block;
  color: #dbeafe;
  text-decoration: none;
  margin-bottom: 6px;
}

@media (max-width: 1060px) {
  .process-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: start;
    flex-wrap: wrap;
  }

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

  .hero-photo {
    min-height: 560px;
  }

  .dashboard-grid,
  .contact-grid,
  .split,
  .tender-card {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .cards-grid,
  .cards-grid--two,
  .docs-grid,
  .filters,
  .process-photo-grid {
    grid-template-columns: 1fr;
  }

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

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