/* =========================================================================
   ТОО «АВС-Лимитед» — корпоративная дизайн-система
   Палитра: глубокий navy + строительный красный + бетонные нейтрали
   ========================================================================= */

:root {
  /* Бренд */
  --navy-900: #0a1f3c;
  --navy-800: #0e2a4f;
  --navy-700: #133761;
  --navy-600: #1b4d8f;
  --navy-500: #2a63ad;
  --blue-400: #3f7fcf;
  --red-600: #c8102e;
  --red-500: #e11d3a;
  --red-700: #a30d24;
  --amber-500: #f5a623;

  /* Нейтрали */
  --ink: #14202e;
  --ink-soft: #3a4a5c;
  --muted: #5a6b7d;
  --line: #e3e8ee;
  --line-soft: #eef2f6;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-mute: #eef3f8;
  --white: #ffffff;

  /* Типографика */
  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Геометрия */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  /* Тени */
  --shadow-sm: 0 2px 8px rgba(14, 42, 79, 0.06);
  --shadow: 0 12px 30px rgba(14, 42, 79, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 60, 0.16);

  --t: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* базовый размер инлайновых SVG-иконок; контекстные правила (.btn svg и т.п.) переопределяют */
.ic { width: 18px; height: 18px; flex-shrink: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--ink-soft); }

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

/* --------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--mute { background: var(--bg-mute); }
.section--dark {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(27, 77, 143, .55), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, 0.78); }
.section--tight { padding: 64px 0; }

/* ------------------------------------------------------- section header */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red-600);
}
.sec-head.center .eyebrow::before { display: none; }
.section--dark .eyebrow { color: var(--amber-500); }
.section--dark .eyebrow::before { background: var(--amber-500); }
.sec-head p { margin-top: 16px; font-size: 1.08rem; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--red-600); color: #fff; box-shadow: 0 10px 24px rgba(200, 16, 46, 0.28); }
.btn--primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(200, 16, 46, 0.34); }
.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--navy-700); background: #fff; }
.btn--outline:hover { border-color: var(--navy-600); color: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--lg { padding: 17px 38px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.topbar {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 20px; }
.topbar a { color: rgba(255, 255, 255, 0.82); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 24px; }
.topbar .tb-right { display: flex; gap: 20px; align-items: center; }
.topbar svg { width: 15px; height: 15px; color: var(--amber-500); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.brand .brand-txt strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--navy-800);
  display: block;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.brand .brand-txt span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.menu { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.menu a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 8px 9px;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
}
.menu a:hover { color: var(--navy-700); background: var(--bg-soft); }
.menu a.active { color: var(--red-600); }
.menu a.active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 1px;
  height: 2px; background: var(--red-600); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .btn { white-space: nowrap; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.burger span { width: 26px; height: 2.5px; background: var(--navy-800); border-radius: 3px; transition: var(--t); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 31, 60, 0.94) 0%, rgba(14, 42, 79, 0.82) 42%, rgba(10, 31, 60, 0.45) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 760px; padding: 60px 0; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 9px 18px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.05em;
  color: #fff; margin-bottom: 26px;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 4px rgba(225, 29, 58, 0.25); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; }
.hero h1 .accent { color: var(--amber-500); }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, 0.85); margin: 24px 0 36px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; }
.hero__stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: #fff; line-height: 1; }
.hero__stat .num .accent { color: var(--amber-500); }
.hero__stat .lbl { font-size: 0.86rem; color: rgba(255, 255, 255, 0.7); margin-top: 6px; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255, 255, 255, 0.6); font-size: 0.78rem;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero__scroll .mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: #fff; border-radius: 3px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } }

/* --------------------------------------------------------- page header */
.page-hero {
  position: relative;
  padding: 130px 0 70px;
  color: #fff;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10, 31, 60, 0.93), rgba(19, 55, 97, 0.8)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 850px; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 660px; margin-top: 18px; font-size: 1.1rem; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 0.86rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 22px; font-family: var(--font-head); }
.breadcrumb a:hover { color: var(--amber-500); }
.breadcrumb span { color: rgba(255, 255, 255, 0.4); }

/* ------------------------------------------------------------- intro band */
.intro-band { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.8; }
.intro-band p + p { margin-top: 1em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* --------------------------------------------------------------- grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------- stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat-cell { background: #fff; padding: 38px 26px; text-align: center; transition: var(--t); }
.stat-cell:hover { background: var(--navy-800); }
.stat-cell:hover .stat-num, .stat-cell:hover .stat-lbl, .stat-cell:hover .stat-ico { color: #fff; }
.stat-cell:hover .stat-num .suf { color: var(--amber-500); }
.stat-ico { color: var(--red-600); margin-bottom: 14px; display: flex; justify-content: center; transition: var(--t); }
.stat-ico svg { width: 30px; height: 30px; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--navy-800); line-height: 1; transition: var(--t); }
.stat-num .suf { color: var(--red-600); }
.stat-lbl { color: var(--muted); margin-top: 10px; font-size: 0.92rem; transition: var(--t); }

/* ---------------------------------------------------------------- cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: var(--t);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__ico {
  width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-600));
  color: #fff; margin-bottom: 22px;
  box-shadow: 0 10px 22px rgba(19, 55, 97, 0.25);
}
.card__ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.98rem; }
.card--accent::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 0; background: var(--red-600); transition: height var(--t); }
.card--accent:hover::before { height: 100%; }

/* advantage card */
.adv-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: var(--t); }
.adv-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.adv-card .ck { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; background: rgba(200, 16, 46, 0.1); color: var(--red-600); display: flex; align-items: center; justify-content: center; }
.adv-card .ck svg { width: 22px; height: 22px; }
.adv-card h4 { font-family: var(--font-head); color: var(--navy-800); font-size: 1.06rem; margin-bottom: 5px; }
.adv-card p { font-size: 0.94rem; margin: 0; }

/* service card */
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: var(--t); height: 100%; display: flex; flex-direction: column;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.svc-card__media { height: 200px; position: relative; overflow: hidden; background: var(--navy-800); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.svc-card:hover .svc-card__media img { transform: scale(1.07); }
.svc-card__num { position: absolute; top: 16px; left: 16px; width: 42px; height: 42px; border-radius: 11px; background: var(--red-600); color: #fff; font-family: var(--font-head); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 8px 18px rgba(200,16,46,.4); }
.svc-card__body { padding: 28px 26px; flex: 1; display: flex; flex-direction: column; }
.svc-card__body h3 { margin-bottom: 12px; }
.svc-card__body p { font-size: 0.96rem; }
.svc-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.svc-list li svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--red-600); margin-top: 3px; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split__media.stack { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; box-shadow: none; }
.split__media.stack img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; }
.split__media.stack img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.split__body h2 { margin-bottom: 20px; }
.feature-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fi { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: rgba(27, 77, 143, 0.1); color: var(--navy-600); display: flex; align-items: center; justify-content: center; }
.feature-list .fi svg { width: 20px; height: 20px; }
.feature-list strong { font-family: var(--font-head); color: var(--navy-800); display: block; }
.feature-list span { font-size: 0.95rem; color: var(--ink-soft); }

/* ----------------------------------------------------------- asset card */
.asset-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: var(--t); display: flex; flex-direction: column;
}
.asset-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.asset-card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--bg-mute); }
.asset-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.asset-card:hover .asset-card__media img { transform: scale(1.06); }
.asset-card__tag { position: absolute; top: 14px; left: 14px; background: rgba(10,31,60,.85); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; padding: 6px 13px; border-radius: 999px; letter-spacing: 0.03em; }
.asset-card__year { position: absolute; top: 14px; right: 14px; background: var(--amber-500); color: var(--navy-900); font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; }
.asset-card__body { padding: 26px 24px; flex: 1; display: flex; flex-direction: column; }
.asset-card__body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.asset-card__body p { font-size: 0.95rem; flex: 1; }
.asset-meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.asset-meta div { display: flex; gap: 9px; align-items: center; font-size: 0.88rem; color: var(--ink-soft); }
.asset-meta svg { width: 16px; height: 16px; color: var(--red-600); flex: 0 0 16px; }
.asset-meta b { color: var(--navy-800); font-family: var(--font-head); font-weight: 600; }

/* --------------------------------------------------------- project card */
.proj-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: block; box-shadow: var(--shadow-sm); }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.proj-card:hover img { transform: scale(1.08); }
.proj-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,31,60,.93) 8%, rgba(10,31,60,.35) 50%, transparent 80%); transition: var(--t); }
.proj-card__cat { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--red-600); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; padding: 6px 13px; border-radius: 999px; letter-spacing: 0.02em; }
.proj-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; }
.proj-card__body h3 { color: #fff; font-size: 1.12rem; line-height: 1.3; }
.proj-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; opacity: 1; transform: none; transition: var(--t); }
@media (hover: hover) and (pointer: fine) {
  .proj-card__meta { opacity: .6; transform: translateY(4px); }
  .proj-card:hover .proj-card__meta,
  .proj-card:focus-within .proj-card__meta { opacity: 1; transform: translateY(0); }
}
.proj-card__meta span { color: rgba(255,255,255,.85); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; }
.proj-card__meta svg { width: 14px; height: 14px; color: var(--amber-500); }

.proj-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.proj-filters button {
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--ink-soft); background: #fff; transition: var(--t);
}
.proj-filters button:hover { border-color: var(--navy-600); color: var(--navy-700); }
.proj-filters button.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ------------------------------------------------------------- timeline */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 38px 72px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 16px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--red-600); box-shadow: 0 0 0 4px rgba(200,16,46,.12); }
.tl-year { font-family: var(--font-head); font-weight: 700; color: var(--red-600); font-size: 0.86rem; letter-spacing: 0.04em; }
.tl-item h4 { font-family: var(--font-head); color: var(--navy-800); font-size: 1.12rem; margin: 6px 0 8px; }
.tl-item p { font-size: 0.96rem; }

/* --------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table.eq { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
table.eq thead { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
table.eq thead th { color: #fff; font-family: var(--font-head); font-weight: 600; text-align: left; padding: 17px 20px; font-size: 0.86rem; letter-spacing: 0.02em; }
table.eq tbody td { padding: 15px 20px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
table.eq tbody tr { transition: background var(--t); }
table.eq tbody tr:hover { background: var(--bg-soft); }
table.eq tbody tr:last-child td { border-bottom: none; }
table.eq td.num { color: var(--muted); font-weight: 600; font-family: var(--font-head); }
table.eq td.name { color: var(--navy-800); font-weight: 500; }
table.eq .pill { display: inline-block; background: var(--bg-mute); color: var(--navy-700); font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; padding: 4px 12px; border-radius: 999px; }
table.eq .qty { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 8px; background: rgba(200,16,46,.1); color: var(--red-600); font-family: var(--font-head); font-weight: 700; }

/* --------------------------------------------------------------- tasks */
.task-card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.task-card:nth-child(even) .task-card__media { order: 2; }
.task-card__media { min-height: 320px; background: var(--navy-800); position: relative; }
.task-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.task-card__body { padding: 44px 42px; }
.task-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-600); margin-bottom: 16px; }
.task-tag::before { content: ""; width: 22px; height: 2px; background: var(--red-600); }
.task-card__body h3 { font-size: 1.4rem; margin-bottom: 18px; }
.task-field { margin-bottom: 16px; }
.task-field .k { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.task-field .v { color: var(--ink-soft); }
.task-quote { margin-top: 22px; padding: 20px 24px; background: var(--bg-soft); border-left: 4px solid var(--red-600); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.task-quote p { font-style: italic; color: var(--navy-700); margin: 0; }
.task-quote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--muted); }

/* ------------------------------------------------------ gallery / lightbox */
.gallery { columns: 4; column-gap: 20px; }
.gallery .g-item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; position: relative; display: block; }
.gallery .g-item img { width: 100%; transition: transform 0.5s ease; }
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,31,60,.5), transparent 60%); opacity: 0; transition: var(--t); }
.gallery .g-item:hover::after { opacity: 1; }
.g-cap { position: absolute; bottom: 14px; left: 16px; right: 16px; z-index: 2; color: #fff; font-size: 0.85rem; font-family: var(--font-head); opacity: 0; transform: translateY(8px); transition: var(--t); }
.gallery .g-item:hover .g-cap { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .g-cap { opacity: 1; transform: none; }
  .gallery .g-item::after { opacity: 1; }
}

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 20, 38, 0.95); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; animation: fade .25s; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 24px; right: 30px; color: #fff; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--t); }
.lightbox__close:hover { background: rgba(255,255,255,.12); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--t); }
.lightbox__nav:hover { background: rgba(255,255,255,.12); }
.lightbox__nav.prev { left: 26px; }
.lightbox__nav.next { right: 26px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------- cta band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 64px 60px; background: radial-gradient(900px 400px at 85% 0%, rgba(27,77,143,.6), transparent 55%), linear-gradient(140deg, var(--navy-900), var(--navy-800)); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(200,16,46,.18); }
.cta-band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 12px; max-width: 560px; }

/* ------------------------------------------------------- contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: var(--t); }
.ci-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.ci-card .ci-ico { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(140deg, var(--navy-700), var(--navy-600)); color: #fff; display: flex; align-items: center; justify-content: center; }
.ci-card .ci-ico svg { width: 22px; height: 22px; }
.ci-card .k { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.ci-card .v { color: var(--navy-800); font-weight: 500; line-height: 1.5; }
.ci-card .v a:hover { color: var(--red-600); }
.phones-list { display: flex; flex-direction: column; gap: 7px; }
.phones-list .ph-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.phones-list .ph-row a { font-weight: 600; white-space: nowrap; }
.phones-list .ph-label { font-size: 0.82rem; color: var(--muted); font-family: var(--font-head); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 8px; }
.form-card > p { margin-bottom: 26px; font-size: 0.96rem; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--navy-800); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); transition: var(--t); background: var(--bg-soft);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); background: #fff; box-shadow: 0 0 0 4px rgba(27,77,143,.1); }
.field textarea { resize: vertical; min-height: 120px; }
/* реквизиты компании */
.requisites { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.req-row { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 16px 28px; border-bottom: 1px solid var(--line-soft); }
.req-row:last-child { border-bottom: none; }
.req-row:nth-child(odd) { background: var(--bg-soft); }
.req-row .rk { font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--muted); }
.req-row .rv { color: var(--navy-800); font-weight: 500; }
@media (max-width: 560px) {
  .req-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 20px; }
}

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------------------------------------------------------------- flash */
.flash-stack { position: fixed; top: 100px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.flash { padding: 16px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; background: #fff; border-left: 4px solid var(--navy-600); animation: slidein .3s; }
.flash.success { border-color: #1f9d5b; }
.flash.error { border-color: var(--red-600); }
.flash svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }
.flash.success svg { color: #1f9d5b; }
.flash.error svg { color: var(--red-600); }
.flash p { color: var(--ink); font-size: 0.92rem; margin: 0; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --------------------------------------------------------------- footer */
.site-footer { background: linear-gradient(180deg, var(--navy-900), #07182f); color: rgba(255,255,255,.72); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 52px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 0.94rem; }
.foot-col h4 { color: #fff; font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.foot-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--red-600); }
.foot-col ul { display: flex; flex-direction: column; gap: 11px; }
.foot-col ul a { color: rgba(255,255,255,.68); font-size: 0.94rem; }
.foot-col ul a:hover { color: var(--amber-500); padding-left: 4px; }
.foot-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 0.94rem; color: rgba(255,255,255,.72); }
.foot-contact svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--amber-500); margin-top: 3px; }
.foot-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ----------------------------------------------------------- reveal anim */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ------------------------------------------------- доступность: фокус/скип */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, .btn:focus-visible, .burger:focus-visible,
.proj-filters button:focus-visible {
  outline: 3px solid var(--navy-600);
  outline-offset: 2px;
  border-radius: 4px;
}
/* контрастный фокус на тёмных фонах */
.hero a:focus-visible, .hero .btn:focus-visible,
.section--dark a:focus-visible, .section--dark .btn:focus-visible,
.topbar a:focus-visible, .site-footer a:focus-visible,
.cta-band a:focus-visible, .lightbox__close:focus-visible, .lightbox__nav:focus-visible {
  outline-color: var(--amber-500);
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--red-600); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 8px; font-family: var(--font-head); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* убираем «залипание» hover-эффектов лифта на тач-устройствах */
@media (hover: none) {
  .card:hover, .adv-card:hover, .svc-card:hover, .asset-card:hover,
  .lic-card:hover, .btn:hover, .stat-cell:hover { transform: none; }
  .proj-card:hover img, .svc-card:hover .svc-card__media img,
  .asset-card:hover .asset-card__media img, .gallery .g-item:hover img { transform: none; }
}

/* --------------------------------------------------------------- helpers */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.badge-soft { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,16,46,.08); color: var(--red-600); font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; padding: 7px 15px; border-radius: 999px; }
.badge-soft .ic { width: 15px; height: 15px; }

/* ----------------------------------------------------------- empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--line); margin: 0 auto 16px; }

/* ----------------------------------------------- prose (CMS HTML output) */
.prose { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.85; }
.prose p { margin-bottom: 1.05em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy-800); font-weight: 700; }
.prose h2, .prose h3 { color: var(--navy-800); margin: 1.4em 0 .6em; }
.prose ul { margin: 1em 0; display: flex; flex-direction: column; gap: 10px; }
.prose ul li, .dash-list li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.prose ul li::before, .dash-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 2px; background: var(--red-600);
}
.dash-list { display: flex; flex-direction: column; gap: 12px; margin: 1.2em 0; }
.section--dark .prose, .section--dark .prose p { color: rgba(255,255,255,.8); }
.section--dark .prose strong { color: #fff; }

/* highlighted quote / devise box */
.quote-box {
  position: relative; background: var(--bg-soft); border-left: 5px solid var(--red-600);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 28px 32px; margin: 8px 0;
}
.quote-box p { font-family: var(--font-head); font-size: 1.18rem; font-weight: 500; font-style: italic; color: var(--navy-700); margin: 0; line-height: 1.6; }
.quote-box .qmark { position: absolute; top: 14px; right: 24px; font-size: 4rem; line-height: 1; color: rgba(200,16,46,.12); font-family: Georgia, serif; }

/* license card with media */
.lic-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--t); height: 100%; }
.lic-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.lic-card__media { height: 190px; background: var(--bg-mute); display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line-soft); }
.lic-card__media img { max-height: 100%; width: auto; object-fit: contain; }
.lic-card__body { padding: 26px 24px; flex: 1; }
.lic-card__body .card__ico { width: 48px; height: 48px; margin-bottom: 16px; }
.lic-card__body h3 { font-size: 1.12rem; margin-bottom: 10px; }
.lic-card__body p { font-size: 0.95rem; }

/* ========================================================== RESPONSIVE */
/* ---- мобильное меню (бургер): включается, когда 10 пунктов не помещаются ---- */
@media (max-width: 1240px) {
  .menu { display: none; }
  .burger { display: flex; }
  .menu.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 14px 20px 22px; gap: 2px;
    box-shadow: var(--shadow); border-top: 1px solid var(--line);
    max-height: calc(100vh - 126px); overflow-y: auto;
  }
  .menu.open a { padding: 14px 12px; border-radius: 8px; font-size: 1rem; white-space: normal; }
  .menu.open a.active::after { display: none; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery { columns: 3; }
  .split { gap: 40px; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .task-card { grid-template-columns: 1fr; }
  .task-card:nth-child(even) .task-card__media { order: 0; }
  .task-card__media { min-height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .section { padding: 70px 0; }
  .topbar .tb-left .hide-sm { display: none; }
  .cta-band { padding: 44px 30px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 24px; }
  .hero__stat .num { font-size: 1.7rem; }
  .gallery { columns: 1; }
  .split__media.stack { grid-template-columns: 1fr; }
  .split__media.stack img:first-child { aspect-ratio: 16/10; }
  .topbar .tb-left { gap: 14px; }
  .topbar .tb-left .tb-addr { display: none; }
  .btn { padding: 13px 24px; }
  .task-card__body, .form-card { padding: 28px 22px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 100px 0 54px; }
  .flash-stack { left: 18px; right: 18px; max-width: none; top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================================
   Страница проекта (галерея + видео) и кликабельные карточки проектов
   ========================================================================= */
.center { text-align: center; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* --- карточка проекта как ссылка --- */
.proj-card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.proj-card__media { display: block; height: 100%; }
.proj-card__badge {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(8, 20, 38, 0.72); color: #fff; backdrop-filter: blur(4px);
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem;
  padding: 5px 11px; border-radius: 999px;
}
.proj-card__badge svg { width: 13px; height: 13px; }
.proj-card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  opacity: 0; transform: translateY(4px); transition: var(--t);
}
.proj-card__more svg { width: 15px; height: 15px; color: var(--amber-500); }
@media (hover: hover) and (pointer: fine) {
  .proj-card:hover .proj-card__more,
  .proj-card:focus-within .proj-card__more { opacity: 1; transform: none; }
}
@media (hover: none) { .proj-card__more { opacity: 1; transform: none; } }

/* --- обзор объекта: описание + факты --- */
.proj-detail { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.proj-detail__facts {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; position: sticky; top: 100px;
}
.proj-facts__title { font-family: var(--font-head); color: var(--navy-800); font-size: 1.15rem; margin-bottom: 18px; }
.proj-facts { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.proj-facts dt {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.proj-facts dt svg { width: 15px; height: 15px; color: var(--red-600); }
.proj-facts dd { color: var(--navy-800); font-weight: 500; }

/* --- видео объекта --- */
.video-wrap {
  max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16 / 9;
}
.video-wrap video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

@media (max-width: 860px) {
  .proj-detail { grid-template-columns: 1fr; gap: 32px; }
  .proj-detail__facts { position: static; }
}
