@font-face {
  font-family: "Tanker";
  src: url("../fonts/tanker.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Cool workshop: steel + lift blue + signal orange (not Technostroy cream) */
:root {
  --ink: #0e1218;
  --ink-soft: #4a5564;
  --steel: #c8d0da;
  --steel-deep: #aeb8c6;
  --floor: #0a0e14;
  --surface: #141b26;
  --lift: #1a5fb4;
  --lift-glow: #2d7fe0;
  --cta: #e85d04;
  --cta-hover: #c44d03;
  --wa: #128c4a;
  --wa-hover: #0e733c;
  --vk: #4680c2;
  --tg: #229ed9;
  --vb: #7360f2;
  --yandex: #fc3f1d;
  --gis: #6cb33f;
  --on-dark: #eef3f8;
  --muted-on-dark: #9aabbd;
  --focus: #7dd3fc;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--steel);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.ico {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-cta {
  background: var(--cta);
}
.chip-cta:hover {
  background: var(--cta-hover);
  color: #fff;
}
.chip-wa {
  background: var(--wa);
}
.chip-wa:hover {
  background: var(--wa-hover);
}
.chip-vk {
  background: var(--vk);
}
.chip-vk:hover,
.chip-tg:hover,
.chip-vb:hover,
.chip-yandex:hover,
.chip-2gis:hover {
  filter: brightness(1.08);
}
.chip-tg {
  background: var(--tg);
}
.chip-vb {
  background: var(--vb);
}
.chip-yandex {
  background: var(--yandex);
}
.chip-2gis {
  background: var(--gis);
}
.chip-dark {
  background: var(--ink);
  color: var(--steel);
}
.chip-dark:hover {
  background: #000;
  color: #fff;
}

/* Compact nav — no horizontal scroll clip */
.nav {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: min(calc(100% - 1rem), 40rem);
  max-width: calc(100vw - 1rem);
  padding: 0.3rem 0.3rem 0.3rem 0.85rem;
  background: var(--steel);
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid rgba(14, 18, 24, 0.18);
  overflow: hidden;
}

.brand {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  font-family: "Tanker", system-ui, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.85rem;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(14, 18, 24, 0.08);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
}

.nav-phone:hover {
  background: var(--cta-hover);
  color: #fff;
}

.nav-phone-label {
  display: none;
}

@media (min-width: 640px) {
  .nav-phone {
    width: auto;
    padding: 0 0.9rem;
  }

  .nav-phone-label {
    display: inline;
    font-size: 0.88rem;
    font-weight: 700;
  }
}

/* Hero — bluish floor as works; bolts layer, no glow */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  color: var(--on-dark);
  overflow: hidden;
  background: var(--surface);
  padding: 4.25rem 0 3.5rem;
}

.hero-bolts {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  opacity: 1;
}

.hero-logo,
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin: 0;
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: visible;
}

.hero-logo img {
  display: block;
  width: min(92%, 28rem);
  max-width: 100%;
  height: auto;
  max-height: min(72svh, 38rem);
  object-fit: contain;
  object-position: center center;
  /* dissolve black photo plate into hero floor */
  mix-blend-mode: lighten;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 40rem);
  margin: 0 auto;
  padding: 0.75rem 0 0;
  text-align: center;
}

.hero-place {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
}

.hero-line {
  margin: 0 auto 1.2rem;
  max-width: 30ch;
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  line-height: 1.4;
  color: rgba(238, 243, 248, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    grid-template-rows: auto;
    align-items: center;
    column-gap: 2.75rem;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    padding: 6.5rem max(1.5rem, calc((100% - 68rem) / 2)) 3.25rem;
  }

  .hero-logo {
    position: relative;
    overflow: visible;
    justify-self: end;
    width: min(100%, 28rem);
  }

  .hero-logo img {
    width: 100%;
    max-width: 28rem;
    max-height: min(56svh, 28rem);
  }

  .hero-content {
    width: auto;
    max-width: 28rem;
    margin: 0;
    padding: 0;
    text-align: left;
    justify-self: start;
  }

  .hero-line {
    margin: 0 0 1.35rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .services {
    margin-top: -1.5rem;
  }
}

/* Services — inset steel slab over hero */
.services {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
  padding: 0 0 2rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.services-slab {
  width: min(100% - 1rem, 70rem);
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  background: var(--steel);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -18px 40px rgba(10, 14, 20, 0.4);
  border: 1px solid rgba(14, 18, 24, 0.12);
  border-bottom: 0;
}

.services-head {
  margin-bottom: 1.25rem;
}

.services-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.services-head h2 {
  margin: 0;
  font-family: "Tanker", system-ui, sans-serif;
  font-size: clamp(2.6rem, 8vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 400;
}

.services-stack {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.5rem;
}

.svc {
  position: relative;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--steel);
  border: 1px solid rgba(14, 18, 24, 0.22);
  border-radius: 2px;
  box-shadow: none;
}

.svc h3 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  font-weight: 750;
}

.svc p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
  font-size: 0.95rem;
}

.svc-a {
  transform: rotate(-0.6deg);
  z-index: 6;
}
.svc-b {
  transform: rotate(0.5deg) translateX(0.35rem);
  margin-top: -0.35rem;
  z-index: 5;
}
.svc-c {
  transform: rotate(-0.35deg);
  margin-top: -0.25rem;
  z-index: 4;
}
.svc-d {
  transform: rotate(0.4deg) translateX(-0.2rem);
  margin-top: -0.2rem;
  z-index: 3;
}
.svc-e {
  transform: rotate(-0.25deg);
  z-index: 2;
}
.svc-f {
  transform: rotate(0.55deg);
  margin-top: -0.15rem;
  z-index: 1;
}

.services-note {
  margin: 1.25rem auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .svc-a,
  .svc-b,
  .svc-c,
  .svc-d,
  .svc-e,
  .svc-f {
    transform: none;
    margin-top: 0;
  }
}

/* Works — horizontal rail overlapping services */
.works {
  position: relative;
  z-index: 3;
  margin-top: -1.5rem;
  padding: 2.5rem 0 3.5rem;
  background: var(--surface);
  color: var(--on-dark);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px rgba(10, 14, 20, 0.35);
}

.works-head {
  margin-bottom: 1.25rem;
}

.works-head h2 {
  margin: 0 0 0.4rem;
  font-family: "Tanker", system-ui, sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 400;
}

.works-head p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.95rem;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0.85rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(1.25rem, calc((100% - 68rem) / 2 + 1.25rem)) 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  align-items: stretch;
}

.rail-card {
  scroll-snap-align: start;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: min(78vw, 300px);
  background: #0b111a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 0;
}

/* One frame for every slide: same box, photo fits inside, no crop */
.rail-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #070b12;
}

.rail-case,
.rail-wide {
  width: min(78vw, 300px);
}

.rail-card figcaption {
  flex-shrink: 0;
  min-height: 3.1rem;
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--on-dark);
  background: #121925;
}

/* Visit — same light steel as «Что берём» */
.visit {
  position: relative;
  z-index: 4;
  margin-top: -1.25rem;
  padding: 3rem 0 4rem;
  background: var(--steel);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 40px rgba(10, 14, 20, 0.28);
}

.visit h2 {
  margin: 0 0 1rem;
  font-family: "Tanker", system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 400;
}

.visit-top {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.visit-addr,
.visit-hours {
  margin: 0 0 1rem;
  max-width: 34ch;
}

.visit-hours {
  color: var(--ink-soft);
}

.visit-write h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}

.map-block {
  display: grid;
  gap: 0.85rem;
}

.map-frame {
  position: relative;
  width: 100%;
  height: min(52vw, 420px);
  min-height: 280px;
  border: 1px solid rgba(14, 18, 24, 0.16);
  background: color-mix(in srgb, var(--lift) 10%, var(--steel));
  overflow: hidden;
  border-radius: 12px;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.45rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--lift) 16%, var(--steel)) 0%,
    var(--steel) 100%
  );
}

.map-ph-title {
  margin: 0;
  font-family: "Tanker", system-ui, sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.map-ph-addr {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.map-frame[data-ready="true"] iframe {
  opacity: 1;
}

.map-frame[data-ready="true"] .map-placeholder {
  display: none;
}

/* Footer — same bluish surface as works / hero */
.foot {
  position: relative;
  z-index: 5;
  background: var(--surface);
  color: var(--muted-on-dark);
  padding: 2rem 0 0;
  overflow: hidden;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.foot-top a {
  color: var(--on-dark);
}

.foot-top a:hover {
  color: var(--lift-glow);
}

.foot-mark {
  margin: 0;
  font-family: "Tanker", system-ui, sans-serif;
  font-size: clamp(5rem, 24vw, 13rem);
  line-height: 0.72;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(238, 243, 248, 0.08);
  transform: translateY(18%);
  user-select: none;
  pointer-events: none;
}

@media (max-width: 480px) {
  .nav-links a[href="#works"] {
    display: none;
  }
}

@media (min-width: 720px) {
  .services-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .svc-a,
  .svc-b,
  .svc-c,
  .svc-d,
  .svc-e,
  .svc-f {
    margin-top: 0;
  }

  .svc-a {
    transform: rotate(-1deg) translateY(0.4rem);
  }
  .svc-b {
    transform: rotate(0.8deg) translateY(-0.35rem);
  }
  .svc-c {
    transform: rotate(0.4deg) translateY(0.55rem);
  }
  .svc-d {
    transform: rotate(-0.7deg) translateY(-0.2rem);
  }
  .svc-e {
    transform: rotate(0.5deg);
  }
  .svc-f {
    transform: rotate(-0.4deg) translateY(0.3rem);
  }

  .rail-card,
  .rail-case,
  .rail-wide {
    width: 300px;
  }

  .visit-top {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .services-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}
