:root {
  --green: #189642;
  --green-dark: #0c7731;
  --blue: #0f4b86;
  --blue-dark: #07305d;
  --ink: #0a1830;
  --muted: #68778b;
  --paper: #f4f8f5;
  --line: #e3ebea;
  --white: #fff;
  --shadow: 0 18px 45px rgba(7, 48, 93, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(100% - 64px, 1200px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 82px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(15,75,134,.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  width: 228px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 58px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand b {
  color: var(--green);
  font-size: 25px;
  line-height: .95;
  text-transform: uppercase;
  font-weight: 900;
}

.brand small {
  color: var(--blue);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #17345d;
  font-size: 13px;
  font-weight: 900;
}

.nav a {
  position: relative;
  padding: 10px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.nav a:hover::after { transform: scaleX(1); }

.header-call {
  display: grid;
  gap: 4px;
  text-align: right;
}

.header-call a {
  font-weight: 900;
  color: var(--blue-dark);
}

.header-call span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.burger,
.mobile-menu,
.mobile-bottom-bar,
.phone-widget {
  display: none;
}

.btn {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), #24b757);
  box-shadow: 0 14px 26px rgba(24,150,66,.28);
}

.btn-outline {
  color: var(--blue-dark);
  border: 1px solid rgba(15,75,134,.24);
  background: #fff;
}

.btn-light {
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid rgba(255,255,255,.55);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(30,151,66,.35), transparent 35%),
    linear-gradient(135deg, #05294f 0%, #083a70 42%, #0c7731 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,41,79,.98) 0%, rgba(5,41,79,.92) 42%, rgba(5,41,79,.55) 68%, rgba(5,41,79,.15) 100%);
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 34%;
  background-image: url("assets/generated/hero-team.jpg");
  background-size: cover;
  background-position: center;
  opacity: .78;
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 680px) 360px;
  align-items: center;
  gap: 80px;
  padding: 52px 0;
}

.eyebrow,
.section-head small,
.lead small,
.brigades-copy small {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.eyebrow::before,
.section-head small::before,
.lead small::before,
.brigades-copy small::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

.hero .eyebrow { color: #82e0a1; }

.hero h1 {
  margin: 18px 0 22px;
  max-width: 690px;
  font-size: clamp(44px, 5.1vw, 76px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  max-width: 560px;
  color: #dce9f5;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
}

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

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

.hero-panel b {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.hero-panel > span {
  display: block;
  margin: 8px 0 20px;
  color: #dce9f5;
  font-weight: 700;
}

.mini-form {
  display: grid;
  gap: 12px;
}

input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(15,75,134,.18);
  border-radius: 6px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(24,150,66,.13);
}

.mini-form button,
.job-card a,
.lead button {
  height: 50px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.metrics {
  background: #fff;
  padding: 28px 0 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.metrics-grid div {
  min-height: 132px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.metrics-grid div:last-child { border-right: 0; }

.metrics-grid strong {
  display: block;
  color: var(--green);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.metrics-grid span {
  display: block;
  margin-top: 10px;
  color: #24405f;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.section {
  padding: 86px 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-head h2,
.brigades-copy h2,
.lead h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.jobs { background: linear-gradient(180deg, #fff 0%, #f8fbf8 100%); }

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.job-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7,48,93,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.job-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  object-position: center 28%;
}

.job-body {
  padding: 22px;
}

.tag {
  display: inline-grid;
  place-items: center;
  height: 28px;
  padding: 0 11px;
  color: var(--green-dark);
  background: #eaf8ef;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.job-card h3 {
  min-height: 54px;
  margin: 15px 0 10px;
  font-size: 22px;
  line-height: 1.12;
}

.job-card strong {
  display: block;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.job-card p {
  min-height: 58px;
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 700;
}

.job-card a {
  display: grid;
  place-items: center;
}

.job-card.featured {
  border-color: rgba(24,150,66,.38);
}

.brigades {
  padding: 86px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5,41,79,.96), rgba(8,58,112,.94)),
    url("assets/generated/vacancy-team.jpg") center/cover;
}

.brigades-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.brigades-copy small { color: #82e0a1; }
.brigades-copy h2 { color: #fff; }
.brigades-copy p {
  margin: 22px 0 0;
  color: #d9e8f5;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
}

.brigade-list {
  display: grid;
  gap: 16px;
}

.brigade-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 20px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.brigade-list b {
  grid-row: 1 / 3;
  color: #82e0a1;
  font-size: 38px;
  line-height: 1;
}

.brigade-list span {
  font-size: 21px;
  font-weight: 900;
}

.brigade-list p {
  margin: 0;
  color: #d9e8f5;
  line-height: 1.45;
  font-weight: 700;
}

.living { background: #fff; }

.living-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.living-grid figure {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.living-grid img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.living-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5,41,79,.92) 100%);
}

.living-grid figcaption {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #fff;
}

.living-grid b {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.living-grid span {
  display: block;
  margin-top: 8px;
  color: #dbe8f5;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.steps-section {
  padding: 86px 0;
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}

.steps article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 45px;
  right: -16px;
  z-index: 1;
  width: 30px;
  height: 2px;
  background: var(--green);
}

.steps b {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 19px;
}

.steps h3 {
  margin: 52px 0 10px;
  font-size: 22px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.reviews {
  background: linear-gradient(180deg, #fff, #f8fbf8);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-grid article {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7,48,93,.08);
}

.review-grid img {
  width: 118px;
  height: 132px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 6px;
}

.review-grid b {
  display: block;
  font-size: 20px;
}

.review-grid span {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.review-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.faq {
  padding: 86px 0;
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 44px;
  align-items: start;
}

.faq-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list button {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-list button:last-child { border-bottom: 0; }
.faq-list span {
  color: var(--green);
  font-size: 24px;
}

.contact-card {
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  box-shadow: var(--shadow);
}

.contact-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center top;
}

.contact-card div {
  padding: 28px;
}

.contact-card h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.05;
}

.contact-card p {
  margin: 0 0 18px;
  color: #dce9f5;
  line-height: 1.45;
  font-weight: 700;
}

.contact-card a {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  font-weight: 900;
}

.lead {
  padding: 42px 0;
  background: var(--green);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 42px;
  align-items: center;
  color: #fff;
}

.lead small { color: #c6ffd8; }
.lead h2 {
  color: #fff;
  font-size: clamp(28px, 2.8vw, 42px);
}

.lead form {
  display: grid;
  grid-template-columns: 1fr 1fr 150px;
  gap: 12px;
}

.lead button {
  background: var(--blue-dark);
}

.footer {
  padding: 44px 0;
  color: #fff;
  background: #05294f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr auto;
  gap: 38px;
  align-items: center;
}

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

.footer-brand img {
  width: 76px;
  height: 86px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand span {
  display: grid;
  gap: 3px;
}

.footer-brand b {
  color: #fff;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.footer-brand small {
  color: #8fe8a9;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 900;
}

.footer nav,
.footer-grid div {
  display: grid;
  gap: 9px;
}

.footer a,
.footer span {
  color: #d8e8f5;
  font-size: 14px;
  font-weight: 700;
}

.footer b {
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 13px;
}

.socials {
  display: flex !important;
  gap: 12px !important;
}

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.socials a:nth-child(2) { background: #1c9bd6; }
.socials a:nth-child(3) { background: #ef8e24; }

.burger {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  position: relative;
  place-items: center;
  border: 1px solid rgba(15,75,134,.18);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.burger span {
  width: 21px;
  height: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  border-radius: 999px;
  background: var(--blue-dark);
  transform: translate(-50%, -50%);
  transition: transform .18s ease, opacity .18s ease;
}

.burger span:nth-child(1) { transform: translate(-50%, -9px); }
.burger span:nth-child(3) { transform: translate(-50%, 7px); }

body.menu-open .burger span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1080px) {
  .wrap { width: min(100% - 36px, 920px); }
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .burger { display: grid; }
  .mobile-menu {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 88px;
    z-index: 30;
    display: block;
    max-height: calc(100vh - 108px);
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(15,75,134,.12);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7,48,93,.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .18s ease, transform .18s ease;
  }
  body.menu-open .mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-menu nav {
    display: grid;
    gap: 8px;
  }
  .mobile-menu nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 7px;
    color: var(--blue-dark);
    background: #f4f8f5;
    font-size: 16px;
    font-weight: 900;
  }
  .mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  .mobile-call,
  .mobile-claim {
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 900;
  }
  .mobile-call {
    color: #fff;
    background: var(--blue-dark);
  }
  .mobile-call.secondary {
    background: var(--blue);
  }
  .mobile-claim {
    grid-column: 1 / -1;
    color: #fff;
    background: var(--green);
    text-transform: uppercase;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-panel { max-width: 420px; }
  .metrics-grid, .living-grid { grid-template-columns: repeat(2, 1fr); }
  .job-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .brigades-grid, .faq-grid, .lead-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps article::after { display: none; }
  .lead form { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 74px;
  }
  .site-header {
    height: auto;
  }
  .header-inner {
    min-height: 72px;
    padding: 8px 0;
    gap: 10px;
  }
  .brand { width: auto; }
  .brand img { width: 50px; height: 54px; }
  .brand b { font-size: 20px; }
  .brand small { font-size: 10px; }
  .header-call, .btn-outline { display: none; }
  .burger { margin-left: auto; }
  .burger {
    width: 44px;
    height: 44px;
  }
  .mobile-menu {
    top: 78px;
    left: 12px;
    right: 12px;
    padding: 14px;
  }
  .mobile-menu-actions {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-media { inset: 0; opacity: .38; }
  .hero-grid { min-height: auto; padding: 44px 0; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-panel { padding: 20px; }
  .metrics { padding: 18px 0 0; }
  .metrics-grid, .job-grid, .living-grid, .steps, .review-grid, .footer-grid { grid-template-columns: 1fr; }
  .metrics-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics-grid div:last-child { border-bottom: 0; }
  .section, .brigades, .steps-section, .faq { padding: 58px 0; }
  .section-head, .section-head.left { text-align: left; }
  .job-card h3 { min-height: auto; }
  .living-grid figure, .living-grid img { min-height: 270px; height: 270px; }
  .steps article { min-height: auto; }
  .steps h3 { margin-top: 28px; }
  .review-grid article { grid-template-columns: 96px 1fr; }
  .review-grid img { width: 96px; height: 116px; }
  .lead form { grid-template-columns: 1fr; }
  .mobile-bottom-bar {
    position: fixed;
    left: 12px;
    right: 82px;
    bottom: 12px;
    z-index: 35;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px;
    background: rgba(5, 41, 79, .92);
    box-shadow: 0 18px 45px rgba(7,48,93,.28);
    backdrop-filter: blur(12px);
  }
  .mobile-bottom-bar a {
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--green);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .mobile-bottom-bar a:first-child {
    background: #fff;
    color: var(--blue-dark);
  }
  .phone-widget {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 36;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #1eb251, var(--green-dark));
    box-shadow: 0 16px 34px rgba(24,150,66,.38);
  }
  .phone-widget::before {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(24,150,66,.35);
    border-radius: inherit;
  }
  .phone-widget span {
    position: relative;
    z-index: 1;
    font-size: 27px;
    line-height: 1;
  }
}
