/* ─────────────────────────────────────────────
   Подъёмная техника — общие стили
   ───────────────────────────────────────────── */
:root {
  --paper: #f1efea;
  --paper-2: #e7e3db;
  --ink: #15171a;
  --ink-2: #3a3e44;
  --muted: #6d7177;
  --line: #d6d1c7;
  --red: #d7191f;
  --red-deep: #a80f14;
  --yellow: #f2b400;
  --yellow-hi: #ffc61a;
  --graphite: #1c1f23;

  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::after { content: ''; flex: 0 0 64px; height: 1px; background: currentColor; opacity: .5; }

.section-title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 56px); line-height: .98; letter-spacing: -.005em;
}

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Шапка ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(241, 239, 234, .94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: 100%; max-width: none; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 30px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.02; }
.brand__sub { margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: .2em; color: var(--red); text-transform: lowercase; }
.brand--light { color: #fff; }

.site-nav { display: flex; gap: clamp(16px, 2.4vw, 36px); margin-left: auto; padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line); height: 40px; align-items: center; }
.site-nav a { font-size: 14px; font-weight: 600; text-decoration: none; position: relative; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-header__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-header__phone svg { color: var(--red); }

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .site-nav { display: none; }
  .site-header__phone { margin-left: auto; }
  .brand__name { font-size: 15px; }
}
@media (max-width: 420px) {
  .site-header__phone span { display: none; }
  .site-header__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); }
}

/* ── О компании (главная) ── */
.about { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.about__grid .eyebrow { margin-bottom: 18px; }
.about__text p { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); }
.about__text p + p { margin-top: 1em; }
.facts { list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.facts__item { min-width: 0; padding: 22px 22px 0 0; display: flex; flex-direction: column; gap: 6px; }
.facts__item + .facts__item { padding-left: 22px; border-left: 1px solid var(--line); }
.facts__k { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.1; }
.facts__k { font-size: clamp(40px, 4.4vw, 64px); line-height: .9; }
.facts__item:first-child .facts__k { color: var(--red); }
.industries { list-style: none; padding: 0; margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 8px; }
.industries li { padding: 8px 14px; border: 1.5px solid var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.facts__v { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__k { font-size: clamp(30px, 10vw, 48px); }
  .facts__item { padding-right: 12px; }
  .facts__item + .facts__item { padding-left: 14px; }
  .facts__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__item:nth-child(n+3) { padding-top: 26px; }
}

/* ── Подвал ── */
.site-footer { background: var(--ink); color: #c9c6c0; }
.cta-band { background: var(--red); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.cta-band__title { font-family: var(--font-body); font-weight: 800; font-size: clamp(28px, 4vw, 52px); letter-spacing: -.02em; line-height: 1.05; }
.site-footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.site-footer__contacts { display: flex; gap: 8px 28px; flex-wrap: wrap; justify-content: center; }
.site-footer__contacts a { color: #fff; font-weight: 700; text-decoration: none; font-size: 17px; }
.site-footer__contacts a:hover { color: var(--yellow); }
.site-footer__contacts span { color: #c9c6c0; }
.site-footer__motto { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #8b8f95; text-align: right; max-width: 220px; }
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; justify-items: start; }
  .site-footer__contacts { justify-content: flex-start; flex-direction: column; }
  .site-footer__motto { text-align: left; }
}

/* ─────────────────────────────────────────────
   Портал: «двери» ящика на весь экран.
   Общий для главной (подъём) и страниц услуг (прибытие / возврат).
   ───────────────────────────────────────────── */
.portal {
  position: fixed; inset: 0; z-index: 1000;
  perspective: 1800px;
  pointer-events: none;
  color: var(--portal-ink, #fff);
}
.portal[hidden] { display: none; }
.portal__door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background-color: var(--portal-color, #1c1f23);
  /* гофра контейнера */
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.08), rgba(0,0,0,.1) 50%, rgba(255,255,255,.04)),
    repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 2px, rgba(255,255,255,.07) 2px 4px, transparent 4px 34px, rgba(0,0,0,.08) 34px 38px, transparent 38px 46px);
  backface-visibility: hidden;
  will-change: transform;
}
.portal__door--l { left: 0; transform-origin: 0 50%; box-shadow: inset -2px 0 0 rgba(0,0,0,.35); }
.portal__door--r { right: 0; transform-origin: 100% 50%; box-shadow: inset 2px 0 0 rgba(255,255,255,.12); }
/* запорные штанги дверей */
.portal__door::before, .portal__door::after {
  content: ''; position: absolute; top: 4%; bottom: 4%; width: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(0,0,0,.4), rgba(255,255,255,.25), rgba(0,0,0,.3));
}
.portal__door--l::before { right: 18%; } .portal__door--l::after { right: 6%; }
.portal__door--r::before { left: 6%; }  .portal__door--r::after { left: 18%; }
.portal__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; font-family: var(--font-display); text-transform: uppercase;
  white-space: nowrap;
}
.portal__no { display: block; font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .4em; opacity: .7; }
.portal__title { display: block; font-weight: 600; font-size: clamp(30px, 5.4vw, 84px); line-height: 1; margin-top: .2em; }
.portal__label::after {
  content: ''; display: block; margin: 22px auto 0; width: 120px; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--portal-accent, #f2b400) 0 8px, transparent 8px 16px);
}

/* до первой отрисовки при возврате на главную — экран закрыт цветом ящика */
html.is-returning body::after {
  content: ''; position: fixed; inset: 0; z-index: 999;
  background: var(--return-color, #1c1f23);
}

