/* Портфолио Дарьи Романовны — тёмный строгий стиль, акцент шампань. Без оранжевого и синего. */
:root {
  --bg: #0E0E0F;
  --bg-2: #141416;
  --panel: #1A1A1C;
  --line: #2A2927;
  --text: #ECE6DA;
  --muted: #8C877E;
  --gold: #B8A47E;
  --gold-soft: rgba(184, 164, 126, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --max: 1320px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 300 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--bg); }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: .01em; line-height: 1.05; }
h2 { font-size: clamp(40px, 6vw, 76px); }
.eyebrow {
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 400;
}
.en { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 19px; line-height: 1.5; }
.section-head { max-width: var(--max); margin: 0 auto 56px; }

/* ---------- навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad); transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(14, 14, 15, .88); backdrop-filter: blur(12px); padding-block: 14px; border-color: var(--line); }
/* монограмма: прежнее тонкое начертание с разрядкой, «Д» крупнее «Р» */
.nav__logo { font-family: var(--serif); font-weight: 300; letter-spacing: .08em; display: inline-flex; align-items: baseline; line-height: 1; }
.nav__d { font-size: 34px; }
.nav__r { font-size: 22px; }
.nav__links { display: flex; gap: 40px; }
.nav__links a {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--text);
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .35s;
}
.nav__links a:hover::after { right: 0; }
.nav__burger { display: none; background: none; border: 0; width: 34px; height: 24px; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 4px; right: 4px; height: 1px; background: var(--text); transition: transform .3s, top .3s; }
.nav__burger span:first-child { top: 8px; }
.nav__burger span:last-child { top: 15px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 12px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 12px; transform: rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.06); animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,15,.55) 0%, rgba(14,14,15,.05) 35%, rgba(14,14,15,.35) 65%, var(--bg) 100%),
              linear-gradient(90deg, rgba(14,14,15,.7) 0%, rgba(14,14,15,0) 60%);
}
.hero__content { position: relative; padding: 0 var(--pad) clamp(80px, 14vh, 150px); max-width: 900px; }
.hero__title { font-size: clamp(64px, 12vw, 168px); line-height: .9; margin-bottom: 28px; }
.hero__sub { font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .04em; }
.hero__en { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 20px; margin: 4px 0 40px; }
.btn {
  display: inline-block; padding: 16px 34px; border: 1px solid var(--gold); color: var(--text);
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; transition: background .35s, color .35s;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.hero__scroll { position: absolute; right: var(--pad); bottom: 48px; width: 1px; height: 72px; background: var(--line); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: scrollCue 2.2s ease-in-out infinite; }
@keyframes scrollCue { to { top: 100%; } }

/* ---------- факты ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max);
  margin: 0 auto; padding: 56px var(--pad); gap: 24px; border-bottom: 1px solid var(--line);
}
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts b { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--text); }
.facts span { font-size: 13px; color: var(--muted); }

/* ---------- оглавление работ ---------- */
.index { padding: clamp(80px, 12vw, 150px) var(--pad) 40px; }
.index__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.card { display: block; }
.card__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.92); }
.card:hover .card__img img { transform: scale(1.05); filter: saturate(1); }
.card__num { position: absolute; left: 16px; top: 12px; font-family: var(--serif); font-size: 22px; color: var(--text); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.card__meta { padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1px solid transparent; }
.card__title { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; }
.card__kind { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.card__en { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 17px; }

/* ---------- разделы работ ---------- */
.work { padding: clamp(80px, 11vw, 140px) var(--pad) 0; }
.work__inner { max-width: var(--max); margin: 0 auto; }
.work__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: 44px; }
.work__num { font-family: var(--serif); font-size: clamp(80px, 11vw, 150px); line-height: .8; color: var(--gold); opacity: .9; font-weight: 300; }
.work__title { font-size: clamp(38px, 5vw, 64px); margin: 18px 0 8px; }
.work__en { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 22px; }
.work__text p { margin-bottom: 14px; color: #D9D3C7; }
.work__text .en { font-size: 18px; color: var(--muted); }
.specs { margin-top: 26px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.shot { position: relative; overflow: hidden; background: var(--panel); cursor: zoom-in; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption, .shot .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(0deg, rgba(14,14,15,.8), transparent);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.shot:hover .cap, .shot:focus-visible .cap { opacity: 1; transform: none; }
.shot:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.shot--hero { grid-column: span 12; aspect-ratio: 16 / 9; }
.shot--half { grid-column: span 6; aspect-ratio: 16 / 9; }
.shot--third { grid-column: span 4; aspect-ratio: 16 / 9; }
.shot--wide { grid-column: span 12; aspect-ratio: auto; }
.shot--wide img { height: auto; }

.video {
  margin-top: 14px; position: relative; aspect-ratio: 21 / 9; background: var(--bg-2);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.video video { width: 100%; height: 100%; object-fit: cover; }
.video.video--play { aspect-ratio: 16 / 9; }          /* ролики 16:9 — без обрезки, и на телефоне тоже */
.video--play video { object-fit: contain; }
.video__stub { display: flex; align-items: center; gap: 22px; color: var(--muted); padding: 20px; }
.video__icon { flex: none; width: 64px; height: 64px; border: 1px solid var(--gold); border-radius: 50%; position: relative; }
.video__icon::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--gold); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video__stub b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--text); }
.video__stub span { font-size: 13px; }
.video__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; filter: grayscale(.4) blur(2px); }

.work__next { display: flex; justify-content: flex-end; margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.work__next a { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding: 14px 0; transition: color .3s; }
.work__next a:hover { color: var(--gold); }

/* ---------- обо мне, контакты ---------- */
.about { padding: clamp(100px, 14vw, 180px) var(--pad); }
.about__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.about h2 { margin-bottom: 36px; }
.about p { font-size: 18px; color: #D9D3C7; margin-bottom: 18px; }
.about .en { font-size: 20px; }
.skills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.skills li { border: 1px solid var(--line); padding: 8px 16px; font-size: 13px; color: var(--muted); }

.contacts { padding: clamp(90px, 12vw, 160px) var(--pad); background: var(--panel); text-align: center; }
.contacts h2 { margin-bottom: 20px; }
.contacts__note { color: var(--muted); margin-bottom: 48px; }
.contacts__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.contact { min-width: 230px; padding: 22px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: border-color .3s; }
.contact span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.contact b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.contact:hover { border-color: var(--gold); }
.contact--stub { pointer-events: none; opacity: .55; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 30px var(--pad); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- просмотр ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,11,.97); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb__fig { max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lb__fig img { max-width: 92vw; max-height: 82vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb__fig figcaption { margin-top: 16px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lb__fig figcaption b { color: var(--gold); font-weight: 400; }
.lb__close, .lb__nav { position: absolute; background: none; border: 0; color: var(--text); cursor: pointer; font-family: var(--serif); transition: color .3s; }
.lb__close:hover, .lb__nav:hover { color: var(--gold); }
.lb__close { top: 18px; right: 22px; font-size: 26px; padding: 8px; }
.lb__nav { top: 50%; transform: translateY(-50%); font-size: 64px; padding: 20px; line-height: 1; }
.lb__prev { left: 8px; }
.lb__next { right: 8px; }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .index__grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .work__head { grid-template-columns: 1fr; align-items: start; }
  .shot--third { grid-column: span 6; }
}
@media (max-width: 680px) {
  .nav__burger { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 15px; }
  .index__grid { grid-template-columns: 1fr; }
  .card__meta { flex-direction: column; gap: 4px; }
  .card__kind { white-space: normal; }
  .facts { grid-template-columns: 1fr 1fr; padding-block: 40px; }
  .facts b { font-size: 24px; }
  .gallery { gap: 8px; }
  .shot--half, .shot--third { grid-column: span 12; }
  .shot .cap { opacity: 1; transform: none; font-size: 10px; padding: 20px 10px 8px; }
  .video { aspect-ratio: 4 / 3; }
  .video__stub { flex-direction: column; text-align: center; }
  .lb__nav { font-size: 44px; padding: 10px; top: auto; bottom: 14px; transform: none; }
  .hero__scroll { display: none; }
  .contact { min-width: 0; width: 100%; }
}
