

/* Start:/local/templates/repin/assets/css/project.css?179248676412127*/
/* shared styles for the project detail pages (projects/*.html) */

@font-face {
  font-family: "Inter";
  src: url("/local/templates/repin/assets/css/../fonts/Inter-cyrillic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("/local/templates/repin/assets/css/../fonts/Inter-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  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;
}

@font-face {
  font-family: "HostGrotesk";
  src: url("/local/templates/repin/assets/css/../fonts/HostGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --x-default: clamp(16px, 4vw, 40px);
  --y-default: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --muted: rgba(255,255,255,0.6); /* ≥4.5:1 on the black page (Lighthouse contrast) */
  /* width of the right-hand gallery column on desktop */
  --gallery-w: 52vw;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #000;
  color: rgba(255,255,255,0.9);
  font-family: "HostGrotesk", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* ---------- header (same look as the home page) ---------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--y-default) var(--x-default);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
  pointer-events: none;
}

@media (min-width: 1020px) {
  header { background: none; }
}

header > * { pointer-events: auto; }

.logo span { font-size: 20px; font-weight: 400; }

/* letter-wipe hover on menu links, same as on the home page */
.nav-word { position: relative; display: inline-flex; }
.nav-word.is-duplicate { position: absolute; top: 0; left: 0; }
.nav-word .letter { display: inline-block; overflow: hidden; }
.nav-word .letter span {
  display: inline-block;
  transition: transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i) * 0.035s);
}
.nav-word.is-duplicate .letter span { transform: translateX(-100%); }
@media (hover: hover) {
  .menu nav a:hover .nav-word:not(.is-duplicate) .letter span,
  .arrow-link:hover .nav-word:not(.is-duplicate) .letter span { transform: translateX(100%); }

  .menu nav a:hover .nav-word.is-duplicate .letter span,
  .arrow-link:hover .nav-word.is-duplicate .letter span { transform: translateX(0%); }
}

.burger {
  position: relative;
  z-index: 10;
  width: 28px;
  height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1px;
  width: 100%;
  background: #fff;
  transition: transform 0.4s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

.burger span:nth-child(3) { width: 50%; align-self: flex-end; }

/* desktop shows only the logo — no menu at all */
@media (min-width: 1020px) {
  .burger, .menu { display: none; }
}

body.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { width: 100%; transform: translateY(-4.5px) rotate(-45deg); }
body.menu-open .burger span { background: #000; }
body.menu-open .logo { color: #000; }
body.menu-open header { background: none; }

.menu {
  position: fixed;
  z-index: 35;
  inset: 0 0 auto 0;
  height: 100svh;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  color: #000;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  padding: 90px var(--x-default) var(--x-default);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-out);
}

body.menu-open .menu { transform: translateY(0); }

.menu nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.menu nav a {
  position: relative;
  display: block;
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ---------- line reveal: text slides up out of a mask ---------- */

.ln_ { display: block; overflow: hidden; }
.ln {
  display: block;
  transform: translateY(102%);
  animation: ln-in 1.2s var(--ease-out) forwards;
  animation-delay: calc(0.1s + var(--d, 0) * 0.05s);
}

/* reveal order of each line, set in markup as data-d="N" */
.ln[data-d="1"] { --d: 1; }
.ln[data-d="2"] { --d: 2; }
.ln[data-d="3"] { --d: 3; }
.ln[data-d="4"] { --d: 4; }
.ln[data-d="5"] { --d: 5; }
.ln[data-d="6"] { --d: 6; }
.ln[data-d="7"] { --d: 7; }
.ln[data-d="8"] { --d: 8; }
.ln[data-d="9"] { --d: 9; }
.ln[data-d="10"] { --d: 10; }
.ln[data-d="11"] { --d: 11; }
.ln[data-d="12"] { --d: 12; }
.ln[data-d="13"] { --d: 13; }
.ln[data-d="14"] { --d: 14; }
.ln[data-d="15"] { --d: 15; }
.ln[data-d="16"] { --d: 16; }

.nowrap { white-space: nowrap; }

@keyframes ln-in { to { transform: translateY(0); } }

/* ---------- project layout ---------- */

.pr {
  position: relative;
  padding: 110px var(--x-default) 60px;
}

.pr-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--muted);
}

.pr-label .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #fff; }

.pr-title {
  margin: 18px 0 28px;
  font-size: clamp(48px, 13vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.pr-meta {
  display: grid;
  gap: 18px;
  font-size: 16px;
  line-height: 1.35;
}

.pr-meta dt {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.pr-link { margin-top: 26px; font-size: 16px; }

.pr-desc {
  margin-top: 40px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255,255,255,0.75);
}

.pr-desc p + p { margin-top: 1em; }

.pr-tasks {
  list-style: none;
  margin-top: 28px;
  max-width: 34em;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.pr-tasks li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 15px;
  color: #fff;
}

.pr-tasks li span:first-child {
  flex: 0 0 28px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: #fff;
  padding-top: 2px;
}

/* inline links inside a task line (e.g. a special project) */
.pr-tasks a {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.6);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {
  .pr-tasks a:hover { color: #fff; text-decoration-color: #fff; }
}

/* same as "Смотреть работы" on the home page: uppercase Inter, the
   letter-wipe on hover and the thin 12px arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
}

.arrow-link .letter-wipe { position: relative; display: inline-block; }
.arrow-link svg { width: 12px; height: 12px; flex-shrink: 0; }
.arrow-link.is-external svg { transform: rotate(-45deg); }
.arrow-link.is-back svg { transform: rotate(180deg); }

/* bottom row: "Все проекты" on the left, "Следующий проект" on the right */
.pr-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  margin-top: 48px;
}

.pr-foot.is-bottom { margin: -20px 0 0; padding: 0 var(--x-default) 60px; }

/* mobile: the gallery is just a column of images under the text, each one
   sliding up into place as it scrolls in */
.pr-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 var(--x-default) 60px;
}

.pg-item { overflow: hidden; background: #111; }
.pg-item img { height: 100%; object-fit: cover; }
.pg-in { width: 100%; height: 100%; }

.pg-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6%;
  height: 100%;
  padding: 6% 10%;
  /* each project sets its own backdrop for the phone pair */
  background: var(--pair-bg, #1a1a1a);
}
.pg-pair--themay { --pair-bg: linear-gradient(90deg, #0b4d2c, #0f8a4c); }
.pg-pair--tea { --pair-bg: linear-gradient(90deg, #2a1d14, #8a6a50); }
.pg-pair--gourmeria { --pair-bg: linear-gradient(90deg, #3a1515, #8a0a0e); }
.pg-pair--familio { --pair-bg: linear-gradient(90deg, #0d1a4a, #1f4fe0); }

.pg-pair img {
  width: auto;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.pr-gallery.is-mobile .pg-item {
  transform: translateY(40vh);
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity 0.8s ease;
}

.pr-gallery.is-mobile .pg-item.in-view { transform: none; opacity: 1; }

/* ---------- desktop: fixed text on the left, endless gallery on the right ---------- */

@media (min-width: 1020px) {
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }

  /* the text block is centred between the header and the "Все проекты"
     link; if it is still taller than the screen the column scrolls */
  .pr {
    position: fixed;
    inset: 0 var(--gallery-w) 0 0;
    display: flex;
    flex-direction: column;
    padding: 100px var(--x-default) var(--y-default);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .pr::-webkit-scrollbar { display: none; }

  .pr-head { margin-top: auto; }
  .pr-tasks { margin-bottom: auto; }

  .pr-title { margin: 14px 0 28px; font-size: clamp(56px, 6.4vw, 120px); }

  /* "Сфера" and "Работы" side by side, the site link under them */
  .pr-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px var(--x-default); }
  .pr-meta .pr-link { grid-column: 1 / -1; margin-top: 6px; }

  .pr-desc { margin-top: clamp(28px, 5vh, 56px); font-size: 16px; }

  .pr-tasks { margin-top: 20px; max-width: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--x-default); }

  .pr-tasks li { padding: 9px 0; font-size: 14px; line-height: 1.3; }

  .pr-foot { margin-top: 32px; }


  .pr-gallery {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--gallery-w);
    height: 100svh;
    padding: 0;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
  }

  .pr-gallery.is-dragging { cursor: grabbing; }

  /* every item is laid out by script: absolutely positioned at the top
     right corner and moved/scaled with a transform each frame */
  .pg-item {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    transform-origin: 100% 0;
    will-change: transform;
    visibility: hidden;
  }

  .pg-item img { pointer-events: none; user-select: none; -webkit-user-drag: none; }

}

/* shorter laptop screens: tighten the text column so it fits without scrolling */
@media (min-width: 1020px) and (max-height: 900px) {
  .pr { padding-top: 90px; }
  .pr-title { margin: 8px 0 18px; font-size: clamp(48px, 5.2vw, 84px); }
  .pr-meta { gap: 12px var(--x-default); font-size: 15px; }
  .pr-desc { margin-top: 22px; font-size: 15px; }
  .pr-desc p + p { margin-top: 0.6em; }
  .pr-tasks { margin-top: 16px; }
  .pr-tasks li { padding: 7px 0; font-size: 13px; }
  .pr-foot { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ln { animation: none; transform: none; }
  .pr-gallery.is-mobile .pg-item { transform: none; opacity: 1; transition: none; }
}

/* End */
/* /local/templates/repin/assets/css/project.css?179248676412127 */
