:root {
  --bg: #090b08;
  --ink: #f3eee0;
  --muted: #b7b39f;
  --gold: #d4b36a;
  --gold-2: #f0d9a0;
  --line: rgba(212, 179, 106, 0.18);
  --ok: #8fb56a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  color-scheme: dark;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.22;
  margin: 0 0 0.45em;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
}
p, li, span, label { overflow-wrap: break-word; }
section[id] { scroll-margin-top: calc(var(--header) + 12px); }
#apply { scroll-margin-top: calc(var(--header) + 12px); }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 16px;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 11, 8, 0.55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(9, 11, 8, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.brand__text strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.22em;
  line-height: 1.1;
}
.brand__text span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.nav a:hover { color: var(--gold-2); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.header-cta a.phone {
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1408;
}
.btn--gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn--block { width: 100%; margin-top: 16px; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.hero {
  position: relative;
  display: grid;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,11,8,0.96) 0%, rgba(9,11,8,0.72) 46%, rgba(9,11,8,0.38) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 40px;
  padding: 48px 0 64px;
  align-items: center;
}
.hero__copy, .lead-form, .hero-pills, .hero .lead { min-width: 0; max-width: 100%; }
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 14px;
  max-width: 100%;
  white-space: normal;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 54px);
  max-width: 14ch;
  margin-bottom: 16px;
}
.hero .lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  max-width: 100%;
}
.pill {
  border: 1px solid var(--line);
  background: rgba(22, 27, 18, 0.78);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.35;
  max-width: 100%;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c0f0a;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 26px 18px 26px 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.stat:last-child { border-right: 0; padding-right: 0; }
.stat:first-child { padding-left: 0; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(20px, 2.1vw, 30px);
  color: var(--gold-2);
  margin-bottom: 8px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.stat span { color: var(--muted); font-size: 14px; display: block; }

.section { padding: 80px 0; }
.section--alt {
  background:
    linear-gradient(180deg, rgba(9,11,8,0.9), rgba(9,11,8,0.95)),
    url("../img/texture.jpg") center/cover;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 40px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head h2 { margin-bottom: 0; font-size: clamp(26px, 3vw, 38px); }
.section-head p { color: var(--muted); margin: 0; }

.cards-4, .cards-2, .steps {
  display: grid;
  gap: 16px;
}
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card *, .step *, .vacancy__body *, .lead-form, .faq-item { min-width: 0; }

.card, .vacancy, .step, .lead-form, .calc, .faq-item {
  background: linear-gradient(180deg, rgba(28,35,23,0.92), rgba(16,20,13,0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card, .step {
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card h3, .step h3 { font-size: 18px; }
.card p, .step p { color: var(--muted); margin: 0; }
.num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.vacancy { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.vacancy img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center top;
}
.vacancy__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.vacancy__body h3 { font-size: 22px; margin-bottom: 8px; }
.vacancy__body p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.pay { color: var(--gold-2); font-weight: 700; margin-top: auto; }

.req-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
}
.photo-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 420px;
  border: 1px solid var(--line);
  margin: 0;
}
.photo-panel--wide { margin-top: 24px; min-height: 280px; }
.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.photo-panel figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  color: var(--ink);
  background: rgba(9,11,8,0.72);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.list { list-style: none; padding: 0; margin: 18px 0 0; }
.list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.list li:last-child { border-bottom: 0; }
.list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 8px;
  flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.calc { padding: 28px; }
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}
.calc-out { display: grid; gap: 12px; }
.calc-out div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10150d;
}
.calc-out span { color: var(--muted); font-size: 13px; }
.calc-out b {
  display: block;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--gold-2);
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field span { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0e120c;
  outline: none;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.lead-form { padding: 24px; }
.lead-form__head h3 { font-size: 22px; }
.lead-form__note, .legal-mini { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.legal-mini { margin: 12px 0 0; }
.legal-mini a { color: var(--gold-2); }
.check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}
.check a { color: var(--gold-2); }
.faq-item .answer a { color: var(--gold-2); }
.legal-page {
  padding: 36px 0 80px;
  max-width: 800px;
}
.legal-page h1 { font-size: clamp(26px, 4vw, 38px); }
.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.legal-page h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--gold-2);
  letter-spacing: 0;
}
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page ul, .legal-page ol { padding-left: 1.2em; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0 20px;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  color: var(--gold-2);
  background: #10150d;
  font-weight: 700;
}
.legal-page a { color: var(--gold-2); }
.consent-box {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10150d;
}
.note-gap { margin-top: 18px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 12px 0 0; font-size: 14px; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: #e07a7a; }

.compare {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #10150d;
}
.compare__head, .compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 18px;
  align-items: start;
}
.compare__head {
  background: #161b12;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare__row {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.compare__row b { color: var(--ink); font-weight: 700; }
.compare__row span:last-child { color: var(--gold-2); }
@media (max-width: 720px) {
  .compare { overflow-x: auto; }
  .compare__head, .compare__row {
    min-width: 540px;
  }
}

.faq-item + .faq-item { margin-top: 10px; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  line-height: 1.35;
}
.faq-item button::after {
  content: "+";
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.faq-item.is-open button::after { content: "–"; }
.faq-item .answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
}
.faq-item.is-open .answer { display: block; }

.cta-band {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.cta-band__bg {
  background:
    linear-gradient(180deg, rgba(9,11,8,0.22), rgba(9,11,8,0.82)),
    url("../img/field.jpg") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  min-height: 100%;
}
.cta-copy h2 { font-size: clamp(26px, 3vw, 36px); max-width: 16ch; }
.cta-copy p { color: var(--muted); max-width: 38ch; margin: 0; }
.cta-band__form { padding: 8px; }
.cta-band__form .lead-form {
  box-shadow: none;
  border: 0;
  background: transparent;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 120px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 28px;
  margin-bottom: 24px;
}
.footer-brand {
  display: block;
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.footer-label {
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 10px;
}
.site-footer a { color: var(--gold-2); text-decoration: none; }
.disclaimer {
  color: #8d8a7a;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(9,11,8,0.96);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
}

@media (max-width: 1180px) {
  .nav { gap: 8px 12px; }
  .nav a { font-size: 13px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .header-cta .phone { display: none; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #0e120c;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    z-index: 30;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
  }
  .nav.is-open a { padding: 8px 0; font-size: 16px; color: var(--ink); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero__grid,
  .cards-2,
  .steps,
  .req-grid,
  .calc-grid,
  .cta-band,
  .footer-grid,
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat {
    border-bottom: 1px solid var(--line);
    padding: 22px 16px;
  }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: 0; padding-right: 0; }
  .mobile-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero h1 { max-width: none; font-size: clamp(26px, 8vw, 36px); }
  .hero .lead { max-width: none; }
  .photo-panel { min-height: 340px; }
  .cta-band__bg { min-height: 240px; }
  .header-cta .btn { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .cards-4, .stats__grid { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; padding-left: 0; padding-right: 0; }
  .hero__grid { padding: 28px 0 36px; gap: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero h1,
  .section-head h2,
  .cta-copy h2 {
    font-size: 24px;
    letter-spacing: 0;
    max-width: 100%;
  }
  .card h3, .step h3, .vacancy__body h3, .lead-form__head h3 {
    font-size: 18px;
    letter-spacing: 0;
  }
  .hero .lead { font-size: 16px; }
  .lead-form, .calc, .card, .step { padding: 16px; }
  .cta-band { border-radius: 18px; }
  .photo-panel, .photo-panel--wide { min-height: 260px; }
  .mobile-bar .btn { padding: 0 12px; font-size: 14px; }
  .pill { width: 100%; text-align: center; }
  .site-footer { padding-bottom: 130px; }
}
