@font-face {
  font-family: Inter;
  src: url(assets/inter-cyrillic.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Inter;
  src: url(assets/inter-latin.woff2) format("woff2");
  font-weight: 400 800;
  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 {
  --white: #fff;
  --ink: #141414;
  --muted: #545454;
  --steel: #737373;
  --line: #dedede;
  --paper: #f2f2f2;
  --gutter: clamp(18px, 5vw, 78px);
}
* { box-sizing: border-box }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 400 16px/1.6 Inter, Arial, sans-serif; color: var(--ink); background: var(--white) }
main { flex: 1 }
img { display: block; max-width: 100%; height: auto }
a { color: inherit; text-decoration: none }
a:focus-visible, summary:focus-visible { outline: 2px solid #222; outline-offset: 4px }
a:hover { text-decoration: underline; text-underline-offset: .24em }
h1, h2, p, figure { margin: 0 }
h1, h2 { font-weight: 760; line-height: 1.03; letter-spacing: -.065em }
h1 { font-size: clamp(3.1rem, 7.1vw, 7.5rem) }
h1 span { color: var(--steel) }
h2 { font-size: clamp(1.7rem, 3.2vw, 3.1rem) }
.wrap { width: min(1440px, calc(100% - var(--gutter) * 2)); margin-inline: auto }
.skip { position: absolute; z-index: 3; left: 10px; top: 10px; padding: 8px 14px; background: var(--white); transform: translateY(-160%) }
.skip:focus { transform: none }
header { border-bottom: 1px solid var(--line) }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px }
.brand { width: fit-content; font-size: 1.24rem; font-weight: 760; letter-spacing: -.06em; line-height: 1 }
.brand:hover { text-decoration: none }
nav { display: flex; align-items: center; gap: clamp(15px, 3.1vw, 42px) }
nav a, .github { font-size: .88rem; font-weight: 620 }
nav a[aria-current] { text-decoration: underline; text-underline-offset: .35em }
.github { justify-self: end; border: 1px solid var(--line); padding: 7px 12px; display: flex; gap: 10px }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px }
.button { display: inline-flex; min-height: 46px; gap: 17px; align-items: center; justify-content: center; background: var(--ink); border: 1px solid var(--ink); color: var(--white); font-size: .88rem; font-weight: 650; padding: 9px 14px; width: fit-content }
.button:hover { background: #373737; text-decoration: none }
.button.outline { background: var(--white); color: var(--ink); border-color: #bdbdbd }
.button.outline:hover { background: var(--paper) }
.back { font-size: .88rem; font-weight: 650 }
.project-image { aspect-ratio: 1.85; overflow: hidden; background: var(--paper); border: 1px solid var(--line); padding: clamp(12px, 2.3vw, 34px) clamp(12px, 2.3vw, 34px) 0 }
.meta { color: var(--muted); font: 500 .77rem/1.35 "Consolas", monospace; margin-bottom: 6px }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0 }
.tags li { border: 1px solid var(--line); color: #414141; padding: 3px 8px; font: 500 .78rem/1.45 "Consolas", monospace }
footer { border-top: 1px solid var(--line) }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px }
.footer-inner > a:last-child { color: var(--muted); font-size: .88rem }
.inner { padding-block: clamp(38px, 6vw, 82px) }
.page-title { margin-bottom: clamp(30px, 5vw, 60px) }
.page-title > p:not(.meta) { max-width: 54ch; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.24rem); line-height: 1.55; margin-top: 21px }
.case-title h1 { font-size: clamp(2.65rem, 6.2vw, 6.5rem) }
.back { display: inline-block; margin-bottom: 28px }
.case-cover { aspect-ratio: auto; padding: clamp(13px, 4vw, 50px) }
.case-cover img { display: block; width: min(100%, 1120px); height: auto; margin: auto; border: 1px solid #d6d6d6; filter: none }
.case-body { display: grid; gap: 0; max-width: 770px; margin: 45px auto }
.case-body section { padding-block: 21px; border-top: 1px solid var(--line) }
.next, .contact { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 2px solid var(--ink); padding-block: 18px }
.next small { display: block; color: var(--muted) }
.next strong { font-size: clamp(1.08rem, 2.8vw, 2rem) }
.contact { max-width: 640px }
.contact + .contact { margin-top: 24px }
.contact .button { width: 10rem; justify-content: space-between }
@media (max-width: 520px) {
  .header-inner { grid-template-columns: 1fr 1fr; gap: 9px 12px; padding-block: 10px 12px }
  nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; column-gap: clamp(9px, 3vw, 16px) }
  .contact { align-items: start; flex-direction: column }
  .case-body { margin-block: 24px }
}

.home-intro {
  padding-block: clamp(35px, 5vw, 72px) clamp(29px, 5vw, 63px);
}
.home-intro h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.65rem);
  line-height: 1.04;
  text-wrap: balance;
}
.home-work-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 14px }
.home-work-heading h2 { font-size: clamp(1.65rem, 2.85vw, 2.5rem) }
.home-work-heading a { font-size: .87rem; font-weight: 650 }
.home-cases { margin: 0; padding: 0; list-style: none }
.home-cases li { border-top: 1px solid var(--line) }
.home-cases li:last-child { border-bottom: 1px solid var(--line) }
.home-cases a { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.3fr) auto; align-items: center; gap: 8px 15px; padding: 13px 5px }
.home-cases a:hover { background: #f5f6f7; text-decoration: none }
.home-cases strong { font-weight: 680; letter-spacing: -.027em }
.home-cases a > span:not(.home-case-arrow) { color: var(--muted); font-size: .88rem }
.home-case-arrow { justify-self: end }
.home-layout {
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 26%, 335px);
  gap: clamp(36px, 6vw, 94px);
  padding-block: clamp(21px, 3vw, 38px) clamp(40px, 6vw, 82px);
}
.page-title h1 { font-size: clamp(2.55rem, 5.2vw, 5.25rem) }
.project-list { border-top: 1px solid var(--ink) }
.project { border-bottom: 1px solid var(--line) }
.project-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 176px) auto;
  align-items: center;
  gap: 12px 22px;
  min-height: 78px;
  padding: 14px 12px;
}
.project-summary::-webkit-details-marker { display: none }
.project-summary:hover, .project[open] .project-summary { background: #f5f6f7 }
.project-summary:focus-visible { outline-offset: -2px }
.project-name { font-size: clamp(1.19rem, 2.1vw, 1.77rem); letter-spacing: -.047em; font-weight: 720; line-height: 1.18 }
.project-type { color: var(--muted); font-size: .83rem; line-height: 1.32 }
.disclosure { position: relative; width: 30px; height: 30px; border: 1px solid #d5d9de; background: var(--white) }
.disclosure::before, .disclosure::after { content: ""; position: absolute; background: currentColor; top: 50%; left: 50%; transform: translate(-50%, -50%) }
.disclosure::before { width: 11px; height: 1px }
.disclosure::after { height: 11px; width: 1px }
.project[open] .disclosure::after { display: none }
.project-detail { padding: 14px 12px 20px; color: var(--muted) }
.project-detail p { max-width: 65ch }
.case-link { display: inline-flex; gap: 9px; align-items: center; margin-top: 15px; color: var(--ink); font-size: .87rem; font-weight: 680 }
.home-stack { padding: 6px 0 0 24px; border-left: 1px solid var(--line); align-self: start }
.home-stack h2, .tech-section h2 { font-size: clamp(1.22rem, 2.25vw, 1.7rem); letter-spacing: -.045em }
.home-stack dl { display: grid; gap: 11px; margin: 18px 0 0 }
.home-stack dt { font-size: .77rem; color: var(--muted) }
.home-stack dd { margin: 0; font-size: .88rem; font-weight: 560 }
.text-link { text-decoration: underline; text-underline-offset: .2em }
.tech-section { border-top: 1px solid var(--ink); padding-top: 22px }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; margin: 20px 0 0 }
.tech-grid > div { background: #f5f6f7; padding: 13px 15px }
.tech-grid dt { font-weight: 680 }
.tech-grid dd { margin: 0 }
.tech-grid .tags { margin-top: 8px }
.tech-grid .tags li { background: var(--white) }
@media (max-width: 790px) {
  .home-layout { grid-template-columns: 1fr; gap: 30px }
  .home-stack { padding: 15px 0 0; border-left: 0; border-top: 1px solid var(--line) }
}
@media (max-width: 525px) {
  .home-cases a { grid-template-columns: 1fr auto; row-gap: 3px }
  .home-cases a > span:not(.home-case-arrow) { grid-column: 1; grid-row: 2 }
  .home-case-arrow { grid-column: 2; grid-row: 1 / 3 }
  .project-summary { grid-template-columns: 1fr auto; gap: 4px 10px; min-height: 66px }
  .project-type { grid-row: 2; grid-column: 1 }
  .disclosure { grid-row: 1 / 3; grid-column: 2 }
}


.version {
  display: inline-block;
  vertical-align: middle;
  margin-left: .35em;
  padding: 1px 5px;
  border: 1px solid #d5dadf;
  background: #f3f5f6;
  color: #41464b;
  font: 500 .71rem/1.35 Consolas, monospace;
  letter-spacing: 0;
  white-space: nowrap;
}


.sync-figure { margin-block: 20px; padding: 14px; background: #f3f5f6; border: 1px solid var(--line) }
.sync-figure figcaption { color: var(--muted); font-size: .82rem; margin-bottom: 10px }
.sync-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none }
.sync-flow li { display: grid; gap: 4px; position: relative; padding: 9px; background: var(--white); border: 1px solid var(--line) }
.sync-flow span { color: var(--muted); font-size: .82rem; line-height: 1.35 }
.sync-flow li + li::before { content: "\2194" / ""; position: absolute; top: 50%; left: -18px; width: 18px; text-align: center; transform: translateY(-50%) }
.case-body h3 { margin: 20px 0 5px; font-size: 1.04rem }
@media (max-width: 520px) {
  .sync-flow { grid-template-columns: 1fr }
  .sync-flow li + li::before { content: "\2195" / ""; top: -19px; left: 50%; transform: translateX(-50%) }
}

.case-links { display: flex; flex-wrap: wrap; column-gap: 22px }
.case-body p + p { margin-top: 12px }
