@font-face {
  font-family: "IBM Plex Serif";
  src: url("../assets/fonts/ibm-plex-serif-500-cyrillic-ext.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../assets/fonts/ibm-plex-serif-500-cyrillic.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../assets/fonts/ibm-plex-serif-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../assets/fonts/ibm-plex-serif-600-cyrillic-ext.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../assets/fonts/ibm-plex-serif-600-cyrillic.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../assets/fonts/ibm-plex-serif-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../assets/fonts/golos-text-cyrillic-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  src: url("../assets/fonts/golos-text-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../assets/fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fff;
  --surface: #f2f4f7;
  --ink: #111827;
  --muted: #56616f;
  --accent: #203a5f;
  --accent-hover: #2f507c;
  --line: #d9dee5;
  --page: min(1200px, calc(100% - 48px));
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "Golos Text", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.22em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; }
.page { width: var(--page); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  z-index: 20;
  inset: 8px auto auto 8px;
  padding: 12px 16px;
  color: #fff;
  background: var(--accent);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner {
  width: var(--page);
  min-height: 80px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px;
}
.wordmark { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--serif); font-weight: 600; text-decoration: none; }
.site-nav { display: flex; gap: 28px; }
.site-nav a, .header-contact, .site-footer a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: .86rem; font-weight: 700; text-decoration: none; }
.header-contact { color: var(--accent); }

.hero {
  width: var(--page);
  min-height: min(620px, calc(100svh - 80px));
  margin-inline: auto;
  padding-block: 56px;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 760px; }
.context, .section-heading > p, .experience header > p {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 7.2vw, 7rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .9;
}
.role { margin-bottom: 24px; color: var(--accent); font-size: clamp(1.45rem, 2.5vw, 2.2rem); font-weight: 750; letter-spacing: -.025em; }
.role span { font-weight: 450; }
.promise { max-width: 650px; margin-bottom: 36px; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.48; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out, transform 120ms ease-out;
}
.button-primary { color: #fff; background: var(--accent); }
.button-light { color: var(--accent); background: #fff; }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ink); }
.proof article { padding: 26px 24px 28px 0; }
.proof article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.proof strong { display: block; margin-bottom: 10px; color: var(--accent); font-family: var(--serif); font-size: 2rem; line-height: 1; }
.proof span { display: block; max-width: 22ch; color: var(--muted); font-size: .84rem; line-height: 1.42; }

.section { padding-block: 120px; }
.section-heading { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: 64px; }
.section-heading > p { grid-column: 1 / span 3; margin-top: 10px; }
h2 { grid-column: 4 / -1; margin-bottom: 0; font-family: var(--serif); font-size: clamp(2.5rem, 4.6vw, 4.65rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.03; }
h3 { margin-bottom: 10px; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.8rem); font-weight: 600; line-height: 1.18; }
.section-intro { max-width: 750px; margin: -24px 0 48px 25%; color: var(--muted); font-size: 1.05rem; }

.contour { border-bottom: 1px solid var(--line); }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border-top: 1px solid var(--accent); }
.process li { min-height: 260px; padding: 20px 14px 20px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 40px; }
.process li:last-child { border-right: 0; }
.process li > span { color: var(--accent); font-size: .76rem; font-weight: 800; }
.process h3 { font-family: var(--sans); font-size: .95rem; font-weight: 750; overflow-wrap: anywhere; }
.process p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.cases { background: var(--surface); }
.case-list { border-top: 1px solid var(--ink); }
.case-list article { display: grid; grid-template-columns: 80px minmax(0,1.4fr) minmax(220px,.6fr); gap: 28px; padding-block: 34px; border-bottom: 1px solid var(--line); align-items: start; }
.case-number { color: var(--accent); font-family: var(--serif); font-size: 1.45rem; }
.case-list p { margin-bottom: 0; color: var(--muted); }
.case-list .status { color: var(--ink); font-size: .82rem; font-weight: 750; }
.status::before { content: ""; width: 8px; height: 8px; margin-right: 10px; display: inline-block; border: 1px solid var(--accent); }

.responsibility-grid { margin-left: 25%; display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--ink); }
.responsibility-grid article { padding: 30px 26px 0 0; }
.responsibility-grid article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.responsibility-grid span, .method > li > span { display: block; margin-bottom: 48px; color: var(--accent); font-size: .76rem; font-weight: 800; }
.responsibility-grid p { margin: 0; color: var(--muted); }

.approach { background: var(--surface); }
.method { list-style: none; margin: 0 0 0 25%; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.method li { min-height: 250px; padding: 28px 32px 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.method li:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.method > li > span { margin: 4px 0 0; }
.method p { margin: 0; color: var(--muted); }

.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.ai-lead { font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 500; line-height: 1.16; }
.ai-layout ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ai-layout li { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.ai-layout strong { font-size: .92rem; }
.ai-layout span { color: var(--muted); font-size: .9rem; }
.technical-depth { max-width: 900px; margin: 56px 0 0 25%; padding-top: 20px; border-top: 1px solid var(--accent); color: var(--muted); font-size: .82rem; }

.experience { color: #fff; background: #151f2f; }
.experience-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.experience-layout > * { min-width: 0; }
.experience header > p { color: #bdc9da; overflow-wrap: anywhere; }
.experience h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 4rem); overflow-wrap: normal; }
.experience-copy { padding-top: 10px; }
.experience-copy p { max-width: 660px; color: #dfe5ee; font-size: 1.05rem; }
.experience-copy p + p { margin-top: 28px; padding-top: 28px; border-top: 1px solid #3b485a; }
.experience-copy strong { color: #fff; }

.contact { color: #fff; background: var(--accent); }
.contact-inner { padding-block: 104px; }
.contact h2 { max-width: 980px; margin-bottom: 28px; color: #fff; }
.contact p { max-width: 900px; margin-bottom: 32px; color: #e8edf4; font-size: .82rem; font-weight: 750; letter-spacing: .08em; line-height: 1.55; text-transform: uppercase; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: var(--muted); font-size: .78rem; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { font-size: .78rem; }

:is(a, button):focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }
.button:active { transform: translateY(1px); }
:is(.wordmark, .site-nav a, .header-contact, .site-footer a):active { color: var(--accent-hover); }
@media (hover:hover) {
  .button:hover { transform: translateY(-2px); }
  .button-primary:hover { background: var(--accent-hover); }
  .button-light:hover { color: #fff; background: var(--accent-hover); border-color: #fff; }
  .site-nav a:hover, .header-contact:hover, .site-footer a:hover { color: var(--accent-hover); }
}

@media (max-width: 1024px) {
  :root { --page: min(100% - 40px, 900px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 16px 24px; padding-top: 8px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .hero { min-height: auto; padding-block: 56px; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof article:nth-of-type(3) { border-left: 0; border-top: 1px solid var(--line); }
  .proof article:nth-of-type(4) { border-top: 1px solid var(--line); }
  .process { grid-template-columns: repeat(4,1fr); }
  .process li { min-height: 220px; }
  .process li:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .process li:nth-child(4) { border-right: 0; }
  .case-list article { grid-template-columns: 56px 1fr; }
  .case-list .status { grid-column: 2; }
  .responsibility-grid { margin-left: 0; }
  .method, .technical-depth { margin-left: 0; }
  .experience-layout { gap: 48px; }
}

@media (max-width: 768px) {
  .hero { align-items: stretch; }
  .context { margin-bottom: 12px; }
  h1 { margin-bottom: 18px; font-size: clamp(4rem,14vw,6rem); }
  .role { margin-bottom: 18px; }
  .promise { margin-bottom: 28px; }
  .section { padding-block: 88px; }
  .section-heading { display: block; margin-bottom: 44px; }
  .section-heading > p { margin-bottom: 18px; }
  h2 { font-size: clamp(2.35rem,7.5vw,3.8rem); }
  .section-intro { margin: -10px 0 40px; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li { min-height: 190px; }
  .process li:nth-child(even) { border-right: 0; }
  .process li:nth-child(-n+6) { border-bottom: 1px solid var(--line); }
  .responsibility-grid { grid-template-columns: 1fr; }
  .responsibility-grid article { padding: 28px 0; border-bottom: 1px solid var(--line); }
  .responsibility-grid article + article { padding-left: 0; border-left: 0; }
  .responsibility-grid span { margin-bottom: 24px; }
  .method { grid-template-columns: 1fr; }
  .method li, .method li:nth-child(even) { min-height: auto; padding: 28px 0; border-left: 0; }
  .ai-layout { grid-template-columns: 1fr; gap: 40px; }
  .experience-layout { grid-template-columns: 1fr; }
  .experience h2 { font-size: clamp(2rem, 8.5vw, 3.8rem); }
  .contact-inner { padding-block: 80px; }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 32px); }
  body { font-size: 16px; }
  .header-inner { min-height: 68px; }
  .wordmark { font-size: .92rem; }
  .header-contact { font-size: .82rem; }
  .site-nav { max-width: 100%; gap: 22px; overflow-x: auto; }
  .site-nav a { flex: 0 0 auto; }
  .hero { padding-block: 44px 40px; }
  h1 { font-size: clamp(3.45rem,18vw,5rem); }
  .hero-copy > .button { width: 100%; }
  .proof { grid-template-columns: 1fr; }
  .proof article { padding: 24px 0; }
  .proof article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .section { padding-block: 72px; }
  h2 { font-size: clamp(2.1rem,10.5vw,3.2rem); }
  .process { grid-template-columns: 1fr; border-bottom: 1px solid var(--accent); }
  .process li { min-height: auto; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr; gap: 16px; }
  .process li:last-child { border-bottom: 0; }
  .process h3 { font-size: 1rem; }
  .process p { font-size: .86rem; }
  .case-list article { grid-template-columns: 38px 1fr; gap: 16px; }
  .case-list .status { grid-column: 2; }
  .ai-layout li { grid-template-columns: 1fr; gap: 8px; }
  .technical-depth { margin-top: 40px; }
  .contact-inner { padding-block: 64px; }
  .contact p { font-size: .78rem; letter-spacing: .065em; }
  .footer-inner { padding-block: 28px; align-items: flex-start; flex-direction: column; }
  .site-footer nav { width: 100%; flex-wrap: wrap; gap: 8px 20px; }
}

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