@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeue-Roman.woff2') format('woff2'),
       url('../fonts/HelveticaNeue-Roman.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeue-Medium.woff2') format('woff2'),
       url('../fonts/HelveticaNeue-Medium.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:          #FAF4EB;
  --text:        #000000;
  --text-muted:  #666;
  --text-link:   #454545;

  --font-base: clamp(1.1rem, 1vw, 1.5rem);
  --font-lg:   clamp(1.4rem, 1vw, 1.8rem);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: 500;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar { display: none; }

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a:not(.project-link) {
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  text-decoration-skip-ink: none;
  transition: color 0.5s ease;
}
a:not(.project-link):hover {
  color: var(--text-link);
  text-decoration: underline;
  text-decoration-color: var(--text-link);
  transition: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 40vw;
  height: 100vh;
  background: var(--bg);
  z-index: 10;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-header h1 {
  font-size: var(--font-base);
  line-height: 1.2;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}
.menu-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5rem 1rem;
}
.menu-grid a {
  padding: 0.2em 0;
  white-space: nowrap;
  flex: 0 1 auto;
}

.email-mobile { display: none; }

.sidebar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.live-time {
  white-space: nowrap;
  font-feature-settings: "tnum";
}

.main-content {
  margin-left: 40vw;
  padding: 2rem;
  position: relative;
  min-height: 100vh;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3rem;
}

/* ─── Галерея с непрерывным переключением ──────────────────────────────── */
.slider {
  position: relative;
  width: 100%;
  touch-action: pan-y;
  user-select: none;
  cursor: e-resize;
}
.slider:focus { outline: none; }

.slides {
  display: grid;
}
.slides > .slide {
  grid-area: 1/1;
  width: 100%;
}
.slide img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  visibility: hidden;
}
.slide.active img {
  visibility: visible;
}
.dots-container {
  display: none;
}

/* ─── Стрелка-иконка ──────────────────────────────────────────────────── */
.hook-arrow {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.2em;
  fill: currentColor;
  overflow: visible;
}

/* ─── Инфо под проектом ───────────────────────────────────────────────── */
.project-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4ch;
  padding-top: 1rem;
}
.project-link {
  color: inherit;
  text-decoration: none;
  white-space: normal;
}
.project-desc {
  color: var(--text-muted);
}

.page-footer {
  display: none; 
}

.footer-two {
  display: none;
}


@media (min-width: 769px) {
  .footer-two {
    display: block;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: var(--font-base);
    color: var(--text);
    z-index: 1;
  }
}

/* ─── Мобила ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1.5rem 1rem 0;
  }

  .sidebar-nav { margin: 1.5rem 0 0; }
  .menu-grid { flex-wrap: wrap; }
  .email-mobile  { display: block; }
  .email-desktop { display: none; }
  .sidebar-footer { display: none; }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 2rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .projects-list { padding-bottom: 1rem; }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: auto;
  }
}

/* ─── Страница «Инфо» ──────────────────────────────────────────────────── */
.info-photo {
  display: block;
  max-width: 10rem;
  height: auto;
  margin-bottom: 1.5rem;
}

.num {
  display: inline-block;
  width: 5em;
  text-align: left;
}

.manifest-text {
  margin-top: 49%;
  margin-bottom: 3rem;
  font-size: var(--font-base);
}
.manifest-text p { margin-bottom: 3rem; }

@media (max-width: 768px) {
  .manifest-text {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
}

/* ─── Страница «Архив» ────────────────────────────────────────────────── */
.archive-masonry {
  column-count: 2;
  column-gap: 1rem;
  margin-bottom: 3rem;
}
.archive-masonry img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  break-inside: avoid;
}

@media (max-width: 768px) {
  .archive-masonry {
    column-count: 1;
    margin-bottom: 1rem;
  }
}