@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/montserrat-400-cyrillic.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/montserrat-500-cyrillic.woff2") format("woff2");
}

:root {
  --paper: #fff;
  --ink: #232321;
  --line: #cfcfcb;
  --page-padding: 16px;

  --header: 58px;
  --header-opacity: 0.5;
  --header-blur: 5px;
  --blue: #2f5d8a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  padding-top: var(--header);
}
/* =========================
   HEADER
   ========================= */

.site-header {
  position: fixed;
  z-index: 100;

  top: 0;
  left: 0;
  right: 0;

  height: var(--header);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 10px;

  border-bottom: 1px solid rgba(43, 43, 40, 0.14);

  background: rgba(255, 255, 255, var(--header-opacity));

  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
}


.header-left {
  display: flex;
  align-items: center;
  height: 100%;
}


.wordmark {
  position: relative;
  z-index: 102;

  display: flex;
  align-items: center;

  height: 100%;
  text-decoration: none;
}


.wordmark-logo {
  display: block;

  height: 50px;
  width: auto;
  max-width: 180px;

  object-fit: contain;

  transform: translate(-6px, 0);
}


.header-project-title {
  margin-left: 2px;

  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;

  white-space: nowrap;

  color: var(--ink);
}


/* BURGER */

.burger {
  position: relative;
  z-index: 102;

  width: 24px;
  height: 18px;

  padding: 0;
  border: 0;

  background: transparent;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  cursor: pointer;
}


.burger span {
  display: block;

  width: 100%;
  height: 1.5px;

  background: var(--ink);

  transform-origin: center;

  transition:
    transform .3s ease,
    opacity .2s ease;
}


.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.25px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.25px) rotate(-45deg);
}


/* MENU */

.nav-menu {
  position: fixed;
  z-index: 90;

  top: var(--header);
  left: 0;
  right: 0;

  padding: 12px 0 24px;

  display: flex;
  flex-direction: column;

  background: transparent;
  isolation: isolate;

  visibility: hidden;
  pointer-events: none;

  transition: visibility 0s linear .4s;
}


.nav-menu::before {
  content: "";

  position: absolute;
  z-index: -1;

  top: 0;
  left: 0;
  right: 0;
  bottom: -110px;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, var(--header-opacity)) 0%,
    rgba(255, 255, 255, var(--header-opacity)) 35%,
    rgba(255, 255, 255, .45) 65%,
    rgba(255, 255, 255, 0) 100%
  );

  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));

  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 45%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 45%,
    transparent 100%
  );

  pointer-events: none;

  opacity: 0;

  transition: opacity .4s ease;
}


.nav-menu.open::before {
  opacity: 1;
  transition: none;
}


.nav-menu.open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}


.nav-link {
  display: block;

  width: 100%;

  padding: 11px 10px;

  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 400;

  color: var(--ink);
  text-decoration: none;

  opacity: 0;
  transform: translateY(-4px);

  transition:
    opacity .35s ease,
    transform .35s ease,
    color .12s ease;
}


.nav-menu.open .nav-link {
  opacity: 1;
  transform: translateY(0);
}


.nav-link:hover {
  color: var(--blue);
}
.project-page {
  width: 100%;
  overflow: hidden;
}

.project-intro {
  padding: 28px var(--page-padding) 25px;
}

.project-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 4.8vw, 25px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.project-divider {
  width: 100%;
  height: 1px;
  margin-top: 10px;
  background: var(--line);
}

.project-copy {
  display: grid;
  grid-template-columns: minmax(0, 39%) minmax(0, 61%);
  gap: 18px;
  margin-top: 17px;
  font-size: clamp(8px, 1.62vw, 10px);
  line-height: 1.38;
}

.project-copy p {
  margin: 0;
}

.project-copy-right {
  display: grid;
  align-content: start;
  gap: 13px;
}

.project-note {
  position: relative;
  margin-top: 20px !important;
  padding: 8px 12px 9px;
  border: 1px dashed #b9b9b4;
  border-radius: 16px;
}

.project-hero {
  width: 100%;
  margin: 0;
}

.project-hero > img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
}

.project-hero.is-empty .hero-placeholder {
  display: grid;
}
.project-gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.project-image {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.project-image img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
}
figure {
  margin: 0;
  padding: 0;
}

/* Только мобильная версия: на узких телефонах текст не становится микроскопическим. */
@media (max-width: 390px) {
  :root {
    --page-padding: 12px;
  }

  .project-intro {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .project-copy {
    gap: 12px;
    font-size: 7.7px;
  }

  .project-note {
    padding-inline: 9px;
  }
  .project-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-image {
  width: 100%;
  margin: 0;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
}
}
