/* =========================================================
   КИППром — корпоративный сайт
   Стили: тёмная «инженерная» тема, янтарный акцент
   ========================================================= */

/* ---------- Токены ---------- */
:root {
  --bg: #080d14;
  --bg-soft: #0b131d;
  --panel: #0d1724;
  --card: #101b29;
  --card-2: #0b141e;
  --line: #1d2b3d;
  --line-soft: rgba(255, 255, 255, .06);
  --text: #e9eff7;
  --muted: #94a6ba;
  --muted-2: #6f8499;
  --accent: #ffb43a;
  --accent-2: #ffc76b;
  --accent-ink: #1b1205;
  --accent-soft: rgba(255, 180, 58, .10);
  --accent-line: rgba(255, 180, 58, .26);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 68px;

  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;

  --shadow-card: 0 26px 60px -28px rgba(0, 0, 0, .85);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, а не hidden: hidden делает body скролл-контейнером и ломает sticky-шапку */
  overflow-x: clip;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #1b1205; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 28px);
}

/* ---------- Иконки ---------- */
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; stroke-width: 1.7; }
.icon--xs { width: 14px; height: 14px; stroke-width: 1.8; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 14px 30px -14px rgba(255, 170, 36, .65);
}
.btn--primary:hover {
  box-shadow: 0 20px 36px -14px rgba(255, 170, 36, .8);
  background: linear-gradient(180deg, #ffd183, #ffb43a);
}

.btn--ghost {
  border-color: #2b3d53;
  color: var(--text);
  background: rgba(255, 255, 255, .02);
}
.btn--ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: #fff;
}

.btn--sm { padding: 11px 18px; font-size: 14px; border-radius: 10px; }
.btn--full { width: 100%; }

/* =========================================================
   Шапка
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 20, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 17, .94);
}

.topbar {
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted-2);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}
.topbar__left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item .icon { color: var(--accent); opacity: .8; }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar__right a { transition: color .2s; }
.topbar__right a:hover { color: var(--accent); }
.topbar__right strong { color: var(--text); font-weight: 600; }
.topbar__sep { width: 1px; height: 14px; background: var(--line); }

.header__bar { border-bottom: 1px solid var(--line-soft); }
.header__in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.logo__text small {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 3px;
}

/* Навигация */
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 4px; }
.site-nav__list a {
  display: block;
  padding: 9px 13px;
  font-size: 14.5px;
  color: #c3d0de;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.site-nav__list a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.site-nav__phone { display: none; }

.header__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header__phone {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s;
}
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(255, 180, 58, .10), transparent 62%),
    radial-gradient(700px 500px at 8% 92%, rgba(38, 86, 140, .16), transparent 66%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 75% at 55% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 75% at 55% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 180, 58, .14);
}

.hero h1 {
  font-size: clamp(2rem, 4.3vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 700;
  margin-bottom: 22px;
  max-width: 17ch;
}
.hero h1 .accent { color: var(--accent); white-space: nowrap; }

.lead {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.68;
  color: var(--muted);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.hero__chips li {
  padding: 6px 13px;
  font-size: 12.5px;
  color: #b9c8d8;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
}

.hero__art { position: relative; max-width: 520px; margin-left: auto; }
.hero__art::before {
  content: "";
  position: absolute;
  inset: -16% -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 45%, rgba(255, 180, 58, .2), transparent 62%);
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}

.hero-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 180, 58, .28);
  background: #0b131d;
  box-shadow: 0 44px 80px -34px rgba(0, 0, 0, .95);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 20, 0) 42%, rgba(6, 10, 16, .62) 100%);
  pointer-events: none;
}
.hero-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(8, 15, 24, .84);
  border: 1px solid var(--accent-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  color: #f0f6fd;
}
.hero-photo figcaption .icon { width: 15px; height: 15px; color: var(--accent); }

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.stat { padding-right: 18px; }
.stat__value {
  display: inline-block;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
}
.stat__unit {
  font-size: 13px;
  color: var(--accent);
  margin-left: 6px;
  font-weight: 600;
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
  max-width: 22ch;
}

/* =========================================================
   Общие секции
   ========================================================= */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}
.section__sub {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}
.section__head--center .section__sub { margin-inline: auto; }

/* Появление при скролле.
   Анимируем отдельным свойством translate, чтобы не занимать transform —
   он нужен карточкам для hover-подъёма. */
.js .reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .7s var(--ease), translate .7s var(--ease), transform .3s var(--ease), border-color .3s;
}
.js .reveal.is-in { opacity: 1; translate: none; }

/* =========================================================
   Услуги
   ========================================================= */
.services { background: var(--bg-soft); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.services__grid > * { grid-column: span 2; }
.services__grid > *:nth-child(4),
.services__grid > *:nth-child(5) { grid-column: span 3; }

.card {
  position: relative;
  background: linear-gradient(168deg, #101c2b 0%, #0b141e 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95);
}

.service { padding: 26px 26px 24px; display: flex; flex-direction: column; }
.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.icon-box--sm { width: 40px; height: 40px; border-radius: 11px; }
.service__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: #3e5470;
}
.service h3 {
  font-size: 17.5px;
  line-height: 1.35;
  font-weight: 650;
  margin-bottom: 12px;
  letter-spacing: -.005em;
  max-width: 26ch;
}
.service p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
  margin-bottom: 18px;
}
.ticks { margin-top: auto; display: grid; gap: 9px; }
.ticks li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #a9b9ca;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--accent);
  opacity: .7;
}

/* =========================================================
   О компании
   ========================================================= */
.about { background: var(--bg); }
.about__in {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 10px;
}
.about__visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 58, .13), transparent 68%);
  filter: blur(10px);
}

.sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 392px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.sheet--back { transform: translate(calc(-50% + 26px), calc(-50% + 14px)) rotate(7deg); opacity: .22; }
.sheet--mid { transform: translate(calc(-50% + 13px), calc(-50% + 7px)) rotate(3.5deg); opacity: .45; }

.doc {
  position: relative;
  width: min(320px, 84vw);
  min-height: 400px;
  padding: 20px 20px 16px;
  border-radius: 8px;
  background: #f6f8fb;
  color: #1b232e;
  font-size: 10.5px;
  line-height: 1.35;
  transform: rotate(-2deg);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85);
}
.doc__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #1b232e;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  color: #5a6879;
}
.doc__title {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.doc__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: #7d8b9c;
}
.doc__lines { display: grid; gap: 5px; margin: 12px 0; }
.doc__lines i { display: block; height: 4px; border-radius: 2px; background: #dbe2ea; }
.doc__scheme {
  border: 1px dashed #c9d3de;
  border-radius: 4px;
  padding: 4px;
  background: #fff;
}
.doc__scheme svg { display: block; width: 100%; height: auto; }
.doc__table { margin-top: 10px; border: 1px solid #c9d3de; border-radius: 3px; }
.doc__table div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 3.5px 7px;
  font-size: 8.5px;
  color: #4a5766;
  border-bottom: 1px solid #e3e9f0;
}
.doc__table div:first-child {
  background: #eef2f7;
  font-weight: 700;
  color: #2a3644;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 8px;
}
.doc__table div:last-child { border-bottom: 0; }
.doc__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid #dbe2ea;
  font-family: var(--mono);
  font-size: 8px;
  color: #8494a6;
}
.doc__stamp {
  position: absolute;
  right: 16px;
  bottom: 52px;
  padding: 4px 9px;
  border: 2px solid rgba(190, 61, 45, .65);
  border-radius: 3px;
  color: rgba(190, 61, 45, .75);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(-9deg);
}

.about__tagline {
  position: absolute;
  bottom: 22px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(13, 23, 36, .92);
  border: 1px solid var(--accent-line);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #e6eef8;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
}
.about__tagline .icon { width: 16px; height: 16px; color: var(--accent); }

.about__copy h2 { margin-bottom: 18px; }
.about__copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
}
.facts {
  display: grid;
  gap: 14px;
  margin: 26px 0 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
}
.facts .icon { color: var(--accent); width: 20px; height: 20px; margin-top: 2px; }
.facts strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.facts span { font-size: 13.5px; line-height: 1.5; color: var(--muted-2); }

/* =========================================================
   Преимущества
   ========================================================= */
.advantages { background: var(--bg-soft); }
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.adv {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  transition: border-color .3s, background .3s;
}
.adv:hover { border-color: var(--accent-line); background: rgba(255, 180, 58, .05); }
.adv__icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }
.adv h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 8px; }
.adv p { font-size: 14px; line-height: 1.62; color: var(--muted-2); }

/* =========================================================
   Этапы
   ========================================================= */
.process { background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(170deg, #0e1926, #0a121b);
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.step::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: .0;
  transition: opacity .3s;
}
.step:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.step:hover::after { opacity: .9; }
.step__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
}
.step h3 { font-size: 16.5px; font-weight: 650; margin: 10px 0 8px; }
.step p { font-size: 13.8px; line-height: 1.58; color: var(--muted); }
.step__time {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 11px;
  border: 1px solid #23364c;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: #8ea2b7;
  text-transform: uppercase;
}

/* =========================================================
   Отрасли
   ========================================================= */
.industries { background: var(--bg-soft); }
.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.industry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .25s, background .25s, color .25s;
}
.industry .icon { width: 24px; height: 24px; color: var(--accent); opacity: .9; }
.industry:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: #fff;
}

/* =========================================================
   Примеры задач
   ========================================================= */
.cases { background: var(--bg); }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(168deg, #111d2c, #0a131c);
  transition: transform .3s var(--ease), border-color .3s;
}
.case:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.case__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.case__tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.case__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #5f7388;
  letter-spacing: .04em;
  white-space: nowrap;
}
.case h3 { font-size: 18px; line-height: 1.35; font-weight: 650; margin-bottom: 10px; }
.case p { font-size: 14px; line-height: 1.62; color: var(--muted); margin-bottom: 18px; }
.case__list {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
}
.case__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #a2b3c5;
}
.case__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .6;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--bg-soft); }
.faq__in {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.faq__head { position: sticky; top: 124px; }
.faq__head h2 { margin-bottom: 14px; }
.faq__head .btn { margin-top: 26px; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-size: 15.5px;
  font-weight: 550;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 17px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.faq__item summary:hover { color: #fff; }
.faq__item summary:hover::after { border-color: var(--accent-line); background: var(--accent-soft); }
.faq__item[open] summary { color: #fff; }
.faq__item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.faq__item p {
  padding: 0 40px 22px 4px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================================================
   Контакты
   ========================================================= */
.contacts { background: var(--bg); }
.contacts__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contacts__info h2 { margin-bottom: 14px; }

.contact-list {
  display: grid;
  gap: 18px;
  margin: 30px 0 32px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
}
.contact-list__body { display: flex; flex-direction: column; gap: 2px; }
.contact-list__label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-list__body a,
.contact-list__body span:not(.contact-list__label) {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
}
.contact-list__body a:hover { color: var(--accent); }

.map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0b141f;
}
.map__art { display: block; width: 100%; height: auto; }
.map__link {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  background: rgba(9, 16, 25, .88);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  font-weight: 550;
  transition: border-color .2s, color .2s;
}
.map__link .icon { width: 14px; height: 14px; color: var(--accent); }
.map__link:hover { border-color: var(--accent-line); color: #fff; }

/* Форма */
.form {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, #0f1a27, #0a131c);
  box-shadow: var(--shadow-card);
}
.form h3 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.form__sub {
  margin: 8px 0 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted-2);
}
.field { margin-bottom: 14px; }
.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 550;
  color: #b9c8d8;
}
.field__hint { font-weight: 400; font-size: 11.5px; color: var(--muted-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #22344a;
  border-radius: 10px;
  background: #091119;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #55697e; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 180, 58, .6);
  box-shadow: 0 0 0 3px rgba(255, 180, 58, .12);
  background: #0b1520;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, #7f93a8 50%), linear-gradient(135deg, #7f93a8 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
  cursor: pointer;
}
.field select option { background: #0d1723; color: var(--text); }

.field.is-invalid input,
.field.is-invalid textarea { border-color: #e0533f; box-shadow: 0 0 0 3px rgba(224, 83, 63, .12); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 20px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-2);
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  margin: 1px 0 0;
  border: 1px solid #2b3d53;
  border-radius: 5px;
  background: #091119;
  cursor: pointer;
  position: relative;
  transition: background .2s, border-color .2s;
}
.check input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1205' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.6 4.6L19 6.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}
.check a { color: #cfdbe8; text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { color: var(--accent); }
.check.is-invalid { color: #f09283; }
.check.is-invalid input { border-color: #e0533f; }

.form__note {
  margin-top: 14px;
  font-size: 12px;
  text-align: center;
  color: var(--muted-2);
}
.form__status {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  min-height: 0;
}
.form__status:empty { display: none; }
.form__status.is-error { color: #ff9b8a; }
.form__status.is-success { color: #79e0b0; }

/* Ловушка для ботов: поле есть в разметке, но человек его не видит и не заполняет */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.btn:disabled,
.btn[disabled] {
  opacity: .62;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   Подвал
   ========================================================= */
.site-footer {
  background: #060a10;
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0 26px;
}
.footer__in {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1.1fr;
  gap: clamp(24px, 4vw, 44px);
}
.footer__brand .logo { margin-bottom: 18px; }
.footer__brand p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted-2);
  max-width: 38ch;
  margin-bottom: 18px;
}
.footer__phone {
  display: block;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.footer__phone:hover { color: var(--accent); }
.footer__mail { font-size: 14px; color: #b9c8d8; }
.footer__mail:hover { color: var(--accent); }

.footer__col h4 {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: 14px; color: #b9c8d8; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }

.footer__contacts li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.55;
  color: #b9c8d8;
}
.footer__contacts .icon { color: var(--accent); opacity: .8; margin-top: 2px; }
.footer__col--contacts .btn { margin-top: 20px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: #61748a;
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--accent); }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .header__cta { display: none; }
}

@media (max-width: 1080px) {
  .site-nav__list a { padding: 9px 10px; font-size: 14px; }
  .header__in { gap: 18px; }
  .header__phone { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  html { scroll-padding-top: 78px; }
  .topbar { display: none; }

  .burger { display: block; }
  .header__cta { display: none; }
  .header__phone { display: block; font-size: 14px; }
  .header__actions { margin-left: auto; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 14px clamp(18px, 4vw, 28px) 26px;
    background: #0a121b;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__list a {
    padding: 13px 6px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .site-nav__phone {
    display: block;
    margin-top: 18px;
    font-size: 19px;
    font-weight: 650;
    color: var(--accent);
  }

  .hero__in { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
  .hero__art { max-width: 520px; margin: 8px auto 0; order: 2; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 26px 8px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid > *,
  .services__grid > *:nth-child(4),
  .services__grid > *:nth-child(5) { grid-column: span 1; }
  .services__grid > *:last-child { grid-column: span 2; }

  .about__in { grid-template-columns: 1fr; }
  .about__visual { order: 2; min-height: 400px; }

  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .cases__grid { grid-template-columns: 1fr; }
  .faq__in { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .contacts__in { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header__phone { display: none; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat__label { font-size: 12px; }
  .services__grid { grid-template-columns: 1fr; }
  .services__grid > *:last-child { grid-column: span 1; }
  .advantages__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .industries__grid { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
  .about__visual { min-height: 360px; }
  .sheet { width: 262px; height: 348px; }
  .doc { width: min(280px, 86vw); }
  .about__tagline { right: auto; left: 0; bottom: 0; font-size: 11.5px; }
  .faq__item p { padding-right: 12px; }
  .contact-list__body a, .contact-list__body span:not(.contact-list__label) { font-size: 15px; }
}

@media (max-width: 380px) {
  .logo__text small { display: none; }
  .stat__value { font-size: 24px; }
}

/* =========================================================
   Доступность и печать
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}

@media print {
  .site-header, .site-footer, .hero__art, .map, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 16px 0; }
  .js .reveal { opacity: 1; translate: none; }
}

/* =========================================================
   Текстовые страницы (политика конфиденциальности)
   ========================================================= */
.legal { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 80px); }
.legal__in { max-width: 840px; }
.legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.legal__crumbs a:hover { color: var(--accent); }
.legal h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.legal__date {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted-2);
}
.legal h2 {
  margin: 32px 0 10px;
  font-size: 18.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.legal p { margin-bottom: 12px; }
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.72;
  color: #b6c5d5;
}
.legal ul { display: grid; gap: 8px; margin: 0 0 16px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--accent);
  opacity: .7;
}
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   Наши работы (галерея) и просмотр фото
   ========================================================= */
.works { background: var(--bg-soft); }

.works__grid {
  columns: 3;
  column-gap: 16px;
}
.work {
  margin: 0 0 16px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.work__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0a121b;
  cursor: zoom-in;
  transition: border-color .3s, transform .3s var(--ease);
}
.work__btn img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s var(--ease);
}
.work__btn:hover { border-color: var(--accent-line); }
.work__btn:hover img { transform: scale(1.035); }
.work__btn:focus-visible { outline-offset: 4px; }
.work figcaption {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted-2);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 56px);
  background: rgba(4, 7, 11, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  margin: 0;
  max-width: min(1200px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 90px -30px #000;
}
.lightbox__caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  max-width: 70ch;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 23, 36, .88);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--accent-line);
  background: rgba(255, 180, 58, .14);
  color: #fff;
}
.lightbox__close {
  top: clamp(12px, 2vw, 22px);
  right: clamp(12px, 2vw, 22px);
  width: 44px;
  height: 44px;
}
.lightbox__nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 24px); }
.lightbox__nav--prev .icon { transform: rotate(180deg); }

@media (max-width: 980px) {
  .works__grid { columns: 2; }
}

@media (max-width: 640px) {
  .works__grid { columns: 1; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__img { max-height: 72vh; }
}
