:root {
  --bg: #0d1310;
  --bg-2: #121a15;
  --surface: #17211b;
  --surface-2: #1d2a22;
  --line: rgba(232, 240, 233, 0.1);
  --fg: #eef3ee;
  --muted: #a3b1a6;
  --dim: #74847a;
  --accent: #ff7a1a;
  --accent-2: #ff9a4d;
  --wa: #25d366;
  --wa-dark: #1ebe5b;
  --radius: 22px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #111; }

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), background .2s ease, border-color .2s ease, box-shadow .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn--wa { background: var(--wa); color: #06210f; box-shadow: 0 8px 30px rgba(37, 211, 102, .25); }
.btn--wa:hover { background: #2ee070; box-shadow: 0 12px 36px rgba(37, 211, 102, .35); }
.btn--accent { background: var(--accent); color: #1a0d03; }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: rgba(238, 243, 238, .28); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: rgba(238, 243, 238, .6); }
.btn--light { background: #f4f1ea; color: #14130f; }
.btn--light:hover { background: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 19, 16, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(13, 19, 16, .88); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__icon { width: 34px; height: 34px; color: var(--accent); flex: none; }
.logo__text { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.1; display: grid; }
.logo__text small { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--fg); }
.header__phone { font-weight: 600; font-size: 15px; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .nav { display: none; }
  .header__phone { margin-left: auto; }
}
@media (max-width: 620px) {
  .header__inner { min-height: 64px; gap: 12px; }
  .header__phone { display: none; }
  .header__wa { margin-left: auto; }
  .header__wa span { display: none; }
  .header__wa { width: 44px; padding: 0; }
}

/* ---------- Главный экран ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(255, 122, 26, .16), transparent 60%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 122, 26, .1); border: 1px solid rgba(255, 122, 26, .3);
  color: var(--accent-2); font-size: 14px; font-weight: 600;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); } }
.hero h1 {
  margin-top: 22px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.03em;
}
.hero__lead { margin-top: 22px; max-width: 34ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__points { display: grid; gap: 10px; margin-top: 32px; color: var(--fg); font-weight: 500; }
.hero__points li { display: flex; align-items: center; gap: 10px; }
.hero__points svg { width: 22px; height: 22px; color: var(--wa); flex: none; padding: 3px; border-radius: 50%; background: rgba(37, 211, 102, .12); }

.hero__media { position: relative; }
.hero__photo { border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero__photo:first-child { aspect-ratio: 4 / 5; margin-left: 12%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--small {
  position: absolute; left: 0; bottom: -6%;
  width: 46%; aspect-ratio: 4 / 3;
  border: 5px solid var(--bg); border-radius: 22px;
}
.hero__tag {
  position: absolute; right: -2%; top: 8%;
  display: grid; gap: 2px;
  padding: 14px 18px; border-radius: 18px;
  background: rgba(13, 19, 16, .82); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px; color: var(--muted);
}
.hero__tag strong { color: var(--fg); font-size: 16px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo:first-child { margin-left: 0; aspect-ratio: 4 / 4.2; }
  .hero__photo--small { width: 42%; left: auto; right: 4%; bottom: -8%; }
  .hero__tag { right: auto; left: 4%; top: 4%; }
  .hero__cta .btn { flex: 1 1 220px; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 60px); }
.section__head--left { justify-items: start; text-align: left; margin-left: 0; }
.section__head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.section__head p { color: var(--muted); font-size: 18px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 26, .4); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 122, 26, .12); color: var(--accent); margin-bottom: 6px; }
.card__icon svg { width: 26px; height: 26px; fill: currentColor; }
.card h3 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.card__link { margin-top: 6px; color: var(--accent-2); font-weight: 600; font-size: 15px; }
.card__link:hover { color: var(--accent); }
@media (max-width: 1050px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .card { padding: 22px; } }

/* ---------- Почему мы ---------- */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.why__photo { position: sticky; top: 100px; border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 4; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.why__list li { display: flex; gap: 16px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.why__list b { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent); padding-top: 2px; }
.why__list h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.why__list p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why__photo { position: relative; top: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .why__list { grid-template-columns: 1fr; } }

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery__item {
  position: relative; overflow: hidden;
  padding: 0; border: 0; border-radius: 18px;
  background: var(--surface);
  cursor: zoom-in;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  font-size: 14px; font-weight: 600; text-align: left;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 420px) { .gallery { grid-auto-rows: 150px; gap: 8px; } }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps span {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #1a0d03;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  margin-bottom: 18px;
}
.steps h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Районы ---------- */
.areas { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.areas .section__head { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 12px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 15.5px;
}
.chips li::before { content: "📍"; margin-right: 8px; font-size: 13px; }
.chips__accent { background: rgba(255, 122, 26, .12) !important; border-color: rgba(255, 122, 26, .35) !important; color: var(--accent-2); }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Призыв ---------- */
.cta { padding: 0 0 clamp(72px, 9vw, 120px); }
.cta__inner {
  display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  background:
    linear-gradient(110deg, rgba(13, 19, 16, .94) 30%, rgba(13, 19, 16, .55)),
    url("img/crane-site.webp") center 40% / cover no-repeat;
  border: 1px solid var(--line);
}
.cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; }
.cta p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.cta__buttons { display: grid; gap: 12px; }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } .cta__buttons .btn { width: 100%; } }

/* ---------- Вопросы ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s ease; }
.faq details[open] { border-color: rgba(255, 122, 26, .35); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__contacts { display: flex; gap: 22px; font-weight: 600; }
.footer__contacts a:hover { color: var(--accent); }
.footer__note { width: 100%; color: var(--dim); font-size: 14px; }

/* ---------- Нижняя панель (телефон) ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 19, 16, .9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 52px; }
}

/* ---------- Просмотр фото ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(5, 8, 6, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lightbox__close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); font-size: 30px; line-height: 1; cursor: pointer;
}

/* ---------- Появление при скролле ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .badge i { animation: none; }
}
