/* =========================================================
   Лендинг производственной компании
   Светло-серый фон, тонкие линейки, яркие цветные плашки.
   ========================================================= */

:root {
  /* серые — сняты с референса */
  --bg: #C4C4C4;          /* фон страницы */
  --panel: #E6E5E3;       /* светлая панель */
  --surface: #F4F3F1;     /* карточки */
  --ink: #1B1B1B;
  --ink-2: #5B5B5B;
  --muted: #7A7A7A;
  --line: #B0B0B0;
  --line-2: #9B9B9B;
  --dark: #42403E;        /* тёмная секция */

  /* яркие плашки — тоже с референса */
  --c-yellow: #D3AC37;
  --c-teal:   #80A9A5;
  --c-red:    #9A201D;
  --c-olive:  #5E5A3F;
  --c-peach:  #E9CDB8;
  --c-blue:   #83969D;
  --c-sand:   #DFDCC4;
  --c-grey:   #6B6B6B;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad-x: 48px;
  --max: 1320px;
  --radius: 4px;

  /* воздух вокруг первого экрана: одинаковый над ним (под бегущей строкой)
     и под ним (до «Типов заявок») */
  --hero-gap: clamp(64px, 7.2vh, 78px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
h1 { font-size: clamp(38px, 6vw, 86px); }
h2 { font-size: clamp(28px, 3.6vw, 52px); }
h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }

/* микроподписи как на референсе */
.lbl {
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700; letter-spacing: -.04em;
}
.arrow::after { content: "↗"; margin-left: .4em; font-weight: 600; }

/* ---------- Шапка ---------- */

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(196,196,196,.93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__in {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--pad-x);
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.logo__mark { width: 30px; height: 30px; border-radius: 3px; background: var(--ink); flex-shrink: 0; position: relative; }
.logo__mark::after {
  content: ""; position: absolute; inset: 8px;
  border: 2px solid #fff; border-right: 0; border-bottom: 0;
}
.logo__text { font-weight: 800; letter-spacing: -.02em; font-size: 16px; }
.logo__sub { color: var(--muted); font-size: 12px; letter-spacing: .04em; }

.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header__phone { font-size: 14px; font-weight: 700; white-space: nowrap; }
.header__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius); background: none; align-items: center; justify-content: center; }
.header__burger span, .header__burger span::before, .header__burger span::after {
  display: block; width: 16px; height: 2px; background: var(--ink); content: ""; position: relative;
}
.header__burger span::before { position: absolute; top: -5px; }
.header__burger span::after { position: absolute; top: 5px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font: 700 14px var(--font); letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--dark); border-color: var(--dark); color: #FFFFFF; }
.btn--accent { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn--accent:hover { background: var(--dark); border-color: var(--dark); color: #FFFFFF; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13px; }

/* ---------- Секции ---------- */

.sec { padding: 72px 0; border-top: 1px solid var(--line); }
section[id] { scroll-margin-top: 78px; }   /* чтобы липкая шапка не накрывала заголовок */
.sec--tight { padding: 48px 0; }
.sec__head {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 28px; align-items: start; margin-bottom: 36px;
}
.sec__head p { color: var(--ink-2); max-width: 560px; font-size: 17px; }

/* ---------- Первый экран ---------- */

/* первый экран укладывается в высоту окна: размеры считаются и от ширины, и от высоты */
.hero { padding: 26px 0 30px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: end; }
.hero__meta { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px; }
.hero h1 { margin-bottom: 18px; font-size: clamp(32px, min(5.2vw, 8.2vh), 72px); }
.hero h1 em { font-style: normal; color: var(--ink-2); }
.hero__lead { font-size: clamp(15px, min(1.3vw, 2.1vh), 18px); line-height: 1.5; color: var(--ink-2); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(14px, 2.4vh, 26px); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile {
  aspect-ratio: auto;
  min-height: clamp(86px, 11.5vh, 124px);
  padding: 12px 14px 13px;
  border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  color: var(--ink);
}
.tile b { font-size: clamp(24px, min(2.5vw, 4.4vh), 40px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile span { font-size: clamp(13px, min(1.05vw, 1.95vh), 16px); font-weight: 600; line-height: 1.25; }
.tile--yellow { background: var(--c-yellow); }
.tile--teal   { background: var(--c-teal); color: #121A19; }
.tile--red    { background: var(--c-red); color: #F6E9E7; }
.tile--dark   { background: var(--c-grey); color: #F7F7F6; }
.tile--peach  { background: var(--c-peach); }
.tile--blue   { background: var(--c-blue); color: #101518; }
.tile--sand   { background: var(--c-sand); }
.tile--olive  { background: var(--c-olive); color: #F2F1E6; }

@media (min-width: 1100px) {
  /* первый экран собран плотно: лента под шапкой, за ней заголовок, под ним — типы заявок.
     Отступ над первым экраном и под ним — один и тот же --hero-gap. */
  .hero { padding: var(--hero-gap) 0 0; }
  .hero + .sec { padding-top: var(--hero-gap); }
  .hero > .strip { margin-bottom: var(--hero-gap); }
}

/* на низких экранах ужимаем ещё */
@media (min-width: 1100px) and (max-height: 760px) {
  .hero__meta { margin-bottom: 14px; padding-bottom: 8px; }
  .hero h1 { margin-bottom: 14px; }
  .hero__grid { gap: 32px; }
  .btn--lg { height: 48px; font-size: 15px; }
}

/* ---------- Строка-бегунок ---------- */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.strip__row { display: flex; gap: 40px; padding: 12px 0; white-space: nowrap; animation: slide 38s linear infinite; }
.strip__row span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* лента стоит первой в первом экране, во всю ширину */
.hero > .strip { width: 100%; margin-bottom: clamp(18px, 3vh, 34px); }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slide-back { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Ряд плашек заявок: стрелки и прокрутка колесом ----------
   Пропорции карточки взяты со страницы заявок (570×590, фото 570×245). */

.sec--rail { padding: clamp(22px, 3vh, 34px) 0 clamp(24px, 3.2vh, 38px); border-top: 1px solid var(--line); }
.rail { position: relative; }
.rail__track {
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-behavior: smooth; scroll-snap-type: x proximity;
  padding: 4px var(--pad-x);
  scrollbar-width: none; -ms-overflow-style: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

.rail__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--panel); color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.rail__nav:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail__nav--prev { left: 12px; }
.rail__nav--next { right: 12px; }
.rail__nav[disabled] { opacity: .3; pointer-events: none; }

.ctick {
  display: flex; flex-direction: column; flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(208px, 16vw, 250px);
  aspect-ratio: 570 / 590;          /* как карточка на странице заявок */
  background: transparent;          /* текст лежит на фоне страницы */
  border: 1px solid var(--line-2);  /* контур плашки */
  border-radius: var(--radius);
  overflow: hidden;                 /* фото доходит до контура */
  transition: transform .15s, border-color .15s;
}
.ctick:hover { transform: translateY(-3px); border-color: var(--ink); }

.ctick__photo {
  position: relative;
  display: block; flex-shrink: 0;
  aspect-ratio: 570 / 245;
  background: var(--c-grey);
  background-size: cover; background-position: center;
}
/* фото растворяется в фоне карточки под текстом */
.ctick__photo::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 46%;
  background: linear-gradient(180deg, rgba(196,196,196,0) 0%, rgba(196,196,196,.55) 55%, var(--bg) 100%);
}
.ctick__photo--milling { background-image: url(../img/milling.jpg); }
.ctick__photo--turning { background-image: url(../img/turning.jpg); }
.ctick__photo--edm { background-image: url(../img/edm.jpg); }
.ctick__photo--laser { background-image: url(../img/laser.jpg); }
.ctick__photo--stamp { background-image: url(../img/stamp.jpg); }
.ctick__photo--paint { background-image: url(../img/paint.jpg); }
.ctick__photo--press { background-image: url(../img/press.jpg); }
.ctick__photo--print3d { background-image: url(../img/print3d.jpg); }
.ctick__photo--scan { background-image: url(../img/scan.jpg); }
.ctick__photo--devel { background-image: url(../img/devel.jpg); }
.ctick__photo--assembly { background-image: url(../img/assembly.jpg); }
.ctick__photo--sand  { background-color: var(--c-sand); }
.ctick__photo--olive { background-color: var(--c-olive); }
.ctick__photo--grey  { background-color: var(--c-grey); }
.ctick__photo--teal  { background-color: var(--c-teal); }
.ctick__photo--blue  { background-color: var(--c-blue); }
.ctick__photo--red   { background-color: var(--c-red); }
.ctick__photo--yellow{ background-color: var(--c-yellow); }

.ctick__body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 8px 10px 10px; min-height: 0; }
.ctick__body b {
  font-size: 14.5px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ctick__note {
  font-size: 12px; line-height: 1.3; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ctick__tags { display: flex; flex-wrap: wrap; gap: 4px; overflow: hidden; max-height: 22px; }
.ctick__tags i {
  font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 7px; white-space: nowrap;
}
.ctick__btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 32px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700;
  transition: background .15s;
}
.ctick:hover .ctick__btn { background: var(--dark); }

@media (max-width: 767px) {
  .rail__nav { display: none; }
  .rail__track { padding: 4px 16px; gap: 12px; }
  .ctick { width: 186px; }
  .ctick__body { padding: 7px 9px 9px; gap: 4px; }
  .ctick__body b { font-size: 13.5px; }
  .ctick__tags { display: none; }
}

/* ---------- Бегущие цветные чипы (не используется в текущих вариантах) ---------- */

.ticker {
  width: 100%; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 0;
}
.ticker__row { display: flex; gap: 10px; width: max-content; animation: slide 64s linear infinite; }
.ticker__row--back { animation-name: slide-back; }
.ticker:hover .ticker__row { animation-play-state: paused; }

.tick {
  display: inline-flex; align-items: center;
  height: 42px; padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; color: var(--ink);
  transition: transform .15s;
}
.tick:hover { transform: translateY(-2px); }
.tick--yellow { background: var(--c-yellow); }
.tick--teal   { background: var(--c-teal); color: #121A19; }
.tick--blue   { background: var(--c-blue); color: #101518; }
.tick--peach  { background: var(--c-peach); }
.tick--olive  { background: var(--c-olive); color: #F2F1E6; }
.tick--sand   { background: var(--c-sand); }
.tick--red    { background: var(--c-red); color: #F6E9E7; }
.tick--grey   { background: var(--c-grey); color: #F7F7F6; }

.hero > .ticker { margin-bottom: clamp(18px, 3vh, 34px); }
.sec--ticker { padding: 0; }
.ticker--bottom { border-bottom: 0; }

@media (max-width: 767px) {
  .ticker { padding: 8px 0; }
  .tick { height: 40px; padding: 0 14px; font-size: 13.5px; }
}

/* ---------- Услуги: плотный список ---------- */

.group { border-top: 1px solid var(--line); }
.group__head { display: flex; align-items: center; gap: 12px; padding: 18px 0 10px; }
.group__dot { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.group__name { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.group__count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.row {
  display: grid; grid-template-columns: 56px minmax(170px, 230px) minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
  padding: 16px 12px 16px 0;
  border-top: 1px solid var(--line);
  transition: background .15s, padding .15s;
}
.row:hover { background: var(--surface); padding-left: 12px; }
.row__num { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row__name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.row__note { color: var(--ink-2); font-size: 14.5px; }
.row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.row__tags i {
  font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px;
}
.row__go { font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.row:hover .row__go { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Шаги ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--panel); padding: 24px 22px 26px; }
.step b { display: block; font-size: 42px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.step h3 { margin: 14px 0 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Работы ---------- */

.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work h3 { font-size: 16px; }
.work .row__note { font-size: 13px; }
.work__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.work__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work:hover .work__photo img { transform: scale(1.04); }
.work__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work__type { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.work__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.work__meta b { font-weight: 700; color: var(--ink); }

/* ---------- Галерея ----------
   Сетка в четыре колонки, снимок [wide] занимает две. Рамка без фотографии —
   место под ваш снимок: заливка цветом плашки и пунктир. */

.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gal + .gal__cap { margin-top: 34px; }

.gal__cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.gal__count { font-weight: 600; letter-spacing: .06em; color: var(--muted); }

.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
/* снимок на две колонки — панорамный, чтобы ряд остался ровным по высоте */
.shot--wide { grid-column: span 2; }
.shot--wide .shot__box { aspect-ratio: 8 / 3; }

.shot__box {
  display: block; width: 100%; padding: 0; margin: 0;
  aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.shot__box img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.shot__box:hover img { transform: scale(1.04); }
.shot__box:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.shot__box--empty {
  cursor: default; display: flex; align-items: center; justify-content: center;
  border-style: dashed; border-color: var(--line-2);
}
.shot__box--empty span {
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(27, 27, 27, .55);
}
.shot__box--teal   { background: var(--c-teal); }
.shot__box--yellow { background: var(--c-yellow); }
.shot__box--red    { background: var(--c-red); }
.shot__box--olive  { background: var(--c-olive); }
.shot__box--blue   { background: var(--c-blue); }
.shot__box--sand   { background: var(--c-sand); }
.shot__box--peach  { background: var(--c-peach); }
.shot__box--grey   { background: var(--c-grey); }
.shot__box--red span, .shot__box--olive span, .shot__box--grey span { color: rgba(247, 247, 246, .7); }

.shot figcaption { font-size: 13px; line-height: 1.35; color: var(--ink); }
.shot figcaption span { color: var(--muted); }

/* просмотр снимка во весь экран */
.lb {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center;
  padding: 40px var(--pad-x); background: rgba(27, 27, 27, .9);
}
.lb.is-open { display: flex; }
.lb__img { max-width: min(1200px, 100%); max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--radius); }
.lb__cap {
  position: absolute; left: 0; right: 0; bottom: 24px; text-align: center;
  font-size: 13px; color: #E6E5E3;
}
.lb__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(230, 229, 227, .35); background: rgba(27, 27, 27, .5);
  color: #F4F3F1; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb__btn:hover { background: rgba(244, 243, 241, .16); }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }
.lb__close { top: 16px; right: 16px; transform: none; }

@media (max-width: 1099px) {
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shot--wide { grid-column: span 2; }
  .shot--wide .shot__box { aspect-ratio: 2 / 1; }
  .shot figcaption { font-size: 12px; }
  .lb { padding: 56px 12px; }
  .lb__btn { width: 40px; height: 40px; }
}

/* ---------- Вакансии ---------- */

.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.job__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job__pay { font-size: 15px; font-weight: 800; white-space: nowrap; }
.job__terms { display: flex; flex-wrap: wrap; gap: 6px; }
.job__terms i { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #DCDBD8; color: var(--ink-2); }
.job ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.job li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--ink-2); }
.job li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--c-grey); }
.job .btn { margin-top: auto; align-self: flex-start; }
.job--open { background: var(--dark); color: #EFEEEB; border-color: var(--dark); }
.job--open .job__pay, .job--open h3 { color: #fff; }
.job--open li, .job--open p { color: #C6C7CB; }
.job--open .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.job--open .btn--ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }

/* ---------- Потребности ---------- */

.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.need { background: var(--panel); padding: 24px; display: flex; gap: 18px; }
.need__mark { width: 44px; height: 44px; border-radius: 3px; flex-shrink: 0; }
.need h3 { margin-bottom: 8px; }
.need p { font-size: 14.5px; color: var(--ink-2); }
.need__what { margin-top: 12px; font-size: 13.5px; }
.need__what b { font-weight: 700; }
.need a { font-size: 13px; font-weight: 700; display: inline-block; margin-top: 12px; border-bottom: 1px solid var(--ink); }

/* ---------- Контакты и карта ---------- */

.contacts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.map {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel); min-height: 420px;
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.map__fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 24px; color: var(--muted); font-size: 14px;
}
.map iframe { position: relative; z-index: 1; }
.map__bar {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.map__bar .btn { box-shadow: 0 6px 18px rgba(0,0,0,.18); }

.cblock { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cline { background: var(--panel); padding: 18px 20px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: baseline; }
.cline b { font-size: 16px; font-weight: 700; }
.cline a { font-weight: 700; }
.cline a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cline span { display: block; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Реквизиты ---------- */

.reqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.req__top { display: flex; align-items: center; gap: 10px; }
.req__dot { width: 10px; height: 10px; border-radius: 2px; }
.req__name { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.req__role { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.req dl { margin: 0; padding-top: 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.req dl > div { display: flex; flex-direction: column; gap: 2px; }
.req dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.req dd { margin: 0; font-size: 14.5px; font-weight: 600; word-break: break-word; }
.copy {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 700 12.5px var(--font); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.copy:hover { border-color: var(--ink); }
.copy.is-done { border-color: var(--ink); color: var(--ink); }

/* ---------- Форма ---------- */

.form-sec { background: var(--dark); color: #F1F0ED; border-top: 1px solid var(--dark); }
.form-sec h2 { color: #fff; }
.form-sec .sec__head p { color: #BDBEC3; }
.form-sec .lbl { color: #8A8C92; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--wide { grid-column: 1 / -1; }
.label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #C6C7CB; }
.opt { color: #8A8C92; font-weight: 500; }
.input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  background: rgba(255,255,255,.06); color: #fff;
  font: 500 16px var(--font); outline: none;
  transition: border-color .15s, background .15s;
}
.input--area { height: auto; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.input::placeholder { color: #8A8C92; }
.input:focus { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.12); }
.input.is-bad { border-color: #E8705C; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: transparent; color: var(--ink-2);
  font: 700 14px var(--font); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-checked { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* в тёмной секции формы — свои цвета */
.form-sec .chip { border-color: rgba(255,255,255,.24); color: #D9DADE; }
.form-sec .chip:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.form-sec .chip.is-checked { background: #F2F1EE; border-color: #F2F1EE; color: #1B1B1B; }

.drop {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 16px;
  border: 1px dashed rgba(255,255,255,.3); border-radius: var(--radius);
  color: #C6C7CB; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.drop:hover { border-color: rgba(255,255,255,.7); color: #fff; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: #BDBEC3; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #F2F1EE; flex-shrink: 0; }
.consent a { border-bottom: 1px solid rgba(255,255,255,.4); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__note { font-size: 13.5px; color: #BDBEC3; }
.form__note a { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.5); }
.form-sec .btn--accent { background: #F2F1EE; border-color: #F2F1EE; color: #1B1B1B; }
.form-sec .btn--accent:hover { background: #FFFFFF; border-color: #FFFFFF; color: #1B1B1B; }

/* ---------- Подвал ---------- */

.footer { background: var(--panel); padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer__in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__small { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

/* ---------- Адаптив ---------- */

@media (max-width: 1099px) {
  :root { --pad-x: 24px; }
  .nav, .header__phone { display: none; }
  .header__burger { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .sec__head { grid-template-columns: 1fr; gap: 14px; }
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --pad-x: 16px; }
  body { font-size: 17px; }
  .sec { padding: 48px 0; }
  .hero { padding: 36px 0 40px; }
  .hero__lead { font-size: 18px; }
  .btn, .btn--lg { width: 100%; height: 56px; font-size: 16px; }
  .header .btn { width: auto; height: 40px; padding: 0 14px; font-size: 13px; }
  .header__in { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .logo__sub { display: none; }
  .logo__text { font-size: 15px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 34px minmax(0, 1fr); gap: 10px 12px; padding: 14px 0; }
  .row__note { grid-column: 2; }
  .row__go { grid-column: 2; justify-self: start; color: var(--ink); }
  .row:hover { padding-left: 0; background: transparent; }
  .works, .jobs, .needs, .reqs, .steps, .footer__in { grid-template-columns: 1fr; }
  .need { padding: 20px 16px; }
  .cline { grid-template-columns: 1fr; gap: 4px; }
  .form { grid-template-columns: 1fr; }
  .input { height: 56px; font-size: 17px; }
  .chip { height: 50px; font-size: 15px; }
  .map, .map iframe { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__row { animation: none; }
  * { transition: none !important; }
}
