:root {
  --ink: #0b0d0c;
  --paper: #f1f3ee;
  --white: #ffffff;
  --muted: #68716b;
  --line: #cbd1cc;
  --acid: #d8ff3e;
  --orange: #ff6341;
  --blue: #345fe7;
  --content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote, dl, dd, ol, ul { margin: 0; }
.content-width { width: min(var(--content), calc(100% - 96px)); margin: 0 auto; }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 0 40px;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.2);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(241,243,238,.94);
  border-color: rgba(11,13,12,.18);
  backdrop-filter: blur(14px);
}
.wordmark { display: flex; align-items: baseline; gap: 10px; width: max-content; font-weight: 700; }
.wordmark span { font-size: 20px; }
.wordmark small { font-size: 11px; font-weight: 600; opacity: .64; }
.site-header nav { display: flex; gap: 30px; font-size: 13px; font-weight: 600; }
.site-header nav a { position: relative; padding: 27px 0 24px; }
.site-header nav a::after { position: absolute; right: 0; bottom: 19px; left: 0; height: 2px; content: ""; background: var(--acid); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.language-switch { justify-self: end; display: flex; border: 1px solid currentColor; }
.language-switch button { min-width: 42px; height: 30px; padding: 0 8px; color: inherit; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.language-switch button + button { border-left: 1px solid currentColor; }
.language-switch button[aria-pressed="true"] { color: var(--ink); background: var(--acid); }

.hero { position: relative; display: grid; min-height: 88svh; max-height: 900px; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center 42%; }
.hero-shade { background: linear-gradient(90deg, rgba(4,6,5,.92) 0%, rgba(4,6,5,.68) 42%, rgba(4,6,5,.14) 78%), linear-gradient(0deg, rgba(4,6,5,.78) 0%, transparent 46%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 760px) 1fr; align-items: end; padding: 144px 0 150px; }
.eyebrow, .section-index, .section-marker, .case-number { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.eyebrow { margin: 0 0 24px; color: var(--acid); }
h1 { max-width: 740px; margin: 0; font-size: 68px; line-height: 1.08; font-weight: 600; }
.hero-statement { max-width: 660px; margin: 30px 0 0; color: rgba(255,255,255,.8); font-size: 19px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 23px; border: 1px solid currentColor; border-radius: 2px; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.button-ghost { color: var(--white); background: rgba(255,255,255,.04); }
.hero-signature { align-self: start; justify-self: end; margin: 0; padding-top: 12px; color: rgba(255,255,255,.36); font-size: 13px; line-height: 1.35; font-weight: 700; text-align: right; }
.hero-proof { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; border-top: 1px solid rgba(255,255,255,.22); background: rgba(4,6,5,.34); backdrop-filter: blur(8px); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid p { display: flex; gap: 16px; align-items: center; min-height: 86px; margin: 0; padding: 0 32px; border-right: 1px solid rgba(255,255,255,.18); }
.proof-grid p:first-child { padding-left: 0; }
.proof-grid p:last-child { border-right: 0; }
.proof-grid span { color: var(--acid); font-size: 11px; }
.proof-grid strong { font-size: 14px; font-weight: 600; }

.intro-section, .experience-section, .range-section { padding: 112px 0; }
.section-marker { display: flex; justify-content: space-between; padding-bottom: 20px; color: var(--muted); border-bottom: 1px solid var(--line); }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .65fr); gap: 110px; align-items: center; padding-top: 64px; }
.intro-copy h2, .section-heading h2, .method-intro h2, .range-layout h2, .contact-layout h2 { margin: 0; font-size: 46px; line-height: 1.23; font-weight: 600; }
.intro-lead { margin: 34px 0 22px; max-width: 720px; font-size: 25px; line-height: 1.62; }
.intro-copy > p:last-of-type, .section-heading p, .range-copy p, .contact-copy > p { color: var(--muted); font-size: 16px; line-height: 1.85; }
.profile-facts { margin-top: 42px; border-top: 1px solid var(--ink); }
.profile-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); font-size: 12px; }
.profile-facts dd { font-size: 14px; font-weight: 600; }
.profile-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.credential-strip { display: flex; flex-wrap: wrap; gap: 12px 0; align-items: center; margin-top: 70px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.credential-strip span { margin-right: auto; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.credential-strip strong { padding: 0 22px; border-right: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.credential-strip strong:last-child { padding-right: 0; border-right: 0; }

.expertise-section { padding: 112px 0; background: var(--white); }
.section-heading { display: grid; grid-template-columns: 190px 1fr; gap: 30px; align-items: start; padding-bottom: 46px; border-bottom: 1px solid var(--line); }
.section-index { margin: 8px 0 0; color: var(--blue); }
.section-heading p { max-width: 700px; margin: 18px 0 0; }
.service-list { border-bottom: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 80px minmax(240px,.75fr) minmax(320px,1.1fr) 150px; gap: 24px; align-items: center; min-height: 126px; border-top: 1px solid var(--ink); transition: color .2s ease, background .2s ease; }
.service-row:first-child { border-top: 0; }
.service-row:hover { color: var(--ink); background: var(--acid); }
.service-number { font-size: 11px; font-weight: 700; }
.service-row h3 { margin: 0; font-size: 22px; font-weight: 600; }
.service-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.service-row:hover p { color: rgba(11,13,12,.72); }
.service-scope { justify-self: end; font-size: 10px; font-weight: 700; }

.method-section { padding: 112px 0; color: var(--white); background: var(--blue); }
.method-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 110px; }
.method-intro .section-index { color: var(--acid); }
.method-intro h2 { margin-top: 28px; max-width: 510px; }
.method-steps { padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.32); }
.method-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.32); }
.method-steps li > span { color: var(--acid); font-size: 11px; font-weight: 700; }
.method-steps h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.method-steps p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }

.experience-section .section-heading { border-color: var(--ink); }
.timeline { border-bottom: 1px solid var(--ink); }
.timeline-row { display: grid; grid-template-columns: 190px minmax(280px,.82fr) 1.18fr; gap: 30px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.timeline-row:first-child { border-top: 0; }
.timeline-row time, .timeline-row div > p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.timeline-row h3 { margin: 8px 0 0; font-size: 21px; line-height: 1.4; font-weight: 600; }
.timeline-row > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.work-section { padding: 112px 0; color: var(--white); background: var(--ink); }
.section-heading.light { border-color: rgba(255,255,255,.22); }
.section-heading.light .section-index { color: var(--orange); }
.section-heading.light p { color: rgba(255,255,255,.62); }
.case-feature { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: 92px; align-items: center; padding: 86px 0 110px; }
.case-feature figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.case-number { margin: 0 0 22px; color: var(--orange); }
.case-copy h3, .case-band h3 { margin: 0; font-size: 38px; line-height: 1.3; font-weight: 600; }
.case-copy > p:not(.case-number), .case-band > p { margin: 28px 0 0; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.9; }
.case-copy ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin-top: 34px; list-style: none; }
.case-copy li { padding: 9px 12px; border: 1px solid rgba(255,255,255,.28); font-size: 11px; }
.project-gallery { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 54px 24px; padding: 0 0 120px; }
.project-gallery figure img { width: 100%; object-fit: cover; }
.project-gallery figcaption { color: rgba(255,255,255,.52); }
.gallery-wide { grid-column: 1 / span 8; }
.gallery-wide img { aspect-ratio: 3 / 2; }
.gallery-portrait { grid-column: 9 / span 4; padding-top: 108px; }
.gallery-portrait img { aspect-ratio: 3 / 4; }
.gallery-square { grid-column: 1 / span 5; }
.gallery-square img { aspect-ratio: 4 / 3; }
.gallery-landscape { grid-column: 6 / span 7; padding-top: 72px; }
.gallery-landscape img { aspect-ratio: 4 / 3; }
.case-band { display: grid; grid-template-columns: .75fr 1fr .65fr; gap: 64px; align-items: center; padding: 72px 0 0; border-top: 1px solid rgba(255,255,255,.24); }
.case-band > p { margin: 0; }
.case-band figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.range-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 68px 0; }
.range-copy p { margin: 0; }
.range-copy p + p { margin-top: 20px; }
.range-notes { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.range-notes p { display: grid; min-height: 150px; margin: 0; padding: 22px; border-right: 1px solid var(--line); }
.range-notes p:first-child { padding-left: 0; }
.range-notes p:last-child { border-right: 0; }
.range-notes span { color: var(--orange); font-size: 11px; font-weight: 700; }
.range-notes strong { align-self: end; font-size: 20px; }
.range-notes small { margin-top: 5px; color: var(--muted); font-size: 12px; }

.contact-section { padding: 112px 0; color: var(--ink); background: var(--acid); }
.contact-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 110px; }
.contact-layout .section-index { color: var(--ink); }
.contact-layout h2 { max-width: 670px; margin-top: 28px; }
.contact-copy > p { margin: 0; color: rgba(11,13,12,.72); }
.contact-topics { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0; }
.contact-topics span { padding: 8px 11px; border: 1px solid rgba(11,13,12,.38); font-size: 11px; font-weight: 600; }
.contact-note { padding-top: 28px; border-top: 1px solid rgba(11,13,12,.3); }
.contact-section .button-primary { margin-top: 28px; color: var(--white); border-color: var(--ink); background: var(--ink); }
.copy-status { min-height: 20px; margin-top: 12px !important; font-size: 12px !important; }

footer { padding: 36px 0; color: var(--white); background: var(--ink); }
.footer-layout { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.footer-layout strong { font-size: 15px; }
.footer-layout p { margin: 5px 0 0; color: rgba(255,255,255,.55); font-size: 10px; }
.footer-layout > p { margin: 0; }
.footer-layout a { justify-self: end; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .site-header { transition: none; }
}

@media (max-width: 980px) {
  .content-width { width: min(var(--content), calc(100% - 48px)); }
  .site-header { grid-template-columns: 1fr auto; padding: 0 24px; }
  .site-header nav { display: none; }
  h1 { font-size: 54px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-signature { display: none; }
  .intro-layout, .method-layout, .range-layout, .contact-layout { gap: 64px; }
  .service-row { grid-template-columns: 60px minmax(200px,.7fr) 1fr; }
  .service-scope { display: none; }
  .timeline-row { grid-template-columns: 140px minmax(240px,.8fr) 1.2fr; }
  .case-feature { gap: 56px; }
  .case-band { grid-template-columns: 1fr 1.2fr; }
  .case-band figure { grid-column: 2; }
}

@media (max-width: 720px) {
  .content-width { width: calc(100% - 36px); }
  .site-header { min-height: 64px; padding: 0 18px; }
  .wordmark small { display: none; }
  .language-switch button { min-width: 38px; height: 28px; }
  .hero { min-height: 84svh; max-height: none; }
  .hero-media { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,6,5,.88), rgba(4,6,5,.36)), linear-gradient(0deg, rgba(4,6,5,.84), transparent 62%); }
  .hero-grid { align-items: end; padding: 108px 0 148px; }
  .eyebrow { font-size: 10px; line-height: 1.5; }
  h1 { font-size: 40px; line-height: 1.14; }
  .hero-statement { margin-top: 22px; font-size: 15px; line-height: 1.7; }
  .hero-actions { margin-top: 28px; }
  .button { min-height: 45px; padding: 0 18px; }
  .proof-grid { grid-template-columns: 1fr; padding: 12px 0; }
  .proof-grid p { min-height: 0; padding: 6px 0; border: 0; }
  .proof-grid strong { font-size: 11px; }
  .intro-section, .experience-section, .range-section, .expertise-section, .method-section, .work-section, .contact-section { padding: 78px 0; }
  .section-marker { gap: 20px; font-size: 9px; }
  .intro-layout, .method-layout, .range-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; padding-top: 46px; }
  .intro-copy h2, .section-heading h2, .method-intro h2, .range-layout h2, .contact-layout h2 { font-size: 32px; }
  .intro-lead { font-size: 20px; }
  .profile-portrait { width: min(100%, 440px); }
  .credential-strip { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .credential-strip span { grid-column: 1 / -1; margin-bottom: 8px; }
  .credential-strip strong { padding: 0; border: 0; font-size: 12px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; padding-bottom: 32px; }
  .section-index { margin: 0; }
  .service-row { grid-template-columns: 42px 1fr; gap: 8px 12px; padding: 26px 0; }
  .service-row h3 { font-size: 19px; }
  .service-row p { grid-column: 2; }
  .method-layout { padding-top: 0; }
  .timeline-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .timeline-row h3 { font-size: 19px; }
  .case-feature { grid-template-columns: 1fr; gap: 42px; padding: 58px 0 80px; }
  .case-feature figure { width: 82%; }
  .case-copy h3, .case-band h3 { font-size: 30px; }
  .project-gallery { grid-template-columns: 1fr; gap: 42px; padding-bottom: 80px; }
  .gallery-wide, .gallery-portrait, .gallery-square, .gallery-landscape { grid-column: auto; padding-top: 0; }
  .gallery-portrait { width: 78%; margin-left: auto; }
  .case-band { grid-template-columns: 1fr; gap: 32px; padding-top: 54px; }
  .case-band figure { grid-column: auto; width: 66%; margin-left: auto; }
  .range-layout { padding-top: 46px; }
  .range-notes { grid-template-columns: 1fr 1fr; }
  .range-notes p { min-height: 132px; border-bottom: 1px solid var(--line); }
  .range-notes p:nth-child(2) { border-right: 0; }
  .range-notes p:nth-child(3), .range-notes p:nth-child(4) { border-bottom: 0; }
  .range-notes p:nth-child(3) { padding-left: 0; }
  .contact-layout { padding-top: 0; }
  .footer-layout { grid-template-columns: 1fr auto; }
  .footer-layout > p { display: none; }
}

@media (max-width: 720px) {
  html[lang="ru"] h1 { font-size: 36px; }
  html[lang="ru"] .hero-statement { font-size: 14px; line-height: 1.62; }
}

@media (max-width: 390px) {
  h1 { font-size: 36px; }
  .hero-actions { align-items: stretch; flex-direction: column; width: 190px; }
  .profile-facts div { grid-template-columns: 92px 1fr; }
  .range-notes { grid-template-columns: 1fr; }
  .range-notes p { padding-left: 0; border-right: 0; }
  .range-notes p:nth-child(3) { border-bottom: 1px solid var(--line); }
}
