:root {
  --bg-dark: #1c2027;
  --bg-dark-2: #232831;
  --panel: #2b313b;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-muted: #aab0ba;
  --text-dim: #7d838e;
  --green: #008222;
  --green-hover: #009a2a;
  --green-text: #3dbb5a;
  --light: #f1f2f4;
  --light-2: #ffffff;
  --ink: #1d2128;
  --ink-muted: #5d636d;
  --radius: 6px;
  --container: 1200px;
  --gutter: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Общие элементы ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--green-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--green);
  flex-shrink: 0;
}
.eyebrow--plain::before { display: none; }

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-top: 20px;
  max-width: 820px;
}
.section-lead {
  margin-top: 20px;
  font-size: 18px;
  max-width: 640px;
}
.accent { color: var(--green-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--green-hover); }
.btn:active { transform: translateY(1px); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 84px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 46px; width: auto; }
.nav { display: none; gap: 28px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.nav a:hover { color: var(--green); }
.header__right { display: flex; align-items: center; gap: 20px; }
.header__contacts { display: grid; justify-items: end; gap: 2px; }
.header__phone { font-weight: 800; font-size: 16px; white-space: nowrap; letter-spacing: -0.01em; }
.header__phone:hover { color: var(--green); }
.header__email {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  border-bottom: 1px dashed rgba(0, 130, 34, 0.45);
  line-height: 1.3;
}
.header__email:hover { border-bottom-style: solid; }

/* Уведомление «скопировано» */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.header__cta {
  display: none;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}
.header__cta:hover { background: var(--green-hover); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 96px;
  background:
    radial-gradient(60% 50% at 75% 70%, rgba(0, 130, 34, 0.28), transparent 70%),
    linear-gradient(160deg, #1b1f26 0%, #232831 55%, #1b2a21 100%);
}
.hero::before {
  /* тонкая диагональная штриховка */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(255, 255, 255, 0.025) 140px 141px);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 64px;
}
.hero__title {
  margin-top: 36px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero__lead {
  margin-top: 32px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Форма ---------- */
.lead-form { margin-top: 40px; max-width: 640px; }
.lead-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.lead-form__input {
  height: 64px;
  width: 100%;
  padding: 0 22px;
  border: 1px solid #4a515c;
  border-radius: var(--radius);
  background: var(--panel);
  color: #fff;
  font-size: 18px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.lead-form__input::placeholder { color: #9ba1ab; }
.lead-form__input:focus { border-color: var(--green-text); background: #303742; }
.lead-form__input.is-invalid { border-color: #e5534b; }
.lead-form .btn { width: 100%; }
.lead-form__note {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.lead-form__success {
  display: none;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(0, 130, 34, 0.14);
  border: 1px solid rgba(61, 187, 90, 0.4);
  font-weight: 600;
}
.lead-form__error {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #ff8a80;
}
.lead-form__note a { color: inherit; text-decoration: underline; }
.recaptcha-note { display: none; }
.has-recaptcha .recaptcha-note { display: inline; }
/* значок reCAPTCHA скрыт — вместо него текст в примечании, как разрешает Google */
.has-recaptcha .grecaptcha-badge { visibility: hidden; }
.lead-form.is-loading .btn { opacity: 0.75; cursor: progress; }
/* ловушка для ботов: поле не видно людям */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.lead-form { position: relative; }
.lead-form.is-sent .lead-form__error,
.lead-form.is-sent .lead-form__row,
.lead-form.is-sent .lead-form__note { display: none; }
.lead-form.is-sent .lead-form__success { display: block; }

/* ---------- Цифры ---------- */
.stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr;
  gap: 24px;
}
.stat__value {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.stat__label {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 2.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Видео ---------- */
.video-card {
  position: relative;
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border: 1px solid #555c67;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(90% 60% at 80% 100%, rgba(0, 110, 30, 0.5), transparent 70%),
    linear-gradient(170deg, #3a4049 0%, #2a2f37 60%, #22302a 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.video-card.has-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 30%, transparent 60%, rgba(0, 0, 0, 0.6));
}
.video-card.has-poster .video-card__frame { display: none; }
.video-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.video-card.has-poster .video-card__preview { opacity: 1; }
.video-card > span { z-index: 1; }
.video-card__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.video-card__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 16px;
  border-radius: 4px;
  background: rgba(24, 27, 32, 0.85);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 18px rgba(0, 130, 34, 0.22), 0 0 60px rgba(0, 130, 34, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
.video-card:hover .video-card__play {
  transform: scale(1.06);
  box-shadow: 0 0 0 24px rgba(0, 130, 34, 0.2), 0 0 80px rgba(0, 130, 34, 0.55);
}
.video-card__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d8dbe0;
}

/* модальное окно видео */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(10, 12, 15, 0.86);
}
.modal.is-open { display: flex; }
.modal__body { position: relative; height: min(86vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.modal__content, .modal__body video { width: 100%; height: 100%; }
.modal__body video { border-radius: 12px; background: #000; object-fit: contain; }
.modal__empty {
  height: 100%;
  border-radius: 8px;
  border: 1px dashed #555c67;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}
.modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Светлые секции ---------- */
.section { padding: 96px 0; }
.section--light { background: var(--light); color: var(--ink); }
.section--white { background: var(--light-2); color: var(--ink); }
.section--light .section-lead,
.section--white .section-lead { color: var(--ink-muted); }
.section--dark { background: var(--bg-dark); }
.section--dark .section-lead { color: var(--text-muted); }

/* Заказчики */
.clients {
  margin-top: 56px;
  display: grid;
  gap: 20px;
}
.client-card {
  position: relative;
  min-height: 300px;
  padding: 32px;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, #2b313b 0%, #1d2128 100%);
  transition: transform 0.25s;
}
.client-card:hover { transform: translateY(-4px); }
.client-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(0, 130, 34, 0.35), transparent 70%);
}
.client-card > * { position: relative; }
.client-card__num {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--green-text);
}
.client-card__icon {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 56px;
  height: 56px;
  opacity: 0.85;
}
.client-card h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.client-card p { margin-top: 12px; color: var(--text-muted); font-size: 15px; }

/* Услуги */
.services {
  margin-top: 56px;
  display: grid;
  border-top: 1px solid #dfe1e5;
}
.service {
  display: grid;
  gap: 12px;
  padding: 32px 0;
  border-bottom: 1px solid #dfe1e5;
}
.service__num { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--green); }
.service h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.service p { color: var(--ink-muted); }
.service ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--light);
  font-size: 13px;
  font-weight: 600;
  color: #3c424b;
}
.service__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}
.service__more:hover { color: var(--green-hover); text-decoration: underline; }

/* Портфолио */
.portfolio {
  margin-top: 56px;
  display: grid;
  gap: 20px;
}
.project {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e5e9;
  display: flex;
  flex-direction: column;
}
.project__media {
  aspect-ratio: 16 / 10;
  background: #fff;
  border-bottom: 1px solid #eceef1;
  overflow: hidden;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}
.project:hover .project__media img { transform: scale(1.04); }
.project__body { padding: 28px; display: grid; gap: 16px; align-content: start; }

/* Главный кейс с фото */
.case-feature {
  margin-top: 56px;
  display: grid;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}
.case-feature__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  min-height: 360px;
}
.case-feature__gallery img { width: 100%; height: 100%; object-fit: cover; }
.case-feature__gallery img:first-child { grid-row: span 2; }
.case-feature__body { padding: 36px 28px; display: grid; gap: 18px; align-content: center; }
.case-feature h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.case-feature .project__type { color: var(--green-text); }
.case-feature .project__task { color: var(--text-muted); font-size: 16px; }
.case-feature .project__task b { color: #fff; }
.case-feature .project__systems span { border-color: rgba(255, 255, 255, 0.2); color: #e3e5e9; }
.btn--outline {
  justify-self: start;
  gap: 12px;
  height: 52px;
  background: transparent;
  border: 1px solid var(--green-text);
  color: #fff;
}
.btn--outline:hover { background: var(--green); border-color: var(--green); }

/* Также выполняли */
.also {
  margin-top: 56px;
  padding: 36px 28px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e3e5e9;
}
.also__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.also__list {
  margin-top: 24px;
  list-style: none;
  display: grid;
  gap: 14px 40px;
}
.also__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-muted);
  font-size: 15px;
}
.also__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.also__list b { color: var(--ink); }
.project__type { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); }
.project h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.project__task { font-size: 15px; color: var(--ink-muted); }
.project__task b { color: var(--ink); }
.project__systems { display: flex; flex-wrap: wrap; gap: 8px; }
.project__systems span {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #dfe1e5;
  font-size: 12px;
  font-weight: 600;
  color: #3c424b;
}

/* Экспертиза */
.expertise {
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(0, 130, 34, 0.22), transparent 70%),
    var(--bg-dark);
}
.expertise__title {
  margin-top: 24px;
  font-size: clamp(36px, 6.4vw, 84px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  max-width: 1000px;
}
.expertise__grid {
  margin-top: 72px;
  display: grid;
  gap: 40px;
}
.direction { padding-top: 28px; border-top: 1px solid var(--line); }
.direction__num { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--green-text); }
.direction h3 { margin-top: 20px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.direction p { margin-top: 12px; color: var(--text-muted); }

/* Этапы */
.steps {
  margin-top: 56px;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: 10px;
  background: var(--light);
}
.step__head { display: flex; align-items: center; gap: 14px; }
.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step__term { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.step h3 { margin-top: 22px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.step p { margin-top: 10px; color: var(--ink-muted); font-size: 15px; }

/* Финальная заявка */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 60%, rgba(0, 130, 34, 0.3), transparent 70%),
    linear-gradient(160deg, #1b1f26, #262b33);
}
.cta__grid { display: grid; gap: 40px; align-items: center; }
.cta .section-lead { color: var(--text-muted); }
.cta .lead-form { margin-top: 0; }

/* Подвал */
.footer { padding: 56px 0; background: #fff; color: var(--ink-muted); font-size: 14px; border-top: 4px solid var(--green); }
.footer__inner { display: grid; gap: 28px; }
.footer__contacts { display: grid; gap: 6px; }
.footer__contacts a { color: var(--ink); font-weight: 700; font-size: 16px; }
.footer__contacts a:hover { color: var(--green); }
.footer__company { color: var(--ink); font-size: 16px; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 479px) {
  .header__inner { height: 72px; }
  .logo__img { height: 36px; }
  .header__phone { font-size: 14px; }
  .header__email { font-size: 12px; }
  .case-feature__gallery { min-height: 260px; }
  .eyebrow { gap: 12px; font-size: 10.5px; letter-spacing: 0.16em; }
  .eyebrow::before { width: 24px; }
  .stats { gap: 16px; }
  .stat__label { font-size: 10.5px; letter-spacing: 0.14em; }
  .video-card { max-width: 300px; }
  .video-card__tag { font-size: 11px; padding: 9px 13px; }
  .video-card__play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .video-card__caption { font-size: 12px; letter-spacing: 0.2em; }
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .lead-form__row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .clients { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .portfolio { grid-template-columns: 1fr 1fr; }
  .also__list { grid-template-columns: 1fr 1fr; }
  .also { padding: 40px; }
}

@media (min-width: 960px) and (max-width: 1199px) {
  /* пять пунктов меню + контакты + кнопка: на узких экранах ужимаем меню */
  .nav { gap: 14px; font-size: 13px; }
  .header__right { gap: 14px; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .hero { padding: 140px 0 120px; }
  .hero__grid { grid-template-columns: 1fr 340px; gap: 72px; align-items: center; }
  .header__cta { display: inline-flex; }
  .section { padding: 128px 0; }
  .client-card { min-height: 360px; padding: 40px; }
  .client-card h3 { font-size: 32px; max-width: 420px; }
  .client-card p { max-width: 440px; font-size: 16px; }
  .client-card__num { top: 36px; left: 40px; }
  .client-card__icon { top: 32px; right: 36px; width: 64px; height: 64px; }
  .service { grid-template-columns: 80px 1fr 1.2fr; gap: 32px; align-items: start; padding: 40px 0; }
  .portfolio { grid-template-columns: repeat(3, 1fr); }
  .case-feature { grid-template-columns: 1.15fr 1fr; }
  .case-feature__gallery { min-height: 460px; }
  .case-feature__body { padding: 48px; }
  .also__list { grid-template-columns: repeat(3, 1fr); }
  .expertise__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step::after {
    content: "";
    position: absolute;
    top: 50px;
    right: -16px;
    width: 16px;
    height: 2px;
    background: var(--green);
  }
  .step:last-child::after { display: none; }
  .cta__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: start; }
}
