/* Наталья Пушенко, портфолио модели. Editorial: Playfair Display + Manrope, палитра исходного сайта.
   Форма: углы острые везде, кнопки и круглые контролы = пилюля. Тема страницы светлая; блок «Обо мне» = единственный тёмный цветовой блок. */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('assets/fonts/playfair-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('assets/fonts/playfair-lat.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; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url('assets/fonts/playfair-italic-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url('assets/fonts/playfair-italic-lat.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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('assets/fonts/manrope-cyr.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 800; font-display: swap; src: url('assets/fonts/manrope-lat.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; }

:root {
  color-scheme: light;
  --paper: #fbf6f2;
  --paper-2: #f3ddd4;
  --ink: #2a211d;
  --mocha: #3d322c;
  --rose: #d4a997;
  --rose-deep: #a9785f;
  --dust: #c7b8b1;
  --muted: #6b5f58;
  --line: rgba(61, 50, 44, .16);
  --on-dark: #f6efe9;
  --on-dark-muted: rgba(246, 239, 233, .7);
  --on-dark-line: rgba(246, 239, 233, .2);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --bleed: max(var(--gutter), calc((100% - var(--max)) / 2));
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --credit-a: #a9785f;
  --credit-b: #3d322c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #211a17;
    --paper-2: #2d2420;
    --ink: #f3eae3;
    --mocha: #2b221e;
    --dust: #7d6d65;
    --muted: #b3a39a;
    --line: rgba(243, 234, 227, .16);
    --credit-a: #d4a997;
    --credit-b: #f3ddd4;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #211a17; --paper-2: #2d2420; --ink: #f3eae3; --mocha: #2b221e; --dust: #7d6d65; --muted: #b3a39a;
  --line: rgba(243, 234, 227, .16); --credit-a: #d4a997; --credit-b: #f3ddd4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }
h2 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--rose); color: #2a211d; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Кнопки: пилюля */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--rose-deep); color: #fff; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: #2a211d; }
.btn-light:hover { background: var(--rose); }
.btn-ghost { color: var(--on-dark); padding: 0 6px; }
.btn-ghost:hover .ico { transform: translateX(4px); }
.btn-ghost .ico { transition: transform .3s var(--ease); }
.round { display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.round:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.round:disabled { opacity: .35; cursor: default; }
.round:disabled:hover { background: transparent; color: inherit; border-color: var(--line); }
.round-light { color: var(--on-dark); border-color: rgba(246, 239, 233, .35); }
.round-light:hover { background: var(--on-dark); color: #2a211d; border-color: var(--on-dark); }

/* Шапка */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); color: var(--on-dark); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.site-header.is-solid, .site-header.is-menu { background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 400 20px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.brand-spark { width: 16px; height: 16px; color: var(--rose); }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-end { display: flex; justify-content: end; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.burger svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.burger .burger-close, .burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: block; }

.menu { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: var(--paper); color: var(--ink); }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font: 400 clamp(40px, 10vw, 64px)/1.15 var(--serif); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.menu-foot a:first-child { font-size: 16px; }
body.menu-open { overflow: hidden; }

/* Первый экран */
.hero { position: relative; min-height: min(100dvh, 1080px); display: grid; align-items: end; padding: calc(var(--header-h) + 24px) var(--gutter) clamp(32px, 6vh, 64px); color: var(--on-dark); overflow: clip; isolation: isolate; background: #5b473c; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 38%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42, 33, 29, .82) 0%, rgba(42, 33, 29, .34) 42%, rgba(42, 33, 29, .08) 70%, rgba(42, 33, 29, .22) 100%); }
.hero-grid { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: end; }
.hero-name { font-size: clamp(60px, 11.4vw, 184px); line-height: .92; letter-spacing: -.02em; }
.hero-name .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-name .line > span { display: block; }
.hero-side { display: grid; gap: 28px; padding-bottom: .4em; }
.hero-sub { max-width: 34ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--on-dark); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
html.js .hero-name .line > span { transform: translateY(112%); }
html.js .hero-side { opacity: 0; transform: translateY(18px); }
html.js .hero-media { transform: scale(1.06); }
html.js.is-ready .hero-name .line > span { animation: rise 1s var(--ease) forwards; }
html.js.is-ready .hero-name .line:nth-child(2) > span { animation-delay: .12s; }
html.js.is-ready .hero-side { animation: fade-up .9s var(--ease) .45s forwards; }
html.js.is-ready .hero-media { animation: settle 1.8s var(--ease) forwards; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes settle { to { transform: none; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-img { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes drift { to { transform: translateY(16%); } }
  }
}

/* Параметры (comp card) */
.specs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.spec { padding: 30px 0 28px 22px; border-left: 1px solid var(--line); }
.spec:first-child { padding-left: 0; border-left: 0; }
.spec dd { margin: 0; font: 400 clamp(26px, 2.5vw, 40px)/1 var(--serif); letter-spacing: -.01em; }
.spec dd small { font-size: .5em; color: var(--muted); font-family: var(--sans); }
.spec dt { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Обо мне: тёмный блок */
.about { background: var(--mocha); color: var(--on-dark); padding: clamp(80px, 12vw, 160px) var(--gutter); }
.about-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.about h2 { max-width: 11ch; }
.about-lead { margin-top: 40px; font-size: 15px; color: var(--on-dark-muted); }
.dirs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.dirs li { padding: 16px 0; border-top: 1px solid var(--on-dark-line); font: italic 400 clamp(26px, 2.6vw, 40px)/1.2 var(--serif); }
.collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 24px; align-items: start; }
.collage figure { overflow: hidden; background: #4a3d36; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage figure:hover img { transform: scale(1.03); }
.collage .c1 { grid-column: 1; grid-row: 1 / 3; aspect-ratio: 970 / 1380; }
.collage .c3 { grid-column: 2; grid-row: 1; aspect-ratio: 772 / 616; margin-top: 14%; }
.collage .c2 { grid-column: 2; grid-row: 2; aspect-ratio: 728 / 610; margin-left: -30%; margin-top: 4%; z-index: 2; box-shadow: 0 30px 60px rgba(20, 14, 12, .4); }

/* Портфолио */
.portfolio { padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 12vw, 160px); }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: inline-flex; align-items: center; gap: .18em; white-space: nowrap; font: italic 400 clamp(72px, 11vw, 168px)/1.05 var(--serif); color: var(--dust); padding-right: .18em; }
.marquee-group .spark { width: .34em; height: .34em; color: var(--rose); }
@keyframes marquee { to { transform: translateX(-50%); } }
.section-head { margin: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); max-width: 60ch; }
.section-head p { margin-top: 20px; font-size: 18px; color: var(--muted); }
.shots { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 40px); align-items: start; }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); overflow: hidden; cursor: zoom-in; }
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.shot:hover img, .slide:hover img { transform: scale(1.035); }
.shot-1 { grid-column: 1 / 6; }
.shot-2 { grid-column: 6 / 10; margin-top: 14%; }
.shot-3 { grid-column: 10 / 13; margin-top: 34%; }
.shot-4 { grid-column: 1 / 5; margin-top: -6%; }
.shot-5 { grid-column: 5 / 10; margin-top: 10%; }
.shot-6 { grid-column: 10 / 13; margin-top: 30%; }
.shots .spark { position: absolute; width: clamp(40px, 6vw, 96px); height: clamp(40px, 6vw, 96px); color: var(--ink); pointer-events: none; }
.shots .spark-a { left: 2%; top: 60%; }
.shots .spark-b { right: 4%; top: 36%; color: var(--rose); }

/* Избранные съёмки: лента */
.works { background: var(--paper-2); padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 140px); }
.works-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.works-controls { display: flex; align-items: center; gap: 12px; }
.works-counter { display: inline-flex; gap: 8px; margin-right: 12px; font: 400 22px/1 var(--serif); font-variant-numeric: tabular-nums; }
.works-total { color: var(--muted); }
.track { display: flex; gap: clamp(12px, 2vw, 28px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 var(--bleed) 8px; scroll-padding-inline: var(--bleed); scrollbar-width: none; cursor: grab; }
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.track.is-dragging .slide { pointer-events: none; }
.slide { flex: 0 0 clamp(240px, 26vw, 400px); aspect-ratio: 3 / 4; padding: 0; border: 0; background: var(--dust); overflow: hidden; scroll-snap-align: start; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

/* Сотрудничество */
.contact { padding: clamp(80px, 12vw, 160px) var(--gutter); }
.contact-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.contact-lead { margin-top: 24px; max-width: 46ch; font-size: 18px; color: var(--muted); }
.form { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 28px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.field .optional { font-weight: 400; color: var(--muted); }
.field .optional::before { content: "("; } .field .optional::after { content: ")"; }
.field input, .field textarea { width: 100%; padding: 12px 0 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: 400 18px/1.4 var(--sans); transition: border-color .3s var(--ease); }
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.is-invalid input { border-bottom-color: #b3372f; }
.field-error { font-size: 14px; color: #b3372f; }
.field-error[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note a { color: inherit; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-check { gap: 10px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 15px; line-height: 1.45; color: var(--ink); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--muted); background: transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.check-box .ico { width: 16px; height: 16px; opacity: 0; stroke-width: 2; color: var(--paper); transition: opacity .2s var(--ease); }
.check input:checked + .check-box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check-box .ico { opacity: 1; }
.check input:focus-visible + .check-box { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.field-check.is-invalid .check-box { border-color: #b3372f; }
.check a { color: inherit; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { max-width: var(--max); margin: 20px auto 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover, .footer-legal .link-btn:hover { color: var(--ink); }
.footer-legal [hidden] { display: none; }

/* Панель cookie: внизу, не перекрывает контент целиком, равноценные кнопки */
.cookie-panel { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; padding: 24px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(20, 14, 12, .22); }
.cookie-panel[hidden] { display: none; }
.cookie-title { font: 400 24px/1.1 var(--serif); }
.cookie-text { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie-text a { color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie-actions .btn { min-height: 46px; padding: 0 20px; font-size: 14px; }

/* Страницы документов (политика, согласие, cookie) */
.doc { padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) var(--gutter) clamp(72px, 10vw, 140px); }
.doc-inner { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; }
.doc-meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.doc-note { margin-top: 28px; padding: 18px 22px; background: var(--paper-2); font-size: 15px; line-height: 1.5; }
.doc h2 { margin-top: 40px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.doc p, .doc li { margin-top: 14px; font-size: 16px; line-height: 1.6; }
.doc ul { padding-left: 22px; }
.doc a { color: inherit; text-underline-offset: 3px; }
.doc code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.doc-actions-note { margin: 0; font-size: 14px; color: var(--muted); }
.doc-table-wrap { margin-top: 18px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.doc th, .doc td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--muted); font-size: 13px; }
.doc td small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.requisites { margin-top: 18px; }
.requisites > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--muted); font-size: 14px; line-height: 1.6; }
.requisites dd { margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.requisites-number { font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
  .requisites > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc td { padding: 4px 0; border: 0; }
  .doc td:empty { display: none; }
  .doc td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
}
.contact-aside { display: grid; gap: 28px; }
.contact-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.contact-links { display: grid; gap: 14px; }
.contact-link { display: inline-flex; align-items: center; gap: 14px; width: fit-content; font: 400 clamp(22px, 2vw, 30px)/1.2 var(--serif); text-decoration: none; }
.contact-link .ico { width: 24px; height: 24px; color: var(--rose-deep); }
.contact-link span { border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.contact-link:hover span { border-bottom-color: currentColor; }
.contact-link sup { font-size: .5em; color: var(--muted); }

/* Подвал */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) var(--gutter) 28px; }
.wordmark { display: block; width: 100%; max-width: var(--max); margin: 0 auto; height: auto; font: 400 214px var(--serif); fill: var(--ink); }
.footer-row { max-width: var(--max); margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-size: 14px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.credit { font-weight: 600; text-decoration: none; background: linear-gradient(105deg, var(--credit-a) 0%, var(--credit-b) 50%, var(--credit-a) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: brand-flow 5s ease-in-out infinite; }
@keyframes brand-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.footnote { max-width: var(--max); margin: 24px auto 0; font-size: 12px; color: var(--muted); }

/* Появление блоков */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; width: 100%; max-width: 100vw; height: 100%; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-dark); }
.lightbox::backdrop { background: rgba(26, 19, 16, .94); }
.lightbox[open] { display: block; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 84px clamp(16px, 8vw, 120px); }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.lb-close { position: absolute; top: 20px; right: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-counter { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font: 400 18px/1 var(--serif); font-variant-numeric: tabular-nums; }

.notice { width: min(92vw, 480px); margin: auto; padding: 40px; border: 0; background: var(--paper); color: var(--ink); }
.notice::backdrop { background: rgba(26, 19, 16, .6); }
.notice h2 { font-size: 32px; }
.notice p { margin-top: 16px; color: var(--muted); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Адаптив */
@media (max-width: 1100px) {
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .burger { display: inline-grid; place-items: center; }
  .header-end .btn { display: none; }
}
@media (max-width: 1023.98px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-copy { position: static; }
  .collage { max-width: 760px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-1, .shot-2, .shot-3, .shot-4, .shot-5, .shot-6 { grid-column: auto; margin-top: 0; }
  .shot:nth-child(even) { margin-top: 12%; }
  .shots .spark-a { left: auto; right: 6%; top: 30%; }
  .shots .spark-b { right: auto; left: 4%; top: 64%; }
  .contact-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}
@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 40px; min-height: min(100dvh, 860px); }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-name { font-size: clamp(56px, 17vw, 96px); }
  .hero-side { padding-bottom: 0; }
  .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding-top: 8px; padding-bottom: 8px; }
  .spec { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .spec:nth-child(-n + 2) { border-top: 0; }
  .spec dd { font-size: 28px; }
  .dirs { grid-template-columns: 1fr; }
  .collage { grid-template-columns: 1fr 1fr; }
  .collage .c1 { grid-column: 1 / 3; grid-row: 1; }
  .collage .c3 { grid-column: 1; grid-row: 2; margin-top: 0; }
  .collage .c2 { grid-column: 2; grid-row: 2; margin: 0; box-shadow: none; }
  .shots { grid-template-columns: 1fr; }
  .shot:nth-child(even) { margin-top: 0; }
  .shots .spark { display: none; }
  .slide { flex-basis: 78vw; }
  .works-counter { margin-right: 4px; }
  .contact-aside { grid-template-columns: 1fr; }
  .contact-photo { aspect-ratio: 4 / 5; }
  .lb-stage { padding: 72px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-counter { bottom: 34px; }
  .notice { padding: 28px 24px; }
}
@media (max-width: 380px) {
  .btn { padding: 0 20px; }
  .hero-name { font-size: 54px; }
}

/* Уменьшить движение и без JS */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero-name .line > span, html.js .hero-side, html.js .hero-media { transform: none; opacity: 1; animation: none; }
  .marquee-track, .credit { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .shot img, .slide img, .collage img, .btn, .btn-ghost .ico { transition: none; }
  .shot:hover img, .slide:hover img, .collage figure:hover img { transform: none; }
}
@media (forced-colors: active) {
  .credit { color: LinkText; background: none; -webkit-text-fill-color: LinkText; }
  .btn-solid, .btn-outline, .btn-light { border: 1px solid ButtonText; }
}
