@font-face {
  font-family: Onest;
  src: url("/assets/onest-cyr-v11.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Onest;
  src: url("/assets/onest-latin-v11.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #1a1d18;
  --muted: #50584c;
  --rule: #e3e7df;
  --surface: #f4f6f1;
  --green: #e0ebcf;
  --green-ink: #324624;
  --gutter: clamp(16px, 4.2vw, 52px);
  font-family: Onest, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 2px solid #547346; outline-offset: 4px; }
[id] { scroll-margin-top: 18px; }
.shell { width: min(100% - 2 * var(--gutter), 1140px); margin-inline: auto; }

.skip { position: fixed; z-index: 2; top: 8px; left: 8px; padding: 9px 14px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--rule); }
.header-inner {
  min-height: 65px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}
.wordmark {
  justify-self: start;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.045em;
  text-decoration: none;
}
.navigation { display: flex; gap: clamp(16px, 3vw, 40px); }
.navigation a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.navigation a:hover { color: var(--ink); text-decoration: underline; }
.header-action { justify-self: end; padding: 8px 14px; border-radius: 7px; background: var(--green); color: var(--green-ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.header-action:hover { background: #d4e4bc; }

.intro {
  display: grid;
  grid-template-columns: clamp(98px, 10vw, 122px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3.1vw, 44px);
  padding-block: clamp(32px, 5.1vw, 62px) clamp(34px, 4.5vw, 55px);
}
.portrait { border-radius: 8px; background: var(--surface); }
h1 { font-size: clamp(1.95rem, 4.25vw, 3.25rem); font-weight: 650; line-height: 1.06; letter-spacing: -.052em; }
.intro p { max-width: 51ch; margin-top: 12px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); }

h2 { font-size: clamp(1.35rem, 2.65vw, 1.72rem); font-weight: 650; line-height: 1.15; letter-spacing: -.037em; }
.work { border-top: 1px solid var(--rule); padding-top: 17px; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin-top: 16px; }

.project-image {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(10px, 1.7vw, 24px);
  background: var(--surface);
}
.project-image:hover { border-color: #9eb28e; background: #eff3e9; }
.project-image img { border-radius: 4px; border: 1px solid #e9ece6; background: var(--paper); }

.project-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-top: 13px; }
.project-meta h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.project-meta span { color: var(--muted); font-size: .88rem; }
.projects article p { max-width: 52ch; margin-top: 6px; color: var(--muted); line-height: 1.45; }

.information, .contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(25px, 6vw, 85px);
}
.information { border-top: 1px solid var(--rule); margin-top: clamp(42px, 6.3vw, 78px); padding-block: 25px clamp(43px, 5.6vw, 68px); }
.process, .fees dd, .contact-details p { color: var(--muted); }
.process { max-width: 41ch; margin-top: 11px; }
.fees > div { padding-bottom: 14px; }
.fees > div + div { border-top: 1px solid var(--rule); padding-top: 12px; }
.fees dt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1px 15px; font-weight: 650; }
.fees dt span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fees dd { max-width: 50ch; margin-top: 5px; }

.contact { border-top: 1px solid var(--rule); background: var(--surface); }
.contact-inner { padding-block: clamp(25px, 4vw, 48px); }
.contact-details p { max-width: 46ch; }
.contact ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 11px 0 0; padding: 0; }
.contact li a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; color: var(--green-ink); }
.contact li span { color: var(--muted); font-size: .88rem; }

@media (max-width: 640px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 56px; gap: 13px; }
  .navigation { gap: clamp(8px, 2.4vw, 15px); }
  .navigation a { font-size: .875rem; }
  .header-action { display: none; }
  .intro { grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 13px 15px; }
  .intro > div { display: contents; }
  .portrait { grid-column: 1; grid-row: 1; }
  h1 { align-self: center; font-size: clamp(1.7rem, 6.5vw, 2.47rem); grid-column: 2; grid-row: 1; }
  .intro p { grid-column: 1 / -1; margin-top: 0; }
  .projects, .information, .contact-inner { grid-template-columns: 1fr; }
  .projects { gap: 27px; }
  .information, .contact-inner { gap: 16px; }
}

@media (max-width: 350px) {
  .header-inner { gap: 8px; }
  .wordmark { font-size: 1rem; }
  .navigation { gap: 7px; }
  .navigation a { font-size: .8125rem; }
}
