/* ============ СахПодряды — сахподряды.рф ============ */
:root {
  --bg: #0a0a0c;
  --bg-alt: #0f0f13;
  --card: #15151a;
  --card-2: #1b1b21;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --yellow: #ffc400;
  --yellow-2: #ffd952;
  --yellow-dim: rgba(255, 196, 0, .12);
  --red: #e63946;
  --red-2: #f25562;
  --text: #f4f4f1;
  --muted: #a2a29a;
  --radius: 16px;
  /* CJK-шрифты в хвосте — латиница/кириллица берут Unbounded/Inter,
     китайские иероглифы падают на системный/Noto Sans SC */
  --font-head: "Unbounded", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Inter", sans-serif;
  --font-body: "Inter", system-ui, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--yellow); text-decoration: none; transition: color .15s; }
a:hover { color: var(--yellow-2); }
::selection { background: var(--yellow); color: #0a0a0c; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

/* зерно поверх всей страницы — убирает «плоскость» заливок */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 2000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

/* ---------- Типографика секций ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 500; font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); flex: none; }
.eyebrow--center { justify-content: center; }
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(24px, 4vw, 40px); line-height: 1.2;
  margin-bottom: 14px; letter-spacing: -.01em;
}
.section-title--center { text-align: center; }
.section-sub { color: var(--muted); margin-bottom: 36px; max-width: 620px; font-size: 16.5px; }
.section-sub--center { margin-left: auto; margin-right: auto; text-align: center; }
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  border: none; border-radius: 14px; padding: 15px 28px;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background .16s, border-color .16s, color .16s;
}
.btn:active { transform: scale(.97); }
.btn--yellow {
  background: linear-gradient(180deg, var(--yellow-2) 0%, var(--yellow) 100%);
  color: #0a0a0c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 30px -10px rgba(255, 196, 0, .55);
}
.btn--yellow:hover { filter: brightness(1.06); transform: translateY(-1px); color: #0a0a0c; }
.btn--red {
  background: linear-gradient(180deg, var(--red-2) 0%, var(--red) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 30px -10px rgba(230, 57, 70, .55);
}
.btn--red:hover { filter: brightness(1.07); transform: translateY(-1px); color: #fff; }
.btn--ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { color: var(--text); border-color: var(--muted); }
.btn--outline { background: transparent; color: var(--yellow); border: 1.5px solid rgba(255, 196, 0, .5); }
.btn--outline:hover { background: var(--yellow-dim); color: var(--yellow-2); }
.btn--sm { padding: 11px 20px; font-size: 14px; border-radius: 11px; }
.btn--lg { padding: 19px 46px; font-size: 18px; border-radius: 16px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.logo__mark { width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px -4px rgba(255, 196, 0, .5); }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .05em; line-height: 1.15; }
.logo__text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; letter-spacing: .03em; color: var(--muted); }
.header__nav { display: none; gap: 26px; margin: 0 auto; }
.header__nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.header__nav a:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 12px; }

/* Переключатель языков */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); flex: none; }
.lang-switch button {
  font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .02em;
  color: var(--muted); background: transparent; border: none; cursor: pointer;
  padding: 5px 9px; border-radius: 7px; line-height: 1; transition: color .15s, background .15s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.is-active { color: #0a0a0c; background: var(--yellow); }
.header__phone { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; }
.header__phone svg { color: var(--yellow); }
.header__phone:hover { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  min-height: min(860px, 100svh);
  display: flex; align-items: center;
  background: linear-gradient(180deg, #0b0b0e 0%, #0a0a0c 100%);
}
.hero__glow {
  position: absolute; right: -15%; top: -25%;
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 196, 0, .13), transparent 72%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.hero__skyline { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.hero__skyline svg { width: 100%; height: clamp(120px, 18vw, 240px); }
.hero__crane {
  position: absolute; right: -150px; bottom: 0; width: 520px; pointer-events: none;
  opacity: .28;
  filter: drop-shadow(0 0 30px rgba(255, 196, 0, .12));
}
.hero__inner { position: relative; z-index: 2; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 196, 0, .3); background: rgba(255, 196, 0, .06);
  font-size: 13px; font-weight: 600; color: var(--yellow-2);
  margin-bottom: 26px;
}
.hero__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px 2px rgba(255, 196, 0, .6); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero__title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(28px, 5.4vw, 56px); line-height: 1.14; letter-spacing: -.01em;
  max-width: 880px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--yellow-2) 10%, var(--yellow) 55%, #e8a800 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 22px; font-size: clamp(15.5px, 2.3vw, 19px); color: var(--muted); max-width: 640px; line-height: 1.65; }

.hero__fork { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 38px; max-width: 720px; }
.fork-btn {
  display: flex; align-items: center; gap: 16px; text-align: left;
  border: none; border-radius: 18px; cursor: pointer;
  padding: 18px 22px; font-family: var(--font-body);
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  color: #0a0a0c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 18px 40px -14px rgba(255, 196, 0, .5);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.fork-btn:hover { transform: translateY(-3px); filter: brightness(1.05); }
.fork-btn:active { transform: scale(.98); }
.fork-btn--red {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 40px -14px rgba(230, 57, 70, .5);
}
.fork-btn__icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .16);
}
.fork-btn--red .fork-btn__icon { background: rgba(0, 0, 0, .22); }
.fork-btn__body { flex: 1; min-width: 0; }
.fork-btn__body strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.fork-btn__body span { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 500; opacity: .75; }
.fork-btn__arrow { flex: none; font-size: 22px; font-weight: 800; opacity: .55; transition: transform .16s ease, opacity .16s ease; }
.fork-btn:hover .fork-btn__arrow { transform: translateX(5px); opacity: 1; }

.hero__stats {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px 18px; margin-top: 52px; max-width: 880px;
}
.hero__stats li { border-left: 2px solid rgba(255, 196, 0, .35); padding-left: 14px; }
.hero__stats b { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); color: var(--yellow); line-height: 1.1; }
.hero__stats span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Анимации крана */
.crane__beacon { animation: beacon 2.2s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.crane__trolley { animation: trolley 16s ease-in-out infinite alternate; }
@keyframes trolley { 0% { transform: translateX(0); } 100% { transform: translateX(190px); } }
.crane__hoist { animation: hoist 9s ease-in-out infinite alternate; }
@keyframes hoist { 0% { transform: translateY(0); } 100% { transform: translateY(-160px); } }

/* ---------- Бегущая строка ---------- */
.marquee {
  overflow: hidden; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__track span {
  font-family: var(--font-head); font-weight: 500; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .3); white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--yellow); margin: 0 20px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Сигнальная лента ---------- */
.hazard {
  height: 18px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, #111114 22px 44px);
  background-size: 200% 100%;
  animation: tape 34s linear infinite;
  border-top: 1px solid #000; border-bottom: 1px solid #000;
  opacity: .92;
}
@keyframes tape { from { background-position: 0 0; } to { background-position: 622px 0; } }

/* ---------- Форма ---------- */
.form-section { position: relative; padding: 96px 0; background: var(--bg); overflow: hidden; }
.form-section__glow {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 1000px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 196, 0, .07), transparent 70%);
}
.lead-form {
  position: relative; margin-top: 40px;
  background: linear-gradient(180deg, #17171d 0%, #111115 100%);
  border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 22px 24px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Степпер */
.stepper { list-style: none; display: flex; gap: 8px; margin-bottom: 28px; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.stepper li::before {
  content: ""; position: absolute; top: 15px; left: calc(50% + 22px); right: calc(-50% + 22px);
  height: 2px; background: var(--line);
}
.stepper li:last-child::before { display: none; }
.stepper i {
  width: 30px; height: 30px; border-radius: 50%; font-style: normal;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  border: 2px solid var(--line-strong); color: var(--muted);
  background: var(--bg); transition: all .2s ease; position: relative; z-index: 1;
}
.stepper em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.stepper li.is-active i { background: var(--yellow); border-color: var(--yellow); color: #0a0a0c; box-shadow: 0 0 18px rgba(255, 196, 0, .4); }
.stepper li.is-active em { color: var(--text); }
.stepper li.is-done i { border-color: var(--yellow); color: var(--yellow); background: var(--yellow-dim); }
.stepper li.is-done em { color: rgba(255, 196, 0, .75); }
.stepper li.is-done::before { background: rgba(255, 196, 0, .4); }

.step { display: none; border: none; }
.step.is-active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.step__note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.step__error { display: none; margin-top: 12px; color: var(--red-2); font-size: 13.5px; font-weight: 600; }
.step__error.is-visible { display: block; }

/* Карточки роли */
.role-cards { display: grid; gap: 12px; margin-top: 16px; }
.role-card { display: block; cursor: pointer; }
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-card__body {
  display: block; padding: 20px; border-radius: 18px;
  border: 1.5px solid var(--line-strong); background: var(--bg-alt);
  transition: border-color .16s, background .16s, box-shadow .16s, transform .16s;
}
.role-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  background: var(--yellow-dim); color: var(--yellow);
  transition: background .16s, color .16s;
}
.role-card__body strong { display: block; font-size: 17px; font-weight: 800; }
.role-card__desc { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.role-card:hover .role-card__body { border-color: var(--muted); transform: translateY(-2px); }
.role-card input:checked + .role-card__body {
  border-color: var(--yellow); background: rgba(255, 196, 0, .05);
  box-shadow: 0 0 0 1px var(--yellow), 0 14px 40px -16px rgba(255, 196, 0, .35);
}
.role-card input:checked + .role-card__body .role-card__icon { background: var(--yellow); color: #0a0a0c; }
.role-card input:checked + .role-card__body strong { color: var(--yellow); }

/* Плитки видов работ */
.tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tile { display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile__body {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 40px 13px 14px; border-radius: 14px; min-height: 58px;
  border: 1.5px solid var(--line); background: var(--bg-alt);
  font-weight: 600; font-size: 14px; line-height: 1.3;
  transition: border-color .16s, background .16s, color .16s;
}
.tile__label { flex: 1; min-width: 0; }
.tile__body small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tile__icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; font-style: normal;
  background: rgba(255, 255, 255, .05); color: var(--muted);
  transition: background .16s, color .16s;
}
.tile__body::after {
  content: ""; position: absolute; top: 50%; right: 14px; transform: translateY(-50%) scale(.5);
  width: 20px; height: 20px; border-radius: 50%; opacity: 0;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a0a0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
  transition: opacity .16s, transform .16s;
}
.tile:hover .tile__body { border-color: var(--muted); }
.tile input:checked + .tile__body { border-color: var(--yellow); background: rgba(255, 196, 0, .07); }
.tile input:checked + .tile__body .tile__icon { background: var(--yellow); color: #0a0a0c; }
.tile input:checked + .tile__body::after { opacity: 1; transform: translateY(-50%) scale(1); }
.tile input:focus-visible + .tile__body { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Пилюли */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; padding: 11px 17px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--bg-alt);
  font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: border-color .16s, background .16s, color .16s;
}
.pill:hover span { border-color: var(--muted); }
.pill input:checked + span { border-color: var(--yellow); background: rgba(255, 196, 0, .1); color: var(--yellow); }
.pill input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Поля */
.field-group { margin-top: 20px; }
.field-label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 9px; color: #d6d6cf; }
.req { color: var(--red-2); }
.opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.fields-2col { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
.input {
  width: 100%; padding: 14px 16px; border-radius: 13px;
  border: 1.5px solid var(--line-strong); background: var(--bg-alt); color: var(--text);
  font-family: var(--font-body); font-size: 16px;
  transition: border-color .16s, box-shadow .16s;
}
.input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 196, 0, .15); }
.input::placeholder { color: #676760; }
textarea.input { resize: vertical; min-height: 104px; }
#workOtherText { margin-top: 12px; }
.input.is-invalid { border-color: var(--red); }

.consent { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--yellow); flex: none; }

.form-nav { display: flex; gap: 10px; margin-top: 28px; }
.form-nav .btn { flex: 1; }
#btnBack { flex: 0 0 auto; }
.form-fail { margin-top: 16px; color: var(--red-2); font-size: 14px; font-weight: 600; }
.form-fail a { color: var(--yellow); white-space: nowrap; }

/* Благодарность */
.thanks {
  margin-top: 40px; text-align: center;
  background: linear-gradient(180deg, #17171d 0%, #111115 100%);
  border: 1px solid rgba(255, 196, 0, .45); border-radius: 24px; padding: 56px 24px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(255, 196, 0, .25);
}
.thanks__icon { display: flex; justify-content: center; margin-bottom: 20px; }
.thanks h3 { font-family: var(--font-head); font-weight: 700; font-size: 26px; margin-bottom: 12px; }
.thanks p { color: var(--muted); }

/* ---------- Карточки доверия ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--card-2) 0%, #111115 100%);
  border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 196, 0, .4); box-shadow: 0 24px 60px -24px rgba(255, 196, 0, .18); }
.card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px;
  background: var(--yellow-dim); border: 1px solid rgba(255, 196, 0, .25);
}
.card h3 { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 10px; line-height: 1.35; }
.card p { color: var(--muted); font-size: 14.5px; }

.card--wide {
  display: flex; flex-direction: column; gap: 22px;
  border-color: rgba(255, 196, 0, .35);
  background: linear-gradient(150deg, rgba(255, 196, 0, .1) 0%, var(--card) 45%, #111115 100%);
}
.card--wide__text h3 { font-size: 20px; }
.card--wide__text p { margin-bottom: 20px; max-width: 560px; }
.card--wide__text b { color: var(--yellow); }
.card--wide__num {
  font-family: var(--font-head); font-weight: 900; font-size: 92px; line-height: .9;
  color: var(--yellow); display: flex; align-items: baseline; gap: 10px; flex: none;
  text-shadow: 0 0 50px rgba(255, 196, 0, .35);
}
.card--wide__num span { font-size: 15px; font-weight: 700; line-height: 1.25; color: rgba(255, 196, 0, .8); }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: 1fr; gap: 14px; }
.service {
  position: relative; padding: 26px 24px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease;
}
.service:hover { transform: translateY(-3px); border-color: rgba(255, 196, 0, .35); }
.service__num {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: rgba(255, 196, 0, .55); letter-spacing: .12em; margin-bottom: 14px;
}
.service h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.service p { color: var(--muted); font-size: 14px; }

/* ---------- География ---------- */
.geo { display: grid; grid-template-columns: 1fr; gap: 12px; }
.geo-card { min-width: 0; }
@media (min-width: 420px) {
  .geo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-card { padding: 18px 16px; }
  .geo-card h3 { font-size: 14px; }
}
.geo-card {
  position: relative;
  padding: 22px 20px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease;
}
.geo-card__tz {
  position: absolute; top: 16px; right: 14px;
  font-family: var(--font-head); font-weight: 500; font-size: 10px;
  letter-spacing: .1em; color: rgba(255, 196, 0, .75);
  border: 1px solid rgba(255, 196, 0, .3); border-radius: 7px;
  padding: 4px 7px; background: rgba(255, 196, 0, .05);
}
.geo-card:hover { transform: translateY(-3px); border-color: rgba(255, 196, 0, .4); }
.geo-card__plate {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 7px 14px 5px; border-radius: 9px; margin-bottom: 16px;
  border: 2px solid rgba(255, 196, 0, .55);
  font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1;
  color: var(--yellow); background: rgba(255, 196, 0, .05);
}
.geo-card__plate small { font-size: 8px; font-weight: 500; letter-spacing: .3em; color: var(--muted); margin-top: 3px; }
.geo-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 5px; }
.geo-card p { color: var(--muted); font-size: 13px; }
.geo-card--home { border-color: rgba(255, 196, 0, .5); background: linear-gradient(160deg, rgba(255, 196, 0, .09), var(--card) 60%); }
.geo-card--home .geo-card__plate { background: var(--yellow); color: #0a0a0c; border-color: var(--yellow); }
.geo-card--home .geo-card__plate small { color: rgba(0, 0, 0, .6); }

/* ---------- Таймлайн ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 16px; }
.timeline li { position: relative; }
.timeline__num {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); color: #0a0a0c;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  box-shadow: 0 10px 26px -10px rgba(255, 196, 0, .6);
}
.timeline strong { display: block; font-size: 16.5px; font-weight: 800; margin-bottom: 5px; }
.timeline li > span:last-child { color: var(--muted); font-size: 14px; }

/* ---------- CTA-полоса ---------- */
.cta-strip { position: relative; text-align: center; background: radial-gradient(700px 340px at 50% 55%, rgba(255, 196, 0, .12), transparent 75%), var(--bg-alt); }
.cta-strip__tape {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 20px, #111114 20px 40px);
  opacity: .9;
}
.cta-strip__inner { padding: 84px 20px; }
.cta-strip h2 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(26px, 5vw, 46px); line-height: 1.15; margin-bottom: 14px;
}
.cta-strip em { font-style: normal; color: var(--yellow); }
.cta-strip p { color: var(--muted); margin-bottom: 32px; font-size: 16px; }

/* ---------- Подвал ---------- */
.footer { padding: 64px 0 28px; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.footer__col--main { max-width: 320px; }
.footer__about { margin-top: 16px; color: var(--muted); font-size: 14px; }
.footer h4 { font-family: var(--font-head); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: rgba(255, 196, 0, .7); margin-bottom: 16px; }
.footer p { margin-bottom: 10px; font-size: 14.5px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--yellow); }
.footer__addr { color: var(--muted); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer__bottom p { margin: 0; }

/* ---------- Появление при скролле ----------
   Прячем блоки только когда JS точно работает (html.js) —
   без JS весь контент виден сразу */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Мобильная шапка: переключатель языков вместо кнопки ---------- */
@media (max-width: 600px) {
  /* на телефоне кнопку заявки в шапке прячем — её роль берут кнопки-развилки
     в hero, повторный CTA и футер; освобождаем место под переключатель языков */
  .header__actions .btn--sm { display: none; }
}

/* ---------- Сверхузкие экраны ---------- */
@media (max-width: 400px) {
  .logo__text { font-size: 13px; }
  .logo__text small { display: none; }
  .logo__mark, .logo__mark svg { width: 32px; height: 32px; }
  .header__inner { gap: 8px; }
  .lang-switch button { padding: 5px 8px; }
  .btn--sm { padding: 9px 12px; font-size: 13px; }
}
@media (max-width: 360px) {
  .logo__text { display: none; }
}
@media (max-width: 480px) {
  .btn--outline { white-space: normal; width: 100%; padding: 12px 16px; font-size: 14px; }
}

/* ---------- Планшет ---------- */
@media (min-width: 640px) {
  .header__phone { display: inline-flex; }
  .hero__fork { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .role-cards { grid-template-columns: 1fr 1fr; }
  .fields-2col { grid-template-columns: 1fr 1fr; }
  .lead-form { padding: 36px 40px 32px; }
  .stepper em { font-size: 12px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .services { grid-template-columns: 1fr 1fr; }
  .service--wide { grid-column: 1 / -1; }
  .geo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr .8fr 1fr; }
}

/* ---------- Десктоп ---------- */
@media (min-width: 980px) {
  .header__nav { display: flex; }
  .hero__crane { right: 0; width: 620px; opacity: .55; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .geo { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .geo-card { padding: 22px 18px; }
  .geo-card h3 { font-size: 15px; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .timeline li::after {
    content: ""; position: absolute; top: 22px; left: 62px; right: 6px;
    border-top: 2px dashed rgba(255, 196, 0, .28);
  }
  .timeline li:last-child::after { display: none; }
}

/* ==================== СЛОЙ ДВИЖЕНИЯ ==================== */

/* Прогресс-бар скролла */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-2));
  box-shadow: 0 0 14px rgba(255, 196, 0, .6);
  pointer-events: none;
}

/* Шапка уплотняется при скролле */
.header { transition: background .25s ease, box-shadow .25s ease; }
.header--scrolled { background: rgba(10, 10, 12, .94); box-shadow: 0 12px 34px -18px rgba(0, 0, 0, .9); }

/* Параллакс-слои hero */
.hero__crane, .hero__skyline { will-change: transform; }
.hero__glow { transition: transform .5s cubic-bezier(.22, 1, .36, 1); will-change: transform; }

/* Качающийся крюк */
.crane__hook { transform-box: fill-box; transform-origin: 50% 0%; animation: hookSwing 3.6s ease-in-out infinite alternate; }
@keyframes hookSwing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* Пословное появление заголовка hero */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero__title .w > span {
  display: inline-block; transform: translateY(115%);
  animation: wordUp .75s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}
@keyframes wordUp { to { transform: translateY(0); } }

/* Блик-«шайн» по основным кнопкам */
.btn--yellow, .btn--red, .fork-btn { position: relative; overflow: hidden; }
.btn--yellow::before, .btn--red::before, .fork-btn::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -80%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
.btn--yellow:hover::before, .btn--red:hover::before, .fork-btn:hover::before { animation: shine .8s ease forwards; }
@keyframes shine { from { left: -80%; opacity: 1; } to { left: 130%; opacity: 1; } }

/* «Прожектор» за курсором на тёмных карточках */
.geo-card { position: relative; }
.card::after, .service::after, .geo-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 196, 0, .1), transparent 65%);
}
.card:hover::after, .service:hover::after, .geo-card:hover::after { opacity: 1; }

/* Обратная бегущая строка */
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 52s; }
.marquee--reverse .marquee__track span { color: rgba(255, 196, 0, .35); }
.marquee--reverse .marquee__track i { color: rgba(255, 255, 255, .35); }

/* Переливающийся градиент в CTA */
.cta-strip em {
  background: linear-gradient(90deg, var(--yellow), #ffe9a3, var(--yellow));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 3.5s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }

/* ---------- Уважение к reduce-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crane__trolley, .crane__hoist, .crane__beacon, .crane__hook, .hazard, .marquee__track,
  .hero__badge-dot, .cta-strip em { animation: none; }
  .hero__title .w { overflow: visible; }
  .hero__title .w > span { transform: none; animation: none; }
  .btn--yellow::before, .btn--red::before, .fork-btn::before { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
