@font-face {
  font-family: Comfortaa;
  src: url('assets/fonts/comfortaa.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('assets/fonts/inter.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #191918;
  --copper: #b94b2d;
  --muted: #64645f;
  --line: #deddd6;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

* { box-sizing: border-box; }
body { margin: 0; }
body:has(.photo-dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, .project-gallery:focus-visible { outline: 3px solid var(--copper); outline-offset: 5px; }
::selection { background: #e9b9a9; color: var(--ink); }
.shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; top: 10px; left: 10px; z-index: 5; padding: 14px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: block; width: 213px; flex: 0 0 auto; }
.navigation { display: flex; gap: 32px; align-items: center; font-size: 13px; font-weight: 500; }
.navigation a { display: flex; align-items: center; gap: 12px; padding-block: 13px; }
.navigation a:hover { color: var(--copper); }
.navigation .navigation-contact { color: var(--copper); }
.navigation .icon { width: 17px; height: 17px; flex-basis: 17px; }
.eyebrow { margin: 0 0 20px; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; }
h1, h2, h3 { font-family: Comfortaa, Arial, sans-serif; font-weight: 700; }
h1 { margin: 0; font-size: clamp(39px, 4.25vw, 59px); line-height: 1.14; letter-spacing: -.07em; }
h1 span { color: var(--copper); }
h2 { margin: 0; font-size: 35px; line-height: 1.3; letter-spacing: -.055em; }
h3 { margin: 0; font-size: 21px; line-height: 1.4; letter-spacing: -.035em; }
.hero { padding-block: 56px 76px; display: grid; grid-template-columns: 1.06fr 1fr; gap: 58px; align-items: center; }
.hero-description { max-width: 440px; margin: 25px 0 27px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.starting-terms { display: flex; gap: 36px; margin: 0 0 29px; }
.starting-terms div + div { border-left: 1px solid var(--line); padding-left: 36px; }
.starting-terms dt { color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.starting-terms dd { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.035em; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button { display: inline-flex; gap: 28px; align-items: center; justify-content: space-between; min-height: 56px; padding: 16px 20px; border-radius: 11px; font-size: 13px; font-weight: 600; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--copper); color: white; }
.button-primary:hover { background: #9d3c24; }
.button-primary:focus-visible { outline-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; padding-block: 15px; }
.text-link:hover { color: var(--copper); }
.text-link .icon { width: 17px; height: 17px; flex-basis: 17px; }
.hero-photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #deded8; }
.hero-photo > img { aspect-ratio: .84; object-fit: cover; object-position: center 57%; }
.hero-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: #f5f4efec; padding: 16px 20px; border-top: 1px solid #ffffffb0; font-size: 10px; line-height: 1.5; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.section-heading .eyebrow { color: var(--copper); margin-bottom: 14px; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.works-section { border-top: 1px solid var(--line); padding-top: 54px; padding-bottom: 62px; }
.project-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 52px; align-items: center; }
.project-gallery, .project-copy { min-width: 0; }
.gallery-stage { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #e5e5e1; touch-action: pan-y pinch-zoom; }
.gallery-stage > img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery-enlarge { position: absolute; display: inline-flex; align-items: center; gap: 7px; bottom: 16px; right: 16px; padding: 10px 13px; border-radius: 30px; background: #ffffffed; font-size: 10px; }
.gallery-enlarge .icon { width: 14px; height: 14px; flex-basis: 14px; }
.gallery-stage:hover .gallery-enlarge { background: white; color: var(--copper); }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-block: 13px; }
.gallery-caption { margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.gallery-paging { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.gallery-arrow { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; }
.gallery-arrow:hover { border-color: var(--copper); color: var(--copper); background: white; }
.gallery-count { min-width: 42px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gallery-thumbnail { min-width: 0; padding: 3px; border: 2px solid transparent; border-radius: 12px; background: #e5e5e1; overflow: hidden; }
.gallery-thumbnail img { aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.gallery-thumbnail:hover { border-color: #d6a18c; }
.gallery-thumbnail[aria-pressed="true"] { border-color: var(--copper); background: var(--paper); }
.project-copy .eyebrow { color: var(--copper); margin-bottom: 16px; }
.project-copy h3 { font-size: 29px; line-height: 1.4; }
.project-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 20px 0 0; }
.project-facts { display: grid; gap: 17px; margin: 25px 0; padding-block: 22px; border-block: 1px solid var(--line); }
.project-facts > div { display: grid; grid-template-columns: 105px 1fr; gap: 10px; }
.project-facts dt { font-size: 11px; color: var(--muted); line-height: 1.6; }
.project-facts dd { margin: 0; font-size: 12px; line-height: 1.6; font-weight: 500; }
.project-copy h4 { font-size: 13px; margin: 0; font-weight: 600; }
.project-copy h4 + p { margin-top: 10px !important; }
.project-contact { margin-top: 17px; color: var(--copper); }
.photo-dialog { width: min(1020px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 16px; background: #191918; color: white; overflow: auto; }
.photo-dialog::backdrop { background: #080806e6; }
.photo-dialog[open] { display: flex; flex-direction: column; }
.photo-dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 20px; }
.photo-dialog-toolbar p { margin: 0; font-size: 12px; line-height: 1.6; }
.photo-dialog-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 9px 12px; border: 1px solid #55554e; border-radius: 9px; background: transparent; color: white; font-size: 11px; flex-shrink: 0; }
.photo-dialog-toolbar button span { font-size: 23px; line-height: 1; }
.photo-dialog > img { width: 100%; height: min(720px, calc(100dvh - 190px)); min-height: 120px; object-fit: contain; background: #252523; }
.photo-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 20px; }
.photo-dialog-footer button { width: 44px; height: 44px; border: 1px solid #55554e; border-radius: 50%; color: white; background: transparent; font-size: 20px; flex-shrink: 0; }
.photo-dialog button:hover { background: #383833; }
.photo-dialog-footer a { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; min-height: 44px; }
.photo-dialog-footer .icon { width: 14px; height: 14px; flex-basis: 14px; }
.process-section { padding-block: 48px 55px; border-top: 1px solid var(--line); }
.process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; margin: 0; padding: 0; list-style: none; }
.process-list li { border-top: 2px solid #d6a18c; padding-top: 21px; }
.process-list h3 { font-size: 20px; }
.process-list p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 12px 0 0; }
.terms-note { border-top: 1px solid var(--line); margin: 30px 0 0; padding-top: 21px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.contact-section { padding-bottom: 57px; }
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 40px; background: var(--ink); color: white; border-radius: 20px; padding: 45px; }
.contact-copy .eyebrow { color: #d6a18c; margin-bottom: 15px; }
.contact-copy > p:last-child { max-width: 480px; color: #c6c6bd; font-size: 13px; line-height: 1.8; margin: 18px 0 0; }
.button-light { color: var(--ink); background: white; flex-shrink: 0; }
.button-light:hover { background: #eee9df; }
.social-section { padding-block: 0 44px; }
.social-section h2 { font-size: 28px; }
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.social-link { display: flex; align-items: center; gap: 15px; padding: 21px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 500; transition: border-color .2s, background .2s; }
.social-link:hover { border-color: var(--copper); background: white; }
.vk-icon { fill: currentColor; stroke: none; }
.play-icon { fill: currentColor; stroke: none; }
.social-link .arrow { margin-left: auto; width: 17px; height: 17px; flex-basis: 17px; color: var(--muted); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 85px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer a { display: flex; align-items: center; gap: 9px; }
.footer a:hover { color: var(--copper); }
.footer .icon { width: 15px; height: 15px; flex-basis: 15px; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 32px; }
  h1 { font-size: 46px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 12px; }
  .button { gap: 20px; }
  .project-layout { gap: 32px; }
  .project-copy h3 { font-size: 25px; }
  .social-link { padding: 18px; gap: 10px; }
}

@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .header { min-height: 92px; }
  .brand { width: 180px; }
  .navigation { gap: 22px; font-size: 12px; }
  .navigation a:nth-child(2) { display: none; }
  .hero { gap: 28px; padding-block: 38px 50px; }
  h1 { font-size: 37px; }
  .hero-photo > img { aspect-ratio: .65; }
  .hero-description { font-size: 13px; margin-block: 18px 22px; }
  .starting-terms { gap: 20px; margin-bottom: 22px; }
  .starting-terms div + div { padding-left: 20px; }
  .starting-terms dd { font-size: 18px; }
  .project-layout { grid-template-columns: 1fr; gap: 34px; }
  .project-copy { max-width: 590px; }
  .gallery-stage > img { aspect-ratio: 6 / 5; }
  h2 { font-size: 29px; }
  .process-list { gap: 24px; }
  .process-list h3 { font-size: 17px; }
  .contact-panel { padding: 32px; gap: 30px; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  :root { scroll-padding-top: 20px; }
  .shell { width: calc(100% - 40px); }
  .header { min-height: 82px; gap: 20px; }
  .brand { width: 153px; }
  .navigation { gap: 0; }
  .navigation > a { display: none; }
  .navigation .navigation-contact { display: flex; font-size: 10px; gap: 5px; }
  .navigation .icon { width: 13px; height: 13px; flex-basis: 13px; }
  .eyebrow { font-size: 9px; margin-bottom: 16px; }
  .hero { grid-template-columns: 1fr; gap: 29px; padding-top: 32px; padding-bottom: 40px; }
  h1 { font-size: clamp(31px, 9.2vw, 49px); line-height: 1.16; }
  .hero-description { font-size: 14px; line-height: 1.7; margin-block: 21px 24px; }
  .starting-terms { gap: 26px; margin-bottom: 25px; }
  .starting-terms div + div { padding-left: 26px; }
  .starting-terms dd { font-size: 21px; }
  .hero-actions { gap: 0; display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; min-height: 56px; padding-inline: 20px; }
  .text-link { justify-content: center; margin-top: 5px; }
  .hero-photo { border-radius: 17px; }
  .hero-photo > img { aspect-ratio: 1; object-position: center 59%; }
  .hero-photo figcaption { position: static; padding: 13px 15px; font-size: 9px; background: #f0efea; }
  .works-section { padding-top: 34px; padding-bottom: 38px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading > p { margin-top: 15px; font-size: 12px; }
  .section-heading > p br { display: none; }
  h2 { font-size: 28px; }
  .project-layout { gap: 29px; }
  .gallery-stage { border-radius: 14px; }
  .gallery-stage > img { aspect-ratio: 1; }
  .gallery-enlarge { bottom: 12px; right: 12px; padding: 9px 11px; font-size: 9px; }
  .gallery-controls { gap: 10px; flex-wrap: wrap; }
  .gallery-caption { font-size: 10px; }
  .gallery-paging { margin-left: auto; }
  .gallery-thumbnails { gap: 6px; }
  .gallery-thumbnail { border-radius: 9px; padding: 2px; min-height: 44px; }
  .gallery-thumbnail img { border-radius: 4px; }
  .project-copy h3 { font-size: 25px; }
  .project-copy > p:not(.eyebrow) { margin-top: 16px; }
  .project-facts { margin-block: 21px; }
  .project-facts > div { grid-template-columns: 85px 1fr; }
  .project-contact { justify-content: flex-start; }
  .photo-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .photo-dialog-toolbar { padding: 10px 12px; gap: 12px; }
  .photo-dialog-toolbar p { font-size: 10px; }
  .photo-dialog-toolbar button { font-size: 0; width: 44px; padding: 8px; gap: 0; }
  .photo-dialog > img { height: calc(100dvh - 175px); }
  .photo-dialog-footer { padding: 10px 12px; gap: 10px; }
  .process-section { padding-block: 34px 36px; }
  .process-list { grid-template-columns: 1fr; gap: 23px; }
  .process-list li { padding-top: 18px; }
  .process-list h3 { font-size: 20px; }
  .process-list p { margin-top: 9px; font-size: 13px; }
  .terms-note { font-size: 11px; margin-top: 24px; padding-top: 17px; }
  .contact-section { padding-bottom: 36px; }
  .contact-panel { display: block; padding: 27px 24px; border-radius: 17px; }
  .contact-panel h2 { font-size: 27px; }
  .contact-copy > p:last-child { font-size: 13px; margin-top: 16px; }
  .contact-panel .button { margin-top: 24px; }
  .social-section { padding-bottom: 30px; }
  .social-section h2 { font-size: 26px; }
  .social-grid { gap: 10px; }
  .social-link { padding: 17px 14px; font-size: 12px; gap: 10px; }
  .social-link > .icon { width: 19px; height: 19px; flex-basis: 19px; }
  .social-link .arrow { width: 13px; height: 13px; flex-basis: 13px; }
  .footer { min-height: 80px; font-size: 9px; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
