:root { color-scheme: light; padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Главная: фото на весь экран, сменяются сами. Портфолио: обложки съёмок, внутри серия.
   Single white look on purpose. Список съёмок лежит в начале скрипта, внизу файла. */
:root {
  --page: #fff;
  --ink: #1a1a1c;
  --soft: #68686e;
  --frame: #ececee;
  --type: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --side: clamp(16px, 3.8vw, 60px);
  --gap: clamp(14px, 3.6vw, 60px);
}
* { box-sizing: border-box; }
html { height: 100%; }
body { min-height: 100%; display: flex; flex-direction: column; background: var(--page); color: var(--ink); font: 300 17px/1.5 var(--type); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; font: inherit; list-style: none; }
a, button { color: inherit; font: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.top, .foot, main > section { padding-left: max(16px, var(--side), env(safe-area-inset-left, 0px)); padding-right: max(16px, var(--side), env(safe-area-inset-right, 0px)); }

.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 32px; padding-block: 24px 20px; }
.top h1 { margin-right: auto; }
.top h1 a { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.4; letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: clamp(18px, 2.2vw, 34px); margin-right: clamp(0px, 1vw, 16px); }
/* Все надписи в одном виде: Jost, заглавные, с разрядкой */
.top h1, .top nav, .cta, .tile span, #v-series h2, #v-series h3, #v-presets, .rates h2, .book, .list dt, .foot { font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.top nav, .cta, .tile span, #v-series h3, .rates h2, .book, .list dt { font-size: 13px; line-height: 20px; }
.link { padding-bottom: 2px; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.link:hover, .link[aria-current], .link[aria-pressed="true"] { border-color: currentColor; }

/* Переключатель языка: плашка в тон кадрам, белая плитка под активным языком */
.lang { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--frame); }
.lang::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--page); transition: transform .28s cubic-bezier(.3, .7, .2, 1); }
.lang[data-on="ru"]::before { transform: translateX(100%); }
.lang button { position: relative; min-width: 38px; padding: 4px 0; color: var(--soft); font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: .06em; text-indent: .06em; transition: color .2s; }
.lang button::after { content: ""; position: absolute; inset: -12px 0 -2px; }
.lang button:hover, .lang [aria-pressed="true"] { color: var(--ink); }

main { flex: 1; display: flex; flex-direction: column; }
.f { position: relative; display: block; min-width: 0; max-width: 100%; overflow: hidden; background: radial-gradient(ellipse 80% 75% at 50% 40%, #f7f7f8, var(--frame)); }

/* Главная: кадры на весь экран, шапка белым поверх */
.slides { position: fixed; inset: 0; overflow: hidden; background: #2b2b2e; cursor: pointer; touch-action: pinch-zoom; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; }
.slides .was { opacity: 1; z-index: 1; }
.slides .on { opacity: 1; z-index: 2; transition: opacity 2s ease; }
#v-home::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(18, 18, 20, .64), rgba(18, 18, 20, .5) 68px, rgba(18, 18, 20, 0) max(210px, 28%), rgba(18, 18, 20, 0) 70%, rgba(18, 18, 20, .42)); }
/* Дым: холст лежит над кадрами и под меню, на время перехода поднимается над всей страницей */
#smoke { position: fixed; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
#smoke.over { z-index: 10; }
#smoke[hidden] { display: none; }
.cta { position: fixed; z-index: 2; left: max(16px, var(--side), env(safe-area-inset-left, 0px)); bottom: max(clamp(16px, 3.8vw, 52px), env(safe-area-inset-bottom, 0px) + 16px); padding: 17px 32px; border: 1px solid #fff; background: rgba(18, 18, 20, .24); color: #fff; text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s; }
.cta:hover { background: #fff; color: var(--ink); }
:root:has(#v-home:not([hidden])) .top { position: relative; z-index: 2; color: #fff; }
:root:has(#v-home:not([hidden])) .lang { background: rgba(255, 255, 255, .2); }
:root:has(#v-home:not([hidden])) .lang [aria-pressed="false"] { color: #fff; }
:root:has(#v-home:not([hidden])) body { background: #2b2b2e; }
.sunk { will-change: transform, filter; }
:root:has(#v-home:not([hidden])) .foot { display: none; }

/* Портфолио: обложки */
#v-portfolio { padding-block: clamp(12px, 3.4vw, 52px) clamp(40px, 6vw, 88px); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 4/5; overflow: hidden; padding: 12px; text-decoration: none; text-align: center; color: var(--soft); background: radial-gradient(ellipse 80% 75% at 50% 40%, #f7f7f8, var(--frame)); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(40, 43, 48, 0); transition: background-color .3s; }
.tile span { position: relative; z-index: 1; overflow-wrap: anywhere; transition: color .3s; }
.tile.full span { color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .55), 0 0 12px rgba(0, 0, 0, .6), 0 0 30px rgba(0, 0, 0, .6); }
.tile:hover::after, .tile:focus-visible::after { background: rgba(40, 43, 48, .55); }
.tile:hover span, .tile:focus-visible span { color: #fff; }

/* Одна съёмка */
#v-series { padding-block: clamp(12px, 3.4vw, 52px) clamp(40px, 6vw, 88px); }
#v-series h2 { margin-bottom: clamp(24px, 4.4vw, 64px); text-align: center; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.4; letter-spacing: .14em; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 24px) clamp(10px, 2.4vw, 40px); }
.shots .f { aspect-ratio: 4/5; }
.shot { display: grid; aspect-ratio: 4/5; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
#v-series h3 { margin: clamp(56px, 8vw, 120px) 0 clamp(20px, 2.6vw, 36px); text-align: center; color: var(--soft); }

/* Кадр крупно */
.box { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 56px max(16px, var(--side)); border: 0; background: var(--page); color: var(--ink); }
.box[open] { display: grid; }
.box::backdrop { background: var(--page); }
.box img { width: 100%; height: 100%; min-height: 0; object-fit: contain; cursor: pointer; }
.box button { position: absolute; width: 48px; height: 48px; }
.box button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border: solid currentColor; border-width: 1px 1px 0 0; }
.box button:focus-visible { outline-offset: -5px; }
#shut { top: 4px; right: 4px; }
#shut::before, #shut::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 0; border: solid currentColor; border-width: 1px 0 0; transform: translate(-50%, 0) rotate(45deg); }
#shut::after { transform: translate(-50%, 0) rotate(-45deg); }
#back, #fwd { top: calc(50% - 24px); }
#back { left: 4px; } #back::before { transform: translate(-30%, -50%) rotate(-135deg); }
#fwd { right: 4px; } #fwd::before { transform: translate(-70%, -50%) rotate(45deg); }

/* Стоимость */
#v-pricing { padding-block: 12px; display: grid; gap: clamp(40px, 6vw, 88px); align-content: start; justify-items: start; }
.rates { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 5vw, 84px); }
.rates > div { display: grid; gap: 14px; align-content: start; padding-top: 16px; border-top: 1px solid var(--frame); }
.rates h2 { color: var(--soft); }
.rates .sum { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.rates ul { display: grid; gap: 4px; }
.book { border-color: currentColor; }
.book:hover { border-color: transparent; }

/* Пресеты */
#v-presets { flex: 1; display: grid; align-content: center; justify-items: center; gap: 14px; padding-block: 12px; text-align: center; }
#v-presets h2 { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.4; letter-spacing: .14em; }
#v-presets p { font-size: 13px; line-height: 20px; color: var(--soft); }

/* Обо мне, контакты */
.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 84px); align-items: end; }
.two .f { aspect-ratio: 4/5; }
.say { display: grid; gap: 16px; max-width: 46ch; font-size: 20px; line-height: 1.5; }
.list { display: grid; gap: 10px; font-size: 20px; }
.list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; }
.list dt { color: var(--soft); }
.list dd { overflow-wrap: anywhere; user-select: all; }
#v-contacts { flex: 1; display: flex; align-items: flex-end; padding-bottom: 12px; }
#v-about { padding-top: 12px; }

.foot { padding-block: 18px; color: var(--soft); font-size: 11px; }

@media (max-width: 760px) {
  .top { padding-block: 14px; }
  .top nav { order: 3; width: 100%; flex-wrap: wrap; gap: 2px 13px; font-size: 11.5px; letter-spacing: .05em; line-height: 28px; }
  .rates { grid-template-columns: minmax(0, 1fr); }
  .tiles, .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box { padding-inline: 0; }
  #back, #fwd { top: auto; bottom: 4px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .list div { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .link, .lang::before, .lang button, .slides .on, .cta, .tile span, .tile::after { transition: none; } }
