/* Z2 ARCHIVE. Все настройки внешнего вида здесь; внешних шрифтов и библиотек нет. */
:root {
  /* Палитра: вечерний асфальт, тёплая бумага, янтарный свет. */
  --bg: #111a1d; --bg-deep: #0d1417; --paper: #e9e5dc; --ink: #182227;
  --text: #eeeae1; --muted: #abb6b6; --line: #ffffff20; --accent: #d6b075;
  --gutter: clamp(24px, 4.2vw, 80px); --max: 1580px;
  --font: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.has-lightbox { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button,a,input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
img { display: block; width: 100%; }
figure,p,h1,h2,h3 { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 50; background: var(--paper); color: var(--ink); padding: 16px; }
.skip-link:focus { top: 16px; }
.eyebrow,.micro { font-family: var(--font); font-size: 11px; font-weight: 500; letter-spacing: .16em; line-height: 1.5; }
.micro { color: var(--muted); font-size: 10px; }
.little-line { width: 24px; height: 1px; display: inline-block; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.site-header { position: absolute; z-index: 10; left: 0; right: 0; top: 0; min-height: 100px; padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #ffffff26; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-symbol { display: inline-flex; align-items: center; gap: 1px; font-style: italic; font-size: 29px; font-weight: 700; letter-spacing: -.14em; width: 47px; height: 43px; border: 1px solid #a8b2b57a; padding: 0 8px 0 5px; }
.brand-symbol span { font-size: 23px; margin-top: 5px; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .17em; }
.brand-name small { display: block; color: #c6cccb; font-size: 7px; font-weight: 400; letter-spacing: .24em; margin-top: 7px; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.main-nav a { font-size: 12px; color: #e5e8e2; transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.main-nav a span { padding-left: 7px; }
.menu-toggle { display: none; }
/* Первый экран: кадр остаётся главным. Текст находится выше автомобиля. */
.hero { min-height: 770px; height: min(900px, 100svh); position: relative; isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 64%; z-index: -3; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #07101088 0%, #0b181422 45%, transparent 64%, #091213af 100%), linear-gradient(90deg, #07131344, transparent 74%); }
.hero-copy { padding: clamp(150px, 17vh, 180px) var(--gutter) 0; }
.hero-copy .eyebrow { color: #eeeae1; font-size: 10px; }
.hero-title-row { display: flex; align-items: center; gap: 32px; margin: 14px 0 16px; }
h1 { font-size: clamp(90px, 12.2vw, 188px); font-weight: 800; letter-spacing: -.065em; line-height: .94; }
.series-mark { border-left: 1px solid #ffffff52; padding-left: 26px; margin-top: 8px; font-size: clamp(30px, 3vw, 45px); font-weight: 400; letter-spacing: -.05em; }
.series-mark span { display: block; margin-top: 10px; font-size: 8px; letter-spacing: .17em; line-height: 1.6; }
.hero-description { font-size: 14px; line-height: 1.9; color: #e7ece8; white-space: pre-line; text-shadow: 0 1px 10px #0008; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 23px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 36px; padding: 0 21px; font-size: 11px; font-weight: 600; transition: background .2s,transform .2s; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #fffaf0; transform: translateY(-2px); }
.text-link { display: inline-flex; gap: 26px; align-items: center; width: fit-content; padding: 9px 0; border: 0; border-bottom: 1px solid #cfd7d07a; background: transparent; font-size: 11px; }
.text-link:hover { color: var(--accent); }
.hero-footer { position: absolute; bottom: 0; left: 0; right: 0; padding: 26px var(--gutter); display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.index-number { color: var(--accent); margin-right: 16px; font-size: 10px; }
.hero-footer>a { letter-spacing: .14em; font-size: 8px; display: flex; align-items: center; gap: 24px; }
.scroll-arrow { font-size: 23px; }
/* Фотогалерея: настоящие изображения; заглушка природы подписана. */
.section-shell { max-width: var(--max); margin: 0 auto; padding: 90px var(--gutter); }
.section-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-topline .eyebrow { color: var(--accent); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 55px; margin-top: 31px; }
h2 { font-size: clamp(32px, 3.8vw, 59px); line-height: 1.13; letter-spacing: -.047em; font-weight: 400; }
.muted { color: var(--muted); }
.section-heading>p { max-width: 350px; color: var(--muted); font-size: 12px; line-height: 1.9; padding-bottom: 4px; }
.gallery-filters { display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); margin: 37px 0 28px; }
.filter { border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 13px 0 17px; margin-bottom: -1px; color: var(--muted); font-size: 11px; }
.filter span { font-size: 8px; vertical-align: top; padding-left: 7px; }
.filter.is-active { color: var(--text); border-bottom-color: var(--accent); }
.filter:hover { color: var(--text); }
/* Без JS показываем все кадры и не предлагаем неработающие фильтры. */
body:not(.js) .gallery-filters,body:not(.js) .manual-search { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.photo-card:first-child { grid-column: span 2; }
.photo-link { display: block; overflow: hidden; position: relative; background: #1d282c; }
.photo-link img { height: 310px; object-fit: cover; object-position: center 85%; transition: transform .65s ease,filter .3s ease; }
.photo-link:hover img { transform: scale(1.025); filter: brightness(1.06); }
.photo-open { position: absolute; top: 16px; right: 16px; background: #111a1dbb; border: 1px solid #ffffff44; width: 31px; height: 31px; display: grid; place-items: center; font-size: 15px; }
.photo-caption { display: flex; gap: 12px; justify-content: space-between; padding-top: 17px; }
.photo-caption h3 { font-size: 13px; font-weight: 400; line-height: 1.5; }
.photo-caption p { font-size: 10px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
/* Дата из каталога: публичен только день, не время/GPS исходника. */
.photo-caption .photo-date { font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .04em; margin-top: 9px; }
.photo-date time { color: var(--accent); }
.photo-caption>span { font-size: 10px; color: var(--accent); margin-top: 3px; }
.nature-teaser { position: relative; background: #182327; min-height: 310px; height: 310px; overflow: hidden; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.contours { position: absolute; z-index: -1; inset: -65% -145% -45% -45%; opacity: .17; transform: rotate(-28deg); background: repeating-radial-gradient(ellipse at center, transparent 0 28px, #8c9d88 29px 30px, transparent 31px 51px); }
.nature-teaser .eyebrow { color: var(--accent); font-size: 9px; }
.nature-teaser h3 { font-size: 32px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.nature-teaser p { font-size: 11px; color: #c0c8c5; line-height: 1.7; margin-top: 12px; max-width: 205px; }
.teaser-count { font-size: 8px; color: var(--muted); letter-spacing: .15em; }
.gallery-empty { padding: 44px 32px; border: 1px solid var(--line); background: #172226; }
.gallery-empty .eyebrow { color: var(--accent); }
.gallery-empty h3 { font-size: 32px; font-weight: 400; margin: 15px 0; letter-spacing: -.03em; }
.gallery-empty p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
/* Светлая глава о машине — визуальная пауза между тёмными разделами. */
.garage { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); color: var(--ink); }
.garage-copy { padding: 70px 60px 70px var(--gutter); }
.garage .eyebrow { color: #68644f; }
.garage h2 { font-size: clamp(32px, 3.1vw, 49px); margin-top: 26px; }
.garage-intro { font-size: 13px; line-height: 1.8; margin-top: 25px; }
.garage-body { color: #56615f; font-size: 12px; line-height: 1.9; margin-top: 17px; max-width: 450px; }
.garage-specs { border-top: 1px solid #26393226; margin: 27px 0 17px; }
.garage-specs>div { padding: 13px 0; display: flex; gap: 18px; justify-content: space-between; border-bottom: 1px solid #26393226; font-size: 11px; }
.garage-specs dt { color: #59615d; }
.garage-specs dd { margin: 0; text-align: right; }
.dark-link { border-color: #18222766; }
.dark-link:hover { color: #796031; }
.garage-figure { display: flex; flex-direction: column; padding: 37px 37px 23px 0; min-width: 0; }
.garage-image { position: relative; overflow: hidden; flex: 1; min-height: 350px; }
.garage-image img { position: absolute; width: 245%; max-width: none; height: 140%; object-fit: cover; object-position: center; bottom: 25%; right: -5%; }
.garage-stamp { position: absolute; top: 27px; right: 28px; font-size: 55px; font-weight: 700; line-height: 1; color: var(--paper); text-shadow: 0 1px 15px #0006; }
.garage-stamp span { display: block; font-size: 8px; letter-spacing: .16em; line-height: 1.5; margin-top: 10px; font-weight: 400; }
.garage-figure figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 16px; font-size: 8px; line-height: 1.6; letter-spacing: .07em; color: #53615b; }
.garage-figure figcaption span:last-child { letter-spacing: 0; }
/* Библиотека — обычные ссылки на PDF, без браузерной загрузки на сервер. */
.library { padding-top: 92px; }
.manual-list { margin-top: 39px; border-top: 1px solid var(--line); }
.manual-row { display: grid; grid-template-columns: 50px 1fr auto; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center; }
.manual-number { color: var(--accent); font-size: 10px; }
.manual-row h3 { font-size: 17px; font-weight: 400; letter-spacing: -.02em; }
.manual-row p { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 7px; }
.manual-status { color: #c5bdab; border: 1px solid #c5bdab38; padding: 8px 10px; font-size: 9px; white-space: nowrap; }
.manual-download { color: var(--accent); font-size: 11px; white-space: nowrap; padding: 10px 0 10px 15px; }
.manual-download:hover { text-decoration: underline; }
.library-note { margin-top: 20px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.manual-search { display: block; margin-top: 28px; font-size: 10px; color: var(--muted); }
.manual-search input { display: block; margin-top: 10px; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 0; width: 100%; padding: 15px; font-size: 13px; }
.manual-empty { margin-top: 20px; font-size: 13px; color: var(--muted); }
.about { background: #172125; max-width: none; padding-top: 61px; padding-bottom: 67px; border-top: 1px solid var(--line); }
.about>.eyebrow { color: var(--accent); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin-top: 28px; align-items: center; }
.about-content h2 { font-size: clamp(32px,3.3vw,49px); }
.about-content p { color: #c0c9c8; font-size: 13px; line-height: 2; max-width: 500px; }
.about-signature { display: inline-block; margin-top: 21px; font-size: 11px; color: var(--accent); }
.site-footer { padding: 30px var(--gutter); min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: var(--bg-deep); }
.footer-brand .brand-symbol { width: 37px; height: 35px; font-size: 24px; }
.footer-brand .brand-symbol span { font-size: 19px; }
.footer-brand .brand-name { font-size: 10px; }
.site-footer p { color: var(--muted); font-size: 10px; line-height: 1.9; }
.site-footer p span { color: #839194; font-size: 9px; }
.back-top { display: inline-flex; gap: 20px; align-items: center; font-size: 8px; letter-spacing: .12em; }
.back-top span { font-size: 22px; }
/* Диалог нативный: фокус остаётся внутри, Escape закрывает просмотр. */
.lightbox { width: min(1320px,95vw); max-width: none; max-height: 96svh; padding: 48px 14px 16px; background: #0c1316; color: var(--text); border: 1px solid #cbd2cf33; }
.lightbox::backdrop { background: #050a0def; }
.lightbox-image { max-height: calc(92svh - 105px); width: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 10px; right: 14px; background: none; border: none; padding: 4px 0 4px 12px; font-size: 11px; }
.lightbox-close span { font-size: 23px; margin-left: 16px; vertical-align: middle; }
.lightbox-caption { padding: 15px 7px 0; font-size: 12px; line-height: 1.7; }
.error-page { min-height: 100svh; display: grid; place-items: center; padding: 30px; }
.error-content { max-width: 600px; }
.error-content h1 { font-size: 130px; margin: 23px 0; }
.error-content p { line-height: 1.9; color: var(--muted); margin-bottom: 25px; }
@media (min-width:1800px) { .hero-photo { object-position: center 69%; } }
@media (max-width:1000px) {
  .hero { min-height: 710px; max-height: 820px; }
  .hero-copy { padding-top: 158px; }
  .main-nav { gap: 21px; }
  .main-nav a { font-size: 11px; }
  .section-heading { gap: 28px; }
  .section-heading>p { max-width: 290px; }
  .gallery-grid { gap: 18px; }
  .photo-link img,.nature-teaser { height: 270px; min-height: 270px; }
  .nature-teaser { padding: 21px; }
  .nature-teaser h3 { font-size: 27px; }
  .garage-copy { padding: 55px 32px 55px var(--gutter); }
  .garage-figure { padding: 28px 26px 23px 0; }
  .garage-figure figcaption { flex-wrap: wrap; }
}
@media (max-width:760px) {
  :root { --gutter: 24px; }
  .site-header { min-height: 81px; padding-top: 19px; padding-bottom: 19px; }
  .brand-name { font-size: 11px; }
  .brand-name small { font-size: 6px; }
  .brand-symbol { width: 42px; height: 39px; font-size: 26px; }
  .brand-symbol span { font-size: 22px; }
  .js .menu-toggle { display: flex; align-items: center; gap: 16px; background: none; border: none; font-size: 11px; padding: 8px 0 8px 12px; }
  .menu-toggle span { font-size: 21px; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; position: absolute; top: 80px; left: 0; right: 0; background: #111a1df5; padding: 25px; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-open a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  body:not(.js) .site-header { flex-wrap: wrap; }
  body:not(.js) .main-nav { gap: 18px; flex-wrap: wrap; }
  .hero { height: 770px; min-height: 770px; max-height: none; background: #182125; }
  /* На узком экране не обрезаем машину: показываем фотографию целиком. */
  .hero-photo { top: auto; bottom: 67px; height: auto; width: 100%; object-fit: contain; z-index: -2; }
  .hero-shade { z-index: -1; background: linear-gradient(180deg,#0c17175c 0%,transparent 66%,#0c131500 88%,#0c131799 100%); }
  .hero-copy { padding-top: 136px; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: .13em; }
  .hero-title-row { gap: 15px; margin-top: 20px; }
  h1 { font-size: clamp(62px, 15.8vw, 114px); }
  .series-mark { padding-left: 14px; font-size: 27px; margin-top: 0; }
  .series-mark span { font-size: 6px; margin-top: 5px; }
  .hero-description { font-size: 12px; line-height: 1.9; margin-top: 17px; }
  .hero-actions { gap: 22px; flex-wrap: wrap; margin-top: 21px; }
  .button { font-size: 10px; padding: 0 15px; gap: 20px; }
  .hero-actions .text-link { font-size: 10px; gap: 12px; }
  .hero-footer { padding-top: 20px; padding-bottom: 21px; font-size: 9px; }
  .hero-footer>a { font-size: 0; gap: 0; }
  .hero-footer .scroll-arrow { font-size: 24px; }
  .index-number { font-size: 8px; margin-right: 10px; }
  .section-shell { padding-top: 58px; padding-bottom: 58px; }
  .section-topline .micro { display: none; }
  .eyebrow { font-size: 9px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 24px; }
  h2 { font-size: clamp(32px,8.1vw,45px); }
  .section-heading>p { font-size: 12px; max-width: none; }
  .desktop-break { display: none; }
  .gallery-filters { gap: 21px; margin-top: 23px; margin-bottom: 22px; }
  .filter { font-size: 10px; }
  .filter span { padding-left: 4px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 30px; }
  .photo-card:first-child { grid-column: auto; }
  .photo-link img { height: auto; aspect-ratio: 1.5; object-fit: cover; }
  .photo-caption h3 { font-size: 12px; }
  .nature-teaser { height: 226px; min-height: 226px; padding: 23px; }
  .nature-teaser h3 { font-size: 30px; }
  .nature-teaser p { max-width: 235px; }
  .teaser-count { position: absolute; top: 24px; right: 22px; }
  .garage { grid-template-columns: 1fr; }
  .garage-copy { padding: 53px var(--gutter) 35px; }
  .garage h2 { font-size: 35px; margin-top: 22px; }
  .garage-figure { padding: 0 var(--gutter) 27px; }
  .garage-image { min-height: 310px; }
  .garage-image img { width: 210%; height: 150%; right: 0; bottom: 5%; }
  .garage-stamp { top: 22px; right: 22px; }
  .garage-figure figcaption { font-size: 7px; }
  .manual-row { grid-template-columns: 22px 1fr; gap: 12px; padding: 23px 0; }
  .manual-row h3 { font-size: 16px; }
  .manual-status,.manual-download { grid-column: 2; justify-self: start; font-size: 9px; }
  .manual-download { padding-left: 0; }
  .manual-row p { font-size: 10px; }
  .library-note { font-size: 10px; }
  .about-content { grid-template-columns: 1fr; gap: 23px; }
  .about-content h2 { font-size: 35px; }
  .about-content p { font-size: 12px; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; padding-top: 25px; padding-bottom: 25px; gap: 23px; }
  .site-footer p { grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 1; }
  .lightbox { width: 98vw; padding: 47px 8px 12px; }
  .lightbox-caption { font-size: 10px; }
}
@media (max-width:380px) {
  :root { --gutter: 19px; }
  .hero { height: 760px; min-height: 760px; }
  .series-mark { padding-left: 10px; }
  .hero-actions { gap: 13px; }
  .hero-description { font-size: 11px; }
  .gallery-filters { gap: 16px; }
  .filter { font-size: 9px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; animation: none !important; }
}

/* 0.3: отдельная печатная коллекция и авторская история. Без внешних ресурсов. */
.catalogs { border-top: 1px solid var(--line, #334044); }
.catalog-empty { padding: 36px 0; }
.catalog-empty h3 { margin: 14px 0 10px; font-size: clamp(25px, 3vw, 40px); }
.catalog-empty p { color: var(--muted, #9ca8aa); }
.story { border-top: 1px solid var(--line, #334044); }
.story-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 100px); align-items: start; }
.story-heading h2 { font-size: clamp(32px, 4vw, 62px); line-height: 1.08; margin: 0 0 25px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.story-intro { color: var(--muted, #9ca8aa); font-size: 18px; line-height: 1.7; }
.story-body { max-width: 720px; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.story-body p { margin: 0 0 24px; }
.story-body h3 { margin: 40px 0 18px; font-size: 26px; line-height: 1.3; }
.story-body h3:first-child { margin-top: 0; }
.story-body h4 { margin: 30px 0 12px; font-size: 20px; }
[data-edit="about"], .manual-row p { white-space: pre-line; }
@media (min-width: 1081px) { .main-nav { gap: clamp(12px, 1.65vw, 25px); } }
@media (max-width: 1080px) { .story-layout { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .story-body { font-size: 16px; } }
