/* ============================================================
   AI CJM – Страница /devtest1/ (AI-разработка под задачу).
   Переписано на уровне /edu/: border-based layout, semantic tokens,
   section-labels, proof-line hero, marquee logo-cloud, details FAQ,
   inline contact form on deep-blue, accessibility.
   Подключать ПОСЛЕ redesign.css.
   ============================================================ */

/* --- Semantic tokens (как у edu) --- */
:root {
  --page: var(--bg);
  --surface: var(--bg-card);
  --soft: var(--bg-1);
  --text: var(--ink);
  --muted: var(--ink-2);
  --quiet: var(--ink-3);
  --brand: var(--accent);
  --brand-deep: var(--bg-blue);
  --brand-hover: var(--accent-ink);
  --white: #ffffff;
  --white-72: rgba(255, 255, 255, 0.72);
  --white-16: rgba(255, 255, 255, 0.16);
  --white-10: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --container: min(1376px, calc(100vw - 64px));
  --section-space: clamp(52px, 4.8vw, 76px);
}

/* --- Base --- */
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* --- Skip link --- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--brand-deep);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

/* --- Sticky header (edu-style) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 32px;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header__brand {
  width: fit-content;
  color: var(--text);
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a {
  position: relative;
  padding: 26px 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
  line-height: 1;
  text-decoration: none;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after { opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.header-cta {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-deep);
  color: var(--surface);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  border: none;
}
.header-cta span { color: var(--accent-bright); font-size: 17px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.button--light { background: var(--white); border-color: var(--white); color: var(--brand-deep); }
.button--light:hover { background: var(--soft); border-color: var(--soft); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.menu-button span { display: block; width: 18px; height: 1px; margin: 5px auto; background: var(--text); }

/* --- Hero (edu-style) --- */
.hero {
  display: flex;
  min-height: calc(100vh - 72px);
  border-bottom: 1px solid var(--line);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 980px);
  padding: clamp(42px, 4vw, 64px) clamp(32px, 5vw, 78px);
}

.proof-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}
.proof-line > i { width: 4px; height: 4px; background: var(--brand); }
.proof-group { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.proof-logos { display: flex; align-items: center; gap: 10px; height: 34px; }
.proof-logo { position: relative; display: block; height: 34px; overflow: hidden; flex: 0 0 auto; }
.proof-logo img { position: absolute; max-width: none; object-fit: contain; }
.proof-logo--sber { width: 34px; }
.proof-logo--sber img { top: 0; left: 0; width: 205px; height: 34px; }
.proof-logo--vtb { width: 68px; }
.proof-logo--vtb img { position: static; width: 68px; height: 24px; }
.proof-faces { display: flex; width: 82px; flex: 0 0 82px; }
.proof-faces img { width: 34px; height: 34px; border: 2px solid var(--page); border-radius: 50%; background: var(--soft); object-fit: cover; }
.proof-faces img + img { margin-left: -10px; }

.hero h1 {
  max-width: 840px;
  margin: 0;
  color: var(--text);
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.94;
}
.hero h1 span { display: block; color: var(--brand); font-style: italic; font-weight: 520; }
.hero__lead { max-width: 780px; margin: 22px 0 0; color: var(--muted); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.45; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 26px; }
.text-link { color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.text-link span { margin-left: 9px; color: var(--brand); }
.hero__metrics { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 30px 0 0; border-top: 1px solid var(--line); }
.hero__metrics div { padding: 24px 18px 0 0; }
.hero__metrics div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hero__metrics dt { color: var(--text); font-size: 20px; font-weight: 700; }
.hero__metrics dd { margin: 3px 0 0; color: var(--quiet); font-size: 12px; }

/* --- Logo cloud (marquee) --- */
.logo-cloud {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 40px;
  align-items: center;
  width: var(--container);
  margin: 0 auto;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.logo-cloud > span { color: var(--quiet); font-size: 12px; }
.logo-cloud__marquee {
  position: relative;
  width: 100%;
  height: 36px;
  overflow: hidden;
  contain: layout paint;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.logo-cloud__track { display: flex; width: max-content; animation: logo-cloud-scroll 34s linear infinite; will-change: transform; }
.logo-cloud__group { display: flex; align-items: center; gap: 52px; padding-right: 52px; }
.logo-cloud img { width: 112px; max-width: none; height: 34px; flex: 0 0 auto; object-fit: contain; filter: grayscale(1); opacity: 0.72; }
.logo-cloud__marquee:hover .logo-cloud__track { animation-play-state: paused; }

@keyframes logo-cloud-scroll {
  to { transform: translateX(-50%); }
}

/* --- Sections (edu-style) --- */
.section { width: var(--container); margin: 0 auto; padding: var(--section-space) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 880px; margin-bottom: clamp(32px, 3.5vw, 46px); }
.section-label { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--muted); font-size: 13px; font-weight: 600; }
.section-label span { width: 30px; height: 1px; background: var(--brand); }
.section-label--light { color: var(--white-72); }
.section-label--light span { background: var(--white); }
.section-heading h2, .contour h2, .contact h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}
.section-heading > p:last-child, .section-heading > div > p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

/* --- Pains (details, border-based) --- */
.pain-list { border-top: 1px solid var(--line); }
.pain-list details { border-bottom: 1px solid var(--line); }
.pain-list summary {
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 520;
  letter-spacing: -0.025em;
  cursor: pointer;
  list-style: none;
}
.pain-list summary::-webkit-details-marker { display: none; }
.pain-list summary > span:first-child { color: var(--brand); font-size: 11px; font-weight: 650; }
.pain-list summary > span:last-child {
  color: var(--brand);
  font-size: 28px;
  font-weight: 350;
  transition: transform 180ms ease;
  justify-self: end;
}
.pain-list details[open] summary > span:last-child { transform: rotate(45deg); }
.pain-body {
  max-width: 880px;
  margin: -4px 0 28px;
  display: grid;
  gap: 24px;
}
.pain-body__block { padding: 20px 0; border-top: 1px solid var(--line); }
.pain-body__block > span { display: block; margin-bottom: 10px; color: var(--brand); font-size: 12px; font-weight: 650; }
.pain-body__block p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pain-body__block p b { color: var(--text); font-weight: 650; }
.pain-cases { display: grid; gap: 12px; padding: 18px 20px; background: var(--soft); border-top: 1px solid var(--line); }
.pain-case { display: grid; grid-template-columns: minmax(62px, 86px) minmax(0, 1fr); gap: 14px; align-items: center; }
.pain-case img { width: auto; max-width: 86px; height: 25px; object-fit: contain; object-position: left center; }
.pain-case > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.pain-case strong { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pain-case small { overflow: hidden; color: var(--quiet); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

/* --- Solution modules (4-col border-based) --- */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.module-grid article {
  display: flex;
  min-height: 270px;
  padding: 26px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.module-grid article > span { color: var(--brand); font-size: 12px; font-weight: 650; }
.module-icon { display: block; width: 72px; height: 60px; margin: 18px 0 14px; color: var(--brand); flex: 0 0 auto; font-style: normal; }
.module-icon svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module-grid h3 { margin: 8px 0 12px; font-size: 26px; font-weight: 650; letter-spacing: -0.045em; line-height: 1.08; }
.module-grid p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.module-grid small { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 12px; }
.module-grid .module-card--accent { background: var(--brand-deep); color: var(--white); }
.module-card--accent > span, .module-card--accent p { color: var(--white-72); }
.module-card--accent .module-icon { color: var(--white); }
.module-card--accent a { margin-top: auto; color: var(--white); font-size: 12px; font-weight: 650; text-decoration: none; }

/* --- Cases (4-col border-based) --- */
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-card {
  display: flex;
  min-width: 0;
  min-height: 292px;
  padding: 20px;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background 160ms ease;
}
.case-card:hover { background: var(--soft); }
.case-card__top { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 14px; }
.case-card__logo { width: auto; max-width: 98px; height: 26px; object-fit: contain; object-position: left center; }
.case-card__fallback { display: inline-flex; min-width: 34px; min-height: 26px; align-items: center; color: var(--text); font-size: 12px; font-weight: 750; letter-spacing: -0.03em; }
.case-card__top > span:last-child { max-width: 110px; color: var(--quiet); font-size: 12px; text-align: right; white-space: normal; }
.case-card__body { display: flex; min-height: 0; margin: 31px 0 20px; flex: 1; flex-direction: column; }
.case-card__body small { color: var(--brand); font-size: 12px; font-weight: 650; }
.case-card h3 { display: -webkit-box; margin: 11px 0 12px; overflow: hidden; font-size: clamp(19px, 1.45vw, 23px); font-weight: 540; letter-spacing: -0.045em; line-height: 1.08; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.case-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.case-card__bottom { display: flex; min-height: 48px; padding-top: 14px; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.case-card__bottom > div { display: flex; min-width: 0; align-items: baseline; gap: 7px; }
.case-card__bottom strong { color: var(--brand); font-size: 21px; font-weight: 650; letter-spacing: -0.04em; white-space: nowrap; }
.case-card__bottom span { color: var(--quiet); font-size: 12px; white-space: normal; }
.case-card__bottom i { color: var(--brand); font-size: 16px; font-style: normal; }

/* --- Process (5-col border-based, like method-steps) --- */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-steps li { display: flex; min-height: 280px; padding: 26px; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-steps > li > span { color: var(--brand); font-size: 11px; }
.process-steps h3 { min-height: 2.1em; margin: 18px 0 14px; font-size: 23px; font-weight: 550; letter-spacing: -0.04em; line-height: 1.05; }
.process-steps p { margin: 0; color: var(--muted); font-size: 13px; }
.process-steps small { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; }

/* --- Contour / Security (deep-blue, 2-col with diagram) --- */
.contour {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  gap: clamp(56px, 8vw, 130px);
  padding: var(--section-space) max(32px, calc((100vw - 1376px) / 2));
  background: var(--brand-deep);
  color: var(--white);
}
.contour h2 { color: var(--white); }
.contour__copy > p:not(.section-label) { max-width: 680px; margin: 26px 0 0; color: var(--white-72); font-size: 18px; }
.check-list { margin: 42px 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--white-16); font-size: 14px; }
.check-list span { color: var(--white-72); font-size: 10px; }
.contour__diagram { align-self: center; }
.diagram-frame { padding: clamp(24px, 3vw, 44px); background: var(--white); color: var(--text); box-shadow: 0 34px 100px rgba(0, 0, 0, 0.24); }
.diagram-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.diagram-head i { padding: 7px 9px; background: var(--soft); color: var(--brand); font-size: 9px; font-style: normal; }
.diagram-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px; padding: 22px; background: var(--soft); border: 1px solid var(--line); }
.diagram-row > span { color: var(--brand); font-size: 10px; font-weight: 700; }
.diagram-row strong { font-size: 15px; font-weight: 600; }
.diagram-row small { color: var(--quiet); font-size: 10px; }
.diagram-row--security { background: var(--brand); border-color: var(--brand); color: var(--white); }
.diagram-row--security > span, .diagram-row--security small { color: var(--white-72); }
.diagram-connector { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 13px 0; color: var(--quiet); font-size: 9px; }
.diagram-connector i { height: 1px; background: var(--line); }
.diagram-systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.diagram-systems div { min-height: 90px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.diagram-systems span { display: block; margin-bottom: 18px; color: var(--brand); font-size: 9px; }
.diagram-systems strong { font-size: 11px; line-height: 1.3; }
.diagram-result { display: grid; grid-template-columns: 90px 1fr; gap: 20px; margin-top: 14px; padding: 22px; background: var(--brand-deep); color: var(--white); }
.diagram-result span { color: var(--white-72); font-size: 10px; }
.diagram-result strong { max-width: 380px; font-size: 14px; }
.contour__diagram > p { max-width: 680px; margin: 20px 0 0; color: var(--white-72); font-size: 12px; }

/* --- Tech (4-col border-based) --- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tech-grid article { display: flex; min-height: 240px; padding: 26px; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech-grid article > span { color: var(--brand); font-size: 12px; font-weight: 650; }
.tech-grid h3 { margin: 18px 0 14px; font-size: 23px; font-weight: 550; letter-spacing: -0.04em; line-height: 1.05; }
.tech-grid p { margin: 0; color: var(--muted); font-size: 13px; }

/* --- Reviews (3-col border-based) --- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.review-grid article { display: flex; min-height: 310px; padding: 26px; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-logo { width: auto; max-width: 112px; height: 32px; object-fit: contain; object-position: left center; }
.review-grid blockquote { margin: 28px 0 0; font-size: 20px; font-weight: 450; letter-spacing: -0.025em; line-height: 1.45; }
.review-grid a { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); color: var(--brand); font-size: 10px; font-weight: 650; text-decoration: none; }

/* --- FAQ (details/summary, border-based) --- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: grid; grid-template-columns: 1fr 30px; gap: 30px; align-items: center; padding: 26px 0; color: var(--text); font-size: clamp(18px, 2vw, 25px); font-weight: 520; letter-spacing: -0.025em; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--brand); font-size: 28px; font-weight: 350; transition: transform 180ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 820px; margin: -4px 0 28px; color: var(--muted); font-size: 15px; }

/* --- Contact (deep-blue, 2-col, edu-style) --- */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(60px, 10vw, 160px);
  padding: var(--section-space) max(32px, calc((100vw - 1376px) / 2));
  background: var(--brand-deep);
  color: var(--white);
}
.contact h2 { color: var(--white); }
.contact__copy > p:not(.section-label) { max-width: 600px; margin: 24px 0 0; color: var(--white-72); font-size: 17px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-content: start; }
.lead-form label { display: block; }
.lead-form label > span { display: block; margin-bottom: 8px; color: var(--white-72); font-size: 10px; }
.lead-form input, .lead-form textarea { width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--white-16); outline: 0; background: transparent; color: var(--white); resize: vertical; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--white-72); }
.lead-form input:focus, .lead-form textarea:focus { border-bottom-color: var(--white); }
.lead-form__wide { grid-column: 1 / -1; }
.lead-form__consent { grid-column: 1 / -1; display: grid !important; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.lead-form__consent input { width: 18px; height: 18px; margin: 1px 0 0; padding: 0; border: 1px solid var(--white-40); accent-color: var(--white); }
.lead-form__consent > span { margin: 0 !important; color: var(--white-72) !important; font-size: 12px !important; line-height: 1.5; }
.lead-form__consent a { color: var(--white); text-underline-offset: 2px; }
.lead-form .button { width: fit-content; margin-top: 12px; }
.lead-form__note { align-self: center; margin: 12px 0 0; color: var(--white-72); font-size: 11px; line-height: 1.45; }
.lead-form__note a { color: var(--white); text-underline-offset: 2px; }
.lead-form__status { grid-column: 1 / -1; min-height: 20px; margin: 0; color: var(--white); font-size: 12px; }

/* --- Scroll anchors --- */
.cases, .process, .contact { scroll-margin-top: 72px; }

/* --- Footer (edu-style: dark, big logo, 4 columns) --- */
.site-footer {
  width: 100%;
  padding: 64px max(32px, calc((100vw - 1440px) / 2)) 34px;
  background: #081329;
  color: var(--white);
  box-sizing: border-box;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1.25fr auto;
  gap: 50px;
  align-items: end;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--white-16);
}
.site-footer__brand {
  color: var(--white);
  font-size: clamp(54px, 8vw, 116px);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.78;
  text-decoration: none;
}
.site-footer__top p {
  max-width: 560px;
  margin: 0;
  color: var(--white-72);
  font-size: 15px;
  line-height: 1.55;
}
.site-footer__cta {
  display: inline-flex;
  min-width: 210px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background: var(--white);
  color: #081329;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}
.site-footer__cta span { color: #2455df; }
.site-footer__links {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr 1.25fr;
  gap: clamp(32px, 6vw, 100px);
  padding: 52px 0 64px;
}
.site-footer__links section { display: flex; min-width: 0; flex-direction: column; }
.site-footer__links h3 {
  margin: 0 0 24px;
  color: #73809a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer__links a {
  width: fit-content;
  margin: 0 0 14px;
  color: #d7dcea;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #8eabff;
  transform: translateX(3px);
}
.site-footer__bottom {
  display: flex;
  gap: 30px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--white-16);
  color: #73809a;
  font-size: 9px;
  letter-spacing: 0.035em;
}
.site-footer__bottom a {
  margin-left: auto;
  color: #b9c2d5;
  text-decoration: none;
}

/* --- Reviews: improved visual --- */
.review-grid article { position: relative; }
.review-grid article::before {
  content: "\201C";
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  opacity: 0.12;
}

/* --- Responsive: 1180px --- */
@media (max-width: 1180px) {
  :root { --container: min(100% - 48px, 1120px); }
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero__copy { padding-inline: 48px; }
  .hero h1 { font-size: clamp(52px, 6.4vw, 72px); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .contour { grid-template-columns: 1fr 1fr; padding-inline: max(24px, calc((100vw - 1120px) / 2)); }
  .contact { padding-inline: max(24px, calc((100vw - 1120px) / 2)); }
}

/* --- Responsive: 900px --- */
@media (max-width: 900px) {
  :root { --container: calc(100% - 36px); --section-space: 68px; }
  .site-header { min-height: 64px; padding-inline: 18px; }
  .header-actions > .header-cta { display: none; }
  .menu-button { display: block; }
  .site-header[data-open="true"] .site-nav { position: absolute; top: 64px; right: 0; left: 0; display: flex; padding: 20px; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); }
  .hero { min-height: auto; }
  .hero__copy { min-height: auto; padding: 64px 24px; }
  .hero h1 { font-size: clamp(52px, 12vw, 72px); }
  .logo-cloud { grid-template-columns: 1fr; gap: 18px; }
  .logo-cloud__group { gap: 42px; padding-right: 42px; }
  .logo-cloud img { width: 104px; }
  .contour, .contact { grid-template-columns: 1fr; padding-inline: 18px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .review-grid article { min-height: 300px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__links { grid-template-columns: 1fr 1fr; }
}

/* --- Responsive: 620px --- */
@media (max-width: 620px) {
  :root { --container: calc(100% - 36px); --section-space: 46px; }
  .hero__copy { min-height: auto; padding: 48px 18px; }
  .proof-line { margin-bottom: 22px; }
  .proof-line > i { display: none; }
  .hero h1 { font-size: 52px; line-height: 0.98; }
  .hero__lead { margin-top: 22px; font-size: 17px; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero__actions .button { width: 100%; }
  .hero__metrics { grid-template-columns: 1fr; margin-top: 32px; }
  .hero__metrics div, .hero__metrics div + div { padding: 13px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .logo-cloud { width: var(--container); }
  .section-heading h2, .contour h2, .contact h2 { font-size: 40px; }
  .section-heading > p:last-child, .section-heading > div > p { font-size: 16px; }
  .contour, .contact { padding-inline: 18px; }
  .contour__diagram { display: none; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li { min-height: 260px; }
  .case-grid, .module-grid, .tech-grid { grid-template-columns: 1fr; }
  .review-grid blockquote { font-size: 18px; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form__wide, .lead-form__consent, .lead-form__status { grid-column: auto; }
  .lead-form .button { width: 100%; }
  .site-footer { padding: 48px 18px 26px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 26px; padding-bottom: 38px; }
  .site-footer__brand { grid-column: auto; font-size: 72px; }
  .site-footer__top p { font-size: 14px; }
  .site-footer__cta { width: 100%; }
  .site-footer__links { grid-template-columns: 1fr 1fr; gap: 34px 24px; padding: 40px 0; }
  .site-footer__links a { font-size: 12px; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
  .site-footer__bottom a { margin: 8px 0 0; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .logo-cloud__track { animation: none; }
  .logo-cloud__marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
