:root {
  --navy: #0a1f44;
  --navy-2: #12305f;
  --blue: #0b7cff;
  --yellow: #ffc933;
  --ink: #12233f;
  --muted: #5a6b86;
  --tint: #eef5ff;
  --line: #d9e4f5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: hidden; }
body { margin: 0; font: 400 16px/1.55 Inter, system-ui, sans-serif; color: var(--ink); background: #fff; padding-bottom: 72px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; background: #dbe6f5; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
a { color: inherit; }

/* адаптивный контейнер: 16 / 24 / 32 px по бокам */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 700px) {
  .wrap { padding-inline: 24px; }
}
@media (min-width: 900px) {
  .wrap { padding-inline: 32px; }
}

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px; font: 600 16px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; padding: 0 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* header */
.header { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; }
.header__in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__eyebrow { font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .7; }
.brand__name { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.brand__mark { display: inline-flex; width: 34px; height: 39px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.nav { display: none; margin-left: auto; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; opacity: .9; }
.nav a:hover { opacity: 1; }
.nav.is-open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; padding: 8px 16px 20px; background: var(--navy); gap: 0; }
.nav.is-open a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.header__cta { display: none; min-height: 40px; }
.burger { margin-left: auto; display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; background: none; border: 0; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 40px 0; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 60%; z-index: 0; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(4,10,24,.95) 0%, rgba(5,13,30,.82) 35%, rgba(6,16,35,.42) 65%, rgba(6,16,35,.12) 100%); z-index: 1; }
.hero__in { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { margin: 0 0 10px; color: #5fb0ff; font-weight: 600; }
.hero h1 { font-size: clamp(27px, 7vw, 44px); font-weight: 800; }
.hero__lead { margin: 16px 0 20px; max-width: 48ch; opacity: .9; }
.feats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; }
.feats li { padding-left: 22px; position: relative; }
.feats li::before { content: ""; position: absolute; left: 0; top: .4em; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.feats--light { grid-template-columns: 1fr; font-size: 15px; }

/* sections */
.section { padding: 48px 0; }
.section--tint { background: var(--tint); }
.section h2 { font-size: clamp(24px, 5vw, 34px); font-weight: 800; color: var(--navy); }
.lead { margin: 8px 0 28px; color: var(--muted); max-width: 70ch; }

.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tint); color: var(--blue); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.why p { margin: 0; font-size: 15px; color: var(--muted); }

/* === Quy trình thực hiện: 3 ряда по 3 фото === */
.process-rows { display: grid; gap: 40px; }
.process-row__title {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
}
.process-row__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.process-row__grid figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
}
.process-row__grid img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform .2s;
}
.process-row__grid img:hover {
  transform: scale(1.02);
}
.process-row__grid figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  .process-row__grid img { transition: none; }
  .process-row__grid img:hover { transform: none; }
}

/* === Лайтбокс === */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(0,0,0,.92);
}
.lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-out;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.lightbox__close:hover {
  background: rgba(255,255,255,.24);
}

/* === contact + form === */
/* точка фокуса фона смещена вправо: на мобильных в кадр попадает эвакуатор с погруженной машиной */
.contact {
  background:
    linear-gradient(180deg, rgba(10,31,68,.15), rgba(6,22,51,.3)),
    url('../img/contact-bg.jpg') 72% center / cover no-repeat;
  color: #fff;
  padding: 48px 0;
  position: relative;
}
@media (min-width: 900px) {
  .contact {
    background:
      linear-gradient(180deg, rgba(10,31,68,.15), rgba(6,22,51,.3)),
      url('../img/contact-bg.jpg') center / cover no-repeat;
  }
}

.contact__in { display: grid; gap: 28px; }
.contact h2 { font-size: clamp(25px, 5vw, 36px); font-weight: 800; }

/* тень тексту в левой колонке — поверх светлого фото */
.contact__text h2,
.contact__text p,
.feats--light li {
  text-shadow: 0 2px 6px rgba(0,0,0,.75), 0 0 22px rgba(0,0,0,.5);
}
.contact__text p { margin: 14px 0 20px; opacity: 1; max-width: 46ch; }

/* === Форма: без blur, лёгкая тёмная подложка, фото остаётся резким === */
.form {
  background: rgba(10, 22, 45, 0.28);
  color: #fff;
  padding: 22px;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.18);
}
.form h3 { font-size: 22px; color: #fff; }
.form__lead { margin: 0; color: rgba(255,255,255,.9); font-size: 14px; }

.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field > span { color: #fff; }
.field input[type=text], .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  font: 400 16px Inter, sans-serif;
  background: rgba(255,255,255,.14);
  color: #fff;
}
.field input[type=text]::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.65); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--yellow);
  border-color: transparent;
  background: rgba(255,255,255,.22);
}

.upload {
  display: grid;
  gap: 2px;
  padding: 14px;
  text-align: left;
  border: 1.5px dashed rgba(255,255,255,.55);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: 600 15px Inter, sans-serif;
  cursor: pointer;
}
.upload small { font-weight: 400; color: rgba(255,255,255,.7); }

/* тень тексту внутри формы */
.form h3,
.form__lead,
.field > span,
.upload,
.form__status {
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.previews:empty { display: none; }
.preview { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button { position: absolute; top: 3px; right: 3px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(10,31,68,.85); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 500; color: #fff; }
.form__status.is-ok { color: #7ef0a8; }
.form__status.is-error { color: #ff9a9a; }

/* footer */
.footer { background: #061633; color: #fff; padding: 28px 0; font-size: 14px; }
.footer__in { display: grid; gap: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; opacity: .9; }
.footer__copy { margin: 0; opacity: .6; font-size: 13px; }

/* sticky mobile bar */
.sticky { position: fixed; inset: auto 0 0 0; z-index: 30; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); box-shadow: 0 -6px 20px rgba(0,0,0,.25); transition: transform .25s; }
.sticky .btn { flex: 1; }
.sticky.is-hidden { transform: translateY(110%); }

@media (min-width: 700px) {
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky, .burger { display: none; }
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .hero { padding: 72px 0; min-height: 560px; }
  .hero__text { max-width: 640px; }
  .feats { grid-template-columns: repeat(2, auto); justify-content: start; gap: 12px 32px; }
  .section { padding: 72px 0; }
  .contact { padding: 72px 0; }
  .contact__in { grid-template-columns: 1fr 460px; align-items: start; gap: 56px; }
  .footer__in { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer__links { justify-content: center; }
}
@media (min-width: 1100px) {
  .why { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .why li { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky { transition: none; }
}