/* Локальные вариативные шрифты — без обращения к Google (latin + cyrillic) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Manrope-200-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Manrope-200-700-latin.woff2) format('woff2');
  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;
}

/* СВЕТ — минимализм: белое поле, тонкий шрифт, линии вместо рамок, монохром до наведения */

* {
  box-sizing: border-box;
}

:root {
  --paper: #ffffff;
  --ink: #111111;
  --grey: #8a8a8a;
  --line: #e6e6e6;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.wrap {
  width: min(1240px, 90%);
  margin: 0 auto;
}

/* шапка */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .42em;
  text-decoration: none;
}

.name span {
  margin-left: 10px;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--grey);
}

.hdr nav {
  display: flex;
  gap: 32px;
}

.hdr nav a {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  transition: color .2s;
}

.hdr nav a:hover {
  color: var(--ink);
}

/* герой */
.hero {
  padding: 120px 0 96px;
}

.kicker {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 42px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 92px);
  font-weight: 200;
}

.hero h1 .thin {
  color: var(--grey);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 90px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-meta span {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}

.hero-meta b {
  font-weight: 400;
  font-size: 16px;
}

/* секции */
.section {
  padding: 76px 0;
}

.s-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.s-head h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
}

/* фильтр */
.filter {
  display: flex;
  gap: 4px;
}

.f {
  padding: 7px 16px;
  border: 0;
  background: transparent;
  color: var(--grey);
  font-family: Manrope, sans-serif;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: .2s;
}

.f:hover {
  color: var(--ink);
}

.f.is-on {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* галерея */
.gal {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 0 4px;
}

.item {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: #f2f2f2;
}

.item[hidden] {
  display: none;
}

.item:nth-child(1) {
  grid-column: span 4;
  aspect-ratio: 16 / 11;
}

.item:nth-child(2) {
  grid-column: span 2;
  aspect-ratio: 3 / 4;
}

.item:nth-child(3) {
  grid-column: span 2;
  aspect-ratio: 3 / 4;
}

.item:nth-child(4) {
  grid-column: span 4;
  aspect-ratio: 16 / 11;
}

.item:nth-child(5) {
  grid-column: span 6;
  aspect-ratio: 21 / 8;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .6s ease, transform .8s cubic-bezier(.2, .7, .3, 1);
}

.item:hover img {
  filter: grayscale(0);
  transform: scale(1.03);
}

.item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .92);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: .3s;
}

.item:hover figcaption {
  opacity: 1;
  transform: none;
}

.item figcaption span {
  color: var(--grey);
  margin-right: 8px;
}

/* форматы */
.formats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.formats li {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s;
}

.formats li:hover {
  padding-left: 12px;
}

.f-num {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--grey);
}

.f-body h3 {
  font-size: 27px;
  margin-bottom: 8px;
}

.f-body p {
  color: var(--grey);
  max-width: 58ch;
  font-size: 16px;
}

.f-price {
  font-size: 20px;
  font-weight: 400;
  white-space: nowrap;
}

/* процесс */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
}

.p-num {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--grey);
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.steps p {
  color: var(--grey);
  font-size: 16px;
}

/* контакты */
.contact {
  padding: 40px 0 20px;
  border-top: 1px solid var(--line);
}

.big {
  font-size: clamp(38px, 7vw, 86px);
  font-weight: 200;
}

.lead {
  margin-top: 24px;
  color: var(--grey);
  max-width: 50ch;
}

.c-btns {
  display: flex;
  flex-direction: column;
  margin-top: 44px;
  max-width: 520px;
}

.line-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: 20px;
  transition: padding-left .3s;
}

.line-btn:last-child {
  border-bottom: 1px solid var(--line);
}

.line-btn em {
  font-style: normal;
  color: var(--grey);
  transition: transform .3s;
}

.line-btn:hover {
  padding-left: 10px;
}

.line-btn:hover em {
  transform: translateX(8px);
  color: var(--ink);
}

/* подвал */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 40px 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.dim {
  color: var(--grey);
}

/* лайтбокс */
.lb[hidden] {
  display: none;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 60px 70px 90px;
  background: rgba(255, 255, 255, .98);
}

.lb img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

.lb-cap {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}

.lb-close,
.lb-nav {
  position: absolute;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transition: .2s;
}

.lb-close:hover,
.lb-nav:hover {
  border-color: var(--ink);
}

.lb-close {
  top: 24px;
  right: 24px;
}

.lb-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* адаптив */
@media (max-width: 900px) {
  .hdr nav {
    gap: 18px;
  }

  .hdr nav a {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 54px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .gal {
    grid-template-columns: repeat(2, 1fr);
  }

  .item:nth-child(1),
  .item:nth-child(4),
  .item:nth-child(5) {
    grid-column: span 2;
    aspect-ratio: 16 / 11;
  }

  .item:nth-child(2),
  .item:nth-child(3) {
    grid-column: span 1;
    aspect-ratio: 3 / 4;
  }

  .formats li {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .f-num {
    display: none;
  }

  .lb {
    padding: 70px 16px 80px;
  }

  .lb-prev {
    left: 10px;
  }

  .lb-next {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: .001ms !important;
  }
}
