/* ============================================================
   ITKIM — KIM Project Management. Landing
   Palette: #00579E (brand blue) / #0B0F14 (ink) / #FFFFFF
   Type:    Montserrat (display) + Mulish (text)
   ============================================================ */

:root {
  --blue: #00579E;
  --blue-dark: #004B88;
  --blue-deep: #003F73;
  --blue-08: rgba(0, 87, 158, 0.08);
  --blue-12: rgba(0, 87, 158, 0.12);
  --ink: #0B0F14;
  --gray: #4A5560;
  --gray-light: #8A95A1;
  --mist: #EDF2F8;      /* watermark / light panels */
  --paper: #FFFFFF;
  --paper-soft: #F7FAFD;
  --line: #DCE4EC;

  --font-display: "Montserrat", "Arial Black", sans-serif;
  --font-text: "Mulish", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --radius: 14px;
  --header-h: 76px;

  --shadow-sm: 0 2px 10px rgba(11, 22, 39, 0.06);
  --shadow-md: 0 14px 40px rgba(11, 22, 39, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 63, 115, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

::selection { background: var(--blue); color: #fff; }

/* Accessible focus ring */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.contacts a:focus-visible,
.footer a:focus-visible,
.stats :focus-visible { outline-color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none !important; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

/* scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--blue), #4C9BE0);
  transition: width 0.1s linear;
  will-change: width;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__mark {
  width: 40px;
  height: 41px;
  color: var(--blue);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand__divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}
.brand__caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav__link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transition: right 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }

.header__phone {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.25s;
}
.header__phone:hover { color: var(--blue); }
.header__cta { flex-shrink: 0; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--blue-08), transparent 60%),
    var(--paper);
}
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 2;
  padding-bottom: 44px;
}

.hero__content { max-width: 620px; }

/* Hero gallery — asymmetric case mosaic */
.hero__gallery {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1.04;
  margin-left: auto;
}
.hero__gallery::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 62%;
  height: 58%;
  background: var(--blue-08);
  border: 1.5px solid var(--blue-12);
  border-radius: 22px;
  z-index: -1;
}
.hero__tile {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero__tile--tall { grid-row: 1 / 3; }
.hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.hero__tile:hover img { transform: scale(1.06); }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}
.hero__eyebrow .line {
  width: 46px;
  height: 2px;
  background: var(--blue);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.accent { color: var(--blue); }

.hero__lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 520px;
  padding-left: 20px;
  border-left: 2px solid var(--blue);
  margin-bottom: 38px;
}
.hero__lead strong { color: var(--ink); }

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 17px 34px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn[data-magnetic] { will-change: transform; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 87, 158, 0.32);
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 87, 158, 0.4);
}

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-08);
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 12px 30px rgba(0, 20, 40, 0.25);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 20, 40, 0.3);
}

/* Trusted by */
.trusted {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.trusted__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.trusted__label {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.marquee {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee__list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
  padding-right: 54px;
  margin-right: 54px;
}
.marquee__list li::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
  opacity: 0.7;
}
.tb-logo {
  height: 29px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.marquee__list li:hover .tb-logo { filter: none; opacity: 1; }
.tb-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--ink);
  opacity: 0.5;
  transition: opacity 0.35s var(--ease);
}
.tb-word--serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.marquee__list li:hover .tb-word { opacity: 0.85; }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding: 110px 0; }

.section__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}
.section__num::after {
  content: "";
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  width: 44px;
  height: 1.5px;
  background: var(--blue);
  opacity: 0.5;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section__side-note {
  max-width: 340px;
  color: var(--gray);
  font-size: 16.5px;
  line-height: 1.6;
  padding-left: 18px;
  border-left: 2px solid var(--blue);
  margin-bottom: 6px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding-top: 120px; }
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.about__left {
  position: relative;
  padding-left: 26px;
}
.about__left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(var(--blue), rgba(0, 87, 158, 0.15));
}

.about__right {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 10px;
}
.statement {
  position: relative;
  padding-bottom: 34px;
}
.statement:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--blue);
  opacity: 0.6;
}
.statement p {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
  font-weight: 500;
}
.statement .accent { font-weight: 700; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -30%, rgba(0, 87, 158, 0.30), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 60px 0;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 8px;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 5vw, 66px);
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__num::after {
  content: attr(data-suffix);
  color: #4C9BE0;
}
.stat__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  position: relative;
  background: var(--paper-soft);
  overflow: hidden;
}
.services__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.services__left {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  padding-left: 26px;
}
.services__left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  height: 120px;
  width: 3px;
  background: linear-gradient(var(--blue), rgba(0, 87, 158, 0.15));
}

.services__list { position: relative; }
.service {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 8px;
  border-bottom: 1.5px solid var(--line);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 600;
  cursor: default;
  transition: padding-left 0.3s var(--ease), border-color 0.3s;
}
.service:first-child { border-top: 1.5px solid var(--line); }
.service__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue);
  transition: transform 0.3s var(--ease);
}
.service:hover {
  padding-left: 20px;
  border-bottom-color: var(--blue);
}
.service:hover .service__chevron { transform: translateX(6px); }

/* Pillars */
.pillars {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.pillar {
  padding: 34px 36px;
  position: relative;
  transition: background 0.3s;
}
.pillar:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: var(--line);
}
.pillar:hover { background: var(--paper-soft); }
.pillar__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.pillar__text { color: var(--gray); font-size: 16px; }

/* ============================================================
   CASES
   ============================================================ */
/* Ровная сетка: одинаковые карточки 3 в ряд, единая пропорция кадра 3:2 */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card__body { display: flex; flex-direction: column; }
.case-card__tags { margin-top: auto; padding-top: 4px; }
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 87, 158, 0.35);
}
.case-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.case-card__media {
  position: relative;
  aspect-ratio: 3 / 2;   /* единая пропорция для всех карточек */
  overflow: hidden;
  background: #eef2f7;
}
.case-card__media img {
  --fx: 50%;      /* фокус по горизонтали: 0% лево … 100% право */
  --fy: 50%;      /* фокус по вертикали:   0% верх … 100% низ */
  --zoom: 1;      /* зум: 1 = ровно по кадру, больше = крупнее */
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx) var(--fy);
  transform: scale(var(--zoom));
  transform-origin: var(--fx) var(--fy);
  transition: transform 0.6s var(--ease);
}
.case-card:hover .case-card__media img { transform: scale(calc(var(--zoom) * 1.045)); }

/* ---- Фокус кадра под каждый кейс (фото кадрируется в 3:2, настраивается в /focal-editor.html) ---- */
.case-card__media img[src*="case-present-simple"] { --fy: 55%; }
.case-card__media img[src*="case-agrofood"]       { --fy: 66%; }
.case-card__media img[src*="case-eju"]            { --fy: 50%; }
.case-card__media img[src*="case-onay"]           { --fy: 42%; }
.case-card__media img[src*="case-anime"]          { --fy: 44%; }
.case-card__media img[src*="case-jung"]           { --fy: 46%; }
.case-card__media img[src*="case-valday"]         { --fy: 38%; }

/* hover scrim + "view" cue */
.case-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 63, 115, 0) 45%, rgba(0, 45, 82, 0.55));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.case-card:hover .case-card__media::after,
.case-card:focus-visible .case-card__media::after { opacity: 1; }
.case-card__cue {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.case-card__cue svg { width: 14px; height: 14px; }
.case-card:hover .case-card__cue,
.case-card:focus-visible .case-card__cue { opacity: 1; transform: none; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 26, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open .lightbox__overlay { opacity: 1; }
.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  width: min(960px, 100%);
  max-height: min(88vh, 640px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 20, 40, 0.5);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.lightbox.is-open .lightbox__dialog { transform: none; opacity: 1; }
.lightbox__media {
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: min(88vh, 640px);
}
.lightbox__info {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.lightbox__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.lightbox__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.lightbox__meta {
  color: var(--gray-light);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 18px;
}
.lightbox__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.lightbox__tags span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-08);
  border: 1px solid var(--blue-12);
  padding: 6px 12px;
  border-radius: 999px;
}
.lightbox__desc {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.lightbox__cta { align-self: flex-start; margin-top: auto; }
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s, transform 0.25s var(--ease);
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__close:hover { background: #fff; transform: rotate(90deg); }

.case-card__body { padding: 24px 26px 26px; border-top: 1px solid var(--line); }
.case-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 4px;
}
.case-card__meta {
  color: var(--gray-light);
  font-style: italic;
  font-size: 15px;
  margin-bottom: 16px;
}
.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-card__tags span {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--blue-08);
  border: 1px solid var(--blue-12);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================================================
   JOINT PROJECTS
   ============================================================ */
.joint { background: var(--paper-soft); }
/* Masonry: фото партнёров — целиком, в своих пропорциях */
.joint__grid {
  column-count: 3;
  column-gap: 22px;
}
.joint__item {
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.joint__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease);
}
.joint__item:hover img { transform: scale(1.06); }
.joint__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 22px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(5, 15, 30, 0.72));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.joint__item:hover figcaption { opacity: 1; transform: none; }

/* ============================================================
   DIRECTIONS
   ============================================================ */
.directions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.direction {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.direction::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.direction:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 87, 158, 0.35);
}
.direction:hover::before { transform: scaleY(1); }

.direction__icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--blue-08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.direction__icon svg { width: 36px; height: 36px; }
.direction:hover .direction__icon {
  background: var(--blue);
  color: #fff;
  transform: scale(1.06);
}
.direction__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  color: var(--blue);
  margin-bottom: 14px;
}
.direction__text { color: var(--gray); font-size: 16px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--paper-soft);
  overflow: hidden;
}
.process__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.process__left {
  position: relative;
  padding-left: 26px;
}
.process__left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  height: 130px;
  width: 3px;
  background: linear-gradient(var(--blue), rgba(0, 87, 158, 0.15));
}
.process__desc {
  margin-top: 24px;
  font-size: 18px;
  color: var(--gray);
  max-width: 380px;
}

/* Wheel */
.process__wheel-wrap { display: flex; justify-content: center; }
.wheel {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
  margin: 40px 40px 56px;
}
.wheel__ring {
  position: absolute;
  inset: 0;
  color: #C2CFDC;
}

.wheel__step {
  position: absolute;
  top: var(--sy);
  left: var(--sx);
  z-index: 2;
}
/* node coordinates on the r=46% circle (angles −90…210 step 60) */
.wheel__step[style*="-90deg"]        { --sx: 50%;    --sy: 4%; }
.wheel__step[style*="--angle: -30deg"] { --sx: 89.84%; --sy: 27%; }
.wheel__step[style*="--angle: 30deg"]  { --sx: 89.84%; --sy: 73%; }
.wheel__step[style*="--angle: 90deg"]  { --sx: 50%;    --sy: 96%; }
.wheel__step[style*="150deg"]        { --sx: 10.16%; --sy: 73%; }
.wheel__step[style*="210deg"]        { --sx: 10.16%; --sy: 27%; }
.wheel__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(0, 87, 158, 0.35);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.wheel__step:hover .wheel__dot {
  transform: scale(1.12);
  background: var(--blue-dark);
}
.wheel__label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
  transform: translate(-50%, -50%) translate(var(--lx, 0), var(--ly, 0));
  text-align: center;
  pointer-events: none;
}

/* label offsets per node position */
.wheel__step[style*="-90deg"] .wheel__label { --ly: -64px; }
.wheel__step[style*="--angle: 90deg"] .wheel__label { --ly: 66px; }
.wheel__step[style*="-30deg"] .wheel__label { --lx: 132px; --ly: -34px; text-align: left; }
.wheel__step[style*="--angle: 30deg"] .wheel__label { --lx: 132px; --ly: 36px; text-align: left; }
.wheel__step[style*="150deg"] .wheel__label { --lx: -132px; --ly: 36px; text-align: right; }
.wheel__step[style*="210deg"] .wheel__label { --lx: -132px; --ly: -34px; text-align: right; }

/* Fallback list (mobile) */
.process__list { display: none; }

/* ============================================================
   CONTACTS + FOOTER
   ============================================================ */
.contacts {
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
    linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding-top: 96px;
}
.contacts__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.contacts__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.contacts__title span { color: #9CC4E8; }

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 64px 0 80px;
}
.contact { text-align: left; }
.contact__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 26px rgba(0, 25, 50, 0.28);
  transition: transform 0.3s var(--ease);
}
.contact:hover .contact__icon { transform: translateY(-4px) scale(1.05); }
.contact__icon svg { width: 28px; height: 28px; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
}
.contact__value {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.85);
}
.contact__value em { font-style: italic; }
.contact__value a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.25s, color 0.25s;
}
.contact__value a:hover { color: #fff; border-bottom-color: #fff; }

/* Footer */
.footer {
  background: rgba(0, 25, 50, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 26px;
}
.brand--footer .brand__mark,
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__caption { color: rgba(255, 255, 255, 0.75); }
.brand--footer .brand__divider { background: rgba(255, 255, 255, 0.3); }
.footer__copy {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1439px) {
  .wheel__label { width: 150px; font-size: 13.5px; }
  .wheel__step[style*="-30deg"] .wheel__label { --lx: 116px; }
  .wheel__step[style*="--angle: 30deg"] .wheel__label { --lx: 116px; }
  .wheel__step[style*="150deg"] .wheel__label { --lx: -116px; }
  .wheel__step[style*="210deg"] .wheel__label { --lx: -116px; }
}

@media (max-width: 1279px) {
  /* wheel needs side room for labels — stack the process section early */
  .process__grid { grid-template-columns: 1fr; gap: 24px; }
  .process__wheel-wrap { margin-top: 10px; }
}

@media (max-width: 1100px) {
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1400px) {
  /* phone lives in the CTA and contacts — drop it from the bar to keep the row tidy */
  .header__phone { display: none; }
}

@media (max-width: 1120px) {
  .nav { display: none; }
  .burger { display: flex; }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 28px 20px;
    margin: 0;
  }
  .nav.is-open .nav__link {
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--paper-soft);
  }

  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__gallery { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 42px 24px; }
  .stat:not(:last-child)::after { display: none; }
  .about__grid, .services__grid { grid-template-columns: 1fr; gap: 48px; }
  .services__left { position: static; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 44px; }
  .directions__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }

  .joint__grid { column-count: 2; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero__lead { font-size: 17px; }
  .trusted__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header__phone { display: none; }

  /* wheel → vertical list */
  .wheel { display: none; }
  .process__list {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .process__list li {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
    font-size: 17px;
    padding: 16px 0;
    border-bottom: 1.5px solid var(--line);
  }
  .process__list li:first-child { border-top: 1.5px solid var(--line); }
  .process__list li span {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(0, 87, 158, 0.3);
  }

  .cases__grid { grid-template-columns: 1fr; }

  .lightbox__dialog { grid-template-columns: 1fr; max-height: 90vh; }
  .lightbox__media { max-height: 40vh; }
  .lightbox__media img { max-height: 40vh; }
  .lightbox__info { padding: 28px 24px; }
  .joint__grid { column-count: 1; }
  .contacts__grid { grid-template-columns: 1fr; gap: 36px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:not(:last-child)::after {
    right: 22px; left: 22px; top: auto; bottom: 0;
    width: auto; height: 1px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .header__cta { display: none; }
  .brand__caption { display: none; }
  .brand__divider { display: none; }
  .hero__actions .btn { width: 100%; }
}
