@font-face {
  font-family: Tilda Sans;
  src: url("assets/TildaSans-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Tilda Sans, Arial, sans-serif;
  color: #353230;
  background: #fff;
  font-synthesis: none;
  --link: #67502f;
  --accent: #a16b22;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
main { width: 100%; max-width: 840px; margin-inline: auto; padding-inline: 20px; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-decoration: underline; text-decoration-color: #c7a874; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #34281b; text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
strong { font-weight: 650; color: #282624; }
svg { display: block; overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 3; padding: 12px 20px; background: #fff; }
.skip-link:focus { top: 16px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  column-gap: 36px;
  padding: 108px 0 48px;
}
.portrait { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 160px; aspect-ratio: 1; border-radius: 42% 58% 37% 63% / 56% 38% 62% 44%; }
h1 { margin: 0; font: 700 32px/1.15 "Tilda Sans", Arial, sans-serif; letter-spacing: -.025em; color: #242220; }
.position { margin: 10px 0 0; font-size: 17px; line-height: 1.4; color: #756e68; }
.intro { grid-column: 1; margin: 20px 0 0; font-size: 18px; line-height: 1.42; color: #69635d; }
.intro strong { font-weight: 600; }
.desktop-break, .wide-break { display: none; }
.actions { grid-column: 1; display: flex; margin-top: 20px; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.contact { color: #353230; }
.telegram-icon { display: grid; place-items: center; width: 23px; height: 23px; color: var(--accent); flex-shrink: 0; }
.telegram-icon svg { width: 100%; height: 100%; }

.projects { padding: 0 0 64px; scroll-margin-top: 28px; }
h2 { margin: 0 0 24px; color: var(--accent); font-size: 23px; line-height: 1.2; font-weight: 600; }
.project-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 16px; align-items: start; }
.project-card { border-radius: 16px; padding: 12px; min-width: 0; font-size: 16px; line-height: 1.45; }
.clinic { background: #e6f1ed; }
.vtb { background: #e7edf6; }
.bank { background: #f3e7ea; }
.furniture { background: #e3eff4; }
.practicum { background: #f2f1ef; }
.brand-dom { background: #f5ede5; }
.voykovteam { background: #eeeff0; }
.perekrestok { background: #171717; }
.perekrestok .brand-name { max-width: 100%; }
.perekrestok .project-header p { color: #d5d5d5; }
.perekrestok .project-header a { color: #ffbb35; text-decoration-color: #a77c29; }
.perekrestok-logo { display: block; width: 230px; max-width: 100%; height: auto; }
.voykovteam .brand-name { gap: 12px; font-size: 22px; font-weight: 650; }
.voykovteam-logo { display: block; width: 46px; height: 46px; object-fit: contain; mix-blend-mode: darken; }
.brand-dom-logo { display: block; width: 128px; height: auto; max-height: 46px; object-fit: contain; object-position: left center; mix-blend-mode: darken; }
.practicum-logo { display: block; width: 180px; height: auto; max-width: 100%; }
.project-header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 8px 18px; }
.project-header p { margin: 0; font-size: 14px; line-height: 1.4; color: #69635d; }
.brand-name { display: flex; align-items: center; height: 46px; margin: 0; flex-shrink: 0; }
.clinic-logo, .bank-logo { mix-blend-mode: darken; }
.clinic-logo { width: 118px; aspect-ratio: 198 / 76; }
.vtb-logo { display: block; width: 88px; height: auto; }
.bank-logo { width: 122px; aspect-ratio: 214 / 50; }
.project-body { padding: 20px 16px; border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.project-body p { margin: 0 0 14px; }
.project-body p:last-child { margin-bottom: 0; }
.case-line { line-height: 1.45; }
.project-awards { margin-top: 24px; }
.project-awards h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.award-links { display: flex; flex-wrap: wrap; gap: 8px; }
.award-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 9px 10px; border-radius: 6px; background: #f6f2eb; font-size: 13px; line-height: 1.4; }
.award-link:hover { background: #eee5d5; }
.award-medal { color: #85512d; font-weight: 650; }
.testimonial { margin: 28px 0 0; padding: 20px 16px; border-radius: 10px; background: #f0f6f3; }
.quote-mark { display: block; height: 30px; color: #b19364; font: 400 56px/1 Georgia, serif; }
blockquote { margin: 12px 0 22px; font-style: italic; line-height: 1.5; }
figcaption { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.4; }
figcaption p { margin: 4px 0 0 !important; color: #69635d; }
.testimonial-photo { width: 88px; height: 88px; aspect-ratio: 1; border-radius: 50%; flex-shrink: 0; }
.furniture h3 { margin: 0; color: #67502f; font-size: 19px; line-height: 1.25; font-weight: 600; }

.video-review { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 20px; }
.video-review-portrait { position: relative; display: block; width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%; }
.video-review-portrait video { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center; }
.video-review-play { position: absolute; right: -2px; bottom: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); color: #fff; font: 12px/1 Arial, sans-serif; padding-left: 2px; }

@media (max-width: 600px) {
  .hero { grid-template-columns: minmax(0, 1fr) 100px; column-gap: 20px; padding-top: 48px; }
  .portrait { width: 100px; grid-row: 1; }
  h1 { font-size: 29px; }
  .position { font-size: 16px; }
  .intro, .actions { grid-column: 1 / -1; }
  .intro { margin-top: 24px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { font-size: 17px; }
  .project-body { padding: 22px 20px; }
  figcaption { font-size: 14px; }
}
@media (max-width: 360px) {
  .hero { grid-template-columns: minmax(0, 1fr) 80px; gap: 0 12px; }
  .portrait { width: 80px; }
  h1 { font-size: 27px; }
  .project-body { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-review-portrait video { transition: none; }
}

@media (min-width: 601px) {
  .project-grid.masonry { display: block; position: relative; }
  .project-grid.masonry > .project-card { position: absolute; }
}

.inline-document-icon { display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -2px; }
