:root {
  --ink: #111521;
  --ink-soft: #252b3a;
  --muted: #697386;
  --line: #dfe4ee;
  --surface: #f4f6fa;
  --surface-2: #eef2f8;
  --white: #ffffff;
  --blue: #2457d8;
  --blue-dark: #143b9f;
  --blue-soft: #e8efff;
  --teal: #3fa69e;
  --night: #0f1629;
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 34px;
  --shadow: 0 24px 70px rgba(19, 31, 63, .12);
  --container: 1240px;
  /* Основной шрифт сайта меняется здесь. Для веб-шрифта также обновите
     подключение Google Fonts в HTML или добавьте локальный @font-face. */
  --font-main: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.section { padding: 112px 0; }
.section-muted { background: var(--surface); }
.section-night { background: var(--night); color: var(--white); }
.section-compact { padding: 72px 0; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { margin-bottom: 28px; font-size: clamp(52px, 5.2vw, 78px); font-weight: 760; }
h2 { margin-bottom: 20px; font-size: clamp(38px, 3.8vw, 58px); font-weight: 740; }
h3 { margin-bottom: 15px; font-size: 28px; font-weight: 720; }
.eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head > p:last-child { margin: 0; max-width: 610px; color: var(--muted); font-size: 18px; }
.section-night .section-head > p:last-child { color: #aeb8cd; }
.section-title-only { margin-bottom: 48px; max-width: 850px; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--blue-dark); }
.button-light { background: var(--white); color: var(--ink); }
.button-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--blue); color: var(--blue); }
.button-large { min-height: 60px; padding: 0 31px; }
.text-link { display: inline-flex; padding: 0; border: 0; background: transparent; align-items: center; gap: 8px; color: var(--blue); font-weight: 760; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -3px); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(223, 228, 238, .88);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}
.header-row { display: flex; min-height: 82px; align-items: center; gap: 30px; }
.brand { display: inline-flex; width: 138px; flex: 0 0 auto; align-items: center; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.desktop-nav a { color: #353b49; font-size: 14px; font-weight: 680; }
.desktop-nav a:hover { color: var(--blue); }
.header-cta { min-height: 46px; padding: 0 20px; font-size: 14px; }
.header-contacts {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  justify-items: end;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
  white-space: nowrap;
}
.header-contacts a { transition: color .2s ease; }
.header-contacts a:hover { color: var(--blue); }
.header-phone { color: var(--ink); font-size: 14px; font-weight: 800; }
.header-email { color: var(--muted); font-size: 12px; font-weight: 650; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--ink); }
.mobile-menu { display: none; }
.mobile-menu-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; }
.mobile-menu .mobile-menu-contacts a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
  text-align: center;
}
.mobile-menu .mobile-menu-contacts a:hover { border-color: var(--blue); color: var(--blue); }

.hero { padding: 40px 0 0; background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr); gap: 72px; align-items: center; min-height: 680px; }
.hero-copy { padding: 80px 0 72px; }
.hero-lead { max-width: 730px; margin-bottom: 34px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-visual {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 72% 22%, #4d79ea 0%, transparent 35%), linear-gradient(145deg, #1e51cf, #102d82 72%);
  box-shadow: var(--shadow);
}
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.hero-visual::before { width: 420px; height: 420px; right: -110px; top: -125px; }
.hero-visual::after { width: 300px; height: 300px; left: -130px; bottom: -135px; }
.hero-visual > img { position: absolute; z-index: 2; width: 118%; max-width: none; right: -16%; bottom: -8%; filter: drop-shadow(0 34px 34px rgba(5, 15, 48, .42)); }
.hero-visual-label { position: absolute; z-index: 3; top: 28px; left: 28px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; color: white; background: rgba(10,31,95,.24); font-size: 12px; font-weight: 760; letter-spacing: .04em; }
.hero-visual-note { position: absolute; z-index: 3; right: 24px; bottom: 24px; width: 205px; padding: 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(9,26,78,.54); color: white; backdrop-filter: blur(12px); }
.hero-visual-note strong { display: block; margin-bottom: 4px; font-size: 22px; }
.hero-visual-note span { display: block; color: #c9d8ff; font-size: 13px; }
.hero-stats-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-stat { min-height: 146px; padding: 30px 34px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { display: block; margin-bottom: 8px; font-size: 39px; line-height: 1; letter-spacing: -.05em; }
.hero-stat span { display: block; max-width: 250px; color: var(--muted); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card { position: relative; min-height: 330px; overflow: hidden; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.product-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -55px; bottom: -60px; border: 1px solid rgba(36,87,216,.15); border-radius: 50%; box-shadow: 0 0 0 36px rgba(36,87,216,.035); }
.product-card .card-index { display: block; margin-bottom: 52px; color: var(--blue); font-size: 12px; font-weight: 820; letter-spacing: .1em; }
.product-card h3 { max-width: 520px; font-size: 34px; }
.product-card p { max-width: 580px; margin-bottom: 22px; color: var(--muted); }
.product-card-dark { border-color: transparent; background: var(--night); color: white; }
.product-card-dark p { color: #aeb8cd; }
.product-card-blue { border-color: transparent; background: linear-gradient(145deg, #2e63e4, #1841ac); color: white; }
.product-card-blue p { color: #dbe5ff; }
.product-card-dark .card-index, .product-card-blue .card-index { color: #9cb7ff; }
.product-card-dark .text-link, .product-card-blue .text-link { color: white; }

.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.industry-card { position: relative; min-height: 360px; overflow: hidden; border-radius: var(--radius); background: #16203a; color: white; }
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.industry-card:hover img { transform: scale(1.035); }
.industry-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,12,27,.08) 28%, rgba(7,12,27,.88) 100%); }
.industry-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 28px; }
.industry-copy h3 { margin-bottom: 9px; font-size: 29px; }
.industry-copy p { margin: 0; color: #d6dbea; font-size: 15px; }

.case-actions { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.case-actions .section-title-only { margin: 0; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e9edf5; }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-card-media img { transform: scale(1.025); }
.case-card-tag { position: absolute; top: 18px; left: 18px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); }
.case-card-body { padding: 29px 30px 31px; }
.case-card h3 { max-width: 560px; font-size: 31px; }
.case-card p { color: var(--muted); }
.case-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 21px 0 24px; }
.case-metrics span { padding: 8px 11px; border-radius: 999px; background: var(--surface); color: #41495b; font-size: 12px; font-weight: 720; }

.engineering-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.engineering-card { min-height: 335px; padding: 32px; border-radius: var(--radius); background: white; border: 1px solid var(--line); }
.engineering-card:nth-child(2) { background: var(--night); color: white; border-color: transparent; }
.engineering-card:nth-child(3) { background: var(--blue); color: white; border-color: transparent; }
.engineering-index { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 63px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 850; }
.engineering-card:nth-child(2) .engineering-index, .engineering-card:nth-child(3) .engineering-index { background: rgba(255,255,255,.12); color: white; }
.engineering-card h3 { font-size: 34px; }
.engineering-card p { margin: 0; color: var(--muted); }
.engineering-card:nth-child(2) p { color: #b5bfd2; }
.engineering-card:nth-child(3) p { color: #dbe5ff; }

.company-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 76px; align-items: center; }
.company-gallery { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 230px 230px; gap: 14px; }
.company-gallery figure { margin: 0; overflow: hidden; border-radius: 20px; background: #dfe4ee; }
.company-gallery figure:first-child { grid-row: 1 / 3; }
.company-gallery img { width: 100%; height: 100%; object-fit: cover; }
.company-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.company-principles { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.company-principle { display: grid; grid-template-columns: 40px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.company-principle span { color: var(--blue); font-size: 12px; font-weight: 850; }
.company-principle strong { display: block; margin-bottom: 4px; font-size: 17px; }
.company-principle p { margin: 0; color: var(--muted); font-size: 14px; }
.company-capabilities { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 54px; }
.capability-card { min-height: 255px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.capability-card span { display: block; margin-bottom: 58px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.capability-card h3 { font-size: 29px; }
.capability-card p { margin: 0; color: var(--muted); font-size: 15px; }

.process-list { border-top: 1px solid rgba(255,255,255,.18); }
.process-row { display: grid; grid-template-columns: 70px minmax(210px, .85fr) minmax(0, 1.15fr); gap: 38px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.process-row > span { color: #89a6f4; font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.process-row h3 { margin: 0; color: white; font-size: 24px; letter-spacing: -.025em; }
.process-row p { margin: 0; color: #aeb8cd; }

.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.partner-card { display: flex; min-height: 145px; align-items: center; justify-content: center; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.partner-card:nth-child(4n) { border-right: 0; }
.partner-card:nth-last-child(-n+3) { border-bottom: 0; }
.partner-card img { width: 100%; height: 70px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease; }
.partner-card:hover img { filter: grayscale(0); opacity: 1; }
.partner-card:last-child { grid-column: span 2; }

.cta-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); gap: 70px; overflow: hidden; padding: 62px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #2c62e2, #173eaa 70%, #112d82); color: white; box-shadow: var(--shadow); }
.cta-panel::after { content: ""; position: absolute; width: 470px; height: 470px; right: -170px; top: -210px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 62px rgba(255,255,255,.035), 0 0 0 124px rgba(255,255,255,.025); }
.cta-copy { position: relative; z-index: 2; }
.cta-copy .eyebrow { color: white; }
.cta-copy p:not(.eyebrow) { max-width: 590px; color: #dbe5ff; font-size: 18px; }
.lead-form { position: relative; z-index: 2; align-self: center; padding: 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(7,25,75,.42); backdrop-filter: blur(14px); }
.lead-form label:not(.consent), .modal-form label:not(.consent) { display: grid; gap: 8px; }
.lead-form label > span, .modal-form label > span { font-size: 13px; font-weight: 760; }
.lead-form input[type="tel"], .modal-form input[type="tel"] { width: 100%; height: 58px; padding: 0 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; outline: 0; background: white; color: var(--ink); font-size: 18px; }
.lead-form .button, .modal-form .button { width: 100%; margin-top: 12px; }
.consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; color: #d6e0fa; font-size: 12px; }
.consent input { width: 15px; height: 15px; margin: 2px 0 0; flex: 0 0 auto; }
.form-message { min-height: 20px; margin: 12px 0 0; color: #dfffe7; font-size: 13px; }

.site-footer { padding: 72px 0 28px; background: #0c1223; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 72px; padding-bottom: 55px; }
.footer-brand { width: 230px; padding: 0; border-radius: 0; background: transparent; }
.footer-note { max-width: 340px; margin: 20px 0 0; color: #8f99b2; }
.footer-column { display: grid; align-content: start; gap: 11px; }
.footer-column > span { margin-bottom: 8px; color: #73809d; font-size: 11px; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.footer-column a { color: #e7eaf2; }
.footer-column a:hover { color: #90adff; }
.footer-column p { margin: 7px 0 0; color: #8f99b2; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.13); color: #6e7894; font-size: 12px; }

/* Project listing and detail pages */
.page-hero { padding: 90px 0 70px; background: var(--surface); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: 70px; align-items: center; }
.page-hero h1 { font-size: clamp(48px, 4.8vw, 72px); }
.page-hero .lead { max-width: 720px; color: var(--muted); font-size: 20px; }
.page-hero-media { overflow: hidden; min-height: 500px; border-radius: var(--radius-lg); background: #e3e8f1; }
.page-hero-media img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.project-page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(36,87,216,.13), transparent 34%),
    linear-gradient(180deg, #f4f7fc 0%, #fff 100%);
}
.project-page-hero .page-hero-media {
  position: relative;
  box-shadow: var(--shadow);
}
.project-page-hero .page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,17,45,.42));
  pointer-events: none;
}
.project-page-hero .page-hero-media img { transition: transform .6s ease; }
.project-page-hero .page-hero-media:hover img { transform: scale(1.018); }
.project-hero-chip {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  max-width: calc(100% - 44px);
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 999px;
  background: rgba(10,28,75,.68);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
  backdrop-filter: blur(14px);
}
.project-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-stat { min-height: 145px; padding: 29px; border-right: 1px solid var(--line); background: white; }
.project-stat:last-child { border-right: 0; }
.project-stat strong { display: block; margin-bottom: 10px; font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.project-stat span { color: var(--muted); font-size: 13px; }
.project-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.story-card { min-height: 350px; padding: 38px; border-radius: var(--radius); background: var(--surface); }
.story-card:nth-child(2) { background: var(--night); color: white; }
.project-story .story-card:only-child { grid-column: 1 / -1; }
.story-card .eyebrow { margin-bottom: 58px; }
.story-card:nth-child(2) .eyebrow { color: #91adff; }
.story-card h2 { font-size: 42px; }
.story-card p { margin: 0; color: var(--muted); font-size: 18px; }
.story-card p + p,
.story-card ul + p,
.story-card ol + p { margin-top: 18px; }
.story-card ul,
.story-card ol { margin: 18px 0 0; padding-left: 22px; color: var(--muted); font-size: 18px; }
.story-card:nth-child(2) p { color: #b1bbcf; }
.story-card:nth-child(2) ul,
.story-card:nth-child(2) ol { color: #b1bbcf; }
.project-result-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 25%, rgba(71,116,232,.22), transparent 31%),
    var(--night);
  color: #fff;
}
.project-result-section::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -230px;
  bottom: -260px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 64px rgba(255,255,255,.025);
}
.project-result-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr);
  gap: 90px;
  align-items: start;
}
.project-result-grid h2 { max-width: 520px; }
.project-result-copy {
  max-width: 760px;
  color: #bac4da;
  font-size: 19px;
}
.project-result-copy p:last-child { margin-bottom: 0; }
.project-result-copy ul,
.project-result-copy ol { padding-left: 22px; }
.project-related { min-height: 0; }
.project-related:empty { display: none; }
.back-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 38px; }

.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,12,27,.73); backdrop-filter: blur(8px); }
.modal-dialog { position: relative; width: min(570px, calc(100% - 28px)); max-height: calc(100vh - 36px); overflow: auto; padding: 42px; border-radius: 28px; background: white; box-shadow: 0 32px 90px rgba(0,0,0,.32); }
.modal-dialog h2 { font-size: 40px; }
.modal-dialog > p:not(.eyebrow) { color: var(--muted); }
.modal-close { position: absolute; top: 16px; right: 17px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); font-size: 26px; line-height: 1; }
.modal-form { margin-top: 25px; }
.modal-form input[type="tel"] { border-color: var(--line); background: var(--surface); }
.modal-form .consent { color: var(--muted); }
.modal-form .form-message { color: #197739; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 13px; }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-copy { padding-bottom: 20px; }
  .hero-visual { min-height: 540px; }
  .page-hero-media { min-height: 440px; }
  .page-hero-media img { min-height: 440px; }
  .company-grid { gap: 45px; }
  .cta-panel { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 860px) {
  .section { padding: 84px 0; }
  .desktop-nav, .header-cta, .header-contacts { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .mobile-menu { position: absolute; top: 82px; right: 0; left: 0; display: grid; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); background: white; opacity: 0; pointer-events: none; transform: translateY(-12px); transition: .2s ease; }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
  .mobile-menu .button { margin-top: 16px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .product-grid, .case-grid, .project-story { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engineering-grid { grid-template-columns: 1fr; }
  .engineering-card { min-height: 280px; }
  .engineering-index { margin-bottom: 40px; }
  .company-grid { grid-template-columns: 1fr; }
  .company-capabilities { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 48px 1fr; gap: 16px; }
  .process-row p { grid-column: 2; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .partner-card:nth-child(2n) { border-right: 0; }
  .partner-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .partner-card:last-child { grid-column: span 2; border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .project-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-stat:nth-child(2) { border-right: 0; }
  .project-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 26px), var(--container)); }
  .header-row { min-height: 70px; }
  .brand { width: 122px; }
  .mobile-menu { top: 70px; padding-right: 16px; padding-left: 16px; }
  .mobile-menu-contacts { grid-template-columns: 1fr; }
  .hero { padding-top: 0; }
  .hero-copy { padding: 58px 0 12px; }
  h1 { font-size: 39px; line-height: 1.06; }
  h2 { font-size: 39px; }
  .hero-lead, .section-head > p:last-child, .company-copy > p:not(.eyebrow), .page-hero .lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { justify-content: center; }
  .hero-visual { min-height: 430px; border-radius: 24px; }
  .hero-visual > img { width: 140%; right: -39%; bottom: 0; }
  .hero-visual-note { right: 16px; bottom: 16px; width: 175px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { min-height: auto; padding: 23px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stat:last-child { border-bottom: 0; }
  .product-card { min-height: 300px; padding: 25px; }
  .product-card .card-index { margin-bottom: 42px; }
  .product-card h3, .engineering-card h3 { font-size: 30px; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { min-height: 310px; }
  .case-actions { align-items: flex-start; flex-direction: column; }
  .case-card-body { padding: 24px; }
  .case-card h3 { font-size: 28px; }
  .company-gallery { grid-template-columns: 1fr; grid-template-rows: 310px 220px 220px; }
  .company-gallery figure:first-child { grid-row: auto; }
  .process-row h3 { font-size: 21px; }
  .partner-card { min-height: 118px; padding: 20px; }
  .partner-card img { height: 58px; }
  .cta-panel { padding: 34px 21px; border-radius: 24px; }
  .lead-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 58px 0; }
  .page-hero h1 { font-size: 39px; }
  .page-hero-media, .page-hero-media img { min-height: 330px; }
  .project-stat-grid { grid-template-columns: 1fr; }
  .project-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-stat:nth-child(2) { border-right: 0; }
  .project-stat:last-child { border-bottom: 0; }
  .story-card { min-height: 310px; padding: 27px; }
  .story-card .eyebrow { margin-bottom: 42px; }
  .story-card h2 { font-size: 36px; }
  .story-card p { font-size: 16px; }
  .modal-dialog { padding: 36px 22px 26px; }
  .modal-dialog h2 { font-size: 35px; }
}

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


/* v3 — Montserrat, richer motion, product pages and policy */
:root { --header-h: 82px; }
body { overflow-x: clip; }
.skip-link { position: fixed; z-index: 300; top: 10px; left: 12px; padding: 10px 14px; border-radius: 10px; background: var(--night); color: #fff; transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: none; }
.scroll-progress { position: fixed; z-index: 200; top: 0; right: 0; left: 0; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--teal), #6b8cff, var(--blue)); transform: scaleX(0); transform-origin: left; will-change: transform; }
.site-header { transition: min-height .25s ease, box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { box-shadow: 0 14px 45px rgba(16, 29, 61, .08); background: rgba(255,255,255,.96); }
.site-header.is-scrolled .header-row { min-height: 72px; }
.button[data-magnetic] { will-change: transform; }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(36,87,216,.28); outline-offset: 3px; }
[data-glow] { position: relative; overflow: hidden; --glow-x: 50%; --glow-y: 50%; }
[data-glow]::before { content:""; position:absolute; z-index:0; inset:0; border-radius:inherit; opacity:0; pointer-events:none; background:radial-gradient(420px circle at var(--glow-x) var(--glow-y), rgba(80,125,255,.15), transparent 42%); transition:opacity .25s ease; }
[data-glow]:hover::before { opacity:1; }
[data-glow] > * { position:relative; z-index:1; }
.product-card, .engineering-card, .capability-card, .case-card, .system-hero-media, .system-component { transform-style: preserve-3d; will-change: transform; }
.product-card { display:block; transition: transform .32s cubic-bezier(.2,.75,.25,1), box-shadow .32s ease, border-color .32s ease; }
.product-card:hover { border-color: rgba(36,87,216,.35); box-shadow: 0 22px 60px rgba(19,31,63,.12); }
.product-card .text-link { position:absolute; left:34px; bottom:32px; }
.product-card p { padding-bottom:45px; }
.hero-visual { animation: heroCardIn 1s cubic-bezier(.2,.8,.2,1) both; }
.hero-visual::before { animation: orbitSlow 16s linear infinite; }
.hero-visual::after { animation: orbitSlow 22s linear infinite reverse; }
.hero-visual > img, [data-hero-float] { will-change: transform; transition: transform .16s linear; }
@keyframes heroCardIn { from { opacity:0; transform:translateY(24px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes orbitSlow { to { transform:rotate(360deg); } }
[data-parallax-image] { transform: scale(1.035) translate3d(0,var(--image-shift,0px),0); will-change: transform; }
.reveal { transform: translate3d(0,32px,0) scale(.99); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal-left { transform:translate3d(-34px,0,0); }
.reveal-scale { transform:scale(.94); }
.reveal.is-visible { transform:none; }

/* Scroll-driven process */
.process-section { position:relative; overflow:clip; padding-bottom:80px; }
.process-scroll { display:grid; grid-template-columns:minmax(310px,.72fr) minmax(0,1.28fr); gap:90px; align-items:start; }
.process-sticky { position:sticky; top:130px; padding-bottom:25vh; isolation:isolate; }
.process-sticky::before { content:""; position:absolute; z-index:-1; width:780px; height:780px; left:-380px; top:-30px; border-radius:50%; background:radial-gradient(circle, rgba(50,95,220,.22), transparent 67%); pointer-events:none; }
.process-sticky h2 { max-width:520px; }
.process-intro { max-width:520px; color:#aeb8cd; font-size:18px; }
.process-status { margin-top:56px; padding:28px; border:1px solid rgba(255,255,255,.15); border-radius:24px; background:rgba(255,255,255,.045); backdrop-filter:blur(14px); }
.process-status strong { display:flex; align-items:flex-end; gap:8px; color:#fff; font-size:58px; line-height:.85; letter-spacing:-.08em; }
.process-status small { color:#7182ac; font-size:17px; letter-spacing:0; }
.process-status p { margin:14px 0 0; color:#dce4f7; font-weight:650; }
.process-meter { height:4px; margin-top:25px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.1); }
.process-meter span { display:block; width:100%; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--teal),#81a4ff); transform:scaleX(.1428); transform-origin:left; transition:transform .45s cubic-bezier(.2,.8,.2,1); }
.process-steps { padding-top:5vh; }
.process-step { min-height:62vh; display:flex; align-items:center; opacity:.25; transform:translateX(55px) scale(.96); transition:opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.process-step.is-active { opacity:1; transform:none; }
.process-step-card { position:relative; width:100%; min-height:330px; overflow:hidden; padding:42px; border:1px solid rgba(255,255,255,.14); border-radius:30px; background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.035)); box-shadow:0 30px 90px rgba(0,0,0,.18); }
.process-step-card::after { content:""; position:absolute; width:240px; height:240px; right:-100px; bottom:-120px; border:1px solid rgba(125,158,255,.25); border-radius:50%; box-shadow:0 0 0 45px rgba(125,158,255,.035); }
.process-step-card > span { display:inline-flex; width:50px; height:50px; align-items:center; justify-content:center; margin-bottom:75px; border-radius:50%; background:rgba(126,160,255,.13); color:#a8bdff; font-size:12px; font-weight:800; }
.process-step-card h3 { max-width:680px; color:#fff; font-size:clamp(34px,3.3vw,52px); }
.process-step-card p { max-width:720px; color:#bac4d8; font-size:18px; }
.process-step-card em { display:block; margin-top:28px; color:#7ea2ff; font-style:normal; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }

/* Product detail pages */
.breadcrumbs { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:54px; color:#7b8599; font-size:13px; }
.breadcrumbs a:hover { color:var(--blue); }
.system-hero { position:relative; overflow:hidden; padding:62px 0 96px; background:linear-gradient(180deg,#f4f7fc,#fff); }
.system-hero::before { content:""; position:absolute; width:620px; height:620px; top:-340px; right:-140px; border-radius:50%; background:radial-gradient(circle,rgba(62,107,225,.15),transparent 68%); }
.system-hero-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(440px,.95fr); gap:70px; align-items:center; }
.system-hero h1 { font-size:clamp(52px,5vw,76px); }
.system-hero .lead { max-width:720px; color:var(--muted); font-size:20px; }
.system-hero-media { position:relative; min-height:540px; overflow:hidden; border-radius:var(--radius-lg); background:linear-gradient(145deg,#dfe7f6,#cad7ee); box-shadow:var(--shadow); }
.system-hero-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(7,17,45,.45)); pointer-events:none; }
.system-hero-media img { width:100%; height:100%; min-height:540px; object-fit:cover; }
.system-hero-chip { position:absolute; z-index:2; right:22px; bottom:22px; width:245px; padding:20px; border:1px solid rgba(255,255,255,.28); border-radius:20px; background:rgba(12,28,71,.68); color:#fff; backdrop-filter:blur(14px); }
.system-hero-chip strong,.system-hero-chip span { display:block; }
.system-hero-chip strong { margin-bottom:5px; font-size:21px; }
.system-hero-chip span { color:#cbd7f4; font-size:13px; }
.system-description { display:grid; grid-template-columns:minmax(270px,.7fr) minmax(0,1.3fr); gap:100px; }
.system-description-copy { max-width:830px; }
.system-description-copy p { color:var(--muted); font-size:20px; line-height:1.7; }
.system-description-copy p:first-child { color:var(--ink); }
.system-components { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.system-component { position:relative; min-height:290px; overflow:hidden; padding:32px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; }
.system-component > span { display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center; margin-bottom:55px; border-radius:50%; background:var(--blue-soft); color:var(--blue); font-size:12px; font-weight:800; }
.system-component h3 { font-size:29px; }
.system-component p { margin:0; color:var(--muted); }
.feature-panels { border-top:1px solid rgba(255,255,255,.16); }
.feature-panel { display:grid; grid-template-columns:70px minmax(230px,.8fr) minmax(0,1.2fr); gap:30px; align-items:start; padding:30px 0; border-bottom:1px solid rgba(255,255,255,.16); }
.feature-panel > span { color:#8ca8f5; font-size:12px; font-weight:800; }
.feature-panel h3 { margin:0; color:#fff; font-size:28px; }
.feature-panel p { margin:0; color:#aeb8cd; }
.application-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.application-card { position:relative; min-height:285px; overflow:hidden; padding:28px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.application-card > span { display:block; margin-bottom:62px; color:var(--blue); font-size:12px; font-weight:800; }
.application-card h3 { font-size:25px; }
.application-card p { margin:0; color:var(--muted); font-size:14px; }

/* Privacy */
.policy-hero { padding:90px 0 72px; background:var(--surface); }
.narrow { max-width:900px; }
.policy-hero h1 { max-width:850px; }
.policy-hero .lead { color:var(--muted); font-size:20px; }
.policy-layout { display:grid; grid-template-columns:260px minmax(0,800px); gap:90px; justify-content:center; align-items:start; }
.policy-aside { position:sticky; top:120px; padding:25px; border:1px solid var(--line); border-radius:20px; background:var(--surface); }
.policy-aside strong,.policy-aside a { display:block; }
.policy-aside p { color:var(--muted); font-size:13px; }
.policy-aside a { margin-bottom:18px; color:var(--blue); font-weight:700; }
.policy-section { padding:0 0 44px; margin-bottom:44px; border-bottom:1px solid var(--line); }
.policy-section:last-child { border-bottom:0; }
.policy-section h2 { font-size:32px; letter-spacing:-.035em; }
.policy-section p { color:var(--muted); font-size:16px; line-height:1.75; }
.consent a { text-decoration:underline; text-underline-offset:3px; }
.footer-bottom a:hover { color:#9ab4ff; }
.not-found { position:relative; display:grid; min-height:100vh; place-items:center; overflow:hidden; background:linear-gradient(145deg,#f4f7fc,#fff); text-align:center; }
.not-found .lead { margin-bottom:30px; color:var(--muted); font-size:20px; }
.not-found-orb { position:absolute; width:650px; height:650px; border-radius:50%; background:radial-gradient(circle,rgba(36,87,216,.16),transparent 68%); animation:floatOrb 7s ease-in-out infinite; }
@keyframes floatOrb { 50% { transform:translateY(-25px) scale(1.04); } }

@media (max-width:1080px) {
  .system-hero-grid { grid-template-columns:1fr; }
  .system-hero-media { min-height:480px; }
  .process-scroll { gap:45px; grid-template-columns:minmax(270px,.75fr) minmax(0,1.25fr); }
  .application-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px) {
  .process-scroll { display:block; }
  .process-sticky { position:relative; top:auto; padding-bottom:40px; }
  .process-status { display:none; }
  .process-step { min-height:auto; margin-bottom:18px; opacity:1; transform:none; }
  .process-step-card { min-height:0; padding:30px; }
  .process-step-card > span { margin-bottom:38px; }
  .system-description { grid-template-columns:1fr; gap:20px; }
  .system-components { grid-template-columns:1fr; }
  .feature-panel { grid-template-columns:45px 1fr; }
  .feature-panel p { grid-column:2; }
  .policy-layout { grid-template-columns:1fr; gap:35px; }
  .policy-aside { position:relative; top:auto; }
}
@media (max-width:620px) {
  :root { --header-h:72px; }
  .system-hero { padding:38px 0 72px; }
  .breadcrumbs { margin-bottom:34px; }
  .system-hero-grid { gap:32px; }
  .system-hero h1 { font-size:42px; }
  .system-hero .lead { font-size:17px; }
  .system-hero-media,.system-hero-media img { min-height:380px; }
  .system-hero-chip { right:14px; bottom:14px; width:calc(100% - 28px); }
  .application-grid { grid-template-columns:1fr; }
  .system-description-copy p { font-size:17px; }
  .process-step-card h3 { font-size:31px; }
  .process-step-card p { font-size:16px; }
  [data-glow]::before { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .reveal,.process-step { opacity:1 !important; transform:none !important; }
  [data-parallax-image],[data-hero-float] { transform:none !important; }
}

.system-hero-contain { background:radial-gradient(circle at 70% 22%,#517de9 0%,transparent 36%),linear-gradient(145deg,#1e51cf,#102d82 72%); }
.system-hero-contain img { object-fit:contain; padding:42px; filter:drop-shadow(0 28px 30px rgba(4,16,55,.36)); }
body { animation:pageEnter .55s ease both; }
@keyframes pageEnter { from { opacity:.01; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce){ body{animation:none;} }

h1, h2 { overflow-wrap: normal; word-break: normal; }

/* v4 — visual refinements and editing-friendly sizing */
:root {
  --header-logo-width: 198px;
  --partner-logo-height: 104px;
}

/* Larger brand mark across all pages */
.header-row { min-height: 96px; }
.brand { width: var(--header-logo-width); }
.site-header.is-scrolled .header-row { min-height: 84px; }
.footer-brand { width: 215px; }

/* More balanced first screen: readable headline and contained product render */
.hero { padding-top: 24px; }
.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  gap: 64px;
  min-height: 650px;
}
.hero-copy { padding: 66px 0 70px; }
.hero h1 {
  max-width: 720px;
  font-size: clamp(46px, 4.35vw, 66px);
  line-height: 1.055;
  overflow-wrap: normal;
}
.hero-visual { min-height: 535px; }
.hero-visual > img {
  width: 103%;
  right: -2%;
  bottom: 2%;
}

/* The fixed-width digits and state-only updates prevent visual jitter */
.process-status strong { font-variant-numeric: tabular-nums; }
.process-status [data-process-current] {
  display: inline-block;
  width: 2.15ch;
  transform: translateZ(0);
}

/* Larger customer and partner marks */
.partner-card {
  min-height: 184px;
  padding: 22px 28px;
}
.partner-card img {
  width: auto;
  max-width: 92%;
  height: var(--partner-logo-height);
  object-fit: contain;
  transform: translateZ(0);
}

@media (max-width: 1160px) {
  :root { --header-logo-width: 174px; }
  .desktop-nav { gap: 14px; }
  .desktop-nav a { font-size: 12px; }
  .header-cta { padding-inline: 16px; }
  .hero-grid { gap: 44px; }
}

@media (max-width: 980px) {
  .desktop-nav, .header-cta, .header-contacts { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .mobile-menu {
    top: 96px;
    display: grid;
  }
  .site-header.is-scrolled .mobile-menu { top: 84px; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding: 56px 0 18px; }
  .hero h1 { max-width: 900px; }
  .hero-visual { min-height: 510px; }
  .hero-visual > img { width: 92%; right: 4%; bottom: 0; }
}

@media (max-width: 860px) {
  .partner-card { min-height: 166px; }
  .partner-card img { height: 92px; }
}

@media (max-width: 620px) {
  :root {
    --header-logo-width: 154px;
    --partner-logo-height: 82px;
  }
  .header-row { min-height: 82px; }
  .site-header.is-scrolled .header-row { min-height: 76px; }
  .mobile-menu { top: 82px; }
  .site-header.is-scrolled .mobile-menu { top: 76px; }
  .hero-copy { padding: 48px 0 12px; }
  .hero h1 { font-size: clamp(35px, 10.4vw, 43px); }
  .hero-visual { min-height: 390px; }
  .hero-visual > img { width: 108%; right: -7%; bottom: 7%; }
  .hero-visual-label { top: 16px; left: 16px; max-width: calc(100% - 32px); }
  .hero-visual-note { right: 14px; bottom: 14px; width: 170px; padding: 15px; }
  .partner-card { min-height: 142px; padding: 18px; }
  .footer-brand { width: 190px; }
}


@media (min-width: 861px) and (max-width: 980px) {
  .mobile-menu {
    position: absolute;
    right: 0;
    left: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: white;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .mobile-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
  }
  .mobile-menu .button { margin-top: 16px; }
}


/* ENV RUS v5: clean routes, content hubs and management-ready UI */
html { scroll-padding-top: 112px; }
[id] { scroll-margin-top: 112px; }
.footer-brand { width: 230px; padding: 0; border-radius: 0; background: transparent; }
.footer-legal-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-cookie-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.footer-cookie-button:hover { color: #90adff; }
.company-page-link { margin-top: 24px; }
.industry-card { display: block; }
.industry-link { display: inline-flex; margin-top: 16px; color: #fff; font-size: 13px; font-weight: 750; letter-spacing: .02em; }
.industry-card:focus-visible { outline: 3px solid #7192ff; outline-offset: 4px; }
.page-hero-compact { padding-bottom: 60px; }
.industry-solutions { display: grid; gap: 28px; }
.industry-solution { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.7fr); gap: 44px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.industry-solution-head h2 { margin: 0 0 16px; font-size: clamp(34px,4vw,52px); }
.industry-solution-head > p:last-child { margin: 0; color: var(--muted); }
.industry-product-links { display: grid; gap: 12px; }
.industry-product-link { display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: center; padding: 22px; border-radius: 18px; background: var(--surface); transition: transform .2s ease, background .2s ease; }
.industry-product-link:hover { transform: translateX(4px); background: #e9eefb; }
.industry-product-link > span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.industry-product-link strong { font-size: 18px; }
.industry-product-link p { display: none; margin: 0; color: var(--muted); font-size: 13px; }
.industry-product-link em { color: var(--blue); font-size: 12px; font-style: normal; font-weight: 750; white-space: nowrap; }
.company-value-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.company-value-grid .story-card:nth-child(2n) { background: var(--night); color: #fff; }
.company-value-grid .story-card:nth-child(2n) p { color: #bac4da; }
.company-gallery-page { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 150px; gap: 18px; }
.company-gallery-item { position: relative; grid-column: span 4; grid-row: span 2; overflow: hidden; padding: 0; border: 0; border-radius: 22px; background: #dfe5ef; cursor: zoom-in; }
.company-gallery-item:nth-child(1), .company-gallery-item:nth-child(6) { grid-column: span 8; }
.company-gallery-item:nth-child(4), .company-gallery-item:nth-child(8) { grid-row: span 3; }
.company-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.company-gallery-item:hover img { transform: scale(1.035); }
.company-gallery-item span { position: absolute; right: 14px; bottom: 14px; padding: 8px 11px; border-radius: 999px; background: rgba(9,16,35,.76); color: #fff; font-size: 11px; backdrop-filter: blur(8px); }
.feature-list { border-top: 1px solid var(--line); }
.feature-item { display: grid; grid-template-columns: 100px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.feature-item > span { color: var(--blue); font-weight: 800; }
.feature-item h3 { margin: 0 0 8px; font-size: 28px; }
.feature-item p { max-width: 800px; margin: 0; color: var(--muted); }
.knowledge-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.knowledge-toolbar button { padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; }
.knowledge-toolbar button.is-active { border-color: var(--night); background: var(--night); color: #fff; }
.knowledge-empty { display: grid; place-items: center; min-height: 420px; padding: 50px 24px; border: 1px dashed #b9c3d7; border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.knowledge-empty > span { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.knowledge-empty h2 { margin: 16px 0 12px; font-size: clamp(38px,5vw,60px); }
.knowledge-empty p { max-width: 680px; margin: 0 0 24px; color: var(--muted); }
.contact-page-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(400px,.9fr); gap: 28px; align-items: start; }
.contact-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.contact-details article { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-details span { display: block; margin-bottom: 28px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact-details a, .contact-details strong { display: block; font-size: 22px; line-height: 1.25; }
.contact-details p { margin: 14px 0 0; color: var(--muted); }
.contact-form-panel { padding: 36px; border-radius: var(--radius-lg); background: var(--surface); }
.contact-form-panel h2 { margin-bottom: 14px; font-size: 44px; }
.contact-form-panel > p:not(.eyebrow) { color: var(--muted); }
.consent-dark { color: var(--muted); }
.form-message-dark { color: #24663c; }
.cookie-banner { position: fixed; z-index: 1500; right: 22px; bottom: 22px; width: min(560px,calc(100vw - 44px)); padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(12,18,35,.97); color: #fff; box-shadow: 0 24px 70px rgba(5,10,24,.3); backdrop-filter: blur(14px); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s ease; }
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner h2 { margin: 0 0 9px; font-size: 24px; }
.cookie-banner p { margin: 0; color: #b9c3d9; font-size: 13px; line-height: 1.55; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 19px; flex-wrap: wrap; }
.cookie-actions button { min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.cookie-actions button[data-cookie-accept] { border-color: #fff; background: #fff; color: #10172b; }
.cookie-details { display: none; margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.14); }
.cookie-banner.is-settings .cookie-details { display: block; }
.cookie-option { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 9px 0; }
.cookie-option strong { display: block; font-size: 13px; }
.cookie-option small { color: #9ca8c0; }
.cookie-option input { width: 18px; height: 18px; }
.cookie-option input[disabled] { opacity: .7; }
.lightbox { position: fixed; z-index: 1600; inset: 0; display: grid; place-items: center; padding: 30px; background: rgba(4,8,18,.9); opacity: 0; pointer-events: none; transition: .2s ease; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1200px,92vw); max-height: 88vh; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.lightbox button { position: absolute; top: 22px; right: 24px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 28px; cursor: pointer; }
@media (min-width: 1180px) { .industry-product-link p { display: block; } .industry-product-link { grid-template-columns: 120px minmax(190px,.7fr) minmax(240px,1fr) auto; } }
@media (max-width: 860px) {
  html { scroll-padding-top: 84px; } [id] { scroll-margin-top: 84px; }
  .industry-solution { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .industry-product-link { grid-template-columns: 1fr auto; }
  .industry-product-link > span { grid-column: 1 / -1; }
  .company-value-grid, .contact-page-grid, .contact-details { grid-template-columns: 1fr; }
  .company-gallery-page { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .company-gallery-item, .company-gallery-item:nth-child(1), .company-gallery-item:nth-child(4), .company-gallery-item:nth-child(6), .company-gallery-item:nth-child(8) { grid-column: auto; grid-row: auto; }
  .feature-item { grid-template-columns: 54px 1fr; }
  .footer-legal-links { align-items: flex-start; flex-direction: column; gap: 10px; }
  .cookie-banner { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 19px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; }
}

/* Hidden anti-spam field used by the working lead endpoint. */
.form-trap { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
button[disabled] { cursor: wait; opacity: .72; }

/* CMS article cards and dynamic article page. */
.article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin: 28px 0 0; }
.article-card { display: flex; flex-direction: column; overflow: hidden; min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.article-card:hover { transform: translateY(-4px); border-color: rgba(36,87,216,.28); box-shadow: 0 22px 45px rgba(28,42,75,.1); }
.article-card-media { aspect-ratio: 16/10; background: #e9eef8; overflow: hidden; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.article-card-meta { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.article-card h2 { margin: 14px 0 12px; font-size: clamp(22px,2vw,30px); line-height: 1.12; }
.article-card p { margin: 0 0 22px; color: var(--muted); }
.article-card .text-link { margin-top: auto; }
.cms-error { margin-top: 22px; color: #a93434; }
.article-page { max-width: 920px; }
.article-page-cover { width: 100%; max-height: 570px; margin: 34px 0; border-radius: var(--radius-lg); object-fit: cover; }
.article-content { font-size: 18px; line-height: 1.75; }
.article-content h2, .article-content h3, .article-content h4 { margin: 1.8em 0 .65em; line-height: 1.16; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote { margin: 0 0 1.15em; }
.article-content blockquote { padding: 20px 24px; border-left: 4px solid var(--blue); background: var(--surface-muted); border-radius: 0 16px 16px 0; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } .article-card-body { padding: 20px; } }

/* v7 — alignment, CMS-ready collections and uniform media */
@media (min-width: 981px) {
  .header-row {
    display: grid;
    grid-template-columns: var(--header-logo-width) minmax(0, 1fr) auto;
    gap: 28px;
  }
  .desktop-nav {
    justify-self: center;
    margin-left: 0;
  }
  .header-cta, .header-contacts { justify-self: end; }
}

/* Prevent industry headings from colliding with product cards. */
.industry-solution {
  grid-template-columns: minmax(330px, .88fr) minmax(0, 1.62fr);
  align-items: start;
}
.industry-solution-head { min-width: 0; }
.industry-solution-head h2 {
  max-width: 100%;
  font-size: clamp(32px, 3vw, 45px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.industry-product-links { min-width: 0; }
.industry-product-link { min-width: 0; }
.industry-product-link strong,
.industry-product-link p { min-width: 0; overflow-wrap: anywhere; }

/* Exactly 8 partner cards: four columns on desktop, two on tablet/mobile. */
.partner-card:last-child { grid-column: auto; }
.partner-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
.partner-card:nth-child(n+5) { border-bottom: 0; }
.partner-card img { max-height: var(--partner-logo-height); }

/* A calm, uniform gallery. Every image occupies the same frame. */
.company-gallery-page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 18px;
}
.company-gallery-item,
.company-gallery-item:nth-child(1),
.company-gallery-item:nth-child(4),
.company-gallery-item:nth-child(6),
.company-gallery-item:nth-child(8) {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 4 / 3;
}
.company-gallery-item img { object-position: center; }

.cms-status {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: var(--surface);
}
.project-dynamic-empty { max-width: 760px; margin: 0 auto; text-align: center; }
.project-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.project-gallery button { aspect-ratio: 4/3; }
.project-gallery-section .section-head { align-items: start; }
.project-gallery-section .section-head > p:last-child { max-width: 540px; }
.product-dynamic-body { max-width: 980px; }
.product-dynamic-body .article-content-surface { padding: clamp(28px,5vw,64px); }
.cta-panel > .button { position: relative; z-index: 1; align-self: center; justify-self: start; }

@media (max-width: 1160px) and (min-width: 981px) {
  .header-row { grid-template-columns: var(--header-logo-width) minmax(0,1fr) auto; gap: 18px; }
  .desktop-nav { gap: 12px; }
  .industry-solution { grid-template-columns: minmax(280px,.75fr) minmax(0,1.5fr); gap: 28px; }
  .industry-solution-head h2 { font-size: 36px; }
}
@media (max-width: 980px) {
  .header-row { display: flex; }
  .industry-solution { grid-template-columns: 1fr; }
  .project-result-grid { grid-template-columns: 1fr; gap: 30px; }
  .partner-card:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .partner-card:nth-child(n+7) { border-bottom: 0; }
  .company-gallery-page, .project-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .company-gallery-page, .project-gallery { grid-template-columns: 1fr; }
  .company-gallery-item { aspect-ratio: 4 / 3; }
  .industry-solution-head h2 { font-size: 34px; }
  .project-hero-chip { right: 14px; bottom: 14px; max-width: calc(100% - 28px); }
  .project-result-copy { font-size: 17px; }
}


/* ENV CMS 1.2 — knowledge base and article layout */
.knowledge-empty[hidden] { display: none !important; }
.article-shell { background: linear-gradient(180deg, #f4f7fc 0, #fff 520px); }
.article-hero { padding: 56px 0 42px; }
.article-hero-inner { max-width: 1080px; }
.article-back-row { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:52px; }
.article-meta-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px; }
.article-meta-chip { display:inline-flex; align-items:center; min-height:34px; padding:8px 12px; border:1px solid rgba(36,87,216,.18); border-radius:999px; background:rgba(255,255,255,.78); color:var(--blue); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.article-hero h1 { max-width:980px; margin:0; font-size:clamp(42px,6.3vw,82px); line-height:.98; letter-spacing:-.045em; }
.article-hero-lead { max-width:800px; margin:28px 0 0; color:var(--muted); font-size:clamp(18px,2vw,24px); line-height:1.5; }
.article-cover-wrap { max-width:1180px; margin:0 auto; padding:0 24px; }
.article-cover-wrap img { display:block; width:100%; max-height:680px; object-fit:cover; border-radius:var(--radius-lg); box-shadow:0 30px 80px rgba(28,42,75,.16); }
.article-body-section { padding:70px 0 110px; }
.article-layout { display:grid; grid-template-columns:220px minmax(0,760px); justify-content:center; gap:64px; align-items:start; }
.article-aside { position:sticky; top:110px; padding:24px; border:1px solid var(--line); border-radius:22px; background:rgba(255,255,255,.84); box-shadow:0 14px 34px rgba(28,42,75,.06); }
.article-aside span { display:block; margin-bottom:7px; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.article-aside strong { display:block; margin-bottom:20px; font-size:14px; line-height:1.45; }
.article-aside strong:last-child { margin-bottom:0; }
.article-content-surface { padding:52px 58px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:0 25px 70px rgba(28,42,75,.08); }
.article-content { color:#26344f; font-size:18px; line-height:1.82; }
.article-content > :first-child { margin-top:0; }
.article-content h2 { margin:2em 0 .7em; color:var(--text); font-size:clamp(30px,4vw,46px); letter-spacing:-.03em; }
.article-content h3 { margin:1.8em 0 .65em; color:var(--text); font-size:clamp(25px,3vw,34px); letter-spacing:-.02em; }
.article-content h4 { margin:1.6em 0 .6em; color:var(--text); font-size:22px; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote { margin:0 0 1.25em; }
.article-content ul, .article-content ol { padding-left:1.35em; }
.article-content li + li { margin-top:.45em; }
.article-content a { color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
.article-content blockquote { padding:24px 28px; border-left:4px solid var(--blue); border-radius:0 18px 18px 0; background:#f2f6ff; color:#20345d; font-size:20px; }
.article-content img { display:block; width:100%; height:auto; margin:32px 0; border-radius:20px; }
.article-content figure { margin:32px 0; }
.article-content figcaption { margin-top:10px; color:var(--muted); font-size:14px; text-align:center; }
.article-content table { width:100%; margin:30px 0; border-collapse:collapse; font-size:16px; }
.article-content th, .article-content td { padding:14px 16px; border:1px solid var(--line); text-align:left; vertical-align:top; }
.article-content th { background:#f4f7fc; color:var(--text); }
.article-content pre { overflow:auto; margin:28px 0; padding:22px; border-radius:18px; background:#10182b; color:#eef3ff; font-size:14px; }
.article-content code { padding:.12em .32em; border-radius:6px; background:#eef3fb; font-size:.9em; }
.article-content pre code { padding:0; background:transparent; }
.article-end-cta { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:44px; padding-top:32px; border-top:1px solid var(--line); }
.article-end-cta p { max-width:470px; margin:0; color:var(--muted); }
.article-loading { min-height:520px; display:grid; place-items:center; color:var(--muted); }
@media (max-width:900px) { .article-layout { grid-template-columns:minmax(0,760px); gap:28px; } .article-aside { position:static; display:grid; grid-template-columns:repeat(3,1fr); gap:16px; } .article-aside strong { margin:0; } }
@media (max-width:680px) { .article-hero { padding-top:34px; } .article-back-row { margin-bottom:34px; } .article-hero h1 { font-size:clamp(38px,12vw,58px); } .article-cover-wrap { padding:0 16px; } .article-cover-wrap img { border-radius:22px; } .article-body-section { padding:42px 0 78px; } .article-content-surface { padding:30px 22px; border-radius:22px; } .article-content { font-size:17px; } .article-aside { grid-template-columns:1fr; } .article-end-cta { align-items:flex-start; flex-direction:column; } }

/* Lead forms are preserved in the HTML and can be restored with one switch
   in SITE_UI at the top of script.js. */
html.lead-forms-disabled #lead-modal,
html.lead-forms-disabled form[data-lead-form],
html.lead-forms-disabled [data-modal-open],
html.lead-forms-disabled .contact-form-panel,
html.lead-forms-disabled .article-end-cta,
html.lead-forms-disabled .lead-form-section-hidden {
  display: none !important;
}
html.lead-forms-disabled .contact-page-grid { grid-template-columns: minmax(0, 1fr); }
html.lead-forms-disabled .contact-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  html.lead-forms-disabled .contact-details { grid-template-columns: 1fr; }
}


/* v6 — mobile text arrows and isolated equipment on the home company block */
.company-gallery figure:nth-child(2),
.company-gallery figure:nth-child(3) {
  background: #eef2f7;
}
.company-gallery figure:nth-child(2) img,
.company-gallery figure:nth-child(3) img {
  object-fit: contain;
  padding: 10px;
}
@media (max-width: 620px) {
  .text-link,
  .industry-link,
  .industry-product-link em,
  .back-row a,
  .hero-actions a {
    font-family: Montserrat, Arial, sans-serif;
  }
}
