:root {
  color-scheme: light;
  --paper: #f3f0ea;
  --accent: #788da0;
  --soft: #c7b5a8;
  --ink: #26384a;
  --heading-accent: #546b80;
  --mist: #e9e4dc;
  --body: #4f555a;
  --line: #d1ccc3;
  --light-body: #e1e5e6;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --gutter: clamp(24px, 5vw, 84px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
}
::selection { background: var(--soft); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, figure, h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-width: 100%; }
em { font-weight: inherit; color: var(--heading-accent); }
section[id] { scroll-margin-top: 32px; }

.frame { width: min(calc(100% - 2 * var(--gutter)), 1440px); margin-inline: auto; }
.section-space { padding-block: clamp(72px, 8.7vw, 142px); }
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  translate: 0 -200%;
}
.skip:focus { translate: 0; }

.icon {
  --icon-size: 17px;
  display: inline-block;
  flex: none;
  width: var(--icon-size);
  height: var(--icon-size);
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.arrow-up { --glyph: url("./assets/arrow-up-right.svg"); }
.arrow-down { --glyph: url("./assets/arrow-down.svg"); }
.plus { --glyph: url("./assets/plus.svg"); }
.menu { --glyph: url("./assets/menu.svg"); }
.x { --glyph: url("./assets/x.svg"); }
.building { --glyph: url("./assets/building-2.svg"); }
.layers { --glyph: url("./assets/layers.svg"); }
.user { --glyph: url("./assets/user-round.svg"); }
.chevron-up { --glyph: url("./assets/chevron-up.svg"); }

.site-header { position: relative; z-index: 2; }
.header-inner {
  position: relative;
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 3.1vw, 54px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: block; width: clamp(119px, 11vw, 156px); }
.wordmark img { width: 100%; height: auto; }

.navigation, .header-actions { display: flex; align-items: center; }
.navigation { gap: clamp(20px, 2.7vw, 48px); }
.navigation a {
  white-space: nowrap;
  font-size: 13px;
  padding-block: 12px;
  transition: color .2s ease;
}
.navigation a:hover { color: var(--heading-accent); text-decoration: underline; text-underline-offset: 5px; }
.header-actions { gap: clamp(16px, 2vw, 30px); justify-self: end; }
.languages { display: flex; align-items: center; font-size: 11px; font-weight: 600; }
.languages span { color: var(--heading-accent); }
.languages button {
  min-height: 44px;
  padding-inline: 7px;
  border: 0;
  background: transparent;
  color: var(--body);
}
.languages button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.button {
  width: fit-content;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 19px;
  border: 1px solid transparent;
  background: transparent;
  font: 500 13px/1.35 var(--sans);
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.button .icon { transition: transform .22s ease; }
.button:hover .arrow-up { transform: translate(2px, -2px); }
.button.outline { border-color: var(--line); min-height: 41px; gap: 12px; padding: 9px 13px; }
.button.outline:hover { border-color: var(--ink); background: var(--mist); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--heading-accent); }
.button.light { background: var(--paper); color: var(--ink); }
.button.light:hover { background: var(--soft); }
.button.light:focus-visible { outline-color: var(--paper); }
.button:hover .arrow-down { transform: translateY(3px); }
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
}
.icon-button .icon { --icon-size: 20px; }
.icon-button:hover { background: var(--mist); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(580px, calc(100svh - 82px), 850px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero-figure {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101d2ae0 0%, #101d2a9e 33%, #101d2a20 61%, transparent 82%);
}
.hero-figure img, .about-figure img, .approach-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-figure img {
  object-position: 54% 54%;
  animation: hero-settle 2.4s cubic-bezier(.2,.62,.28,1) both;
}
.hero-content { padding-block: 75px 88px; }
.eyebrow {
  font: 600 11px/1.6 var(--sans);
  text-transform: uppercase;
  letter-spacing: .15em;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #f1e5db;
  max-width: 70ch;
}
.hero-eyebrow::before {
  content: "";
  flex: 0 0 29px;
  height: 1px;
  background: var(--soft);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 {
  margin: 27px 0 25px;
  font-size: clamp(80px, 10vw, 158px);
  letter-spacing: -.059em;
  line-height: .79;
}
h1 span, h1 em { display: block; width: fit-content; }
h1 em { margin-top: .1em; color: #dfd0c1; }
html[lang="ru"] h1 { font-size: clamp(78px, 9.2vw, 145px); }
.hero-intro {
  max-width: 44ch;
  font-size: clamp(16px, 1.34vw, 19px);
  line-height: 1.6;
  color: #f1eee8;
  margin-bottom: 32px;
  text-wrap: pretty;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}
.text-link:hover { color: var(--heading-accent); }
.top-link .icon { --icon-size: 15px; }

h2 {
  font-size: clamp(51px, 6.5vw, 100px);
  line-height: .88;
  letter-spacing: -.058em;
}
h3 {
  font-size: clamp(31px, 3.1vw, 48px);
  line-height: .99;
  letter-spacing: -.04em;
}
.body-copy { color: var(--body); line-height: 1.75; }
.about, .approach-grid, .contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 104px);
}
.about { align-items: center; }
.about-copy { max-width: 61ch; }
.about h2 {
  font-size: clamp(44px, 5.65vw, 86px);
  line-height: .91;
  margin: 17px 0 23px;
}
.about .body-copy { max-width: 54ch; margin-top: 16px; }
.lead { font: 600 clamp(26px, 2.4vw, 36px)/1.08 var(--serif); letter-spacing: -.025em; }
.about .geography {
  padding-top: 15px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.about-figure {
  position: relative;
  min-height: clamp(370px, 37vw, 565px);
  background: var(--accent);
}
.about-figure img { object-position: center 52%; }

.principles { background: var(--mist); padding-block: clamp(66px, 7.7vw, 112px); }
.principles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 7.2vw, 117px); }
.principles-grid article + article { border-left: 1px solid var(--line); padding-left: clamp(28px, 5vw, 72px); }
.principles h2 { font-size: clamp(39px, 4.35vw, 68px); line-height: .94; margin: 18px 0 20px; max-width: 18ch; }
.principles .body-copy { max-width: 50ch; }

.expertise h2 { margin-bottom: clamp(35px, 4.5vw, 64px); }
.service-list {
  --service-card-height: clamp(226px, 16.5vw, 262px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 13px;
}
html[lang="ru"] .service-list { --service-card-height: clamp(242px, 19.5vw, 300px); }
.service-list details {
  border: 1px solid var(--line);
  background: #f9f7f2;
  transition: border-color .22s ease;
}
.service-list details:hover, .service-list details[open] { border-color: var(--accent); }
.service-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto minmax(2.1em, auto) 1fr;
  align-items: start;
  gap: 11px 14px;
  list-style: none;
  min-height: var(--service-card-height);
  cursor: pointer;
  padding: clamp(17px, 2vw, 30px);
}
.service-list summary::-webkit-details-marker { display: none; }
.service-number, .step-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 35px;
  font-variant-numeric: tabular-nums;
}
.service-number { color: var(--heading-accent); }
.service-title, .service-intro { grid-column: 1 / -1; }
.service-title {
  font: 600 clamp(25px, 2.4vw, 38px)/1.02 var(--serif);
  letter-spacing: -.032em;
}
.service-intro { align-self: end; color: var(--body); font-size: 13px; }
.service-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease, transform .22s ease;
}
.service-list details[open] .service-icon { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.service-list details p {
  margin: 0 clamp(17px, 2vw, 30px);
  border-top: 1px solid var(--line);
  color: var(--body);
  padding-block: 15px 22px;
  font-size: 14px;
}
.service-list details[open] p { animation: appear .24s ease both; }

.clients { border-top: 1px solid var(--line); }

.clients h2 { margin-bottom: clamp(34px, 5vw, 66px); }
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.client-grid article { padding: 31px clamp(20px, 3vw, 48px) 34px; }
.client-grid article:first-child { padding-left: 0; }
.client-grid article:last-child { padding-right: 0; }
.client-grid article + article { border-left: 1px solid var(--line); }
.client-icon { --icon-size: 28px; color: var(--heading-accent); }
.client-grid h3 { margin: 20px 0 13px; max-width: 16ch; }
.client-grid .body-copy { max-width: 40ch; }

.approach { background: var(--ink); color: var(--paper); }
.approach-grid { align-items: center; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.approach h2, .contact h2 { margin-top: 19px; }
html[lang="ru"] .approach h2 { font-size: clamp(44px, 6.3vw, 95px); }
.approach .eyebrow, .approach em { color: var(--soft); }
.approach .body-copy { color: var(--light-body); margin-top: 24px; max-width: 43ch; }
.approach-figure { min-height: clamp(285px, 32vw, 478px); position: relative; background: var(--soft); }
.approach-figure img { object-position: 62% 50%; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: clamp(38px, 5vw, 70px) 0 0;
  border-block: 1px solid #ffffff40;
}
.steps li { padding: 17px clamp(15px, 2.25vw, 35px) 24px; }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid #ffffff40; }
.steps h3 { margin: 5px 0 9px; }
.steps p { color: var(--light-body); font-size: 13px; max-width: 32ch; }
.step-number { color: var(--soft); }

.contact-inner { align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-copy { display: grid; justify-items: start; }
.contact-location { margin-top: 22px; font: 600 14px/1.65 var(--sans); }
.contact-email { margin-top: 8px; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3.4vw, 55px);
  padding-block: 22px;
}
.footer-inner .wordmark { width: 118px; }
.footer-inner p { color: var(--body); font-size: 11px; }

#inquiry-form { display: grid; gap: 14px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

#inquiry-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
#inquiry-form input, #inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff36;
  color: var(--ink);
  padding: 9px 11px;
  font-size: 16px;
  font-weight: 400;
}
#inquiry-form textarea { resize: vertical; min-height: 112px; }
#inquiry-form .button { margin-top: 5px; }
#inquiry-note, .form-status { font-size: 13px; }
.form-status { color: var(--heading-accent); }
.form-status:empty { display: none; }

@keyframes hero-settle {
  from { transform: scale(1.032); }
  to { transform: scale(1); }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .header-inner { min-height: 76px; }
  .header-actions { gap: 13px; }
  .navigation { gap: 20px; }
  .hero { min-height: clamp(550px, calc(100svh - 76px), 780px); }
  .service-list { --service-card-height: 215px; }
  html[lang="ru"] .service-list { --service-card-height: 235px; }
}

@media (max-width: 960px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 0; }
  .navigation {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .js .header-inner .navigation {
    position: absolute;
    inset: calc(100% + 1px) 0 auto auto;
    display: none;
    min-width: min(100%, 285px);
    padding: 12px 20px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 15px 28px #1927321a;
  }
  .js .header-inner .navigation[data-open] { display: grid; gap: 0; }
  .js .header-inner .navigation a + a { border-top: 1px solid var(--line); }
  .js .header-inner .menu-toggle { display: grid; }
  .hero-figure img { object-position: 55% 50%; }
  .client-grid article { padding-inline: 22px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid #ffffff40; }
}

@media (min-width: 851px) {
  .menu-toggle { display: none; }
}

.mobile-contact { display: none; }
@media (max-width: 640px) {
  .header-inner { min-height: 66px; }
  .header-contact { display: none; }
  .mobile-contact { display: block; }
  .header-actions { gap: 9px; }
  .hero { align-items: end; min-height: clamp(532px, calc(88svh - 66px), 720px); }
  .hero-content { padding-block: 100px 55px; }
  .hero-figure img { object-position: 62% 48%; }
  .hero-figure::after { background: linear-gradient(0deg, #101d2aed 3%, #101d2abd 40%, #101d2a36 78%, #101d2a1c); }
  .hero-eyebrow { font-size: 9px; letter-spacing: .13em; gap: 8px; max-width: 40ch; }
  .hero-eyebrow::before { flex-basis: 18px; }
  h1 { font-size: clamp(65px, 14vw, 93px); margin-block: 21px 20px; }
  html[lang="ru"] h1 { font-size: clamp(64px, 13.4vw, 90px); }
  .hero-intro { margin-bottom: 23px; font-size: 15px; }
  .button { min-height: 46px; padding: 10px 14px; }
  .section-space { padding-block: 63px; }
  .about, .approach-grid, .principles-grid, .contact-inner, .service-list { grid-template-columns: 1fr; }
  .about, .approach-grid, .contact-inner { gap: 28px; }
  .about-figure { min-height: clamp(255px, 72vw, 410px); }
  .about h2, .approach h2, .contact h2 { margin-top: 13px; }
  .principles-grid { gap: 31px; }
  .principles-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding: 27px 0 0; }
  .principles h2 { margin-block: 13px 15px; }
  .service-list { --service-card-height: 180px; gap: 9px; }
  html[lang="ru"] .service-list { --service-card-height: 207px; }
  .service-list summary { grid-template-rows: auto auto 1fr; gap: 8px 12px; }
  .client-grid { grid-template-columns: 1fr; }
  .client-grid article, .client-grid article:first-child, .client-grid article:last-child { padding: 24px 0; }
  .client-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .client-grid h3 { max-width: none; margin-top: 12px; }
  .approach-figure { min-height: 235px; }
  .steps li { padding-inline: 13px; }
  .steps h3 { font-size: clamp(26px, 7vw, 36px); }
  .contact-fields { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .footer-inner p { grid-column: 1 / -1; grid-row: 2; }
  .footer-inner .top-link { justify-self: end; }
}

@media (max-width: 365px) {
  :root { --gutter: 18px; }
  h1 { font-size: 59px; }
  html[lang="ru"] h1 { font-size: 58px; }
  h2 { font-size: 46px; }
}

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