/* ArtPauls — видоискатель, EXIF и сигнальный оранжевый */

/* Geologica (OFL), кириллица и латиница, оси: насыщенность 300–800 и острота SHRP 0–100 */
@font-face {
  font-family: "Geologica AP";
  src: url("../fonts/geologica.woff") format("woff");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --fog: #F4F6F9;        /* светлый фон под фото */
  --white: #FFFFFF;      /* светлые плашки */
  --ink: #0D1B30;        /* текст: глубокий тёмно-синий */
  --graphite: #5B6678;   /* второстепенный текст */
  --rule: #D5DCE6;       /* линии */
  --signal: #FF5A1F;     /* фокус, акцент */
  --on-dark: #AEBBD0;    /* текст на синем */
  --navy-950: #070F1C;   /* видоискатель */
  --navy-900: #0B1628;   /* основной синий */
  --navy-800: #10233F;
  --line-dark: rgba(255, 255, 255, 0.1);

  --f: "Geologica AP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font: 400 17px/1.6 var(--f);
  font-variation-settings: "SHRP" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 700; }

.display, h1, h2 {
  font-variation-settings: "SHRP" 100;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(46px, 7.4vw, 120px); line-height: 0.94; }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "SHRP" 60; }

.num { font-variant-numeric: tabular-nums; font-variation-settings: "SHRP" 60; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(72px, 9vw, 136px); padding-bottom: clamp(72px, 9vw, 136px); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head p { color: var(--graphite); margin: 0; }

.dark { background: var(--ink); color: var(--fog); }
.dark p { color: var(--on-dark); }

/* ---------- Подсказки ---------- */

.hints-bar {
  background: var(--signal);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  padding: 10px var(--gutter);
}
.hints-bar b { font-weight: 600; }

.slot-text {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--on-dark);
  word-break: break-word;
}
.slot-text b { display: block; color: var(--fog); font-weight: 600; }

.hint-value {
  display: inline-block;
  border: 1px dashed currentColor;
  padding: 2px 0.5em;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: middle;
  opacity: 0.75;
  white-space: nowrap;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(236, 237, 238, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.wordmark {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  font-variation-settings: "SHRP" 100;
  text-decoration: none;
  margin-right: auto;
}
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  font-size: 15px;
  text-decoration: none;
  color: var(--graphite);
  padding: 6px 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 15px/1 var(--f);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--ink); color: var(--fog); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--fog); }
.dark .btn-line { border-color: var(--fog); color: var(--fog); }
.dark .btn-line:hover { background: var(--fog); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Первый экран ---------- */

.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); }

.hero-home .hero-top { margin-bottom: clamp(32px, 4vw, 56px); }
.hero-home h1 { font-size: clamp(44px, 8vw, 124px); margin-bottom: clamp(24px, 3vw, 40px); }
.hero-home .hero-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 48px;
}
.hero-home .hero-sub .hero-lead { max-width: 54ch; margin: 0; }
.hero-lead { font-size: 18px; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-landing {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-landing h1 { font-size: clamp(42px, 6.2vw, 96px); margin-bottom: 24px; }
.hero-landing .hero-lead { max-width: 46ch; margin-bottom: 28px; }

.areas {
  font-size: 15px;
  color: var(--graphite);
  margin-top: 20px;
}

/* ключевые цифры под заголовком посадочной */
.keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  margin-bottom: 32px;
}
.keys > div { padding: 14px 16px 0 0; }
.keys dt { font-size: 13px; color: var(--graphite); }
.keys dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; line-height: 1.25; }

/* ---------- Видоискатель ---------- */

.vf { position: relative; background: var(--ink); color: #fff; }
.vf-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(120% 90% at 30% 35%, #4A4F54, #1E2124 70%);
}
.vf-portrait .vf-frame { aspect-ratio: 4 / 5; }

.vf-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.vf-img.on { opacity: 1; }

.vf-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(33.333% - 0.5px), rgba(255,255,255,0.16) calc(33.333% - 0.5px) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px) calc(66.666% - 0.5px), rgba(255,255,255,0.16) calc(66.666% - 0.5px) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(180deg, transparent calc(33.333% - 0.5px), rgba(255,255,255,0.16) calc(33.333% - 0.5px) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px) calc(66.666% - 0.5px), rgba(255,255,255,0.16) calc(66.666% - 0.5px) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}

.vf-corner { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(255,255,255,0.9); pointer-events: none; }
.vf-corner.tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.vf-corner.tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.vf-corner.bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.vf-corner.br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }

.vf-top {
  position: absolute;
  top: 22px;
  left: 56px;
  right: 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65), 0 0 14px rgba(0,0,0,0.45);
  pointer-events: none;
}

.vf-focus {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 46%);
  width: clamp(64px, 11%, 128px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.vf-focus i { position: absolute; width: 22%; height: 22%; border: 0 solid #fff; transition: border-color 0.1s; }
.vf-focus i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-focus i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-focus i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-focus i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf.locked .vf-focus i { border-color: var(--signal); }

.vf.hunting .vf-focus { animation: hunt 0.75s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.vf.locked .vf-focus { animation: lock 0.32s steps(2, end) 1; }
@keyframes hunt {
  0% { transform: translate(-50%, -50%) scale(1.9); opacity: 0.35; }
  55% { transform: translate(-50%, -50%) scale(0.92); opacity: 1; }
  75% { transform: translate(-50%, -50%) scale(1.04); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes lock { 50% { opacity: 0.2; } }

.vf-slot {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  width: min(320px, 80%);
  text-align: center;
}

.vf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 28px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--on-dark);
  border-top: 1px solid #2A2D30;
}
.vf-bar .af { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.vf-bar .af::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #555; transition: background 0.15s; }
.vf.locked .vf-bar .af::before { background: var(--signal); }
.vf-bar .exif { display: flex; gap: 22px; flex-wrap: wrap; }
.vf-bar .exif b { color: #fff; font-weight: 500; }
.vf-bar .exif[hidden] { display: none; }
.vf-bar .vf-link { margin-left: auto; color: #fff; text-decoration-color: var(--signal); text-underline-offset: 4px; }

.vf-tabs {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #2A2D30;
}
.vf-tab {
  flex: 1 1 0;
  min-width: 140px;
  background: none;
  border: 0;
  border-right: 1px solid #2A2D30;
  color: var(--on-dark);
  font: 500 15px/1.2 var(--f);
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
}
.vf-tab:last-child { border-right: 0; }
.vf-tab:hover { color: #fff; }
.vf-tab[aria-selected="true"] { color: #fff; box-shadow: inset 0 3px 0 var(--signal); }

/* ---------- Направления (главная) ---------- */

.dir-list { border-top: 1px solid var(--ink); }
.dir {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: 20px 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.dir h3 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "SHRP" 100;
}
.dir h3 a { text-decoration: none; }
.dir h3 a::after { content: ""; position: absolute; inset: 0; }
.dir p { margin: 0 0 8px; color: var(--graphite); }
.dir .from { font-size: 15px; font-weight: 600; }
.dir:hover h3 { color: var(--signal); }

/* Лента фото у направления: на компьютере листается стрелками, на телефоне свайпом */
.thumbs-wrap { position: relative; z-index: 1; min-width: 0; }
.thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 16px) / 3);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  scroll-snap-align: start;
  background: radial-gradient(120% 90% at 30% 30%, #A9AEB2, #6E7378 75%);
  -webkit-user-drag: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-select: none; }
.thumb-more {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.thumb-more .tm-count { font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.thumb-more .tm-go { font-size: 13px; font-weight: 600; color: var(--signal); }
.thumb-more:hover .tm-go, .thumb-more:focus-visible .tm-go { text-decoration: underline; }

.th-nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: 400 26px/1 var(--f);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  transition: opacity .2s, background .2s, color .2s;
}
.th-nav.prev { left: -14px; }
.th-nav.next { right: -14px; }
.th-nav:hover:not(:disabled) { background: var(--signal); border-color: var(--signal); }
.th-nav:disabled { opacity: 0; pointer-events: none; }
.th-nav:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .thumbs-wrap.scrollable .th-nav { display: flex; }
}
/* На телефоне видно край следующего кадра — понятно, что ленту можно листать */
@media (hover: none) {
  .thumbs { grid-auto-columns: calc((100% - 16px) / 2.6); }
}

/* ---------- Списки задач ---------- */

.tasks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.tasks li {
  padding: 24px 32px 28px 0;
  border-bottom: 1px solid var(--rule);
}
.tasks li:nth-child(odd) { border-right: 1px solid var(--rule); }
.tasks li:nth-child(even) { padding-left: 32px; }
.tasks h3 { margin-bottom: 8px; }
.tasks p { color: var(--graphite); margin: 0; }

/* ---------- Галерея ---------- */

.gallery { display: flex; gap: 12px; align-items: flex-start; }
.gcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.shot { margin: 0; position: relative; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: #D5D8DA; cursor: zoom-in; }
.shot-btn img { width: 100%; height: auto; }
.shot .slot {
  position: relative;
  aspect-ratio: 4 / 5;
  background: radial-gradient(120% 90% at 30% 30%, #3E4246, #1E2124 75%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.shot:nth-child(3n+2) .slot { aspect-ratio: 3 / 2; }
.shot .slot::before, .shot .slot::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid rgba(255,255,255,0.7);
}
.shot .slot::before { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.shot .slot::after { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }

/* ---------- Цены ---------- */

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pkg {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 28px 28px 24px;
  border-top: 3px solid var(--ink);
}
.pkg.featured { border-top-color: var(--signal); }
.pkg .tag { font-size: 13px; line-height: 18px; height: 18px; color: var(--signal); font-weight: 600; margin-bottom: 6px; }
.pkg h3 { margin-bottom: 18px; }
.pkg .price { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.03em; font-variation-settings: "SHRP" 100; margin-bottom: 20px; line-height: 1.1; }
.pkg ul { margin-bottom: 28px; }
.pkg li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
.pkg .btn { margin-top: auto; align-self: flex-start; }
.price-note { color: var(--graphite); font-size: 15px; margin-top: 20px; }

/* ---------- Шаги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 1px solid currentColor; padding-top: 16px; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--signal);
  font-weight: 600;
  margin-bottom: 18px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 15px; margin: 0; }

/* ---------- География ---------- */

.geo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.geo li { background: var(--white); padding: 24px 24px 28px; }
.geo .coords { font-size: 13px; color: var(--graphite); margin-bottom: 36px; display: block; }
.geo h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; font-variation-settings: "SHRP" 100; margin-bottom: 8px; }
.geo p { color: var(--graphite); margin: 0; font-size: 15px; }

/* ---------- Об авторе ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-photo { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(120% 90% at 30% 30%, #3E4246, #1E2124 75%); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.about-photo .slot-wrap { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.about h2 { margin-bottom: 28px; }
.about p { font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.facts li { border-top: 1px solid #3A3D40; padding-top: 14px; }
.facts b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variation-settings: "SHRP" 100; color: #fff; line-height: 1.1; margin-bottom: 6px; }
.facts span { font-size: 14px; color: var(--on-dark); }

/* ---------- Вопросы ---------- */

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--signal); }
.faq details p { color: var(--graphite); padding-bottom: 22px; margin: 0; }

/* ---------- Контакты ---------- */

.cta h2 { font-size: clamp(40px, 6.4vw, 96px); line-height: 0.96; margin-bottom: 24px; max-width: 14ch; }
.cta-lead { font-size: 18px; margin-bottom: 36px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-list .slot-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px dashed #55595D;
  border-radius: 999px;
  font-size: 14px;
  color: var(--on-dark);
}

/* ---------- Подвал ---------- */

.site-footer { background: var(--ink); color: var(--on-dark); border-top: 1px solid #2A2D30; font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-top: 28px; padding-bottom: 28px; }
.footer-in nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-in a { text-decoration: none; }
.footer-in a:hover { color: #fff; }
.footer-in p { margin: 0; }

/* ---------- Просмотр ---------- */

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--ink); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.lightbox::backdrop { background: var(--ink); }
.lightbox { overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.lb-figure img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 0 20px; touch-action: pan-y pinch-zoom; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto; }
.lb-figure figcaption { font-size: 14px; color: var(--on-dark); text-align: center; min-height: 20px; }
.lb-nav, .lb-close { border: 0; background: none; color: #fff; cursor: pointer; font: 300 44px/1 var(--f); width: 64px; height: 64px; }
.lb-nav:hover, .lb-close:hover { color: var(--signal); }
.lb-close { position: absolute; top: 6px; right: 6px; font-size: 36px; }

/* ---------- Адаптив ---------- */

@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dir { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dir .thumbs-wrap { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .hero-landing, .section-head, .about { grid-template-columns: minmax(0, 1fr); }
  .packages, .geo { grid-template-columns: minmax(0, 1fr); }
  .tasks { grid-template-columns: minmax(0, 1fr); }
  .tasks li, .tasks li:nth-child(even) { padding: 22px 0; border-right: 0; }
  .tasks li:nth-child(odd) { border-right: 0; }
  .about-photo { max-width: 360px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts li { padding: 14px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-in .btn { padding: 0 14px; }
  .dir { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .keys > div { padding: 12px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .keys dd { margin: 0; font-size: 17px; text-align: right; }
  .vf-top { left: 48px; right: 48px; font-size: 12px; }
  .vf-bar { padding: 12px 16px; gap: 6px 16px; font-size: 13px; }
  .vf-bar .exif { gap: 14px; }
  .vf-bar .vf-link { margin-left: 0; }
  .vf-tab { min-width: 50%; flex-basis: 50%; border-bottom: 1px solid #2A2D30; padding: 14px 16px; }
  .vf-tab:nth-child(2n) { border-right: 0; }
  .lightbox[open] { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .lb-nav { width: 40px; }
}

.nw { white-space: nowrap; }

@media (max-width: 600px) {
  .vf-frame { aspect-ratio: 4 / 5; }
  .vf-top span + span { display: none; }
}

/* ---------- История и награда (главная) ---------- */

.hero-home h1 { margin-bottom: clamp(40px, 5vw, 76px); }
.hero-story { max-width: 58ch; }

.story {
  position: relative;
  max-width: none;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  color: var(--ink);
}
/* отступ между историей и наградой (селектор сильнее общего .hero-lead) */
.hero-home .hero-sub .hero-lead.story { margin: 0 0 28px; }

.monkey {
  position: absolute;
  right: 28px;
  top: -81px;
  width: 150px;
  height: 90px;
  overflow: visible;
  pointer-events: none;
}
.mk-head { animation: peek 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) 1s both; }
.mk-eyes { animation: glance 6s ease-in-out 2.2s infinite; }
@keyframes peek { from { transform: translateY(44px); } }
@keyframes glance {
  0%, 40%, 100% { transform: translateX(0); }
  48%, 70% { transform: translateX(-3px) translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-head, .mk-eyes { animation: none; }
}

.award {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  max-width: none;
  font-size: 16px;
  line-height: 1.5;
  color: var(--graphite);
}
.trophy { flex: none; width: 44px; height: 44px; margin-top: -4px; }

@media (max-width: 600px) {
  .monkey { right: 8px; width: 120px; height: 72px; top: -65px; }
  .story { font-size: 17px; }
}

/* пометка для кадров, доработанных нейросетью */
.shot-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
}
.vf-bar .vf-ai { color: #fff; font-size: 13px; border: 1px solid #55595D; border-radius: 999px; padding: 2px 10px; }

/* ================================================================
   Тема «ночной синий»: тёмно-синий с плавным градиентом, белый текст,
   оранжевый только в акцентах. Фото стоят на светлом фоне.
   ================================================================ */

.night, .dark, .site-footer {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(80% 70% at 88% 0%, rgba(46, 92, 160, 0.42), rgba(46, 92, 160, 0) 62%),
    radial-gradient(60% 60% at 0% 100%, rgba(28, 58, 108, 0.5), rgba(28, 58, 108, 0) 66%),
    linear-gradient(165deg, #0B1628 0%, #10233F 52%, #0A1424 100%);
  color: #fff;
}
.night p, .dark p { color: var(--on-dark); }

/* шапка */
.site-header {
  background: var(--navy-900);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
}
.site-nav a { color: var(--on-dark); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }

/* кнопки на синем */
.night .btn-line, .dark .btn-line { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.night .btn-line:hover, .dark .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-header .btn-signal:hover, .night .btn-signal:hover, .dark .btn-signal:hover { background: #fff; color: var(--ink); }

/* первый экран */
.night .hero-lead, .night .areas, .night .award { color: #C3CEDF; }
.night .story { color: #EEF2F8; border-top-color: rgba(255, 255, 255, 0.28); }
.night .keys { border-top-color: rgba(255, 255, 255, 0.28); }
.night .keys dt { color: var(--on-dark); }
.night .keys dd { color: #fff; }
.night .trophy path, .night .trophy rect { stroke: #fff; }
.night .trophy rect { fill: transparent; }
.night .monkey [stroke="#000"] { stroke: var(--navy-900); }
@media (max-width: 600px) {
  .night .keys > div { border-bottom-color: rgba(255, 255, 255, 0.14); }
}

/* видоискатель */
.vf { background: var(--navy-950); }
.vf-frame { background: radial-gradient(120% 90% at 30% 35%, #2B3D5C, #0B1628 70%); }
.vf-bar, .vf-tabs { border-top-color: var(--line-dark); }
.vf-tab { border-right-color: var(--line-dark); }
.vf-bar .af::before { background: #3A4B66; }
.vf-bar .vf-ai { border-color: rgba(255, 255, 255, 0.3); }
@media (max-width: 600px) {
  .vf-tab { border-bottom-color: var(--line-dark); }
}

/* светлые блоки */
.thumb { background: radial-gradient(120% 90% at 30% 30%, #C9D2DE, #8D99AD 75%); }
.thumb-more { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.shot-btn { background: #DCE2EA; }
.shot-tag { background: rgba(7, 15, 28, 0.78); }

/* тёмные блоки */
.dark .steps li { border-top-color: rgba(255, 255, 255, 0.24); }
.facts li { border-top-color: rgba(255, 255, 255, 0.16); }
.about-photo { background: radial-gradient(120% 90% at 30% 30%, #2B3D5C, #0B1628 75%); }
.contact-list .slot-chip { border-color: rgba(255, 255, 255, 0.3); }
.site-footer { border-top: 1px solid var(--line-dark); }

/* полноэкранный просмотр — почти чёрный, чтобы цвета фото не искажались */
.lightbox, .lightbox::backdrop { background: #05080E; }

/* ---------- Текст о съёмке ---------- */
.prose-section { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule); }
.prose-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.prose-grid h2 { font-size: clamp(30px, 3.6vw, 52px); }
.prose p { font-size: 18px; line-height: 1.65; color: var(--ink); max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Популярные съёмки ---------- */
.related { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: clamp(40px, 5vw, 64px); }
.related-title { font-size: 14px; font-weight: 600; color: var(--graphite); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tasks h3 a { text-decoration: none; }
.tasks h3 a:hover { color: var(--signal); }

/* хлебные крошки на отдельных страницах */
.crumbs { font-size: 14px; color: var(--on-dark); margin: 0 0 18px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--signal); }
.crumbs span { margin: 0 6px; opacity: 0.5; }

/* ---------- Подвал: популярные съёмки и реквизиты ---------- */
.footer-more { padding-top: 0; border-top: 1px solid var(--line-dark); padding-top: 20px; }
.footer-more nav a { color: var(--on-dark); }
.footer-more .legal { font-size: 13px; opacity: 0.85; }
.footer-more .legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Политика ---------- */
.legal-h1 { font-size: clamp(40px, 6vw, 88px); margin-bottom: 20px; }
.legal-text { max-width: 820px; }
.legal-text h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 40px 0 14px; letter-spacing: -0.02em; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { font-size: 17px; }

/* ---------- Плашка cookie ---------- */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 40;
  max-width: 720px;
  margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 16px 20px;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(7, 15, 28, 0.35);
  font-size: 14px; line-height: 1.5;
}
.cookie-bar p { margin: 0; flex: 1 1 320px; color: var(--on-dark); }
.cookie-bar a { color: #fff; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-bar .btn-line { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.cookie-bar .btn-line:hover { background: #fff; color: var(--ink); }

@media (max-width: 860px) {
  .prose-grid { grid-template-columns: minmax(0, 1fr); }
}
