:root {
  --bg: #0e0e0e;
  --bg-2: #161616;
  --text: #f2efe9;
  --muted: #9a958c;
  --accent: #c9a96e;
  --line: rgba(255, 255, 255, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 300 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 5vw; transition: background .3s, padding .3s;
}
.header.is-scrolled { background: rgba(14, 14, 14, .9); backdrop-filter: blur(8px); padding: 14px 5vw; }
.logo { font: 500 18px var(--sans); letter-spacing: .25em; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--accent); }
.burger { display: none; width: 28px; height: 18px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 1px; background: var(--text); transition: .3s; }
.burger span:first-child { top: 4px; }
.burger span:last-child { bottom: 4px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden;
  background: radial-gradient(ellipse at 30% 30%, #3a3127, #0e0e0e 70%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15) 60%); }
.hero__content { position: relative; padding: 0 5vw 12vh; width: 100%; }
.hero__pre { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.hero__title { font: 400 clamp(40px, 7vw, 96px)/1.05 var(--serif); margin-bottom: 48px; }
.hero__title em { color: var(--accent); }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero__link { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
.hero__link span { color: var(--accent); margin-right: 10px; font-size: 12px; }
.hero__link:hover { color: var(--accent); }
.hero__scroll { position: absolute; right: 5vw; bottom: 12vh; width: 1px; height: 60px; background: var(--line); overflow: hidden; }
.hero__scroll::after { content: ""; position: absolute; left: 0; top: -60px; width: 1px; height: 60px; background: var(--accent); animation: scroll 2s infinite; }
@keyframes scroll { to { top: 60px; } }

/* ---------- Секции ---------- */
.section { padding: 120px 5vw; }
.section--dark { background: var(--bg-2); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__num { display: block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section__title { font: 400 clamp(36px, 5vw, 64px)/1.1 var(--serif); margin-bottom: 20px; }
.section__text { color: var(--muted); font-size: 17px; }

/* ---------- Сетка работ ---------- */
.grid { display: grid; gap: 24px; }
.grid--wide { grid-template-columns: repeat(2, 1fr); }
.grid--vertical { grid-template-columns: repeat(4, 1fr); }

.card { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; text-align: left; background: #222; }
.card--vertical { aspect-ratio: 9 / 16; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; filter: brightness(.8); }
.card:hover img { transform: scale(1.05); filter: brightness(.55); }
.card::before { /* кнопка Play */
  content: ""; position: absolute; z-index: 2; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 50%; opacity: 0; transform: scale(.8); transition: .3s;
}
.card::after {
  content: ""; position: absolute; z-index: 2; top: 50%; left: 50%; margin: -9px 0 0 -5px;
  border-left: 16px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; opacity: 0; transition: .3s;
}
.card:hover::before, .card:hover::after { opacity: 1; transform: scale(1); }
.card__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.card__info b { display: block; font: 400 26px/1.2 var(--serif); }
.card__info i { font-style: normal; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }

/* ---------- Цены ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.price { border: 1px solid var(--line); padding: 40px 32px; transition: border-color .3s; }
.price:hover, .price--accent { border-color: var(--accent); }
.price h3 { font: 400 30px var(--serif); margin-bottom: 8px; }
.price__sum { color: var(--accent); font-size: 18px; margin-bottom: 24px; }
.price ul { list-style: none; color: var(--muted); }
.price li { padding: 8px 0; border-top: 1px solid var(--line); }
.note { margin-top: 48px; color: var(--muted); max-width: 640px; }

/* ---------- Обо мне ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6vw; align-items: center; }
.about__photo { width: 100%; aspect-ratio: 7 / 9; object-fit: cover; }
.about__text p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
.stats { display: flex; gap: 48px; margin-top: 40px; }
.stats b { display: block; font: 400 48px/1 var(--serif); color: var(--accent); }
.stats span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Контакты ---------- */
.contacts__links { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.contacts__links a { font: 400 28px var(--serif); border-bottom: 1px solid var(--line); padding-bottom: 12px; transition: color .2s; }
.contacts__links a:hover { color: var(--accent); }

.footer { padding: 32px 5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); opacity: 0; visibility: hidden; transition: .3s; padding: 24px; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { width: min(1200px, 100%); aspect-ratio: 16 / 9; }
.modal__box.is-vertical { width: auto; height: min(85vh, 900px); aspect-ratio: 9 / 16; }
.modal__box iframe, .modal__box video { width: 100%; height: 100%; border: 0; background: #000; }
.modal__empty { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--line); text-align: center; padding: 20px; }
.modal__close { position: absolute; top: 16px; right: 24px; font-size: 44px; line-height: 1; font-weight: 300; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .grid--vertical { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 80px 16px; }
  .header { padding: 18px 16px; }
  .header.is-scrolled { padding: 12px 16px; }
  .burger { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: var(--bg); opacity: 0; visibility: hidden; transition: .3s; }
  .nav a { font-size: 18px; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .burger.is-open span:first-child { top: 8px; transform: rotate(45deg); }
  .burger.is-open span:last-child { bottom: 9px; transform: rotate(-45deg); }
  .hero__content { padding: 0 16px 14vh; }
  .hero__links { flex-direction: column; }
  .hero__scroll { display: none; }
  .grid--wide { grid-template-columns: 1fr; }
  .grid--vertical { gap: 12px; }
  .about { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .contacts__links a { font-size: 24px; }
}
